0000: 23 20 44 4f 20 4e 4f 54 20 45 44 49 54 21 20 47 # DO NOT EDIT! G
0010: 45 4e 45 52 41 54 45 44 20 41 55 54 4f 4d 41 54 ENERATED AUTOMAT
0020: 49 43 41 4c 4c 59 21 0a 23 20 43 6f 70 79 72 69 ICALLY!.# Copyri
0030: 67 68 74 20 28 43 29 20 32 30 30 32 2d 32 30 31 ght (C) 2002-201
0040: 30 20 46 72 65 65 20 53 6f 66 74 77 61 72 65 20 0 Free Software
0050: 46 6f 75 6e 64 61 74 69 6f 6e 2c 20 49 6e 63 2e Foundation, Inc.
0060: 0a 23 0a 23 20 54 68 69 73 20 66 69 6c 65 20 69 .#.# This file i
0070: 73 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 2c s free software,
0080: 20 64 69 73 74 72 69 62 75 74 65 64 20 75 6e 64 distributed und
0090: 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 20 er the terms of
00a0: 74 68 65 20 47 4e 55 0a 23 20 47 65 6e 65 72 61 the GNU.# Genera
00b0: 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 l Public License
00c0: 2e 20 20 41 73 20 61 20 73 70 65 63 69 61 6c 20 . As a special
00d0: 65 78 63 65 70 74 69 6f 6e 20 74 6f 20 74 68 65 exception to the
00e0: 20 47 4e 55 20 47 65 6e 65 72 61 6c 0a 23 20 50 GNU General.# P
00f0: 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 2c 20 74 ublic License, t
0100: 68 69 73 20 66 69 6c 65 20 6d 61 79 20 62 65 20 his file may be
0110: 64 69 73 74 72 69 62 75 74 65 64 20 61 73 20 70 distributed as p
0120: 61 72 74 20 6f 66 20 61 20 70 72 6f 67 72 61 6d art of a program
0130: 0a 23 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 73 .# that contains
0140: 20 61 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e a configuration
0150: 20 73 63 72 69 70 74 20 67 65 6e 65 72 61 74 65 script generate
0160: 64 20 62 79 20 41 75 74 6f 63 6f 6e 66 2c 20 75 d by Autoconf, u
0170: 6e 64 65 72 0a 23 20 74 68 65 20 73 61 6d 65 20 nder.# the same
0180: 64 69 73 74 72 69 62 75 74 69 6f 6e 20 74 65 72 distribution ter
0190: 6d 73 20 61 73 20 74 68 65 20 72 65 73 74 20 6f ms as the rest o
01a0: 66 20 74 68 61 74 20 70 72 6f 67 72 61 6d 2e 0a f that program..
01b0: 23 0a 23 20 47 65 6e 65 72 61 74 65 64 20 62 79 #.# Generated by
01c0: 20 67 6e 75 6c 69 62 2d 74 6f 6f 6c 2e 0a 23 0a gnulib-tool..#.
01d0: 23 20 54 68 69 73 20 66 69 6c 65 20 72 65 70 72 # This file repr
01e0: 65 73 65 6e 74 73 20 74 68 65 20 63 6f 6d 70 69 esents the compi
01f0: 6c 65 64 20 73 75 6d 6d 61 72 79 20 6f 66 20 74 led summary of t
0200: 68 65 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e he specification
0210: 20 69 6e 0a 23 20 67 6e 75 6c 69 62 2d 63 61 63 in.# gnulib-cac
0220: 68 65 2e 6d 34 2e 20 49 74 20 6c 69 73 74 73 20 he.m4. It lists
0230: 74 68 65 20 63 6f 6d 70 75 74 65 64 20 6d 61 63 the computed mac
0240: 72 6f 20 69 6e 76 6f 63 61 74 69 6f 6e 73 20 74 ro invocations t
0250: 68 61 74 20 6e 65 65 64 0a 23 20 74 6f 20 62 65 hat need.# to be
0260: 20 69 6e 76 6f 6b 65 64 20 66 72 6f 6d 20 63 6f invoked from co
0270: 6e 66 69 67 75 72 65 2e 61 63 2e 0a 23 20 49 6e nfigure.ac..# In
0280: 20 70 72 6f 6a 65 63 74 73 20 75 73 69 6e 67 20 projects using
0290: 43 56 53 2c 20 74 68 69 73 20 66 69 6c 65 20 63 CVS, this file c
02a0: 61 6e 20 62 65 20 74 72 65 61 74 65 64 20 6c 69 an be treated li
02b0: 6b 65 20 6f 74 68 65 72 20 62 75 69 6c 74 20 66 ke other built f
02c0: 69 6c 65 73 2e 0a 0a 0a 23 20 54 68 69 73 20 6d iles....# This m
02d0: 61 63 72 6f 20 73 68 6f 75 6c 64 20 62 65 20 69 acro should be i
02e0: 6e 76 6f 6b 65 64 20 66 72 6f 6d 20 2e 2f 63 6f nvoked from ./co
02f0: 6e 66 69 67 75 72 65 2e 61 63 2c 20 69 6e 20 74 nfigure.ac, in t
0300: 68 65 20 73 65 63 74 69 6f 6e 0a 23 20 22 43 68 he section.# "Ch
0310: 65 63 6b 73 20 66 6f 72 20 70 72 6f 67 72 61 6d ecks for program
0320: 73 22 2c 20 72 69 67 68 74 20 61 66 74 65 72 20 s", right after
0330: 41 43 5f 50 52 4f 47 5f 43 43 2c 20 61 6e 64 20 AC_PROG_CC, and
0340: 63 65 72 74 61 69 6e 6c 79 20 62 65 66 6f 72 65 certainly before
0350: 0a 23 20 61 6e 79 20 63 68 65 63 6b 73 20 66 6f .# any checks fo
0360: 72 20 6c 69 62 72 61 72 69 65 73 2c 20 68 65 61 r libraries, hea
0370: 64 65 72 20 66 69 6c 65 73 2c 20 74 79 70 65 73 der files, types
0380: 20 61 6e 64 20 6c 69 62 72 61 72 79 20 66 75 6e and library fun
0390: 63 74 69 6f 6e 73 2e 0a 41 43 5f 44 45 46 55 4e ctions..AC_DEFUN
03a0: 28 5b 67 6c 5f 45 41 52 4c 59 5d 2c 0a 5b 0a 20 ([gl_EARLY],.[.
03b0: 20 6d 34 5f 70 61 74 74 65 72 6e 5f 66 6f 72 62 m4_pattern_forb
03c0: 69 64 28 5b 5e 67 6c 5f 5b 41 2d 5a 5d 5d 29 64 id([^gl_[A-Z]])d
03d0: 6e 6c 20 74 68 65 20 67 6e 75 6c 69 62 20 6d 61 nl the gnulib ma
03e0: 63 72 6f 20 6e 61 6d 65 73 70 61 63 65 0a 20 20 cro namespace.
03f0: 6d 34 5f 70 61 74 74 65 72 6e 5f 61 6c 6c 6f 77 m4_pattern_allow
0400: 28 5b 5e 67 6c 5f 45 53 24 5d 29 64 6e 6c 20 61 ([^gl_ES$])dnl a
0410: 20 76 61 6c 69 64 20 6c 6f 63 61 6c 65 20 6e 61 valid locale na
0420: 6d 65 0a 20 20 6d 34 5f 70 61 74 74 65 72 6e 5f me. m4_pattern_
0430: 61 6c 6c 6f 77 28 5b 5e 67 6c 5f 4c 49 42 4f 42 allow([^gl_LIBOB
0440: 4a 53 24 5d 29 64 6e 6c 20 61 20 76 61 72 69 61 JS$])dnl a varia
0450: 62 6c 65 0a 20 20 6d 34 5f 70 61 74 74 65 72 6e ble. m4_pattern
0460: 5f 61 6c 6c 6f 77 28 5b 5e 67 6c 5f 4c 54 4c 49 _allow([^gl_LTLI
0470: 42 4f 42 4a 53 24 5d 29 64 6e 6c 20 61 20 76 61 BOBJS$])dnl a va
0480: 72 69 61 62 6c 65 0a 20 20 41 43 5f 52 45 51 55 riable. AC_REQU
0490: 49 52 45 28 5b 41 43 5f 50 52 4f 47 5f 52 41 4e IRE([AC_PROG_RAN
04a0: 4c 49 42 5d 29 0a 20 20 23 20 43 6f 64 65 20 66 LIB]). # Code f
04b0: 72 6f 6d 20 6d 6f 64 75 6c 65 20 68 6f 73 74 2d rom module host-
04c0: 63 70 75 2d 63 2d 61 62 69 3a 0a 20 20 23 20 43 cpu-c-abi:. # C
04d0: 6f 64 65 20 66 72 6f 6d 20 6d 6f 64 75 6c 65 20 ode from module
04e0: 6c 6f 6e 67 6c 6f 6e 67 3a 0a 20 20 23 20 43 6f longlong:. # Co
04f0: 64 65 20 66 72 6f 6d 20 6d 6f 64 75 6c 65 20 6e de from module n
0500: 6f 63 72 61 73 68 3a 0a 5d 29 0a 0a 23 20 54 68 ocrash:.])..# Th
0510: 69 73 20 6d 61 63 72 6f 20 73 68 6f 75 6c 64 20 is macro should
0520: 62 65 20 69 6e 76 6f 6b 65 64 20 66 72 6f 6d 20 be invoked from
0530: 2e 2f 63 6f 6e 66 69 67 75 72 65 2e 61 63 2c 20 ./configure.ac,
0540: 69 6e 20 74 68 65 20 73 65 63 74 69 6f 6e 0a 23 in the section.#
0550: 20 22 43 68 65 63 6b 20 66 6f 72 20 68 65 61 64 "Check for head
0560: 65 72 20 66 69 6c 65 73 2c 20 74 79 70 65 73 20 er files, types
0570: 61 6e 64 20 6c 69 62 72 61 72 79 20 66 75 6e 63 and library func
0580: 74 69 6f 6e 73 22 2e 0a 41 43 5f 44 45 46 55 4e tions"..AC_DEFUN
0590: 28 5b 67 6c 5f 49 4e 49 54 5d 2c 0a 5b 0a 20 20 ([gl_INIT],.[.
05a0: 41 4d 5f 43 4f 4e 44 49 54 49 4f 4e 41 4c 28 5b AM_CONDITIONAL([
05b0: 47 4c 5f 43 4f 4e 44 5f 4c 49 42 54 4f 4f 4c 5d GL_COND_LIBTOOL]
05c0: 2c 20 5b 66 61 6c 73 65 5d 29 0a 20 20 67 6c 5f , [false]). gl_
05d0: 63 6f 6e 64 5f 6c 69 62 74 6f 6f 6c 3d 66 61 6c cond_libtool=fal
05e0: 73 65 0a 20 20 67 6c 5f 6c 69 62 64 65 70 73 3d se. gl_libdeps=
05f0: 0a 20 20 67 6c 5f 6c 74 6c 69 62 64 65 70 73 3d . gl_ltlibdeps=
0600: 0a 20 20 67 6c 5f 6d 34 5f 62 61 73 65 3d 27 67 . gl_m4_base='g
0610: 6c 6d 34 27 0a 20 20 6d 34 5f 70 75 73 68 64 65 lm4'. m4_pushde
0620: 66 28 5b 41 43 5f 4c 49 42 4f 42 4a 5d 2c 20 6d f([AC_LIBOBJ], m
0630: 34 5f 64 65 66 6e 28 5b 67 6c 5f 4c 49 42 4f 42 4_defn([gl_LIBOB
0640: 4a 5d 29 29 0a 20 20 6d 34 5f 70 75 73 68 64 65 J])). m4_pushde
0650: 66 28 5b 41 43 5f 52 45 50 4c 41 43 45 5f 46 55 f([AC_REPLACE_FU
0660: 4e 43 53 5d 2c 20 6d 34 5f 64 65 66 6e 28 5b 67 NCS], m4_defn([g
0670: 6c 5f 52 45 50 4c 41 43 45 5f 46 55 4e 43 53 5d l_REPLACE_FUNCS]
0680: 29 29 0a 20 20 6d 34 5f 70 75 73 68 64 65 66 28 )). m4_pushdef(
0690: 5b 41 43 5f 4c 49 42 53 4f 55 52 43 45 53 5d 2c [AC_LIBSOURCES],
06a0: 20 6d 34 5f 64 65 66 6e 28 5b 67 6c 5f 4c 49 42 m4_defn([gl_LIB
06b0: 53 4f 55 52 43 45 53 5d 29 29 0a 20 20 6d 34 5f SOURCES])). m4_
06c0: 70 75 73 68 64 65 66 28 5b 67 6c 5f 4c 49 42 53 pushdef([gl_LIBS
06d0: 4f 55 52 43 45 53 5f 4c 49 53 54 5d 2c 20 5b 5d OURCES_LIST], []
06e0: 29 0a 20 20 6d 34 5f 70 75 73 68 64 65 66 28 5b ). m4_pushdef([
06f0: 67 6c 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 gl_LIBSOURCES_DI
0700: 52 5d 2c 20 5b 5d 29 0a 20 20 67 6c 5f 43 4f 4d R], []). gl_COM
0710: 4d 4f 4e 0a 20 20 67 6c 5f 73 6f 75 72 63 65 5f MON. gl_source_
0720: 62 61 73 65 3d 27 67 6c 6c 69 62 27 0a 20 20 23 base='gllib'. #
0730: 20 43 6f 64 65 20 66 72 6f 6d 20 6d 6f 64 75 6c Code from modul
0740: 65 20 68 6f 73 74 2d 63 70 75 2d 63 2d 61 62 69 e host-cpu-c-abi
0750: 3a 0a 20 20 67 6c 5f 48 4f 53 54 5f 43 50 55 5f :. gl_HOST_CPU_
0760: 43 5f 41 42 49 0a 20 20 23 20 43 6f 64 65 20 66 C_ABI. # Code f
0770: 72 6f 6d 20 6d 6f 64 75 6c 65 20 6c 6f 6e 67 6c rom module longl
0780: 6f 6e 67 3a 0a 20 20 41 43 5f 52 45 51 55 49 52 ong:. AC_REQUIR
0790: 45 28 5b 41 43 5f 54 59 50 45 5f 4c 4f 4e 47 5f E([AC_TYPE_LONG_
07a0: 4c 4f 4e 47 5f 49 4e 54 5d 29 0a 20 20 41 43 5f LONG_INT]). AC_
07b0: 52 45 51 55 49 52 45 28 5b 41 43 5f 54 59 50 45 REQUIRE([AC_TYPE
07c0: 5f 55 4e 53 49 47 4e 45 44 5f 4c 4f 4e 47 5f 4c _UNSIGNED_LONG_L
07d0: 4f 4e 47 5f 49 4e 54 5d 29 0a 20 20 23 20 43 6f ONG_INT]). # Co
07e0: 64 65 20 66 72 6f 6d 20 6d 6f 64 75 6c 65 20 6e de from module n
07f0: 6f 63 72 61 73 68 3a 0a 20 20 23 20 43 6f 64 65 ocrash:. # Code
0800: 20 66 72 6f 6d 20 6d 6f 64 75 6c 65 20 64 75 6d from module dum
0810: 6d 79 3a 0a 20 20 23 20 45 6e 64 20 6f 66 20 63 my:. # End of c
0820: 6f 64 65 20 66 72 6f 6d 20 6d 6f 64 75 6c 65 73 ode from modules
0830: 0a 20 20 6d 34 5f 69 66 76 61 6c 28 67 6c 5f 4c . m4_ifval(gl_L
0840: 49 42 53 4f 55 52 43 45 53 5f 4c 49 53 54 2c 20 IBSOURCES_LIST,
0850: 5b 0a 20 20 20 20 6d 34 5f 73 79 73 63 6d 64 28 [. m4_syscmd(
0860: 5b 74 65 73 74 20 21 20 2d 64 20 5d 6d 34 5f 64 [test ! -d ]m4_d
0870: 65 66 6e 28 5b 67 6c 5f 4c 49 42 53 4f 55 52 43 efn([gl_LIBSOURC
0880: 45 53 5f 44 49 52 5d 29 5b 20 7c 7c 0a 20 20 20 ES_DIR])[ ||.
0890: 20 20 20 66 6f 72 20 67 6c 5f 66 69 6c 65 20 69 for gl_file i
08a0: 6e 20 5d 67 6c 5f 4c 49 42 53 4f 55 52 43 45 53 n ]gl_LIBSOURCES
08b0: 5f 4c 49 53 54 5b 20 3b 20 64 6f 0a 20 20 20 20 _LIST[ ; do.
08c0: 20 20 20 20 69 66 20 74 65 73 74 20 21 20 2d 72 if test ! -r
08d0: 20 5d 6d 34 5f 64 65 66 6e 28 5b 67 6c 5f 4c 49 ]m4_defn([gl_LI
08e0: 42 53 4f 55 52 43 45 53 5f 44 49 52 5d 29 5b 2f BSOURCES_DIR])[/
08f0: 24 67 6c 5f 66 69 6c 65 20 3b 20 74 68 65 6e 0a $gl_file ; then.
0900: 20 20 20 20 20 20 20 20 20 20 65 63 68 6f 20 22 echo "
0910: 6d 69 73 73 69 6e 67 20 66 69 6c 65 20 5d 6d 34 missing file ]m4
0920: 5f 64 65 66 6e 28 5b 67 6c 5f 4c 49 42 53 4f 55 _defn([gl_LIBSOU
0930: 52 43 45 53 5f 44 49 52 5d 29 5b 2f 24 67 6c 5f RCES_DIR])[/$gl_
0940: 66 69 6c 65 22 20 3e 26 32 0a 20 20 20 20 20 20 file" >&2.
0950: 20 20 20 20 65 78 69 74 20 31 0a 20 20 20 20 20 exit 1.
0960: 20 20 20 66 69 0a 20 20 20 20 20 20 64 6f 6e 65 fi. done
0970: 5d 29 64 6e 6c 0a 20 20 20 20 20 20 6d 34 5f 69 ])dnl. m4_i
0980: 66 28 6d 34 5f 73 79 73 76 61 6c 2c 20 5b 30 5d f(m4_sysval, [0]
0990: 2c 20 5b 5d 2c 0a 20 20 20 20 20 20 20 20 5b 41 , [],. [A
09a0: 43 5f 46 41 54 41 4c 28 5b 65 78 70 65 63 74 65 C_FATAL([expecte
09b0: 64 20 73 6f 75 72 63 65 20 66 69 6c 65 2c 20 72 d source file, r
09c0: 65 71 75 69 72 65 64 20 74 68 72 6f 75 67 68 20 equired through
09d0: 41 43 5f 4c 49 42 53 4f 55 52 43 45 53 2c 20 6e AC_LIBSOURCES, n
09e0: 6f 74 20 66 6f 75 6e 64 5d 29 5d 29 0a 20 20 5d ot found])]). ]
09f0: 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 28 5b 67 ). m4_popdef([g
0a00: 6c 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 52 l_LIBSOURCES_DIR
0a10: 5d 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 28 5b ]). m4_popdef([
0a20: 67 6c 5f 4c 49 42 53 4f 55 52 43 45 53 5f 4c 49 gl_LIBSOURCES_LI
0a30: 53 54 5d 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 ST]). m4_popdef
0a40: 28 5b 41 43 5f 4c 49 42 53 4f 55 52 43 45 53 5d ([AC_LIBSOURCES]
0a50: 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 28 5b 41 ). m4_popdef([A
0a60: 43 5f 52 45 50 4c 41 43 45 5f 46 55 4e 43 53 5d C_REPLACE_FUNCS]
0a70: 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 28 5b 41 ). m4_popdef([A
0a80: 43 5f 4c 49 42 4f 42 4a 5d 29 0a 20 20 41 43 5f C_LIBOBJ]). AC_
0a90: 43 4f 4e 46 49 47 5f 43 4f 4d 4d 41 4e 44 53 5f CONFIG_COMMANDS_
0aa0: 50 52 45 28 5b 0a 20 20 20 20 67 6c 5f 6c 69 62 PRE([. gl_lib
0ab0: 6f 62 6a 73 3d 0a 20 20 20 20 67 6c 5f 6c 74 6c objs=. gl_ltl
0ac0: 69 62 6f 62 6a 73 3d 0a 20 20 20 20 69 66 20 74 ibobjs=. if t
0ad0: 65 73 74 20 2d 6e 20 22 24 67 6c 5f 4c 49 42 4f est -n "$gl_LIBO
0ae0: 42 4a 53 22 3b 20 74 68 65 6e 0a 20 20 20 20 20 BJS"; then.
0af0: 20 23 20 52 65 6d 6f 76 65 20 74 68 65 20 65 78 # Remove the ex
0b00: 74 65 6e 73 69 6f 6e 2e 0a 20 20 20 20 20 20 73 tension.. s
0b10: 65 64 5f 64 72 6f 70 5f 6f 62 6a 65 78 74 3d 27 ed_drop_objext='
0b20: 73 2f 5c 2e 6f 24 2f 2f 3b 73 2f 5c 2e 6f 62 6a s/\.o$//;s/\.obj
0b30: 24 2f 2f 27 0a 20 20 20 20 20 20 66 6f 72 20 69 $//'. for i
0b40: 20 69 6e 20 60 66 6f 72 20 69 20 69 6e 20 24 67 in `for i in $g
0b50: 6c 5f 4c 49 42 4f 42 4a 53 3b 20 64 6f 20 65 63 l_LIBOBJS; do ec
0b60: 68 6f 20 22 24 69 22 3b 20 64 6f 6e 65 20 7c 20 ho "$i"; done |
0b70: 73 65 64 20 2d 65 20 22 24 73 65 64 5f 64 72 6f sed -e "$sed_dro
0b80: 70 5f 6f 62 6a 65 78 74 22 20 7c 20 73 6f 72 74 p_objext" | sort
0b90: 20 7c 20 75 6e 69 71 60 3b 20 64 6f 0a 20 20 20 | uniq`; do.
0ba0: 20 20 20 20 20 67 6c 5f 6c 69 62 6f 62 6a 73 3d gl_libobjs=
0bb0: 22 24 67 6c 5f 6c 69 62 6f 62 6a 73 20 24 69 2e "$gl_libobjs $i.
0bc0: 24 61 63 5f 6f 62 6a 65 78 74 22 0a 20 20 20 20 $ac_objext".
0bd0: 20 20 20 20 67 6c 5f 6c 74 6c 69 62 6f 62 6a 73 gl_ltlibobjs
0be0: 3d 22 24 67 6c 5f 6c 74 6c 69 62 6f 62 6a 73 20 ="$gl_ltlibobjs
0bf0: 24 69 2e 6c 6f 22 0a 20 20 20 20 20 20 64 6f 6e $i.lo". don
0c00: 65 0a 20 20 20 20 66 69 0a 20 20 20 20 41 43 5f e. fi. AC_
0c10: 53 55 42 53 54 28 5b 67 6c 5f 4c 49 42 4f 42 4a SUBST([gl_LIBOBJ
0c20: 53 5d 2c 20 5b 24 67 6c 5f 6c 69 62 6f 62 6a 73 S], [$gl_libobjs
0c30: 5d 29 0a 20 20 20 20 41 43 5f 53 55 42 53 54 28 ]). AC_SUBST(
0c40: 5b 67 6c 5f 4c 54 4c 49 42 4f 42 4a 53 5d 2c 20 [gl_LTLIBOBJS],
0c50: 5b 24 67 6c 5f 6c 74 6c 69 62 6f 62 6a 73 5d 29 [$gl_ltlibobjs])
0c60: 0a 20 20 5d 29 0a 20 20 67 6c 74 65 73 74 73 5f . ]). gltests_
0c70: 6c 69 62 64 65 70 73 3d 0a 20 20 67 6c 74 65 73 libdeps=. gltes
0c80: 74 73 5f 6c 74 6c 69 62 64 65 70 73 3d 0a 20 20 ts_ltlibdeps=.
0c90: 6d 34 5f 70 75 73 68 64 65 66 28 5b 41 43 5f 4c m4_pushdef([AC_L
0ca0: 49 42 4f 42 4a 5d 2c 20 6d 34 5f 64 65 66 6e 28 IBOBJ], m4_defn(
0cb0: 5b 67 6c 74 65 73 74 73 5f 4c 49 42 4f 42 4a 5d [gltests_LIBOBJ]
0cc0: 29 29 0a 20 20 6d 34 5f 70 75 73 68 64 65 66 28 )). m4_pushdef(
0cd0: 5b 41 43 5f 52 45 50 4c 41 43 45 5f 46 55 4e 43 [AC_REPLACE_FUNC
0ce0: 53 5d 2c 20 6d 34 5f 64 65 66 6e 28 5b 67 6c 74 S], m4_defn([glt
0cf0: 65 73 74 73 5f 52 45 50 4c 41 43 45 5f 46 55 4e ests_REPLACE_FUN
0d00: 43 53 5d 29 29 0a 20 20 6d 34 5f 70 75 73 68 64 CS])). m4_pushd
0d10: 65 66 28 5b 41 43 5f 4c 49 42 53 4f 55 52 43 45 ef([AC_LIBSOURCE
0d20: 53 5d 2c 20 6d 34 5f 64 65 66 6e 28 5b 67 6c 74 S], m4_defn([glt
0d30: 65 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5d ests_LIBSOURCES]
0d40: 29 29 0a 20 20 6d 34 5f 70 75 73 68 64 65 66 28 )). m4_pushdef(
0d50: 5b 67 6c 74 65 73 74 73 5f 4c 49 42 53 4f 55 52 [gltests_LIBSOUR
0d60: 43 45 53 5f 4c 49 53 54 5d 2c 20 5b 5d 29 0a 20 CES_LIST], []).
0d70: 20 6d 34 5f 70 75 73 68 64 65 66 28 5b 67 6c 74 m4_pushdef([glt
0d80: 65 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5f ests_LIBSOURCES_
0d90: 44 49 52 5d 2c 20 5b 5d 29 0a 20 20 67 6c 5f 43 DIR], []). gl_C
0da0: 4f 4d 4d 4f 4e 0a 20 20 67 6c 5f 73 6f 75 72 63 OMMON. gl_sourc
0db0: 65 5f 62 61 73 65 3d 27 74 65 73 74 73 27 0a 63 e_base='tests'.c
0dc0: 68 61 6e 67 65 71 75 6f 74 65 28 2c 29 64 6e 6c hangequote(,)dnl
0dd0: 0a 20 20 67 6c 74 65 73 74 73 5f 57 49 54 4e 45 . gltests_WITNE
0de0: 53 53 3d 49 4e 5f 60 65 63 68 6f 20 22 24 7b 50 SS=IN_`echo "${P
0df0: 41 43 4b 41 47 45 2d 24 50 41 43 4b 41 47 45 5f ACKAGE-$PACKAGE_
0e00: 54 41 52 4e 41 4d 45 7d 22 20 7c 20 4c 43 5f 41 TARNAME}" | LC_A
0e10: 4c 4c 3d 43 20 74 72 20 61 62 63 64 65 66 67 68 LL=C tr abcdefgh
0e20: 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 ijklmnopqrstuvwx
0e30: 79 7a 20 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d yz ABCDEFGHIJKLM
0e40: 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 20 7c 20 NOPQRSTUVWXYZ |
0e50: 4c 43 5f 41 4c 4c 3d 43 20 73 65 64 20 2d 65 20 LC_ALL=C sed -e
0e60: 27 73 2f 5b 5e 41 2d 5a 30 2d 39 5f 5d 2f 5f 2f 's/[^A-Z0-9_]/_/
0e70: 67 27 60 5f 47 4e 55 4c 49 42 5f 54 45 53 54 53 g'`_GNULIB_TESTS
0e80: 0a 63 68 61 6e 67 65 71 75 6f 74 65 28 5b 2c 20 .changequote([,
0e90: 5d 29 64 6e 6c 0a 20 20 41 43 5f 53 55 42 53 54 ])dnl. AC_SUBST
0ea0: 28 5b 67 6c 74 65 73 74 73 5f 57 49 54 4e 45 53 ([gltests_WITNES
0eb0: 53 5d 29 0a 20 20 67 6c 5f 6d 6f 64 75 6c 65 5f S]). gl_module_
0ec0: 69 6e 64 69 63 61 74 6f 72 5f 63 6f 6e 64 69 74 indicator_condit
0ed0: 69 6f 6e 3d 24 67 6c 74 65 73 74 73 5f 57 49 54 ion=$gltests_WIT
0ee0: 4e 45 53 53 0a 20 20 6d 34 5f 70 75 73 68 64 65 NESS. m4_pushde
0ef0: 66 28 5b 67 6c 5f 4d 4f 44 55 4c 45 5f 49 4e 44 f([gl_MODULE_IND
0f00: 49 43 41 54 4f 52 5f 43 4f 4e 44 49 54 49 4f 4e ICATOR_CONDITION
0f10: 5d 2c 20 5b 24 67 6c 5f 6d 6f 64 75 6c 65 5f 69 ], [$gl_module_i
0f20: 6e 64 69 63 61 74 6f 72 5f 63 6f 6e 64 69 74 69 ndicator_conditi
0f30: 6f 6e 5d 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 on]). m4_popdef
0f40: 28 5b 67 6c 5f 4d 4f 44 55 4c 45 5f 49 4e 44 49 ([gl_MODULE_INDI
0f50: 43 41 54 4f 52 5f 43 4f 4e 44 49 54 49 4f 4e 5d CATOR_CONDITION]
0f60: 29 0a 20 20 6d 34 5f 69 66 76 61 6c 28 67 6c 74 ). m4_ifval(glt
0f70: 65 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5f ests_LIBSOURCES_
0f80: 4c 49 53 54 2c 20 5b 0a 20 20 20 20 6d 34 5f 73 LIST, [. m4_s
0f90: 79 73 63 6d 64 28 5b 74 65 73 74 20 21 20 2d 64 yscmd([test ! -d
0fa0: 20 5d 6d 34 5f 64 65 66 6e 28 5b 67 6c 74 65 73 ]m4_defn([gltes
0fb0: 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 ts_LIBSOURCES_DI
0fc0: 52 5d 29 5b 20 7c 7c 0a 20 20 20 20 20 20 66 6f R])[ ||. fo
0fd0: 72 20 67 6c 5f 66 69 6c 65 20 69 6e 20 5d 67 6c r gl_file in ]gl
0fe0: 74 65 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 tests_LIBSOURCES
0ff0: 5f 4c 49 53 54 5b 20 3b 20 64 6f 0a 20 20 20 20 _LIST[ ; do.
1000: 20 20 20 20 69 66 20 74 65 73 74 20 21 20 2d 72 if test ! -r
1010: 20 5d 6d 34 5f 64 65 66 6e 28 5b 67 6c 74 65 73 ]m4_defn([gltes
1020: 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 ts_LIBSOURCES_DI
1030: 52 5d 29 5b 2f 24 67 6c 5f 66 69 6c 65 20 3b 20 R])[/$gl_file ;
1040: 74 68 65 6e 0a 20 20 20 20 20 20 20 20 20 20 65 then. e
1050: 63 68 6f 20 22 6d 69 73 73 69 6e 67 20 66 69 6c cho "missing fil
1060: 65 20 5d 6d 34 5f 64 65 66 6e 28 5b 67 6c 74 65 e ]m4_defn([glte
1070: 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 sts_LIBSOURCES_D
1080: 49 52 5d 29 5b 2f 24 67 6c 5f 66 69 6c 65 22 20 IR])[/$gl_file"
1090: 3e 26 32 0a 20 20 20 20 20 20 20 20 20 20 65 78 >&2. ex
10a0: 69 74 20 31 0a 20 20 20 20 20 20 20 20 66 69 0a it 1. fi.
10b0: 20 20 20 20 20 20 64 6f 6e 65 5d 29 64 6e 6c 0a done])dnl.
10c0: 20 20 20 20 20 20 6d 34 5f 69 66 28 6d 34 5f 73 m4_if(m4_s
10d0: 79 73 76 61 6c 2c 20 5b 30 5d 2c 20 5b 5d 2c 0a ysval, [0], [],.
10e0: 20 20 20 20 20 20 20 20 5b 41 43 5f 46 41 54 41 [AC_FATA
10f0: 4c 28 5b 65 78 70 65 63 74 65 64 20 73 6f 75 72 L([expected sour
1100: 63 65 20 66 69 6c 65 2c 20 72 65 71 75 69 72 65 ce file, require
1110: 64 20 74 68 72 6f 75 67 68 20 41 43 5f 4c 49 42 d through AC_LIB
1120: 53 4f 55 52 43 45 53 2c 20 6e 6f 74 20 66 6f 75 SOURCES, not fou
1130: 6e 64 5d 29 5d 29 0a 20 20 5d 29 0a 20 20 6d 34 nd])]). ]). m4
1140: 5f 70 6f 70 64 65 66 28 5b 67 6c 74 65 73 74 73 _popdef([gltests
1150: 5f 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 52 5d _LIBSOURCES_DIR]
1160: 29 0a 20 20 6d 34 5f 70 6f 70 64 65 66 28 5b 67 ). m4_popdef([g
1170: 6c 74 65 73 74 73 5f 4c 49 42 53 4f 55 52 43 45 ltests_LIBSOURCE
1180: 53 5f 4c 49 53 54 5d 29 0a 20 20 6d 34 5f 70 6f S_LIST]). m4_po
1190: 70 64 65 66 28 5b 41 43 5f 4c 49 42 53 4f 55 52 pdef([AC_LIBSOUR
11a0: 43 45 53 5d 29 0a 20 20 6d 34 5f 70 6f 70 64 65 CES]). m4_popde
11b0: 66 28 5b 41 43 5f 52 45 50 4c 41 43 45 5f 46 55 f([AC_REPLACE_FU
11c0: 4e 43 53 5d 29 0a 20 20 6d 34 5f 70 6f 70 64 65 NCS]). m4_popde
11d0: 66 28 5b 41 43 5f 4c 49 42 4f 42 4a 5d 29 0a 20 f([AC_LIBOBJ]).
11e0: 20 41 43 5f 43 4f 4e 46 49 47 5f 43 4f 4d 4d 41 AC_CONFIG_COMMA
11f0: 4e 44 53 5f 50 52 45 28 5b 0a 20 20 20 20 67 6c NDS_PRE([. gl
1200: 74 65 73 74 73 5f 6c 69 62 6f 62 6a 73 3d 0a 20 tests_libobjs=.
1210: 20 20 20 67 6c 74 65 73 74 73 5f 6c 74 6c 69 62 gltests_ltlib
1220: 6f 62 6a 73 3d 0a 20 20 20 20 69 66 20 74 65 73 objs=. if tes
1230: 74 20 2d 6e 20 22 24 67 6c 74 65 73 74 73 5f 4c t -n "$gltests_L
1240: 49 42 4f 42 4a 53 22 3b 20 74 68 65 6e 0a 20 20 IBOBJS"; then.
1250: 20 20 20 20 23 20 52 65 6d 6f 76 65 20 74 68 65 # Remove the
1260: 20 65 78 74 65 6e 73 69 6f 6e 2e 0a 20 20 20 20 extension..
1270: 20 20 73 65 64 5f 64 72 6f 70 5f 6f 62 6a 65 78 sed_drop_objex
1280: 74 3d 27 73 2f 5c 2e 6f 24 2f 2f 3b 73 2f 5c 2e t='s/\.o$//;s/\.
1290: 6f 62 6a 24 2f 2f 27 0a 20 20 20 20 20 20 66 6f obj$//'. fo
12a0: 72 20 69 20 69 6e 20 60 66 6f 72 20 69 20 69 6e r i in `for i in
12b0: 20 24 67 6c 74 65 73 74 73 5f 4c 49 42 4f 42 4a $gltests_LIBOBJ
12c0: 53 3b 20 64 6f 20 65 63 68 6f 20 22 24 69 22 3b S; do echo "$i";
12d0: 20 64 6f 6e 65 20 7c 20 73 65 64 20 2d 65 20 22 done | sed -e "
12e0: 24 73 65 64 5f 64 72 6f 70 5f 6f 62 6a 65 78 74 $sed_drop_objext
12f0: 22 20 7c 20 73 6f 72 74 20 7c 20 75 6e 69 71 60 " | sort | uniq`
1300: 3b 20 64 6f 0a 20 20 20 20 20 20 20 20 67 6c 74 ; do. glt
1310: 65 73 74 73 5f 6c 69 62 6f 62 6a 73 3d 22 24 67 ests_libobjs="$g
1320: 6c 74 65 73 74 73 5f 6c 69 62 6f 62 6a 73 20 24 ltests_libobjs $
1330: 69 2e 24 61 63 5f 6f 62 6a 65 78 74 22 0a 20 20 i.$ac_objext".
1340: 20 20 20 20 20 20 67 6c 74 65 73 74 73 5f 6c 74 gltests_lt
1350: 6c 69 62 6f 62 6a 73 3d 22 24 67 6c 74 65 73 74 libobjs="$gltest
1360: 73 5f 6c 74 6c 69 62 6f 62 6a 73 20 24 69 2e 6c s_ltlibobjs $i.l
1370: 6f 22 0a 20 20 20 20 20 20 64 6f 6e 65 0a 20 20 o". done.
1380: 20 20 66 69 0a 20 20 20 20 41 43 5f 53 55 42 53 fi. AC_SUBS
1390: 54 28 5b 67 6c 74 65 73 74 73 5f 4c 49 42 4f 42 T([gltests_LIBOB
13a0: 4a 53 5d 2c 20 5b 24 67 6c 74 65 73 74 73 5f 6c JS], [$gltests_l
13b0: 69 62 6f 62 6a 73 5d 29 0a 20 20 20 20 41 43 5f ibobjs]). AC_
13c0: 53 55 42 53 54 28 5b 67 6c 74 65 73 74 73 5f 4c SUBST([gltests_L
13d0: 54 4c 49 42 4f 42 4a 53 5d 2c 20 5b 24 67 6c 74 TLIBOBJS], [$glt
13e0: 65 73 74 73 5f 6c 74 6c 69 62 6f 62 6a 73 5d 29 ests_ltlibobjs])
13f0: 0a 20 20 5d 29 0a 20 20 4c 49 42 47 4e 55 5f 4c . ]). LIBGNU_L
1400: 49 42 44 45 50 53 3d 22 24 67 6c 5f 6c 69 62 64 IBDEPS="$gl_libd
1410: 65 70 73 22 0a 20 20 41 43 5f 53 55 42 53 54 28 eps". AC_SUBST(
1420: 5b 4c 49 42 47 4e 55 5f 4c 49 42 44 45 50 53 5d [LIBGNU_LIBDEPS]
1430: 29 0a 20 20 4c 49 42 47 4e 55 5f 4c 54 4c 49 42 ). LIBGNU_LTLIB
1440: 44 45 50 53 3d 22 24 67 6c 5f 6c 74 6c 69 62 64 DEPS="$gl_ltlibd
1450: 65 70 73 22 0a 20 20 41 43 5f 53 55 42 53 54 28 eps". AC_SUBST(
1460: 5b 4c 49 42 47 4e 55 5f 4c 54 4c 49 42 44 45 50 [LIBGNU_LTLIBDEP
1470: 53 5d 29 0a 5d 29 0a 0a 23 20 4c 69 6b 65 20 41 S]).])..# Like A
1480: 43 5f 4c 49 42 4f 42 4a 2c 20 65 78 63 65 70 74 C_LIBOBJ, except
1490: 20 74 68 61 74 20 74 68 65 20 6d 6f 64 75 6c 65 that the module
14a0: 20 6e 61 6d 65 20 67 6f 65 73 0a 23 20 69 6e 74 name goes.# int
14b0: 6f 20 67 6c 5f 4c 49 42 4f 42 4a 53 20 69 6e 73 o gl_LIBOBJS ins
14c0: 74 65 61 64 20 6f 66 20 69 6e 74 6f 20 4c 49 42 tead of into LIB
14d0: 4f 42 4a 53 2e 0a 41 43 5f 44 45 46 55 4e 28 5b OBJS..AC_DEFUN([
14e0: 67 6c 5f 4c 49 42 4f 42 4a 5d 2c 20 5b 0a 20 20 gl_LIBOBJ], [.
14f0: 41 53 5f 4c 49 54 45 52 41 4c 5f 49 46 28 5b 24 AS_LITERAL_IF([$
1500: 31 5d 2c 20 5b 67 6c 5f 4c 49 42 53 4f 55 52 43 1], [gl_LIBSOURC
1510: 45 53 28 5b 24 31 2e 63 5d 29 5d 29 64 6e 6c 0a ES([$1.c])])dnl.
1520: 20 20 67 6c 5f 4c 49 42 4f 42 4a 53 3d 22 24 67 gl_LIBOBJS="$g
1530: 6c 5f 4c 49 42 4f 42 4a 53 20 24 31 2e 24 61 63 l_LIBOBJS $1.$ac
1540: 5f 6f 62 6a 65 78 74 22 0a 5d 29 0a 0a 23 20 4c _objext".])..# L
1550: 69 6b 65 20 41 43 5f 52 45 50 4c 41 43 45 5f 46 ike AC_REPLACE_F
1560: 55 4e 43 53 2c 20 65 78 63 65 70 74 20 74 68 61 UNCS, except tha
1570: 74 20 74 68 65 20 6d 6f 64 75 6c 65 20 6e 61 6d t the module nam
1580: 65 20 67 6f 65 73 0a 23 20 69 6e 74 6f 20 67 6c e goes.# into gl
1590: 5f 4c 49 42 4f 42 4a 53 20 69 6e 73 74 65 61 64 _LIBOBJS instead
15a0: 20 6f 66 20 69 6e 74 6f 20 4c 49 42 4f 42 4a 53 of into LIBOBJS
15b0: 2e 0a 41 43 5f 44 45 46 55 4e 28 5b 67 6c 5f 52 ..AC_DEFUN([gl_R
15c0: 45 50 4c 41 43 45 5f 46 55 4e 43 53 5d 2c 20 5b EPLACE_FUNCS], [
15d0: 0a 20 20 6d 34 5f 66 6f 72 65 61 63 68 5f 77 28 . m4_foreach_w(
15e0: 5b 67 6c 5f 4e 41 4d 45 5d 2c 20 5b 24 31 5d 2c [gl_NAME], [$1],
15f0: 20 5b 41 43 5f 4c 49 42 53 4f 55 52 43 45 53 28 [AC_LIBSOURCES(
1600: 67 6c 5f 4e 41 4d 45 5b 2e 63 5d 29 5d 29 64 6e gl_NAME[.c])])dn
1610: 6c 0a 20 20 41 43 5f 43 48 45 43 4b 5f 46 55 4e l. AC_CHECK_FUN
1620: 43 53 28 5b 24 31 5d 2c 20 2c 20 5b 67 6c 5f 4c CS([$1], , [gl_L
1630: 49 42 4f 42 4a 28 24 61 63 5f 66 75 6e 63 29 5d IBOBJ($ac_func)]
1640: 29 0a 5d 29 0a 0a 23 20 4c 69 6b 65 20 41 43 5f ).])..# Like AC_
1650: 4c 49 42 53 4f 55 52 43 45 53 2c 20 65 78 63 65 LIBSOURCES, exce
1660: 70 74 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 pt the directory
1670: 20 77 68 65 72 65 20 74 68 65 20 73 6f 75 72 63 where the sourc
1680: 65 20 66 69 6c 65 20 69 73 0a 23 20 65 78 70 65 e file is.# expe
1690: 63 74 65 64 20 69 73 20 64 65 72 69 76 65 64 20 cted is derived
16a0: 66 72 6f 6d 20 74 68 65 20 67 6e 75 6c 69 62 2d from the gnulib-
16b0: 74 6f 6f 6c 20 70 61 72 61 6d 65 74 65 72 69 7a tool parameteriz
16c0: 61 74 69 6f 6e 2c 0a 23 20 61 6e 64 20 61 6c 6c ation,.# and all
16d0: 6f 63 61 20 69 73 20 73 70 65 63 69 61 6c 20 63 oca is special c
16e0: 61 73 65 64 20 28 66 6f 72 20 74 68 65 20 61 6c ased (for the al
16f0: 6c 6f 63 61 2d 6f 70 74 20 6d 6f 64 75 6c 65 29 loca-opt module)
1700: 2e 0a 23 20 57 65 20 63 6f 75 6c 64 20 61 6c 73 ..# We could als
1710: 6f 20 65 6e 74 69 72 65 6c 79 20 72 65 6c 79 20 o entirely rely
1720: 6f 6e 20 45 58 54 52 41 5f 6c 69 62 2e 2e 2e 5f on EXTRA_lib..._
1730: 53 4f 55 52 43 45 53 2e 0a 41 43 5f 44 45 46 55 SOURCES..AC_DEFU
1740: 4e 28 5b 67 6c 5f 4c 49 42 53 4f 55 52 43 45 53 N([gl_LIBSOURCES
1750: 5d 2c 20 5b 0a 20 20 6d 34 5f 66 6f 72 65 61 63 ], [. m4_foreac
1760: 68 28 5b 5f 67 6c 5f 4e 41 4d 45 5d 2c 20 5b 24 h([_gl_NAME], [$
1770: 31 5d 2c 20 5b 0a 20 20 20 20 6d 34 5f 69 66 28 1], [. m4_if(
1780: 5f 67 6c 5f 4e 41 4d 45 2c 20 5b 61 6c 6c 6f 63 _gl_NAME, [alloc
1790: 61 2e 63 5d 2c 20 5b 5d 2c 20 5b 0a 20 20 20 20 a.c], [], [.
17a0: 20 20 6d 34 5f 64 65 66 69 6e 65 28 5b 67 6c 5f m4_define([gl_
17b0: 4c 49 42 53 4f 55 52 43 45 53 5f 44 49 52 5d 2c LIBSOURCES_DIR],
17c0: 20 5b 67 6c 6c 69 62 5d 29 0a 20 20 20 20 20 20 [gllib]).
17d0: 6d 34 5f 61 70 70 65 6e 64 28 5b 67 6c 5f 4c 49 m4_append([gl_LI
17e0: 42 53 4f 55 52 43 45 53 5f 4c 49 53 54 5d 2c 20 BSOURCES_LIST],
17f0: 5f 67 6c 5f 4e 41 4d 45 2c 20 5b 20 5d 29 0a 20 _gl_NAME, [ ]).
1800: 20 20 20 5d 29 0a 20 20 5d 29 0a 5d 29 0a 0a 23 ]). ]).])..#
1810: 20 4c 69 6b 65 20 41 43 5f 4c 49 42 4f 42 4a 2c Like AC_LIBOBJ,
1820: 20 65 78 63 65 70 74 20 74 68 61 74 20 74 68 65 except that the
1830: 20 6d 6f 64 75 6c 65 20 6e 61 6d 65 20 67 6f 65 module name goe
1840: 73 0a 23 20 69 6e 74 6f 20 67 6c 74 65 73 74 73 s.# into gltests
1850: 5f 4c 49 42 4f 42 4a 53 20 69 6e 73 74 65 61 64 _LIBOBJS instead
1860: 20 6f 66 20 69 6e 74 6f 20 4c 49 42 4f 42 4a 53 of into LIBOBJS
1870: 2e 0a 41 43 5f 44 45 46 55 4e 28 5b 67 6c 74 65 ..AC_DEFUN([glte
1880: 73 74 73 5f 4c 49 42 4f 42 4a 5d 2c 20 5b 0a 20 sts_LIBOBJ], [.
1890: 20 41 53 5f 4c 49 54 45 52 41 4c 5f 49 46 28 5b AS_LITERAL_IF([
18a0: 24 31 5d 2c 20 5b 67 6c 74 65 73 74 73 5f 4c 49 $1], [gltests_LI
18b0: 42 53 4f 55 52 43 45 53 28 5b 24 31 2e 63 5d 29 BSOURCES([$1.c])
18c0: 5d 29 64 6e 6c 0a 20 20 67 6c 74 65 73 74 73 5f ])dnl. gltests_
18d0: 4c 49 42 4f 42 4a 53 3d 22 24 67 6c 74 65 73 74 LIBOBJS="$gltest
18e0: 73 5f 4c 49 42 4f 42 4a 53 20 24 31 2e 24 61 63 s_LIBOBJS $1.$ac
18f0: 5f 6f 62 6a 65 78 74 22 0a 5d 29 0a 0a 23 20 4c _objext".])..# L
1900: 69 6b 65 20 41 43 5f 52 45 50 4c 41 43 45 5f 46 ike AC_REPLACE_F
1910: 55 4e 43 53 2c 20 65 78 63 65 70 74 20 74 68 61 UNCS, except tha
1920: 74 20 74 68 65 20 6d 6f 64 75 6c 65 20 6e 61 6d t the module nam
1930: 65 20 67 6f 65 73 0a 23 20 69 6e 74 6f 20 67 6c e goes.# into gl
1940: 74 65 73 74 73 5f 4c 49 42 4f 42 4a 53 20 69 6e tests_LIBOBJS in
1950: 73 74 65 61 64 20 6f 66 20 69 6e 74 6f 20 4c 49 stead of into LI
1960: 42 4f 42 4a 53 2e 0a 41 43 5f 44 45 46 55 4e 28 BOBJS..AC_DEFUN(
1970: 5b 67 6c 74 65 73 74 73 5f 52 45 50 4c 41 43 45 [gltests_REPLACE
1980: 5f 46 55 4e 43 53 5d 2c 20 5b 0a 20 20 6d 34 5f _FUNCS], [. m4_
1990: 66 6f 72 65 61 63 68 5f 77 28 5b 67 6c 5f 4e 41 foreach_w([gl_NA
19a0: 4d 45 5d 2c 20 5b 24 31 5d 2c 20 5b 41 43 5f 4c ME], [$1], [AC_L
19b0: 49 42 53 4f 55 52 43 45 53 28 67 6c 5f 4e 41 4d IBSOURCES(gl_NAM
19c0: 45 5b 2e 63 5d 29 5d 29 64 6e 6c 0a 20 20 41 43 E[.c])])dnl. AC
19d0: 5f 43 48 45 43 4b 5f 46 55 4e 43 53 28 5b 24 31 _CHECK_FUNCS([$1
19e0: 5d 2c 20 2c 20 5b 67 6c 74 65 73 74 73 5f 4c 49 ], , [gltests_LI
19f0: 42 4f 42 4a 28 24 61 63 5f 66 75 6e 63 29 5d 29 BOBJ($ac_func)])
1a00: 0a 5d 29 0a 0a 23 20 4c 69 6b 65 20 41 43 5f 4c .])..# Like AC_L
1a10: 49 42 53 4f 55 52 43 45 53 2c 20 65 78 63 65 70 IBSOURCES, excep
1a20: 74 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 t the directory
1a30: 77 68 65 72 65 20 74 68 65 20 73 6f 75 72 63 65 where the source
1a40: 20 66 69 6c 65 20 69 73 0a 23 20 65 78 70 65 63 file is.# expec
1a50: 74 65 64 20 69 73 20 64 65 72 69 76 65 64 20 66 ted is derived f
1a60: 72 6f 6d 20 74 68 65 20 67 6e 75 6c 69 62 2d 74 rom the gnulib-t
1a70: 6f 6f 6c 20 70 61 72 61 6d 65 74 65 72 69 7a 61 ool parameteriza
1a80: 74 69 6f 6e 2c 0a 23 20 61 6e 64 20 61 6c 6c 6f tion,.# and allo
1a90: 63 61 20 69 73 20 73 70 65 63 69 61 6c 20 63 61 ca is special ca
1aa0: 73 65 64 20 28 66 6f 72 20 74 68 65 20 61 6c 6c sed (for the all
1ab0: 6f 63 61 2d 6f 70 74 20 6d 6f 64 75 6c 65 29 2e oca-opt module).
1ac0: 0a 23 20 57 65 20 63 6f 75 6c 64 20 61 6c 73 6f .# We could also
1ad0: 20 65 6e 74 69 72 65 6c 79 20 72 65 6c 79 20 6f entirely rely o
1ae0: 6e 20 45 58 54 52 41 5f 6c 69 62 2e 2e 2e 5f 53 n EXTRA_lib..._S
1af0: 4f 55 52 43 45 53 2e 0a 41 43 5f 44 45 46 55 4e OURCES..AC_DEFUN
1b00: 28 5b 67 6c 74 65 73 74 73 5f 4c 49 42 53 4f 55 ([gltests_LIBSOU
1b10: 52 43 45 53 5d 2c 20 5b 0a 20 20 6d 34 5f 66 6f RCES], [. m4_fo
1b20: 72 65 61 63 68 28 5b 5f 67 6c 5f 4e 41 4d 45 5d reach([_gl_NAME]
1b30: 2c 20 5b 24 31 5d 2c 20 5b 0a 20 20 20 20 6d 34 , [$1], [. m4
1b40: 5f 69 66 28 5f 67 6c 5f 4e 41 4d 45 2c 20 5b 61 _if(_gl_NAME, [a
1b50: 6c 6c 6f 63 61 2e 63 5d 2c 20 5b 5d 2c 20 5b 0a lloca.c], [], [.
1b60: 20 20 20 20 20 20 6d 34 5f 64 65 66 69 6e 65 28 m4_define(
1b70: 5b 67 6c 74 65 73 74 73 5f 4c 49 42 53 4f 55 52 [gltests_LIBSOUR
1b80: 43 45 53 5f 44 49 52 5d 2c 20 5b 74 65 73 74 73 CES_DIR], [tests
1b90: 5d 29 0a 20 20 20 20 20 20 6d 34 5f 61 70 70 65 ]). m4_appe
1ba0: 6e 64 28 5b 67 6c 74 65 73 74 73 5f 4c 49 42 53 nd([gltests_LIBS
1bb0: 4f 55 52 43 45 53 5f 4c 49 53 54 5d 2c 20 5f 67 OURCES_LIST], _g
1bc0: 6c 5f 4e 41 4d 45 2c 20 5b 20 5d 29 0a 20 20 20 l_NAME, [ ]).
1bd0: 20 5d 29 0a 20 20 5d 29 0a 5d 29 0a 0a 23 20 54 ]). ]).])..# T
1be0: 68 69 73 20 6d 61 63 72 6f 20 72 65 63 6f 72 64 his macro record
1bf0: 73 20 74 68 65 20 6c 69 73 74 20 6f 66 20 66 69 s the list of fi
1c00: 6c 65 73 20 77 68 69 63 68 20 68 61 76 65 20 62 les which have b
1c10: 65 65 6e 20 69 6e 73 74 61 6c 6c 65 64 20 62 79 een installed by
1c20: 0a 23 20 67 6e 75 6c 69 62 2d 74 6f 6f 6c 20 61 .# gnulib-tool a
1c30: 6e 64 20 6d 61 79 20 62 65 20 72 65 6d 6f 76 65 nd may be remove
1c40: 64 20 62 79 20 66 75 74 75 72 65 20 67 6e 75 6c d by future gnul
1c50: 69 62 2d 74 6f 6f 6c 20 69 6e 76 6f 63 61 74 69 ib-tool invocati
1c60: 6f 6e 73 2e 0a 41 43 5f 44 45 46 55 4e 28 5b 67 ons..AC_DEFUN([g
1c70: 6c 5f 46 49 4c 45 5f 4c 49 53 54 5d 2c 20 5b 0a l_FILE_LIST], [.
1c80: 20 20 6c 69 62 2f 64 75 6d 6d 79 2e 63 0a 20 20 lib/dummy.c.
1c90: 6d 34 2f 30 30 67 6e 75 6c 69 62 2e 6d 34 0a 20 m4/00gnulib.m4.
1ca0: 20 6d 34 2f 67 6e 75 6c 69 62 2d 63 6f 6d 6d 6f m4/gnulib-commo
1cb0: 6e 2e 6d 34 0a 20 20 6d 34 2f 68 6f 73 74 2d 63 n.m4. m4/host-c
1cc0: 70 75 2d 63 2d 61 62 69 2e 6d 34 0a 20 20 6d 34 pu-c-abi.m4. m4
1cd0: 2f 6c 6f 6e 67 6c 6f 6e 67 2e 6d 34 0a 20 20 6d /longlong.m4. m
1ce0: 34 2f 6e 6f 63 72 61 73 68 2e 6d 34 0a 20 20 6d 4/nocrash.m4. m
1cf0: 34 2f 6f 6e 63 65 6f 6e 6c 79 2e 6d 34 0a 5d 29 4/onceonly.m4.])
1d00: 0a .