diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake index 96a84dc29fd96c4ac41e958022b4be883f8584e3..bb9b7f1b229663340c9883037423f7d77ec7ef90 100644 --- a/src/xpdev/Common.gmake +++ b/src/xpdev/Common.gmake @@ -71,7 +71,11 @@ endif # Find SDL headers! ifndef WITHOUT_SDL - ifndef SDL_CONFIG + ifdef SDL_CONFIG + ifeq ($(shell ${SDL_CONFIG} --cflags > /dev/null 2>&1 && echo YES),YES) + WITH_SDL := 1 + endif + else ifeq ($(os),darwin) ifeq ($(shell if [ -d /Library/Frameworks/SDL.framework ] ; then echo YES ; fi),YES) WITH_SDL := 1