[cygport - the Cygwin packaging tool] branch master, updated. 0.35.2-1-g8407994

Jon TURNEY via Cygwin-apps-cvs <[email protected]> Sat, 13 Aug 2022 21:52:43 +0000 (GMT)
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/cygport.git;h=8407994126516d73aeb17b6b829578c0848a4c4d

commit 8407994126516d73aeb17b6b829578c0848a4c4d
Author: Jon Turney <[email protected]>
Date:   Wed Jul 20 13:14:12 2022 +0100

    autotools.cygclass: Fix detecting autoconf version 2.13
    
    configure scripts generated with autoconf 2.13 produce a slightly
    different output for --version:
    
    $ ./configure --version
    configure generated by autoconf version 2.13


Diff:
---
 cygclass/autotools.cygclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cygclass/autotools.cygclass b/cygclass/autotools.cygclass
index 7d56cbf..c83dd00 100644
--- a/cygclass/autotools.cygclass
+++ b/cygclass/autotools.cygclass
@@ -663,7 +663,7 @@ cygconf() {
 	configure="${confdir}/configure"
 	if [ -z ${AUTOCONF_VERSION} ]
 	then
-		confver="$("$configure" --version | sed -rn 's/.*GNU Autoconf ([0-9\.]+)/\1/p')"
+		confver="$("$configure" --version | sed -rn 's/.*(GNU Autoconf|autoconf version) ([0-9\.]+)/\2/p')"
 	else
 		confver=${AUTOCONF_VERSION}
 	fi