From aff4a605812f7e30060d590c44890f38150310ed Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 3 May 2019 11:15:27 +0200 Subject: [PATCH] Automatically update config.{sub,guess} in autogen.sh --- autogen.sh | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/autogen.sh b/autogen.sh index 394e6f7a..73a92b2b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -27,10 +27,22 @@ command -v automake >/dev/null 2>&1 || { } if autoreconf --version > /dev/null 2>&1 ; then - exec autoreconf -ivf + autoreconf -ivf +else + $LIBTOOLIZE && \ + aclocal && \ + automake --add-missing --force-missing --include-deps && \ + autoconf fi -$LIBTOOLIZE && \ -aclocal && \ -automake --add-missing --force-missing --include-deps && \ -autoconf +command -v curl >/dev/null 2>&1 && { + curl -sL -o config.guess \ + 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' && + mv -f config.guess build-aux/config.guess + + curl -sL -o config.sub \ + 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' && + mv -f config.sub build-aux/config.sub +} + +rm -f config.guess config.sub