[Libguestfs] [PATCH libguestfs] build: enable automake's color-tests option

Richard W.M. Jones rjones at redhat.com
Wed Aug 12 10:59:33 UTC 2009


On Wed, Aug 12, 2009 at 11:30:19AM +0200, Jim Meyering wrote:
> +# In order to accommodate versions of automake that are older than 1.11
> +# remove options that we find useful but that would otherwise not be recognized.
> +v=$(automake --version | { read ver && echo ${ver#*) }; })
> +case $v in
> +    1.1[1-9]*|[2-9]*) ;; # Good!
> +    *) perl -pi -e 's/(AM_INIT_AUTOMAKE\(\[.*?)\s*color-tests\s*(.*)/$1 $2/'\
> +	configure.ac daemon/configure.ac ;;
> +esac
> +

Eeee yuk.  Is there not some other way to do this?

For example, could we redefine AM_INIT_AUTOMAKE macro so that it
ignores options which aren't supported and passes the remaining ones
to the real AM_INIT_AUTOMAKE?  (I have no idea how to do this, so just
a suggestion).

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html




More information about the Libguestfs mailing list