summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2021-04-13 19:07:46 +0200
committerLudovic Rousseau <ludovic.rousseau@free.fr>2021-04-14 16:51:09 +0200
commit1001cb5558cf6679af7bce3114bba1d3bb7b6f7f (patch)
treefa618d66afbfe7379161185918ff92b5381f9c6a
parentbda2344f5e7d460decd3968492faa7a5fb2797cd (diff)
downloadlibusb-1001cb5558cf6679af7bce3114bba1d3bb7b6f7f.tar.gz
autogen: Support being called from external build dir
Building libusb from another build directory doesn't properly work right now, as calling autogen.sh from there won't work. An example is when using jhbuild to build it. So always use absolute paths to call configure and bootstrap scripts Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
-rwxr-xr-xautogen.sh6
-rwxr-xr-xbootstrap.sh2
-rw-r--r--libusb/version_nano.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 62d68e5..2ffb10e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,7 +2,9 @@
set -e
-./bootstrap.sh
+srcdir="$(dirname "$0")"
+
+"$srcdir"/bootstrap.sh
if [ -z "$NOCONFIGURE" ]; then
- exec ./configure --enable-examples-build --enable-tests-build "$@"
+ exec "$srcdir"/configure --enable-examples-build --enable-tests-build "$@"
fi
diff --git a/bootstrap.sh b/bootstrap.sh
index cfd2b45..fc555d5 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -2,6 +2,8 @@
set -e
+cd "$(dirname "$0")"
+
if [ ! -d m4 ]; then
mkdir m4
fi
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 1dd1b6a..8d36b28 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11608
+#define LIBUSB_NANO 11609