gnulib-comp.m4 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2010 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 using CVS, this file can be treated like other built files.
  16. # This macro should be invoked from ./configure.in, in the section
  17. # "Checks for programs", right after AC_PROG_CC, and certainly before
  18. # any checks for libraries, header files, types and library functions.
  19. AC_DEFUN([gl_EARLY],
  20. [
  21. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  22. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  23. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  24. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  25. AC_REQUIRE([AC_PROG_RANLIB])
  26. # Code from module alignof:
  27. # Code from module alloca:
  28. # Code from module alloca-opt:
  29. # Code from module arg-nonnull:
  30. # Code from module arpa_inet:
  31. # Code from module base64:
  32. # Code from module btowc:
  33. # Code from module c++defs:
  34. # Code from module c-strtod:
  35. # Code from module cloexec:
  36. # Code from module close-hook:
  37. # Code from module configmake:
  38. # Code from module dirname:
  39. # Code from module dirname-lgpl:
  40. # Code from module double-slash-root:
  41. # Code from module dup2:
  42. # Code from module errno:
  43. # Code from module error:
  44. # Code from module exitfail:
  45. # Code from module extensions:
  46. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  47. # Code from module fcntl:
  48. # Code from module fcntl-h:
  49. # Code from module fcntl-safer:
  50. # Code from module float:
  51. # Code from module floorf:
  52. # Code from module fsusage:
  53. # Code from module full-read:
  54. # Code from module full-write:
  55. # Code from module getaddrinfo:
  56. # Code from module getdtablesize:
  57. # Code from module gethostname:
  58. # Code from module getloadavg:
  59. # Code from module getopt:
  60. # Code from module getopt-gnu:
  61. # Code from module getopt-posix:
  62. # Code from module gettext:
  63. # Code from module gettext-h:
  64. # Code from module havelib:
  65. # Code from module hostent:
  66. # Code from module include_next:
  67. # Code from module inet_ntop:
  68. # Code from module inline:
  69. # Code from module intprops:
  70. # Code from module langinfo:
  71. # Code from module localcharset:
  72. # Code from module locale:
  73. # Code from module malloc:
  74. # Code from module malloc-posix:
  75. # Code from module math:
  76. # Code from module mbrtowc:
  77. # Code from module mbsinit:
  78. # Code from module memchr:
  79. # Code from module mktime:
  80. # Code from module mountlist:
  81. # Code from module multiarch:
  82. # Code from module netdb:
  83. # Code from module netinet_in:
  84. # Code from module nl_langinfo:
  85. # Code from module open:
  86. # Code from module regex:
  87. # Code from module safe-read:
  88. # Code from module safe-write:
  89. # Code from module servent:
  90. # Code from module size_max:
  91. # Code from module snprintf:
  92. # Code from module sockets:
  93. # Code from module socklen:
  94. # Code from module ssize_t:
  95. # Code from module stat:
  96. # Code from module stdbool:
  97. # Code from module stddef:
  98. # Code from module stdint:
  99. # Code from module stdio:
  100. # Code from module stdlib:
  101. # Code from module strdup-posix:
  102. # Code from module streq:
  103. # Code from module strerror:
  104. # Code from module string:
  105. # Code from module strndup:
  106. # Code from module strnlen:
  107. # Code from module strstr-simple:
  108. # Code from module sys_socket:
  109. # Code from module sys_stat:
  110. # Code from module time:
  111. # Code from module time_r:
  112. # Code from module timegm:
  113. # Code from module unistd:
  114. # Code from module unistd-safer:
  115. # Code from module vasnprintf:
  116. # Code from module vasprintf:
  117. # Code from module verify:
  118. # Code from module vsnprintf:
  119. # Code from module warn-on-use:
  120. # Code from module wchar:
  121. # Code from module wcrtomb:
  122. # Code from module wctype:
  123. # Code from module write:
  124. # Code from module xalloc:
  125. # Code from module xalloc-die:
  126. # Code from module xsize:
  127. # Code from module xstrndup:
  128. ])
  129. # This macro should be invoked from ./configure.in, in the section
  130. # "Check for header files, types and library functions".
  131. AC_DEFUN([gl_INIT],
  132. [
  133. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  134. gl_cond_libtool=false
  135. gl_libdeps=
  136. gl_ltlibdeps=
  137. gl_m4_base='gl/m4'
  138. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  139. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  140. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  141. m4_pushdef([gl_LIBSOURCES_LIST], [])
  142. m4_pushdef([gl_LIBSOURCES_DIR], [])
  143. gl_COMMON
  144. gl_source_base='gl'
  145. # Code from module alignof:
  146. # Code from module alloca:
  147. # Code from module alloca-opt:
  148. gl_FUNC_ALLOCA
  149. # Code from module arg-nonnull:
  150. # Code from module arpa_inet:
  151. gl_HEADER_ARPA_INET
  152. AC_PROG_MKDIR_P
  153. # Code from module base64:
  154. gl_FUNC_BASE64
  155. # Code from module btowc:
  156. gl_FUNC_BTOWC
  157. gl_WCHAR_MODULE_INDICATOR([btowc])
  158. # Code from module c++defs:
  159. # Code from module c-strtod:
  160. gl_C_STRTOD
  161. # Code from module cloexec:
  162. gl_CLOEXEC
  163. gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
  164. # Code from module close-hook:
  165. # Code from module configmake:
  166. # Code from module dirname:
  167. gl_DIRNAME
  168. gl_MODULE_INDICATOR([dirname])
  169. # Code from module dirname-lgpl:
  170. gl_DIRNAME_LGPL
  171. # Code from module double-slash-root:
  172. gl_DOUBLE_SLASH_ROOT
  173. # Code from module dup2:
  174. gl_FUNC_DUP2
  175. gl_UNISTD_MODULE_INDICATOR([dup2])
  176. # Code from module errno:
  177. gl_HEADER_ERRNO_H
  178. # Code from module error:
  179. gl_ERROR
  180. m4_ifdef([AM_XGETTEXT_OPTION],
  181. [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
  182. AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  183. # Code from module exitfail:
  184. # Code from module extensions:
  185. # Code from module fcntl:
  186. gl_FUNC_FCNTL
  187. gl_FCNTL_MODULE_INDICATOR([fcntl])
  188. # Code from module fcntl-h:
  189. gl_FCNTL_H
  190. # Code from module fcntl-safer:
  191. gl_FCNTL_SAFER
  192. gl_MODULE_INDICATOR([fcntl-safer])
  193. # Code from module float:
  194. gl_FLOAT_H
  195. # Code from module floorf:
  196. gl_FUNC_FLOORF
  197. gl_MATH_MODULE_INDICATOR([floorf])
  198. # Code from module fsusage:
  199. gl_FSUSAGE
  200. # Code from module full-read:
  201. # Code from module full-write:
  202. # Code from module getaddrinfo:
  203. gl_GETADDRINFO
  204. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  205. # Code from module getdtablesize:
  206. gl_FUNC_GETDTABLESIZE
  207. gl_UNISTD_MODULE_INDICATOR([getdtablesize])
  208. # Code from module gethostname:
  209. gl_FUNC_GETHOSTNAME
  210. gl_UNISTD_MODULE_INDICATOR([gethostname])
  211. # Code from module getloadavg:
  212. gl_GETLOADAVG([$gl_source_base])
  213. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  214. # Code from module getopt:
  215. # Code from module getopt-gnu:
  216. gl_FUNC_GETOPT_GNU
  217. gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
  218. # Code from module getopt-posix:
  219. gl_FUNC_GETOPT_POSIX
  220. # Code from module gettext:
  221. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  222. AM_GNU_GETTEXT_VERSION([0.17])
  223. # Code from module gettext-h:
  224. AC_SUBST([LIBINTL])
  225. AC_SUBST([LTLIBINTL])
  226. # Code from module havelib:
  227. # Code from module hostent:
  228. gl_HOSTENT
  229. # Code from module include_next:
  230. # Code from module inet_ntop:
  231. gl_FUNC_INET_NTOP
  232. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  233. # Code from module inline:
  234. gl_INLINE
  235. # Code from module intprops:
  236. # Code from module langinfo:
  237. gl_LANGINFO_H
  238. # Code from module localcharset:
  239. gl_LOCALCHARSET
  240. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
  241. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  242. # Code from module locale:
  243. gl_LOCALE_H
  244. # Code from module malloc:
  245. AC_FUNC_MALLOC
  246. AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
  247. # Code from module malloc-posix:
  248. gl_FUNC_MALLOC_POSIX
  249. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  250. # Code from module math:
  251. gl_MATH_H
  252. # Code from module mbrtowc:
  253. gl_FUNC_MBRTOWC
  254. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  255. # Code from module mbsinit:
  256. gl_FUNC_MBSINIT
  257. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  258. # Code from module memchr:
  259. gl_FUNC_MEMCHR
  260. gl_STRING_MODULE_INDICATOR([memchr])
  261. # Code from module mktime:
  262. gl_FUNC_MKTIME
  263. gl_TIME_MODULE_INDICATOR([mktime])
  264. # Code from module mountlist:
  265. gl_MOUNTLIST
  266. # Code from module multiarch:
  267. gl_MULTIARCH
  268. # Code from module netdb:
  269. gl_HEADER_NETDB
  270. # Code from module netinet_in:
  271. gl_HEADER_NETINET_IN
  272. AC_PROG_MKDIR_P
  273. # Code from module nl_langinfo:
  274. gl_FUNC_NL_LANGINFO
  275. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  276. # Code from module open:
  277. gl_FUNC_OPEN
  278. gl_FCNTL_MODULE_INDICATOR([open])
  279. # Code from module regex:
  280. gl_REGEX
  281. # Code from module safe-read:
  282. gl_SAFE_READ
  283. # Code from module safe-write:
  284. gl_SAFE_WRITE
  285. # Code from module servent:
  286. gl_SERVENT
  287. # Code from module size_max:
  288. gl_SIZE_MAX
  289. # Code from module snprintf:
  290. gl_FUNC_SNPRINTF
  291. gl_STDIO_MODULE_INDICATOR([snprintf])
  292. # Code from module sockets:
  293. gl_SOCKETS
  294. # Code from module socklen:
  295. gl_TYPE_SOCKLEN_T
  296. # Code from module ssize_t:
  297. gt_TYPE_SSIZE_T
  298. # Code from module stat:
  299. gl_FUNC_STAT
  300. gl_SYS_STAT_MODULE_INDICATOR([stat])
  301. # Code from module stdbool:
  302. AM_STDBOOL_H
  303. # Code from module stddef:
  304. gl_STDDEF_H
  305. # Code from module stdint:
  306. gl_STDINT_H
  307. # Code from module stdio:
  308. gl_STDIO_H
  309. # Code from module stdlib:
  310. gl_STDLIB_H
  311. # Code from module strdup-posix:
  312. gl_FUNC_STRDUP_POSIX
  313. gl_STRING_MODULE_INDICATOR([strdup])
  314. # Code from module streq:
  315. # Code from module strerror:
  316. gl_FUNC_STRERROR
  317. gl_STRING_MODULE_INDICATOR([strerror])
  318. # Code from module string:
  319. gl_HEADER_STRING_H
  320. # Code from module strndup:
  321. gl_FUNC_STRNDUP
  322. gl_STRING_MODULE_INDICATOR([strndup])
  323. # Code from module strnlen:
  324. gl_FUNC_STRNLEN
  325. gl_STRING_MODULE_INDICATOR([strnlen])
  326. # Code from module strstr-simple:
  327. gl_FUNC_STRSTR_SIMPLE
  328. gl_STRING_MODULE_INDICATOR([strstr])
  329. # Code from module sys_socket:
  330. gl_HEADER_SYS_SOCKET
  331. AC_PROG_MKDIR_P
  332. # Code from module sys_stat:
  333. gl_HEADER_SYS_STAT_H
  334. AC_PROG_MKDIR_P
  335. # Code from module time:
  336. gl_HEADER_TIME_H
  337. # Code from module time_r:
  338. gl_TIME_R
  339. gl_TIME_MODULE_INDICATOR([time_r])
  340. # Code from module timegm:
  341. gl_FUNC_TIMEGM
  342. gl_TIME_MODULE_INDICATOR([timegm])
  343. # Code from module unistd:
  344. gl_UNISTD_H
  345. # Code from module unistd-safer:
  346. gl_UNISTD_SAFER
  347. # Code from module vasnprintf:
  348. gl_FUNC_VASNPRINTF
  349. # Code from module vasprintf:
  350. gl_FUNC_VASPRINTF
  351. gl_STDIO_MODULE_INDICATOR([vasprintf])
  352. m4_ifdef([AM_XGETTEXT_OPTION],
  353. [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  354. AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  355. # Code from module verify:
  356. # Code from module vsnprintf:
  357. gl_FUNC_VSNPRINTF
  358. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  359. # Code from module warn-on-use:
  360. # Code from module wchar:
  361. gl_WCHAR_H
  362. # Code from module wcrtomb:
  363. gl_FUNC_WCRTOMB
  364. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  365. # Code from module wctype:
  366. gl_WCTYPE_H
  367. # Code from module write:
  368. gl_FUNC_WRITE
  369. gl_UNISTD_MODULE_INDICATOR([write])
  370. # Code from module xalloc:
  371. gl_XALLOC
  372. # Code from module xalloc-die:
  373. # Code from module xsize:
  374. gl_XSIZE
  375. # Code from module xstrndup:
  376. gl_XSTRNDUP
  377. # End of code from modules
  378. m4_ifval(gl_LIBSOURCES_LIST, [
  379. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  380. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  381. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  382. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  383. exit 1
  384. fi
  385. done])dnl
  386. m4_if(m4_sysval, [0], [],
  387. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  388. ])
  389. m4_popdef([gl_LIBSOURCES_DIR])
  390. m4_popdef([gl_LIBSOURCES_LIST])
  391. m4_popdef([AC_LIBSOURCES])
  392. m4_popdef([AC_REPLACE_FUNCS])
  393. m4_popdef([AC_LIBOBJ])
  394. AC_CONFIG_COMMANDS_PRE([
  395. gl_libobjs=
  396. gl_ltlibobjs=
  397. if test -n "$gl_LIBOBJS"; then
  398. # Remove the extension.
  399. sed_drop_objext='s/\.o$//;s/\.obj$//'
  400. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  401. gl_libobjs="$gl_libobjs $i.$ac_objext"
  402. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  403. done
  404. fi
  405. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  406. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  407. ])
  408. gltests_libdeps=
  409. gltests_ltlibdeps=
  410. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  411. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  412. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  413. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  414. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  415. gl_COMMON
  416. gl_source_base='tests'
  417. changequote(,)dnl
  418. 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
  419. changequote([, ])dnl
  420. AC_SUBST([gltests_WITNESS])
  421. gl_module_indicator_condition=$gltests_WITNESS
  422. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  423. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  424. m4_ifval(gltests_LIBSOURCES_LIST, [
  425. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  426. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  427. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  428. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  429. exit 1
  430. fi
  431. done])dnl
  432. m4_if(m4_sysval, [0], [],
  433. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  434. ])
  435. m4_popdef([gltests_LIBSOURCES_DIR])
  436. m4_popdef([gltests_LIBSOURCES_LIST])
  437. m4_popdef([AC_LIBSOURCES])
  438. m4_popdef([AC_REPLACE_FUNCS])
  439. m4_popdef([AC_LIBOBJ])
  440. AC_CONFIG_COMMANDS_PRE([
  441. gltests_libobjs=
  442. gltests_ltlibobjs=
  443. if test -n "$gltests_LIBOBJS"; then
  444. # Remove the extension.
  445. sed_drop_objext='s/\.o$//;s/\.obj$//'
  446. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  447. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  448. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  449. done
  450. fi
  451. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  452. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  453. ])
  454. LIBGNU_LIBDEPS="$gl_libdeps"
  455. AC_SUBST([LIBGNU_LIBDEPS])
  456. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  457. AC_SUBST([LIBGNU_LTLIBDEPS])
  458. ])
  459. # Like AC_LIBOBJ, except that the module name goes
  460. # into gl_LIBOBJS instead of into LIBOBJS.
  461. AC_DEFUN([gl_LIBOBJ], [
  462. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  463. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  464. ])
  465. # Like AC_REPLACE_FUNCS, except that the module name goes
  466. # into gl_LIBOBJS instead of into LIBOBJS.
  467. AC_DEFUN([gl_REPLACE_FUNCS], [
  468. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  469. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  470. ])
  471. # Like AC_LIBSOURCES, except the directory where the source file is
  472. # expected is derived from the gnulib-tool parameterization,
  473. # and alloca is special cased (for the alloca-opt module).
  474. # We could also entirely rely on EXTRA_lib..._SOURCES.
  475. AC_DEFUN([gl_LIBSOURCES], [
  476. m4_foreach([_gl_NAME], [$1], [
  477. m4_if(_gl_NAME, [alloca.c], [], [
  478. m4_define([gl_LIBSOURCES_DIR], [gl])
  479. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  480. ])
  481. ])
  482. ])
  483. # Like AC_LIBOBJ, except that the module name goes
  484. # into gltests_LIBOBJS instead of into LIBOBJS.
  485. AC_DEFUN([gltests_LIBOBJ], [
  486. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  487. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  488. ])
  489. # Like AC_REPLACE_FUNCS, except that the module name goes
  490. # into gltests_LIBOBJS instead of into LIBOBJS.
  491. AC_DEFUN([gltests_REPLACE_FUNCS], [
  492. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  493. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  494. ])
  495. # Like AC_LIBSOURCES, except the directory where the source file is
  496. # expected is derived from the gnulib-tool parameterization,
  497. # and alloca is special cased (for the alloca-opt module).
  498. # We could also entirely rely on EXTRA_lib..._SOURCES.
  499. AC_DEFUN([gltests_LIBSOURCES], [
  500. m4_foreach([_gl_NAME], [$1], [
  501. m4_if(_gl_NAME, [alloca.c], [], [
  502. m4_define([gltests_LIBSOURCES_DIR], [tests])
  503. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  504. ])
  505. ])
  506. ])
  507. # This macro records the list of files which have been installed by
  508. # gnulib-tool and may be removed by future gnulib-tool invocations.
  509. AC_DEFUN([gl_FILE_LIST], [
  510. build-aux/arg-nonnull.h
  511. build-aux/c++defs.h
  512. build-aux/config.rpath
  513. build-aux/warn-on-use.h
  514. lib/alignof.h
  515. lib/alloca.c
  516. lib/alloca.in.h
  517. lib/arpa_inet.in.h
  518. lib/asnprintf.c
  519. lib/asprintf.c
  520. lib/base64.c
  521. lib/base64.h
  522. lib/basename-lgpl.c
  523. lib/basename.c
  524. lib/btowc.c
  525. lib/c-strtod.c
  526. lib/c-strtod.h
  527. lib/cloexec.c
  528. lib/cloexec.h
  529. lib/close-hook.c
  530. lib/close-hook.h
  531. lib/config.charset
  532. lib/creat-safer.c
  533. lib/dirname-lgpl.c
  534. lib/dirname.c
  535. lib/dirname.h
  536. lib/dup-safer.c
  537. lib/dup2.c
  538. lib/errno.in.h
  539. lib/error.c
  540. lib/error.h
  541. lib/exitfail.c
  542. lib/exitfail.h
  543. lib/fcntl--.h
  544. lib/fcntl-safer.h
  545. lib/fcntl.c
  546. lib/fcntl.in.h
  547. lib/fd-safer.c
  548. lib/float+.h
  549. lib/float.in.h
  550. lib/floor.c
  551. lib/floorf.c
  552. lib/fsusage.c
  553. lib/fsusage.h
  554. lib/full-read.c
  555. lib/full-read.h
  556. lib/full-write.c
  557. lib/full-write.h
  558. lib/gai_strerror.c
  559. lib/getaddrinfo.c
  560. lib/getdtablesize.c
  561. lib/gethostname.c
  562. lib/getloadavg.c
  563. lib/getopt.c
  564. lib/getopt.in.h
  565. lib/getopt1.c
  566. lib/getopt_int.h
  567. lib/gettext.h
  568. lib/inet_ntop.c
  569. lib/intprops.h
  570. lib/langinfo.in.h
  571. lib/localcharset.c
  572. lib/localcharset.h
  573. lib/locale.in.h
  574. lib/malloc.c
  575. lib/math.in.h
  576. lib/mbrtowc.c
  577. lib/mbsinit.c
  578. lib/memchr.c
  579. lib/memchr.valgrind
  580. lib/mktime-internal.h
  581. lib/mktime.c
  582. lib/mountlist.c
  583. lib/mountlist.h
  584. lib/netdb.in.h
  585. lib/netinet_in.in.h
  586. lib/nl_langinfo.c
  587. lib/open-safer.c
  588. lib/open.c
  589. lib/pipe-safer.c
  590. lib/printf-args.c
  591. lib/printf-args.h
  592. lib/printf-parse.c
  593. lib/printf-parse.h
  594. lib/ref-add.sin
  595. lib/ref-del.sin
  596. lib/regcomp.c
  597. lib/regex.c
  598. lib/regex.h
  599. lib/regex_internal.c
  600. lib/regex_internal.h
  601. lib/regexec.c
  602. lib/safe-read.c
  603. lib/safe-read.h
  604. lib/safe-write.c
  605. lib/safe-write.h
  606. lib/size_max.h
  607. lib/snprintf.c
  608. lib/sockets.c
  609. lib/sockets.h
  610. lib/stat.c
  611. lib/stdbool.in.h
  612. lib/stddef.in.h
  613. lib/stdint.in.h
  614. lib/stdio-write.c
  615. lib/stdio.in.h
  616. lib/stdlib.in.h
  617. lib/str-two-way.h
  618. lib/strdup.c
  619. lib/streq.h
  620. lib/strerror.c
  621. lib/string.in.h
  622. lib/stripslash.c
  623. lib/strndup.c
  624. lib/strnlen.c
  625. lib/strstr.c
  626. lib/sys_socket.in.h
  627. lib/sys_stat.in.h
  628. lib/time.in.h
  629. lib/time_r.c
  630. lib/timegm.c
  631. lib/unistd--.h
  632. lib/unistd-safer.h
  633. lib/unistd.in.h
  634. lib/vasnprintf.c
  635. lib/vasnprintf.h
  636. lib/vasprintf.c
  637. lib/verify.h
  638. lib/vsnprintf.c
  639. lib/w32sock.h
  640. lib/wchar.in.h
  641. lib/wcrtomb.c
  642. lib/wctype.in.h
  643. lib/write.c
  644. lib/xalloc-die.c
  645. lib/xalloc.h
  646. lib/xmalloc.c
  647. lib/xsize.h
  648. lib/xstrndup.c
  649. lib/xstrndup.h
  650. m4/00gnulib.m4
  651. m4/alloca.m4
  652. m4/arpa_inet_h.m4
  653. m4/base64.m4
  654. m4/btowc.m4
  655. m4/c-strtod.m4
  656. m4/cloexec.m4
  657. m4/codeset.m4
  658. m4/dirname.m4
  659. m4/dos.m4
  660. m4/double-slash-root.m4
  661. m4/dup2.m4
  662. m4/errno_h.m4
  663. m4/error.m4
  664. m4/extensions.m4
  665. m4/fcntl-o.m4
  666. m4/fcntl-safer.m4
  667. m4/fcntl.m4
  668. m4/fcntl_h.m4
  669. m4/float_h.m4
  670. m4/floorf.m4
  671. m4/fstypename.m4
  672. m4/fsusage.m4
  673. m4/getaddrinfo.m4
  674. m4/getdtablesize.m4
  675. m4/gethostname.m4
  676. m4/getloadavg.m4
  677. m4/getopt.m4
  678. m4/gettext.m4
  679. m4/glibc2.m4
  680. m4/glibc21.m4
  681. m4/gnulib-common.m4
  682. m4/hostent.m4
  683. m4/iconv.m4
  684. m4/include_next.m4
  685. m4/inet_ntop.m4
  686. m4/inline.m4
  687. m4/intdiv0.m4
  688. m4/intl.m4
  689. m4/intldir.m4
  690. m4/intlmacosx.m4
  691. m4/intmax.m4
  692. m4/intmax_t.m4
  693. m4/inttypes-pri.m4
  694. m4/inttypes_h.m4
  695. m4/langinfo_h.m4
  696. m4/lcmessage.m4
  697. m4/lib-ld.m4
  698. m4/lib-link.m4
  699. m4/lib-prefix.m4
  700. m4/localcharset.m4
  701. m4/locale-fr.m4
  702. m4/locale-ja.m4
  703. m4/locale-zh.m4
  704. m4/locale_h.m4
  705. m4/lock.m4
  706. m4/longlong.m4
  707. m4/ls-mntd-fs.m4
  708. m4/malloc.m4
  709. m4/math_h.m4
  710. m4/mbrtowc.m4
  711. m4/mbsinit.m4
  712. m4/mbstate_t.m4
  713. m4/memchr.m4
  714. m4/mktime.m4
  715. m4/mmap-anon.m4
  716. m4/mode_t.m4
  717. m4/mountlist.m4
  718. m4/multiarch.m4
  719. m4/netdb_h.m4
  720. m4/netinet_in_h.m4
  721. m4/nl_langinfo.m4
  722. m4/nls.m4
  723. m4/onceonly.m4
  724. m4/open.m4
  725. m4/po.m4
  726. m4/printf-posix.m4
  727. m4/printf.m4
  728. m4/progtest.m4
  729. m4/regex.m4
  730. m4/safe-read.m4
  731. m4/safe-write.m4
  732. m4/servent.m4
  733. m4/size_max.m4
  734. m4/snprintf.m4
  735. m4/sockets.m4
  736. m4/socklen.m4
  737. m4/sockpfaf.m4
  738. m4/ssize_t.m4
  739. m4/stat.m4
  740. m4/stdbool.m4
  741. m4/stddef_h.m4
  742. m4/stdint.m4
  743. m4/stdint_h.m4
  744. m4/stdio_h.m4
  745. m4/stdlib_h.m4
  746. m4/strdup.m4
  747. m4/strerror.m4
  748. m4/string_h.m4
  749. m4/strndup.m4
  750. m4/strnlen.m4
  751. m4/strstr.m4
  752. m4/sys_socket_h.m4
  753. m4/sys_stat_h.m4
  754. m4/threadlib.m4
  755. m4/time_h.m4
  756. m4/time_r.m4
  757. m4/timegm.m4
  758. m4/uintmax_t.m4
  759. m4/unistd-safer.m4
  760. m4/unistd_h.m4
  761. m4/vasnprintf.m4
  762. m4/vasprintf.m4
  763. m4/visibility.m4
  764. m4/vsnprintf.m4
  765. m4/warn-on-use.m4
  766. m4/wchar_h.m4
  767. m4/wchar_t.m4
  768. m4/wcrtomb.m4
  769. m4/wctype_h.m4
  770. m4/wint_t.m4
  771. m4/write.m4
  772. m4/xalloc.m4
  773. m4/xsize.m4
  774. m4/xstrndup.m4
  775. ])