Skip to content

Commit a51c3a8

Browse files
committed
autogen.sh: Allow to configure Autoconf warnings.
Same as in tcpslice and libpcap.
1 parent 2dd4547 commit a51c3a8

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.cirrus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 3 # The internal git client reads CIRRUS_CLONE_DEPTH.
33
LIBPCAP_GIT: https://github.com/the-tcpdump-group/libpcap.git
4+
AUTOCONF_WARNINGS: no-obsolete
45

56
freebsd_task:
67
name: freebsd-amd64

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
6565
Makefile.in: Do not install a version-suffixed tcpdump binary if the
6666
.devel file does not exists.
6767
tests: On HP-UX use "diff -c" by default.
68+
autogen.sh: Allow to configure Autoconf warnings.
6869
Documentation:
6970
man: Clarify the "any" pseudo-interface further.
7071

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ releasetar:
481481
tar xf -) && \
482482
echo "No $$TAG tag. Archive build from HEAD."; \
483483
fi && \
484-
(cd "$$TAG" && "$${AUTORECONF:-autoreconf}" && rm -rf autom4te.cache) && \
484+
(cd "$$TAG" && ./autogen.sh && rm -rf autom4te.cache) && \
485485
tar cf "$$DIR/$$TAG".tar "$$TAG" && \
486486
rm -f "$$DIR/$$TAG".tar.gz && \
487487
gzip --best "$$DIR/$$TAG".tar && \

autogen.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ if [ "$maj" = "" ] || [ "$min" = "" ] || \
2222
fi
2323

2424
echo "$AUTORECONF identification: $AUTORECONFVERSION"
25-
"$AUTORECONF" -f
25+
26+
# configure.ac is an Autoconf 2.69 file, but it works as expected even with
27+
# Autoconf 2.72. However, in Autoconf versions 2.70 and later obsolete
28+
# construct warnings are enabled by default, which adds varying (depending on
29+
# the branch) amount of noise to the build matrix output, so provide a means
30+
# to silence that.
31+
env ${AUTOCONF_WARNINGS:+WARNINGS="$AUTOCONF_WARNINGS"} "$AUTORECONF" -f

0 commit comments

Comments
 (0)