diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-07-23 20:54:56 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-07-23 20:54:56 -0400 |
commit | bc10d3acae50db1303a5255c9211a9963a7f60ff (patch) | |
tree | 61cef686f8fc47878bb60b6f1862d291e07eeeb2 | |
parent | eb2677eaa2880e99f3b731d45dab5274bda4cb99 (diff) |
config: add AM_PROG_CC_C_O for per-target compilation flags
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@videotron.ca>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 216c23d..0ac34f9 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 |