summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 7d105284..51ae4903 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,12 +2,12 @@
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
-srcdir=`cd $srcdir && pwd`
+test -z "$srcdir" && srcdir=.
REQUIRED_AUTOMAKE_VERSION=1.8
PKG_NAME="PyGTK"
-ACLOCAL_FLAGS="-I $srcdir/m4 $ACLOCAL_FLAGS"
+ACLOCAL_FLAGS="-I `pwd`/m4 $ACLOCAL_FLAGS"
#name of package
PKG_NAME=${PKG_NAME:-Package}