[PATCH video-chips] config: add AM_PROG_CC_C_O for per-target compilation flags
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Jul 23 17:03:44 PDT 2010
Gaetan Nadon wrote:
> The use of per-target compilation flags with C sources requires
> that the macro AM_PROG_CC_C_O be called from configure.ac
>
> If the C compiler does not accept the -c and -o options simultaneously,
> define NO_MINUS_C_MINUS_O. This macro actually tests both the compiler
> found by AC_PROG_CC, and, if different, the first cc in the path.
> The test fails if one fails. This macro was created for GNU Make
> to choose the default C compilation rule.
>
> 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 bfc0059..4155736 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -44,6 +44,9 @@ XORG_DEFAULT_OPTIONS
> AC_DISABLE_STATIC
> AC_PROG_LIBTOOL
>
> +# Checks for programs.
> +AM_PROG_CC_C_O
> +
> AH_TOP([#include "xorg-server.h"])
>
> # Define a configure option for an alternate module directory
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list