4
0

gnulib-comp.m4~ 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2015 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 absolute-header:
  41. # Code from module alloca-opt:
  42. # Code from module arpa_inet:
  43. # Code from module base64:
  44. # Code from module btowc:
  45. # Code from module configmake:
  46. # Code from module crypto/sha1:
  47. # Code from module dirname:
  48. # Code from module dirname-lgpl:
  49. # Code from module dosname:
  50. # Code from module double-slash-root:
  51. # Code from module environ:
  52. # Code from module errno:
  53. # Code from module error:
  54. # Code from module exitfail:
  55. # Code from module extensions:
  56. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  57. # Code from module extern-inline:
  58. # Code from module fd-hook:
  59. # Code from module float:
  60. # Code from module floorf:
  61. # Code from module fsusage:
  62. # Code from module full-read:
  63. # Code from module getaddrinfo:
  64. # Code from module gethostname:
  65. # Code from module getloadavg:
  66. # Code from module getopt-gnu:
  67. # Code from module getopt-posix:
  68. # Code from module gettext:
  69. # Code from module gettext-h:
  70. # Code from module gettimeofday:
  71. # Code from module havelib:
  72. # Code from module hostent:
  73. # Code from module idpriv-droptemp:
  74. # Code from module include_next:
  75. # Code from module inet_ntop:
  76. # Code from module intprops:
  77. # Code from module langinfo:
  78. # Code from module largefile:
  79. AC_REQUIRE([AC_SYS_LARGEFILE])
  80. # Code from module localcharset:
  81. # Code from module locale:
  82. # Code from module localeconv:
  83. # Code from module lock:
  84. # Code from module malloc-posix:
  85. # Code from module malloca:
  86. # Code from module math:
  87. # Code from module mbrtowc:
  88. # Code from module mbsinit:
  89. # Code from module mbtowc:
  90. # Code from module memchr:
  91. # Code from module mktime:
  92. # Code from module mktime-internal:
  93. # Code from module mountlist:
  94. # Code from module msvc-inval:
  95. # Code from module msvc-nothrow:
  96. # Code from module multiarch:
  97. # Code from module netdb:
  98. # Code from module netinet_in:
  99. # Code from module nl_langinfo:
  100. # Code from module nocrash:
  101. # Code from module read:
  102. # Code from module regex:
  103. # Code from module safe-read:
  104. # Code from module servent:
  105. # Code from module setenv:
  106. # Code from module size_max:
  107. # Code from module snippet/_Noreturn:
  108. # Code from module snippet/arg-nonnull:
  109. # Code from module snippet/c++defs:
  110. # Code from module snippet/warn-on-use:
  111. # Code from module snprintf:
  112. # Code from module socketlib:
  113. # Code from module sockets:
  114. # Code from module socklen:
  115. # Code from module ssize_t:
  116. # Code from module stdalign:
  117. # Code from module stdbool:
  118. # Code from module stddef:
  119. # Code from module stdint:
  120. # Code from module stdio:
  121. # Code from module stdlib:
  122. # Code from module strcase:
  123. # Code from module strcasestr:
  124. # Code from module strcasestr-simple:
  125. # Code from module streq:
  126. # Code from module strerror:
  127. # Code from module strerror-override:
  128. # Code from module string:
  129. # Code from module strings:
  130. # Code from module strndup:
  131. # Code from module strnlen:
  132. # Code from module strsep:
  133. # Code from module strstr-simple:
  134. # Code from module sys_socket:
  135. # Code from module sys_time:
  136. # Code from module sys_types:
  137. # Code from module sys_uio:
  138. # Code from module threadlib:
  139. gl_THREADLIB_EARLY
  140. # Code from module time:
  141. # Code from module time_r:
  142. # Code from module timegm:
  143. # Code from module unistd:
  144. # Code from module unsetenv:
  145. # Code from module vasnprintf:
  146. # Code from module vasprintf:
  147. # Code from module verify:
  148. # Code from module vsnprintf:
  149. # Code from module wchar:
  150. # Code from module wcrtomb:
  151. # Code from module wctype-h:
  152. # Code from module xalloc:
  153. # Code from module xalloc-die:
  154. # Code from module xalloc-oversized:
  155. # Code from module xsize:
  156. # Code from module xstrndup:
  157. ])
  158. # This macro should be invoked from ./configure.ac, in the section
  159. # "Check for header files, types and library functions".
  160. AC_DEFUN([gl_INIT],
  161. [
  162. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  163. gl_cond_libtool=false
  164. gl_libdeps=
  165. gl_ltlibdeps=
  166. gl_m4_base='gl/m4'
  167. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  168. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  169. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  170. m4_pushdef([gl_LIBSOURCES_LIST], [])
  171. m4_pushdef([gl_LIBSOURCES_DIR], [])
  172. gl_COMMON
  173. gl_source_base='gl'
  174. gl_FUNC_ALLOCA
  175. gl_HEADER_ARPA_INET
  176. AC_PROG_MKDIR_P
  177. gl_FUNC_BASE64
  178. gl_FUNC_BTOWC
  179. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  180. AC_LIBOBJ([btowc])
  181. gl_PREREQ_BTOWC
  182. fi
  183. gl_WCHAR_MODULE_INDICATOR([btowc])
  184. gl_CONFIGMAKE_PREP
  185. gl_SHA1
  186. gl_DIRNAME
  187. gl_MODULE_INDICATOR([dirname])
  188. gl_DIRNAME_LGPL
  189. gl_DOUBLE_SLASH_ROOT
  190. gl_ENVIRON
  191. gl_UNISTD_MODULE_INDICATOR([environ])
  192. gl_HEADER_ERRNO_H
  193. gl_ERROR
  194. if test $ac_cv_lib_error_at_line = no; then
  195. AC_LIBOBJ([error])
  196. gl_PREREQ_ERROR
  197. fi
  198. m4_ifdef([AM_XGETTEXT_OPTION],
  199. [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
  200. AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  201. AC_REQUIRE([gl_EXTERN_INLINE])
  202. gl_FLOAT_H
  203. if test $REPLACE_FLOAT_LDBL = 1; then
  204. AC_LIBOBJ([float])
  205. fi
  206. if test $REPLACE_ITOLD = 1; then
  207. AC_LIBOBJ([itold])
  208. fi
  209. gl_FUNC_FLOORF
  210. if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then
  211. AC_LIBOBJ([floorf])
  212. fi
  213. gl_MATH_MODULE_INDICATOR([floorf])
  214. gl_FSUSAGE
  215. if test $gl_cv_fs_space = yes; then
  216. AC_LIBOBJ([fsusage])
  217. gl_PREREQ_FSUSAGE_EXTRA
  218. fi
  219. gl_GETADDRINFO
  220. if test $HAVE_GETADDRINFO = 0; then
  221. AC_LIBOBJ([getaddrinfo])
  222. fi
  223. if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  224. AC_LIBOBJ([gai_strerror])
  225. fi
  226. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  227. gl_FUNC_GETHOSTNAME
  228. if test $HAVE_GETHOSTNAME = 0; then
  229. AC_LIBOBJ([gethostname])
  230. gl_PREREQ_GETHOSTNAME
  231. fi
  232. gl_UNISTD_MODULE_INDICATOR([gethostname])
  233. gl_GETLOADAVG
  234. if test $HAVE_GETLOADAVG = 0; then
  235. AC_LIBOBJ([getloadavg])
  236. gl_PREREQ_GETLOADAVG
  237. fi
  238. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  239. gl_FUNC_GETOPT_GNU
  240. if test $REPLACE_GETOPT = 1; then
  241. AC_LIBOBJ([getopt])
  242. AC_LIBOBJ([getopt1])
  243. gl_PREREQ_GETOPT
  244. dnl Arrange for unistd.h to include getopt.h.
  245. GNULIB_GL_UNISTD_H_GETOPT=1
  246. fi
  247. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  248. gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
  249. gl_FUNC_GETOPT_POSIX
  250. if test $REPLACE_GETOPT = 1; then
  251. AC_LIBOBJ([getopt])
  252. AC_LIBOBJ([getopt1])
  253. gl_PREREQ_GETOPT
  254. dnl Arrange for unistd.h to include getopt.h.
  255. GNULIB_GL_UNISTD_H_GETOPT=1
  256. fi
  257. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  258. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  259. AM_GNU_GETTEXT_VERSION([0.18.1])
  260. AC_SUBST([LIBINTL])
  261. AC_SUBST([LTLIBINTL])
  262. gl_FUNC_GETTIMEOFDAY
  263. if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
  264. AC_LIBOBJ([gettimeofday])
  265. gl_PREREQ_GETTIMEOFDAY
  266. fi
  267. gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
  268. gl_HOSTENT
  269. gl_IDPRIV
  270. gl_FUNC_INET_NTOP
  271. if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
  272. AC_LIBOBJ([inet_ntop])
  273. gl_PREREQ_INET_NTOP
  274. fi
  275. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  276. gl_LANGINFO_H
  277. AC_REQUIRE([gl_LARGEFILE])
  278. gl_LOCALCHARSET
  279. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
  280. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  281. gl_LOCALE_H
  282. gl_FUNC_LOCALECONV
  283. if test $REPLACE_LOCALECONV = 1; then
  284. AC_LIBOBJ([localeconv])
  285. gl_PREREQ_LOCALECONV
  286. fi
  287. gl_LOCALE_MODULE_INDICATOR([localeconv])
  288. gl_LOCK
  289. gl_MODULE_INDICATOR([lock])
  290. gl_FUNC_MALLOC_POSIX
  291. if test $REPLACE_MALLOC = 1; then
  292. AC_LIBOBJ([malloc])
  293. fi
  294. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  295. gl_MALLOCA
  296. gl_MATH_H
  297. gl_FUNC_MBRTOWC
  298. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  299. AC_LIBOBJ([mbrtowc])
  300. gl_PREREQ_MBRTOWC
  301. fi
  302. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  303. gl_FUNC_MBSINIT
  304. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  305. AC_LIBOBJ([mbsinit])
  306. gl_PREREQ_MBSINIT
  307. fi
  308. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  309. gl_FUNC_MBTOWC
  310. if test $REPLACE_MBTOWC = 1; then
  311. AC_LIBOBJ([mbtowc])
  312. gl_PREREQ_MBTOWC
  313. fi
  314. gl_STDLIB_MODULE_INDICATOR([mbtowc])
  315. gl_FUNC_MEMCHR
  316. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  317. AC_LIBOBJ([memchr])
  318. gl_PREREQ_MEMCHR
  319. fi
  320. gl_STRING_MODULE_INDICATOR([memchr])
  321. gl_FUNC_MKTIME
  322. if test $REPLACE_MKTIME = 1; then
  323. AC_LIBOBJ([mktime])
  324. gl_PREREQ_MKTIME
  325. fi
  326. gl_TIME_MODULE_INDICATOR([mktime])
  327. gl_FUNC_MKTIME_INTERNAL
  328. if test $REPLACE_MKTIME = 1; then
  329. AC_LIBOBJ([mktime])
  330. gl_PREREQ_MKTIME
  331. fi
  332. gl_MOUNTLIST
  333. if test $gl_cv_list_mounted_fs = yes; then
  334. AC_LIBOBJ([mountlist])
  335. gl_PREREQ_MOUNTLIST_EXTRA
  336. fi
  337. gl_MSVC_INVAL
  338. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  339. AC_LIBOBJ([msvc-inval])
  340. fi
  341. gl_MSVC_NOTHROW
  342. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  343. AC_LIBOBJ([msvc-nothrow])
  344. fi
  345. gl_MULTIARCH
  346. gl_HEADER_NETDB
  347. gl_HEADER_NETINET_IN
  348. AC_PROG_MKDIR_P
  349. gl_FUNC_NL_LANGINFO
  350. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  351. AC_LIBOBJ([nl_langinfo])
  352. fi
  353. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  354. gl_FUNC_READ
  355. if test $REPLACE_READ = 1; then
  356. AC_LIBOBJ([read])
  357. gl_PREREQ_READ
  358. fi
  359. gl_UNISTD_MODULE_INDICATOR([read])
  360. gl_REGEX
  361. if test $ac_use_included_regex = yes; then
  362. AC_LIBOBJ([regex])
  363. gl_PREREQ_REGEX
  364. fi
  365. gl_PREREQ_SAFE_READ
  366. gl_SERVENT
  367. gl_FUNC_SETENV
  368. if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
  369. AC_LIBOBJ([setenv])
  370. fi
  371. gl_STDLIB_MODULE_INDICATOR([setenv])
  372. gl_SIZE_MAX
  373. gl_FUNC_SNPRINTF
  374. gl_STDIO_MODULE_INDICATOR([snprintf])
  375. gl_MODULE_INDICATOR([snprintf])
  376. AC_REQUIRE([gl_SOCKETLIB])
  377. AC_REQUIRE([gl_SOCKETS])
  378. gl_TYPE_SOCKLEN_T
  379. gt_TYPE_SSIZE_T
  380. gl_STDALIGN_H
  381. AM_STDBOOL_H
  382. gl_STDDEF_H
  383. gl_STDINT_H
  384. gl_STDIO_H
  385. gl_STDLIB_H
  386. gl_STRCASE
  387. if test $HAVE_STRCASECMP = 0; then
  388. AC_LIBOBJ([strcasecmp])
  389. gl_PREREQ_STRCASECMP
  390. fi
  391. if test $HAVE_STRNCASECMP = 0; then
  392. AC_LIBOBJ([strncasecmp])
  393. gl_PREREQ_STRNCASECMP
  394. fi
  395. gl_FUNC_STRCASESTR
  396. if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
  397. AC_LIBOBJ([strcasestr])
  398. gl_PREREQ_STRCASESTR
  399. fi
  400. gl_FUNC_STRCASESTR_SIMPLE
  401. if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
  402. AC_LIBOBJ([strcasestr])
  403. gl_PREREQ_STRCASESTR
  404. fi
  405. gl_STRING_MODULE_INDICATOR([strcasestr])
  406. gl_FUNC_STRERROR
  407. if test $REPLACE_STRERROR = 1; then
  408. AC_LIBOBJ([strerror])
  409. fi
  410. gl_MODULE_INDICATOR([strerror])
  411. gl_STRING_MODULE_INDICATOR([strerror])
  412. AC_REQUIRE([gl_HEADER_ERRNO_H])
  413. AC_REQUIRE([gl_FUNC_STRERROR_0])
  414. if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
  415. AC_LIBOBJ([strerror-override])
  416. gl_PREREQ_SYS_H_WINSOCK2
  417. fi
  418. gl_HEADER_STRING_H
  419. gl_HEADER_STRINGS_H
  420. gl_FUNC_STRNDUP
  421. if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
  422. AC_LIBOBJ([strndup])
  423. fi
  424. gl_STRING_MODULE_INDICATOR([strndup])
  425. gl_FUNC_STRNLEN
  426. if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
  427. AC_LIBOBJ([strnlen])
  428. gl_PREREQ_STRNLEN
  429. fi
  430. gl_STRING_MODULE_INDICATOR([strnlen])
  431. gl_FUNC_STRSEP
  432. if test $HAVE_STRSEP = 0; then
  433. AC_LIBOBJ([strsep])
  434. gl_PREREQ_STRSEP
  435. fi
  436. gl_STRING_MODULE_INDICATOR([strsep])
  437. gl_FUNC_STRSTR_SIMPLE
  438. if test $REPLACE_STRSTR = 1; then
  439. AC_LIBOBJ([strstr])
  440. fi
  441. gl_STRING_MODULE_INDICATOR([strstr])
  442. AC_REQUIRE([gl_HEADER_SYS_SOCKET])
  443. AC_PROG_MKDIR_P
  444. gl_HEADER_SYS_TIME_H
  445. AC_PROG_MKDIR_P
  446. gl_SYS_TYPES_H
  447. AC_PROG_MKDIR_P
  448. gl_HEADER_SYS_UIO
  449. AC_PROG_MKDIR_P
  450. gl_THREADLIB
  451. gl_HEADER_TIME_H
  452. gl_TIME_R
  453. if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  454. AC_LIBOBJ([time_r])
  455. gl_PREREQ_TIME_R
  456. fi
  457. gl_TIME_MODULE_INDICATOR([time_r])
  458. gl_FUNC_TIMEGM
  459. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  460. AC_LIBOBJ([timegm])
  461. gl_PREREQ_TIMEGM
  462. fi
  463. gl_TIME_MODULE_INDICATOR([timegm])
  464. gl_UNISTD_H
  465. gl_FUNC_UNSETENV
  466. if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
  467. AC_LIBOBJ([unsetenv])
  468. gl_PREREQ_UNSETENV
  469. fi
  470. gl_STDLIB_MODULE_INDICATOR([unsetenv])
  471. gl_FUNC_VASNPRINTF
  472. gl_FUNC_VASPRINTF
  473. gl_STDIO_MODULE_INDICATOR([vasprintf])
  474. m4_ifdef([AM_XGETTEXT_OPTION],
  475. [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  476. AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  477. gl_FUNC_VSNPRINTF
  478. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  479. gl_WCHAR_H
  480. gl_FUNC_WCRTOMB
  481. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  482. AC_LIBOBJ([wcrtomb])
  483. gl_PREREQ_WCRTOMB
  484. fi
  485. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  486. gl_WCTYPE_H
  487. gl_XALLOC
  488. gl_XSIZE
  489. gl_XSTRNDUP
  490. # End of code from modules
  491. m4_ifval(gl_LIBSOURCES_LIST, [
  492. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  493. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  494. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  495. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  496. exit 1
  497. fi
  498. done])dnl
  499. m4_if(m4_sysval, [0], [],
  500. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  501. ])
  502. m4_popdef([gl_LIBSOURCES_DIR])
  503. m4_popdef([gl_LIBSOURCES_LIST])
  504. m4_popdef([AC_LIBSOURCES])
  505. m4_popdef([AC_REPLACE_FUNCS])
  506. m4_popdef([AC_LIBOBJ])
  507. AC_CONFIG_COMMANDS_PRE([
  508. gl_libobjs=
  509. gl_ltlibobjs=
  510. if test -n "$gl_LIBOBJS"; then
  511. # Remove the extension.
  512. sed_drop_objext='s/\.o$//;s/\.obj$//'
  513. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  514. gl_libobjs="$gl_libobjs $i.$ac_objext"
  515. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  516. done
  517. fi
  518. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  519. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  520. ])
  521. gltests_libdeps=
  522. gltests_ltlibdeps=
  523. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  524. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  525. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  526. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  527. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  528. gl_COMMON
  529. gl_source_base='tests'
  530. changequote(,)dnl
  531. 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
  532. changequote([, ])dnl
  533. AC_SUBST([gltests_WITNESS])
  534. gl_module_indicator_condition=$gltests_WITNESS
  535. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  536. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  537. m4_ifval(gltests_LIBSOURCES_LIST, [
  538. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  539. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  540. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  541. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  542. exit 1
  543. fi
  544. done])dnl
  545. m4_if(m4_sysval, [0], [],
  546. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  547. ])
  548. m4_popdef([gltests_LIBSOURCES_DIR])
  549. m4_popdef([gltests_LIBSOURCES_LIST])
  550. m4_popdef([AC_LIBSOURCES])
  551. m4_popdef([AC_REPLACE_FUNCS])
  552. m4_popdef([AC_LIBOBJ])
  553. AC_CONFIG_COMMANDS_PRE([
  554. gltests_libobjs=
  555. gltests_ltlibobjs=
  556. if test -n "$gltests_LIBOBJS"; then
  557. # Remove the extension.
  558. sed_drop_objext='s/\.o$//;s/\.obj$//'
  559. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  560. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  561. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  562. done
  563. fi
  564. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  565. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  566. ])
  567. LIBGNU_LIBDEPS="$gl_libdeps"
  568. AC_SUBST([LIBGNU_LIBDEPS])
  569. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  570. AC_SUBST([LIBGNU_LTLIBDEPS])
  571. ])
  572. # Like AC_LIBOBJ, except that the module name goes
  573. # into gl_LIBOBJS instead of into LIBOBJS.
  574. AC_DEFUN([gl_LIBOBJ], [
  575. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  576. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  577. ])
  578. # Like AC_REPLACE_FUNCS, except that the module name goes
  579. # into gl_LIBOBJS instead of into LIBOBJS.
  580. AC_DEFUN([gl_REPLACE_FUNCS], [
  581. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  582. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  583. ])
  584. # Like AC_LIBSOURCES, except the directory where the source file is
  585. # expected is derived from the gnulib-tool parameterization,
  586. # and alloca is special cased (for the alloca-opt module).
  587. # We could also entirely rely on EXTRA_lib..._SOURCES.
  588. AC_DEFUN([gl_LIBSOURCES], [
  589. m4_foreach([_gl_NAME], [$1], [
  590. m4_if(_gl_NAME, [alloca.c], [], [
  591. m4_define([gl_LIBSOURCES_DIR], [gl])
  592. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  593. ])
  594. ])
  595. ])
  596. # Like AC_LIBOBJ, except that the module name goes
  597. # into gltests_LIBOBJS instead of into LIBOBJS.
  598. AC_DEFUN([gltests_LIBOBJ], [
  599. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  600. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  601. ])
  602. # Like AC_REPLACE_FUNCS, except that the module name goes
  603. # into gltests_LIBOBJS instead of into LIBOBJS.
  604. AC_DEFUN([gltests_REPLACE_FUNCS], [
  605. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  606. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  607. ])
  608. # Like AC_LIBSOURCES, except the directory where the source file is
  609. # expected is derived from the gnulib-tool parameterization,
  610. # and alloca is special cased (for the alloca-opt module).
  611. # We could also entirely rely on EXTRA_lib..._SOURCES.
  612. AC_DEFUN([gltests_LIBSOURCES], [
  613. m4_foreach([_gl_NAME], [$1], [
  614. m4_if(_gl_NAME, [alloca.c], [], [
  615. m4_define([gltests_LIBSOURCES_DIR], [tests])
  616. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  617. ])
  618. ])
  619. ])
  620. # This macro records the list of files which have been installed by
  621. # gnulib-tool and may be removed by future gnulib-tool invocations.
  622. AC_DEFUN([gl_FILE_LIST], [
  623. build-aux/config.rpath
  624. build-aux/snippet/_Noreturn.h
  625. build-aux/snippet/arg-nonnull.h
  626. build-aux/snippet/c++defs.h
  627. build-aux/snippet/warn-on-use.h
  628. lib/alloca.in.h
  629. lib/arpa_inet.in.h
  630. lib/asnprintf.c
  631. lib/asprintf.c
  632. lib/base64.c
  633. lib/base64.h
  634. lib/basename-lgpl.c
  635. lib/basename.c
  636. lib/btowc.c
  637. lib/config.charset
  638. lib/dirname-lgpl.c
  639. lib/dirname.c
  640. lib/dirname.h
  641. lib/dosname.h
  642. lib/errno.in.h
  643. lib/error.c
  644. lib/error.h
  645. lib/exitfail.c
  646. lib/exitfail.h
  647. lib/fd-hook.c
  648. lib/fd-hook.h
  649. lib/float+.h
  650. lib/float.c
  651. lib/float.in.h
  652. lib/floor.c
  653. lib/floorf.c
  654. lib/fsusage.c
  655. lib/fsusage.h
  656. lib/full-read.c
  657. lib/full-read.h
  658. lib/full-write.c
  659. lib/gai_strerror.c
  660. lib/getaddrinfo.c
  661. lib/gethostname.c
  662. lib/getloadavg.c
  663. lib/getopt.c
  664. lib/getopt.in.h
  665. lib/getopt1.c
  666. lib/getopt_int.h
  667. lib/gettext.h
  668. lib/gettimeofday.c
  669. lib/gl_openssl.h
  670. lib/glthread/lock.c
  671. lib/glthread/lock.h
  672. lib/glthread/threadlib.c
  673. lib/idpriv-droptemp.c
  674. lib/idpriv.h
  675. lib/inet_ntop.c
  676. lib/intprops.h
  677. lib/itold.c
  678. lib/langinfo.in.h
  679. lib/localcharset.c
  680. lib/localcharset.h
  681. lib/locale.in.h
  682. lib/localeconv.c
  683. lib/malloc.c
  684. lib/malloca.c
  685. lib/malloca.h
  686. lib/malloca.valgrind
  687. lib/math.c
  688. lib/math.in.h
  689. lib/mbrtowc.c
  690. lib/mbsinit.c
  691. lib/mbtowc-impl.h
  692. lib/mbtowc.c
  693. lib/memchr.c
  694. lib/memchr.valgrind
  695. lib/mktime-internal.h
  696. lib/mktime.c
  697. lib/mountlist.c
  698. lib/mountlist.h
  699. lib/msvc-inval.c
  700. lib/msvc-inval.h
  701. lib/msvc-nothrow.c
  702. lib/msvc-nothrow.h
  703. lib/netdb.in.h
  704. lib/netinet_in.in.h
  705. lib/nl_langinfo.c
  706. lib/printf-args.c
  707. lib/printf-args.h
  708. lib/printf-parse.c
  709. lib/printf-parse.h
  710. lib/read.c
  711. lib/ref-add.sin
  712. lib/ref-del.sin
  713. lib/regcomp.c
  714. lib/regex.c
  715. lib/regex.h
  716. lib/regex_internal.c
  717. lib/regex_internal.h
  718. lib/regexec.c
  719. lib/safe-read.c
  720. lib/safe-read.h
  721. lib/setenv.c
  722. lib/sha1.c
  723. lib/sha1.h
  724. lib/size_max.h
  725. lib/snprintf.c
  726. lib/sockets.c
  727. lib/sockets.h
  728. lib/stdalign.in.h
  729. lib/stdbool.in.h
  730. lib/stddef.in.h
  731. lib/stdint.in.h
  732. lib/stdio.in.h
  733. lib/stdlib.in.h
  734. lib/str-two-way.h
  735. lib/strcasecmp.c
  736. lib/strcasestr.c
  737. lib/streq.h
  738. lib/strerror-override.c
  739. lib/strerror-override.h
  740. lib/strerror.c
  741. lib/string.in.h
  742. lib/strings.in.h
  743. lib/stripslash.c
  744. lib/strncasecmp.c
  745. lib/strndup.c
  746. lib/strnlen.c
  747. lib/strsep.c
  748. lib/strstr.c
  749. lib/sys_socket.c
  750. lib/sys_socket.in.h
  751. lib/sys_time.in.h
  752. lib/sys_types.in.h
  753. lib/sys_uio.in.h
  754. lib/time.in.h
  755. lib/time_r.c
  756. lib/timegm.c
  757. lib/unistd.c
  758. lib/unistd.in.h
  759. lib/unsetenv.c
  760. lib/vasnprintf.c
  761. lib/vasnprintf.h
  762. lib/vasprintf.c
  763. lib/verify.h
  764. lib/vsnprintf.c
  765. lib/w32sock.h
  766. lib/wchar.in.h
  767. lib/wcrtomb.c
  768. lib/wctype-h.c
  769. lib/wctype.in.h
  770. lib/xalloc-die.c
  771. lib/xalloc-oversized.h
  772. lib/xalloc.h
  773. lib/xmalloc.c
  774. lib/xsize.c
  775. lib/xsize.h
  776. lib/xstrndup.c
  777. lib/xstrndup.h
  778. m4/00gnulib.m4
  779. m4/absolute-header.m4
  780. m4/alloca.m4
  781. m4/arpa_inet_h.m4
  782. m4/base64.m4
  783. m4/btowc.m4
  784. m4/codeset.m4
  785. m4/configmake.m4
  786. m4/dirname.m4
  787. m4/double-slash-root.m4
  788. m4/eealloc.m4
  789. m4/environ.m4
  790. m4/errno_h.m4
  791. m4/error.m4
  792. m4/exponentd.m4
  793. m4/extensions.m4
  794. m4/extern-inline.m4
  795. m4/fcntl-o.m4
  796. m4/float_h.m4
  797. m4/floorf.m4
  798. m4/fstypename.m4
  799. m4/fsusage.m4
  800. m4/getaddrinfo.m4
  801. m4/gethostname.m4
  802. m4/getloadavg.m4
  803. m4/getopt.m4
  804. m4/gettext.m4
  805. m4/gettimeofday.m4
  806. m4/gl-openssl.m4
  807. m4/glibc2.m4
  808. m4/glibc21.m4
  809. m4/gnulib-common.m4
  810. m4/hostent.m4
  811. m4/iconv.m4
  812. m4/idpriv.m4
  813. m4/include_next.m4
  814. m4/inet_ntop.m4
  815. m4/intdiv0.m4
  816. m4/intl.m4
  817. m4/intldir.m4
  818. m4/intlmacosx.m4
  819. m4/intmax.m4
  820. m4/intmax_t.m4
  821. m4/inttypes-pri.m4
  822. m4/inttypes_h.m4
  823. m4/langinfo_h.m4
  824. m4/largefile.m4
  825. m4/lcmessage.m4
  826. m4/lib-ld.m4
  827. m4/lib-link.m4
  828. m4/lib-prefix.m4
  829. m4/localcharset.m4
  830. m4/locale-fr.m4
  831. m4/locale-ja.m4
  832. m4/locale-zh.m4
  833. m4/locale_h.m4
  834. m4/localeconv.m4
  835. m4/lock.m4
  836. m4/longlong.m4
  837. m4/ls-mntd-fs.m4
  838. m4/malloc.m4
  839. m4/malloca.m4
  840. m4/math_h.m4
  841. m4/mbrtowc.m4
  842. m4/mbsinit.m4
  843. m4/mbstate_t.m4
  844. m4/mbtowc.m4
  845. m4/memchr.m4
  846. m4/mktime.m4
  847. m4/mmap-anon.m4
  848. m4/mountlist.m4
  849. m4/msvc-inval.m4
  850. m4/msvc-nothrow.m4
  851. m4/multiarch.m4
  852. m4/netdb_h.m4
  853. m4/netinet_in_h.m4
  854. m4/nl_langinfo.m4
  855. m4/nls.m4
  856. m4/nocrash.m4
  857. m4/off_t.m4
  858. m4/onceonly.m4
  859. m4/po.m4
  860. m4/printf-posix.m4
  861. m4/printf.m4
  862. m4/progtest.m4
  863. m4/read.m4
  864. m4/regex.m4
  865. m4/safe-read.m4
  866. m4/servent.m4
  867. m4/setenv.m4
  868. m4/sha1.m4
  869. m4/size_max.m4
  870. m4/snprintf.m4
  871. m4/socketlib.m4
  872. m4/sockets.m4
  873. m4/socklen.m4
  874. m4/sockpfaf.m4
  875. m4/ssize_t.m4
  876. m4/stdalign.m4
  877. m4/stdbool.m4
  878. m4/stddef_h.m4
  879. m4/stdint.m4
  880. m4/stdint_h.m4
  881. m4/stdio_h.m4
  882. m4/stdlib_h.m4
  883. m4/strcase.m4
  884. m4/strcasestr.m4
  885. m4/strerror.m4
  886. m4/string_h.m4
  887. m4/strings_h.m4
  888. m4/strndup.m4
  889. m4/strnlen.m4
  890. m4/strsep.m4
  891. m4/strstr.m4
  892. m4/sys_socket_h.m4
  893. m4/sys_time_h.m4
  894. m4/sys_types_h.m4
  895. m4/sys_uio_h.m4
  896. m4/threadlib.m4
  897. m4/time_h.m4
  898. m4/time_r.m4
  899. m4/timegm.m4
  900. m4/uintmax_t.m4
  901. m4/unistd_h.m4
  902. m4/vasnprintf.m4
  903. m4/vasprintf.m4
  904. m4/visibility.m4
  905. m4/vsnprintf.m4
  906. m4/warn-on-use.m4
  907. m4/wchar_h.m4
  908. m4/wchar_t.m4
  909. m4/wcrtomb.m4
  910. m4/wctype_h.m4
  911. m4/wint_t.m4
  912. m4/xalloc.m4
  913. m4/xsize.m4
  914. m4/xstrndup.m4
  915. ])