bootstrap.conf 3.3 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 13 14 15

# 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
# GNU General Public License for more details.

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

E
Eric Blake 已提交
131 132
SKIP_PO=true

133 134 135 136 137 138
# 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 已提交
139 140 141

# Tell gnulib to:
#   require LGPLv2+
E
Eric Blake 已提交
142
#   apply any local diffs in gnulib/local/ dir
143
#   put *.m4 files in m4/ dir
E
Eric Blake 已提交
144 145
#   put *.[ch] files in new gnulib/lib/ dir
#   import gnulib tests in new gnulib/tests/ dir
E
Eric Blake 已提交
146
gnulib_name=libgnu
147
m4_base=m4
E
Eric Blake 已提交
148 149 150 151 152
source_base=gnulib/lib
tests_base=gnulib/tests
gnulib_tool_option_extras="\
 --lgpl=2\
 --with-tests\
E
Eric Blake 已提交
153
 --makefile-name=gnulib.mk\
154
 --avoid=pt_chown\
155
 --avoid=lock-tests\
E
Eric Blake 已提交
156
"
E
Eric Blake 已提交
157
local_gl_dir=gnulib/local
E
Eric Blake 已提交
158 159

# Build prerequisites
160 161
# 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
162
# required to run 'make dist' on a tarball.
E
Eric Blake 已提交
163 164 165
buildreq="\
autoconf   2.59
automake   1.9.6
E
Eric Blake 已提交
166
git        1.5.5
E
Eric Blake 已提交
167 168
gzip       -
libtool    -
E
Eric Blake 已提交
169
patch      -
E
Eric Blake 已提交
170
perl       5.5
171
pkg-config -
172
rpcgen     -
E
Eric Blake 已提交
173
tar        -
174 175
xmllint	   -
xsltproc   -
E
Eric Blake 已提交
176 177
"

C
Cole Robinson 已提交
178 179
# Automake requires that ChangeLog and AUTHORS exist.
touch AUTHORS ChangeLog || exit 1
E
Eric Blake 已提交
180

181 182
# Override bootstrap's list - we don't use mdate-sh or texinfo.tex.
gnulib_extra_files="
E
Eric Blake 已提交
183 184 185 186
        build-aux/install-sh
        build-aux/depcomp
        build-aux/config.guess
        build-aux/config.sub
187 188 189
        doc/INSTALL
"

E
Eric Blake 已提交
190

E
Eric Blake 已提交
191
bootstrap_post_import_hook()
E
Eric Blake 已提交
192
{
193
  # Change paths in gnulib/tests/gnulib.mk from "../../.." to "../..",
E
Eric Blake 已提交
194
  # and make tests conditional by changing "TESTS" to "GNULIB_TESTS".
195
  m=gnulib/tests/gnulib.mk
196
  sed 's,\.\./\.\./\.\.,../..,g; s/^TESTS /GNULIB_TESTS /' $m > $m-t
E
Eric Blake 已提交
197 198
  mv -f $m-t $m
}