diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-11-14 23:05:45 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-29 05:13:32 -0200 |
commit | 0e8c41dd09080cf692b7437bb23435137febaf26 (patch) | |
tree | de06d5bbba88928b8bf88e6497f86164082890c9 | |
parent | 4cce4c8169a252bce129411dbf70c3212974e7ca (diff) |
fix XORG_PROG_RAWCPP for cygwin
Patch by Yaakov Selkowitz from xorg mailing list
http://lists.freedesktop.org/archives/xorg/attachments/20081016/04a64242/attachment.asc
-rw-r--r-- | xorg-macros.m4.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in index 2ea2e6f..06f7c9d 100644 --- a/xorg-macros.m4.in +++ b/xorg-macros.m4.in @@ -80,6 +80,10 @@ else if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then RAWCPPFLAGS=-undef AC_MSG_RESULT([yes]) + # under Cygwin unix is still defined even with -undef + elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then + RAWCPPFLAGS="-undef -ansi" + AC_MSG_RESULT([yes, with -ansi]) else AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) fi |