summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_engine.m434
1 files changed, 20 insertions, 14 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index b1f60c7..b968602 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -113,16 +113,19 @@ if test "x$gl_flavor_gles" = "xyes" ; then
113fi 113fi
114 114
115if test "x${have_dep}" = "xyes" ; then 115if test "x${have_dep}" = "xyes" ; then
116 if test "x$2" = "xyes" ; then 116 PKG_CHECK_MODULES([GL_EET], [eet >= 1.4.0], [have_dep="yes"], [have_dep="no"])
117 x_libs="${x_libs} -lX11 -lXext -lXrender" 117 if test "x${have_dep}" = "xyes" ; then
118 else 118 if test "x$2" = "xyes" ; then
119 x_dir=${x_dir:-/usr/X11R6} 119 x_libs="${x_libs} -lX11 -lXext -lXrender"
120 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} 120 else
121 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" 121 x_dir=${x_dir:-/usr/X11R6}
122 fi 122 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
123 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
124 fi
123 evas_engine_[]$1[]_cflags="-I/usr/include ${x_cflags}" 125 evas_engine_[]$1[]_cflags="-I/usr/include ${x_cflags}"
124 evas_engine_[]$1[]_libs="${x_libs} -lGL $gl_pt_lib" 126 evas_engine_[]$1[]_libs="${x_libs} -lGL $gl_pt_lib"
125 evas_engine_gl_common_libs="-lGL $gl_pt_lib" 127 evas_engine_gl_common_libs="-lGL $gl_pt_lib"
128 fi
126else 129else
127 if test "x$2" = "xyes" ; then 130 if test "x$2" = "xyes" ; then
128 x_libs="${x_libs} -lX11 -lXext -lXrender" 131 x_libs="${x_libs} -lX11 -lXext -lXrender"
@@ -147,13 +150,16 @@ else
147 if test "x${have_egl}" = "xyes" ; then 150 if test "x${have_egl}" = "xyes" ; then
148 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib) 151 AC_CHECK_LIB(GLESv2, glTexImage2D, [have_glesv2="yes"], , -lEGL ${x_libs} -lm $gl_pt_lib)
149 if test "x${have_glesv2}" = "xyes" ; then 152 if test "x${have_glesv2}" = "xyes" ; then
150 evas_engine_[]$1[]_cflags="${x_cflags}" 153 PKG_CHECK_MODULES([GL_EET], [eet >= 1.4.0], [have_dep="yes"], [have_dep="no"])
151 evas_engine_[]$1[]_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" 154 if test "x${have_dep}" = "xyes" ; then
152 evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" 155 evas_engine_[]$1[]_cflags="${x_cflags}"
153 have_dep="yes" 156 evas_engine_[]$1[]_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
154 gl_flavor_gles="no" 157 evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib"
155 AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support]) 158 have_dep="yes"
156 gles_variety_sgx="yes" 159 gl_flavor_gles="no"
160 AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
161 gles_variety_sgx="yes"
162 fi
157 fi 163 fi
158 fi 164 fi
159fi 165fi