-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoconf-2.71.patch
More file actions
286 lines (274 loc) · 11.6 KB
/
autoconf-2.71.patch
File metadata and controls
286 lines (274 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
diff --git a/bin/autom4te.in b/bin/autom4te.in
index 7ebe419..53a95db 100644
--- a/bin/autom4te.in 2021-01-28 20:46:48.000Z
+++ b/bin/autom4te.in 2021-01-28 20:46:48.000Z
@@ -854,6 +854,9 @@ EOF
# Traces without arguments, always on a single line.
s{^m4trace:(.+):(\d+): -(\d+)- ([^)]*)\n$}
{AT_$4([$1], [$2], [$3], [$4])\n};
+ # Traces for trailer finalize.
+ s{^m4trace: -(\d+)- ([^(]+)\((.*)$}
+ {AT_$2([./lib/autoconf/trailer.m4], [4], [$1], [$2], $3};
print $trace_m4 "$_";
}
$trace_m4->close;
diff --git a/tests/compile.at b/tests/compile.at
index 798be24..8657356 100644
--- a/tests/compile.at
+++ b/tests/compile.at
@@ -335,10 +335,10 @@ AC_OUTPUT
]])
AT_CHECK_AUTOCONF([], 0, [],
-[[configure.ac:14: warning: The macro `AC_TRY_RUN' is obsolete.
-configure.ac:14: You should run autoupdate.
+[[configure.ac:18: warning: The macro `AC_TRY_RUN' is obsolete.
+configure.ac:18: You should run autoupdate.
general.m4: AC_TRY_RUN is expanded from...
-configure.ac:14: the top level
+configure.ac:18: the top level
]])
AT_CHECK_CONFIGURE([-q])
diff --git a/tests/m4sh.at b/tests/m4sh.at
index 63bdd39..0703ce4 100644
--- a/tests/m4sh.at
+++ b/tests/m4sh.at
@@ -622,12 +622,12 @@ script.as:23: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) in
script.as:23: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
script.as:24: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
script.as:24: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
-script.as:25: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
-script.as:25: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
-script.as:28: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
-script.as:28: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
-script.as:30: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
-script.as:30: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
+script.as:27: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
+script.as:27: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
+script.as:29: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
+script.as:29: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
+script.as:31: warning: $as@&t@_echo is obsolete; use AS@&t@_ECHO(["message"]) instead
+script.as:31: warning: $as@&t@_echo_n is obsolete; use AS@&t@_ECHO_N(["message"]) instead
]])
AT_CHECK([$CONFIG_SHELL ./script])
diff --git a/tests/mktests.pl b/tests/mktests.pl
index 8be1a3c..cf28d7a 100644
--- a/tests/mktests.pl
+++ b/tests/mktests.pl
@@ -194,10 +194,12 @@ my %test_parameters = (
# standard, so it may or may not be present depending on how much
# the C++ compiler cares about C source compatibility.
AC_CHECK_HEADER_STDBOOL => {
+ pretest_commands => '[export CXXFLAGS="$CXXFLAGS -std=gnu++11"]',
test_parameters => ('[cxx_define_varies:HAVE__BOOL' .
' cxx_cv_varies:type__Bool]')
},
AC_HEADER_STDBOOL => {
+ pretest_commands => '[export CXXFLAGS="$CXXFLAGS -std=gnu++11"]',
test_parameters => ('[cxx_define_varies:HAVE__BOOL' .
' cxx_cv_varies:type__Bool]')
},
@@ -237,7 +239,10 @@ sub emit_test
my $additional_commands = ${$params}{additional_commands} || '';
my $autoconf_flags = ${$params}{autoconf_flags} || '';
my $test_parameters = ${$params}{test_parameters} || '';
+ my $pretest_commands = ${$params}{pretest_commands} || '';
+ $test_parameters = '[]'
+ if $test_parameters eq '' && $pretest_commands ne '';
$autoconf_flags = '[]'
if $autoconf_flags eq '' && $test_parameters ne '';
$additional_commands = '[]'
@@ -246,10 +251,11 @@ sub emit_test
if $macro_use eq '' && $additional_commands ne '';
print $fh "$test_macro([$macro]";
- print $fh ", $autoconf_flags" if $autoconf_flags ne '';
+ print $fh ", $macro_use" if $macro_use ne '';
print $fh ", $additional_commands" if $additional_commands ne '';
print $fh ", $autoconf_flags" if $autoconf_flags ne '';
print $fh ", $test_parameters" if $test_parameters ne '';
+ print $fh ", $pretest_commands" if $pretest_commands ne '';
print $fh ")\n";
}
diff --git a/tests/semantics.at b/tests/semantics.at
index 7a5f83a..89bdf00 100644
--- a/tests/semantics.at
+++ b/tests/semantics.at
@@ -301,9 +301,9 @@ autoconf_nepof])
AS@&t@_UNSET([funcs])]])
AT_CHECK_AUTOCONF([], [], [],
-[[configure.ac:9: warning: AC_REPLACE_FUNCS($funcs): you should use literals
+[[configure.ac:12: warning: AC_REPLACE_FUNCS($funcs): you should use literals
functions.m4: AC_REPLACE_FUNCS is expanded from...
-configure.ac:9: the top level
+configure.ac:12: the top level
]])
AT_CHECK_AUTOHEADER([], [
HAVE_AUTOCONF_FTNIRP
@@ -1021,11 +1021,11 @@ $1([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:6: warning: whitespace-separated list contains macros;
-configure.ac:6: in a future version of Autoconf they will not be expanded
-configure.ac:6: note: `dn@&t@l' is a macro
+[configure.ac:11: warning: whitespace-separated list contains macros;
+configure.ac:11: in a future version of Autoconf they will not be expanded
+configure.ac:11: note: `dn@&t@l' is a macro
functions.m4: $1 is expanded from...
-configure.ac:6: the top level
+configure.ac:11: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete], [
HAVE_FN_BLURF
@@ -1050,14 +1050,14 @@ $1([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:8: warning: whitespace-separated list contains macros;
-configure.ac:8: in a future version of Autoconf they will not be expanded
-configure.ac:8: note: `dn@&t@l' is a macro
+[configure.ac:12: warning: whitespace-separated list contains macros;
+configure.ac:12: in a future version of Autoconf they will not be expanded
+configure.ac:12: note: `dn@&t@l' is a macro
functions.m4: $1 is expanded from...
-configure.ac:8: the top level
-configure.ac:8: warning: $1($fns): you should use literals
+configure.ac:12: the top level
+configure.ac:12: warning: $1($fns): you should use literals
functions.m4: $1 is expanded from...
-configure.ac:8: the top level
+configure.ac:12: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete], [
HAVE_FN_BLURF
@@ -1082,11 +1082,11 @@ $1([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:6: warning: whitespace-separated list contains macros;
-configure.ac:6: in a future version of Autoconf they will not be expanded
-configure.ac:6: note: `dn@&t@l' is a macro
+[configure.ac:11: warning: whitespace-separated list contains macros;
+configure.ac:11: in a future version of Autoconf they will not be expanded
+configure.ac:11: note: `dn@&t@l' is a macro
headers.m4: $1 is expanded from...
-configure.ac:6: the top level
+configure.ac:11: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete], [
HAVE_BLURF_H
@@ -1121,14 +1121,14 @@ $1([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:8: warning: whitespace-separated list contains macros;
-configure.ac:8: in a future version of Autoconf they will not be expanded
-configure.ac:8: note: `dn@&t@l' is a macro
+[configure.ac:12: warning: whitespace-separated list contains macros;
+configure.ac:12: in a future version of Autoconf they will not be expanded
+configure.ac:12: note: `dn@&t@l' is a macro
headers.m4: $1 is expanded from...
-configure.ac:8: the top level
-configure.ac:8: warning: $1($hs): you should use literals
+configure.ac:12: the top level
+configure.ac:12: warning: $1($hs): you should use literals
headers.m4: $1 is expanded from...
-configure.ac:8: the top level
+configure.ac:12: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete], [
HAVE_BLURF_H
@@ -1168,11 +1168,11 @@ AC_CHECK_FILES([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:6: warning: whitespace-separated list contains macros;
-configure.ac:6: in a future version of Autoconf they will not be expanded
-configure.ac:6: note: `dn@&t@l' is a macro
+[configure.ac:10: warning: whitespace-separated list contains macros;
+configure.ac:10: in a future version of Autoconf they will not be expanded
+configure.ac:10: note: `dn@&t@l' is a macro
general.m4: AC_CHECK_FILES is expanded from...
-configure.ac:6: the top level
+configure.ac:10: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete], [
HAVE__NONEX_F_BLURF
@@ -1194,15 +1194,15 @@ AC_CONFIG_MACRO_DIRS([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([-t AC_CONFIG_MACRO_DIR_TRACE], [0],
-[configure.ac:6:AC_CONFIG_MACRO_DIR_TRACE:d_foo
-configure.ac:6:AC_CONFIG_MACRO_DIR_TRACE:d_quux
-configure.ac:6:AC_CONFIG_MACRO_DIR_TRACE:d_blurf
+[configure.ac:10:AC_CONFIG_MACRO_DIR_TRACE:d_foo
+configure.ac:10:AC_CONFIG_MACRO_DIR_TRACE:d_quux
+configure.ac:10:AC_CONFIG_MACRO_DIR_TRACE:d_blurf
],
-[configure.ac:6: warning: whitespace-separated list contains macros;
-configure.ac:6: in a future version of Autoconf they will not be expanded
-configure.ac:6: note: `dn@&t@l' is a macro
+[configure.ac:10: warning: whitespace-separated list contains macros;
+configure.ac:10: in a future version of Autoconf they will not be expanded
+configure.ac:10: note: `dn@&t@l' is a macro
general.m4: AC_CONFIG_MACRO_DIRS is expanded from...
-configure.ac:6: the top level
+configure.ac:10: the top level
])
AT_CLEANUP
@@ -1226,11 +1226,11 @@ AC_CONFIG_SUBDIRS([dn@&t@l
])
]])
AT_CHECK_AUTOCONF([], [0], [],
-[configure.ac:6: warning: whitespace-separated list contains macros;
-configure.ac:6: in a future version of Autoconf they will not be expanded
-configure.ac:6: note: `dn@&t@l' is a macro
+[configure.ac:10: warning: whitespace-separated list contains macros;
+configure.ac:10: in a future version of Autoconf they will not be expanded
+configure.ac:10: note: `dn@&t@l' is a macro
status.m4: AC_CONFIG_SUBDIRS is expanded from...
-configure.ac:6: the top level
+configure.ac:10: the top level
])
AT_CHECK_AUTOHEADER([-W no-obsolete])
AT_CHECK_CONFIGURE([], [0], [stdout])
diff --git a/tests/tools.at b/tests/tools.at
index 08f6b42..fbaa484 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -379,9 +379,9 @@ AT_CHECK_AUTOCONF([-t AC_CONFIG_MACRO_DIR], 0,
# Preferred tracing
AT_CHECK_AUTOCONF([-t AC_CONFIG_MACRO_DIR_TRACE], 0,
[[configure.ac:2:AC_CONFIG_MACRO_DIR_TRACE:dir1
-configure.ac:3:AC_CONFIG_MACRO_DIR_TRACE:dir2
-configure.ac:3:AC_CONFIG_MACRO_DIR_TRACE:dir3
-configure.ac:3:AC_CONFIG_MACRO_DIR_TRACE:dir4
+configure.ac:4:AC_CONFIG_MACRO_DIR_TRACE:dir2
+configure.ac:4:AC_CONFIG_MACRO_DIR_TRACE:dir3
+configure.ac:4:AC_CONFIG_MACRO_DIR_TRACE:dir4
configure.ac:5:AC_CONFIG_MACRO_DIR_TRACE:dir5
]])
@@ -1362,12 +1362,12 @@ AC_OUTPUT
AT_CHECK_AUTOCONF([-Werror], 1, [],
[[configure.ac:2: warning: OLD is obsolete; convert to NEW
general.m4: AC_OBSOLETE is expanded from...
-aclocal.m4:1: OLD is expanded from...
+aclocal.m4:3: OLD is expanded from...
configure.ac:2: the top level
configure.ac:2: warning: The macro `AC_OBSOLETE' is obsolete.
configure.ac:2: You should run autoupdate.
general.m4: AC_OBSOLETE is expanded from...
-aclocal.m4:1: OLD is expanded from...
+aclocal.m4:3: OLD is expanded from...
configure.ac:2: the top level
]])
@@ -1388,10 +1388,10 @@ AT_CHECK([[grep 'AC_OBSOLETE(' aclocal.m4]], 1, [ignore], [ignore])
AT_CHECK_AUTOCONF([-Wobsolete -Wno-error], 0, [],
[[configure.ac:2: warning: if possible, define this macro using AU_DEFUN.
-aclocal.m4:1: OLD is expanded from...
+aclocal.m4:5: OLD is expanded from...
configure.ac:2: the top level
configure.ac:2: warning: OLD is obsolete; convert to NEW
-aclocal.m4:1: OLD is expanded from...
+aclocal.m4:5: OLD is expanded from...
configure.ac:2: the top level
]])