[Spice-devel] [spice-streaming-agent 6/6] build: Add autogen.sh script

Christophe de Dinechin cdupontd at redhat.com
Thu Mar 1 15:45:34 UTC 2018



> On 1 Mar 2018, at 16:27, Christophe Fergeau <cfergeau at redhat.com> wrote:
> 
> Convenience script to avoid running autoreconf/configure manually.
> It can be run from a directory out of the source tree for VPATH builds.
> This script is based off the one in spice-gtk.
> 
> Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>

Acked-by: Christophe de Dinechin <dinechin at redhat.com> 

> ---
> autogen.sh | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> create mode 100755 autogen.sh
> 
> diff --git a/autogen.sh b/autogen.sh
> new file mode 100755
> index 0000000..ed069a7
> --- /dev/null
> +++ b/autogen.sh
> @@ -0,0 +1,18 @@
> +#!/bin/sh
> +
> +set -e # exit on errors
> +
> +srcdir=`dirname $0`
> +test -z "$srcdir" && srcdir=.
> +
> +(
> +    cd "$srcdir"
> +    autoreconf -v --force --install
> +)
> +
> +CONFIGURE_ARGS=""
> +
> +if [ -z "$NOCONFIGURE" ]; then
> +    echo "Running configure with $CONFIGURE_ARGS $@"
> +    "$srcdir/configure" $CONFIGURE_ARGS "$@"
> +fi
> -- 
> 2.14.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel



More information about the Spice-devel mailing list