summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-09 03:04:31 +0200
committerGravatar Martin Szulecki2020-06-09 03:04:31 +0200
commit8cf167710b6add2bcbbb1099cb5fe72b5199f891 (patch)
tree5c2f6c4b656a903136cd970d60987f6e9b42bf42
parentd0a476a6ce4ebf81c5aa562abe258f6c8d30f612 (diff)
downloadlibimobiledevice-8cf167710b6add2bcbbb1099cb5fe72b5199f891.tar.gz
libimobiledevice-8cf167710b6add2bcbbb1099cb5fe72b5199f891.tar.bz2
Apply changes towards a project wide common "autogen.sh" file
-rwxr-xr-xautogen.sh26
1 files changed, 14 insertions, 12 deletions
diff --git a/autogen.sh b/autogen.sh
index abe038f..5a0ec43 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,20 +4,22 @@ olddir=`pwd`
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-cd "$srcdir"
+(
+ cd "$srcdir"
-gprefix=`which glibtoolize 2>&1 >/dev/null`
-if [ $? -eq 0 ]; then
- glibtoolize --force
-else
- libtoolize --force
-fi
-aclocal -I m4
-autoheader
-automake --add-missing
-autoconf
+ gprefix=`which glibtoolize 2>&1 >/dev/null`
+ if [ $? -eq 0 ]; then
+ glibtoolize --force
+ else
+ libtoolize --force
+ fi
+ aclocal -I m4
+ autoheader
+ automake --add-missing
+ autoconf
-cd "$olddir"
+ cd "$olddir"
+)
if [ -z "$NOCONFIGURE" ]; then
$srcdir/configure "$@"