summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2009-12-30 15:34:56 +0200
committerAlexander Larsson <alexl@redhat.com>2010-03-24 14:03:18 +0100
commit3b58f557afc7b435e5083803ea62620d5b26f9ee (patch)
tree9e858d151f3e585306a981976ca83cdbd9131fb2 /autogen.sh
parentdcef400d30f079eb148429ff5b104022d3b9e66d (diff)
downloadspice-3b58f557afc7b435e5083803ea62620d5b26f9ee.tar.gz
spice-3b58f557afc7b435e5083803ea62620d5b26f9ee.tar.xz
spice-3b58f557afc7b435e5083803ea62620d5b26f9ee.zip
autogen: remove copied code - srcdir and ORIGDIR (subdir config)
Signed-off-by: Uri Lublin <uril@redhat.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/autogen.sh b/autogen.sh
index 9bba4d7e..3a9b9934 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,11 +1,5 @@
#! /bin/sh
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-
# FIXME: can replace this entire script with
# the following line if we can require autoconf 2.60:
# autoreconf -v --force --install || exit 1
@@ -39,6 +33,7 @@ srcdir=`dirname $ARGV0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
+cd $srcdir
# Not all echo versions allow -n, so we check what is possible. This test is
# based on the one in autoconf.
@@ -156,7 +151,6 @@ do_cmd() {
# Run for top level directory
printbold "Setting up $PACKAGE toplevel"
-cd $srcdir
do_cmd $LIBTOOLIZE $LIBTOOLIZE_FLAGS
do_cmd $ACLOCAL $ACLOCAL_FLAGS
do_cmd $AUTOHEADER