From 1bfd163cf57b64f05720cf1304c70abec6164981 Mon Sep 17 00:00:00 2001 From: bvarner Date: Fri, 14 Jul 2017 12:50:45 -0400 Subject: [PATCH] Better handling of SDL. --- BasiliskII/src/Unix/configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 83aa4a85..a1476761 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -226,12 +226,13 @@ if [[ "x$WANT_SDL" = "xyes" ]]; then ac_cv_framework_SDL=no fi if [[ "x$ac_cv_framework_SDL" = "xno" ]]; then - PKG_CHECK_MODULES([sdl], [sdl >= 1.2], [], [ + PKG_CHECK_MODULES([sdl], [sdl >= 1.2], [ + CFLAGS="$CFLAGS $sdl_CFLAGS" + CXXFLAGS="$CXXFLAGS $sdl_CFLAGS" + LIBS="$LIBS $sdl_LIBS" + ], [ WANT_SDL=no ]) - CFLAGS="$CFLAGS $SDL_CFLAGS" - CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" fi SDL_SUPPORT=`echo "$SDL_SUPPORT" | sed -e "s/^ //"` else