1*0a7e5f1fSJoseph Mingrone#!/bin/sh -e 2*0a7e5f1fSJoseph Mingrone 3*0a7e5f1fSJoseph Mingrone: "${AUTORECONF:=autoreconf}" 4*0a7e5f1fSJoseph Mingrone 5*0a7e5f1fSJoseph MingroneAUTORECONFVERSION=`$AUTORECONF --version 2>&1 | grep "^autoreconf" | sed 's/.*) *//'` 6*0a7e5f1fSJoseph Mingrone 7*0a7e5f1fSJoseph Mingronemaj=`echo "$AUTORECONFVERSION" | cut -d. -f1` 8*0a7e5f1fSJoseph Mingronemin=`echo "$AUTORECONFVERSION" | cut -d. -f2` 9*0a7e5f1fSJoseph Mingrone# The minimum required version of autoconf is currently 2.69. 10*0a7e5f1fSJoseph Mingroneif [ "$maj" = "" ] || [ "$min" = "" ] || \ 11*0a7e5f1fSJoseph Mingrone [ "$maj" -lt 2 ] || { [ "$maj" -eq 2 ] && [ "$min" -lt 69 ]; }; then 12*0a7e5f1fSJoseph Mingrone cat >&2 <<-EOF 13*0a7e5f1fSJoseph Mingrone Please install the 'autoconf' package version 2.69 or later. 14*0a7e5f1fSJoseph Mingrone If version 2.69 or later is already installed and there is no 15*0a7e5f1fSJoseph Mingrone autoconf default, it may be necessary to set the AUTORECONF 16*0a7e5f1fSJoseph Mingrone environment variable to enable the one to use, like: 17*0a7e5f1fSJoseph Mingrone AUTORECONF=autoreconf-2.69 ./autogen.sh 18*0a7e5f1fSJoseph Mingrone or 19*0a7e5f1fSJoseph Mingrone AUTORECONF=autoreconf-2.71 ./autogen.sh 20*0a7e5f1fSJoseph Mingrone EOF 21*0a7e5f1fSJoseph Mingrone exit 1 22*0a7e5f1fSJoseph Mingronefi 23*0a7e5f1fSJoseph Mingrone 24*0a7e5f1fSJoseph Mingroneecho "$AUTORECONF identification: $AUTORECONFVERSION" 25*0a7e5f1fSJoseph Mingrone"$AUTORECONF" -f 26