From f2f1e160ce411a08836e31c36a09c9dd55ec9784 Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Tue, 31 Jul 2012 12:54:07 +0200 Subject: fix for automake-1.12 This patch fixes following kind of issues with automake 1.12 | automake: warnings are treated as errors ... | warning: 'libmediactl.la': linking libtool libraries using a non-POSIX | ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in' | warning: 'libv4l2subdev.la': linking libtool libraries using a non-POSIX | ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in' ... | src/Makefile.am:10: warning: compiling 'main.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.in' Signed-off-by: Stefan Herbrechtsmeier --- configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.in b/configure.in index 6903451..98459d4 100644 --- a/configure.in +++ b/configure.in @@ -9,6 +9,9 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]) # Checks for programs. AC_PROG_CC +AM_PROG_CC_C_O +# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_PROG_LIBTOOL # Checks for libraries. -- cgit v1.2.3