summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-07 06:53:28 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-07 06:53:28 +0000
commitefea89b471a9c9259e64732b196d9baa9b0ab265 (patch)
treee33b4b94a8d6dfb6298e76244025ec4420d8e2dc /legacy/evas/m4
parent47c39e976c12c67c61d42240e42899a06985c2eb (diff)
Evas: Allow independent static compilation of software_16_sdl engine
SVN revision: 63247
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_engine.m436
1 files changed, 36 insertions, 0 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index e884403..5d3c450 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -446,6 +446,42 @@ fi
446 446
447]) 447])
448 448
449
450dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
451
452AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_16_SDL],
453[
454
455requirement=""
456have_dep="no"
457evas_engine_[]$1[]_cflags=""
458evas_engine_[]$1[]_libs=""
459
460PKG_CHECK_MODULES([SDL],
461 [sdl >= 1.2.0],
462 [
463 have_dep="yes"
464 requirement="sdl"
465 evas_engine_[]$1[]_cflags="${SDL_CFLAGS}"
466 evas_engine_[]$1[]_libs="${SDL_LIBS}"
467 ]
468)
469
470AC_SUBST([evas_engine_$1_cflags])
471AC_SUBST([evas_engine_$1_libs])
472
473if test "x$3" = "xstatic" ; then
474 requirement_evas="${requirement} ${requirement_evas}"
475fi
476
477if test "x${have_dep}" = "xyes" ; then
478 m4_default([$4], [:])
479else
480 m4_default([$5], [:])
481fi
482
483])
484
449dnl use: EVAS_CHECK_ENGINE_DEP_GL_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 485dnl use: EVAS_CHECK_ENGINE_DEP_GL_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
450 486
451AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_SDL], 487AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_SDL],