summaryrefslogtreecommitdiff
path: root/legacy/evas/m4/evas_check_engine.m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-08-03 08:26:02 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-08-03 08:26:02 +0000
commitfaf1a51fee1a4834f5c006085ce2188625c4d494 (patch)
tree586761a27555d33f1dd97a74af3e21a6271aba81 /legacy/evas/m4/evas_check_engine.m4
parente7f691a9f2aeeaf6bc8bd01c8749f68db71a578a (diff)
* evas: Fix ticket #143 from Vincent Torri.
http://trac.enlightenment.org/e/ticket/143 SVN revision: 41565
Diffstat (limited to '')
-rw-r--r--legacy/evas/m4/evas_check_engine.m444
1 files changed, 42 insertions, 2 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index a0609f818b..61fb067e21 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -34,6 +34,14 @@ AC_PATH_XTRA
34AC_CHECK_HEADER([X11/X.h], [have_dep="yes"]) 34AC_CHECK_HEADER([X11/X.h], [have_dep="yes"])
35 35
36if test "x${have_dep}" = "xyes" ; then 36if test "x${have_dep}" = "xyes" ; then
37 AC_CHECK_LIB([X11], [XCreateImage], [have_dep="yes"], [have_dep="no"])
38fi
39
40if test "x${have_dep}" = "xyes" ; then
41 AC_CHECK_LIB([Xext], [XShmCreateImage], [have_dep="yes"], [have_dep="no"])
42fi
43
44if test "x${have_dep}" = "xyes" ; then
37 if test "x$2" = "xyes" ; then 45 if test "x$2" = "xyes" ; then
38 x_libs="${x_libs} -lX11 -lXext" 46 x_libs="${x_libs} -lX11 -lXext"
39 else 47 else
@@ -72,6 +80,18 @@ AC_CHECK_HEADERS([X11/X.h X11/extensions/Xrender.h],
72 [have_dep="no"]) 80 [have_dep="no"])
73 81
74if test "x${have_dep}" = "xyes" ; then 82if test "x${have_dep}" = "xyes" ; then
83 AC_CHECK_LIB([X11], [XCreateImage], [have_dep="yes"], [have_dep="no"])
84fi
85
86if test "x${have_dep}" = "xyes" ; then
87 AC_CHECK_LIB([Xext], [XShmCreateImage], [have_dep="yes"], [have_dep="no"])
88fi
89
90if test "x${have_dep}" = "xyes" ; then
91 AC_CHECK_LIB([Xrender], [XRenderCreatePicture], [have_dep="yes"], [have_dep="no"])
92fi
93
94if test "x${have_dep}" = "xyes" ; then
75 if test "x$2" = "xyes" ; then 95 if test "x$2" = "xyes" ; then
76 x_libs="${x_libs} -lX11 -lXext" 96 x_libs="${x_libs} -lX11 -lXext"
77 else 97 else
@@ -105,17 +125,29 @@ evas_engine_[]$1[]_libs=""
105AC_PATH_X 125AC_PATH_X
106AC_PATH_XTRA 126AC_PATH_XTRA
107 127
108AC_CHECK_HEADERS([GL/gl.h GL/glu.h X11/X.h], 128AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h X11/X.h],
109 [have_dep="yes"], 129 [have_dep="yes"],
110 [have_dep="no"]) 130 [have_dep="no"])
111 131
112if test "x${have_dep}" = "xyes" ; then 132if test "x${have_dep}" = "xyes" ; then
133 AC_CHECK_LIB([X11], [XCreateColormap], [have_dep="yes"], [have_dep="no"])
134fi
135
136if test "x${have_dep}" = "xyes" ; then
137 AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"])
138fi
139
140if test "x${have_dep}" = "xyes" ; then
141 AC_CHECK_LIB([GLU], [gluNewTess], [have_dep="yes"], [have_dep="no"])
142fi
143
144if test "x${have_dep}" = "xyes" ; then
113 if test "x$2" = "xyes" ; then 145 if test "x$2" = "xyes" ; then
114 x_libs="${x_libs} -lX11 -lXext" 146 x_libs="${x_libs} -lX11 -lXext"
115 else 147 else
116 x_dir=${x_dir:-/usr/X11R6} 148 x_dir=${x_dir:-/usr/X11R6}
117 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} 149 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
118 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" 150 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11"
119 fi 151 fi
120 evas_engine_[]$1[]_cflags="-I/usr/include ${x_cflags}" 152 evas_engine_[]$1[]_cflags="-I/usr/include ${x_cflags}"
121 evas_engine_[]$1[]_libs="${x_libs} -lGL -lGLU -lpthread" 153 evas_engine_[]$1[]_libs="${x_libs} -lGL -lGLU -lpthread"
@@ -511,6 +543,14 @@ AC_PATH_XTRA
511AC_CHECK_HEADER([X11/X.h], [have_dep="yes"]) 543AC_CHECK_HEADER([X11/X.h], [have_dep="yes"])
512 544
513if test "x${have_dep}" = "xyes" ; then 545if test "x${have_dep}" = "xyes" ; then
546 AC_CHECK_LIB([X11], [XCreateImage], [have_dep="yes"], [have_dep="no"])
547fi
548
549if test "x${have_dep}" = "xyes" ; then
550 AC_CHECK_LIB([Xext], [XShmCreateImage], [have_dep="yes"], [have_dep="no"])
551fi
552
553if test "x${have_dep}" = "xyes" ; then
514 if test "x$2" = "xyes" ; then 554 if test "x$2" = "xyes" ; then
515 x_libs="${x_libs} -lX11 -lXext" 555 x_libs="${x_libs} -lX11 -lXext"
516 else 556 else