@@ -425,7 +425,7 @@ vdi=${default_feature:-yes}
425425vvfat=${default_feature:- yes}
426426qed=${default_feature:- yes}
427427parallels=${default_feature:- yes}
428- libxml2=" $default_feature "
428+ libxml2=" auto "
429429debug_mutex=" no"
430430libpmem=" auto"
431431default_devices=" true"
@@ -1419,9 +1419,9 @@ for opt do
14191419 ;;
14201420 --enable-numa) numa=" yes"
14211421 ;;
1422- --disable-libxml2) libxml2=" no "
1422+ --disable-libxml2) libxml2=" disabled "
14231423 ;;
1424- --enable-libxml2) libxml2=" yes "
1424+ --enable-libxml2) libxml2=" enabled "
14251425 ;;
14261426 --disable-tcmalloc) tcmalloc=" no"
14271427 ;;
@@ -3409,21 +3409,6 @@ EOF
34093409 fi
34103410fi
34113411
3412- # #########################################
3413- # libxml2 probe
3414- if test " $libxml2 " ! = " no" ; then
3415- if $pkg_config --exists libxml-2.0; then
3416- libxml2=" yes"
3417- libxml2_cflags=$( $pkg_config --cflags libxml-2.0)
3418- libxml2_libs=$( $pkg_config --libs libxml-2.0)
3419- else
3420- if test " $libxml2 " = " yes" ; then
3421- feature_not_found " libxml2" " Install libxml2 devel"
3422- fi
3423- libxml2=" no"
3424- fi
3425- fi
3426-
34273412# Check for inotify functions when we are building linux-user
34283413# emulator. This is done because older glibc versions don't
34293414# have syscall stubs for these implemented. In that case we
@@ -5636,12 +5621,6 @@ if test "$have_rtnetlink" = "yes" ; then
56365621 echo " CONFIG_RTNETLINK=y" >> $config_host_mak
56375622fi
56385623
5639- if test " $libxml2 " = " yes" ; then
5640- echo " CONFIG_LIBXML2=y" >> $config_host_mak
5641- echo " LIBXML2_CFLAGS=$libxml2_cflags " >> $config_host_mak
5642- echo " LIBXML2_LIBS=$libxml2_libs " >> $config_host_mak
5643- fi
5644-
56455624if test " $replication " = " yes" ; then
56465625 echo " CONFIG_REPLICATION=y" >> $config_host_mak
56475626fi
@@ -6050,7 +6029,7 @@ if test "$skip_meson" = no; then
60506029 -Dcapstone=$capstone -Dslirp=$slirp -Dfdt=$fdt -Dbrlapi=$brlapi \
60516030 -Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
60526031 -Dlibnfs=$libnfs -Diconv=$iconv -Dcurses=$curses -Dlibudev=$libudev \
6053- -Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse \
6032+ -Drbd=$rbd -Dlzo=$lzo -Dsnappy=$snappy -Dlzfse=$lzfse -Dlibxml2= $libxml2 \
60546033 -Dlibdaxctl=$libdaxctl -Dlibpmem=$libpmem -Dlinux_io_uring=$linux_io_uring \
60556034 -Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
60566035 -Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
0 commit comments