bootstrap.conf 3.2 KB
Newer Older
E
Eric Blake 已提交
1 2
# Bootstrap configuration.

3
# Copyright (C) 2010-2014 Red Hat, Inc.
E
Eric Blake 已提交
4 5 6 7 8 9 10 11 12

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU Lesser General Public License for more details.
E
Eric Blake 已提交
14 15

# You should have received a copy of the GNU Lesser General Public
16
# License along with this library.  If not, see
17
# <http://www.gnu.org/licenses/>.
E
Eric Blake 已提交
18 19 20

# gnulib modules used by this package.
gnulib_modules='
E
Eric Blake 已提交
21
accept
E
Eric Blake 已提交
22 23
areadlink
base64
E
Eric Blake 已提交
24
bind
25
bitrotate
26
byteswap
E
Eric Blake 已提交
27
c-ctype
28 29
c-strcase
c-strcasestr
E
Eric Blake 已提交
30
calloc-posix
E
Eric Blake 已提交
31
canonicalize-lgpl
E
Eric Blake 已提交
32
chown
33
clock-time
E
Eric Blake 已提交
34 35
close
connect
36
configmake
37
count-leading-zeros
38
count-one-bits
E
Eric Blake 已提交
39
dirname-lgpl
40
environ
41
execinfo
E
Eric Blake 已提交
42
fclose
43
fcntl
E
Eric Blake 已提交
44
fcntl-h
E
Eric Blake 已提交
45
fdatasync
E
Eric Blake 已提交
46
ffs
47
ffsl
48
fnmatch
49
fsync
E
Eric Blake 已提交
50
getaddrinfo
51
getcwd-lgpl
E
Eric Blake 已提交
52 53
gethostname
getpass
E
Eric Blake 已提交
54 55
getpeername
getsockname
56
gettimeofday
E
Eric Blake 已提交
57 58
gnumakefile
ignore-value
E
Eric Blake 已提交
59
intprops
E
Eric Blake 已提交
60
ioctl
E
Eric Blake 已提交
61
isatty
62
largefile
E
Eric Blake 已提交
63
ldexp
E
Eric Blake 已提交
64
listen
65
localeconv
E
Eric Blake 已提交
66
maintainer-makefile
67
manywarnings
E
Eric Blake 已提交
68
mgetgroups
69
mkdtemp
70 71
mkostemp
mkostemps
72
net_if
E
Eric Blake 已提交
73
netdb
74
nonblocking
75
openpty
76
passfd
E
Eric Blake 已提交
77 78
perror
physmem
79
pipe-posix
E
Eric Blake 已提交
80
pipe2
E
Eric Blake 已提交
81 82
poll
posix-shell
83
pthread
E
Eric Blake 已提交
84
pthread_sigmask
E
Eric Blake 已提交
85
recv
86
regex
E
Eric Blake 已提交
87
sched
E
Eric Blake 已提交
88
send
E
Eric Blake 已提交
89
setenv
E
Eric Blake 已提交
90
setsockopt
91 92
sigaction
sigpipe
E
Eric Blake 已提交
93
snprintf
E
Eric Blake 已提交
94
socket
95
stat-time
E
Eric Blake 已提交
96
strchrnul
97
strdup-posix
E
Eric Blake 已提交
98 99
strndup
strerror
100
strerror_r-posix
101
strptime
E
Eric Blake 已提交
102
strsep
103
strtok_r
E
Eric Blake 已提交
104
sys_stat
E
Eric Blake 已提交
105
sys_wait
E
Eric Blake 已提交
106
termios
E
Eric Blake 已提交
107
time_r
108
timegm
109
ttyname_r
E
Eric Blake 已提交
110
uname
M
Michal Privoznik 已提交
111
unsetenv
E
Eric Blake 已提交
112
useless-if-before-free
E
Eric Blake 已提交
113
usleep
E
Eric Blake 已提交
114 115 116
vasprintf
verify
vc-list-files
117
vsnprintf
118
waitpid
119
warnings
S
Simon Kobyda 已提交
120
wcwidth
E
Eric Blake 已提交
121 122
'

E
Eric Blake 已提交
123 124
SKIP_PO=true

125 126 127 128 129 130
# Enable copy-mode for MSYS/MinGW. MSYS' ln doesn't work well in the way
# bootstrap uses it with relative paths.
if test -n "$MSYSTEM"; then
    copy=true
fi

E
Eric Blake 已提交
131 132 133

# Tell gnulib to:
#   require LGPLv2+
E
Eric Blake 已提交
134
#   apply any local diffs in gnulib/local/ dir
135
#   put *.m4 files in m4/ dir
E
Eric Blake 已提交
136 137
#   put *.[ch] files in new gnulib/lib/ dir
#   import gnulib tests in new gnulib/tests/ dir
E
Eric Blake 已提交
138
gnulib_name=libgnu
139
m4_base=m4
E
Eric Blake 已提交
140 141 142 143 144
source_base=gnulib/lib
tests_base=gnulib/tests
gnulib_tool_option_extras="\
 --lgpl=2\
 --with-tests\
E
Eric Blake 已提交
145
 --makefile-name=gnulib.mk\
146
 --avoid=pt_chown\
147
 --avoid=lock-tests\
E
Eric Blake 已提交
148
"
E
Eric Blake 已提交
149
local_gl_dir=gnulib/local
E
Eric Blake 已提交
150 151

# Build prerequisites
152 153
# Note that some of these programs are only required for 'make dist' to
# succeed from a fresh git checkout; not all of these programs are
154
# required to run 'make dist' on a tarball.
E
Eric Blake 已提交
155 156 157
buildreq="\
autoconf   2.59
automake   1.9.6
E
Eric Blake 已提交
158
git        1.5.5
E
Eric Blake 已提交
159 160
gzip       -
libtool    -
E
Eric Blake 已提交
161
patch      -
E
Eric Blake 已提交
162
perl       5.5
163
pkg-config -
164
rpcgen     -
E
Eric Blake 已提交
165
tar        -
166 167
xmllint	   -
xsltproc   -
E
Eric Blake 已提交
168 169
"

170 171
# Automake requires that AUTHORS exist.
touch AUTHORS || exit 1
E
Eric Blake 已提交
172

173 174
# Override bootstrap's list - we don't use mdate-sh or texinfo.tex.
gnulib_extra_files="
E
Eric Blake 已提交
175 176 177 178
        build-aux/install-sh
        build-aux/depcomp
        build-aux/config.guess
        build-aux/config.sub
179 180 181
        doc/INSTALL
"

E
Eric Blake 已提交
182

E
Eric Blake 已提交
183
bootstrap_post_import_hook()
E
Eric Blake 已提交
184
{
185
  # Change paths in gnulib/tests/gnulib.mk from "../../.." to "../..",
E
Eric Blake 已提交
186
  # and make tests conditional by changing "TESTS" to "GNULIB_TESTS".
187
  m=gnulib/tests/gnulib.mk
188
  sed 's,\.\./\.\./\.\.,../..,g; s/^TESTS /GNULIB_TESTS /' $m > $m-t
E
Eric Blake 已提交
189 190
  mv -f $m-t $m
}