summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2007-12-17 01:41:09 +0000
committerCarsten Haitzler <raster@rasterman.com>2007-12-17 01:41:09 +0000
commit06456e7fa3d150e53662f8160c535205856ec437 (patch)
tree79f032a54628fc98e09163d6f8e2af0c86fef0c5 /configure.in
parent5ad5c12186021b9c2b82037a80079ba1d9691e4e (diff)
add the ability to enable and disable specific engines
SVN revision: 33166
Diffstat (limited to '')
-rw-r--r--configure.in256
1 files changed, 179 insertions, 77 deletions
diff --git a/configure.in b/configure.in
index 67b5d42..cecaf52 100644
--- a/configure.in
+++ b/configure.in
@@ -46,111 +46,209 @@ AC_SUBST(PACKAGE_DATA_DIR)
46 46
47PKG_CHECK_MODULES([EVAS], evas) 47PKG_CHECK_MODULES([EVAS], evas)
48 48
49dnl OpenGL GLEW 49#######################################
50PKG_CHECK_EXISTS(evas-opengl-glew, 50## Simple X11 build/link
51 [ 51
52 AC_DEFINE(HAVE_EVAS_OPENGL_GLEW, 1, [Evas GL Glew Engine Support]) 52AC_ARG_ENABLE(simple-x11,
53 have_opengl_glew="yes" 53 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
54 glew_libs="-lglew32 -lgdi32" 54 [ want_evas_simple_x11=$enableval ]
55 ], 55)
56 [ have_opengl_glew="no" ] 56
57### OpenGL GLEW
58want_opengl_glew="yes"
59AC_MSG_CHECKING(whether OpenGL GLEW)
60AC_ARG_ENABLE(opengl-glew,
61 AC_HELP_STRING([--enable-opengl-glew], [enable OpenGL GLEW engine]),
62 [ want_opengl_glew=$enableval ]
57) 63)
64AC_MSG_RESULT($want_opengl_glew)
65if test "x$want_opengl_glew" = "xyes"; then
66 PKG_CHECK_EXISTS(evas-opengl-glew,
67 [
68 AC_DEFINE(HAVE_EVAS_OPENGL_GLEW, 1, [Evas GL Glew Engine Support])
69 have_opengl_glew="yes"
70 glew_libs="-lglew32 -lgdi32"
71 ],
72 [ have_opengl_glew="no" ]
73 )
74fi
58AM_CONDITIONAL(BUILD_OPENGL_GLEW, test "x$have_opengl_glew" = "xyes") 75AM_CONDITIONAL(BUILD_OPENGL_GLEW, test "x$have_opengl_glew" = "xyes")
59 76
60dnl OpenGL X11 77### OpenGL X11
61PKG_CHECK_EXISTS(evas-opengl-x11, 78want_opengl_x11="yes"
62 [ 79AC_MSG_CHECKING(whether OpenGL X11)
63 AC_DEFINE(HAVE_EVAS_OPENGL_X11, 1, [Evas GL X11 Engine Support]) 80AC_ARG_ENABLE(opengl-x11,
64 have_opengl_x11="yes" 81 AC_HELP_STRING([--enable-opengl-x11], [enable OpenGL X11 engine]),
65 ], 82 [ want_opengl_x11=$enableval ]
66 [ have_opengl_x11="no" ]
67) 83)
84AC_MSG_RESULT($want_opengl_x11)
85if test "x$want_opengl_x11" = "xyes"; then
86 PKG_CHECK_EXISTS(evas-opengl-x11,
87 [
88 AC_DEFINE(HAVE_EVAS_OPENGL_X11, 1, [Evas GL X11 Engine Support])
89 have_opengl_x11="yes"
90 ],
91 [ have_opengl_x11="no" ]
92 )
93fi
68AM_CONDITIONAL(BUILD_OPENGL_X11, test "x$have_opengl_x11" = "xyes") 94AM_CONDITIONAL(BUILD_OPENGL_X11, test "x$have_opengl_x11" = "xyes")
69 95
70dnl Software X11 96### Software X11
71PKG_CHECK_EXISTS(evas-software-x11, 97want_software_x11="yes"
72 [ 98AC_MSG_CHECKING(whether Software X11)
73 AC_DEFINE(HAVE_EVAS_SOFTWARE_X11, 1, [Evas Software X11 Engine Support]) 99AC_ARG_ENABLE(software-x11,
74 have_software_x11="yes" 100 AC_HELP_STRING([--enable-software-x11], [enable Software X11 engine]),
75 ], 101 [ want_software_x11=$enableval ]
76 [ have_software_x11="no" ]
77) 102)
103AC_MSG_RESULT($want_software_x11)
104if test "x$want_software_x11" = "xyes"; then
105 PKG_CHECK_EXISTS(evas-software-x11,
106 [
107 AC_DEFINE(HAVE_EVAS_SOFTWARE_X11, 1, [Evas Software X11 Engine Support])
108 have_software_x11="yes"
109 ],
110 [ have_software_x11="no" ]
111 )
112fi
78AM_CONDITIONAL(BUILD_SOFTWARE_X11, test "x$have_software_x11" = "xyes") 113AM_CONDITIONAL(BUILD_SOFTWARE_X11, test "x$have_software_x11" = "xyes")
79 114
80dnl XRender X11 115### XRender X11
81PKG_CHECK_EXISTS(evas-xrender-x11, 116want_xrender_x11="yes"
82 [ 117AC_MSG_CHECKING(whether XRender X11)
83 AC_DEFINE(HAVE_EVAS_XRENDER_X11, 1, [Evas XRender X11 Engine Support]) 118AC_ARG_ENABLE(xrender-x11,
84 have_xrender_x11="yes" 119 AC_HELP_STRING([--enable-xrender-x11], [enable XRender X11 engine]),
85 ], 120 [ want_xrender_x11=$enableval ]
86 [ have_xrender_x11="no" ]
87) 121)
122AC_MSG_RESULT($want_xrender_x11)
123if test "x$want_xrender_x11" = "xyes"; then
124 PKG_CHECK_EXISTS(evas-xrender-x11,
125 [
126 AC_DEFINE(HAVE_EVAS_XRENDER_X11, 1, [Evas XRender X11 Engine Support])
127 have_xrender_x11="yes"
128 ],
129 [ have_xrender_x11="no" ]
130 )
131fi
88AM_CONDITIONAL(BUILD_XRENDER_X11, test "x$have_xrender_x11" = "xyes") 132AM_CONDITIONAL(BUILD_XRENDER_X11, test "x$have_xrender_x11" = "xyes")
89 133
90dnl Software 16bit X11 134### Software 16bit X11
91PKG_CHECK_EXISTS(evas-software-16-x11, 135want_software_16_x11="yes"
92 [ 136AC_MSG_CHECKING(whether Software 16bit X11)
93 AC_DEFINE(HAVE_EVAS_SOFTWARE_16_X11, 1, [Evas Software 16bit X11 Engine Support]) 137AC_ARG_ENABLE(software-16-x11,
94 have_software_16_x11="yes" 138 AC_HELP_STRING([--enable-software-16-x11], [enable Software 16bit X11 engine]),
95 ], 139 [ want_software_16_x11=$enableval ]
96 [ have_software_16_x11="no" ]
97) 140)
141AC_MSG_RESULT($want_software_16_x11)
142if test "x$want_software_16_x11" = "xyes"; then
143 PKG_CHECK_EXISTS(evas-software-16-x11,
144 [
145 AC_DEFINE(HAVE_EVAS_SOFTWARE_16_X11, 1, [Evas Software 16bit X11 Engine Support])
146 have_software_16_x11="yes"
147 ],
148 [ have_software_16_x11="no" ]
149 )
150fi
98AM_CONDITIONAL(BUILD_SOFTWARE_16_X11, test "x$have_software_16_x11" = "xyes") 151AM_CONDITIONAL(BUILD_SOFTWARE_16_X11, test "x$have_software_16_x11" = "xyes")
99 152
100dnl FB 153### FB
101PKG_CHECK_EXISTS(evas-framebuffer, 154want_fb="yes"
102 [ 155AC_MSG_CHECKING(whether Framebuffer)
103 AC_DEFINE(HAVE_EVAS_FB, 1, [Evas FB Engine Support]) 156AC_ARG_ENABLE(fb,
104 have_fb="yes" 157 AC_HELP_STRING([--enable-fb], [enable Framebuffer engine]),
105 ], 158 [ want_fb=$enableval ]
106 [ have_fb="no" ]
107) 159)
160AC_MSG_RESULT($want_fb)
161if test "x$want_fb" = "xyes"; then
162 PKG_CHECK_EXISTS(evas-framebuffer,
163 [
164 AC_DEFINE(HAVE_EVAS_FB, 1, [Evas FB Engine Support])
165 have_fb="yes"
166 ],
167 [ have_fb="no" ]
168 )
169fi
108AM_CONDITIONAL(BUILD_FB, test "x$have_fb" = "xyes") 170AM_CONDITIONAL(BUILD_FB, test "x$have_fb" = "xyes")
109 171
110# TODO: Check availability of libs 172# TODO: Check availability of libs
111dnl DirectDraw 173### DirectDraw
112PKG_CHECK_EXISTS(evas-software-ddraw, 174want_software_ddraw="yes"
113 [ 175AC_MSG_CHECKING(whether Software DirectDraw)
114 AC_DEFINE(HAVE_EVAS_SOFTWARE_DDRAW, 1, [Evas Software DirectDraw Engine Support]) 176AC_ARG_ENABLE(software-ddraw,
115 have_software_ddraw="yes" 177 AC_HELP_STRING([--enable-software-ddraw], [enable Software DirectDraw engine]),
116 ddraw_libs="-lddraw -ldxguid" 178 [ want_software_ddraw=$enableval ]
117 ],
118 [ have_software_ddraw="no" ]
119) 179)
180AC_MSG_RESULT($want_software_ddraw)
181if test "x$want_software_ddraw" = "xyes"; then
182 PKG_CHECK_EXISTS(evas-software-ddraw,
183 [
184 AC_DEFINE(HAVE_EVAS_SOFTWARE_DDRAW, 1, [Evas Software DirectDraw Engine Support])
185 have_software_ddraw="yes"
186 ddraw_libs="-lddraw -ldxguid"
187 ],
188 [ have_software_ddraw="no" ]
189 )
190fi
120AM_CONDITIONAL(BUILD_SOFTWARE_DDRAW, test "x$have_software_ddraw" = "xyes") 191AM_CONDITIONAL(BUILD_SOFTWARE_DDRAW, test "x$have_software_ddraw" = "xyes")
121 192
122# TODO: Check availability of libs 193# TODO: Check availability of libs
123dnl 16bit DirectDraw 194### 16bit DirectDraw
124PKG_CHECK_EXISTS(evas-software-16-ddraw, 195want_software_16_ddraw="yes"
125 [ 196AC_MSG_CHECKING(whether Software 16bit DirectDraw)
126 AC_DEFINE(HAVE_EVAS_SOFTWARE_16_DDRAW, 1, [Evas Software 16bit DirectDraw Engine Support]) 197AC_ARG_ENABLE(software-16-ddraw,
127 have_software_16_ddraw="yes" 198 AC_HELP_STRING([--enable-software-16-ddraw], [enable Software 16bit DirectDraw engine]),
128 ddraw_libs="-lddraw -ldxguid" 199 [ want_software_16_ddraw=$enableval ]
129 ],
130 [ have_software_16_ddraw="no" ]
131) 200)
201AC_MSG_RESULT($want_software_16_ddraw)
202if test "x$want_software_ddraw" = "xyes"; then
203 PKG_CHECK_EXISTS(evas-software-16-ddraw,
204 [
205 AC_DEFINE(HAVE_EVAS_SOFTWARE_16_DDRAW, 1, [Evas Software 16bit DirectDraw Engine Support])
206 have_software_16_ddraw="yes"
207 ddraw_libs="-lddraw -ldxguid"
208 ],
209 [ have_software_16_ddraw="no" ]
210 )
211fi
132AM_CONDITIONAL(BUILD_SOFTWARE_16_DDRAW, test "x$have_software_16_ddraw" = "xyes") 212AM_CONDITIONAL(BUILD_SOFTWARE_16_DDRAW, test "x$have_software_16_ddraw" = "xyes")
133 213
134# TODO: Check availability of libs 214# TODO: Check availability of libs
135dnl Direct3D 215### Direct3D
136PKG_CHECK_EXISTS(evas-direct3d, 216want_direct3d="yes"
137 [ 217AC_MSG_CHECKING(whether Direct3D)
138 AC_DEFINE(HAVE_EVAS_DIRECT3D, 1, [Evas Direct3D Engine Support]) 218AC_ARG_ENABLE(direct3d,
139 have_direct3d="yes" 219 AC_HELP_STRING([--enable-direct3d], [enable Direct3D engine]),
140 d3d_libs="-ld3d9 -ld3dx9d" 220 [ want_direct3d=$enableval ]
141 ],
142 [ have_direct3d="no" ]
143) 221)
222AC_MSG_RESULT($want_direct3d)
223if test "x$want_direct3d" = "xyes"; then
224 PKG_CHECK_EXISTS(evas-direct3d,
225 [
226 AC_DEFINE(HAVE_EVAS_DIRECT3D, 1, [Evas Direct3D Engine Support])
227 have_direct3d="yes"
228 d3d_libs="-ld3d9 -ld3dx9d"
229 ],
230 [ have_direct3d="no" ]
231 )
232fi
144AM_CONDITIONAL(BUILD_DIRECT3D, test "x$have_direct3d" = "xyes") 233AM_CONDITIONAL(BUILD_DIRECT3D, test "x$have_direct3d" = "xyes")
145 234
146dnl Software SDL 235### Software SDL
147PKG_CHECK_EXISTS(evas-software-sdl, 236want_software_sdl="yes"
148 [ 237AC_MSG_CHECKING(whether Software SDL)
149 AC_DEFINE(HAVE_EVAS_SOFTWARE_SDL, 1, [Evas Software SDL Engine Support]) 238AC_ARG_ENABLE(software-sdl,
150 have_software_sdl="yes" 239 AC_HELP_STRING([--enable-software-sdl], [enable Software SDL engine]),
151 ], 240 [ want_software_sdl=$enableval ]
152 [ have_software_sdl="no" ]
153) 241)
242AC_MSG_RESULT($want_software_sdl)
243if test "x$want_software_sdl" = "xyes"; then
244 PKG_CHECK_EXISTS(evas-software-sdl,
245 [
246 AC_DEFINE(HAVE_EVAS_SOFTWARE_SDL, 1, [Evas Software SDL Engine Support])
247 have_software_sdl="yes"
248 ],
249 [ have_software_sdl="no" ]
250 )
251fi
154AM_CONDITIONAL(BUILD_SOFTWARE_SDL, test "x$have_software_sdl" = "xyes") 252AM_CONDITIONAL(BUILD_SOFTWARE_SDL, test "x$have_software_sdl" = "xyes")
155 253
156if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "x$have_xrender_x11" = "xyes" -o "x$have_opengl_x11" = "xyes"; then 254if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "x$have_xrender_x11" = "xyes" -o "x$have_opengl_x11" = "xyes"; then
@@ -158,9 +256,13 @@ if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "
158 AC_CHECK_HEADERS(X11/Xlib.h X11/Xutil.h, 256 AC_CHECK_HEADERS(X11/Xlib.h X11/Xutil.h,
159 [ have_x11="yes" ], 257 [ have_x11="yes" ],
160 [ have_x11="no" ]) 258 [ have_x11="no" ])
161 x_dir=${x_dir:-/usr/X11R6} 259 if test "x$want_evas_simple_x11" = "xyes"; then
162 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} 260 x_libs="${x_libs} -lX11 -lXext"
163 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" 261 else
262 x_dir=${x_dir:-/usr/X11R6}
263 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
264 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
265 fi
164fi 266fi
165AM_CONDITIONAL(BUILD_X11, test "x$have_x11" = "xyes") 267AM_CONDITIONAL(BUILD_X11, test "x$have_x11" = "xyes")
166 268