[gnome-code-assistance] [backends/c] Check also for configure.in and configure
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c] Check also for configure.in and configure
- Date: Tue, 12 Nov 2013 10:48:09 +0000 (UTC)
commit 4ea541a825415d5e725d17d871b6261cd702c3e1
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Tue Nov 12 11:46:49 2013 +0100
[backends/c] Check also for configure.in and configure
backends/c/makefileintegration.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 3aced07..7b3658c 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -137,13 +137,18 @@ class MakefileIntegration:
return makefile
if tryac:
- configureac = os.path.join(parent, 'configure.ac')
+ tocheck = ['configure.ac', 'configure.in', 'configure']
- if os.path.isfile(configureac):
- ret = self._subdir_makefile_for(path, parent)
+ for f in tocheck:
+ configuref = os.path.join(parent, f)
- if not ret is None:
- return ret
+ if os.path.isfile(configuref):
+ ret = self._subdir_makefile_for(path, parent)
+
+ if not ret is None:
+ return ret
+
+ break
parent = os.path.dirname(parent)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]