dd: work around compilation failure on AIX 5.1 and 5.2
[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   dtoastr
65   dup2
66   environ
67   error
68   euidaccess
69   exclude
70   exitfail
71   faccessat
72   fadvise
73   fchdir
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-h
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   lchmod
129   lchown
130   ldtoastr
131   lib-ignore
132   linebuffer
133   link
134   link-follow
135   linkat
136   long-options
137   lstat
138   maintainer-makefile
139   malloc-gnu
140   manywarnings
141   mbrtowc
142   mbsalign
143   mbswidth
144   memcasecmp
145   memchr
146   memcmp2
147   mempcpy
148   memrchr
149   mgetgroups
150   mkancesdirs
151   mkdir
152   mkdir-p
153   mkstemp
154   mktime
155   modechange
156   mountlist
157   mpsort
158   netinet_in
159   nproc
160   obstack
161   parse-datetime
162   pathmax
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-time
201   stdbool
202   stdlib-safer
203   stpcpy
204   stpncpy
205   strdup-posix
206   strftime
207   strsignal
208   strtod
209   strtoimax
210   strtol
211   strtoumax
212   symlink
213   sys_ioctl
214   sys_stat
215   sys_wait
216   termios
217   timespec
218   tzset
219   uname
220   unicodeio
221   unistd-safer
222   unlink-busy
223   unlocked-io
224   unsetenv
225   update-copyright
226   uptime
227   useless-if-before-free
228   userspec
229   utimecmp
230   utimens
231   vasprintf-posix
232   vc-list-files
233   verify
234   verror
235   version-etc-fsf
236   wcwidth
237   wcswidth
238   winsz-ioctl
239   winsz-termios
240   write-any-file
241   xalloc
242   xfreopen
243   xgetcwd
244   xgethostname
245   xmemcoll
246   xnanosleep
247   xprintf
248   xprintf-posix
249   xreadlink
250   xstrtod
251   xstrtoimax
252   xstrtol
253   xstrtold
254   xstrtoumax
255   yesno
256 "
257
258 # Other locale categories that need message catalogs.
259 EXTRA_LOCALE_CATEGORIES=LC_TIME
260
261 # Additional xgettext options to use.  Use "\\\newline" to break lines.
262 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
263  --flag=asnprintf:3:c-format\\\
264  --flag=asprintf:2:c-format\\\
265  --flag=error:3:c-format\\\
266  --flag=error_at_line:5:c-format\\\
267  --flag=vasnprintf:3:c-format\\\
268  --flag=vasprintf:2:c-format\\\
269  --flag=verror:3:c-format\\\
270  --flag=verror_at_line:5:c-format\\\
271  --flag=wrapf:1:c-format\\\
272  --flag=xasprintf:1:c-format\\\
273  --flag=xfprintf:2:c-format\\\
274  --flag=xprintf:1:c-format\\\
275  --from-code=UTF-8\\\
276 '
277
278 # Append these, since we use the propername module.
279 see_manual='"This is a proper name. See the gettext manual, section Names."'
280 see_manual=\'"$see_manual"\'
281 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
282  --keyword=proper_name:1,'"$see_manual"'\\\
283  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
284 '
285
286 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
287 # appears in configure.ac, exclude some unnecessary files.
288 # Without grep's -E option (not portable enough, pre-configure),
289 # the following test is ugly.  Also, this depends on the existence
290 # of configure.ac, not the obsolescent-named configure.in.  But if
291 # you're using this infrastructure, you should care about such things.
292
293 gettext_external=0
294 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
295   gettext_external=1
296 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
297   gettext_external=1
298
299 if test $gettext_external = 1; then
300   # Gettext supplies these files, but we don't need them since
301   # we don't have an intl subdirectory.
302   excluded_files='
303       m4/glibc2.m4
304       m4/intdiv0.m4
305       m4/uintmax_t.m4
306       m4/ulonglong.m4
307       m4/visibility.m4
308   '
309 fi
310
311 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
312
313 # Build prerequisites
314 buildreq="\
315 autoconf   2.62
316 automake   1.11.1
317 autopoint  -
318 bison      -
319 gettext    0.17
320 git        1.4.4
321 gperf      -
322 gzip       -
323 makeinfo   -
324 patch      -
325 perl       5.5
326 rsync      -
327 tar        -
328 xz         -
329 "
330
331 # Automake requires that ChangeLog exist.
332 touch ChangeLog || exit 1
333
334 bootstrap_epilogue()
335 {
336   # Change paths in gnulib-tests/gnulib.mk from "../.." to "..".
337   m=gnulib-tests/gnulib.mk
338   sed 's,\.\./\.\.,..,g' $m > $m-t
339   mv -f $m-t $m
340
341   # Since this is a "GNU" package, replace this line
342   #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
343   #      | grep -v 'libtool:' >/dev/null; then
344   # with this:
345   #   if true; then
346   # Why?  That pipeline searches all files in $(top_srcdir), and if you
347   # happen to have large files (or apparently large sparse files), the
348   # first grep may well run out of memory.
349   perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
350     po/Makefile.in.in
351 }