configure, meson: convert libdaxctl detection to meson
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
587d59d6cc
commit
83ef16821a
28
configure
vendored
28
configure
vendored
@ -433,7 +433,7 @@ plugins="no"
|
|||||||
fuzzing="no"
|
fuzzing="no"
|
||||||
rng_none="no"
|
rng_none="no"
|
||||||
secret_keyring="$default_feature"
|
secret_keyring="$default_feature"
|
||||||
libdaxctl="$default_feature"
|
libdaxctl="auto"
|
||||||
meson=""
|
meson=""
|
||||||
ninja=""
|
ninja=""
|
||||||
skip_meson=no
|
skip_meson=no
|
||||||
@ -1534,9 +1534,9 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-keyring) secret_keyring="no"
|
--disable-keyring) secret_keyring="no"
|
||||||
;;
|
;;
|
||||||
--enable-libdaxctl) libdaxctl=yes
|
--enable-libdaxctl) libdaxctl=disabled
|
||||||
;;
|
;;
|
||||||
--disable-libdaxctl) libdaxctl=no
|
--disable-libdaxctl) libdaxctl=enabled
|
||||||
;;
|
;;
|
||||||
--enable-fuse) fuse="enabled"
|
--enable-fuse) fuse="enabled"
|
||||||
;;
|
;;
|
||||||
@ -4949,22 +4949,6 @@ if test "$libpmem" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################
|
|
||||||
# check for libdaxctl
|
|
||||||
|
|
||||||
if test "$libdaxctl" != "no"; then
|
|
||||||
if $pkg_config --atleast-version=57 "libdaxctl"; then
|
|
||||||
libdaxctl="yes"
|
|
||||||
libdaxctl_libs=$($pkg_config --libs libdaxctl)
|
|
||||||
libdaxctl_cflags=$($pkg_config --cflags libdaxctl)
|
|
||||||
else
|
|
||||||
if test "$libdaxctl" = "yes" ; then
|
|
||||||
feature_not_found "libdaxctl" "Install libdaxctl"
|
|
||||||
fi
|
|
||||||
libdaxctl="no"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# check for slirp
|
# check for slirp
|
||||||
|
|
||||||
@ -5738,11 +5722,6 @@ if test "$libpmem" = "yes" ; then
|
|||||||
echo "LIBPMEM_CFLAGS=$libpmem_cflags" >> $config_host_mak
|
echo "LIBPMEM_CFLAGS=$libpmem_cflags" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$libdaxctl" = "yes" ; then
|
|
||||||
echo "CONFIG_LIBDAXCTL=y" >> $config_host_mak
|
|
||||||
echo "LIBDAXCTL_LIBS=$libdaxctl_libs" >> $config_host_mak
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$bochs" = "yes" ; then
|
if test "$bochs" = "yes" ; then
|
||||||
echo "CONFIG_BOCHS=y" >> $config_host_mak
|
echo "CONFIG_BOCHS=y" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
@ -6108,6 +6087,7 @@ if test "$skip_meson" = no; then
|
|||||||
-Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
|
-Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
|
||||||
-Dlibnfs=$libnfs -Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev\
|
-Dlibnfs=$libnfs -Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev\
|
||||||
-Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse \
|
-Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse \
|
||||||
|
-Dlibdaxctl=$libdaxctl \
|
||||||
-Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
|
-Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
|
||||||
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
|
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
|
||||||
-Dattr=$attr -Ddefault_devices=$default_devices -Dvirglrenderer=$virglrenderer \
|
-Dattr=$attr -Ddefault_devices=$default_devices -Dvirglrenderer=$virglrenderer \
|
||||||
|
@ -1011,8 +1011,10 @@ if 'CONFIG_LIBPMEM' in config_host
|
|||||||
link_args: config_host['LIBPMEM_LIBS'].split())
|
link_args: config_host['LIBPMEM_LIBS'].split())
|
||||||
endif
|
endif
|
||||||
libdaxctl = not_found
|
libdaxctl = not_found
|
||||||
if 'CONFIG_LIBDAXCTL' in config_host
|
if not get_option('libdaxctl').auto() or have_system
|
||||||
libdaxctl = declare_dependency(link_args: config_host['LIBDAXCTL_LIBS'].split())
|
libdaxctl = dependency('libdaxctl', required: get_option('libdaxctl'),
|
||||||
|
version: '>=57', method: 'pkg-config',
|
||||||
|
kwargs: static_kwargs)
|
||||||
endif
|
endif
|
||||||
tasn1 = not_found
|
tasn1 = not_found
|
||||||
if gnutls.found()
|
if gnutls.found()
|
||||||
@ -2821,7 +2823,7 @@ summary_info += {'NUMA host support': config_host.has_key('CONFIG_NUMA')}
|
|||||||
summary_info += {'libxml2': config_host.has_key('CONFIG_LIBXML2')}
|
summary_info += {'libxml2': config_host.has_key('CONFIG_LIBXML2')}
|
||||||
summary_info += {'capstone': capstone_opt == 'disabled' ? false : capstone_opt}
|
summary_info += {'capstone': capstone_opt == 'disabled' ? false : capstone_opt}
|
||||||
summary_info += {'libpmem support': config_host.has_key('CONFIG_LIBPMEM')}
|
summary_info += {'libpmem support': config_host.has_key('CONFIG_LIBPMEM')}
|
||||||
summary_info += {'libdaxctl support': config_host.has_key('CONFIG_LIBDAXCTL')}
|
summary_info += {'libdaxctl support': libdaxctl.found()}
|
||||||
summary_info += {'libudev': libudev.found()}
|
summary_info += {'libudev': libudev.found()}
|
||||||
summary_info += {'FUSE lseek': fuse_lseek.found()}
|
summary_info += {'FUSE lseek': fuse_lseek.found()}
|
||||||
summary(summary_info, bool_yn: true, section: 'Dependencies')
|
summary(summary_info, bool_yn: true, section: 'Dependencies')
|
||||||
|
@ -84,6 +84,8 @@ option('nettle', type : 'feature', value : 'auto',
|
|||||||
description: 'nettle cryptography support')
|
description: 'nettle cryptography support')
|
||||||
option('gcrypt', type : 'feature', value : 'auto',
|
option('gcrypt', type : 'feature', value : 'auto',
|
||||||
description: 'libgcrypt cryptography support')
|
description: 'libgcrypt cryptography support')
|
||||||
|
option('libdaxctl', type : 'feature', value : 'auto',
|
||||||
|
description: 'libdaxctl support')
|
||||||
option('libudev', type : 'feature', value : 'auto',
|
option('libudev', type : 'feature', value : 'auto',
|
||||||
description: 'Use libudev to enumerate host devices')
|
description: 'Use libudev to enumerate host devices')
|
||||||
option('libusb', type : 'feature', value : 'auto',
|
option('libusb', type : 'feature', value : 'auto',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user