]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix typo in configure.ac causing $LIBS to gain a copy of $CFLAGS
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Feb 2013 16:44:46 +0000 (16:44 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Feb 2013 18:04:16 +0000 (18:04 +0000)
The virt-dbus.m4 check for DBus was preserving $LIBS before
modifying it. Except it wasn't. It was preserving another
copy of $CFLAGS. The result was that after the check completed,
$LIBS got polluted with $CFLAGS

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
m4/virt-dbus.m4

index 16cb864c9b51cee14b88851f00d22ea36d16af92..4ef0c82bb5114a2162e13a57bba9ef23ff10bb78 100644 (file)
@@ -22,7 +22,7 @@ AC_DEFUN([LIBVIRT_CHECK_DBUS],[
 
   if test "$with_dbus" = "yes" ; then
     old_CFLAGS="$CFLAGS"
-    old_LIBS="$CFLAGS"
+    old_LIBS="$LIBS"
     CFLAGS="$CFLAGS $DBUS_CFLAGS"
     LIBS="$LIBS $DBUS_LIBS"
     AC_CHECK_FUNCS([dbus_watch_get_unix_fd])