[PATCH libinputmapper 11/13] autogen: support out-of-tree builds
David Herrmann
dh.herrmann at gmail.com
Sun Sep 1 09:08:05 PDT 2013
Hi
On Wed, Aug 28, 2013 at 3:00 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> autogen.sh | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/autogen.sh b/autogen.sh
> index 7edcbb9..65a6fe1 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -1,8 +1,17 @@
> #!/bin/sh
> set -e
> +
> +srcdir=`dirname $0`
> +test -z "$srcdir" && srcdir=.
> +
> +origdir=`pwd`
> +cd $srcdir
> +
> mkdir -p m4
> autoreconf -is --force
Ugh, so you still call "autoreconf" in the srcdir. Any reason why
out-of-tree builds would ever call "./autogen.sh"?
We already support VPATH builds from tarballs. I don't know whether it
makes sense to support them from clean git-trees.
Hm, need to think about that.
Regards
David
> +cd $origdir
> +
> if test -z "$NOCONFIGURE" ; then
> - exec ./configure "$@"
> + exec $srcdir/configure "$@"
> fi
> --
> 1.8.2.1
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools
More information about the Input-tools
mailing list