meson.build

changeset 41173
7ecbf09e5ec7
parent 41172
db38cdfbc59e
child 41175
372df64f6b1a
--- a/meson.build	Mon Nov 15 04:03:01 2021 -0600
+++ b/meson.build	Mon Nov 15 04:03:44 2021 -0600
@@ -213,21 +213,13 @@
 math = compiler.find_library('m', required: false)
 
 # before gettexting, in case iconv matters
+
 IOKIT = []
 if host_machine.system() == 'darwin'
-	if compiler.has_header('CoreFoundation/CoreFoundation.h')
-		if compiler.has_header('IOKit/IOKitLib.h')
-			conf.set('HAVE_IOKIT', true)
-			IOKIT = dependency('appleframeworks',
-			                   modules : ['IOKit', 'CoreFoundation'])
-		endif
-	endif
+	IOKIT = dependency('appleframeworks',
+	                   modules : ['IOKit', 'CoreFoundation'])
 
-	if run_command('test', '-d', '/sw').returncode() == 0
-		# FIXME: Not done...
-		#CPPFLAGS="$CPPFLAGS -I/sw/include"
-		#LDFLAGS="$LDFLAGS -L/sw/lib"
-	endif
+	conf.set('HAVE_IOKIT', true)
 endif
 
 # #######################################################################

mercurial