configure: use pkg-config for obtaining xen version
commitc1cdd9d5beb052b072c1f57ea634e3c52e9dc17b
authorJuergen Gross <jgross@suse.com>
Mon, 27 Mar 2017 07:42:45 +0000 (27 09:42 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Apr 2017 19:41:23 +0000 (21 12:41 -0700)
tree6182d94f1ed46d101aac1c19e493a0d9e95257c5
parent14d015b6fcd0b94a1e0983f82fab3e144143a314
configure: use pkg-config for obtaining xen version

Instead of trying to guess the Xen version to use by compiling various
test programs first just ask the system via pkg-config. Only if it
can't return the version fall back to the test program scheme.

If configure is being called with dedicated flags for the Xen libraries
use those instead of the pkg-config output. This will avoid breaking
an in-tree Xen build of an old Xen version while a new Xen version is
installed on the build machine: pkg-config would pick up the installed
Xen config files as the Xen tree wouldn't contain any of them.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
configure