summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-07-19 22:12:04 +0200
committerMike Gorse <mgorse@suse.com>2012-08-06 15:49:47 -0500
commited22425d532435fcba88787f543c38737e5d6182 (patch)
tree69f0fb35fde2d77f8b577a2de149a66e7e572a91
parent3e87dd3ef59b513393031f838f43bd93fa9a7e0d (diff)
downloadat-spi2-atk-ed22425d532435fcba88787f543c38737e5d6182.tar.gz
Allow to build out of source directory
https://bugzilla.gnome.org/show_bug.cgi?id=680280
-rwxr-xr-xautogen.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 3179c3f..1848e54 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,9 +1,11 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
#name of package
PKG_NAME=${PKG_NAME:-Package}
-srcdir=${srcdir:-.}
# default version requirements ...
REQUIRED_AUTOCONF_VERSION=${REQUIRED_AUTOCONF_VERSION:-2.53}