[prevent][36018] Fix for unchecked return value
[platform/upstream/at-spi2-core.git] / autogen.sh
index aff1175..38add59 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd "$srcdir"
+
 # run gtkdocize
 gtkdocize || exit 1
 
@@ -7,5 +13,8 @@ intltoolize --force --copy --automake || exit 1
 
 # gnome-autogen.sh runs configure, so do likewise.
 autoreconf -vif
-test -n "$NOCONFIGURE" || ./configure "$@"
+
+cd "$olddir"
+
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"