build: update gnulib submodule to latest
[platform/upstream/coreutils.git] / bootstrap.conf
1 # Bootstrap configuration.
2
3 # Copyright (C) 2006-2011 Free Software Foundation, Inc.
4
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.
9
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.
14
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/>.
17
18
19 # We don't need these modules.
20 avoided_gnulib_modules='
21   --avoid=canonicalize-lgpl
22   --avoid=dummy
23 '
24
25 # gnulib modules used by this package.
26 gnulib_modules="
27   $avoided_gnulib_modules
28   $obsolete_gnulib_modules
29   acl
30   alignof
31   alloca
32   announce-gen
33   areadlink-with-size
34   argmatch
35   argv-iter
36   assert
37   autobuild
38   backupfile
39   base64
40   c-strcase
41   c-strtod
42   c-strtold
43   calloc-gnu
44   canon-host
45   canonicalize
46   chown
47   cloexec
48   closein
49   closeout
50   config-h
51   configmake
52   crypto/md5
53   crypto/sha1
54   crypto/sha256
55   crypto/sha512
56   cycle-check
57   d-ino
58   d-type
59   di-set
60   diacrit
61   dirfd
62   dirname
63   do-release-commit-and-tag
64   dup2
65   environ
66   error
67   euidaccess
68   exclude
69   exitfail
70   faccessat
71   fadvise
72   fchdir
73   fcntl
74   fcntl-safer
75   fdl
76   fdutimensat
77   file-type
78   fileblocks
79   filemode
80   filenamecat
81   filevercmp
82   fnmatch-gnu
83   fopen-safer
84   fprintftime
85   freopen
86   freopen-safer
87   fseeko
88   fsusage
89   fsync
90   ftello
91   ftoastr
92   fts
93   getgroups
94   gethrxtime
95   getline
96   getloadavg
97   getndelim2
98   getopt-gnu
99   getpagesize
100   getpass-gnu
101   gettext-h
102   gettime
103   gettimeofday
104   getugroups
105   getusershell
106   git-version-gen
107   gitlog-to-changelog
108   gnu-make
109   gnu-web-doc-update
110   gnumakefile
111   gnupload
112   group-member
113   hard-locale
114   hash
115   hash-pjw
116   heap
117   host-os
118   human
119   idcache
120   ignore-value
121   inttostr
122   inttypes
123   isapipe
124   isblank
125   lchmod
126   lchown
127   lib-ignore
128   linebuffer
129   link
130   link-follow
131   linkat
132   long-options
133   lstat
134   maintainer-makefile
135   malloc-gnu
136   manywarnings
137   mbrtowc
138   mbsalign
139   mbswidth
140   memcasecmp
141   memchr
142   memcmp2
143   mempcpy
144   memrchr
145   mgetgroups
146   mkancesdirs
147   mkdir
148   mkdir-p
149   mkstemp
150   mktime
151   modechange
152   mountlist
153   mpsort
154   netinet_in
155   nproc
156   obstack
157   parse-datetime
158   pathmax
159   perl
160   physmem
161   posix-shell
162   posixtm
163   posixver
164   priv-set
165   progname
166   propername
167   pthread
168   putenv
169   quote
170   quotearg
171   randint
172   randperm
173   readlink
174   readtokens
175   readtokens0
176   readutmp
177   realloc-gnu
178   regex
179   remove
180   rename
181   rmdir
182   root-dev-ino
183   rpmatch
184   safe-read
185   same
186   save-cwd
187   savedir
188   savewd
189   selinux-at
190   settime
191   sig2str
192   sigaction
193   ssize_t
194   stat-macros
195   stat-time
196   stdbool
197   stdlib-safer
198   stpcpy
199   stpncpy
200   strdup-posix
201   strftime
202   strsignal
203   strtod
204   strtoimax
205   strtol
206   strtoumax
207   symlink
208   sys_ioctl
209   sys_stat
210   sys_wait
211   termios
212   timespec
213   tzset
214   uname
215   unicodeio
216   unistd-safer
217   unlink-busy
218   unlocked-io
219   unsetenv
220   update-copyright
221   uptime
222   useless-if-before-free
223   userspec
224   utimecmp
225   utimens
226   vasprintf-posix
227   vc-list-files
228   verify
229   verror
230   version-etc-fsf
231   wcwidth
232   winsz-ioctl
233   winsz-termios
234   write-any-file
235   xalloc
236   xfreopen
237   xgetcwd
238   xgethostname
239   xmemcoll
240   xnanosleep
241   xprintf
242   xprintf-posix
243   xreadlink
244   xstrtod
245   xstrtoimax
246   xstrtol
247   xstrtold
248   xstrtoumax
249   yesno
250 "
251
252 # Other locale categories that need message catalogs.
253 EXTRA_LOCALE_CATEGORIES=LC_TIME
254
255 # Additional xgettext options to use.  Use "\\\newline" to break lines.
256 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
257  --flag=asnprintf:3:c-format\\\
258  --flag=asprintf:2:c-format\\\
259  --flag=error:3:c-format\\\
260  --flag=error_at_line:5:c-format\\\
261  --flag=vasnprintf:3:c-format\\\
262  --flag=vasprintf:2:c-format\\\
263  --flag=verror:3:c-format\\\
264  --flag=verror_at_line:5:c-format\\\
265  --flag=wrapf:1:c-format\\\
266  --flag=xasprintf:1:c-format\\\
267  --flag=xfprintf:2:c-format\\\
268  --flag=xprintf:1:c-format\\\
269  --from-code=UTF-8\\\
270 '
271
272 # Append these, since we use the propername module.
273 see_manual='"This is a proper name. See the gettext manual, section Names."'
274 see_manual=\'"$see_manual"\'
275 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
276  --keyword=proper_name:1,'"$see_manual"'\\\
277  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
278 '
279
280 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
281 # appears in configure.ac, exclude some unnecessary files.
282 # Without grep's -E option (not portable enough, pre-configure),
283 # the following test is ugly.  Also, this depends on the existence
284 # of configure.ac, not the obsolescent-named configure.in.  But if
285 # you're using this infrastructure, you should care about such things.
286
287 gettext_external=0
288 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
289   gettext_external=1
290 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
291   gettext_external=1
292
293 if test $gettext_external = 1; then
294   # Gettext supplies these files, but we don't need them since
295   # we don't have an intl subdirectory.
296   excluded_files='
297       m4/glibc2.m4
298       m4/intdiv0.m4
299       m4/lcmessage.m4
300       m4/uintmax_t.m4
301       m4/ulonglong.m4
302       m4/visibility.m4
303   '
304 fi
305
306 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
307
308 # Build prerequisites
309 buildreq="\
310 autoconf   2.62
311 automake   1.11.1
312 autopoint  -
313 bison      -
314 gettext    0.17
315 git        1.4.4
316 gperf      -
317 gzip       -
318 makeinfo   -
319 patch      -
320 perl       5.5
321 rsync      -
322 tar        -
323 xz         -
324 "
325
326 # Automake requires that ChangeLog exist.
327 touch ChangeLog || exit 1
328
329 bootstrap_epilogue()
330 {
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
335
336   # Since this is a "GNU" package, replace this line
337   #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
338   #      | grep -v 'libtool:' >/dev/null; then
339   # with this:
340   #   if true; then
341   # Why?  That pipeline searches all files in $(top_srcdir), and if you
342   # happen to have large files (or apparently large sparse files), the
343   # first grep may well run out of memory.
344   perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
345     po/Makefile.in.in
346 }