configure, meson: convert libpmem 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
83ef16821a
commit
e36e8c70f6
24
configure
vendored
24
configure
vendored
@ -427,7 +427,7 @@ qed=${default_feature:-yes}
|
||||
parallels=${default_feature:-yes}
|
||||
libxml2="$default_feature"
|
||||
debug_mutex="no"
|
||||
libpmem="$default_feature"
|
||||
libpmem="auto"
|
||||
default_devices="true"
|
||||
plugins="no"
|
||||
fuzzing="no"
|
||||
@ -1504,9 +1504,9 @@ for opt do
|
||||
;;
|
||||
--disable-debug-mutex) debug_mutex=no
|
||||
;;
|
||||
--enable-libpmem) libpmem=yes
|
||||
--enable-libpmem) libpmem=disabled
|
||||
;;
|
||||
--disable-libpmem) libpmem=no
|
||||
--disable-libpmem) libpmem=enabled
|
||||
;;
|
||||
--enable-xkbcommon) xkbcommon="enabled"
|
||||
;;
|
||||
@ -4933,22 +4933,6 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
##########################################
|
||||
# check for libpmem
|
||||
|
||||
if test "$libpmem" != "no"; then
|
||||
if $pkg_config --exists "libpmem"; then
|
||||
libpmem="yes"
|
||||
libpmem_libs=$($pkg_config --libs libpmem)
|
||||
libpmem_cflags=$($pkg_config --cflags libpmem)
|
||||
else
|
||||
if test "$libpmem" = "yes" ; then
|
||||
feature_not_found "libpmem" "Install nvml or pmdk"
|
||||
fi
|
||||
libpmem="no"
|
||||
fi
|
||||
fi
|
||||
|
||||
##########################################
|
||||
# check for slirp
|
||||
|
||||
@ -6087,7 +6071,7 @@ if test "$skip_meson" = no; then
|
||||
-Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
|
||||
-Dlibnfs=$libnfs -Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev\
|
||||
-Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse \
|
||||
-Dlibdaxctl=$libdaxctl \
|
||||
-Dlibdaxctl=$libdaxctl -Dlibpmem=$libpmem \
|
||||
-Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
|
||||
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
|
||||
-Dattr=$attr -Ddefault_devices=$default_devices -Dvirglrenderer=$virglrenderer \
|
||||
|
@ -1006,9 +1006,9 @@ if not get_option('libusb').auto() or have_system
|
||||
endif
|
||||
|
||||
libpmem = not_found
|
||||
if 'CONFIG_LIBPMEM' in config_host
|
||||
libpmem = declare_dependency(compile_args: config_host['LIBPMEM_CFLAGS'].split(),
|
||||
link_args: config_host['LIBPMEM_LIBS'].split())
|
||||
if not get_option('libpmem').auto() or have_system
|
||||
libpmem = dependency('libpmem', required: get_option('libpmem'),
|
||||
method: 'pkg-config', kwargs: static_kwargs)
|
||||
endif
|
||||
libdaxctl = not_found
|
||||
if not get_option('libdaxctl').auto() or have_system
|
||||
@ -2822,7 +2822,7 @@ summary_info += {'zstd support': zstd.found()}
|
||||
summary_info += {'NUMA host support': config_host.has_key('CONFIG_NUMA')}
|
||||
summary_info += {'libxml2': config_host.has_key('CONFIG_LIBXML2')}
|
||||
summary_info += {'capstone': capstone_opt == 'disabled' ? false : capstone_opt}
|
||||
summary_info += {'libpmem support': config_host.has_key('CONFIG_LIBPMEM')}
|
||||
summary_info += {'libpmem support': libpmem.found()}
|
||||
summary_info += {'libdaxctl support': libdaxctl.found()}
|
||||
summary_info += {'libudev': libudev.found()}
|
||||
summary_info += {'FUSE lseek': fuse_lseek.found()}
|
||||
|
@ -86,6 +86,8 @@ option('gcrypt', type : 'feature', value : 'auto',
|
||||
description: 'libgcrypt cryptography support')
|
||||
option('libdaxctl', type : 'feature', value : 'auto',
|
||||
description: 'libdaxctl support')
|
||||
option('libpmem', type : 'feature', value : 'auto',
|
||||
description: 'libpmem support')
|
||||
option('libudev', type : 'feature', value : 'auto',
|
||||
description: 'Use libudev to enumerate host devices')
|
||||
option('libusb', type : 'feature', value : 'auto',
|
||||
|
Loading…
Reference in New Issue
Block a user