Patch by Yaakov Selkowitz
---
macros/xorg-macros.m4.in | 4 ++++
1 file changed, 4 insertions(+)
Index: xorg-git/macros/xorg-macros.m4.in
===================================================================
--- xorg-git.orig/macros/xorg-macros.m4.in
+++ xorg-git/macros/xorg-macros.m4.in
@@ -79,6 +79,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
--
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg