gnulib-comp.m4 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2013 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 <http://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. # This macro should be invoked from ./configure.ac, in the section
  30. # "Checks for programs", right after AC_PROG_CC, and certainly before
  31. # any checks for libraries, header files, types and library functions.
  32. AC_DEFUN([gl_EARLY],
  33. [
  34. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  35. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  36. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  37. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  38. AC_REQUIRE([gl_PROG_AR_RANLIB])
  39. AC_REQUIRE([AM_PROG_CC_C_O])
  40. # Code from module alloca:
  41. # Code from module alloca-opt:
  42. # Code from module argp:
  43. # Code from module btowc:
  44. # Code from module configmake:
  45. # Code from module dirname-lgpl:
  46. # Code from module dosname:
  47. # Code from module double-slash-root:
  48. # Code from module errno:
  49. # Code from module error:
  50. # Code from module extensions:
  51. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  52. # Code from module extern-inline:
  53. # Code from module float:
  54. # Code from module fnmatch:
  55. # Code from module getdelim:
  56. # Code from module getline:
  57. # Code from module getopt-gnu:
  58. # Code from module getopt-posix:
  59. # Code from module gettext:
  60. # Code from module gettext-h:
  61. # Code from module havelib:
  62. # Code from module include_next:
  63. # Code from module intprops:
  64. # Code from module langinfo:
  65. # Code from module localcharset:
  66. # Code from module locale:
  67. # Code from module localeconv:
  68. # Code from module malloc-gnu:
  69. # Code from module malloc-posix:
  70. # Code from module mbrtowc:
  71. # Code from module mbsinit:
  72. # Code from module mbsrtowcs:
  73. # Code from module mbswidth:
  74. # Code from module mbtowc:
  75. # Code from module memchr:
  76. # Code from module mempcpy:
  77. # Code from module msvc-inval:
  78. # Code from module msvc-nothrow:
  79. # Code from module multiarch:
  80. # Code from module nl_langinfo:
  81. # Code from module nocrash:
  82. # Code from module progname:
  83. # Code from module rawmemchr:
  84. # Code from module realloc-posix:
  85. # Code from module regex:
  86. # Code from module size_max:
  87. # Code from module sleep:
  88. # Code from module snippet/_Noreturn:
  89. # Code from module snippet/arg-nonnull:
  90. # Code from module snippet/c++defs:
  91. # Code from module snippet/warn-on-use:
  92. # Code from module ssize_t:
  93. # Code from module stdalign:
  94. # Code from module stdbool:
  95. # Code from module stddef:
  96. # Code from module stdint:
  97. # Code from module stdio:
  98. # Code from module stdlib:
  99. # Code from module strcase:
  100. # Code from module strchrnul:
  101. # Code from module streq:
  102. # Code from module strerror:
  103. # Code from module strerror-override:
  104. # Code from module string:
  105. # Code from module strings:
  106. # Code from module strndup:
  107. # Code from module strnlen:
  108. # Code from module strnlen1:
  109. # Code from module sys_types:
  110. # Code from module sysexits:
  111. # Code from module unistd:
  112. # Code from module unitypes:
  113. # Code from module uniwidth/base:
  114. # Code from module uniwidth/width:
  115. # Code from module vasnprintf:
  116. # Code from module verify:
  117. # Code from module vsnprintf:
  118. # Code from module wchar:
  119. # Code from module wcrtomb:
  120. # Code from module wctype-h:
  121. # Code from module wcwidth:
  122. # Code from module xsize:
  123. ])
  124. # This macro should be invoked from ./configure.ac, in the section
  125. # "Check for header files, types and library functions".
  126. AC_DEFUN([gl_INIT],
  127. [
  128. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  129. gl_cond_libtool=false
  130. gl_libdeps=
  131. gl_ltlibdeps=
  132. gl_m4_base='m4'
  133. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  134. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  135. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  136. m4_pushdef([gl_LIBSOURCES_LIST], [])
  137. m4_pushdef([gl_LIBSOURCES_DIR], [])
  138. gl_COMMON
  139. gl_source_base='grub-core/gnulib'
  140. gl_FUNC_ALLOCA
  141. gl_ARGP
  142. m4_ifdef([AM_XGETTEXT_OPTION],
  143. [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
  144. AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
  145. gl_FUNC_BTOWC
  146. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  147. AC_LIBOBJ([btowc])
  148. gl_PREREQ_BTOWC
  149. fi
  150. gl_WCHAR_MODULE_INDICATOR([btowc])
  151. gl_CONFIGMAKE_PREP
  152. gl_DIRNAME_LGPL
  153. gl_DOUBLE_SLASH_ROOT
  154. gl_HEADER_ERRNO_H
  155. gl_ERROR
  156. if test $ac_cv_lib_error_at_line = no; then
  157. AC_LIBOBJ([error])
  158. gl_PREREQ_ERROR
  159. fi
  160. m4_ifdef([AM_XGETTEXT_OPTION],
  161. [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
  162. AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  163. AC_REQUIRE([gl_EXTERN_INLINE])
  164. gl_FLOAT_H
  165. if test $REPLACE_FLOAT_LDBL = 1; then
  166. AC_LIBOBJ([float])
  167. fi
  168. if test $REPLACE_ITOLD = 1; then
  169. AC_LIBOBJ([itold])
  170. fi
  171. gl_FUNC_FNMATCH_POSIX
  172. if test -n "$FNMATCH_H"; then
  173. AC_LIBOBJ([fnmatch])
  174. gl_PREREQ_FNMATCH
  175. fi
  176. gl_FUNC_GETDELIM
  177. if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
  178. AC_LIBOBJ([getdelim])
  179. gl_PREREQ_GETDELIM
  180. fi
  181. gl_STDIO_MODULE_INDICATOR([getdelim])
  182. gl_FUNC_GETLINE
  183. if test $REPLACE_GETLINE = 1; then
  184. AC_LIBOBJ([getline])
  185. gl_PREREQ_GETLINE
  186. fi
  187. gl_STDIO_MODULE_INDICATOR([getline])
  188. gl_FUNC_GETOPT_GNU
  189. if test $REPLACE_GETOPT = 1; then
  190. AC_LIBOBJ([getopt])
  191. AC_LIBOBJ([getopt1])
  192. gl_PREREQ_GETOPT
  193. dnl Arrange for unistd.h to include getopt.h.
  194. GNULIB_GL_UNISTD_H_GETOPT=1
  195. fi
  196. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  197. gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
  198. gl_FUNC_GETOPT_POSIX
  199. if test $REPLACE_GETOPT = 1; then
  200. AC_LIBOBJ([getopt])
  201. AC_LIBOBJ([getopt1])
  202. gl_PREREQ_GETOPT
  203. dnl Arrange for unistd.h to include getopt.h.
  204. GNULIB_GL_UNISTD_H_GETOPT=1
  205. fi
  206. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  207. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  208. AM_GNU_GETTEXT_VERSION([0.18.1])
  209. AC_SUBST([LIBINTL])
  210. AC_SUBST([LTLIBINTL])
  211. gl_LANGINFO_H
  212. gl_LOCALCHARSET
  213. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
  214. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  215. gl_LOCALE_H
  216. gl_FUNC_LOCALECONV
  217. if test $REPLACE_LOCALECONV = 1; then
  218. AC_LIBOBJ([localeconv])
  219. gl_PREREQ_LOCALECONV
  220. fi
  221. gl_LOCALE_MODULE_INDICATOR([localeconv])
  222. gl_FUNC_MALLOC_GNU
  223. if test $REPLACE_MALLOC = 1; then
  224. AC_LIBOBJ([malloc])
  225. fi
  226. gl_MODULE_INDICATOR([malloc-gnu])
  227. gl_FUNC_MALLOC_POSIX
  228. if test $REPLACE_MALLOC = 1; then
  229. AC_LIBOBJ([malloc])
  230. fi
  231. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  232. gl_FUNC_MBRTOWC
  233. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  234. AC_LIBOBJ([mbrtowc])
  235. gl_PREREQ_MBRTOWC
  236. fi
  237. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  238. gl_FUNC_MBSINIT
  239. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  240. AC_LIBOBJ([mbsinit])
  241. gl_PREREQ_MBSINIT
  242. fi
  243. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  244. gl_FUNC_MBSRTOWCS
  245. if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
  246. AC_LIBOBJ([mbsrtowcs])
  247. AC_LIBOBJ([mbsrtowcs-state])
  248. gl_PREREQ_MBSRTOWCS
  249. fi
  250. gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
  251. gl_MBSWIDTH
  252. gl_FUNC_MBTOWC
  253. if test $REPLACE_MBTOWC = 1; then
  254. AC_LIBOBJ([mbtowc])
  255. gl_PREREQ_MBTOWC
  256. fi
  257. gl_STDLIB_MODULE_INDICATOR([mbtowc])
  258. gl_FUNC_MEMCHR
  259. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  260. AC_LIBOBJ([memchr])
  261. gl_PREREQ_MEMCHR
  262. fi
  263. gl_STRING_MODULE_INDICATOR([memchr])
  264. gl_FUNC_MEMPCPY
  265. if test $HAVE_MEMPCPY = 0; then
  266. AC_LIBOBJ([mempcpy])
  267. gl_PREREQ_MEMPCPY
  268. fi
  269. gl_STRING_MODULE_INDICATOR([mempcpy])
  270. gl_MSVC_INVAL
  271. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  272. AC_LIBOBJ([msvc-inval])
  273. fi
  274. gl_MSVC_NOTHROW
  275. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  276. AC_LIBOBJ([msvc-nothrow])
  277. fi
  278. gl_MULTIARCH
  279. gl_FUNC_NL_LANGINFO
  280. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  281. AC_LIBOBJ([nl_langinfo])
  282. fi
  283. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  284. AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
  285. AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
  286. gl_FUNC_RAWMEMCHR
  287. if test $HAVE_RAWMEMCHR = 0; then
  288. AC_LIBOBJ([rawmemchr])
  289. gl_PREREQ_RAWMEMCHR
  290. fi
  291. gl_STRING_MODULE_INDICATOR([rawmemchr])
  292. gl_FUNC_REALLOC_POSIX
  293. if test $REPLACE_REALLOC = 1; then
  294. AC_LIBOBJ([realloc])
  295. fi
  296. gl_STDLIB_MODULE_INDICATOR([realloc-posix])
  297. gl_REGEX
  298. if test $ac_use_included_regex = yes; then
  299. AC_LIBOBJ([regex])
  300. gl_PREREQ_REGEX
  301. fi
  302. gl_SIZE_MAX
  303. gl_FUNC_SLEEP
  304. if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
  305. AC_LIBOBJ([sleep])
  306. fi
  307. gl_UNISTD_MODULE_INDICATOR([sleep])
  308. gt_TYPE_SSIZE_T
  309. gl_STDALIGN_H
  310. AM_STDBOOL_H
  311. gl_STDDEF_H
  312. gl_STDINT_H
  313. gl_STDIO_H
  314. gl_STDLIB_H
  315. gl_STRCASE
  316. if test $HAVE_STRCASECMP = 0; then
  317. AC_LIBOBJ([strcasecmp])
  318. gl_PREREQ_STRCASECMP
  319. fi
  320. if test $HAVE_STRNCASECMP = 0; then
  321. AC_LIBOBJ([strncasecmp])
  322. gl_PREREQ_STRNCASECMP
  323. fi
  324. gl_FUNC_STRCHRNUL
  325. if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
  326. AC_LIBOBJ([strchrnul])
  327. gl_PREREQ_STRCHRNUL
  328. fi
  329. gl_STRING_MODULE_INDICATOR([strchrnul])
  330. gl_FUNC_STRERROR
  331. if test $REPLACE_STRERROR = 1; then
  332. AC_LIBOBJ([strerror])
  333. fi
  334. gl_MODULE_INDICATOR([strerror])
  335. gl_STRING_MODULE_INDICATOR([strerror])
  336. AC_REQUIRE([gl_HEADER_ERRNO_H])
  337. AC_REQUIRE([gl_FUNC_STRERROR_0])
  338. if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
  339. AC_LIBOBJ([strerror-override])
  340. gl_PREREQ_SYS_H_WINSOCK2
  341. fi
  342. gl_HEADER_STRING_H
  343. gl_HEADER_STRINGS_H
  344. gl_FUNC_STRNDUP
  345. if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
  346. AC_LIBOBJ([strndup])
  347. fi
  348. gl_STRING_MODULE_INDICATOR([strndup])
  349. gl_FUNC_STRNLEN
  350. if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
  351. AC_LIBOBJ([strnlen])
  352. gl_PREREQ_STRNLEN
  353. fi
  354. gl_STRING_MODULE_INDICATOR([strnlen])
  355. gl_SYS_TYPES_H
  356. AC_PROG_MKDIR_P
  357. gl_SYSEXITS
  358. gl_UNISTD_H
  359. gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
  360. gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
  361. gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
  362. gl_FUNC_VASNPRINTF
  363. gl_FUNC_VSNPRINTF
  364. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  365. gl_WCHAR_H
  366. gl_FUNC_WCRTOMB
  367. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  368. AC_LIBOBJ([wcrtomb])
  369. gl_PREREQ_WCRTOMB
  370. fi
  371. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  372. gl_WCTYPE_H
  373. gl_FUNC_WCWIDTH
  374. if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
  375. AC_LIBOBJ([wcwidth])
  376. fi
  377. gl_WCHAR_MODULE_INDICATOR([wcwidth])
  378. gl_XSIZE
  379. # End of code from modules
  380. m4_ifval(gl_LIBSOURCES_LIST, [
  381. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  382. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  383. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  384. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  385. exit 1
  386. fi
  387. done])dnl
  388. m4_if(m4_sysval, [0], [],
  389. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  390. ])
  391. m4_popdef([gl_LIBSOURCES_DIR])
  392. m4_popdef([gl_LIBSOURCES_LIST])
  393. m4_popdef([AC_LIBSOURCES])
  394. m4_popdef([AC_REPLACE_FUNCS])
  395. m4_popdef([AC_LIBOBJ])
  396. AC_CONFIG_COMMANDS_PRE([
  397. gl_libobjs=
  398. gl_ltlibobjs=
  399. if test -n "$gl_LIBOBJS"; then
  400. # Remove the extension.
  401. sed_drop_objext='s/\.o$//;s/\.obj$//'
  402. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  403. gl_libobjs="$gl_libobjs $i.$ac_objext"
  404. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  405. done
  406. fi
  407. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  408. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  409. ])
  410. gltests_libdeps=
  411. gltests_ltlibdeps=
  412. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  413. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  414. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  415. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  416. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  417. gl_COMMON
  418. gl_source_base='tests'
  419. changequote(,)dnl
  420. 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
  421. changequote([, ])dnl
  422. AC_SUBST([gltests_WITNESS])
  423. gl_module_indicator_condition=$gltests_WITNESS
  424. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  425. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  426. m4_ifval(gltests_LIBSOURCES_LIST, [
  427. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  428. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  429. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  430. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  431. exit 1
  432. fi
  433. done])dnl
  434. m4_if(m4_sysval, [0], [],
  435. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  436. ])
  437. m4_popdef([gltests_LIBSOURCES_DIR])
  438. m4_popdef([gltests_LIBSOURCES_LIST])
  439. m4_popdef([AC_LIBSOURCES])
  440. m4_popdef([AC_REPLACE_FUNCS])
  441. m4_popdef([AC_LIBOBJ])
  442. AC_CONFIG_COMMANDS_PRE([
  443. gltests_libobjs=
  444. gltests_ltlibobjs=
  445. if test -n "$gltests_LIBOBJS"; then
  446. # Remove the extension.
  447. sed_drop_objext='s/\.o$//;s/\.obj$//'
  448. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  449. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  450. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  451. done
  452. fi
  453. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  454. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  455. ])
  456. LIBGNU_LIBDEPS="$gl_libdeps"
  457. AC_SUBST([LIBGNU_LIBDEPS])
  458. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  459. AC_SUBST([LIBGNU_LTLIBDEPS])
  460. ])
  461. # Like AC_LIBOBJ, except that the module name goes
  462. # into gl_LIBOBJS instead of into LIBOBJS.
  463. AC_DEFUN([gl_LIBOBJ], [
  464. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  465. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  466. ])
  467. # Like AC_REPLACE_FUNCS, except that the module name goes
  468. # into gl_LIBOBJS instead of into LIBOBJS.
  469. AC_DEFUN([gl_REPLACE_FUNCS], [
  470. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  471. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  472. ])
  473. # Like AC_LIBSOURCES, except the directory where the source file is
  474. # expected is derived from the gnulib-tool parameterization,
  475. # and alloca is special cased (for the alloca-opt module).
  476. # We could also entirely rely on EXTRA_lib..._SOURCES.
  477. AC_DEFUN([gl_LIBSOURCES], [
  478. m4_foreach([_gl_NAME], [$1], [
  479. m4_if(_gl_NAME, [alloca.c], [], [
  480. m4_define([gl_LIBSOURCES_DIR], [grub-core/gnulib])
  481. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  482. ])
  483. ])
  484. ])
  485. # Like AC_LIBOBJ, except that the module name goes
  486. # into gltests_LIBOBJS instead of into LIBOBJS.
  487. AC_DEFUN([gltests_LIBOBJ], [
  488. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  489. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  490. ])
  491. # Like AC_REPLACE_FUNCS, except that the module name goes
  492. # into gltests_LIBOBJS instead of into LIBOBJS.
  493. AC_DEFUN([gltests_REPLACE_FUNCS], [
  494. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  495. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  496. ])
  497. # Like AC_LIBSOURCES, except the directory where the source file is
  498. # expected is derived from the gnulib-tool parameterization,
  499. # and alloca is special cased (for the alloca-opt module).
  500. # We could also entirely rely on EXTRA_lib..._SOURCES.
  501. AC_DEFUN([gltests_LIBSOURCES], [
  502. m4_foreach([_gl_NAME], [$1], [
  503. m4_if(_gl_NAME, [alloca.c], [], [
  504. m4_define([gltests_LIBSOURCES_DIR], [tests])
  505. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  506. ])
  507. ])
  508. ])
  509. # This macro records the list of files which have been installed by
  510. # gnulib-tool and may be removed by future gnulib-tool invocations.
  511. AC_DEFUN([gl_FILE_LIST], [
  512. build-aux/config.rpath
  513. build-aux/snippet/_Noreturn.h
  514. build-aux/snippet/arg-nonnull.h
  515. build-aux/snippet/c++defs.h
  516. build-aux/snippet/warn-on-use.h
  517. lib/alloca.c
  518. lib/alloca.in.h
  519. lib/argp-ba.c
  520. lib/argp-eexst.c
  521. lib/argp-fmtstream.c
  522. lib/argp-fmtstream.h
  523. lib/argp-fs-xinl.c
  524. lib/argp-help.c
  525. lib/argp-namefrob.h
  526. lib/argp-parse.c
  527. lib/argp-pin.c
  528. lib/argp-pv.c
  529. lib/argp-pvh.c
  530. lib/argp-xinl.c
  531. lib/argp.h
  532. lib/asnprintf.c
  533. lib/basename-lgpl.c
  534. lib/btowc.c
  535. lib/config.charset
  536. lib/dirname-lgpl.c
  537. lib/dirname.h
  538. lib/dosname.h
  539. lib/errno.in.h
  540. lib/error.c
  541. lib/error.h
  542. lib/float+.h
  543. lib/float.c
  544. lib/float.in.h
  545. lib/fnmatch.c
  546. lib/fnmatch.in.h
  547. lib/fnmatch_loop.c
  548. lib/getdelim.c
  549. lib/getline.c
  550. lib/getopt.c
  551. lib/getopt.in.h
  552. lib/getopt1.c
  553. lib/getopt_int.h
  554. lib/gettext.h
  555. lib/intprops.h
  556. lib/itold.c
  557. lib/langinfo.in.h
  558. lib/localcharset.c
  559. lib/localcharset.h
  560. lib/locale.in.h
  561. lib/localeconv.c
  562. lib/malloc.c
  563. lib/mbrtowc.c
  564. lib/mbsinit.c
  565. lib/mbsrtowcs-impl.h
  566. lib/mbsrtowcs-state.c
  567. lib/mbsrtowcs.c
  568. lib/mbswidth.c
  569. lib/mbswidth.h
  570. lib/mbtowc-impl.h
  571. lib/mbtowc.c
  572. lib/memchr.c
  573. lib/memchr.valgrind
  574. lib/mempcpy.c
  575. lib/msvc-inval.c
  576. lib/msvc-inval.h
  577. lib/msvc-nothrow.c
  578. lib/msvc-nothrow.h
  579. lib/nl_langinfo.c
  580. lib/printf-args.c
  581. lib/printf-args.h
  582. lib/printf-parse.c
  583. lib/printf-parse.h
  584. lib/progname.c
  585. lib/progname.h
  586. lib/rawmemchr.c
  587. lib/rawmemchr.valgrind
  588. lib/realloc.c
  589. lib/ref-add.sin
  590. lib/ref-del.sin
  591. lib/regcomp.c
  592. lib/regex.c
  593. lib/regex.h
  594. lib/regex_internal.c
  595. lib/regex_internal.h
  596. lib/regexec.c
  597. lib/size_max.h
  598. lib/sleep.c
  599. lib/stdalign.in.h
  600. lib/stdbool.in.h
  601. lib/stddef.in.h
  602. lib/stdint.in.h
  603. lib/stdio.in.h
  604. lib/stdlib.in.h
  605. lib/strcasecmp.c
  606. lib/strchrnul.c
  607. lib/strchrnul.valgrind
  608. lib/streq.h
  609. lib/strerror-override.c
  610. lib/strerror-override.h
  611. lib/strerror.c
  612. lib/string.in.h
  613. lib/strings.in.h
  614. lib/stripslash.c
  615. lib/strncasecmp.c
  616. lib/strndup.c
  617. lib/strnlen.c
  618. lib/strnlen1.c
  619. lib/strnlen1.h
  620. lib/sys_types.in.h
  621. lib/sysexits.in.h
  622. lib/unistd.c
  623. lib/unistd.in.h
  624. lib/unitypes.in.h
  625. lib/uniwidth.in.h
  626. lib/uniwidth/cjk.h
  627. lib/uniwidth/width.c
  628. lib/vasnprintf.c
  629. lib/vasnprintf.h
  630. lib/verify.h
  631. lib/vsnprintf.c
  632. lib/wchar.in.h
  633. lib/wcrtomb.c
  634. lib/wctype-h.c
  635. lib/wctype.in.h
  636. lib/wcwidth.c
  637. lib/xsize.c
  638. lib/xsize.h
  639. m4/00gnulib.m4
  640. m4/alloca.m4
  641. m4/argp.m4
  642. m4/btowc.m4
  643. m4/codeset.m4
  644. m4/configmake.m4
  645. m4/dirname.m4
  646. m4/double-slash-root.m4
  647. m4/eealloc.m4
  648. m4/errno_h.m4
  649. m4/error.m4
  650. m4/exponentd.m4
  651. m4/extensions.m4
  652. m4/extern-inline.m4
  653. m4/fcntl-o.m4
  654. m4/float_h.m4
  655. m4/fnmatch.m4
  656. m4/getdelim.m4
  657. m4/getline.m4
  658. m4/getopt.m4
  659. m4/gettext.m4
  660. m4/glibc2.m4
  661. m4/glibc21.m4
  662. m4/gnulib-common.m4
  663. m4/iconv.m4
  664. m4/include_next.m4
  665. m4/intdiv0.m4
  666. m4/intl.m4
  667. m4/intldir.m4
  668. m4/intlmacosx.m4
  669. m4/intmax.m4
  670. m4/intmax_t.m4
  671. m4/inttypes-pri.m4
  672. m4/inttypes_h.m4
  673. m4/langinfo_h.m4
  674. m4/lcmessage.m4
  675. m4/lib-ld.m4
  676. m4/lib-link.m4
  677. m4/lib-prefix.m4
  678. m4/libunistring-base.m4
  679. m4/localcharset.m4
  680. m4/locale-fr.m4
  681. m4/locale-ja.m4
  682. m4/locale-zh.m4
  683. m4/locale_h.m4
  684. m4/localeconv.m4
  685. m4/lock.m4
  686. m4/longlong.m4
  687. m4/malloc.m4
  688. m4/math_h.m4
  689. m4/mbrtowc.m4
  690. m4/mbsinit.m4
  691. m4/mbsrtowcs.m4
  692. m4/mbstate_t.m4
  693. m4/mbswidth.m4
  694. m4/mbtowc.m4
  695. m4/memchr.m4
  696. m4/mempcpy.m4
  697. m4/mmap-anon.m4
  698. m4/msvc-inval.m4
  699. m4/msvc-nothrow.m4
  700. m4/multiarch.m4
  701. m4/nl_langinfo.m4
  702. m4/nls.m4
  703. m4/nocrash.m4
  704. m4/off_t.m4
  705. m4/po.m4
  706. m4/printf-posix.m4
  707. m4/printf.m4
  708. m4/progtest.m4
  709. m4/rawmemchr.m4
  710. m4/realloc.m4
  711. m4/regex.m4
  712. m4/size_max.m4
  713. m4/sleep.m4
  714. m4/ssize_t.m4
  715. m4/stdalign.m4
  716. m4/stdbool.m4
  717. m4/stddef_h.m4
  718. m4/stdint.m4
  719. m4/stdint_h.m4
  720. m4/stdio_h.m4
  721. m4/stdlib_h.m4
  722. m4/strcase.m4
  723. m4/strchrnul.m4
  724. m4/strerror.m4
  725. m4/string_h.m4
  726. m4/strings_h.m4
  727. m4/strndup.m4
  728. m4/strnlen.m4
  729. m4/sys_socket_h.m4
  730. m4/sys_types_h.m4
  731. m4/sysexits.m4
  732. m4/threadlib.m4
  733. m4/uintmax_t.m4
  734. m4/unistd_h.m4
  735. m4/vasnprintf.m4
  736. m4/visibility.m4
  737. m4/vsnprintf.m4
  738. m4/warn-on-use.m4
  739. m4/wchar_h.m4
  740. m4/wchar_t.m4
  741. m4/wcrtomb.m4
  742. m4/wctype_h.m4
  743. m4/wcwidth.m4
  744. m4/wint_t.m4
  745. m4/xsize.m4
  746. ])