[PATCH cygport v2] autotools.cygclass: correctly detect Autoconf 2.70+

Jon Turney jon.turney@dronecode.org.uk
Mon Mar 14 19:05:20 GMT 2022


On 13/03/2022 20:44, Adam Dinwoodie wrote:
>   
>   	configure="${confdir}/configure"
>   	confver=$(grep -m 1 'GNU Autoconf' ${configure} | cut -d ' ' -f 6)
> +	confver_maj=${confver%%.*}
> +	confver_min=${confver##*.}
> +	if [ $confver_maj -ne 2 ]
> +	then
> +		error "unexpected autoconf version";
> +	fi
>   
>   	# AC_CONFIG_FILES should not be dist'ed, but it sometimes happens anyway
>   	eval $(grep -h '^ac_config_files=' ${configure})

When I test this locally, it fails, as (note the full stop at the end of 
the line):

> $ grep -m1 Autoconf configure
> # Generated by GNU Autoconf 2.71.



More information about the Cygwin-apps mailing list