diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-04-09 14:17:09 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-04-09 16:15:43 +0200 |
commit | 12ffbf91197add094ff6c0f1513cf9c4c0a540d8 (patch) | |
tree | 2fe097fdb7166c57dc8e727a462d0dfd78ee8630 | |
parent | e360b641eedddd2dea389d9fd860a86ff21297a1 (diff) | |
download | gnutls-12ffbf91197add094ff6c0f1513cf9c4c0a540d8.tar.gz |
Makefile.am: Don't assume autoopts-config returns a single dash.
On distributions such as Nix or Guix, `autoopts-config libsrc` may
return something along the lines of
"/gnu/store/...-autogen-5.18.16/share/autogen/libopts-42.1.17.tar.gz".
* Makefile.am (libopts-check): Print only the last field from
autoopts-config output.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index b4d0db3b51..27b4520e0b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -161,7 +161,7 @@ libopts-check: @echo "Checking whether included libopts matches the system's. If the" @echo "check fails upgrade the included libopts." @echo "*****************************************************************" - test "`autoopts-config libsrc|cut -d '-' -f 2|sed 's/.tar.gz//'`" = "`cat $(srcdir)/src/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`" + test "`autoopts-config libsrc|awk -F '-' '{print $$NF}'|sed 's/.tar.gz//'`" = "`cat $(srcdir)/src/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`" files-update: libopts-check $(MAKE) -C doc/ compare-makefile || mv doc/tmp-compare-makefile $(srcdir)/doc/Makefile.am |