summaryrefslogtreecommitdiffstats
path: root/scripts/configure_helper.py
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-05-31 10:54:54 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-05-31 11:28:53 +0200
commit0377727b0190157a2547d3e124002c3a9cee4e12 (patch)
tree5220eb6dec3f2507b029c90f701c3ae095fe4000 /scripts/configure_helper.py
parentd3e729ff2c2a12a834c8f65ad8d2d76a38c57899 (diff)
downloadptxdist-0377727b0190157a2547d3e124002c3a9cee4e12.tar.gz
ptxdist-0377727b0190157a2547d3e124002c3a9cee4e12.tar.xz
configure_helper.py: call configure from the source tree
Some hand crafted configure scripts fail if the current directory is not the toplevel source dir. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/configure_helper.py')
-rwxr-xr-xscripts/configure_helper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py
index 612151c1a..a3624ccc4 100755
--- a/scripts/configure_helper.py
+++ b/scripts/configure_helper.py
@@ -283,7 +283,9 @@ def handle_dir(d, subdir):
def handle_dir_configure(d, configure):
configure_args = []
- p = subprocess.Popen([ configure, "--help" ], stdout=subprocess.PIPE, universal_newlines=True)
+ p = subprocess.Popen([ "./" + os.path.basename(configure), "--help" ],
+ stdout=subprocess.PIPE, universal_newlines=True,
+ cwd=os.path.dirname(configure))
lines = p.stdout.read().splitlines()
for line in lines:
if not re.match("^\s.*", line):