tail: fix checking of remoteness when not using inotify
[coreutils.git] / bootstrap.conf
blob8a0ff31898ccc471748e24dba5f44861e16e4243
1 # Bootstrap configuration.
3 # Copyright (C) 2006-2016 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 # 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   base32
40   buffer-lcm
41   c-strcase
42   c-strtod
43   c-strtold
44   calloc-gnu
45   canon-host
46   canonicalize
47   chown
48   cloexec
49   closein
50   closeout
51   config-h
52   configmake
53   crypto/md5
54   crypto/sha1
55   crypto/sha256
56   crypto/sha512
57   cycle-check
58   d-ino
59   d-type
60   di-set
61   diacrit
62   dirfd
63   dirname
64   do-release-commit-and-tag
65   dtoastr
66   dup2
67   environ
68   error
69   euidaccess
70   exclude
71   exitfail
72   faccessat
73   fadvise
74   fchdir
75   fchmodat
76   fchownat
77   fclose
78   fcntl
79   fcntl-safer
80   fd-reopen
81   fdatasync
82   fdl
83   fdopen
84   fdutimensat
85   file-has-acl
86   file-type
87   fileblocks
88   filemode
89   filenamecat
90   filevercmp
91   flexmember
92   fnmatch-gnu
93   fopen-safer
94   fprintftime
95   freopen
96   freopen-safer
97   fseeko
98   fstatat
99   fsusage
100   fsync
101   ftello
102   ftoastr
103   ftruncate
104   fts
105   full-read
106   full-write
107   getgroups
108   gethrxtime
109   getline
110   getloadavg
111   getlogin
112   getndelim2
113   getopt-gnu
114   getpagesize
115   getpass-gnu
116   gettext-h
117   gettime
118   gettimeofday
119   getugroups
120   getusershell
121   git-version-gen
122   gitlog-to-changelog
123   gnu-make
124   gnu-web-doc-update
125   gnumakefile
126   gnupload
127   group-member
128   hard-locale
129   hash
130   hash-pjw
131   heap
132   host-os
133   human
134   idcache
135   ignore-value
136   inttostr
137   inttypes
138   isapipe
139   isatty
140   isblank
141   largefile
142   lchmod
143   lchown
144   ldtoastr
145   lib-ignore
146   linebuffer
147   link
148   link-follow
149   linkat
150   long-options
151   lstat
152   maintainer-makefile
153   malloc-gnu
154   manywarnings
155   mbrlen
156   mbrtowc
157   mbsalign
158   mbswidth
159   memcasecmp
160   memchr
161   memcmp2
162   mempcpy
163   memrchr
164   mgetgroups
165   mkancesdirs
166   mkdir
167   mkdir-p
168   mkfifo
169   mknod
170   mkstemp
171   mktime
172   modechange
173   mountlist
174   mpsort
175   netinet_in
176   non-recursive-gnulib-prefix-hack
177   nproc
178   obstack
179   parse-datetime
180   pathmax
181   perl
182   physmem
183   pipe-posix
184   posix-shell
185   posixtm
186   posixver
187   priv-set
188   progname
189   propername
190   pthread
191   putenv
192   quote
193   quotearg
194   randint
195   randperm
196   read-file
197   readlink
198   readtokens
199   readtokens0
200   readutmp
201   realloc-gnu
202   regex
203   remove
204   rename
205   rmdir
206   root-dev-ino
207   rpmatch
208   safe-read
209   same
210   save-cwd
211   savedir
212   savewd
213   selinux-at
214   setenv
215   settime
216   sig2str
217   sigaction
218   smack
219   ssize_t
220   statat
221   stat-macros
222   stat-size
223   stat-time
224   stdbool
225   stdlib-safer
226   stpcpy
227   stpncpy
228   strdup-posix
229   strftime
230   strncat
231   strnumcmp
232   strpbrk
233   strsignal
234   strtod
235   strtoimax
236   strtoumax
237   symlink
238   sys_ioctl
239   sys_resource
240   sys_stat
241   sys_wait
242   tempname
243   termios
244   time_rz
245   timer-time
246   timespec
247   tzset
248   uname
249   unicodeio
250   unistd-safer
251   unlink-busy
252   unlinkat
253   unlocked-io
254   unsetenv
255   update-copyright
256   uptime
257   useless-if-before-free
258   userspec
259   utimecmp
260   utimens
261   vasprintf-posix
262   vc-list-files
263   verify
264   verror
265   version-etc-fsf
266   wcswidth
267   wcwidth
268   winsz-ioctl
269   winsz-termios
270   write-any-file
271   xalloc
272   xfreopen
273   xfts
274   xgetcwd
275   xgetgroups
276   xgethostname
277   xmemcoll
278   xnanosleep
279   xprintf
280   xprintf-posix
281   xreadlink
282   xdectoint
283   xstrtod
284   xstrtoimax
285   xstrtol
286   xstrtold
287   xstrtoumax
288   yesno
291 # Other locale categories that need message catalogs.
292 EXTRA_LOCALE_CATEGORIES=LC_TIME
294 # Additional xgettext options to use.  Use "\\\newline" to break lines.
295 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
296  --flag=asnprintf:3:c-format\\\
297  --flag=asprintf:2:c-format\\\
298  --flag=error:3:c-format\\\
299  --flag=error_at_line:5:c-format\\\
300  --flag=vasnprintf:3:c-format\\\
301  --flag=vasprintf:2:c-format\\\
302  --flag=verror:3:c-format\\\
303  --flag=verror_at_line:5:c-format\\\
304  --flag=wrapf:1:c-format\\\
305  --flag=xasprintf:1:c-format\\\
306  --flag=xfprintf:2:c-format\\\
307  --flag=xprintf:1:c-format\\\
308  --from-code=UTF-8\\\
311 # Append these, since we use the propername module.
312 see_manual='"This is a proper name. See the gettext manual, section Names."'
313 see_manual=\'"$see_manual"\'
314 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
315  --keyword=proper_name:1,'"$see_manual"'\\\
316  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
319 gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\
320  --makefile-name=gnulib.mk
323 # Build prerequisites
324 buildreq="\
325 autoconf   2.64
326 automake   1.11.2
327 autopoint  0.19.2
328 bison      -
329 gettext    0.19.2
330 git        1.4.4
331 gperf      -
332 gzip       -
333 makeinfo   4.13
334 patch      -
335 perl       5.5
336 rsync      -
337 tar        -
338 xz         -
341 bootstrap_post_import_hook ()
343   # Automake requires that ChangeLog exist.
344   touch ChangeLog || return 1
345   # List of coreutils programs.  See heading comments in the invoked
346   # script for more info.  Keep this in sync with the rules in
347   (m4f=m4/cu-progs.m4 mkf=src/cu-progs.mk tmp=cu-progs.tmp \
348     && rm -f $m4f $mkf $tmp-1 $tmp-2 \
349     && build-aux/gen-lists-of-programs.sh --autoconf >$tmp-1 \
350     && build-aux/gen-lists-of-programs.sh --automake >$tmp-2 \
351     && chmod a-w $tmp-1 $tmp-2 \
352     && mv -f $tmp-1 $m4f && mv -f $tmp-2 $mkf)
354   # Massage lib/gnulib.mk before using it later in the bootstrapping process.
355   build-aux/prefix-gnulib-mk --lib-name=$gnulib_name lib/$gnulib_mk
357   # Regenerate src/single-binary.mk
358   (mkf=src/single-binary.mk tmp=single-binary.tmp \
359     && rm -f $mkf $tmp \
360     && build-aux/gen-single-binary.sh src/local.mk >$tmp \
361     && chmod a-w $tmp \
362     && mv -f $tmp $mkf)
366 bootstrap_epilogue()
368   # Since this is a "GNU" package, replace this line
369   #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
370   #      | grep -v 'libtool:' >/dev/null; then
371   # with this:
372   #   if true; then
373   # Why?  That pipeline searches all files in $(top_srcdir), and if you
374   # happen to have large files (or apparently large sparse files), the
375   # first grep may well run out of memory.
376   perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
377     po/Makefile.in.in
379   # Install our git hooks, as long as "cp" accepts the --backup option,
380   # so that we can back up any existing files.
381   case $(cp --help) in *--backup*) backup=1;; *) backup=0;; esac
382   if test $backup = 1; then
383     hooks=$(cd scripts/git-hooks && git ls-files)
384     for f in $hooks; do
385       # If it is identical, skip it.
386       cmp scripts/git-hooks/$f .git/hooks/$f > /dev/null \
387         && continue
388       cp --backup=numbered scripts/git-hooks/$f .git/hooks
389       chmod a-w .git/hooks/$f
390     done
391   fi