On Sun, Mar 12, 2017 at 3:51 AM, H William Wellliver III william@welliver.org wrote:
I’m running into some build problems on OSX. It seems that the GTK module assumes that if a system is NT that gdkwin.h is used and otherwise gdkx.h is used. Unfortunately, it seems that on some builds of GTK/GDK for OS X, neither of those is correct and that gdkquartz.h should be used. I’m guessing that some configure tests are needed to determine which of the 3 files is actually present. However a quick look at configure.in leaves me unsure how best to include that. Anyone with more expertise in the GTK module’s inner workings care to weigh in?
I'm far from an expert on either the module or configure.in, but I did some experimentation. The result is in branch rosuav/support-gdk-quartz, and it adds three header file probes to the configuration. Then, since three-way logic is a lot more verbose than two-way, I've removed it from all the places where it's currently done, and put it into pgtk.h (which they all include). This will probably slow down compilation slightly, but AFAIK it shouldn't have any run-time significance.
Can you test it on OSX? And ideally Windows?
ChrisA