aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/evas/m4/evas_check_engine.m473
1 files changed, 73 insertions, 0 deletions
diff --git a/libraries/evas/m4/evas_check_engine.m4 b/libraries/evas/m4/evas_check_engine.m4
index 5294100..4fc13a9 100644
--- a/libraries/evas/m4/evas_check_engine.m4
+++ b/libraries/evas/m4/evas_check_engine.m4
@@ -873,6 +873,79 @@ fi
873 873
874]) 874])
875 875
876
877dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
878
879AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM],
880[
881
882have_dep="yes"
883evas_engine_[]$1[]_cflags=""
884evas_engine_[]$1[]_libs=""
885
886AC_SUBST([evas_engine_$1_cflags])
887AC_SUBST([evas_engine_$1_libs])
888
889if test "x${have_dep}" = "xyes" ; then
890 m4_default([$4], [:])
891else
892 m4_default([$5], [:])
893fi
894
895])
896
897
898dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
899
900AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL],
901[
902
903requirement=""
904have_dep="no"
905evas_engine_[]$1[]_cflags=""
906evas_engine_[]$1[]_libs=""
907
908PKG_CHECK_MODULES([WAYLAND_EGL],
909 [egl >= 7.10 glesv2 gl wayland-client wayland-egl],
910 [
911 have_dep="yes"
912 requirement="egl >= 7.10 glesv2 gl wayland-client wayland-egl"
913 evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}"
914 evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS}"
915 ],[
916 have_dep="no"
917 ]
918)
919
920if test "x${have_dep}" = "xyes" ; then
921 PKG_CHECK_MODULES([GL_EET], [eet >= 1.5.0], [have_dep="yes"], [have_dep="no"])
922 AC_CHECK_HEADER([GLES2/gl2.h],
923 [have_egl="yes"],
924 [have_egl="no"],
925 [
926 ])
927 if test "x${have_egl}" = "xyes" ; then
928 evas_engine_[]$1[]_cflags="${WAYLAND_EGL_CFLAGS}"
929 evas_engine_[]$1[]_libs="${WAYLAND_EGL_LIBS} -lGL -lGLESv2 -lEGL"
930 fi
931fi
932
933AC_SUBST([evas_engine_$1_cflags])
934AC_SUBST([evas_engine_$1_libs])
935
936if test "x$3" = "xstatic" ; then
937 requirement_evas="${requirement} ${requirement_evas}"
938fi
939
940if test "x${have_dep}" = "xyes" ; then
941 m4_default([$4], [:])
942else
943 m4_default([$5], [:])
944fi
945
946])
947
948
876dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description) 949dnl use: EVAS_CHECK_ENGINE(engine, want_engine, simple, description)
877 950
878 951