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