@@ -425,7 +425,7 @@ vdi=${default_feature:-yes}
425
425
vvfat=${default_feature:- yes}
426
426
qed=${default_feature:- yes}
427
427
parallels=${default_feature:- yes}
428
- libxml2=" $default_feature "
428
+ libxml2=" auto "
429
429
debug_mutex=" no"
430
430
libpmem=" auto"
431
431
default_devices=" true"
@@ -1419,9 +1419,9 @@ for opt do
1419
1419
;;
1420
1420
--enable-numa) numa=" yes"
1421
1421
;;
1422
- --disable-libxml2) libxml2=" no "
1422
+ --disable-libxml2) libxml2=" disabled "
1423
1423
;;
1424
- --enable-libxml2) libxml2=" yes "
1424
+ --enable-libxml2) libxml2=" enabled "
1425
1425
;;
1426
1426
--disable-tcmalloc) tcmalloc=" no"
1427
1427
;;
@@ -3409,21 +3409,6 @@ EOF
3409
3409
fi
3410
3410
fi
3411
3411
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
-
3427
3412
# Check for inotify functions when we are building linux-user
3428
3413
# emulator. This is done because older glibc versions don't
3429
3414
# have syscall stubs for these implemented. In that case we
@@ -5636,12 +5621,6 @@ if test "$have_rtnetlink" = "yes" ; then
5636
5621
echo " CONFIG_RTNETLINK=y" >> $config_host_mak
5637
5622
fi
5638
5623
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
-
5645
5624
if test " $replication " = " yes" ; then
5646
5625
echo " CONFIG_REPLICATION=y" >> $config_host_mak
5647
5626
fi
@@ -6050,7 +6029,7 @@ if test "$skip_meson" = no; then
6050
6029
-Dcapstone=$capstone -Dslirp=$slirp -Dfdt=$fdt -Dbrlapi=$brlapi \
6051
6030
-Dcurl=$curl -Dglusterfs=$glusterfs -Dbzip2=$bzip2 -Dlibiscsi=$libiscsi \
6052
6031
-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 \
6054
6033
-Dlibdaxctl=$libdaxctl -Dlibpmem=$libpmem -Dlinux_io_uring=$linux_io_uring \
6055
6034
-Dgnutls=$gnutls -Dnettle=$nettle -Dgcrypt=$gcrypt -Dauth_pam=$auth_pam \
6056
6035
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
0 commit comments