vala: AM_PROG_VALAC should not produce an error for tool-old valac
authorSébastien Wilmet <swilmet@gnome.org>
Fri, 26 Oct 2012 15:08:09 +0000 (17:08 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Oct 2012 19:17:09 +0000 (21:17 +0200)
commit9fe696bc9d6654a972d99f524c14a22fdc429e79
tree6510a18948e987923230cc0ae2563c9f9aae4259
parent6ecb0a537da242b2b6e3c42b139f4dc27b121faa
vala: AM_PROG_VALAC should not produce an error for tool-old valac

This change fixes automake bug#12688.

In the AM_PROG_VALAC macro, when the optional parameter specifying the
minimum release number is not provided, and/or if the Vala compiler is
not found, then there is a _warning_ message.

On the other hand, when the version number is specified and if the Vala
compiler is too old, there is an _error_ message.

This error message is problematic, because for a tarball, the Vala
compiler is not required: the generated C code is included in the
tarball.  So if a user wants to compile the software, he shouldn't
need the valac program with the right version.

* m4/vala.m4 (AM_PROG_VALAC): Modify to use AC_MSG_WARN instead
of AC_MSG_ERROR.
* t/vala4.sh: Adjust and enhance.
* doc/automake.texi (Vala Support): Likewise.
* THANKS: Update.

Co-authored-by: Matthieu Baerts <matttbe@glx-dock.org>
Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
THANKS
doc/automake.texi
m4/vala.m4
t/vala4.sh