diff -Nurd plplot-5.15.0.orig/cmake/modules/TestForHighBitCharacters.c plplot-5.15.0/cmake/modules/TestForHighBitCharacters.c --- plplot-5.15.0.orig/cmake/modules/TestForHighBitCharacters.c 2019-06-01 19:24:33.000000000 -0400 +++ plplot-5.15.0/cmake/modules/TestForHighBitCharacters.c 2023-11-06 02:09:15.000000000 -0500 @@ -1,3 +1,4 @@ +#include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') diff -Nurd plplot-5.15.0.orig/cmake/modules/aqt.cmake plplot-5.15.0/cmake/modules/aqt.cmake --- plplot-5.15.0.orig/cmake/modules/aqt.cmake 2019-06-01 19:24:33.000000000 -0400 +++ plplot-5.15.0/cmake/modules/aqt.cmake 2023-11-06 02:08:38.000000000 -0500 @@ -36,8 +36,8 @@ include(FindAQT) if(AQT_FOUND) message(STATUS "Found AQT: ${AQT_FRAMEWORK}") - set(aqt_COMPILE_FLAGS "-ObjC") - set(aqt_LINK_FLAGS "-framework AquaTerm -framework Foundation") + set(aqt_COMPILE_FLAGS "-ObjC -I@PREFIX@/include") + set(aqt_LINK_FLAGS "-lobjc -laquaterm -L@PREFIX@/lib -framework Foundation") set(DRIVERS_LINK_FLAGS ${DRIVERS_LINK_FLAGS} ${aqt_LINK_FLAGS}) else(AQT_FOUND) set(PLD_aqt OFF CACHE BOOL "Enable aqt device" FORCE) diff -Nurd plplot-5.15.0.orig/cmake/modules/plplot.cmake plplot-5.15.0/cmake/modules/plplot.cmake --- plplot-5.15.0.orig/cmake/modules/plplot.cmake 2019-06-01 19:24:33.000000000 -0400 +++ plplot-5.15.0/cmake/modules/plplot.cmake 2023-11-06 17:48:18.000000000 -0500 @@ -398,12 +398,12 @@ # On windows systems the math library is not separated so do not specify # it unless you are on a non-windows system. -if(NOT WIN32_OR_CYGWIN) +if(NOT (WIN32_OR_CYGWIN OR APPLE)) find_library(MATH_LIB NAMES m PATHS /usr/local/lib /usr/lib) if(NOT MATH_LIB) message(FATAL_ERROR "Cannot find required math library") endif(NOT MATH_LIB) -endif(NOT WIN32_OR_CYGWIN) +endif(NOT (WIN32_OR_CYGWIN OR APPLE)) # Temporary workaround for language support that is required # for all language bindings.