From 1d295fbb36d176ae50d09b374535504a1761e681 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 26 Jan 2016 05:35:16 +0000 Subject: [PATCH] OS X: check for SDL framework before SDL library --- SConscript | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/SConscript b/SConscript index fcfe2f1b5..b93ea8da1 100644 --- a/SConscript +++ b/SConscript @@ -238,13 +238,11 @@ def findLibs(env, conf): if not GetOption('renderer'): #Look for SDL runSdlConfig = platform == "Linux" or compilePlatform == "Linux" - if not conf.CheckLib("SDL"): - if platform == "Darwin": - if not conf.CheckFramework("SDL"): - FatalError("SDL framework not found or not installed") - runSdlConfig = False - else: - FatalError("SDL development library not found or not installed") + if platform == "Darwin" and conf.CheckFramework("SDL"): + runSdlConfig = False + elif not conf.CheckLib("SDL"): + FatalError("SDL development library not found or not installed") + if runSdlConfig: try: env.ParseConfig('sdl-config --cflags')