mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-27 15:02:04 +00:00
Add support for enabling build with GTK3
Add a arg to configure to switch from GTK2 (default) to GTK3 (optional) build for QEMU. ./configure --with-gtkabi=3.0 will choose GTK3, while ./configure --with-gtkabi=2.0 will choose GTK2 (and remains the current default) Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1361805646-6425-12-git-send-email-berrange@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0d20664018
commit
528de90ab7
25
configure
vendored
25
configure
vendored
@ -227,6 +227,7 @@ seccomp=""
|
|||||||
glusterfs=""
|
glusterfs=""
|
||||||
virtio_blk_data_plane=""
|
virtio_blk_data_plane=""
|
||||||
gtk=""
|
gtk=""
|
||||||
|
gtkabi="2.0"
|
||||||
|
|
||||||
# parse CC options first
|
# parse CC options first
|
||||||
for opt do
|
for opt do
|
||||||
@ -902,6 +903,8 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--enable-gtk) gtk="yes"
|
--enable-gtk) gtk="yes"
|
||||||
;;
|
;;
|
||||||
|
--with-gtkabi=*) gtkabi="$optarg"
|
||||||
|
;;
|
||||||
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1644,12 +1647,22 @@ fi
|
|||||||
# GTK probe
|
# GTK probe
|
||||||
|
|
||||||
if test "$gtk" != "no"; then
|
if test "$gtk" != "no"; then
|
||||||
if $pkg_config --exists 'gtk+-2.0 >= 2.18.0' && \
|
gtkpackage="gtk+-$gtkabi"
|
||||||
$pkg_config --exists 'vte >= 0.24.0'; then
|
if test "$gtkabi" = "3.0" ; then
|
||||||
gtk_cflags=`$pkg_config --cflags gtk+-2.0 2>/dev/null`
|
gtkversion="3.0.0"
|
||||||
gtk_libs=`$pkg_config --libs gtk+-2.0 2>/dev/null`
|
vtepackage="vte-2.90"
|
||||||
vte_cflags=`$pkg_config --cflags vte 2>/dev/null`
|
vteversion="0.32.0"
|
||||||
vte_libs=`$pkg_config --libs vte 2>/dev/null`
|
else
|
||||||
|
gtkversion="2.18.0"
|
||||||
|
vtepackage="vte"
|
||||||
|
vteversion="0.24.0"
|
||||||
|
fi
|
||||||
|
if $pkg_config --exists "$gtkpackage >= $gtkversion" && \
|
||||||
|
$pkg_config --exists "$vtepackage >= $vteversion"; then
|
||||||
|
gtk_cflags=`$pkg_config --cflags $gtkpackage 2>/dev/null`
|
||||||
|
gtk_libs=`$pkg_config --libs $gtkpackage 2>/dev/null`
|
||||||
|
vte_cflags=`$pkg_config --cflags $vtepackage 2>/dev/null`
|
||||||
|
vte_libs=`$pkg_config --libs $vtepackage 2>/dev/null`
|
||||||
libs_softmmu="$gtk_libs $vte_libs $libs_softmmu"
|
libs_softmmu="$gtk_libs $vte_libs $libs_softmmu"
|
||||||
gtk="yes"
|
gtk="yes"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user