From: kakaroto Date: Fri, 9 Sep 2011 02:56:03 +0000 (+0000) Subject: Ecore: If pkg-config doesn't find SDL, then try to use sdl-config X-Git-Tag: 2.0_alpha~155^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=303d0e22bc11954c670bf85ed9fa9c9c7b1f3128;p=framework%2Fuifw%2Fecore.git Ecore: If pkg-config doesn't find SDL, then try to use sdl-config git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63305 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index 50e2062..3780bf2 100644 --- a/configure.ac +++ b/configure.ac @@ -526,6 +526,25 @@ fi have_sdl="no" PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"]) +if test "x${have_sdl}" != "xyes" ; then + SDL_CONFIG="sdl-config" + AC_ARG_WITH([sdl-config], + [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])], + [ + SDL_CONFIG=$withval + AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config]) + ]) + + AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH]) + + if test -n "$SDL_CONFIG" ; then + SDL_CFLAGS=`$SDL_CONFIG --cflags` + SDL_LIBS=`$SDL_CONFIG --libs` + AC_SUBST(SDL_CFLAGS) + AC_SUBST(SDL_LIBS) + have_sdl="yes" + fi +fi if test "x${have_sdl}" = "xyes" ; then PKG_CHECK_EXISTS([sdl >= 1.3.0],