summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-03-21 10:32:43 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-03-21 10:39:59 +0100
commit730d0b168e7758c094909546bade5e6267704306 (patch)
tree343e291b7f1194a86e5bed6b9918e1e6bc8faeb6
parent4a4d313b9290accc626bc517f813d691ea7843f3 (diff)
build: run configure script from builddir rather than srcdir
Based on an equivalent patch from Philip Withnall <philip@tecnocode.co.uk> for libmbim; see: https://bugs.freedesktop.org/show_bug.cgi?id=94639 (cherry picked from commit 2b9ed332357d0ddf8a4fc4ffd7a5c0ec8c3126eb)
-rwxr-xr-xautogen.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index a34089b..21c3cd0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,8 @@ PKG_NAME=libqmi
mkdir -p m4
touch README NEWS ChangeLog
autoreconf --force --install --verbose
- if test -z "$NOCONFIGURE"; then
- ./configure --enable-maintainer-mode "$@"
- fi
)
+
+if test -z "$NOCONFIGURE"; then
+ $srcdir/configure --enable-maintainer-mode "$@"
+fi