[PATCH:xcb/util] Update autogen.sh to one that does builddir != srcdir

Jamey Sharp jamey at minilop.net
Tue Oct 20 14:44:00 PDT 2009


Pushed. Thanks!

On Tue, Oct 20, 2009 at 10:17 AM, Jon TURNEY
<jon.turney at dronecode.org.uk> wrote:
> ---
>  autogen.sh |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/autogen.sh b/autogen.sh
> index d68a142..904cd67 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -1,3 +1,12 @@
>  #! /bin/sh
> +
> +srcdir=`dirname $0`
> +test -z "$srcdir" && srcdir=.
> +
> +ORIGDIR=`pwd`
> +cd $srcdir
> +
>  autoreconf -v --install || exit 1
> -./configure "$@"
> +cd $ORIGDIR || exit $?
> +
> +$srcdir/configure --enable-maintainer-mode "$@"
> --
> 1.6.3.3


More information about the xorg-devel mailing list