gnulib-comp.m4 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2023 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 <https://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. # Pre-early section.
  39. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  40. AC_REQUIRE([gl_PROG_AR_RANLIB])
  41. # Code from module absolute-header:
  42. # Code from module accept:
  43. # Code from module accept4:
  44. # Code from module access:
  45. # Code from module alignasof:
  46. # Code from module alignof:
  47. # Code from module alloca:
  48. # Code from module alloca-opt:
  49. # Code from module announce-gen:
  50. # Code from module arpa_inet:
  51. # Code from module assert-h:
  52. # Code from module assure:
  53. # Code from module attribute:
  54. # Code from module autobuild:
  55. AB_INIT
  56. # Code from module basename-lgpl:
  57. # Code from module binary-io:
  58. # Code from module bind:
  59. # Code from module btowc:
  60. # Code from module builtin-expect:
  61. # Code from module byteswap:
  62. # Code from module c-ctype:
  63. # Code from module c-strcase:
  64. # Code from module c-strcaseeq:
  65. # Code from module c99:
  66. # Code from module canonicalize-lgpl:
  67. # Code from module ceil:
  68. # Code from module chdir:
  69. # Code from module clock-time:
  70. # Code from module cloexec:
  71. # Code from module close:
  72. # Code from module concat-filename:
  73. # Code from module connect:
  74. # Code from module copysign:
  75. # Code from module dirent:
  76. # Code from module dirfd:
  77. # Code from module dirname-lgpl:
  78. # Code from module double-slash-root:
  79. # Code from module dup2:
  80. # Code from module duplocale:
  81. # Code from module eloop-threshold:
  82. # Code from module environ:
  83. # Code from module errno:
  84. # Code from module extensions:
  85. # Code from module extern-inline:
  86. # Code from module fcntl:
  87. # Code from module fcntl-h:
  88. # Code from module fd-hook:
  89. # Code from module filename:
  90. # Code from module findprog-in:
  91. # Code from module flexmember:
  92. # Code from module float:
  93. # Code from module flock:
  94. # Code from module floor:
  95. # Code from module fpieee:
  96. AC_REQUIRE([gl_FP_IEEE])
  97. # Code from module free-posix:
  98. # Code from module frexp:
  99. # Code from module fstat:
  100. # Code from module fsync:
  101. # Code from module full-read:
  102. # Code from module full-write:
  103. # Code from module func:
  104. # Code from module gen-header:
  105. # Code from module gendocs:
  106. # Code from module getaddrinfo:
  107. # Code from module getdtablesize:
  108. # Code from module gethostname:
  109. # Code from module getlogin:
  110. # Code from module getpeername:
  111. # Code from module getrandom:
  112. # Code from module getsockname:
  113. # Code from module getsockopt:
  114. # Code from module gettext-h:
  115. # Code from module git-version-gen:
  116. # Code from module gitlog-to-changelog:
  117. # Code from module glibc-internal/dynarray:
  118. # Code from module glibc-internal/scratch_buffer:
  119. # Code from module gnu-web-doc-update:
  120. # Code from module gnumakefile:
  121. # Code from module gnupload:
  122. # Code from module gperf:
  123. # Code from module hard-locale:
  124. # Code from module havelib:
  125. # Code from module hostent:
  126. # Code from module iconv:
  127. # Code from module iconv-h:
  128. # Code from module iconv_open:
  129. # Code from module iconv_open-utf:
  130. # Code from module idx:
  131. # Code from module include_next:
  132. # Code from module inet_ntop:
  133. # Code from module inet_pton:
  134. # Code from module intprops:
  135. # Code from module inttypes-incomplete:
  136. # Code from module isfinite:
  137. # Code from module isinf:
  138. # Code from module isnan:
  139. # Code from module isnand:
  140. # Code from module isnand-nolibm:
  141. # Code from module isnanf:
  142. # Code from module isnanf-nolibm:
  143. # Code from module isnanl:
  144. # Code from module isnanl-nolibm:
  145. # Code from module langinfo:
  146. # Code from module largefile:
  147. AC_REQUIRE([AC_SYS_LARGEFILE])
  148. # Code from module ldexp:
  149. # Code from module lib-symbol-versions:
  150. # Code from module lib-symbol-visibility:
  151. # Code from module libc-config:
  152. # Code from module libunistring:
  153. # Code from module limits-h:
  154. # Code from module link:
  155. # Code from module listen:
  156. # Code from module localcharset:
  157. # Code from module locale:
  158. # Code from module localeconv:
  159. # Code from module log:
  160. # Code from module log1p:
  161. # Code from module lstat:
  162. # Code from module maintainer-makefile:
  163. # Code from module malloc-gnu:
  164. # Code from module malloc-posix:
  165. # Code from module malloca:
  166. # Code from module math:
  167. # Code from module mbrtowc:
  168. # Code from module mbsinit:
  169. # Code from module mbtowc:
  170. # Code from module memchr:
  171. # Code from module mempcpy:
  172. # Code from module minmax:
  173. # Code from module mkdir:
  174. # Code from module mkostemp:
  175. # Code from module mktime:
  176. # Code from module mktime-internal:
  177. # Code from module msvc-inval:
  178. # Code from module msvc-nothrow:
  179. # Code from module multiarch:
  180. # Code from module netdb:
  181. # Code from module netinet_in:
  182. # Code from module nl_langinfo:
  183. # Code from module nocrash:
  184. # Code from module nproc:
  185. # Code from module nstrftime:
  186. # Code from module open:
  187. # Code from module pathmax:
  188. # Code from module pipe-posix:
  189. # Code from module pipe2:
  190. # Code from module poll:
  191. # Code from module poll-h:
  192. # Code from module posix_spawn:
  193. # Code from module posix_spawn-internal:
  194. # Code from module posix_spawn_file_actions_addclose:
  195. # Code from module posix_spawn_file_actions_adddup2:
  196. # Code from module posix_spawn_file_actions_addopen:
  197. # Code from module posix_spawn_file_actions_init:
  198. # Code from module posix_spawnp:
  199. # Code from module putenv:
  200. # Code from module raise:
  201. # Code from module rawmemchr:
  202. # Code from module read:
  203. # Code from module readlink:
  204. # Code from module realloc-posix:
  205. # Code from module recv:
  206. # Code from module recvfrom:
  207. # Code from module regex:
  208. # Code from module rename:
  209. # Code from module rmdir:
  210. # Code from module round:
  211. # Code from module safe-read:
  212. # Code from module safe-write:
  213. # Code from module same-inode:
  214. # Code from module sched:
  215. # Code from module select:
  216. # Code from module send:
  217. # Code from module sendto:
  218. # Code from module servent:
  219. # Code from module setenv:
  220. # Code from module setlocale-null:
  221. # Code from module setsockopt:
  222. # Code from module sh-filename:
  223. # Code from module shutdown:
  224. # Code from module signal-h:
  225. # Code from module signbit:
  226. # Code from module size_max:
  227. # Code from module snippet/_Noreturn:
  228. # Code from module snippet/arg-nonnull:
  229. # Code from module snippet/c++defs:
  230. # Code from module snippet/warn-on-use:
  231. # Code from module snprintf:
  232. # Code from module socket:
  233. # Code from module socketlib:
  234. # Code from module sockets:
  235. # Code from module socklen:
  236. # Code from module spawn:
  237. # Code from module ssize_t:
  238. # Code from module stat:
  239. # Code from module stat-time:
  240. # Code from module std-gnu11:
  241. # Code from module stdbool:
  242. # Code from module stdckdint:
  243. # Code from module stddef:
  244. # Code from module stdint:
  245. # Code from module stdio:
  246. # Code from module stdlib:
  247. # Code from module stpcpy:
  248. # Code from module strchrnul:
  249. # Code from module strdup-posix:
  250. # Code from module streq:
  251. # Code from module striconveh:
  252. # Code from module string:
  253. # Code from module sys_file:
  254. # Code from module sys_random:
  255. # Code from module sys_select:
  256. # Code from module sys_socket:
  257. # Code from module sys_stat:
  258. # Code from module sys_time:
  259. # Code from module sys_times:
  260. # Code from module sys_types:
  261. # Code from module sys_uio:
  262. # Code from module tempname:
  263. # Code from module time:
  264. # Code from module time_r:
  265. # Code from module time_rz:
  266. # Code from module timegm:
  267. # Code from module times:
  268. # Code from module trunc:
  269. # Code from module tzset:
  270. # Code from module unistd:
  271. # Code from module unsetenv:
  272. # Code from module useless-if-before-free:
  273. # Code from module vararrays:
  274. # Code from module vasnprintf:
  275. # Code from module vc-list-files:
  276. # Code from module verify:
  277. # Code from module vsnprintf:
  278. # Code from module warnings:
  279. # Code from module wchar:
  280. # Code from module wcrtomb:
  281. # Code from module wctype-h:
  282. # Code from module windows-spawn:
  283. # Code from module write:
  284. # Code from module xalloc-oversized:
  285. # Code from module xsize:
  286. ])
  287. # This macro should be invoked from ./configure.ac, in the section
  288. # "Check for header files, types and library functions".
  289. AC_DEFUN([gl_INIT],
  290. [
  291. AC_CONFIG_LIBOBJ_DIR([lib])
  292. AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
  293. gl_cond_libtool=true
  294. gl_m4_base='m4'
  295. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  296. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  297. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  298. m4_pushdef([gl_LIBSOURCES_LIST], [])
  299. m4_pushdef([gl_LIBSOURCES_DIR], [])
  300. m4_pushdef([GL_MACRO_PREFIX], [gl])
  301. m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
  302. gl_COMMON
  303. gl_source_base='lib'
  304. gl_source_base_prefix=
  305. AC_REQUIRE([gl_SYS_SOCKET_H])
  306. gl_CONDITIONAL([GL_COND_OBJ_ACCEPT], [test "$ac_cv_header_winsock2_h" = yes])
  307. gl_SYS_SOCKET_MODULE_INDICATOR([accept])
  308. gl_FUNC_ACCEPT4
  309. gl_SYS_SOCKET_MODULE_INDICATOR([accept4])
  310. gl_ALIGNASOF
  311. gl_FUNC_ALLOCA
  312. gl_CONDITIONAL_HEADER([alloca.h])
  313. AC_PROG_MKDIR_P
  314. gl_ARPA_INET_H
  315. gl_ARPA_INET_H_REQUIRE_DEFAULTS
  316. AC_PROG_MKDIR_P
  317. gl_ASSERT_H
  318. gl_CONDITIONAL_HEADER([assert.h])
  319. AC_PROG_MKDIR_P
  320. AC_REQUIRE([gl_SYS_SOCKET_H])
  321. gl_CONDITIONAL([GL_COND_OBJ_BIND], [test "$ac_cv_header_winsock2_h" = yes])
  322. gl_SYS_SOCKET_MODULE_INDICATOR([bind])
  323. gl_BYTESWAP
  324. gl_CONDITIONAL_HEADER([byteswap.h])
  325. AC_PROG_MKDIR_P
  326. gl_CANONICALIZE_LGPL
  327. gl_CONDITIONAL([GL_COND_OBJ_CANONICALIZE_LGPL],
  328. [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1])
  329. gl_MODULE_INDICATOR([canonicalize-lgpl])
  330. gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
  331. gl_STDLIB_MODULE_INDICATOR([realpath])
  332. gl_FUNC_CEIL
  333. gl_CONDITIONAL([GL_COND_OBJ_CEIL], [test $REPLACE_CEIL = 1])
  334. gl_MATH_MODULE_INDICATOR([ceil])
  335. gl_CLOCK_TIME
  336. gl_FUNC_CLOSE
  337. gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
  338. gl_UNISTD_MODULE_INDICATOR([close])
  339. AC_REQUIRE([gl_SYS_SOCKET_H])
  340. gl_CONDITIONAL([GL_COND_OBJ_CONNECT], [test "$ac_cv_header_winsock2_h" = yes])
  341. gl_SYS_SOCKET_MODULE_INDICATOR([connect])
  342. gl_FUNC_COPYSIGN
  343. gl_CONDITIONAL([GL_COND_OBJ_COPYSIGN], [test $HAVE_COPYSIGN = 0])
  344. gl_MATH_MODULE_INDICATOR([copysign])
  345. gl_DIRENT_H
  346. gl_DIRENT_H_REQUIRE_DEFAULTS
  347. AC_PROG_MKDIR_P
  348. gl_FUNC_DIRFD
  349. gl_CONDITIONAL([GL_COND_OBJ_DIRFD],
  350. [test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1])
  351. AM_COND_IF([GL_COND_OBJ_DIRFD], [
  352. gl_PREREQ_DIRFD
  353. ])
  354. gl_DIRENT_MODULE_INDICATOR([dirfd])
  355. gl_DOUBLE_SLASH_ROOT
  356. gl_FUNC_DUPLOCALE
  357. gl_CONDITIONAL([GL_COND_OBJ_DUPLOCALE], [test $REPLACE_DUPLOCALE = 1])
  358. AM_COND_IF([GL_COND_OBJ_DUPLOCALE], [
  359. gl_PREREQ_DUPLOCALE
  360. ])
  361. gl_LOCALE_MODULE_INDICATOR([duplocale])
  362. gl_ENVIRON
  363. gl_UNISTD_MODULE_INDICATOR([environ])
  364. gl_HEADER_ERRNO_H
  365. gl_CONDITIONAL_HEADER([errno.h])
  366. AC_PROG_MKDIR_P
  367. AC_REQUIRE([gl_EXTERN_INLINE])
  368. gl_FCNTL_H
  369. gl_FCNTL_H_REQUIRE_DEFAULTS
  370. AC_PROG_MKDIR_P
  371. AC_C_FLEXIBLE_ARRAY_MEMBER
  372. gl_FLOAT_H
  373. gl_CONDITIONAL_HEADER([float.h])
  374. AC_PROG_MKDIR_P
  375. gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
  376. gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
  377. gl_FUNC_FLOCK
  378. gl_CONDITIONAL([GL_COND_OBJ_FLOCK], [test $HAVE_FLOCK = 0])
  379. AM_COND_IF([GL_COND_OBJ_FLOCK], [
  380. gl_PREREQ_FLOCK
  381. ])
  382. gl_SYS_FILE_MODULE_INDICATOR([flock])
  383. AC_REQUIRE([gl_FUNC_FLOOR])
  384. gl_CONDITIONAL([GL_COND_OBJ_FLOOR], [test $REPLACE_FLOOR = 1])
  385. gl_MATH_MODULE_INDICATOR([floor])
  386. gl_FUNC_FREE
  387. gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
  388. AM_COND_IF([GL_COND_OBJ_FREE], [
  389. gl_PREREQ_FREE
  390. ])
  391. gl_STDLIB_MODULE_INDICATOR([free-posix])
  392. AC_REQUIRE([gl_FUNC_FREXP])
  393. if test $gl_func_frexp != yes; then
  394. AC_LIBOBJ([frexp])
  395. fi
  396. gl_MATH_MODULE_INDICATOR([frexp])
  397. gl_FUNC_FSTAT
  398. gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
  399. AM_COND_IF([GL_COND_OBJ_FSTAT], [
  400. case "$host_os" in
  401. mingw*)
  402. AC_LIBOBJ([stat-w32])
  403. ;;
  404. esac
  405. gl_PREREQ_FSTAT
  406. ])
  407. gl_SYS_STAT_MODULE_INDICATOR([fstat])
  408. gl_FUNC_FSYNC
  409. gl_CONDITIONAL([GL_COND_OBJ_FSYNC], [test $HAVE_FSYNC = 0])
  410. AM_COND_IF([GL_COND_OBJ_FSYNC], [
  411. gl_PREREQ_FSYNC
  412. ])
  413. gl_UNISTD_MODULE_INDICATOR([fsync])
  414. gl_FUNC
  415. gl_GETADDRINFO
  416. gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
  417. [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
  418. gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
  419. [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
  420. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  421. gl_FUNC_GETHOSTNAME
  422. gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
  423. AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
  424. gl_PREREQ_GETHOSTNAME
  425. ])
  426. gl_UNISTD_MODULE_INDICATOR([gethostname])
  427. gl_FUNC_GETLOGIN
  428. gl_CONDITIONAL([GL_COND_OBJ_GETLOGIN], [test $HAVE_GETLOGIN = 0])
  429. gl_UNISTD_MODULE_INDICATOR([getlogin])
  430. AC_REQUIRE([gl_LIB_GETLOGIN])
  431. AC_REQUIRE([gl_SYS_SOCKET_H])
  432. gl_CONDITIONAL([GL_COND_OBJ_GETPEERNAME],
  433. [test "$ac_cv_header_winsock2_h" = yes])
  434. gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
  435. AC_REQUIRE([gl_SYS_SOCKET_H])
  436. gl_CONDITIONAL([GL_COND_OBJ_GETSOCKNAME],
  437. [test "$ac_cv_header_winsock2_h" = yes])
  438. gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
  439. AC_REQUIRE([gl_SYS_SOCKET_H])
  440. gl_CONDITIONAL([GL_COND_OBJ_GETSOCKOPT],
  441. [test "$ac_cv_header_winsock2_h" = yes])
  442. gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
  443. # Autoconf 2.61a.99 and earlier don't support linking a file only
  444. # in VPATH builds. But since GNUmakefile is for maintainer use
  445. # only, it does not matter if we skip the link with older autoconf.
  446. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
  447. # builds, so use a shell variable to bypass this.
  448. GNUmakefile=GNUmakefile
  449. m4_if(m4_version_compare([2.61a.100],
  450. m4_defn([m4_PACKAGE_VERSION])), [1], [],
  451. [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
  452. [GNUmakefile=$GNUmakefile])])
  453. AC_DEFUN([gl_HAVE_MODULE_HAVELIB])
  454. AM_ICONV
  455. m4_ifdef([gl_ICONV_MODULE_INDICATOR],
  456. [gl_ICONV_MODULE_INDICATOR([iconv])])
  457. gl_ICONV_H
  458. gl_ICONV_H_REQUIRE_DEFAULTS
  459. gl_CONDITIONAL_HEADER([iconv.h])
  460. AC_PROG_MKDIR_P
  461. gl_FUNC_ICONV_OPEN
  462. dnl Because of gl_REPLACE_ICONV_H:
  463. gl_CONDITIONAL_HEADER([iconv.h])
  464. gl_CONDITIONAL([GL_COND_OBJ_ICONV_OPEN], [test $REPLACE_ICONV_OPEN = 1])
  465. gl_CONDITIONAL([GL_COND_OBJ_ICONV], [test $REPLACE_ICONV = 1])
  466. gl_FUNC_ICONV_OPEN_UTF
  467. gl_FUNC_INET_NTOP
  468. gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
  469. [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
  470. AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
  471. gl_PREREQ_INET_NTOP
  472. ])
  473. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  474. gl_FUNC_INET_PTON
  475. gl_CONDITIONAL([GL_COND_OBJ_INET_PTON],
  476. [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1])
  477. AM_COND_IF([GL_COND_OBJ_INET_PTON], [
  478. gl_PREREQ_INET_PTON
  479. ])
  480. gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
  481. gl_INTTYPES_INCOMPLETE
  482. gl_INTTYPES_H_REQUIRE_DEFAULTS
  483. AC_PROG_MKDIR_P
  484. gl_ISFINITE
  485. gl_CONDITIONAL([GL_COND_OBJ_ISFINITE], [test $REPLACE_ISFINITE = 1])
  486. gl_MATH_MODULE_INDICATOR([isfinite])
  487. gl_ISINF
  488. gl_CONDITIONAL([GL_COND_OBJ_ISINF], [test $REPLACE_ISINF = 1])
  489. gl_MATH_MODULE_INDICATOR([isinf])
  490. gl_ISNAN
  491. gl_MATH_MODULE_INDICATOR([isnan])
  492. gl_FUNC_ISNAND
  493. m4_ifdef([gl_ISNAN], [
  494. AC_REQUIRE([gl_ISNAN])
  495. ])
  496. if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
  497. AC_LIBOBJ([isnand])
  498. gl_PREREQ_ISNAND
  499. fi
  500. gl_MATH_MODULE_INDICATOR([isnand])
  501. gl_FUNC_ISNANF
  502. m4_ifdef([gl_ISNAN], [
  503. AC_REQUIRE([gl_ISNAN])
  504. ])
  505. if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
  506. AC_LIBOBJ([isnanf])
  507. gl_PREREQ_ISNANF
  508. fi
  509. gl_MATH_MODULE_INDICATOR([isnanf])
  510. gl_FUNC_ISNANL
  511. m4_ifdef([gl_ISNAN], [
  512. AC_REQUIRE([gl_ISNAN])
  513. ])
  514. if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
  515. AC_LIBOBJ([isnanl])
  516. gl_PREREQ_ISNANL
  517. fi
  518. gl_MATH_MODULE_INDICATOR([isnanl])
  519. gl_LANGINFO_H
  520. gl_LANGINFO_H_REQUIRE_DEFAULTS
  521. AC_PROG_MKDIR_P
  522. AC_REQUIRE([gl_LARGEFILE])
  523. gl_FUNC_LDEXP
  524. gl_LD_VERSION_SCRIPT
  525. gl_VISIBILITY
  526. gl___INLINE
  527. gl_LIBUNISTRING
  528. gl_LIMITS_H
  529. gl_CONDITIONAL_HEADER([limits.h])
  530. AC_PROG_MKDIR_P
  531. gl_FUNC_LINK
  532. gl_CONDITIONAL([GL_COND_OBJ_LINK],
  533. [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1])
  534. gl_UNISTD_MODULE_INDICATOR([link])
  535. AC_REQUIRE([gl_SYS_SOCKET_H])
  536. gl_CONDITIONAL([GL_COND_OBJ_LISTEN], [test "$ac_cv_header_winsock2_h" = yes])
  537. gl_SYS_SOCKET_MODULE_INDICATOR([listen])
  538. gl_LOCALCHARSET
  539. dnl For backward compatibility. Some packages still use this.
  540. LOCALCHARSET_TESTS_ENVIRONMENT=
  541. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  542. gl_LOCALE_H
  543. gl_LOCALE_H_REQUIRE_DEFAULTS
  544. AC_PROG_MKDIR_P
  545. gl_FUNC_LOG1P
  546. gl_CONDITIONAL([GL_COND_OBJ_LOG1P],
  547. [test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1])
  548. gl_MATH_MODULE_INDICATOR([log1p])
  549. gl_FUNC_LSTAT
  550. gl_CONDITIONAL([GL_COND_OBJ_LSTAT], [test $REPLACE_LSTAT = 1])
  551. AM_COND_IF([GL_COND_OBJ_LSTAT], [
  552. gl_PREREQ_LSTAT
  553. ])
  554. gl_SYS_STAT_MODULE_INDICATOR([lstat])
  555. AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
  556. [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
  557. AC_REQUIRE([AC_PROG_SED])
  558. AC_REQUIRE([AC_PROG_GREP])
  559. gl_FUNC_MALLOC_GNU
  560. if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
  561. AC_LIBOBJ([malloc])
  562. fi
  563. gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
  564. AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
  565. if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
  566. AC_LIBOBJ([malloc])
  567. fi
  568. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  569. gl_MALLOCA
  570. gl_MATH_H
  571. gl_MATH_H_REQUIRE_DEFAULTS
  572. AC_PROG_MKDIR_P
  573. gl_MINMAX
  574. gl_FUNC_MKDIR
  575. gl_CONDITIONAL([GL_COND_OBJ_MKDIR], [test $REPLACE_MKDIR = 1])
  576. gl_SYS_STAT_MODULE_INDICATOR([mkdir])
  577. gl_FUNC_MKOSTEMP
  578. gl_CONDITIONAL([GL_COND_OBJ_MKOSTEMP], [test $HAVE_MKOSTEMP = 0])
  579. AM_COND_IF([GL_COND_OBJ_MKOSTEMP], [
  580. gl_PREREQ_MKOSTEMP
  581. ])
  582. gl_MODULE_INDICATOR([mkostemp])
  583. gl_STDLIB_MODULE_INDICATOR([mkostemp])
  584. AC_REQUIRE([gl_MSVC_INVAL])
  585. gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
  586. [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
  587. AC_REQUIRE([gl_MSVC_NOTHROW])
  588. gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
  589. [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
  590. gl_MODULE_INDICATOR([msvc-nothrow])
  591. gl_MULTIARCH
  592. gl_NETDB_H
  593. gl_NETDB_H_REQUIRE_DEFAULTS
  594. AC_PROG_MKDIR_P
  595. gl_FUNC_NL_LANGINFO
  596. gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
  597. [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
  598. gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
  599. [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
  600. if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
  601. gl_PREREQ_NL_LANGINFO_LOCK
  602. fi
  603. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  604. gl_NPROC
  605. gl_FUNC_GNU_STRFTIME
  606. gl_FUNC_OPEN
  607. gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
  608. AM_COND_IF([GL_COND_OBJ_OPEN], [
  609. gl_PREREQ_OPEN
  610. ])
  611. gl_FCNTL_MODULE_INDICATOR([open])
  612. gl_FUNC_PIPE
  613. gl_CONDITIONAL([GL_COND_OBJ_PIPE], [test $HAVE_PIPE = 0])
  614. gl_UNISTD_MODULE_INDICATOR([pipe])
  615. gl_FUNC_PIPE2
  616. gl_UNISTD_MODULE_INDICATOR([pipe2])
  617. gl_FUNC_POLL
  618. gl_CONDITIONAL([GL_COND_OBJ_POLL],
  619. [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1])
  620. AM_COND_IF([GL_COND_OBJ_POLL], [
  621. gl_PREREQ_POLL
  622. ])
  623. gl_POLL_MODULE_INDICATOR([poll])
  624. gl_POLL_H
  625. gl_POLL_H_REQUIRE_DEFAULTS
  626. AC_PROG_MKDIR_P
  627. gl_POSIX_SPAWN
  628. gl_CONDITIONAL([GL_COND_OBJ_SPAWN],
  629. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
  630. gl_SPAWN_MODULE_INDICATOR([posix_spawn])
  631. gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
  632. gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDCLOSE],
  633. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1])
  634. gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
  635. gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
  636. gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDDUP2],
  637. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1])
  638. gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
  639. gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
  640. gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDOPEN],
  641. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1])
  642. gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
  643. gl_POSIX_SPAWN
  644. gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_INIT],
  645. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
  646. gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
  647. gl_POSIX_SPAWN
  648. gl_CONDITIONAL([GL_COND_OBJ_SPAWNP],
  649. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
  650. gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
  651. gl_FUNC_PUTENV
  652. gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
  653. AM_COND_IF([GL_COND_OBJ_PUTENV], [
  654. gl_PREREQ_PUTENV
  655. ])
  656. gl_STDLIB_MODULE_INDICATOR([putenv])
  657. gl_FUNC_READ
  658. gl_CONDITIONAL([GL_COND_OBJ_READ], [test $REPLACE_READ = 1])
  659. AM_COND_IF([GL_COND_OBJ_READ], [
  660. gl_PREREQ_READ
  661. ])
  662. gl_UNISTD_MODULE_INDICATOR([read])
  663. gl_FUNC_READLINK
  664. gl_CONDITIONAL([GL_COND_OBJ_READLINK],
  665. [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1])
  666. AM_COND_IF([GL_COND_OBJ_READLINK], [
  667. gl_PREREQ_READLINK
  668. ])
  669. gl_UNISTD_MODULE_INDICATOR([readlink])
  670. AC_REQUIRE([gl_SYS_SOCKET_H])
  671. gl_CONDITIONAL([GL_COND_OBJ_RECV], [test "$ac_cv_header_winsock2_h" = yes])
  672. gl_SYS_SOCKET_MODULE_INDICATOR([recv])
  673. AC_REQUIRE([gl_SYS_SOCKET_H])
  674. gl_CONDITIONAL([GL_COND_OBJ_RECVFROM], [test "$ac_cv_header_winsock2_h" = yes])
  675. gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
  676. gl_REGEX
  677. gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
  678. AM_COND_IF([GL_COND_OBJ_REGEX], [
  679. gl_PREREQ_REGEX
  680. ])
  681. gl_FUNC_RENAME
  682. gl_CONDITIONAL([GL_COND_OBJ_RENAME], [test $REPLACE_RENAME = 1])
  683. gl_STDIO_MODULE_INDICATOR([rename])
  684. gl_FUNC_RMDIR
  685. gl_CONDITIONAL([GL_COND_OBJ_RMDIR], [test $REPLACE_RMDIR = 1])
  686. gl_UNISTD_MODULE_INDICATOR([rmdir])
  687. gl_PREREQ_SAFE_READ
  688. gl_PREREQ_SAFE_WRITE
  689. gl_SCHED_H
  690. gl_SCHED_H_REQUIRE_DEFAULTS
  691. AC_PROG_MKDIR_P
  692. gl_FUNC_SELECT
  693. gl_CONDITIONAL([GL_COND_OBJ_SELECT], [test $REPLACE_SELECT = 1])
  694. gl_SYS_SELECT_MODULE_INDICATOR([select])
  695. AC_REQUIRE([gl_SYS_SOCKET_H])
  696. gl_CONDITIONAL([GL_COND_OBJ_SEND], [test "$ac_cv_header_winsock2_h" = yes])
  697. gl_SYS_SOCKET_MODULE_INDICATOR([send])
  698. AC_REQUIRE([gl_SYS_SOCKET_H])
  699. gl_CONDITIONAL([GL_COND_OBJ_SENDTO], [test "$ac_cv_header_winsock2_h" = yes])
  700. gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
  701. gl_FUNC_SETENV
  702. gl_CONDITIONAL([GL_COND_OBJ_SETENV],
  703. [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
  704. gl_STDLIB_MODULE_INDICATOR([setenv])
  705. AC_REQUIRE([gl_SYS_SOCKET_H])
  706. gl_CONDITIONAL([GL_COND_OBJ_SETSOCKOPT],
  707. [test "$ac_cv_header_winsock2_h" = yes])
  708. gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
  709. AC_REQUIRE([gl_SYS_SOCKET_H])
  710. gl_CONDITIONAL([GL_COND_OBJ_SHUTDOWN], [test "$ac_cv_header_winsock2_h" = yes])
  711. gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
  712. gl_SIGNAL_H
  713. gl_SIGNAL_H_REQUIRE_DEFAULTS
  714. AC_PROG_MKDIR_P
  715. AC_REQUIRE([gl_SYS_SOCKET_H])
  716. gl_CONDITIONAL([GL_COND_OBJ_SOCKET], [test "$ac_cv_header_winsock2_h" = yes])
  717. # When this module is used, sockets may actually occur as file descriptors,
  718. # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
  719. m4_ifdef([gl_UNISTD_H_DEFAULTS], [gl_UNISTD_H_REQUIRE_DEFAULTS])
  720. m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [gl_SYS_IOCTL_H_REQUIRE_DEFAULTS])
  721. AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
  722. if test "$ac_cv_header_winsock2_h" = yes; then
  723. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  724. SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  725. fi
  726. gl_SYS_SOCKET_MODULE_INDICATOR([socket])
  727. AC_REQUIRE([gl_SOCKETLIB])
  728. gl_TYPE_SOCKLEN_T
  729. gl_SPAWN_H
  730. gl_SPAWN_H_REQUIRE_DEFAULTS
  731. AC_PROG_MKDIR_P
  732. gt_TYPE_SSIZE_T
  733. gl_STAT_TIME
  734. gl_STAT_BIRTHTIME
  735. gl_C_BOOL
  736. AC_CHECK_HEADERS_ONCE([stdckdint.h])
  737. if test $ac_cv_header_stdckdint_h = yes; then
  738. GL_GENERATE_STDCKDINT_H=false
  739. else
  740. GL_GENERATE_STDCKDINT_H=true
  741. fi
  742. gl_CONDITIONAL_HEADER([stdckdint.h])
  743. AC_PROG_MKDIR_P
  744. gl_STDDEF_H
  745. gl_STDDEF_H_REQUIRE_DEFAULTS
  746. gl_CONDITIONAL_HEADER([stddef.h])
  747. AC_PROG_MKDIR_P
  748. gl_STDINT_H
  749. gl_CONDITIONAL_HEADER([stdint.h])
  750. dnl Because of gl_REPLACE_LIMITS_H:
  751. gl_CONDITIONAL_HEADER([limits.h])
  752. AC_PROG_MKDIR_P
  753. gl_STDIO_H
  754. gl_STDIO_H_REQUIRE_DEFAULTS
  755. AC_PROG_MKDIR_P
  756. gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
  757. gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
  758. dnl No need to create extra modules for these functions. Everyone who uses
  759. dnl <stdio.h> likely needs them.
  760. gl_STDIO_MODULE_INDICATOR([fscanf])
  761. gl_MODULE_INDICATOR([fscanf])
  762. gl_STDIO_MODULE_INDICATOR([scanf])
  763. gl_MODULE_INDICATOR([scanf])
  764. gl_STDIO_MODULE_INDICATOR([fgetc])
  765. gl_STDIO_MODULE_INDICATOR([getc])
  766. gl_STDIO_MODULE_INDICATOR([getchar])
  767. gl_STDIO_MODULE_INDICATOR([fgets])
  768. gl_STDIO_MODULE_INDICATOR([fread])
  769. dnl No need to create extra modules for these functions. Everyone who uses
  770. dnl <stdio.h> likely needs them.
  771. gl_STDIO_MODULE_INDICATOR([fprintf])
  772. gl_STDIO_MODULE_INDICATOR([printf])
  773. gl_STDIO_MODULE_INDICATOR([vfprintf])
  774. gl_STDIO_MODULE_INDICATOR([vprintf])
  775. gl_STDIO_MODULE_INDICATOR([fputc])
  776. gl_STDIO_MODULE_INDICATOR([putc])
  777. gl_STDIO_MODULE_INDICATOR([putchar])
  778. gl_STDIO_MODULE_INDICATOR([fputs])
  779. gl_STDIO_MODULE_INDICATOR([puts])
  780. gl_STDIO_MODULE_INDICATOR([fwrite])
  781. gl_STDLIB_H
  782. gl_STDLIB_H_REQUIRE_DEFAULTS
  783. AC_PROG_MKDIR_P
  784. if test $gl_cond_libtool = false; then
  785. gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
  786. gl_libdeps="$gl_libdeps $LIBICONV"
  787. fi
  788. gl_STRING_H
  789. gl_STRING_H_REQUIRE_DEFAULTS
  790. AC_PROG_MKDIR_P
  791. gl_SYS_FILE_H
  792. gl_SYS_FILE_H_REQUIRE_DEFAULTS
  793. AC_PROG_MKDIR_P
  794. gl_SYS_SELECT_H
  795. gl_SYS_SELECT_H_REQUIRE_DEFAULTS
  796. AC_PROG_MKDIR_P
  797. gl_SYS_SOCKET_H
  798. gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
  799. AC_PROG_MKDIR_P
  800. gl_SYS_STAT_H
  801. gl_SYS_STAT_H_REQUIRE_DEFAULTS
  802. AC_PROG_MKDIR_P
  803. gl_SYS_TIME_H
  804. gl_SYS_TIME_H_REQUIRE_DEFAULTS
  805. AC_PROG_MKDIR_P
  806. gl_SYS_TIMES_H
  807. gl_SYS_TIMES_H_REQUIRE_DEFAULTS
  808. AC_PROG_MKDIR_P
  809. gl_SYS_TYPES_H
  810. gl_SYS_TYPES_H_REQUIRE_DEFAULTS
  811. AC_PROG_MKDIR_P
  812. gl_SYS_UIO_H
  813. gl_SYS_UIO_H_REQUIRE_DEFAULTS
  814. AC_PROG_MKDIR_P
  815. gl_TIME_H
  816. gl_TIME_H_REQUIRE_DEFAULTS
  817. AC_PROG_MKDIR_P
  818. gl_TIME_RZ
  819. gl_CONDITIONAL([GL_COND_OBJ_TIME_RZ], [test $HAVE_TIMEZONE_T = 0])
  820. gl_TIME_MODULE_INDICATOR([time_rz])
  821. gl_FUNC_TIMES
  822. gl_CONDITIONAL([GL_COND_OBJ_TIMES], [test $HAVE_TIMES = 0])
  823. gl_SYS_TIMES_MODULE_INDICATOR([times])
  824. gl_FUNC_TRUNC
  825. gl_CONDITIONAL([GL_COND_OBJ_TRUNC],
  826. [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1])
  827. gl_MATH_MODULE_INDICATOR([trunc])
  828. gl_UNISTD_H
  829. gl_UNISTD_H_REQUIRE_DEFAULTS
  830. AC_PROG_MKDIR_P
  831. AC_C_VARARRAYS
  832. gl_FUNC_VSNPRINTF
  833. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  834. gl_WCHAR_H
  835. gl_WCHAR_H_REQUIRE_DEFAULTS
  836. AC_PROG_MKDIR_P
  837. gl_FUNC_WRITE
  838. gl_CONDITIONAL([GL_COND_OBJ_WRITE], [test $REPLACE_WRITE = 1])
  839. AM_COND_IF([GL_COND_OBJ_WRITE], [
  840. gl_PREREQ_WRITE
  841. ])
  842. gl_UNISTD_MODULE_INDICATOR([write])
  843. gl_gnulib_enabled_access=false
  844. gl_gnulib_enabled_alloca=false
  845. gl_gnulib_enabled_assure=false
  846. gl_gnulib_enabled_btowc=false
  847. gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=false
  848. gl_gnulib_enabled_chdir=false
  849. gl_gnulib_enabled_cloexec=false
  850. gl_gnulib_enabled_6da965dc4d3aa4f87d68116dce96f1a5=false
  851. gl_gnulib_enabled_dup2=false
  852. gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c=false
  853. gl_gnulib_enabled_fcntl=false
  854. gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=false
  855. gl_gnulib_enabled_7be38c8cf2027003f573b80556d26ff2=false
  856. gl_gnulib_enabled_getdtablesize=false
  857. gl_gnulib_enabled_getrandom=false
  858. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
  859. gl_gnulib_enabled_fd38c7e463b54744b77b98aeafb4fa7c=false
  860. gl_gnulib_enabled_8444034ea779b88768865bb60b4fb8c9=false
  861. gl_gnulib_enabled_30838f5439487421042f2225bed3af76=false
  862. gl_gnulib_enabled_hostent=false
  863. gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=false
  864. gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=false
  865. gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=false
  866. gl_gnulib_enabled_localeconv=false
  867. gl_gnulib_enabled_log=false
  868. gl_gnulib_enabled_mbrtowc=false
  869. gl_gnulib_enabled_mbsinit=false
  870. gl_gnulib_enabled_mbtowc=false
  871. gl_gnulib_enabled_memchr=false
  872. gl_gnulib_enabled_mempcpy=false
  873. gl_gnulib_enabled_mktime=false
  874. gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31=false
  875. gl_gnulib_enabled_netinet_in=false
  876. gl_gnulib_enabled_pathmax=false
  877. gl_gnulib_enabled_332607f759618fb73dfc3076748afea7=false
  878. gl_gnulib_enabled_raise=false
  879. gl_gnulib_enabled_rawmemchr=false
  880. gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4=false
  881. gl_gnulib_enabled_round=false
  882. gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62=false
  883. gl_gnulib_enabled_servent=false
  884. gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=false
  885. gl_gnulib_enabled_cdeb0f2aaf9d280baa6526bfa1b07f70=false
  886. gl_gnulib_enabled_signbit=false
  887. gl_gnulib_enabled_size_max=false
  888. gl_gnulib_enabled_snprintf=false
  889. gl_gnulib_enabled_sockets=false
  890. gl_gnulib_enabled_stat=false
  891. gl_gnulib_enabled_stpcpy=false
  892. gl_gnulib_enabled_strchrnul=false
  893. gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=false
  894. gl_gnulib_enabled_streq=false
  895. gl_gnulib_enabled_sys_random=false
  896. gl_gnulib_enabled_tempname=false
  897. gl_gnulib_enabled_time_r=false
  898. gl_gnulib_enabled_timegm=false
  899. gl_gnulib_enabled_tzset=false
  900. gl_gnulib_enabled_unsetenv=false
  901. gl_gnulib_enabled_vasnprintf=false
  902. gl_gnulib_enabled_wcrtomb=false
  903. gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410=false
  904. gl_gnulib_enabled_fd43d02c899a251eacc999baf40b238e=false
  905. gl_gnulib_enabled_xsize=false
  906. func_gl_gnulib_m4code_access ()
  907. {
  908. if ! $gl_gnulib_enabled_access; then
  909. gl_FUNC_ACCESS
  910. gl_CONDITIONAL([GL_COND_OBJ_ACCESS], [test $REPLACE_ACCESS = 1])
  911. gl_UNISTD_MODULE_INDICATOR([access])
  912. gl_gnulib_enabled_access=true
  913. func_gl_gnulib_m4code_fcntl
  914. fi
  915. }
  916. func_gl_gnulib_m4code_alloca ()
  917. {
  918. if ! $gl_gnulib_enabled_alloca; then
  919. changequote(,)dnl
  920. LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
  921. changequote([, ])dnl
  922. AC_SUBST([LTALLOCA])
  923. gl_gnulib_enabled_alloca=true
  924. fi
  925. }
  926. func_gl_gnulib_m4code_assure ()
  927. {
  928. if ! $gl_gnulib_enabled_assure; then
  929. gl_gnulib_enabled_assure=true
  930. fi
  931. }
  932. func_gl_gnulib_m4code_btowc ()
  933. {
  934. if ! $gl_gnulib_enabled_btowc; then
  935. gl_FUNC_BTOWC
  936. gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
  937. [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
  938. AM_COND_IF([GL_COND_OBJ_BTOWC], [
  939. gl_PREREQ_BTOWC
  940. ])
  941. gl_WCHAR_MODULE_INDICATOR([btowc])
  942. gl_gnulib_enabled_btowc=true
  943. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  944. func_gl_gnulib_m4code_mbtowc
  945. fi
  946. fi
  947. }
  948. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547 ()
  949. {
  950. if ! $gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547; then
  951. gl___BUILTIN_EXPECT
  952. gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=true
  953. fi
  954. }
  955. func_gl_gnulib_m4code_chdir ()
  956. {
  957. if ! $gl_gnulib_enabled_chdir; then
  958. gl_UNISTD_MODULE_INDICATOR([chdir])
  959. gl_gnulib_enabled_chdir=true
  960. fi
  961. }
  962. func_gl_gnulib_m4code_cloexec ()
  963. {
  964. if ! $gl_gnulib_enabled_cloexec; then
  965. gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
  966. gl_gnulib_enabled_cloexec=true
  967. func_gl_gnulib_m4code_dup2
  968. func_gl_gnulib_m4code_fcntl
  969. fi
  970. }
  971. func_gl_gnulib_m4code_6da965dc4d3aa4f87d68116dce96f1a5 ()
  972. {
  973. if ! $gl_gnulib_enabled_6da965dc4d3aa4f87d68116dce96f1a5; then
  974. gl_gnulib_enabled_6da965dc4d3aa4f87d68116dce96f1a5=true
  975. func_gl_gnulib_m4code_stpcpy
  976. fi
  977. }
  978. func_gl_gnulib_m4code_dup2 ()
  979. {
  980. if ! $gl_gnulib_enabled_dup2; then
  981. gl_FUNC_DUP2
  982. gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
  983. AM_COND_IF([GL_COND_OBJ_DUP2], [
  984. gl_PREREQ_DUP2
  985. ])
  986. gl_UNISTD_MODULE_INDICATOR([dup2])
  987. gl_gnulib_enabled_dup2=true
  988. fi
  989. }
  990. func_gl_gnulib_m4code_925677f0343de64b89a9f0c790b4104c ()
  991. {
  992. if ! $gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c; then
  993. gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c=true
  994. fi
  995. }
  996. func_gl_gnulib_m4code_fcntl ()
  997. {
  998. if ! $gl_gnulib_enabled_fcntl; then
  999. gl_FUNC_FCNTL
  1000. gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
  1001. [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
  1002. gl_FCNTL_MODULE_INDICATOR([fcntl])
  1003. gl_gnulib_enabled_fcntl=true
  1004. if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
  1005. func_gl_gnulib_m4code_dup2
  1006. fi
  1007. if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
  1008. func_gl_gnulib_m4code_getdtablesize
  1009. fi
  1010. fi
  1011. }
  1012. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239 ()
  1013. {
  1014. if ! $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then
  1015. gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=true
  1016. fi
  1017. }
  1018. func_gl_gnulib_m4code_7be38c8cf2027003f573b80556d26ff2 ()
  1019. {
  1020. if ! $gl_gnulib_enabled_7be38c8cf2027003f573b80556d26ff2; then
  1021. gl_FINDPROG_IN
  1022. gl_gnulib_enabled_7be38c8cf2027003f573b80556d26ff2=true
  1023. func_gl_gnulib_m4code_access
  1024. func_gl_gnulib_m4code_6da965dc4d3aa4f87d68116dce96f1a5
  1025. func_gl_gnulib_m4code_stat
  1026. func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0
  1027. fi
  1028. }
  1029. func_gl_gnulib_m4code_getdtablesize ()
  1030. {
  1031. if ! $gl_gnulib_enabled_getdtablesize; then
  1032. gl_FUNC_GETDTABLESIZE
  1033. gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
  1034. [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
  1035. AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
  1036. gl_PREREQ_GETDTABLESIZE
  1037. ])
  1038. gl_UNISTD_MODULE_INDICATOR([getdtablesize])
  1039. gl_gnulib_enabled_getdtablesize=true
  1040. fi
  1041. }
  1042. func_gl_gnulib_m4code_getrandom ()
  1043. {
  1044. if ! $gl_gnulib_enabled_getrandom; then
  1045. AC_REQUIRE([AC_CANONICAL_HOST])
  1046. gl_FUNC_GETRANDOM
  1047. gl_CONDITIONAL([GL_COND_OBJ_GETRANDOM],
  1048. [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1])
  1049. gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
  1050. gl_gnulib_enabled_getrandom=true
  1051. func_gl_gnulib_m4code_sys_random
  1052. fi
  1053. }
  1054. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
  1055. {
  1056. if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  1057. AC_SUBST([LIBINTL])
  1058. AC_SUBST([LTLIBINTL])
  1059. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
  1060. fi
  1061. }
  1062. func_gl_gnulib_m4code_fd38c7e463b54744b77b98aeafb4fa7c ()
  1063. {
  1064. if ! $gl_gnulib_enabled_fd38c7e463b54744b77b98aeafb4fa7c; then
  1065. AC_PROG_MKDIR_P
  1066. gl_gnulib_enabled_fd38c7e463b54744b77b98aeafb4fa7c=true
  1067. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  1068. fi
  1069. }
  1070. func_gl_gnulib_m4code_8444034ea779b88768865bb60b4fb8c9 ()
  1071. {
  1072. if ! $gl_gnulib_enabled_8444034ea779b88768865bb60b4fb8c9; then
  1073. AC_PROG_MKDIR_P
  1074. gl_gnulib_enabled_8444034ea779b88768865bb60b4fb8c9=true
  1075. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  1076. func_gl_gnulib_m4code_61bcaca76b3e6f9ae55d57a1c3193bc4
  1077. fi
  1078. }
  1079. func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76 ()
  1080. {
  1081. if ! $gl_gnulib_enabled_30838f5439487421042f2225bed3af76; then
  1082. AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
  1083. HARD_LOCALE_LIB="$SETLOCALE_NULL_LIB"
  1084. AC_SUBST([HARD_LOCALE_LIB])
  1085. dnl For backward compatibility.
  1086. LIB_HARD_LOCALE="$HARD_LOCALE_LIB"
  1087. AC_SUBST([LIB_HARD_LOCALE])
  1088. gl_gnulib_enabled_30838f5439487421042f2225bed3af76=true
  1089. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1090. fi
  1091. }
  1092. func_gl_gnulib_m4code_hostent ()
  1093. {
  1094. if ! $gl_gnulib_enabled_hostent; then
  1095. gl_HOSTENT
  1096. gl_gnulib_enabled_hostent=true
  1097. fi
  1098. }
  1099. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21 ()
  1100. {
  1101. if ! $gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21; then
  1102. gl_FUNC_ISNAND_NO_LIBM
  1103. if test $gl_func_isnand_no_libm != yes; then
  1104. AC_LIBOBJ([isnand])
  1105. gl_PREREQ_ISNAND
  1106. fi
  1107. gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=true
  1108. fi
  1109. }
  1110. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66 ()
  1111. {
  1112. if ! $gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66; then
  1113. gl_FUNC_ISNANF_NO_LIBM
  1114. if test $gl_func_isnanf_no_libm != yes; then
  1115. AC_LIBOBJ([isnanf])
  1116. gl_PREREQ_ISNANF
  1117. fi
  1118. gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=true
  1119. fi
  1120. }
  1121. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f ()
  1122. {
  1123. if ! $gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f; then
  1124. gl_FUNC_ISNANL_NO_LIBM
  1125. if test $gl_func_isnanl_no_libm != yes; then
  1126. AC_LIBOBJ([isnanl])
  1127. gl_PREREQ_ISNANL
  1128. fi
  1129. gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=true
  1130. fi
  1131. }
  1132. func_gl_gnulib_m4code_localeconv ()
  1133. {
  1134. if ! $gl_gnulib_enabled_localeconv; then
  1135. gl_FUNC_LOCALECONV
  1136. gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
  1137. AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
  1138. gl_PREREQ_LOCALECONV
  1139. ])
  1140. gl_LOCALE_MODULE_INDICATOR([localeconv])
  1141. gl_gnulib_enabled_localeconv=true
  1142. fi
  1143. }
  1144. func_gl_gnulib_m4code_log ()
  1145. {
  1146. if ! $gl_gnulib_enabled_log; then
  1147. AC_REQUIRE([gl_FUNC_LOG])
  1148. gl_CONDITIONAL([GL_COND_OBJ_LOG], [test $REPLACE_LOG = 1])
  1149. gl_MATH_MODULE_INDICATOR([log])
  1150. gl_gnulib_enabled_log=true
  1151. fi
  1152. }
  1153. func_gl_gnulib_m4code_mbrtowc ()
  1154. {
  1155. if ! $gl_gnulib_enabled_mbrtowc; then
  1156. gl_FUNC_MBRTOWC
  1157. gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
  1158. [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
  1159. AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
  1160. if test $REPLACE_MBSTATE_T = 1; then
  1161. AC_LIBOBJ([lc-charset-dispatch])
  1162. AC_LIBOBJ([mbtowc-lock])
  1163. gl_PREREQ_MBTOWC_LOCK
  1164. fi
  1165. gl_PREREQ_MBRTOWC
  1166. ])
  1167. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  1168. gl_gnulib_enabled_mbrtowc=true
  1169. if { test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0; then
  1170. func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76
  1171. fi
  1172. if { test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0; then
  1173. func_gl_gnulib_m4code_mbsinit
  1174. fi
  1175. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  1176. func_gl_gnulib_m4code_streq
  1177. fi
  1178. fi
  1179. }
  1180. func_gl_gnulib_m4code_mbsinit ()
  1181. {
  1182. if ! $gl_gnulib_enabled_mbsinit; then
  1183. gl_FUNC_MBSINIT
  1184. gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
  1185. [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
  1186. AM_COND_IF([GL_COND_OBJ_MBSINIT], [
  1187. gl_PREREQ_MBSINIT
  1188. ])
  1189. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  1190. gl_gnulib_enabled_mbsinit=true
  1191. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  1192. func_gl_gnulib_m4code_mbrtowc
  1193. fi
  1194. fi
  1195. }
  1196. func_gl_gnulib_m4code_mbtowc ()
  1197. {
  1198. if ! $gl_gnulib_enabled_mbtowc; then
  1199. gl_FUNC_MBTOWC
  1200. gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
  1201. [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
  1202. AM_COND_IF([GL_COND_OBJ_MBTOWC], [
  1203. gl_PREREQ_MBTOWC
  1204. ])
  1205. gl_STDLIB_MODULE_INDICATOR([mbtowc])
  1206. gl_gnulib_enabled_mbtowc=true
  1207. if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
  1208. func_gl_gnulib_m4code_mbrtowc
  1209. fi
  1210. fi
  1211. }
  1212. func_gl_gnulib_m4code_memchr ()
  1213. {
  1214. if ! $gl_gnulib_enabled_memchr; then
  1215. gl_FUNC_MEMCHR
  1216. gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
  1217. AM_COND_IF([GL_COND_OBJ_MEMCHR], [
  1218. gl_PREREQ_MEMCHR
  1219. ])
  1220. gl_STRING_MODULE_INDICATOR([memchr])
  1221. gl_gnulib_enabled_memchr=true
  1222. fi
  1223. }
  1224. func_gl_gnulib_m4code_mempcpy ()
  1225. {
  1226. if ! $gl_gnulib_enabled_mempcpy; then
  1227. gl_FUNC_MEMPCPY
  1228. gl_CONDITIONAL([GL_COND_OBJ_MEMPCPY], [test $HAVE_MEMPCPY = 0])
  1229. AM_COND_IF([GL_COND_OBJ_MEMPCPY], [
  1230. gl_PREREQ_MEMPCPY
  1231. ])
  1232. gl_STRING_MODULE_INDICATOR([mempcpy])
  1233. gl_gnulib_enabled_mempcpy=true
  1234. fi
  1235. }
  1236. func_gl_gnulib_m4code_mktime ()
  1237. {
  1238. if ! $gl_gnulib_enabled_mktime; then
  1239. gl_FUNC_MKTIME
  1240. if test $REPLACE_MKTIME = 1; then
  1241. AC_LIBOBJ([mktime])
  1242. gl_PREREQ_MKTIME
  1243. fi
  1244. gl_TIME_MODULE_INDICATOR([mktime])
  1245. gl_gnulib_enabled_mktime=true
  1246. if test $REPLACE_MKTIME = 1; then
  1247. func_gl_gnulib_m4code_time_r
  1248. fi
  1249. fi
  1250. }
  1251. func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31 ()
  1252. {
  1253. if ! $gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31; then
  1254. gl_FUNC_MKTIME_INTERNAL
  1255. if test $WANT_MKTIME_INTERNAL = 1; then
  1256. AC_LIBOBJ([mktime])
  1257. gl_PREREQ_MKTIME
  1258. fi
  1259. gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31=true
  1260. func_gl_gnulib_m4code_mktime
  1261. fi
  1262. }
  1263. func_gl_gnulib_m4code_netinet_in ()
  1264. {
  1265. if ! $gl_gnulib_enabled_netinet_in; then
  1266. gl_HEADER_NETINET_IN
  1267. gl_CONDITIONAL_HEADER([netinet/in.h])
  1268. AC_PROG_MKDIR_P
  1269. gl_gnulib_enabled_netinet_in=true
  1270. fi
  1271. }
  1272. func_gl_gnulib_m4code_pathmax ()
  1273. {
  1274. if ! $gl_gnulib_enabled_pathmax; then
  1275. gl_PATHMAX
  1276. gl_gnulib_enabled_pathmax=true
  1277. fi
  1278. }
  1279. func_gl_gnulib_m4code_332607f759618fb73dfc3076748afea7 ()
  1280. {
  1281. if ! $gl_gnulib_enabled_332607f759618fb73dfc3076748afea7; then
  1282. gl_POSIX_SPAWN
  1283. gl_CONDITIONAL([GL_COND_OBJ_SPAWNI],
  1284. [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
  1285. AM_COND_IF([GL_COND_OBJ_SPAWNI], [
  1286. gl_PREREQ_POSIX_SPAWN_INTERNAL
  1287. ])
  1288. gl_gnulib_enabled_332607f759618fb73dfc3076748afea7=true
  1289. if test $HAVE_POSIX_SPAWN = 0; then
  1290. func_gl_gnulib_m4code_6da965dc4d3aa4f87d68116dce96f1a5
  1291. fi
  1292. func_gl_gnulib_m4code_dup2
  1293. if test $HAVE_POSIX_SPAWN = 0; then
  1294. func_gl_gnulib_m4code_7be38c8cf2027003f573b80556d26ff2
  1295. fi
  1296. func_gl_gnulib_m4code_cdeb0f2aaf9d280baa6526bfa1b07f70
  1297. func_gl_gnulib_m4code_strchrnul
  1298. if test $HAVE_POSIX_SPAWN = 0; then
  1299. func_gl_gnulib_m4code_fd43d02c899a251eacc999baf40b238e
  1300. fi
  1301. fi
  1302. }
  1303. func_gl_gnulib_m4code_raise ()
  1304. {
  1305. if ! $gl_gnulib_enabled_raise; then
  1306. gl_FUNC_RAISE
  1307. gl_CONDITIONAL([GL_COND_OBJ_RAISE],
  1308. [test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1])
  1309. AM_COND_IF([GL_COND_OBJ_RAISE], [
  1310. gl_PREREQ_RAISE
  1311. ])
  1312. gl_SIGNAL_MODULE_INDICATOR([raise])
  1313. gl_gnulib_enabled_raise=true
  1314. fi
  1315. }
  1316. func_gl_gnulib_m4code_rawmemchr ()
  1317. {
  1318. if ! $gl_gnulib_enabled_rawmemchr; then
  1319. gl_FUNC_RAWMEMCHR
  1320. gl_CONDITIONAL([GL_COND_OBJ_RAWMEMCHR], [test $HAVE_RAWMEMCHR = 0])
  1321. AM_COND_IF([GL_COND_OBJ_RAWMEMCHR], [
  1322. gl_PREREQ_RAWMEMCHR
  1323. ])
  1324. gl_STRING_MODULE_INDICATOR([rawmemchr])
  1325. gl_gnulib_enabled_rawmemchr=true
  1326. fi
  1327. }
  1328. func_gl_gnulib_m4code_61bcaca76b3e6f9ae55d57a1c3193bc4 ()
  1329. {
  1330. if ! $gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4; then
  1331. gl_FUNC_REALLOC_POSIX
  1332. if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
  1333. AC_LIBOBJ([realloc])
  1334. fi
  1335. gl_STDLIB_MODULE_INDICATOR([realloc-posix])
  1336. gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4=true
  1337. fi
  1338. }
  1339. func_gl_gnulib_m4code_round ()
  1340. {
  1341. if ! $gl_gnulib_enabled_round; then
  1342. gl_FUNC_ROUND
  1343. gl_CONDITIONAL([GL_COND_OBJ_ROUND],
  1344. [test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1])
  1345. gl_MATH_MODULE_INDICATOR([round])
  1346. gl_gnulib_enabled_round=true
  1347. fi
  1348. }
  1349. func_gl_gnulib_m4code_9bc5f216d57e231e4834049d67d0db62 ()
  1350. {
  1351. if ! $gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62; then
  1352. gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62=true
  1353. fi
  1354. }
  1355. func_gl_gnulib_m4code_servent ()
  1356. {
  1357. if ! $gl_gnulib_enabled_servent; then
  1358. gl_SERVENT
  1359. gl_gnulib_enabled_servent=true
  1360. fi
  1361. }
  1362. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd ()
  1363. {
  1364. if ! $gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd; then
  1365. gl_FUNC_SETLOCALE_NULL
  1366. gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
  1367. [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
  1368. AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
  1369. gl_PREREQ_SETLOCALE_LOCK
  1370. ])
  1371. gl_LOCALE_MODULE_INDICATOR([setlocale_null])
  1372. gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=true
  1373. fi
  1374. }
  1375. func_gl_gnulib_m4code_cdeb0f2aaf9d280baa6526bfa1b07f70 ()
  1376. {
  1377. if ! $gl_gnulib_enabled_cdeb0f2aaf9d280baa6526bfa1b07f70; then
  1378. gl_SH_FILENAME
  1379. gl_gnulib_enabled_cdeb0f2aaf9d280baa6526bfa1b07f70=true
  1380. fi
  1381. }
  1382. func_gl_gnulib_m4code_signbit ()
  1383. {
  1384. if ! $gl_gnulib_enabled_signbit; then
  1385. gl_SIGNBIT
  1386. gl_CONDITIONAL([GL_COND_OBJ_SIGNBIT3], [test $REPLACE_SIGNBIT = 1])
  1387. gl_MATH_MODULE_INDICATOR([signbit])
  1388. gl_gnulib_enabled_signbit=true
  1389. if test $REPLACE_SIGNBIT = 1; then
  1390. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1391. fi
  1392. if test $REPLACE_SIGNBIT = 1; then
  1393. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66
  1394. fi
  1395. if test $REPLACE_SIGNBIT = 1; then
  1396. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f
  1397. fi
  1398. fi
  1399. }
  1400. func_gl_gnulib_m4code_size_max ()
  1401. {
  1402. if ! $gl_gnulib_enabled_size_max; then
  1403. gl_SIZE_MAX
  1404. gl_gnulib_enabled_size_max=true
  1405. fi
  1406. }
  1407. func_gl_gnulib_m4code_snprintf ()
  1408. {
  1409. if ! $gl_gnulib_enabled_snprintf; then
  1410. gl_FUNC_SNPRINTF
  1411. gl_STDIO_MODULE_INDICATOR([snprintf])
  1412. gl_MODULE_INDICATOR([snprintf])
  1413. gl_gnulib_enabled_snprintf=true
  1414. if test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1; then
  1415. func_gl_gnulib_m4code_vasnprintf
  1416. fi
  1417. fi
  1418. }
  1419. func_gl_gnulib_m4code_sockets ()
  1420. {
  1421. if ! $gl_gnulib_enabled_sockets; then
  1422. AC_REQUIRE([gl_SOCKETS])
  1423. gl_gnulib_enabled_sockets=true
  1424. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239
  1425. fi
  1426. }
  1427. func_gl_gnulib_m4code_stat ()
  1428. {
  1429. if ! $gl_gnulib_enabled_stat; then
  1430. gl_FUNC_STAT
  1431. gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
  1432. AM_COND_IF([GL_COND_OBJ_STAT], [
  1433. case "$host_os" in
  1434. mingw*)
  1435. AC_LIBOBJ([stat-w32])
  1436. ;;
  1437. esac
  1438. gl_PREREQ_STAT
  1439. ])
  1440. gl_SYS_STAT_MODULE_INDICATOR([stat])
  1441. gl_gnulib_enabled_stat=true
  1442. if test $REPLACE_STAT = 1; then
  1443. func_gl_gnulib_m4code_pathmax
  1444. fi
  1445. fi
  1446. }
  1447. func_gl_gnulib_m4code_stpcpy ()
  1448. {
  1449. if ! $gl_gnulib_enabled_stpcpy; then
  1450. gl_FUNC_STPCPY
  1451. gl_CONDITIONAL([GL_COND_OBJ_STPCPY], [test $HAVE_STPCPY = 0])
  1452. AM_COND_IF([GL_COND_OBJ_STPCPY], [
  1453. gl_PREREQ_STPCPY
  1454. ])
  1455. gl_STRING_MODULE_INDICATOR([stpcpy])
  1456. gl_gnulib_enabled_stpcpy=true
  1457. fi
  1458. }
  1459. func_gl_gnulib_m4code_strchrnul ()
  1460. {
  1461. if ! $gl_gnulib_enabled_strchrnul; then
  1462. gl_FUNC_STRCHRNUL
  1463. gl_CONDITIONAL([GL_COND_OBJ_STRCHRNUL],
  1464. [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1])
  1465. AM_COND_IF([GL_COND_OBJ_STRCHRNUL], [
  1466. gl_PREREQ_STRCHRNUL
  1467. ])
  1468. gl_STRING_MODULE_INDICATOR([strchrnul])
  1469. gl_gnulib_enabled_strchrnul=true
  1470. if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
  1471. func_gl_gnulib_m4code_rawmemchr
  1472. fi
  1473. fi
  1474. }
  1475. func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0 ()
  1476. {
  1477. if ! $gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0; then
  1478. gl_FUNC_STRDUP_POSIX
  1479. gl_CONDITIONAL([GL_COND_OBJ_STRDUP], [test $REPLACE_STRDUP = 1])
  1480. AM_COND_IF([GL_COND_OBJ_STRDUP], [
  1481. gl_PREREQ_STRDUP
  1482. ])
  1483. gl_STRING_MODULE_INDICATOR([strdup])
  1484. gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=true
  1485. fi
  1486. }
  1487. func_gl_gnulib_m4code_streq ()
  1488. {
  1489. if ! $gl_gnulib_enabled_streq; then
  1490. gl_gnulib_enabled_streq=true
  1491. fi
  1492. }
  1493. func_gl_gnulib_m4code_sys_random ()
  1494. {
  1495. if ! $gl_gnulib_enabled_sys_random; then
  1496. gl_SYS_RANDOM_H
  1497. gl_SYS_RANDOM_H_REQUIRE_DEFAULTS
  1498. AC_PROG_MKDIR_P
  1499. gl_gnulib_enabled_sys_random=true
  1500. fi
  1501. }
  1502. func_gl_gnulib_m4code_tempname ()
  1503. {
  1504. if ! $gl_gnulib_enabled_tempname; then
  1505. gl_FUNC_GEN_TEMPNAME
  1506. gl_MODULE_INDICATOR([tempname])
  1507. gl_gnulib_enabled_tempname=true
  1508. func_gl_gnulib_m4code_getrandom
  1509. fi
  1510. }
  1511. func_gl_gnulib_m4code_time_r ()
  1512. {
  1513. if ! $gl_gnulib_enabled_time_r; then
  1514. gl_TIME_R
  1515. gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
  1516. [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
  1517. AM_COND_IF([GL_COND_OBJ_TIME_R], [
  1518. gl_PREREQ_TIME_R
  1519. ])
  1520. gl_TIME_MODULE_INDICATOR([time_r])
  1521. gl_gnulib_enabled_time_r=true
  1522. fi
  1523. }
  1524. func_gl_gnulib_m4code_timegm ()
  1525. {
  1526. if ! $gl_gnulib_enabled_timegm; then
  1527. gl_FUNC_TIMEGM
  1528. gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
  1529. [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
  1530. AM_COND_IF([GL_COND_OBJ_TIMEGM], [
  1531. gl_PREREQ_TIMEGM
  1532. ])
  1533. gl_TIME_MODULE_INDICATOR([timegm])
  1534. gl_gnulib_enabled_timegm=true
  1535. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  1536. func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31
  1537. fi
  1538. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  1539. func_gl_gnulib_m4code_time_r
  1540. fi
  1541. fi
  1542. }
  1543. func_gl_gnulib_m4code_tzset ()
  1544. {
  1545. if ! $gl_gnulib_enabled_tzset; then
  1546. gl_FUNC_TZSET
  1547. gl_CONDITIONAL([GL_COND_OBJ_TZSET], [test $REPLACE_TZSET = 1])
  1548. gl_TIME_MODULE_INDICATOR([tzset])
  1549. gl_gnulib_enabled_tzset=true
  1550. fi
  1551. }
  1552. func_gl_gnulib_m4code_unsetenv ()
  1553. {
  1554. if ! $gl_gnulib_enabled_unsetenv; then
  1555. gl_FUNC_UNSETENV
  1556. gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
  1557. [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
  1558. AM_COND_IF([GL_COND_OBJ_UNSETENV], [
  1559. gl_PREREQ_UNSETENV
  1560. ])
  1561. gl_STDLIB_MODULE_INDICATOR([unsetenv])
  1562. gl_gnulib_enabled_unsetenv=true
  1563. fi
  1564. }
  1565. func_gl_gnulib_m4code_vasnprintf ()
  1566. {
  1567. if ! $gl_gnulib_enabled_vasnprintf; then
  1568. AC_REQUIRE([AC_C_RESTRICT])
  1569. gl_FUNC_VASNPRINTF
  1570. gl_gnulib_enabled_vasnprintf=true
  1571. func_gl_gnulib_m4code_memchr
  1572. func_gl_gnulib_m4code_xsize
  1573. fi
  1574. }
  1575. func_gl_gnulib_m4code_wcrtomb ()
  1576. {
  1577. if ! $gl_gnulib_enabled_wcrtomb; then
  1578. gl_FUNC_WCRTOMB
  1579. gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
  1580. [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
  1581. AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
  1582. gl_PREREQ_WCRTOMB
  1583. ])
  1584. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  1585. gl_gnulib_enabled_wcrtomb=true
  1586. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  1587. func_gl_gnulib_m4code_mbsinit
  1588. fi
  1589. fi
  1590. }
  1591. func_gl_gnulib_m4code_3dcce957eadc896e63ab5f137947b410 ()
  1592. {
  1593. if ! $gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410; then
  1594. gl_WCTYPE_H
  1595. gl_WCTYPE_H_REQUIRE_DEFAULTS
  1596. AC_PROG_MKDIR_P
  1597. gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410=true
  1598. fi
  1599. }
  1600. func_gl_gnulib_m4code_fd43d02c899a251eacc999baf40b238e ()
  1601. {
  1602. if ! $gl_gnulib_enabled_fd43d02c899a251eacc999baf40b238e; then
  1603. AC_REQUIRE([AC_CANONICAL_HOST])
  1604. gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_SPAWN],
  1605. [case "$host_os" in mingw*) true;; *) false;; esac])
  1606. gl_gnulib_enabled_fd43d02c899a251eacc999baf40b238e=true
  1607. func_gl_gnulib_m4code_7be38c8cf2027003f573b80556d26ff2
  1608. fi
  1609. }
  1610. func_gl_gnulib_m4code_xsize ()
  1611. {
  1612. if ! $gl_gnulib_enabled_xsize; then
  1613. gl_XSIZE
  1614. gl_gnulib_enabled_xsize=true
  1615. func_gl_gnulib_m4code_size_max
  1616. fi
  1617. }
  1618. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1619. func_gl_gnulib_m4code_925677f0343de64b89a9f0c790b4104c
  1620. fi
  1621. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1622. func_gl_gnulib_m4code_8444034ea779b88768865bb60b4fb8c9
  1623. fi
  1624. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1625. func_gl_gnulib_m4code_mempcpy
  1626. fi
  1627. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1628. func_gl_gnulib_m4code_pathmax
  1629. fi
  1630. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1631. func_gl_gnulib_m4code_rawmemchr
  1632. fi
  1633. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1634. func_gl_gnulib_m4code_stat
  1635. fi
  1636. if test $REPLACE_CLOSE = 1; then
  1637. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239
  1638. fi
  1639. if test $HAVE_COPYSIGN = 0; then
  1640. func_gl_gnulib_m4code_signbit
  1641. fi
  1642. if test $REPLACE_DUPLOCALE = 1; then
  1643. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1644. fi
  1645. if test $gl_func_frexp != yes; then
  1646. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1647. fi
  1648. if test $REPLACE_FSTAT = 1; then
  1649. func_gl_gnulib_m4code_pathmax
  1650. fi
  1651. if test $REPLACE_FSTAT = 1; then
  1652. func_gl_gnulib_m4code_stat
  1653. fi
  1654. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1 || test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  1655. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
  1656. fi
  1657. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1658. func_gl_gnulib_m4code_hostent
  1659. fi
  1660. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1661. func_gl_gnulib_m4code_servent
  1662. fi
  1663. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1664. func_gl_gnulib_m4code_snprintf
  1665. fi
  1666. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1667. func_gl_gnulib_m4code_sockets
  1668. fi
  1669. if test $HAVE_GETHOSTNAME = 0; then
  1670. func_gl_gnulib_m4code_sockets
  1671. fi
  1672. if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
  1673. func_gl_gnulib_m4code_netinet_in
  1674. fi
  1675. if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
  1676. func_gl_gnulib_m4code_netinet_in
  1677. fi
  1678. if test $REPLACE_ISFINITE = 1; then
  1679. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1680. fi
  1681. if test $REPLACE_ISFINITE = 1; then
  1682. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66
  1683. fi
  1684. if test $REPLACE_ISFINITE = 1; then
  1685. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f
  1686. fi
  1687. if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  1688. func_gl_gnulib_m4code_stat
  1689. fi
  1690. if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  1691. func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0
  1692. fi
  1693. if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
  1694. func_gl_gnulib_m4code_log
  1695. fi
  1696. if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
  1697. func_gl_gnulib_m4code_round
  1698. fi
  1699. if test $REPLACE_LSTAT = 1; then
  1700. func_gl_gnulib_m4code_stat
  1701. fi
  1702. if test $REPLACE_MKDIR = 1; then
  1703. func_gl_gnulib_m4code_stat
  1704. fi
  1705. if test $HAVE_MKOSTEMP = 0; then
  1706. func_gl_gnulib_m4code_tempname
  1707. fi
  1708. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  1709. func_gl_gnulib_m4code_localeconv
  1710. fi
  1711. if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
  1712. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1713. fi
  1714. if test $REPLACE_OPEN = 1; then
  1715. func_gl_gnulib_m4code_cloexec
  1716. fi
  1717. if test $REPLACE_OPEN = 1; then
  1718. func_gl_gnulib_m4code_stat
  1719. fi
  1720. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1721. func_gl_gnulib_m4code_alloca
  1722. fi
  1723. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1724. func_gl_gnulib_m4code_assure
  1725. fi
  1726. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1727. func_gl_gnulib_m4code_sockets
  1728. fi
  1729. if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
  1730. func_gl_gnulib_m4code_332607f759618fb73dfc3076748afea7
  1731. fi
  1732. if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
  1733. func_gl_gnulib_m4code_getdtablesize
  1734. fi
  1735. if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
  1736. func_gl_gnulib_m4code_getdtablesize
  1737. fi
  1738. if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
  1739. func_gl_gnulib_m4code_getdtablesize
  1740. fi
  1741. if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
  1742. func_gl_gnulib_m4code_332607f759618fb73dfc3076748afea7
  1743. fi
  1744. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  1745. func_gl_gnulib_m4code_stat
  1746. fi
  1747. if test $ac_use_included_regex = yes; then
  1748. func_gl_gnulib_m4code_btowc
  1749. fi
  1750. if test $ac_use_included_regex = yes; then
  1751. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  1752. fi
  1753. if test $ac_use_included_regex = yes; then
  1754. func_gl_gnulib_m4code_fd38c7e463b54744b77b98aeafb4fa7c
  1755. fi
  1756. if test $ac_use_included_regex = yes; then
  1757. func_gl_gnulib_m4code_mbrtowc
  1758. fi
  1759. if test $ac_use_included_regex = yes; then
  1760. func_gl_gnulib_m4code_mbsinit
  1761. fi
  1762. if test $ac_use_included_regex = yes; then
  1763. func_gl_gnulib_m4code_wcrtomb
  1764. fi
  1765. if test $ac_use_included_regex = yes; then
  1766. func_gl_gnulib_m4code_3dcce957eadc896e63ab5f137947b410
  1767. fi
  1768. if test $REPLACE_RENAME = 1; then
  1769. func_gl_gnulib_m4code_chdir
  1770. fi
  1771. if test $REPLACE_RENAME = 1; then
  1772. func_gl_gnulib_m4code_9bc5f216d57e231e4834049d67d0db62
  1773. fi
  1774. if test $REPLACE_RENAME = 1; then
  1775. func_gl_gnulib_m4code_stat
  1776. fi
  1777. if test $REPLACE_SELECT = 1; then
  1778. func_gl_gnulib_m4code_alloca
  1779. fi
  1780. if test $REPLACE_SELECT = 1; then
  1781. func_gl_gnulib_m4code_dup2
  1782. fi
  1783. if test $REPLACE_SELECT = 1; then
  1784. func_gl_gnulib_m4code_sockets
  1785. fi
  1786. if test "$ac_cv_header_winsock2_h" = yes; then
  1787. func_gl_gnulib_m4code_sockets
  1788. fi
  1789. if test $HAVE_TIMEZONE_T = 0; then
  1790. func_gl_gnulib_m4code_time_r
  1791. fi
  1792. if test $HAVE_TIMEZONE_T = 0; then
  1793. func_gl_gnulib_m4code_timegm
  1794. fi
  1795. if test $HAVE_TIMEZONE_T = 0; then
  1796. func_gl_gnulib_m4code_tzset
  1797. fi
  1798. if test $HAVE_TIMEZONE_T = 0; then
  1799. func_gl_gnulib_m4code_unsetenv
  1800. fi
  1801. if test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1; then
  1802. func_gl_gnulib_m4code_vasnprintf
  1803. fi
  1804. if test $REPLACE_WRITE = 1; then
  1805. func_gl_gnulib_m4code_raise
  1806. fi
  1807. m4_pattern_allow([^gl_GNULIB_ENABLED_])
  1808. AM_CONDITIONAL([gl_GNULIB_ENABLED_access], [$gl_gnulib_enabled_access])
  1809. AM_CONDITIONAL([gl_GNULIB_ENABLED_alloca], [$gl_gnulib_enabled_alloca])
  1810. AM_CONDITIONAL([gl_GNULIB_ENABLED_assure], [$gl_gnulib_enabled_assure])
  1811. AM_CONDITIONAL([gl_GNULIB_ENABLED_btowc], [$gl_gnulib_enabled_btowc])
  1812. AM_CONDITIONAL([gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547], [$gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547])
  1813. AM_CONDITIONAL([gl_GNULIB_ENABLED_chdir], [$gl_gnulib_enabled_chdir])
  1814. AM_CONDITIONAL([gl_GNULIB_ENABLED_cloexec], [$gl_gnulib_enabled_cloexec])
  1815. AM_CONDITIONAL([gl_GNULIB_ENABLED_6da965dc4d3aa4f87d68116dce96f1a5], [$gl_gnulib_enabled_6da965dc4d3aa4f87d68116dce96f1a5])
  1816. AM_CONDITIONAL([gl_GNULIB_ENABLED_dup2], [$gl_gnulib_enabled_dup2])
  1817. AM_CONDITIONAL([gl_GNULIB_ENABLED_925677f0343de64b89a9f0c790b4104c], [$gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c])
  1818. AM_CONDITIONAL([gl_GNULIB_ENABLED_fcntl], [$gl_gnulib_enabled_fcntl])
  1819. AM_CONDITIONAL([gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239], [$gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239])
  1820. AM_CONDITIONAL([gl_GNULIB_ENABLED_7be38c8cf2027003f573b80556d26ff2], [$gl_gnulib_enabled_7be38c8cf2027003f573b80556d26ff2])
  1821. AM_CONDITIONAL([gl_GNULIB_ENABLED_getdtablesize], [$gl_gnulib_enabled_getdtablesize])
  1822. AM_CONDITIONAL([gl_GNULIB_ENABLED_getrandom], [$gl_gnulib_enabled_getrandom])
  1823. AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
  1824. AM_CONDITIONAL([gl_GNULIB_ENABLED_fd38c7e463b54744b77b98aeafb4fa7c], [$gl_gnulib_enabled_fd38c7e463b54744b77b98aeafb4fa7c])
  1825. AM_CONDITIONAL([gl_GNULIB_ENABLED_8444034ea779b88768865bb60b4fb8c9], [$gl_gnulib_enabled_8444034ea779b88768865bb60b4fb8c9])
  1826. AM_CONDITIONAL([gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76], [$gl_gnulib_enabled_30838f5439487421042f2225bed3af76])
  1827. AM_CONDITIONAL([gl_GNULIB_ENABLED_hostent], [$gl_gnulib_enabled_hostent])
  1828. AM_CONDITIONAL([gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21], [$gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21])
  1829. AM_CONDITIONAL([gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66], [$gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66])
  1830. AM_CONDITIONAL([gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f], [$gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f])
  1831. AM_CONDITIONAL([gl_GNULIB_ENABLED_localeconv], [$gl_gnulib_enabled_localeconv])
  1832. AM_CONDITIONAL([gl_GNULIB_ENABLED_log], [$gl_gnulib_enabled_log])
  1833. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbrtowc], [$gl_gnulib_enabled_mbrtowc])
  1834. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbsinit], [$gl_gnulib_enabled_mbsinit])
  1835. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbtowc], [$gl_gnulib_enabled_mbtowc])
  1836. AM_CONDITIONAL([gl_GNULIB_ENABLED_memchr], [$gl_gnulib_enabled_memchr])
  1837. AM_CONDITIONAL([gl_GNULIB_ENABLED_mempcpy], [$gl_gnulib_enabled_mempcpy])
  1838. AM_CONDITIONAL([gl_GNULIB_ENABLED_mktime], [$gl_gnulib_enabled_mktime])
  1839. AM_CONDITIONAL([gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31], [$gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31])
  1840. AM_CONDITIONAL([gl_GNULIB_ENABLED_netinet_in], [$gl_gnulib_enabled_netinet_in])
  1841. AM_CONDITIONAL([gl_GNULIB_ENABLED_pathmax], [$gl_gnulib_enabled_pathmax])
  1842. AM_CONDITIONAL([gl_GNULIB_ENABLED_332607f759618fb73dfc3076748afea7], [$gl_gnulib_enabled_332607f759618fb73dfc3076748afea7])
  1843. AM_CONDITIONAL([gl_GNULIB_ENABLED_raise], [$gl_gnulib_enabled_raise])
  1844. AM_CONDITIONAL([gl_GNULIB_ENABLED_rawmemchr], [$gl_gnulib_enabled_rawmemchr])
  1845. AM_CONDITIONAL([gl_GNULIB_ENABLED_61bcaca76b3e6f9ae55d57a1c3193bc4], [$gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4])
  1846. AM_CONDITIONAL([gl_GNULIB_ENABLED_round], [$gl_gnulib_enabled_round])
  1847. AM_CONDITIONAL([gl_GNULIB_ENABLED_9bc5f216d57e231e4834049d67d0db62], [$gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62])
  1848. AM_CONDITIONAL([gl_GNULIB_ENABLED_servent], [$gl_gnulib_enabled_servent])
  1849. AM_CONDITIONAL([gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd], [$gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd])
  1850. AM_CONDITIONAL([gl_GNULIB_ENABLED_cdeb0f2aaf9d280baa6526bfa1b07f70], [$gl_gnulib_enabled_cdeb0f2aaf9d280baa6526bfa1b07f70])
  1851. AM_CONDITIONAL([gl_GNULIB_ENABLED_signbit], [$gl_gnulib_enabled_signbit])
  1852. AM_CONDITIONAL([gl_GNULIB_ENABLED_size_max], [$gl_gnulib_enabled_size_max])
  1853. AM_CONDITIONAL([gl_GNULIB_ENABLED_snprintf], [$gl_gnulib_enabled_snprintf])
  1854. AM_CONDITIONAL([gl_GNULIB_ENABLED_sockets], [$gl_gnulib_enabled_sockets])
  1855. AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
  1856. AM_CONDITIONAL([gl_GNULIB_ENABLED_stpcpy], [$gl_gnulib_enabled_stpcpy])
  1857. AM_CONDITIONAL([gl_GNULIB_ENABLED_strchrnul], [$gl_gnulib_enabled_strchrnul])
  1858. AM_CONDITIONAL([gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0], [$gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0])
  1859. AM_CONDITIONAL([gl_GNULIB_ENABLED_streq], [$gl_gnulib_enabled_streq])
  1860. AM_CONDITIONAL([gl_GNULIB_ENABLED_sys_random], [$gl_gnulib_enabled_sys_random])
  1861. AM_CONDITIONAL([gl_GNULIB_ENABLED_tempname], [$gl_gnulib_enabled_tempname])
  1862. AM_CONDITIONAL([gl_GNULIB_ENABLED_time_r], [$gl_gnulib_enabled_time_r])
  1863. AM_CONDITIONAL([gl_GNULIB_ENABLED_timegm], [$gl_gnulib_enabled_timegm])
  1864. AM_CONDITIONAL([gl_GNULIB_ENABLED_tzset], [$gl_gnulib_enabled_tzset])
  1865. AM_CONDITIONAL([gl_GNULIB_ENABLED_unsetenv], [$gl_gnulib_enabled_unsetenv])
  1866. AM_CONDITIONAL([gl_GNULIB_ENABLED_vasnprintf], [$gl_gnulib_enabled_vasnprintf])
  1867. AM_CONDITIONAL([gl_GNULIB_ENABLED_wcrtomb], [$gl_gnulib_enabled_wcrtomb])
  1868. AM_CONDITIONAL([gl_GNULIB_ENABLED_3dcce957eadc896e63ab5f137947b410], [$gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410])
  1869. AM_CONDITIONAL([gl_GNULIB_ENABLED_fd43d02c899a251eacc999baf40b238e], [$gl_gnulib_enabled_fd43d02c899a251eacc999baf40b238e])
  1870. AM_CONDITIONAL([gl_GNULIB_ENABLED_xsize], [$gl_gnulib_enabled_xsize])
  1871. # End of code from modules
  1872. m4_ifval(gl_LIBSOURCES_LIST, [
  1873. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  1874. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  1875. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  1876. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  1877. exit 1
  1878. fi
  1879. done])dnl
  1880. m4_if(m4_sysval, [0], [],
  1881. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  1882. ])
  1883. m4_popdef([GL_MODULE_INDICATOR_PREFIX])
  1884. m4_popdef([GL_MACRO_PREFIX])
  1885. m4_popdef([gl_LIBSOURCES_DIR])
  1886. m4_popdef([gl_LIBSOURCES_LIST])
  1887. m4_popdef([AC_LIBSOURCES])
  1888. m4_popdef([AC_REPLACE_FUNCS])
  1889. m4_popdef([AC_LIBOBJ])
  1890. AC_CONFIG_COMMANDS_PRE([
  1891. gl_libobjs=
  1892. gl_ltlibobjs=
  1893. gl_libobjdeps=
  1894. if test -n "$gl_LIBOBJS"; then
  1895. # Remove the extension.
  1896. changequote(,)dnl
  1897. sed_drop_objext='s/\.o$//;s/\.obj$//'
  1898. sed_dirname1='s,//*,/,g'
  1899. sed_dirname2='s,\(.\)/$,\1,'
  1900. sed_dirname3='s,^[^/]*$,.,'
  1901. sed_dirname4='s,\(.\)/[^/]*$,\1,'
  1902. sed_basename1='s,.*/,,'
  1903. changequote([, ])dnl
  1904. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  1905. gl_libobjs="$gl_libobjs $i.$ac_objext"
  1906. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  1907. i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
  1908. i_base=`echo "$i" | sed -e "$sed_basename1"`
  1909. gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
  1910. done
  1911. fi
  1912. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  1913. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  1914. AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
  1915. ])
  1916. gltests_libdeps=
  1917. gltests_ltlibdeps=
  1918. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  1919. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  1920. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  1921. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  1922. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  1923. m4_pushdef([GL_MACRO_PREFIX], [gltests])
  1924. m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
  1925. gl_COMMON
  1926. gl_source_base='tests'
  1927. gl_source_base_prefix=
  1928. changequote(,)dnl
  1929. 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
  1930. changequote([, ])dnl
  1931. AC_SUBST([gltests_WITNESS])
  1932. gl_module_indicator_condition=$gltests_WITNESS
  1933. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  1934. m4_pattern_allow([^gl_GNULIB_ENABLED_])
  1935. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  1936. m4_ifval(gltests_LIBSOURCES_LIST, [
  1937. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  1938. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  1939. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  1940. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  1941. exit 1
  1942. fi
  1943. done])dnl
  1944. m4_if(m4_sysval, [0], [],
  1945. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  1946. ])
  1947. m4_popdef([GL_MODULE_INDICATOR_PREFIX])
  1948. m4_popdef([GL_MACRO_PREFIX])
  1949. m4_popdef([gltests_LIBSOURCES_DIR])
  1950. m4_popdef([gltests_LIBSOURCES_LIST])
  1951. m4_popdef([AC_LIBSOURCES])
  1952. m4_popdef([AC_REPLACE_FUNCS])
  1953. m4_popdef([AC_LIBOBJ])
  1954. AC_CONFIG_COMMANDS_PRE([
  1955. gltests_libobjs=
  1956. gltests_ltlibobjs=
  1957. gltests_libobjdeps=
  1958. if test -n "$gltests_LIBOBJS"; then
  1959. # Remove the extension.
  1960. changequote(,)dnl
  1961. sed_drop_objext='s/\.o$//;s/\.obj$//'
  1962. sed_dirname1='s,//*,/,g'
  1963. sed_dirname2='s,\(.\)/$,\1,'
  1964. sed_dirname3='s,^[^/]*$,.,'
  1965. sed_dirname4='s,\(.\)/[^/]*$,\1,'
  1966. sed_basename1='s,.*/,,'
  1967. changequote([, ])dnl
  1968. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  1969. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  1970. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  1971. i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
  1972. i_base=`echo "$i" | sed -e "$sed_basename1"`
  1973. gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
  1974. done
  1975. fi
  1976. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  1977. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  1978. AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
  1979. ])
  1980. AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
  1981. ])
  1982. # Like AC_LIBOBJ, except that the module name goes
  1983. # into gl_LIBOBJS instead of into LIBOBJS.
  1984. AC_DEFUN([gl_LIBOBJ], [
  1985. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  1986. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  1987. ])
  1988. # Like AC_REPLACE_FUNCS, except that the module name goes
  1989. # into gl_LIBOBJS instead of into LIBOBJS.
  1990. AC_DEFUN([gl_REPLACE_FUNCS], [
  1991. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  1992. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  1993. ])
  1994. # Like AC_LIBSOURCES, except the directory where the source file is
  1995. # expected is derived from the gnulib-tool parameterization,
  1996. # and alloca is special cased (for the alloca-opt module).
  1997. # We could also entirely rely on EXTRA_lib..._SOURCES.
  1998. AC_DEFUN([gl_LIBSOURCES], [
  1999. m4_foreach([_gl_NAME], [$1], [
  2000. m4_if(_gl_NAME, [alloca.c], [], [
  2001. m4_define([gl_LIBSOURCES_DIR], [lib])
  2002. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  2003. ])
  2004. ])
  2005. ])
  2006. # Like AC_LIBOBJ, except that the module name goes
  2007. # into gltests_LIBOBJS instead of into LIBOBJS.
  2008. AC_DEFUN([gltests_LIBOBJ], [
  2009. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  2010. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  2011. ])
  2012. # Like AC_REPLACE_FUNCS, except that the module name goes
  2013. # into gltests_LIBOBJS instead of into LIBOBJS.
  2014. AC_DEFUN([gltests_REPLACE_FUNCS], [
  2015. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  2016. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  2017. ])
  2018. # Like AC_LIBSOURCES, except the directory where the source file is
  2019. # expected is derived from the gnulib-tool parameterization,
  2020. # and alloca is special cased (for the alloca-opt module).
  2021. # We could also entirely rely on EXTRA_lib..._SOURCES.
  2022. AC_DEFUN([gltests_LIBSOURCES], [
  2023. m4_foreach([_gl_NAME], [$1], [
  2024. m4_if(_gl_NAME, [alloca.c], [], [
  2025. m4_define([gltests_LIBSOURCES_DIR], [tests])
  2026. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  2027. ])
  2028. ])
  2029. ])
  2030. # This macro records the list of files which have been installed by
  2031. # gnulib-tool and may be removed by future gnulib-tool invocations.
  2032. AC_DEFUN([gl_FILE_LIST], [
  2033. build-aux/announce-gen
  2034. build-aux/config.rpath
  2035. build-aux/gendocs.sh
  2036. build-aux/git-version-gen
  2037. build-aux/gitlog-to-changelog
  2038. build-aux/gnu-web-doc-update
  2039. build-aux/gnupload
  2040. build-aux/useless-if-before-free
  2041. build-aux/vc-list-files
  2042. doc/gendocs_template
  2043. doc/gendocs_template_min
  2044. lib/_Noreturn.h
  2045. lib/accept.c
  2046. lib/accept4.c
  2047. lib/access.c
  2048. lib/alignof.h
  2049. lib/alloca.c
  2050. lib/alloca.in.h
  2051. lib/arg-nonnull.h
  2052. lib/arpa_inet.in.h
  2053. lib/asnprintf.c
  2054. lib/assert.in.h
  2055. lib/assure.h
  2056. lib/attribute.h
  2057. lib/basename-lgpl.c
  2058. lib/basename-lgpl.h
  2059. lib/binary-io.c
  2060. lib/binary-io.h
  2061. lib/bind.c
  2062. lib/btowc.c
  2063. lib/byteswap.in.h
  2064. lib/c++defs.h
  2065. lib/c-ctype.c
  2066. lib/c-ctype.h
  2067. lib/c-strcase.h
  2068. lib/c-strcasecmp.c
  2069. lib/c-strcaseeq.h
  2070. lib/c-strncasecmp.c
  2071. lib/canonicalize-lgpl.c
  2072. lib/cdefs.h
  2073. lib/ceil.c
  2074. lib/cloexec.c
  2075. lib/cloexec.h
  2076. lib/close.c
  2077. lib/concat-filename.c
  2078. lib/concat-filename.h
  2079. lib/connect.c
  2080. lib/copysign.c
  2081. lib/dirent.in.h
  2082. lib/dirfd.c
  2083. lib/dirname-lgpl.c
  2084. lib/dirname.h
  2085. lib/dup2.c
  2086. lib/duplocale.c
  2087. lib/dynarray.h
  2088. lib/eloop-threshold.h
  2089. lib/errno.in.h
  2090. lib/fcntl.c
  2091. lib/fcntl.in.h
  2092. lib/fd-hook.c
  2093. lib/fd-hook.h
  2094. lib/filename.h
  2095. lib/findprog-in.c
  2096. lib/findprog.h
  2097. lib/flexmember.h
  2098. lib/float+.h
  2099. lib/float.c
  2100. lib/float.in.h
  2101. lib/flock.c
  2102. lib/floor.c
  2103. lib/free.c
  2104. lib/frexp.c
  2105. lib/fstat.c
  2106. lib/fsync.c
  2107. lib/full-read.c
  2108. lib/full-read.h
  2109. lib/full-write.c
  2110. lib/full-write.h
  2111. lib/gai_strerror.c
  2112. lib/getaddrinfo.c
  2113. lib/getdtablesize.c
  2114. lib/gethostname.c
  2115. lib/getlogin.c
  2116. lib/getpeername.c
  2117. lib/getrandom.c
  2118. lib/getsockname.c
  2119. lib/getsockopt.c
  2120. lib/gettext.h
  2121. lib/hard-locale.c
  2122. lib/hard-locale.h
  2123. lib/iconv.c
  2124. lib/iconv.in.h
  2125. lib/iconv_close.c
  2126. lib/iconv_open-aix.gperf
  2127. lib/iconv_open-hpux.gperf
  2128. lib/iconv_open-irix.gperf
  2129. lib/iconv_open-osf.gperf
  2130. lib/iconv_open-solaris.gperf
  2131. lib/iconv_open-zos.gperf
  2132. lib/iconv_open.c
  2133. lib/iconveh.h
  2134. lib/idx.h
  2135. lib/inet_ntop.c
  2136. lib/inet_pton.c
  2137. lib/intprops-internal.h
  2138. lib/intprops.h
  2139. lib/inttypes.in.h
  2140. lib/isfinite.c
  2141. lib/isinf.c
  2142. lib/isnan.c
  2143. lib/isnand-nolibm.h
  2144. lib/isnand.c
  2145. lib/isnanf-nolibm.h
  2146. lib/isnanf.c
  2147. lib/isnanl-nolibm.h
  2148. lib/isnanl.c
  2149. lib/itold.c
  2150. lib/langinfo.in.h
  2151. lib/lc-charset-dispatch.c
  2152. lib/lc-charset-dispatch.h
  2153. lib/libc-config.h
  2154. lib/libunistring.valgrind
  2155. lib/limits.in.h
  2156. lib/link.c
  2157. lib/listen.c
  2158. lib/localcharset.c
  2159. lib/localcharset.h
  2160. lib/locale.in.h
  2161. lib/localeconv.c
  2162. lib/log.c
  2163. lib/log1p.c
  2164. lib/lstat.c
  2165. lib/malloc.c
  2166. lib/malloc/dynarray-skeleton.c
  2167. lib/malloc/dynarray.h
  2168. lib/malloc/dynarray_at_failure.c
  2169. lib/malloc/dynarray_emplace_enlarge.c
  2170. lib/malloc/dynarray_finalize.c
  2171. lib/malloc/dynarray_resize.c
  2172. lib/malloc/dynarray_resize_clear.c
  2173. lib/malloc/scratch_buffer.h
  2174. lib/malloc/scratch_buffer_grow.c
  2175. lib/malloc/scratch_buffer_grow_preserve.c
  2176. lib/malloc/scratch_buffer_set_array_size.c
  2177. lib/malloca.c
  2178. lib/malloca.h
  2179. lib/math.c
  2180. lib/math.in.h
  2181. lib/mbrtowc-impl-utf8.h
  2182. lib/mbrtowc-impl.h
  2183. lib/mbrtowc.c
  2184. lib/mbsinit.c
  2185. lib/mbtowc-impl.h
  2186. lib/mbtowc-lock.c
  2187. lib/mbtowc-lock.h
  2188. lib/mbtowc.c
  2189. lib/memchr.c
  2190. lib/memchr.valgrind
  2191. lib/mempcpy.c
  2192. lib/minmax.h
  2193. lib/mkdir.c
  2194. lib/mkostemp.c
  2195. lib/mktime-internal.h
  2196. lib/mktime.c
  2197. lib/msvc-inval.c
  2198. lib/msvc-inval.h
  2199. lib/msvc-nothrow.c
  2200. lib/msvc-nothrow.h
  2201. lib/netdb.in.h
  2202. lib/netinet_in.in.h
  2203. lib/nl_langinfo-lock.c
  2204. lib/nl_langinfo.c
  2205. lib/nproc.c
  2206. lib/nproc.h
  2207. lib/nstrftime.c
  2208. lib/open.c
  2209. lib/pathmax.h
  2210. lib/pipe.c
  2211. lib/pipe2.c
  2212. lib/poll.c
  2213. lib/poll.in.h
  2214. lib/printf-args.c
  2215. lib/printf-args.h
  2216. lib/printf-parse.c
  2217. lib/printf-parse.h
  2218. lib/putenv.c
  2219. lib/raise.c
  2220. lib/rawmemchr.c
  2221. lib/rawmemchr.valgrind
  2222. lib/read.c
  2223. lib/readlink.c
  2224. lib/realloc.c
  2225. lib/recv.c
  2226. lib/recvfrom.c
  2227. lib/regcomp.c
  2228. lib/regex.c
  2229. lib/regex.h
  2230. lib/regex_internal.c
  2231. lib/regex_internal.h
  2232. lib/regexec.c
  2233. lib/rename.c
  2234. lib/rmdir.c
  2235. lib/round.c
  2236. lib/safe-read.c
  2237. lib/safe-read.h
  2238. lib/safe-write.c
  2239. lib/safe-write.h
  2240. lib/same-inode.h
  2241. lib/sched.in.h
  2242. lib/scratch_buffer.h
  2243. lib/select.c
  2244. lib/send.c
  2245. lib/sendto.c
  2246. lib/setenv.c
  2247. lib/setlocale-lock.c
  2248. lib/setlocale_null.c
  2249. lib/setlocale_null.h
  2250. lib/setsockopt.c
  2251. lib/shutdown.c
  2252. lib/signal.in.h
  2253. lib/signbitd.c
  2254. lib/signbitf.c
  2255. lib/signbitl.c
  2256. lib/size_max.h
  2257. lib/snprintf.c
  2258. lib/socket.c
  2259. lib/sockets.c
  2260. lib/sockets.h
  2261. lib/spawn.c
  2262. lib/spawn.in.h
  2263. lib/spawn_faction_addclose.c
  2264. lib/spawn_faction_adddup2.c
  2265. lib/spawn_faction_addopen.c
  2266. lib/spawn_faction_init.c
  2267. lib/spawn_int.h
  2268. lib/spawni.c
  2269. lib/spawnp.c
  2270. lib/stat-time.c
  2271. lib/stat-time.h
  2272. lib/stat-w32.c
  2273. lib/stat-w32.h
  2274. lib/stat.c
  2275. lib/stdckdint.in.h
  2276. lib/stddef.in.h
  2277. lib/stdint.in.h
  2278. lib/stdio-read.c
  2279. lib/stdio-write.c
  2280. lib/stdio.in.h
  2281. lib/stdlib.in.h
  2282. lib/stpcpy.c
  2283. lib/strchrnul.c
  2284. lib/strchrnul.valgrind
  2285. lib/strdup.c
  2286. lib/streq.h
  2287. lib/strftime.h
  2288. lib/striconveh.c
  2289. lib/striconveh.h
  2290. lib/string.in.h
  2291. lib/stripslash.c
  2292. lib/sys-limits.h
  2293. lib/sys_file.in.h
  2294. lib/sys_random.in.h
  2295. lib/sys_select.in.h
  2296. lib/sys_socket.c
  2297. lib/sys_socket.in.h
  2298. lib/sys_stat.in.h
  2299. lib/sys_time.in.h
  2300. lib/sys_times.in.h
  2301. lib/sys_types.in.h
  2302. lib/sys_uio.in.h
  2303. lib/tempname.c
  2304. lib/tempname.h
  2305. lib/time-internal.h
  2306. lib/time.in.h
  2307. lib/time_r.c
  2308. lib/time_rz.c
  2309. lib/timegm.c
  2310. lib/times.c
  2311. lib/trunc.c
  2312. lib/tzset.c
  2313. lib/unistd.c
  2314. lib/unistd.in.h
  2315. lib/unsetenv.c
  2316. lib/vasnprintf.c
  2317. lib/vasnprintf.h
  2318. lib/verify.h
  2319. lib/vsnprintf.c
  2320. lib/w32sock.h
  2321. lib/warn-on-use.h
  2322. lib/wchar.in.h
  2323. lib/wcrtomb.c
  2324. lib/wctype-h.c
  2325. lib/wctype.in.h
  2326. lib/windows-initguard.h
  2327. lib/windows-spawn.c
  2328. lib/windows-spawn.h
  2329. lib/write.c
  2330. lib/xalloc-oversized.h
  2331. lib/xsize.c
  2332. lib/xsize.h
  2333. m4/00gnulib.m4
  2334. m4/__inline.m4
  2335. m4/absolute-header.m4
  2336. m4/accept4.m4
  2337. m4/access.m4
  2338. m4/alloca.m4
  2339. m4/arpa_inet_h.m4
  2340. m4/assert_h.m4
  2341. m4/autobuild.m4
  2342. m4/btowc.m4
  2343. m4/builtin-expect.m4
  2344. m4/byteswap.m4
  2345. m4/c-bool.m4
  2346. m4/canonicalize.m4
  2347. m4/ceil.m4
  2348. m4/check-math-lib.m4
  2349. m4/clock_time.m4
  2350. m4/close.m4
  2351. m4/codeset.m4
  2352. m4/copysign.m4
  2353. m4/dirent_h.m4
  2354. m4/dirfd.m4
  2355. m4/double-slash-root.m4
  2356. m4/dup2.m4
  2357. m4/duplocale.m4
  2358. m4/eaccess.m4
  2359. m4/eealloc.m4
  2360. m4/environ.m4
  2361. m4/errno_h.m4
  2362. m4/exponentd.m4
  2363. m4/exponentf.m4
  2364. m4/exponentl.m4
  2365. m4/extensions.m4
  2366. m4/extern-inline.m4
  2367. m4/fcntl-o.m4
  2368. m4/fcntl.m4
  2369. m4/fcntl_h.m4
  2370. m4/findprog-in.m4
  2371. m4/flexmember.m4
  2372. m4/float_h.m4
  2373. m4/flock.m4
  2374. m4/floor.m4
  2375. m4/fpieee.m4
  2376. m4/free.m4
  2377. m4/frexp.m4
  2378. m4/fstat.m4
  2379. m4/fsync.m4
  2380. m4/func.m4
  2381. m4/getaddrinfo.m4
  2382. m4/getdtablesize.m4
  2383. m4/gethostname.m4
  2384. m4/getlogin.m4
  2385. m4/getrandom.m4
  2386. m4/gnulib-common.m4
  2387. m4/host-cpu-c-abi.m4
  2388. m4/hostent.m4
  2389. m4/iconv.m4
  2390. m4/iconv_h.m4
  2391. m4/iconv_open-utf.m4
  2392. m4/iconv_open.m4
  2393. m4/include_next.m4
  2394. m4/inet_ntop.m4
  2395. m4/inet_pton.m4
  2396. m4/intmax_t.m4
  2397. m4/inttypes.m4
  2398. m4/inttypes_h.m4
  2399. m4/isfinite.m4
  2400. m4/isinf.m4
  2401. m4/isnan.m4
  2402. m4/isnand.m4
  2403. m4/isnanf.m4
  2404. m4/isnanl.m4
  2405. m4/langinfo_h.m4
  2406. m4/largefile.m4
  2407. m4/ld-version-script.m4
  2408. m4/ldexp.m4
  2409. m4/lib-ld.m4
  2410. m4/lib-link.m4
  2411. m4/lib-prefix.m4
  2412. m4/libunistring.m4
  2413. m4/limits-h.m4
  2414. m4/link.m4
  2415. m4/localcharset.m4
  2416. m4/locale-fr.m4
  2417. m4/locale-ja.m4
  2418. m4/locale-zh.m4
  2419. m4/locale_h.m4
  2420. m4/localeconv.m4
  2421. m4/log.m4
  2422. m4/log1p.m4
  2423. m4/lstat.m4
  2424. m4/malloc.m4
  2425. m4/malloca.m4
  2426. m4/math_h.m4
  2427. m4/mathfunc.m4
  2428. m4/mbrtowc.m4
  2429. m4/mbsinit.m4
  2430. m4/mbstate_t.m4
  2431. m4/mbtowc.m4
  2432. m4/memchr.m4
  2433. m4/mempcpy.m4
  2434. m4/minmax.m4
  2435. m4/mkdir.m4
  2436. m4/mkostemp.m4
  2437. m4/mktime.m4
  2438. m4/mmap-anon.m4
  2439. m4/mode_t.m4
  2440. m4/msvc-inval.m4
  2441. m4/msvc-nothrow.m4
  2442. m4/multiarch.m4
  2443. m4/netdb_h.m4
  2444. m4/netinet_in_h.m4
  2445. m4/nl_langinfo.m4
  2446. m4/nocrash.m4
  2447. m4/nproc.m4
  2448. m4/nstrftime.m4
  2449. m4/off_t.m4
  2450. m4/open-cloexec.m4
  2451. m4/open-slash.m4
  2452. m4/open.m4
  2453. m4/pathmax.m4
  2454. m4/pid_t.m4
  2455. m4/pipe.m4
  2456. m4/pipe2.m4
  2457. m4/poll.m4
  2458. m4/poll_h.m4
  2459. m4/posix_spawn.m4
  2460. m4/printf.m4
  2461. m4/putenv.m4
  2462. m4/raise.m4
  2463. m4/rawmemchr.m4
  2464. m4/read.m4
  2465. m4/readlink.m4
  2466. m4/realloc.m4
  2467. m4/regex.m4
  2468. m4/rename.m4
  2469. m4/rmdir.m4
  2470. m4/round.m4
  2471. m4/safe-read.m4
  2472. m4/safe-write.m4
  2473. m4/sched_h.m4
  2474. m4/select.m4
  2475. m4/servent.m4
  2476. m4/setenv.m4
  2477. m4/setlocale_null.m4
  2478. m4/sh-filename.m4
  2479. m4/signal_h.m4
  2480. m4/signbit.m4
  2481. m4/size_max.m4
  2482. m4/snprintf.m4
  2483. m4/socketlib.m4
  2484. m4/sockets.m4
  2485. m4/socklen.m4
  2486. m4/sockpfaf.m4
  2487. m4/spawn_h.m4
  2488. m4/ssize_t.m4
  2489. m4/stat-time.m4
  2490. m4/stat.m4
  2491. m4/std-gnu11.m4
  2492. m4/stdalign.m4
  2493. m4/stddef_h.m4
  2494. m4/stdint.m4
  2495. m4/stdint_h.m4
  2496. m4/stdio_h.m4
  2497. m4/stdlib_h.m4
  2498. m4/stpcpy.m4
  2499. m4/strchrnul.m4
  2500. m4/strdup.m4
  2501. m4/string_h.m4
  2502. m4/sys_file_h.m4
  2503. m4/sys_random_h.m4
  2504. m4/sys_select_h.m4
  2505. m4/sys_socket_h.m4
  2506. m4/sys_stat_h.m4
  2507. m4/sys_time_h.m4
  2508. m4/sys_times_h.m4
  2509. m4/sys_types_h.m4
  2510. m4/sys_uio_h.m4
  2511. m4/tempname.m4
  2512. m4/threadlib.m4
  2513. m4/time_h.m4
  2514. m4/time_r.m4
  2515. m4/time_rz.m4
  2516. m4/timegm.m4
  2517. m4/times.m4
  2518. m4/tm_gmtoff.m4
  2519. m4/trunc.m4
  2520. m4/tzset.m4
  2521. m4/unistd_h.m4
  2522. m4/vararrays.m4
  2523. m4/vasnprintf.m4
  2524. m4/visibility.m4
  2525. m4/vsnprintf.m4
  2526. m4/warn-on-use.m4
  2527. m4/warnings.m4
  2528. m4/wchar_h.m4
  2529. m4/wchar_t.m4
  2530. m4/wcrtomb.m4
  2531. m4/wctype_h.m4
  2532. m4/wint_t.m4
  2533. m4/write.m4
  2534. m4/xsize.m4
  2535. m4/zzgnulib.m4
  2536. top/GNUmakefile
  2537. top/maint.mk
  2538. ])