# HG changeset patch # User Thinker K.F. Li # Date 1291209156 -28800 # Node ID ed9ca123d8dbd90a161e01080213e02292fd0e6c # Parent d09f603438d8ef42b6a34a7ba7896bead413e43b Fix configure.ac to make X and OpenVG working together diff -r d09f603438d8 -r ed9ca123d8db configure.ac --- a/configure.ac Wed Dec 01 20:01:49 2010 +0800 +++ b/configure.ac Wed Dec 01 21:12:36 2010 +0800 @@ -121,6 +121,15 @@ esac], [xshm=true]) [fi] +# Validate options +[case "${backend}-${graphic_engine}-${image_loader}" in + (X-cairo-*|X-openvg-imlib2) + (dfb-cairo-*) + (none-*-*) + ;; + (*)] AC_MSG_ERROR([The combination of --with-backend=${backend}, --with-graphic-engine=${graphic_engine} and --with-image-loader=${image_loader} is invalid]) [;; +esac] + [if [ x"${graphic_engine}" = x"skia" ]; then ] AC_DEFINE([SKIA_GRAPH_ENGINE]) [elif [ x"${graphic_engine}" = x"openvg" ]; then ] @@ -164,9 +173,9 @@ # Define AM and AC variable for display backend AM_CONDITIONAL([X_BACKEND], - [test x$backend = x'X' -a x"${graphic_engine}" = x"cairo"]) + [test x$backend = x'X']) -[if [ x"${backend}" = x'X' -a x"${graphic_engine}" = x"cairo" ]; then] +[if [ x"${backend}" = x'X' ]; then] AC_DEFINE([X_BACKEND]) [fi]