gnulib-comp.m4 8.1 KB

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