mirror of
https://github.com/libusb/libusb
synced 2024-11-21 06:26:10 -07:00
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>
This commit is contained in:
parent
bda2344f5e
commit
1001cb5558
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ ! -d m4 ]; then
|
||||
mkdir m4
|
||||
fi
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define LIBUSB_NANO 11608
|
||||
#define LIBUSB_NANO 11609
|
||||
|
|
Loading…
Reference in a new issue