Skip to content

Commit

Permalink
configure: allow disabling pixman if not needed
Browse files Browse the repository at this point in the history
When we build neither any system emulation targets nor the tools there
is actually no need for pixman library.  In that case do not enforce
presence of that library on the system.

Reviewed-by: Andreas F=E4rber <afaerber@suse.de>
Signed-off-by: Robert Schiele <rschiele@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  • Loading branch information
schiele authored and Anthony Liguori committed Dec 23, 2012
1 parent 2915efb commit 74880fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 16 additions & 2 deletions configure
Expand Up @@ -656,6 +656,8 @@ for opt do
;;
--without-system-pixman) pixman="internal"
;;
--without-pixman) pixman="none"
;;
--disable-sdl) sdl="no"
;;
--enable-sdl) sdl="yes"
Expand Down Expand Up @@ -2130,13 +2132,25 @@ fi
# pixman support probe

if test "$pixman" = ""; then
if $pkg_config pixman-1 > /dev/null 2>&1; then
if test "$want_tools" = "no" -a "$softmmu" = "no"; then
pixman="none"
elif $pkg_config pixman-1 > /dev/null 2>&1; then
pixman="system"
else
pixman="internal"
fi
fi
if test "$pixman" = "system"; then
if test "$pixman" = "none"; then
if test "$want_tools" != "no" -o "$softmmu" != "no"; then
echo "ERROR: pixman disabled but system emulation or tools build"
echo " enabled. You can turn off pixman only if you also"
echo " disable all system emulation targets and the tools"
echo " build with '--disable-tools --disable-system'."
exit 1
fi
pixman_cflags=
pixman_libs=
elif test "$pixman" = "system"; then
pixman_cflags=`$pkg_config --cflags pixman-1 2>/dev/null`
pixman_libs=`$pkg_config --libs pixman-1 2>/dev/null`
else
Expand Down
2 changes: 2 additions & 0 deletions target-unicore32/helper.c
Expand Up @@ -13,7 +13,9 @@
#include "exec/gdbstub.h"
#include "helper.h"
#include "qemu/host-utils.h"
#ifndef CONFIG_USER_ONLY
#include "ui/console.h"
#endif

#undef DEBUG_UC32

Expand Down

0 comments on commit 74880fe

Please sign in to comment.