Skip to content

Commit 8d86fc9

Browse files
authored
Merge pull request #4251 from roystgnr/update_autotools
Update autotools
2 parents 98fb59e + aeab723 commit 8d86fc9

137 files changed

Lines changed: 13581 additions & 8374 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

INSTALL

Lines changed: 255 additions & 243 deletions
Large diffs are not rendered by default.

Makefile.in

Lines changed: 124 additions & 111 deletions
Large diffs are not rendered by default.

aclocal.m4

Lines changed: 301 additions & 134 deletions
Large diffs are not rendered by default.

bootstrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ function check_autotool_prerequisites ()
7070
libtool_version=$($libtool --version 2>&1 | grep "(GNU libtool)")
7171

7272
case "$libtool_version" in
73-
*2.4* | *2.2*)
73+
*2.5* | *2.4* | *2.2*)
7474
echo "Using libtool ($libtool_version)"
7575
;;
7676
*)
77-
echo "Indaequate Libtool ($libtool_version), building a new one..."
77+
echo "Inadequate Libtool ($libtool_version), building a new one..."
7878
build_autotools=1
7979
esac
8080
else
@@ -92,7 +92,7 @@ function check_autotool_prerequisites ()
9292
if test $automake_minor_version -lt $automake_minor; then
9393
echo "Automake Version $automake_major.$automake_minor_version too old, building a new one..."
9494
build_autotools=1
95-
else
95+
elif test $automake_minor_version -eq $automake_minor; then
9696
automake_subminor_version=$($automake --version | grep " $automake_major\." | cut -d"." -f3)
9797
version_id=$($automake --version 2>&1 | grep "(GNU automake)")
9898
if test $automake_subminor_version -lt $automake_subminor; then
@@ -141,7 +141,7 @@ if test "$build_autotools" = "1"; then
141141
# set the path to use the new tools as they are installed.
142142
# for example, the new autoconf is needed to build automake.
143143
PATH=$autotools_distdir/bin:$PATH
144-
for tool in autoconf-2.71 automake-1.16.5 libtool-2.4.7 ; do
144+
for tool in autoconf-2.72 automake-1.18.1 libtool-2.5.4 ; do
145145
cd $autotools_distdir
146146
echo " building $tool in $autotools_distdir"
147147
tar zxf $tool.tar.gz

build-aux/compile

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#! /bin/sh
22
# Wrapper for compilers which do not understand '-c -o'.
33

4-
scriptversion=2018-03-07.03; # UTC
4+
scriptversion=2025-06-18.21; # UTC
55

6-
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
6+
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
77
# Written by Tom Tromey <tromey@cygnus.com>.
88
#
99
# This program is free software; you can redistribute it and/or modify
@@ -37,11 +37,11 @@ IFS=" "" $nl"
3737

3838
file_conv=
3939

40-
# func_file_conv build_file lazy
40+
# func_file_conv build_file unneeded_conversions
4141
# Convert a $build file to $host form and store it in $file
4242
# Currently only supports Windows hosts. If the determined conversion
43-
# type is listed in (the comma separated) LAZY, no conversion will
44-
# take place.
43+
# type is listed in (the comma separated) UNNEEDED_CONVERSIONS, no
44+
# conversion will take place.
4545
func_file_conv ()
4646
{
4747
file=$1
@@ -51,9 +51,20 @@ func_file_conv ()
5151
# lazily determine how to convert abs files
5252
case `uname -s` in
5353
MINGW*)
54-
file_conv=mingw
54+
if test -n "$MSYSTEM" && (cygpath --version) >/dev/null 2>&1; then
55+
# MSYS2 environment.
56+
file_conv=cygwin
57+
else
58+
# Original MinGW environment.
59+
file_conv=mingw
60+
fi
5561
;;
56-
CYGWIN* | MSYS*)
62+
MSYS*)
63+
# Old MSYS environment, or MSYS2 with 32-bit MSYS2 shell.
64+
file_conv=cygwin
65+
;;
66+
CYGWIN*)
67+
# Cygwin environment.
5768
file_conv=cygwin
5869
;;
5970
*)
@@ -63,12 +74,14 @@ func_file_conv ()
6374
fi
6475
case $file_conv/,$2, in
6576
*,$file_conv,*)
77+
# This is the optimization mentioned above:
78+
# If UNNEEDED_CONVERSIONS contains $file_conv, don't convert.
6679
;;
6780
mingw/*)
6881
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6982
;;
70-
cygwin/* | msys/*)
71-
file=`cygpath -m "$file" || echo "$file"`
83+
cygwin/*)
84+
file=`cygpath -w "$file" || echo "$file"`
7285
;;
7386
wine/*)
7487
file=`winepath -w "$file" || echo "$file"`
@@ -143,7 +156,7 @@ func_cl_wrapper ()
143156
# configure might choose to run compile as 'compile cc -o foo foo.c'.
144157
eat=1
145158
case $2 in
146-
*.o | *.[oO][bB][jJ])
159+
*.o | *.lo | *.[oO][bB][jJ])
147160
func_file_conv "$2"
148161
set x "$@" -Fo"$file"
149162
shift
@@ -248,14 +261,17 @@ If you are trying to build a whole package this is not the
248261
right script to run: please start by reading the file 'INSTALL'.
249262
250263
Report bugs to <bug-automake@gnu.org>.
264+
GNU Automake home page: <https://www.gnu.org/software/automake/>.
265+
General help using GNU software: <https://www.gnu.org/gethelp/>.
251266
EOF
252267
exit $?
253268
;;
254269
-v | --v*)
255-
echo "compile $scriptversion"
270+
echo "compile (GNU Automake) $scriptversion"
256271
exit $?
257272
;;
258273
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
274+
clang-cl | *[/\\]clang-cl | clang-cl.exe | *[/\\]clang-cl.exe | \
259275
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
260276
func_cl_wrapper "$@" # Doesn't return...
261277
;;
@@ -340,9 +356,9 @@ exit $ret
340356
# Local Variables:
341357
# mode: shell-script
342358
# sh-indentation: 2
343-
# eval: (add-hook 'before-save-hook 'time-stamp)
359+
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
344360
# time-stamp-start: "scriptversion="
345-
# time-stamp-format: "%:y-%02m-%02d.%02H"
361+
# time-stamp-format: "%Y-%02m-%02d.%02H"
346362
# time-stamp-time-zone: "UTC0"
347363
# time-stamp-end: "; # UTC"
348364
# End:

0 commit comments

Comments
 (0)