summaryrefslogtreecommitdiff
path: root/legacy/evas/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2011-11-02 18:23:54 +0000
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2011-11-02 18:23:54 +0000
commitbdfeb1df1453bc5ae5fc7246ffd8dd10484c312c (patch)
tree90f34c5450cb3660087bbfcbceaa57de1c60859b /legacy/evas/m4/evas_check_engine.m4
parent8d3cd7339d88495948195fb1fd706ce3cf36409e (diff)
evas: Add gl_cocoa engine
SVN revision: 64653
Diffstat (limited to '')
-rw-r--r--legacy/evas/m4/evas_check_engine.m455
1 files changed, 53 insertions, 2 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index 5d3c450b4c..7330a3f066 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -328,8 +328,6 @@ fi
328]) 328])
329 329
330 330
331
332
333dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 331dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
334 332
335AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI], 333AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_GDI],
@@ -411,6 +409,59 @@ fi
411 409
412]) 410])
413 411
412
413dnl use: EVAS_CHECK_ENGINE_DEP_GL_COCOA(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
414
415AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_COCOA],
416[
417
418evas_engine_[]$1[]_cflags=""
419evas_engine_[]$1[]_libs=""
420
421AC_LANG_PUSH([Objective C])
422
423LIBS_save="$LIBS"
424LIBS="$LIBS -framework Cocoa"
425AC_LINK_IFELSE(
426 [AC_LANG_PROGRAM(
427 [[
428#include <Cocoa/Cocoa.h>
429 ]],
430 [[
431NSWindow *window;
432window = [[NSWindow alloc]
433 initWithContentRect:NSMakeRect(0, 0, 1, 1)
434 styleMask:(NSTitledWindowMask)
435 backing:NSBackingStoreBuffered
436 defer:NO
437 screen:nil
438 ];
439 ]])],
440 [
441 have_dep="yes"
442 evas_engine_[]$1[]_libs="-framework Cocoa"
443 ],
444 [have_dep="no"])
445LIBS="$LIBS_save"
446
447AC_LANG_POP([Objective C])
448
449if test "x${have_dep}" = "xyes" ; then
450 PKG_CHECK_MODULES([GL_EET], [eet >= 1.4.0], [have_dep="yes"], [have_dep="no"])
451fi
452
453AC_SUBST([evas_engine_$1_cflags])
454AC_SUBST([evas_engine_$1_libs])
455
456if test "x${have_dep}" = "xyes" ; then
457 m4_default([$4], [:])
458else
459 m4_default([$5], [:])
460fi
461
462])
463
464
414dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 465dnl use: EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
415 466
416AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL], 467AC_DEFUN([EVAS_CHECK_ENGINE_DEP_SOFTWARE_SDL],