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