comparison configure.ac @ 1111:fa5f71d4aa04

console backend
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 08 Dec 2010 18:59:44 +0800
parents 1b3e295f3acb
children 17cbb862a8c6
comparison
equal deleted inserted replaced
1110:851a062368bd 1111:fa5f71d4aa04
81 AC_ARG_WITH([backend], 81 AC_ARG_WITH([backend],
82 [AS_HELP_STRING([--with-backend=FOO],[Use FOO as display backend (default is 'X')])], 82 [AS_HELP_STRING([--with-backend=FOO],[Use FOO as display backend (default is 'X')])],
83 [case "${withval}" in 83 [case "${withval}" in
84 ('X') backend='X'; default_graphic_engine="cairo" ;; 84 ('X') backend='X'; default_graphic_engine="cairo" ;;
85 ('dfb') backend='dfb'; default_graphic_engine="dfb" ;; 85 ('dfb') backend='dfb'; default_graphic_engine="dfb" ;;
86 ('console') backend='console'; default_graphic_engine="openvg" ;;
86 ('no') backend='none'; default_graphic_engine="cairo" ;; 87 ('no') backend='none'; default_graphic_engine="cairo" ;;
87 (*) AC_MSG_ERROR([bad value ${withval} for --with-backend]) ;; 88 (*) AC_MSG_ERROR([bad value ${withval} for --with-backend]) ;;
88 esac],[backend='X'; default_graphic_engine="cairo"]) 89 esac],[backend='X'; default_graphic_engine="cairo"])
89 90
90 AC_ARG_WITH([graphic-engine], 91 AC_ARG_WITH([graphic-engine],
123 124
124 # Validate options 125 # Validate options
125 [case "${backend}-${graphic_engine}-${image_loader}" in 126 [case "${backend}-${graphic_engine}-${image_loader}" in
126 X-cairo-*|X-openvg-imlib2|X-openvg-dummy) ;; 127 X-cairo-*|X-openvg-imlib2|X-openvg-dummy) ;;
127 dfb-cairo-*) ;; 128 dfb-cairo-*) ;;
129 console-openvg-imlib2) ;;
128 none-*-*) ;; 130 none-*-*) ;;
129 *)] AC_MSG_ERROR([The combination of --with-backend=${backend}, --with-graphic-engine=${graphic_engine} and --with-image-loader=${image_loader} is invalid]) [;; 131 *)] AC_MSG_ERROR([The combination of --with-backend=${backend}, --with-graphic-engine=${graphic_engine} and --with-image-loader=${image_loader} is invalid]) [;;
130 esac] 132 esac]
131 133
132 [if [ x"${graphic_engine}" = x"skia" ]; then ] 134 [if [ x"${graphic_engine}" = x"skia" ]; then ]
181 AM_CONDITIONAL([DFB_BACKEND], 183 AM_CONDITIONAL([DFB_BACKEND],
182 [test x$backend = x'dfb' -a x"${graphic_engine}" = x"cairo"]) 184 [test x$backend = x'dfb' -a x"${graphic_engine}" = x"cairo"])
183 185
184 [if [ x"${backend}" = x'dfb' -a x"${graphic_engine}" = x"cairo" ]; then] 186 [if [ x"${backend}" = x'dfb' -a x"${graphic_engine}" = x"cairo" ]; then]
185 AC_DEFINE([DFB_BACKEND]) 187 AC_DEFINE([DFB_BACKEND])
188 [fi]
189
190 AM_CONDITIONAL([CONSOLE_BACKEND],
191 [test x$backend = x'console' -a x"${graphic_engine}" = x"openvg"])
192
193 [if [ x"${backend}" = x'console' -a x"${graphic_engine}" = x"openvg" ]; then]
194 AC_DEFINE([CONSOLE_BACKEND])
186 [fi] 195 [fi]
187 196
188 AM_CONDITIONAL([CAIRO_IMG_LOADER], 197 AM_CONDITIONAL([CAIRO_IMG_LOADER],
189 [test x"${image_loader}" = x"cairo"]) 198 [test x"${image_loader}" = x"cairo"])
190 199
260 AH_TEMPLATE([CAIRO_IMG_LOADER], [Enable Cairo Image Loader]) 269 AH_TEMPLATE([CAIRO_IMG_LOADER], [Enable Cairo Image Loader])
261 AH_TEMPLATE([IMLIB2_IMG_LOADER], [Enable Imlib2 Image Loader]) 270 AH_TEMPLATE([IMLIB2_IMG_LOADER], [Enable Imlib2 Image Loader])
262 AH_TEMPLATE([DUMMY_IMG_LOADER], [Enable Dummy Image Loader]) 271 AH_TEMPLATE([DUMMY_IMG_LOADER], [Enable Dummy Image Loader])
263 AH_TEMPLATE([X_BACKEND], [Enable X backend]) 272 AH_TEMPLATE([X_BACKEND], [Enable X backend])
264 AH_TEMPLATE([DFB_BACKEND], [Enable DirectFB backend]) 273 AH_TEMPLATE([DFB_BACKEND], [Enable DirectFB backend])
274 AH_TEMPLATE([CONSOLE_BACKEND], [Enable console backend])
265 AH_TEMPLATE([XSHM], [Enable XSHM]) 275 AH_TEMPLATE([XSHM], [Enable XSHM])
266 276
267 AC_OUTPUT 277 AC_OUTPUT