提交 02d34f62 编写于 作者: C Cole Robinson 提交者: Gerd Hoffmann

configure: add echo_version helper

Simplifies printing library versions, dependent on if the library
was even found
Signed-off-by: NCole Robinson <crobinso@redhat.com>
Message-id: 3c9ab16123e06bb4109771ef6ee8acd82d449ba0.1462557436.git.crobinso@redhat.com
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 e07047cf
...@@ -4730,6 +4730,12 @@ EOF ...@@ -4730,6 +4730,12 @@ EOF
fi fi
fi fi
echo_version() {
if test "$1" = "yes" ; then
echo "($2)"
fi
}
# prepend pixman and ftd flags after all config tests are done # prepend pixman and ftd flags after all config tests are done
QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS" QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
libs_softmmu="$pixman_libs $libs_softmmu" libs_softmmu="$pixman_libs $libs_softmmu"
...@@ -4787,11 +4793,7 @@ echo "GNUTLS hash $gnutls_hash" ...@@ -4787,11 +4793,7 @@ echo "GNUTLS hash $gnutls_hash"
echo "GNUTLS rnd $gnutls_rnd" echo "GNUTLS rnd $gnutls_rnd"
echo "libgcrypt $gcrypt" echo "libgcrypt $gcrypt"
echo "libgcrypt kdf $gcrypt_kdf" echo "libgcrypt kdf $gcrypt_kdf"
if test "$nettle" = "yes"; then echo "nettle $nettle `echo_version $nettle $nettle_version`"
echo "nettle $nettle ($nettle_version)"
else
echo "nettle $nettle"
fi
echo "nettle kdf $nettle_kdf" echo "nettle kdf $nettle_kdf"
echo "libtasn1 $tasn1" echo "libtasn1 $tasn1"
echo "VTE support $vte" echo "VTE support $vte"
...@@ -4843,11 +4845,7 @@ echo "Trace backends $trace_backends" ...@@ -4843,11 +4845,7 @@ echo "Trace backends $trace_backends"
if have_backend "simple"; then if have_backend "simple"; then
echo "Trace output file $trace_file-<pid>" echo "Trace output file $trace_file-<pid>"
fi fi
if test "$spice" = "yes"; then echo "spice support $spice `echo_version $spice $spice_protocol_version/$spice_server_version`"
echo "spice support $spice ($spice_protocol_version/$spice_server_version)"
else
echo "spice support $spice"
fi
echo "rbd support $rbd" echo "rbd support $rbd"
echo "xfsctl support $xfs" echo "xfsctl support $xfs"
echo "smartcard support $smartcard" echo "smartcard support $smartcard"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册