mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-24 00:48:53 +03:00
build: use a more standard autogen.sh
This version of the autogen.sh script allows execution from a sub- directory and will automatically run the configure script that it has generated. This is useful for out-of-tree and cross builds. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
ce029942c0
commit
6876721f74
13
autogen.sh
13
autogen.sh
@@ -1,3 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
autoreconf --force --install --verbose
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
cd "$srcdir"
|
||||
|
||||
autoreconf --force --install --verbose || exit 1
|
||||
cd $ORIGDIR || exit $?
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
exec "$srcdir"/configure "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user