]>
The Tcpdump Group git mirrors - tcpslice/blob - autogen.sh
3 : "${AUTORECONF:=autoreconf}"
5 AUTORECONFVERSION
=`$AUTORECONF --version 2>&1 | grep "^autoreconf" | sed 's/.*) *//'`
7 maj
=`echo "$AUTORECONFVERSION" | cut -d. -f1`
8 min
=`echo "$AUTORECONFVERSION" | cut -d. -f2`
9 # The minimum required version of autoconf is currently 2.69.
10 if [ "$maj" = "" ] ||
[ "$min" = "" ] || \
11 [ "$maj" -lt 2 ] ||
{ [ "$maj" -eq 2 ] && [ "$min" -lt 69 ]; }; then
13 Please install the 'autoconf' package version 2.69 or later.
14 If version 2.69 or later is already installed and there is no
15 autoconf default, it may be necessary to set the AUTORECONF
16 environment variable to enable the one to use, like:
17 AUTORECONF=autoreconf-2.69 ./autogen.sh
19 AUTORECONF=autoreconf-2.71 ./autogen.sh
24 echo "$AUTORECONF identification: $AUTORECONFVERSION"
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
31 env
${AUTOCONF_WARNINGS:+WARNINGS="$AUTOCONF_WARNINGS"} "$AUTORECONF" -f
33 # Autoconf 2.71 adds a blank line after the final "exit 0" on Linux, but not
34 # on OpenBSD. Remove this difference to make it easier to compare the result
35 # of "make releasetar" across different platforms. From sed one-liners:
36 # "delete all trailing blank lines at end of file (works on all seds)". Don't
37 # use mktemp(1) because AIX does not have it.
38 CONFIGURE_NEW
="configure.new$$"
39 sed -e :a
-e '/^\n*$/{$d;N;ba' -e '}' <configure
>"$CONFIGURE_NEW"
40 cmp -s configure
"$CONFIGURE_NEW" ||
cat "$CONFIGURE_NEW" >configure
41 rm -f "$CONFIGURE_NEW"