From 0028419acb0762eeb950de5fe702c93e70301612 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sat, 24 Jul 2010 10:51:18 -0400 Subject: config: add AM_PROG_CC_C_O for per-target compilation flags Per-target compilation flags (theatre200_drv_la_CFLAGS) are required when multiple targets which require different compiler flags, are build in the same makefile. Automake issues a command with -c and -o flags which not all compilers support. The object fles are prefixed with theatre200_drv_la. The macro AM_PROG_CC_C_O must then be used to provide this feature on compilers that do not have it. If not, a warning is issued at make time. This macros checks for compiler support and if missing, uses a "compile" script it generates in the package root directory. Signed-off-by: Gaetan Nadon --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index c367e4d5..45ecd38f 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,9 @@ AM_MAINTAINER_MODE AC_DISABLE_STATIC AC_PROG_LIBTOOL +# Checks for programs. +AM_PROG_CC_C_O + if test "x$GCC" = "xyes"; then CPPFLAGS="$CPPFLAGS -Wall" fi -- cgit v1.2.3