gnulib-comp.m4 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2009 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. AC_REQUIRE([AC_GNU_SOURCE])
  27. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  28. ])
  29. # This macro should be invoked from ./configure.in, in the section
  30. # "Check for header files, types and library functions".
  31. AC_DEFUN([gl_INIT],
  32. [
  33. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  34. gl_cond_libtool=false
  35. gl_libdeps=
  36. gl_ltlibdeps=
  37. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  38. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  39. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  40. m4_pushdef([gl_LIBSOURCES_LIST], [])
  41. m4_pushdef([gl_LIBSOURCES_DIR], [])
  42. gl_COMMON
  43. gl_source_base='gl'
  44. gl_FUNC_ALLOCA
  45. gl_HEADER_ARPA_INET
  46. AC_PROG_MKDIR_P
  47. gl_FUNC_BASE64
  48. gl_FUNC_BTOWC
  49. gl_WCHAR_MODULE_INDICATOR([btowc])
  50. gl_C_STRTOD
  51. gl_CLOEXEC
  52. gl_DIRNAME
  53. gl_DOUBLE_SLASH_ROOT
  54. gl_HEADER_ERRNO_H
  55. gl_ERROR
  56. m4_ifdef([AM_XGETTEXT_OPTION],
  57. [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
  58. AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  59. gl_EXITFAIL
  60. gl_FCNTL_H
  61. gl_FCNTL_SAFER
  62. gl_MODULE_INDICATOR([fcntl-safer])
  63. gl_FLOAT_H
  64. gl_FUNC_FLOORF
  65. gl_MATH_MODULE_INDICATOR([floorf])
  66. gl_FSUSAGE
  67. gl_GETADDRINFO
  68. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  69. gl_FUNC_GETHOSTNAME
  70. gl_UNISTD_MODULE_INDICATOR([gethostname])
  71. gl_GETLOADAVG([$gl_source_base])
  72. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  73. gl_GETOPT
  74. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  75. AM_GNU_GETTEXT_VERSION([0.17])
  76. AC_SUBST([LIBINTL])
  77. AC_SUBST([LTLIBINTL])
  78. gl_HOSTENT
  79. gl_INET_NTOP
  80. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  81. gl_INLINE
  82. gl_LOCALCHARSET
  83. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
  84. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  85. AC_FUNC_MALLOC
  86. AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
  87. gl_FUNC_MALLOC_POSIX
  88. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  89. gl_MATH_H
  90. gl_FUNC_MBRTOWC
  91. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  92. gl_FUNC_MBSINIT
  93. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  94. gl_MOUNTLIST
  95. gl_MULTIARCH
  96. gl_HEADER_NETDB
  97. gl_HEADER_NETINET_IN
  98. AC_PROG_MKDIR_P
  99. gl_FUNC_OPEN
  100. gl_MODULE_INDICATOR([open])
  101. gl_FCNTL_MODULE_INDICATOR([open])
  102. gl_REGEX
  103. gl_SAFE_READ
  104. gl_SAFE_WRITE
  105. gl_SERVENT
  106. gl_SIZE_MAX
  107. gl_FUNC_SNPRINTF
  108. gl_STDIO_MODULE_INDICATOR([snprintf])
  109. gl_TYPE_SOCKLEN_T
  110. gt_TYPE_SSIZE_T
  111. AM_STDBOOL_H
  112. gl_STDINT_H
  113. gl_STDIO_H
  114. gl_STDLIB_H
  115. gl_FUNC_STRERROR
  116. gl_STRING_MODULE_INDICATOR([strerror])
  117. gl_HEADER_STRING_H
  118. gl_FUNC_STRNDUP
  119. gl_STRING_MODULE_INDICATOR([strndup])
  120. gl_FUNC_STRNLEN
  121. gl_STRING_MODULE_INDICATOR([strnlen])
  122. gl_HEADER_SYS_SOCKET
  123. gl_MODULE_INDICATOR([sys_socket])
  124. AC_PROG_MKDIR_P
  125. gl_UNISTD_H
  126. gl_UNISTD_SAFER
  127. gl_FUNC_VASNPRINTF
  128. gl_FUNC_VASPRINTF
  129. gl_STDIO_MODULE_INDICATOR([vasprintf])
  130. m4_ifdef([AM_XGETTEXT_OPTION],
  131. [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  132. AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  133. gl_FUNC_VSNPRINTF
  134. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  135. gl_WCHAR_H
  136. gl_FUNC_WCRTOMB
  137. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  138. gl_WCTYPE_H
  139. gl_FUNC_WRITE
  140. gl_UNISTD_MODULE_INDICATOR([write])
  141. gl_XALLOC
  142. gl_XSIZE
  143. gl_XSTRNDUP
  144. m4_ifval(gl_LIBSOURCES_LIST, [
  145. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  146. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  147. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  148. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  149. exit 1
  150. fi
  151. done])dnl
  152. m4_if(m4_sysval, [0], [],
  153. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  154. ])
  155. m4_popdef([gl_LIBSOURCES_DIR])
  156. m4_popdef([gl_LIBSOURCES_LIST])
  157. m4_popdef([AC_LIBSOURCES])
  158. m4_popdef([AC_REPLACE_FUNCS])
  159. m4_popdef([AC_LIBOBJ])
  160. AC_CONFIG_COMMANDS_PRE([
  161. gl_libobjs=
  162. gl_ltlibobjs=
  163. if test -n "$gl_LIBOBJS"; then
  164. # Remove the extension.
  165. sed_drop_objext='s/\.o$//;s/\.obj$//'
  166. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  167. gl_libobjs="$gl_libobjs $i.$ac_objext"
  168. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  169. done
  170. fi
  171. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  172. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  173. ])
  174. gltests_libdeps=
  175. gltests_ltlibdeps=
  176. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  177. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  178. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  179. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  180. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  181. gl_COMMON
  182. gl_source_base='tests'
  183. m4_ifval(gltests_LIBSOURCES_LIST, [
  184. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  185. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  186. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  187. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  188. exit 1
  189. fi
  190. done])dnl
  191. m4_if(m4_sysval, [0], [],
  192. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  193. ])
  194. m4_popdef([gltests_LIBSOURCES_DIR])
  195. m4_popdef([gltests_LIBSOURCES_LIST])
  196. m4_popdef([AC_LIBSOURCES])
  197. m4_popdef([AC_REPLACE_FUNCS])
  198. m4_popdef([AC_LIBOBJ])
  199. AC_CONFIG_COMMANDS_PRE([
  200. gltests_libobjs=
  201. gltests_ltlibobjs=
  202. if test -n "$gltests_LIBOBJS"; then
  203. # Remove the extension.
  204. sed_drop_objext='s/\.o$//;s/\.obj$//'
  205. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  206. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  207. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  208. done
  209. fi
  210. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  211. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  212. ])
  213. LIBGNU_LIBDEPS="$gl_libdeps"
  214. AC_SUBST([LIBGNU_LIBDEPS])
  215. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  216. AC_SUBST([LIBGNU_LTLIBDEPS])
  217. ])
  218. # Like AC_LIBOBJ, except that the module name goes
  219. # into gl_LIBOBJS instead of into LIBOBJS.
  220. AC_DEFUN([gl_LIBOBJ], [
  221. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  222. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  223. ])
  224. # Like AC_REPLACE_FUNCS, except that the module name goes
  225. # into gl_LIBOBJS instead of into LIBOBJS.
  226. AC_DEFUN([gl_REPLACE_FUNCS], [
  227. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  228. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  229. ])
  230. # Like AC_LIBSOURCES, except the directory where the source file is
  231. # expected is derived from the gnulib-tool parameterization,
  232. # and alloca is special cased (for the alloca-opt module).
  233. # We could also entirely rely on EXTRA_lib..._SOURCES.
  234. AC_DEFUN([gl_LIBSOURCES], [
  235. m4_foreach([_gl_NAME], [$1], [
  236. m4_if(_gl_NAME, [alloca.c], [], [
  237. m4_define([gl_LIBSOURCES_DIR], [gl])
  238. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  239. ])
  240. ])
  241. ])
  242. # Like AC_LIBOBJ, except that the module name goes
  243. # into gltests_LIBOBJS instead of into LIBOBJS.
  244. AC_DEFUN([gltests_LIBOBJ], [
  245. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  246. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  247. ])
  248. # Like AC_REPLACE_FUNCS, except that the module name goes
  249. # into gltests_LIBOBJS instead of into LIBOBJS.
  250. AC_DEFUN([gltests_REPLACE_FUNCS], [
  251. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  252. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  253. ])
  254. # Like AC_LIBSOURCES, except the directory where the source file is
  255. # expected is derived from the gnulib-tool parameterization,
  256. # and alloca is special cased (for the alloca-opt module).
  257. # We could also entirely rely on EXTRA_lib..._SOURCES.
  258. AC_DEFUN([gltests_LIBSOURCES], [
  259. m4_foreach([_gl_NAME], [$1], [
  260. m4_if(_gl_NAME, [alloca.c], [], [
  261. m4_define([gltests_LIBSOURCES_DIR], [tests])
  262. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  263. ])
  264. ])
  265. ])
  266. # This macro records the list of files which have been installed by
  267. # gnulib-tool and may be removed by future gnulib-tool invocations.
  268. AC_DEFUN([gl_FILE_LIST], [
  269. build-aux/config.rpath
  270. build-aux/link-warning.h
  271. lib/alloca.c
  272. lib/alloca.in.h
  273. lib/arpa_inet.in.h
  274. lib/asnprintf.c
  275. lib/asprintf.c
  276. lib/base64.c
  277. lib/base64.h
  278. lib/basename.c
  279. lib/btowc.c
  280. lib/c-strtod.c
  281. lib/c-strtod.h
  282. lib/cloexec.c
  283. lib/cloexec.h
  284. lib/config.charset
  285. lib/creat-safer.c
  286. lib/dirname.c
  287. lib/dirname.h
  288. lib/dup-safer.c
  289. lib/errno.in.h
  290. lib/error.c
  291. lib/error.h
  292. lib/exitfail.c
  293. lib/exitfail.h
  294. lib/fcntl--.h
  295. lib/fcntl-safer.h
  296. lib/fcntl.in.h
  297. lib/fd-safer.c
  298. lib/float+.h
  299. lib/float.in.h
  300. lib/floor.c
  301. lib/floorf.c
  302. lib/fsusage.c
  303. lib/fsusage.h
  304. lib/full-read.c
  305. lib/full-read.h
  306. lib/full-write.c
  307. lib/full-write.h
  308. lib/gai_strerror.c
  309. lib/getaddrinfo.c
  310. lib/gethostname.c
  311. lib/getloadavg.c
  312. lib/getopt.c
  313. lib/getopt.in.h
  314. lib/getopt1.c
  315. lib/getopt_int.h
  316. lib/gettext.h
  317. lib/inet_ntop.c
  318. lib/intprops.h
  319. lib/localcharset.c
  320. lib/localcharset.h
  321. lib/malloc.c
  322. lib/math.in.h
  323. lib/mbrtowc.c
  324. lib/mbsinit.c
  325. lib/mountlist.c
  326. lib/mountlist.h
  327. lib/netdb.in.h
  328. lib/netinet_in.in.h
  329. lib/open-safer.c
  330. lib/open.c
  331. lib/pipe-safer.c
  332. lib/printf-args.c
  333. lib/printf-args.h
  334. lib/printf-parse.c
  335. lib/printf-parse.h
  336. lib/ref-add.sin
  337. lib/ref-del.sin
  338. lib/regcomp.c
  339. lib/regex.c
  340. lib/regex.h
  341. lib/regex_internal.c
  342. lib/regex_internal.h
  343. lib/regexec.c
  344. lib/safe-read.c
  345. lib/safe-read.h
  346. lib/safe-write.c
  347. lib/safe-write.h
  348. lib/size_max.h
  349. lib/snprintf.c
  350. lib/stdbool.in.h
  351. lib/stdint.in.h
  352. lib/stdio-write.c
  353. lib/stdio.in.h
  354. lib/stdlib.in.h
  355. lib/streq.h
  356. lib/strerror.c
  357. lib/string.in.h
  358. lib/stripslash.c
  359. lib/strndup.c
  360. lib/strnlen.c
  361. lib/sys_socket.in.h
  362. lib/unistd--.h
  363. lib/unistd-safer.h
  364. lib/unistd.in.h
  365. lib/vasnprintf.c
  366. lib/vasnprintf.h
  367. lib/vasprintf.c
  368. lib/verify.h
  369. lib/vsnprintf.c
  370. lib/wchar.in.h
  371. lib/wcrtomb.c
  372. lib/wctype.in.h
  373. lib/write.c
  374. lib/xalloc-die.c
  375. lib/xalloc.h
  376. lib/xmalloc.c
  377. lib/xsize.h
  378. lib/xstrndup.c
  379. lib/xstrndup.h
  380. m4/alloca.m4
  381. m4/arpa_inet_h.m4
  382. m4/base64.m4
  383. m4/btowc.m4
  384. m4/c-strtod.m4
  385. m4/cloexec.m4
  386. m4/codeset.m4
  387. m4/dirname.m4
  388. m4/dos.m4
  389. m4/double-slash-root.m4
  390. m4/errno_h.m4
  391. m4/error.m4
  392. m4/exitfail.m4
  393. m4/extensions.m4
  394. m4/fcntl-safer.m4
  395. m4/fcntl_h.m4
  396. m4/float_h.m4
  397. m4/floorf.m4
  398. m4/fstypename.m4
  399. m4/fsusage.m4
  400. m4/getaddrinfo.m4
  401. m4/gethostname.m4
  402. m4/getloadavg.m4
  403. m4/getopt.m4
  404. m4/gettext.m4
  405. m4/glibc2.m4
  406. m4/glibc21.m4
  407. m4/gnulib-common.m4
  408. m4/hostent.m4
  409. m4/iconv.m4
  410. m4/include_next.m4
  411. m4/inet_ntop.m4
  412. m4/inline.m4
  413. m4/intdiv0.m4
  414. m4/intl.m4
  415. m4/intldir.m4
  416. m4/intlmacosx.m4
  417. m4/intmax.m4
  418. m4/intmax_t.m4
  419. m4/inttypes-pri.m4
  420. m4/inttypes_h.m4
  421. m4/lcmessage.m4
  422. m4/lib-ld.m4
  423. m4/lib-link.m4
  424. m4/lib-prefix.m4
  425. m4/localcharset.m4
  426. m4/locale-fr.m4
  427. m4/locale-ja.m4
  428. m4/locale-zh.m4
  429. m4/lock.m4
  430. m4/longlong.m4
  431. m4/ls-mntd-fs.m4
  432. m4/malloc.m4
  433. m4/math_h.m4
  434. m4/mbrtowc.m4
  435. m4/mbsinit.m4
  436. m4/mbstate_t.m4
  437. m4/mountlist.m4
  438. m4/multiarch.m4
  439. m4/netdb_h.m4
  440. m4/netinet_in_h.m4
  441. m4/nls.m4
  442. m4/onceonly.m4
  443. m4/open.m4
  444. m4/po.m4
  445. m4/printf-posix.m4
  446. m4/printf.m4
  447. m4/progtest.m4
  448. m4/regex.m4
  449. m4/safe-read.m4
  450. m4/safe-write.m4
  451. m4/servent.m4
  452. m4/size_max.m4
  453. m4/snprintf.m4
  454. m4/socklen.m4
  455. m4/sockpfaf.m4
  456. m4/ssize_t.m4
  457. m4/stdbool.m4
  458. m4/stdint.m4
  459. m4/stdint_h.m4
  460. m4/stdio_h.m4
  461. m4/stdlib_h.m4
  462. m4/strerror.m4
  463. m4/string_h.m4
  464. m4/strndup.m4
  465. m4/strnlen.m4
  466. m4/sys_socket_h.m4
  467. m4/threadlib.m4
  468. m4/uintmax_t.m4
  469. m4/unistd-safer.m4
  470. m4/unistd_h.m4
  471. m4/vasnprintf.m4
  472. m4/vasprintf.m4
  473. m4/visibility.m4
  474. m4/vsnprintf.m4
  475. m4/wchar.m4
  476. m4/wchar_t.m4
  477. m4/wcrtomb.m4
  478. m4/wctype.m4
  479. m4/wint_t.m4
  480. m4/write.m4
  481. m4/xalloc.m4
  482. m4/xsize.m4
  483. m4/xstrndup.m4
  484. ])