Use saved CFLAGS and LIBS to avoid errors in the check programs. Signed-off-by: Eduardo Lima (Etrunko) <etrunko@xxxxxxxxxx> --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7b61821..c787e1e 100644 --- a/configure.ac +++ b/configure.ac @@ -196,8 +196,8 @@ AS_IF([test "x$with_ovirt" = "xyes"], [AC_DEFINE([HAVE_OVIRT], 1, [Have libgovirt?])] [SAVED_CFLAGS="$CFLAGS" SAVED_LIBS="$LIBS" - CFLAGS="$OVIRT_CFLAGS" - LIBS="$OVIRT_LIBS" + CFLAGS="$SAVED_CFLAGS $OVIRT_CFLAGS" + LIBS="$SAVED_LIBS $OVIRT_LIBS" AC_CHECK_FUNCS([ovirt_api_search_vms ovirt_vm_get_host ovirt_host_get_cluster ovirt_cluster_get_data_center], [AC_DEFINE([HAVE_OVIRT_DATA_CENTER], 1, [Have support for data center])], [] -- 2.21.0 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list