[PATCH video-ati] config: add AM_PROG_CC_C_O for per-target compilation flags

Gaetan Nadon memsize at videotron.ca
Sat Jul 24 08:03:20 PDT 2010


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 <memsize at videotron.ca>
---
 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c367e4d..45ecd38 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
-- 
1.6.0.4



More information about the xorg-devel mailing list