From c6816015ff2ff1c8932ab768455b3fdffff6cd5b Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 10 Aug 2015 16:43:28 +0200 Subject: before dist ensure that included libopts matches autogen --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 2d6f1a4d28..d446711472 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,4 +73,9 @@ dist-hook: cd $(distdir)/src/ && for i in *-args.c *-args.h;do \ mv $$i $$i.bak; \ done + @echo "*****************************************************************" + @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 src/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`" touch $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info -- cgit v1.2.1