From 21e580beb3d7dfb01bd87ea788e3dabd18d012f3 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 18 Jul 2012 11:56:47 +0100 Subject: Avoid running configure twice on Autotools projects We can set NOCONFIGURE=1 to prevent ./autogen.sh from running configure --- morphlib/buildsystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/buildsystem.py') diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py index 3e50b50b..bd7db930 100644 --- a/morphlib/buildsystem.py +++ b/morphlib/buildsystem.py @@ -99,7 +99,7 @@ class AutotoolsBuildSystem(BuildSystem): def __init__(self): self.configure_commands = [ - 'if [ -e autogen.sh ]; then ./autogen.sh; ' + + 'NOCONFIGURE=1; if [ -e autogen.sh ]; then ./autogen.sh; ' + 'elif [ ! -e ./configure ]; then autoreconf -ivf; fi', './configure --prefix="$PREFIX"', ] -- cgit v1.2.1