[PATCH] Avoid -Werror problems on cygwin.

Yaakov Selkowitz yselkowitz at users.sourceforge.net
Sun Aug 8 23:50:33 PDT 2010


---
 configure.in |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 5a38641..733fe58 100644
--- a/configure.in
+++ b/configure.in
@@ -72,6 +72,7 @@ AC_PROG_MKDIR_P
 
 # Set some internal variables depending on the platform for later use.
 dbus_win=no
+dbus_cygwin=no
 dbus_unix=no
 case "${host}" in
     *-mingw32ce*)
@@ -81,6 +82,10 @@ case "${host}" in
     *-mingw32*)
         dbus_win=yes
         ;;
+    *-cygwin*)
+        dbus_cygwin=yes
+        dbus_unix=yes
+        ;;
     *)
         dbus_unix=yes
        ;;
@@ -1084,7 +1089,7 @@ ld_supports_flag() {
 }
 
 # Don't bother with -Werror on Windows for now, too many warnings
-if test x$dbus_win != xyes -a x$USE_MAINTAINER_MODE = xyes; then
+if test x$dbus_win != xyes -a x$dbus_cygwin != xyes -a x$USE_MAINTAINER_MODE = xyes; then
   if cc_supports_flag "-Werror"; then
     CFLAGS="$CFLAGS -Werror"
   fi
-- 
1.5.6.5


--------------080408000804030905000500
Content-Type: text/x-patch;
 name="0003-Delete-stale-pid-file-on-cygwin.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0003-Delete-stale-pid-file-on-cygwin.patch"



More information about the dbus mailing list