Index: autogen.sh =================================================================== RCS file: /cvs/mime/shared-mime-info/autogen.sh,v retrieving revision 1.2 diff -u -r1.2 autogen.sh --- autogen.sh 16 Dec 2003 07:04:30 -0000 1.2 +++ autogen.sh 27 Oct 2004 18:51:46 -0000 @@ -3,6 +3,12 @@ set -e +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + ARGV0=$0 if test -z "$ACLOCAL_FLAGS"; then @@ -44,4 +50,6 @@ do_cmd autoconf -do_cmd ./configure --enable-maintainer-mode ${1+"$@"} && echo "Now type \`make' to compile" || exit 1 +cd $ORIGDIR || exit $? + +do_cmd $srcdir/configure --enable-maintainer-mode ${1+"$@"} && echo "Now type \`make' to compile" || exit 1