1# DO NOT EDIT! GENERATED AUTOMATICALLY! 2# Copyright (C) 2002-2020 Free Software Foundation, Inc. 3# 4# This file is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3 of the License, or 7# (at your option) any later version. 8# 9# This file is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this file. If not, see <https://www.gnu.org/licenses/>. 16# 17# As a special exception to the GNU General Public License, 18# this file may be distributed as part of a program that 19# contains a configuration script generated by Autoconf, under 20# the same distribution terms as the rest of that program. 21# 22# Generated by gnulib-tool. 23# 24# This file represents the compiled summary of the specification in 25# gnulib-cache.m4. It lists the computed macro invocations that need 26# to be invoked from configure.ac. 27# In projects that use version control, this file can be treated like 28# other built files. 29 30 31# This macro should be invoked from gettext-runtime/libasprintf/configure.ac, in the section 32# "Checks for programs", right after AC_PROG_CC, and certainly before 33# any checks for libraries, header files, types and library functions. 34AC_DEFUN([gl_EARLY], 35[ 36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace 37 m4_pattern_allow([^gl_ES$])dnl a valid locale name 38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable 39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable 40 41 # Pre-early section. 42 AC_REQUIRE([gl_PROG_AR_RANLIB]) 43 44 # Code from module absolute-header: 45 # Code from module alloca: 46 # Code from module alloca-opt: 47 # Code from module attribute: 48 # Code from module c99: 49 # Code from module errno: 50 # Code from module extern-inline: 51 # Code from module include_next: 52 # Code from module size_max: 53 # Code from module std-gnu11: 54 # Code from module verify: 55 # Code from module xsize: 56]) 57 58# This macro should be invoked from gettext-runtime/libasprintf/configure.ac, in the section 59# "Check for header files, types and library functions". 60AC_DEFUN([gl_INIT], 61[ 62 AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) 63 gl_cond_libtool=true 64 gl_m4_base='gnulib-m4' 65 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) 66 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) 67 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) 68 m4_pushdef([gl_LIBSOURCES_LIST], []) 69 m4_pushdef([gl_LIBSOURCES_DIR], []) 70 gl_COMMON 71 gl_source_base='.' 72changequote(,)dnl 73LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` 74changequote([, ])dnl 75AC_SUBST([LTALLOCA]) 76 gl_FUNC_ALLOCA 77 gl_HEADER_ERRNO_H 78 AC_REQUIRE([gl_EXTERN_INLINE]) 79 gl_SIZE_MAX 80 gl_XSIZE 81 # End of code from modules 82 m4_ifval(gl_LIBSOURCES_LIST, [ 83 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || 84 for gl_file in ]gl_LIBSOURCES_LIST[ ; do 85 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then 86 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 87 exit 1 88 fi 89 done])dnl 90 m4_if(m4_sysval, [0], [], 91 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 92 ]) 93 m4_popdef([gl_LIBSOURCES_DIR]) 94 m4_popdef([gl_LIBSOURCES_LIST]) 95 m4_popdef([AC_LIBSOURCES]) 96 m4_popdef([AC_REPLACE_FUNCS]) 97 m4_popdef([AC_LIBOBJ]) 98 AC_CONFIG_COMMANDS_PRE([ 99 gl_libobjs= 100 gl_ltlibobjs= 101 if test -n "$gl_LIBOBJS"; then 102 # Remove the extension. 103 sed_drop_objext='s/\.o$//;s/\.obj$//' 104 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 105 gl_libobjs="$gl_libobjs $i.$ac_objext" 106 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 107 done 108 fi 109 AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) 110 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) 111 ]) 112 gltests_libdeps= 113 gltests_ltlibdeps= 114 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) 115 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) 116 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) 117 m4_pushdef([gltests_LIBSOURCES_LIST], []) 118 m4_pushdef([gltests_LIBSOURCES_DIR], []) 119 gl_COMMON 120 gl_source_base='tests' 121changequote(,)dnl 122 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 123changequote([, ])dnl 124 AC_SUBST([gltests_WITNESS]) 125 gl_module_indicator_condition=$gltests_WITNESS 126 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) 127 m4_popdef([gl_MODULE_INDICATOR_CONDITION]) 128 m4_ifval(gltests_LIBSOURCES_LIST, [ 129 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || 130 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do 131 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then 132 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 133 exit 1 134 fi 135 done])dnl 136 m4_if(m4_sysval, [0], [], 137 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 138 ]) 139 m4_popdef([gltests_LIBSOURCES_DIR]) 140 m4_popdef([gltests_LIBSOURCES_LIST]) 141 m4_popdef([AC_LIBSOURCES]) 142 m4_popdef([AC_REPLACE_FUNCS]) 143 m4_popdef([AC_LIBOBJ]) 144 AC_CONFIG_COMMANDS_PRE([ 145 gltests_libobjs= 146 gltests_ltlibobjs= 147 if test -n "$gltests_LIBOBJS"; then 148 # Remove the extension. 149 sed_drop_objext='s/\.o$//;s/\.obj$//' 150 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 151 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 152 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 153 done 154 fi 155 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) 156 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) 157 ]) 158]) 159 160# Like AC_LIBOBJ, except that the module name goes 161# into gl_LIBOBJS instead of into LIBOBJS. 162AC_DEFUN([gl_LIBOBJ], [ 163 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl 164 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" 165]) 166 167# Like AC_REPLACE_FUNCS, except that the module name goes 168# into gl_LIBOBJS instead of into LIBOBJS. 169AC_DEFUN([gl_REPLACE_FUNCS], [ 170 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 171 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) 172]) 173 174# Like AC_LIBSOURCES, except the directory where the source file is 175# expected is derived from the gnulib-tool parameterization, 176# and alloca is special cased (for the alloca-opt module). 177# We could also entirely rely on EXTRA_lib..._SOURCES. 178AC_DEFUN([gl_LIBSOURCES], [ 179 m4_foreach([_gl_NAME], [$1], [ 180 m4_if(_gl_NAME, [alloca.c], [], [ 181 m4_define([gl_LIBSOURCES_DIR], [.]) 182 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) 183 ]) 184 ]) 185]) 186 187# Like AC_LIBOBJ, except that the module name goes 188# into gltests_LIBOBJS instead of into LIBOBJS. 189AC_DEFUN([gltests_LIBOBJ], [ 190 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl 191 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" 192]) 193 194# Like AC_REPLACE_FUNCS, except that the module name goes 195# into gltests_LIBOBJS instead of into LIBOBJS. 196AC_DEFUN([gltests_REPLACE_FUNCS], [ 197 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 198 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) 199]) 200 201# Like AC_LIBSOURCES, except the directory where the source file is 202# expected is derived from the gnulib-tool parameterization, 203# and alloca is special cased (for the alloca-opt module). 204# We could also entirely rely on EXTRA_lib..._SOURCES. 205AC_DEFUN([gltests_LIBSOURCES], [ 206 m4_foreach([_gl_NAME], [$1], [ 207 m4_if(_gl_NAME, [alloca.c], [], [ 208 m4_define([gltests_LIBSOURCES_DIR], [tests]) 209 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) 210 ]) 211 ]) 212]) 213 214# This macro records the list of files which have been installed by 215# gnulib-tool and may be removed by future gnulib-tool invocations. 216AC_DEFUN([gl_FILE_LIST], [ 217 lib/alloca.c 218 lib/alloca.in.h 219 lib/attribute.h 220 lib/errno.in.h 221 lib/size_max.h 222 lib/verify.h 223 lib/xsize.c 224 lib/xsize.h 225 m4/00gnulib.m4 226 m4/absolute-header.m4 227 m4/alloca.m4 228 m4/errno_h.m4 229 m4/extern-inline.m4 230 m4/gnulib-common.m4 231 m4/include_next.m4 232 m4/size_max.m4 233 m4/std-gnu11.m4 234 m4/xsize.m4 235 m4/zzgnulib.m4 236]) 237