From 6e264b6eea74aa18d044e68bccbff1243a22cf44 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Aug 2009 19:50:52 -0700 Subject: [PATCH] Added missing configure script. --- configure.py | 10 ++++++++++ tools/buildbot/bootstrap.pl | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 configure.py diff --git a/configure.py b/configure.py new file mode 100644 index 00000000..f0f2aa07 --- /dev/null +++ b/configure.py @@ -0,0 +1,10 @@ +# vim: set ts=2 sw=2 tw=99 noet: +import sys +import ambuild.runner as runner + +run = runner.Runner() +run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug', + help='Enable debugging symbols') +run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt', + help='Enable optimization') +run.Configure(sys.path[0]) diff --git a/tools/buildbot/bootstrap.pl b/tools/buildbot/bootstrap.pl index b2095511..f4a86256 100755 --- a/tools/buildbot/bootstrap.pl +++ b/tools/buildbot/bootstrap.pl @@ -51,6 +51,8 @@ if ($reconf) { print "$result\n"; if ($? == -1) { die('Could not configure!'); + } elsif ($? >> 8 != 0) { + die('Could not configure!'); } }