summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-14 09:10:13 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-14 09:11:51 -0700
commite03a5cb9f313c6f5de3edc46327eb18b300b92c2 (patch)
tree68f5c9659ac7937d8e34c9326cf5398956e79d97
parent61f5a48a74680c316bee2bf93d6ef5d50a688f22 (diff)
downloadxorg-util-macros-e03a5cb9f313c6f5de3edc46327eb18b300b92c2.tar.gz
Add AC_LANG_DEFINES_PROVIDED to XORG_RAW_CPP to silence autoconf warnings
Since we're intentionally doing a special case to just check cpp output, and not a full program compilation, add the magic macro to silence: configure.ac:46: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... aclocal.m4:1077: XORG_PROG_RAWCPP is expanded from... configure.ac:46: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xorg-macros.m4.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index f89efb6..a21cf7e 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -64,7 +64,8 @@ AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
# which is not the best choice for supporting other OS'es, but covers most
# of the ones we need for now.
AC_MSG_CHECKING([if $RAWCPP requires -undef])
-AC_LANG_CONFTEST([Does cpp redefine unix ?])
+AC_LANG_CONFTEST([Does cpp redefine unix ?
+ AC_LANG_DEFINES_PROVIDED])
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
AC_MSG_RESULT([no])
else
@@ -82,7 +83,8 @@ fi
rm -f conftest.$ac_ext
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
-AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
+AC_LANG_CONFTEST([Does cpp preserve "whitespace"?
+ AC_LANG_DEFINES_PROVIDED])
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
AC_MSG_RESULT([no])
else