summaryrefslogtreecommitdiff
path: root/legacy/ecore/configure.ac
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-09 02:56:03 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-09 02:56:03 +0000
commitb8d3fceb58ecfcf91db08ebf68cc371e6b1b22d1 (patch)
treee81f0f454d1ded6f96cf34167a4c17271ac83505 /legacy/ecore/configure.ac
parent88e5226da4b108d2b2abdfa43050b32fb4bec9f8 (diff)
Ecore: If pkg-config doesn't find SDL, then try to use sdl-config
SVN revision: 63305
Diffstat (limited to '')
-rw-r--r--legacy/ecore/configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac
index 50e2062451..3780bf29f3 100644
--- a/legacy/ecore/configure.ac
+++ b/legacy/ecore/configure.ac
@@ -526,6 +526,25 @@ fi
526 526
527have_sdl="no" 527have_sdl="no"
528PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"]) 528PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
529if test "x${have_sdl}" != "xyes" ; then
530 SDL_CONFIG="sdl-config"
531 AC_ARG_WITH([sdl-config],
532 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
533 [
534 SDL_CONFIG=$withval
535 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
536 ])
537
538 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
539
540 if test -n "$SDL_CONFIG" ; then
541 SDL_CFLAGS=`$SDL_CONFIG --cflags`
542 SDL_LIBS=`$SDL_CONFIG --libs`
543 AC_SUBST(SDL_CFLAGS)
544 AC_SUBST(SDL_LIBS)
545 have_sdl="yes"
546 fi
547fi
529 548
530if test "x${have_sdl}" = "xyes" ; then 549if test "x${have_sdl}" = "xyes" ; then
531 PKG_CHECK_EXISTS([sdl >= 1.3.0], 550 PKG_CHECK_EXISTS([sdl >= 1.3.0],