maint: avoid "make syntax-check" failure
[coreutils/ericb.git] / bootstrap.conf
blob4c0f4c7b062a7c66f7ac59de2217aa764e2186e7
1 # Bootstrap configuration.
3 # Copyright (C) 2006-2009 Free Software Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 # We don't need these modules.
20 avoided_gnulib_modules='
21   --avoid=canonicalize-lgpl
22   --avoid=dummy
25 # These modules are obsolete and can probably be removed soon,
26 # but leave them in for now to minimize changes.
27 obsolete_gnulib_modules='
28   atexit
29   memcmp
30   memcpy
31   memmove
32   memset
33   strcspn
34   strtod
35   strtol
38 # gnulib modules used by this package.
39 gnulib_modules="
40   $avoided_gnulib_modules
41   $obsolete_gnulib_modules
42   acl
43   alloca
44   announce-gen
45   areadlink-with-size
46   argmatch
47   argv-iter
48   assert
49   autobuild
50   backupfile
51   base64
52   c-strcase
53   c-strtod
54   c-strtold
55   calloc
56   canon-host
57   canonicalize
58   chown
59   cloexec
60   closein
61   closeout
62   config-h
63   configmake
64   crypto/md5
65   crypto/sha1
66   crypto/sha256
67   crypto/sha512
68   cycle-check
69   d-ino
70   d-type
71   diacrit
72   dirfd
73   dirname
74   dup2
75   environ
76   error
77   euidaccess
78   exclude
79   exitfail
80   faccessat
81   fchdir
82   fcntl
83   fcntl-safer
84   fdl
85   file-type
86   fileblocks
87   filemode
88   filenamecat
89   filevercmp
90   fnmatch-gnu
91   fopen-safer
92   fprintftime
93   freopen
94   fseeko
95   fsusage
96   fsync
97   ftello
98   ftruncate
99   fts
100   getdate
101   getgroups
102   gethrxtime
103   getline
104   getloadavg
105   getndelim2
106   getopt-gnu
107   getpagesize
108   getpass-gnu
109   gettext
110   gettime
111   gettimeofday
112   getugroups
113   getusershell
114   git-version-gen
115   gitlog-to-changelog
116   gnu-make
117   gnu-web-doc-update
118   gnumakefile
119   gnupload
120   group-member
121   hard-locale
122   hash
123   hash-pjw
124   host-os
125   human
126   idcache
127   ignore-value
128   inttostr
129   inttypes
130   isapipe
131   isblank
132   lchmod
133   lchown
134   lib-ignore
135   linebuffer
136   link
137   link-follow
138   linkat
139   long-options
140   lstat
141   maintainer-makefile
142   malloc
143   manywarnings
144   mbrtowc
145   mbsalign
146   mbswidth
147   memcasecmp
148   memchr
149   memcmp2
150   mempcpy
151   memrchr
152   mgetgroups
153   mkancesdirs
154   mkdir
155   mkdir-p
156   mkstemp
157   mktime
158   modechange
159   mountlist
160   mpsort
161   obstack
162   pathmax
163   perl
164   physmem
165   posix-shell
166   posixtm
167   posixver
168   priv-set
169   progname
170   propername
171   putenv
172   quote
173   quotearg
174   raise
175   randint
176   randperm
177   readlink
178   readtokens
179   readtokens0
180   readutmp
181   realloc
182   regex
183   rename
184   rename-dest-slash
185   rmdir
186   root-dev-ino
187   rpmatch
188   safe-read
189   same
190   save-cwd
191   savedir
192   savewd
193   selinux-at
194   settime
195   sig2str
196   sigaction
197   ssize_t
198   stat-macros
199   stat-time
200   stdbool
201   stdlib-safer
202   stpcpy
203   stpncpy
204   strdup-posix
205   strftime
206   strpbrk
207   strsignal
208   strtoimax
209   strtoumax
210   strverscmp
211   symlink
212   sys_stat
213   timespec
214   tzset
215   uname
216   unicodeio
217   unistd-safer
218   unlink-busy
219   unlocked-io
220   unsetenv
221   update-copyright
222   uptime
223   useless-if-before-free
224   userspec
225   utimecmp
226   utimens
227   vasprintf-posix
228   vc-list-files
229   verify
230   verror
231   version-etc-fsf
232   warnings
233   wcwidth
234   winsz-ioctl
235   winsz-termios
236   write-any-file
237   xalloc
238   xfreopen
239   xgetcwd
240   xgethostname
241   xmemcoll
242   xnanosleep
243   xprintf
244   xprintf-posix
245   xreadlink
246   xstrtod
247   xstrtoimax
248   xstrtol
249   xstrtold
250   xstrtoumax
251   yesno
254 # Other locale categories that need message catalogs.
255 EXTRA_LOCALE_CATEGORIES=LC_TIME
257 # Additional xgettext options to use.  Use "\\\newline" to break lines.
258 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
259  --flag=asnprintf:3:c-format\\\
260  --flag=asprintf:2:c-format\\\
261  --flag=error:3:c-format\\\
262  --flag=error_at_line:5:c-format\\\
263  --flag=vasnprintf:3:c-format\\\
264  --flag=vasprintf:2:c-format\\\
265  --flag=verror:3:c-format\\\
266  --flag=verror_at_line:5:c-format\\\
267  --flag=wrapf:1:c-format\\\
268  --flag=xasprintf:1:c-format\\\
269  --flag=xfprintf:2:c-format\\\
270  --flag=xprintf:1:c-format\\\
271  --from-code=UTF-8\\\
274 # Append these, since we use the propername module.
275 see_manual='"This is a proper name. See the gettext manual, section Names."'
276 see_manual=\'"$see_manual"\'
277 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
278  --keyword=proper_name:1,'"$see_manual"'\\\
279  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
282 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
283 # appears in configure.ac, exclude some unnecessary files.
284 # Without grep's -E option (not portable enough, pre-configure),
285 # the following test is ugly.  Also, this depends on the existence
286 # of configure.ac, not the obsolescent-named configure.in.  But if
287 # you're using this infrastructure, you should care about such things.
289 gettext_external=0
290 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
291   gettext_external=1
292 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
293   gettext_external=1
295 if test $gettext_external = 1; then
296   # Gettext supplies these files, but we don't need them since
297   # we don't have an intl subdirectory.
298   excluded_files='
299       m4/glibc2.m4
300       m4/intdiv0.m4
301       m4/lcmessage.m4
302       m4/uintmax_t.m4
303       m4/ulonglong.m4
304       m4/visibility.m4
305   '
308 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
310 # Build prerequisites
311 buildreq="\
312 autoconf   2.61
313 automake   1.11
314 autopoint  -
315 bison      -
316 gettext    -
317 git        1.4.4
318 gperf      -
319 gzip       -
320 makeinfo   -
321 perl       5.5
322 rsync      -
323 tar        -
326 # Automake requires that ChangeLog exist.
327 touch ChangeLog || exit 1
329 bootstrap_epilogue()
331   # Change paths in gnulib-tests/gnulib.mk from "../.." to "..".
332   m=gnulib-tests/gnulib.mk
333   sed 's,\.\./\.\.,..,g' $m > $m-t
334   mv -f $m-t $m