]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: add sizeof check
authorPavel Hrdina <phrdina@redhat.com>
Tue, 30 Jun 2020 12:07:19 +0000 (14:07 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:26:59 +0000 (09:26 +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 020d78442c97f3943c8309c0f3dc07d13cd364f1..439a06a3a5ca5eba5d4ae3ebd3abb91d140d0ceb 100644 (file)
@@ -203,8 +203,6 @@ LIBVIRT_CHECK_WIRESHARK
 LIBVIRT_CHECK_XDR
 LIBVIRT_CHECK_YAJL
 
-AC_CHECK_SIZEOF([long])
-
 
 AC_CHECK_LIB([intl],[gettext],[])
 AC_CHECK_LIB([util],[openpty],[])
index 990faa5d4631cd0c2daa6a1284376e50890e16c9..65f158151552b773cf91bb536b6482068a84eb64 100644 (file)
@@ -867,6 +867,11 @@ foreach member : members
 endforeach
 
 
+# check various types sizeof
+
+conf.set('SIZEOF_LONG', cc.sizeof('long'))
+
+
 # define top include directory
 
 top_inc_dir = include_directories('.')