From 17c48175927a5fa8eea52ef09090617b3e9b20f9 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 30 Dec 2015 12:10:15 +0000 Subject: Add configure and CMake checks for X11/Xregion.h. Configure and CMake now both check if X11/Xregion.h exists on the build system and set HAVE_X11_XREGION_H in config.h accordingly. src/Fl_Pixmap.cxx: modified to use the configure test as proposed by Manolo in fltk.coredev on Dec 13 2015 in thread "Using X11 backend on OS X". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CMake/resources.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMake') diff --git a/CMake/resources.cmake b/CMake/resources.cmake index df70b5a28..c44e36a15 100644 --- a/CMake/resources.cmake +++ b/CMake/resources.cmake @@ -4,7 +4,7 @@ # Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org) # Written by Michael Surette # -# Copyright 1998-2010 by Bill Spitzak and others. +# Copyright 1998-2015 by Bill Spitzak and others. # # This library is free software. Distribution and use rights are outlined in # the file "COPYING" which should have been included with this file. If this @@ -39,6 +39,7 @@ find_file(HAVE_SYS_DIR_H sys/dir.h) find_file(HAVE_SYS_NDIR_H sys/ndir.h) find_file(HAVE_SYS_SELECT_H sys/select.h) find_file(HAVE_SYS_STDTYPES_H sys/stdtypes.h) +find_file(HAVE_X11_XREGION_H X11/Xregion.h) find_path(HAVE_XDBE_H Xdbe.h PATH_SUFFIXES X11/extensions extensions) mark_as_advanced(HAVE_ALSA_ASOUNDLIB_H HAVE_DIRENT_H HAVE_DLFCN_H) -- cgit v1.2.3