]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: add util build dependency
authorPavel Hrdina <phrdina@redhat.com>
Wed, 29 Apr 2020 13:43:27 +0000 (15:43 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:00 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
configure.ac
meson.build

index 0bd18e05728e8ced5418bf6b335d6942c43e58ff..a5b349947686fa5a00c30f868684240fc89d4cde 100644 (file)
@@ -121,8 +121,6 @@ LIBVIRT_CHECK_XDR
 LIBVIRT_CHECK_YAJL
 
 
-AC_CHECK_LIB([util],[openpty],[])
-
 
 dnl
 dnl Virtualization drivers check
index bd5baa8454633a3e917ce24997b6a7af2e76cafa..a03a8a269c6da59873a4eb3873eb190380f9c0cc 100644 (file)
@@ -1388,6 +1388,11 @@ if udev_dep.found()
   conf.set('WITH_UDEV', 1)
 endif
 
+util_dep = cc.find_library('util', required: false)
+if util_dep.found()
+  add_project_link_arguments('-lutil', language: 'c')
+endif
+
 
 # generic build dependencies checks