From 6d356f439df33f80349e88fad705dbeb465cf060 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 2 Mar 2016 19:02:53 +0100 Subject: [PATCH] autogen.sh, src/Makefile.am, fix a build problem in autogen.sh: libtoolize generates m4/*.m4 files autoheader generates config.h.in but only when needed Thus a second autogen.sh invocation generated new .m4 files but left config.h.in untouched with old timestamp The makefiles did recognice this situation and tried to regenerate config.h.in and config.h But the subdir src/include was not the first one in src/Makefile.am and thus this update did occure too late, causing further rebuilds in the next make invocation. Avoid this with --force arguments to the autotools, and put src/include into the first position. --- autogen.sh | 8 ++++---- src/Makefile.am | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/autogen.sh b/autogen.sh index 6ed382767..a816f7c7f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -191,14 +191,14 @@ $LIBTOOLIZE --copy --force \ || error_and_exit "$LIBTOOLIZE failed" echo "Running aclocal $ACLOCAL_FLAGS" -aclocal $ACLOCAL_FLAGS -I m4 \ +aclocal $ACLOCAL_FLAGS --force -I m4 \ || error_and_exit "aclocal failed" # optional feature: autoheader (autoheader --version) < /dev/null > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "Running autoheader" - autoheader \ + autoheader --force \ || error_and_exit "autoheader failed" fi @@ -214,12 +214,12 @@ fi echo "Running autoconf" if [ "$ADMS" -gt 0 ]; then - autoconf temp-adms.ac > configure \ + autoconf --force temp-adms.ac > configure \ || error_and_exit "autoconf failed, with adms" rm -f temp-adms.ac chmod +x configure else - autoconf \ + autoconf --force \ || error_and_exit "autoconf failed" fi diff --git a/src/Makefile.am b/src/Makefile.am index 9dcbc9257..eec46cd59 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = misc maths frontend spicelib include/ngspice -DIST_SUBDIRS = misc maths frontend spicelib include/ngspice xspice ciderlib unsupported +SUBDIRS = include/ngspice misc maths frontend spicelib +DIST_SUBDIRS = include/ngspice misc maths frontend spicelib xspice ciderlib unsupported if XSPICE_WANTED SUBDIRS += xspice