[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Richard W.M. Jones wrote:

> 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).

That is probably feasible.
For this particular use case, it's not worth the investment.
However, once I get around to enabling automake's new parallel
tests option, imho, it will be.

That latter tends to reduce "make check" duration by 50% or more.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]