Richard W.M. Jones wrote:
Attached is an autoconf snippet which allows you to check that the libvirt library is installed (not necessarily development headers though) and check the version number.

If any autoconf experts (hello, Mark) would like to check it makes sense, that'd be great.

I should add that I use it like this:

  dnl Check for libvirt, sets LIBVIRT_VERSION.
  AC_LIBVIRT

  dnl Libvirt must be >= 0.2.1
  AC_MSG_CHECKING([libvirt >= 0.2.1])
  if test $LIBVIRT_VERSION -ge 2001; then
     AC_MSG_RESULT([ok])
  else
     AC_MSG_ERROR([please upgrade your libvirt library])
  fi

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to