From 4b4d7812baf84ed949197c2a1f17aeb33dfe6427 Mon Sep 17 00:00:00 2001 From: yabause Date: Fri, 5 May 2006 10:18:16 +0000 Subject: [PATCH] Some mac os x support... at least now it's not segfaulting anymore... but it gives black screen. --- desmume/configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/desmume/configure.ac b/desmume/configure.ac index 24e95483c..974983162 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -17,6 +17,19 @@ AC_C_BIGENDIAN AC_PATH_PROGS(HAVE_LIBSDL, [sdl-config sdl11-config]) case $target in + *darwin*) + if test x$HAVE_LIBSDL = x ; then + AC_MSG_ERROR([You need to install SDL]) + else + SDL_CFLAGS=`$HAVE_LIBSDL --cflags` + SDL_LIBS=`$HAVE_LIBSDL --libs` + fi + AC_SUBST(SDL_CFLAGS) + AC_SUBST(SDL_LIBS) + + UI_DIR="cli" + AC_SUBST([UI_DIR]) + ;; *linux*) AC_CHECK_TOOL(HAVE_PKG, pkg-config)