diff options
author | John Ralls <jralls@ceridwen.us> | 2017-04-29 10:37:46 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2017-04-30 09:34:47 -0700 |
commit | dd671f29ff9a005776ebd9e7cf20fdc5e44c14b8 (patch) | |
tree | 25e4bfd97b802e12833b43f272a97c473427dddf | |
parent | 627ef19ab6afb42da3b7d16bf67c44cac88d0ab5 (diff) | |
download | glibmm-dd671f29ff9a005776ebd9e7cf20fdc5e44c14b8.tar.gz |
Bug 781947 - Build fails on MacOS because glib doesn't have gdesktopinfo.
Disable building desktopapinfo.cpp with the same test used in glib.
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | gio/src/filelist.am | 8 |
2 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 52e55878..75bdf0f1 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,18 @@ AS_CASE([$host_os], [mingw*], [glibmm_host_windows=yes], [glibmm_host_windows=no AC_MSG_RESULT([$glibmm_host_windows]) AM_CONDITIONAL([HOST_WINDOWS_NATIVE], [test "x$glibmm_host_windows" = xyes]) +glib_have_cocoa=no +AC_MSG_CHECKING([for Mac OS X Cocoa support]) +AC_TRY_CPP([ +#include <Cocoa/Cocoa.h> +#ifdef GNUSTEP_BASE_VERSION +#error "Detected GNUstep, not Cocoa" +#endif +], glib_have_cocoa=yes) + +AC_MSG_RESULT([$glib_have_cocoa]) +AM_CONDITIONAL(OS_COCOA, [test "$glib_have_cocoa" = "yes"]) + # TODO: This makes no sense. --danielk AS_IF([test "x$enable_static" = xyes], [ diff --git a/gio/src/filelist.am b/gio/src/filelist.am index ca5a3acf..8db89013 100644 --- a/gio/src/filelist.am +++ b/gio/src/filelist.am @@ -137,7 +137,6 @@ giomm_files_any_hg = \ zlibcompressor.hg giomm_files_posix_hg = \ - desktopappinfo.hg \ unixconnection.hg \ unixcredentialsmessage.hg \ unixfdlist.hg \ @@ -146,10 +145,17 @@ giomm_files_posix_hg = \ unixoutputstream.hg \ unixsocketaddress.hg +giomm_files_not_mac = \ + desktopappinfo.hg + if HOST_WINDOWS_NATIVE giomm_files_arch_hg = else +if OS_COCOA giomm_files_arch_hg = $(giomm_files_posix_hg) +else +giomm_files_arch_hg = $(giomm_files_not_mac) $(giomm_files_posix_hg) +endif endif giomm_files_used_hg = $(giomm_files_any_hg) $(giomm_files_arch_hg) |