--- embedaddon/libiconv/srcm4/gnulib-comp.m4 2012/02/21 22:57:49 1.1.1.1 +++ embedaddon/libiconv/srcm4/gnulib-comp.m4 2021/03/17 13:38:46 1.1.1.3 @@ -1,10 +1,22 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2002-2009 Free Software Foundation, Inc. +# Copyright (C) 2002-2019 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 +# 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 +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +# +# 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. @@ -12,7 +24,8 @@ # 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. +# In projects that use version control, this file can be treated like +# other built files. # This macro should be invoked from ./configure.ac, in the section @@ -24,9 +37,86 @@ AC_DEFUN([gl_EARLY], 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]) - AC_REQUIRE([AM_PROG_CC_C_O]) + + # Pre-early section. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([gl_PROG_AR_RANLIB]) + + AC_REQUIRE([AM_PROG_CC_C_O]) + # Code from module absolute-header: + # Code from module alloca-opt: + # Code from module allocator: + # Code from module areadlink: + # Code from module binary-io: + # Code from module canonicalize-lgpl: + # Code from module careadlinkat: + # Code from module dirname-lgpl: + # Code from module dosname: + # 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 extern-inline: + # Code from module fcntl-h: + # Code from module filename: + # Code from module getprogname: + # Code from module gettext: + # Code from module gettext-h: + # Code from module havelib: + # Code from module include_next: + # Code from module intprops: + # Code from module largefile: + AC_REQUIRE([AC_SYS_LARGEFILE]) + # Code from module libiconv-misc: + # Code from module limits-h: + # Code from module lstat: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module mbstate: + # Code from module msvc-inval: + # Code from module msvc-nothrow: + # Code from module multiarch: + # Code from module nocrash: + # Code from module pathmax: + # Code from module progname: + # Code from module raise: + # Code from module read: + # Code from module readlink: + # Code from module relocatable-prog: + # Code from module relocatable-prog-wrapper: + # Code from module safe-read: + # Code from module signal-h: + # Code from module sigpipe: + # Code from module sigprocmask: + # Code from module snippet/_Noreturn: + # Code from module snippet/arg-nonnull: + # Code from module snippet/c++defs: + # Code from module snippet/warn-on-use: + # Code from module ssize_t: + # Code from module stat: + # Code from module stat-time: + # 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 strerror-override: + # Code from module string: + # Code from module sys_stat: + # Code from module sys_types: + # Code from module time: + # 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 xalloc: + # Code from module xalloc-oversized: + # Code from module xreadlink: ]) # This macro should be invoked from ./configure.ac, in the section @@ -37,6 +127,7 @@ AC_DEFUN([gl_INIT], gl_cond_libtool=false gl_libdeps= gl_ltlibdeps= + gl_m4_base='srcm4' 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])) @@ -46,34 +137,90 @@ AC_DEFUN([gl_INIT], gl_source_base='srclib' gl_FUNC_ALLOCA gl_CANONICALIZE_LGPL + if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then + AC_LIBOBJ([canonicalize-lgpl]) + fi gl_MODULE_INDICATOR([canonicalize-lgpl]) + gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) + gl_STDLIB_MODULE_INDICATOR([realpath]) + AC_CHECK_FUNCS_ONCE([readlinkat]) + gl_DIRNAME_LGPL + gl_DOUBLE_SLASH_ROOT gl_ENVIRON gl_UNISTD_MODULE_INDICATOR([environ]) gl_HEADER_ERRNO_H gl_ERROR + if test $ac_cv_lib_error_at_line = no; then + AC_LIBOBJ([error]) + gl_PREREQ_ERROR + fi 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])]) + AC_REQUIRE([gl_EXTERN_INLINE]) + gl_FCNTL_H + gl_FUNC_GETPROGNAME dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. - AM_GNU_GETTEXT_VERSION([0.17]) + AM_GNU_GETTEXT_VERSION([0.18.1]) AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) + AC_REQUIRE([gl_LARGEFILE]) + gl_LIMITS_H + gl_FUNC_LSTAT + if test $REPLACE_LSTAT = 1; then + AC_LIBOBJ([lstat]) + gl_PREREQ_LSTAT + fi + gl_SYS_STAT_MODULE_INDICATOR([lstat]) gl_FUNC_MALLOC_POSIX + if test $REPLACE_MALLOC = 1; then + AC_LIBOBJ([malloc]) + fi gl_STDLIB_MODULE_INDICATOR([malloc-posix]) gl_MALLOCA AC_TYPE_MBSTATE_T - gl_FUNC_MEMMOVE + AC_REQUIRE([gl_MSVC_INVAL]) + if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then + AC_LIBOBJ([msvc-inval]) + fi + AC_REQUIRE([gl_MSVC_NOTHROW]) + if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then + AC_LIBOBJ([msvc-nothrow]) + fi + gl_MODULE_INDICATOR([msvc-nothrow]) gl_MULTIARCH gl_PATHMAX + AC_CHECK_DECLS([program_invocation_name], [], [], [#include ]) + AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include ]) + gl_FUNC_RAISE + if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then + AC_LIBOBJ([raise]) + gl_PREREQ_RAISE + fi + gl_SIGNAL_MODULE_INDICATOR([raise]) + gl_FUNC_READ + if test $REPLACE_READ = 1; then + AC_LIBOBJ([read]) + gl_PREREQ_READ + fi + gl_UNISTD_MODULE_INDICATOR([read]) gl_FUNC_READLINK + if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then + AC_LIBOBJ([readlink]) + gl_PREREQ_READLINK + fi gl_UNISTD_MODULE_INDICATOR([readlink]) gl_RELOCATABLE([$gl_source_base]) + if test $RELOCATABLE = yes; then + AC_LIBOBJ([progreloc]) + AC_LIBOBJ([relocatable]) + fi gl_FUNC_READLINK_SEPARATE gl_CANONICALIZE_LGPL_SEPARATE gl_MALLOCA - gl_RELOCATABLE_LIBRARY_SEPARATE + gl_RELOCATABLE_LIBRARY gl_FUNC_SETENV_SEPARATE - gl_FUNC_STRERROR_SEPARATE + gl_PREREQ_SAFE_READ gl_SIGNAL_H gl_SIGNAL_SIGPIPE dnl Define the C macro GNULIB_SIGPIPE to 1. @@ -83,23 +230,60 @@ AC_DEFUN([gl_INIT], GNULIB_SIGNAL_H_SIGPIPE=1 dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1. AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + AC_REQUIRE([gl_ASM_SYMBOL_PREFIX]) 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 gl_SIGNALBLOCKING + if test $HAVE_POSIX_SIGNALBLOCKING = 0; then + AC_LIBOBJ([sigprocmask]) + gl_PREREQ_SIGPROCMASK + fi gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) gt_TYPE_SSIZE_T + gl_FUNC_STAT + if test $REPLACE_STAT = 1; then + AC_LIBOBJ([stat]) + case "$host_os" in + mingw*) + AC_LIBOBJ([stat-w32]) + ;; + esac + gl_PREREQ_STAT + fi + gl_SYS_STAT_MODULE_INDICATOR([stat]) + gl_STAT_TIME + gl_STAT_BIRTHTIME AM_STDBOOL_H + gl_STDDEF_H gl_STDINT_H gl_STDIO_H gl_STDLIB_H gl_FUNC_STRERROR + if test $REPLACE_STRERROR = 1; then + AC_LIBOBJ([strerror]) + fi + gl_MODULE_INDICATOR([strerror]) gl_STRING_MODULE_INDICATOR([strerror]) + AC_REQUIRE([gl_HEADER_ERRNO_H]) + AC_REQUIRE([gl_FUNC_STRERROR_0]) + if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then + AC_LIBOBJ([strerror-override]) + gl_PREREQ_SYS_H_WINSOCK2 + fi gl_HEADER_STRING_H + gl_HEADER_SYS_STAT_H + AC_PROG_MKDIR_P + gl_SYS_TYPES_H + AC_PROG_MKDIR_P + gl_HEADER_TIME_H gl_UNISTD_H + gl_LIBUNISTRING_LIBHEADER([0.9.4], [unitypes.h]) + gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniwidth.h]) + gl_LIBUNISTRING_MODULE([0.9.8], [uniwidth/width]) gl_FUNC_GLIBC_UNLOCKED_IO - gl_WCHAR_H + # 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 @@ -122,7 +306,7 @@ AC_DEFUN([gl_INIT], 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 @@ -139,6 +323,13 @@ AC_DEFUN([gl_INIT], 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 @@ -161,7 +352,7 @@ AC_DEFUN([gl_INIT], 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 "$sed_drop_objext" | sort | uniq`; do + 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 @@ -235,119 +426,185 @@ AC_DEFUN([gl_FILE_LIST], [ build-aux/config.libpath build-aux/config.rpath build-aux/install-reloc - build-aux/link-warning.h + build-aux/libtool-reloc build-aux/reloc-ldflags doc/relocatable.texi + lib/_Noreturn.h lib/alloca.in.h + lib/allocator.c + lib/allocator.h lib/areadlink.c lib/areadlink.h + lib/arg-nonnull.h + lib/basename-lgpl.c + lib/binary-io.c lib/binary-io.h + lib/c++defs.h lib/c-ctype.c lib/c-ctype.h lib/canonicalize-lgpl.c - lib/canonicalize.h + lib/careadlinkat.c + lib/careadlinkat.h + lib/dirname-lgpl.c + lib/dirname.h + lib/dosname.h lib/errno.in.h lib/error.c lib/error.h + lib/fcntl.in.h + lib/filename.h + lib/getprogname.c + lib/getprogname.h lib/gettext.h lib/intprops.h + lib/limits.in.h lib/localcharset.h + lib/lstat.c lib/malloc.c lib/malloca.c lib/malloca.h - lib/malloca.valgrind - lib/memmove.c + lib/msvc-inval.c + lib/msvc-inval.h + lib/msvc-nothrow.c + lib/msvc-nothrow.h lib/pathmax.h lib/progname.c lib/progname.h lib/progreloc.c + lib/raise.c + lib/read.c lib/readlink.c lib/relocatable.c lib/relocatable.h lib/relocwrapper.c + lib/safe-read.c + lib/safe-read.h lib/setenv.c lib/signal.in.h lib/sigprocmask.c + lib/stat-time.c + lib/stat-time.h + lib/stat-w32.c + lib/stat-w32.h + 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/streq.h + lib/strerror-override.c + lib/strerror-override.h lib/strerror.c lib/string.in.h + lib/stripslash.c + lib/sys-limits.h + lib/sys_stat.in.h + lib/sys_types.in.h + lib/time.in.h + lib/unistd.c 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/wchar.in.h + lib/verify.h + lib/warn-on-use.h + lib/xalloc-oversized.h lib/xalloc.h lib/xmalloc.c lib/xreadlink.c lib/xreadlink.h lib/xstrdup.c m4/00gnulib.m4 + m4/absolute-header.m4 m4/alloca.m4 - m4/canonicalize-lgpl.m4 + m4/asm-underscore.m4 + m4/canonicalize.m4 m4/codeset.m4 + m4/dirname.m4 + m4/double-slash-root.m4 m4/eealloc.m4 m4/environ.m4 m4/errno_h.m4 m4/error.m4 m4/extensions.m4 + m4/extern-inline.m4 + m4/fcntl-o.m4 + m4/fcntl_h.m4 + m4/getprogname.m4 m4/gettext.m4 m4/glibc2.m4 m4/glibc21.m4 m4/gnulib-common.m4 + m4/host-cpu-c-abi.m4 m4/iconv.m4 m4/include_next.m4 m4/intdiv0.m4 + m4/intl-thread-locale.m4 m4/intl.m4 m4/intldir.m4 m4/intlmacosx.m4 m4/intmax.m4 m4/inttypes-pri.m4 m4/inttypes_h.m4 + m4/largefile.m4 m4/lcmessage.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 + m4/libunistring-base.m4 + m4/limits-h.m4 m4/lock.m4 m4/longlong.m4 + m4/lstat.m4 m4/malloc.m4 m4/malloca.m4 m4/mbstate_t.m4 - m4/memmove.m4 + m4/msvc-inval.m4 + m4/msvc-nothrow.m4 m4/multiarch.m4 m4/nls.m4 + m4/nocrash.m4 + m4/off_t.m4 m4/pathmax.m4 m4/po.m4 m4/printf-posix.m4 m4/progtest.m4 + m4/raise.m4 + m4/read.m4 m4/readlink.m4 m4/relocatable-lib.m4 m4/relocatable.m4 + m4/safe-read.m4 m4/setenv.m4 m4/signal_h.m4 m4/signalblocking.m4 m4/sigpipe.m4 m4/size_max.m4 m4/ssize_t.m4 + m4/stat-time.m4 + m4/stat.m4 m4/stdbool.m4 + m4/stddef_h.m4 m4/stdint.m4 m4/stdint_h.m4 m4/stdio_h.m4 m4/stdlib_h.m4 m4/strerror.m4 m4/string_h.m4 + m4/sys_socket_h.m4 + m4/sys_stat_h.m4 + m4/sys_types_h.m4 m4/threadlib.m4 + m4/time_h.m4 m4/uintmax_t.m4 m4/unistd_h.m4 m4/unlocked-io.m4 m4/visibility.m4 - m4/wchar.m4 + m4/warn-on-use.m4 m4/wchar_t.m4 m4/wint_t.m4 m4/xsize.m4