--- configure.ac.orig	2017-09-04 06:26:39.000000000 -0700
+++ configure.ac	2017-09-05 01:57:18.000000000 -0700
@@ -62,7 +62,7 @@
 glibmm_have_cocoa=no
 AC_MSG_CHECKING([for Mac OS X Cocoa support])
 AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
-#include <Cocoa/Cocoa.h>
+#error "Detected Mac OS X Cocoa support"
 #ifdef GNUSTEP_BASE_VERSION
 #error "Detected GNUstep, not Cocoa"
 #endif
