[PATCH] configure.ac: Use AM_PROG_AR when it exists

IvanHu ivan.hu at canonical.com
Tue Jun 4 07:17:54 UTC 2013


On 06/03/2013 06:07 PM, Keng-Yu Lin wrote:
> The new AM_PROG_AR macro was added in automake 1.11.2.
> automake warns on this. And because the -Werror flag is default in fwts,
> this breaks the Saucy build.
>
> The patch just checks if the macro is defined. If so, just use it.
>
> Signed-off-by: Keng-Yu Lin <kengyu at canonical.com>
> ---
>   configure.ac | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/configure.ac b/configure.ac
> index 77d44bf..c0411c1 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1,5 +1,6 @@
>   	  AC_INIT([fwts],[0.1],[colin.king at canonical.com])
>             AM_INIT_AUTOMAKE([-Wall -Werror foreign])
> +          m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
>   	  AC_CANONICAL_HOST
>   	  AC_CONFIG_MACRO_DIR([m4])
>             AC_PROG_CC
>

Acked-by: Ivan Hu <ivan.hu at canonical.com>




More information about the fwts-devel mailing list