2018-07-02 00:28:25 +08:00
|
|
|
# Bootstrap configuration. -*-shell-script-*-
|
|
|
|
|
2024-01-07 06:55:04 +08:00
|
|
|
# Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
2018-07-02 00:28:25 +08:00
|
|
|
|
|
|
|
# GNU Make is free software: you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free
|
|
|
|
# Software Foundation; either version 3 of the License, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
|
|
|
|
# GNU Make 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 General Public License along with
|
|
|
|
# this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# Allow bootstrap to know that this is not a package
|
|
|
|
checkout_only_file=README.git
|
|
|
|
|
2022-09-01 03:58:08 +08:00
|
|
|
# Choose a specific version of gnulib, when checking out
|
2023-08-25 23:10:14 +08:00
|
|
|
GNULIB_REVISION=stable-202307
|
2022-09-01 03:58:08 +08:00
|
|
|
|
2022-07-04 21:47:24 +08:00
|
|
|
# Always copy files rather than symlink
|
|
|
|
copy=true
|
|
|
|
|
2018-07-02 00:28:25 +08:00
|
|
|
# Additional xgettext options to use. Use "\\\newline" to break lines.
|
|
|
|
# Ensure that all our magical output macros are correctly marked as
|
|
|
|
# C (printf) format strings.
|
|
|
|
XGETTEXT_OPTIONS='\\\
|
|
|
|
--from-code=UTF-8\\\
|
|
|
|
--flag=_:1:pass-c-format\\\
|
|
|
|
--flag=N_:1:pass-c-format\\\
|
|
|
|
--flag=DB:2:c-format --flag=DBF:2:c-format --flag=DBS:2:c-format\\\
|
|
|
|
--flag=O:3:c-format --flag=OSN:3:c-format --flag=ONS:3:c-format\\\
|
|
|
|
--flag=OS:3:c-format --flag=OSS:3:c-format --flag=OSSS:3:c-format\\\
|
|
|
|
--flag=ON:3:c-format --flag=ONN:3:c-format\\\
|
|
|
|
'
|
|
|
|
|
|
|
|
# We manage our own .gitignore files
|
|
|
|
vc_ignore=
|
|
|
|
|
|
|
|
# Build prerequisites
|
|
|
|
buildreq="\
|
|
|
|
autoconf 2.69
|
|
|
|
automake 1.16.1
|
|
|
|
"
|
|
|
|
|
|
|
|
gnulib_name=libgnu
|
2022-10-10 01:41:21 +08:00
|
|
|
gnulib_files="doc/make-stds.texi m4/sig_atomic_t.m4"
|
2018-07-02 00:28:25 +08:00
|
|
|
|
2022-06-27 04:33:30 +08:00
|
|
|
# Using the full strtoll module pulls in a lot of stuff. But, it's pretty
|
|
|
|
# simple to use just the base source file, so pull that. We'll use it in
|
|
|
|
# src/misc.c if strtoll() is not found.
|
|
|
|
gnulib_files="$gnulib_files lib/strtol.c"
|
|
|
|
|
2018-07-02 00:28:25 +08:00
|
|
|
gnulib_modules="\
|
|
|
|
alloca
|
|
|
|
fdl
|
2019-09-07 10:24:46 +08:00
|
|
|
findprog-in
|
2018-07-02 00:28:25 +08:00
|
|
|
getloadavg
|
|
|
|
host-cpu-c-abi
|
Support systems with 32-bit long and 64-bit time_t
Don't assume that time_t fits in long, as some hosts (e.g.,
glibc x86 -D_TIME_BITS=64) have 32-bit long and 64-bit time_t.
* bootstrap.conf (gnulib_modules): Add largefile, to support files
with timestamps after Y2038 on hosts with 32-bit long.
* configure.ac: Do not call AC_SYS_LARGEFILE, as the largefile module
does that for us.
* src/makeint.h (PRIdMAX, PRIuMAX, SCNdMAX): Define if not already
defined (taken from gnulib).
* src/ar.c: Include intprops.h, for TYPE_MAXIMUM, as
INTEGER_TYPE_MAXIMUM does not work on time_t without issuing a bunch
of warnings.
(ar_member_date): Check that result is in time_t range.
(ar_member_date_1): Use intmax_t to hold the date.
(ar_glob_match): Ditto.
* src/arscan.c (VMS_function, VMS_function_ret, ar_scan)
(parse_int, ar_scan, ar_member_pos, ar_member_touch)
(describe_member): Convert long int to intmax_t.
* src/file.c (file_timestamp_sprintf): Use intmax_t/uintmax_t instead
of long/unsigned long for values that might be time_t.
* src/arscan.c (ar_member_touch): Fix buffer overrun if the timestamp
is too large.
2022-10-03 05:24:53 +08:00
|
|
|
largefile
|
2022-07-07 13:38:26 +08:00
|
|
|
make-glob
|
|
|
|
make-macros"
|