]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: Restore CFLAGS properly after GnuTLS checks
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 Apr 2016 13:00:42 +0000 (15:00 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 7 Apr 2016 15:55:52 +0000 (17:55 +0200)
The previous value of CFLAGS was saved as old_cflags but later
restored from old_CFLAGS, which is clearly not correct.

Restore CFLAGS from the right variable.

configure.ac

index 85fc6e1f046bcaf8871d54ed2e4639287a1fc3cf..6088f7776304e5b6bb04aeb71300e8f2fa06c759 100644 (file)
@@ -1289,8 +1289,8 @@ if test "x$with_gnutls" != "xno"; then
     with_gnutls=yes
   fi
 
+  CFLAGS="$old_cflags"
   LIBS="$old_libs"
-  CFLAGS="$old_CFLAGS"
 fi
 
 if test "x$with_gnutls" = "xyes" ; then