@@ -292,7 +292,7 @@ iconv="auto"
292
292
curses=" auto"
293
293
docs=" auto"
294
294
fdt=" auto"
295
- netmap=" no "
295
+ netmap=" auto "
296
296
sdl=" auto"
297
297
sdl_image=" auto"
298
298
virtiofsd=" auto"
@@ -701,7 +701,6 @@ FreeBSD)
701
701
bsd_user=" yes"
702
702
make=" ${MAKE-gmake} "
703
703
# needed for kinfo_getvmmap(3) in libutil.h
704
- netmap=" " # enable netmap autodetect
705
704
;;
706
705
DragonFly)
707
706
bsd=" yes"
@@ -1026,9 +1025,9 @@ for opt do
1026
1025
;;
1027
1026
--enable-vde) vde=" enabled"
1028
1027
;;
1029
- --disable-netmap) netmap=" no "
1028
+ --disable-netmap) netmap=" disabled "
1030
1029
;;
1031
- --enable-netmap) netmap=" yes "
1030
+ --enable-netmap) netmap=" enabled "
1032
1031
;;
1033
1032
--disable-xen) xen=" disabled"
1034
1033
;;
@@ -2903,34 +2902,6 @@ EOF
2903
2902
fi
2904
2903
fi
2905
2904
2906
- # #########################################
2907
- # netmap support probe
2908
- # Apart from looking for netmap headers, we make sure that the host API version
2909
- # supports the netmap backend (>=11). The upper bound (15) is meant to simulate
2910
- # a minor/major version number. Minor new features will be marked with values up
2911
- # to 15, and if something happens that requires a change to the backend we will
2912
- # move above 15, submit the backend fixes and modify this two bounds.
2913
- if test " $netmap " ! = " no" ; then
2914
- cat > $TMPC << EOF
2915
- #include <inttypes.h>
2916
- #include <net/if.h>
2917
- #include <net/netmap.h>
2918
- #include <net/netmap_user.h>
2919
- #if (NETMAP_API < 11) || (NETMAP_API > 15)
2920
- #error
2921
- #endif
2922
- int main(void) { return 0; }
2923
- EOF
2924
- if compile_prog " " " " ; then
2925
- netmap=yes
2926
- else
2927
- if test " $netmap " = " yes" ; then
2928
- feature_not_found " netmap"
2929
- fi
2930
- netmap=no
2931
- fi
2932
- fi
2933
-
2934
2905
# #########################################
2935
2906
# plugin linker support probe
2936
2907
@@ -4175,9 +4146,6 @@ if test "$slirp_smbd" = "yes" ; then
4175
4146
echo " CONFIG_SLIRP_SMBD=y" >> $config_host_mak
4176
4147
echo " CONFIG_SMBD_COMMAND=\" $smbd \" " >> $config_host_mak
4177
4148
fi
4178
- if test " $netmap " = " yes" ; then
4179
- echo " CONFIG_NETMAP=y" >> $config_host_mak
4180
- fi
4181
4149
if test " $l2tpv3 " = " yes" ; then
4182
4150
echo " CONFIG_L2TPV3=y" >> $config_host_mak
4183
4151
fi
@@ -4724,7 +4692,7 @@ if test "$skip_meson" = no; then
4724
4692
-Dalsa=$alsa -Dcoreaudio=$coreaudio -Ddsound=$dsound -Djack=$jack -Doss=$oss \
4725
4693
-Dpa=$pa -Daudio_drv_list=$audio_drv_list -Dtcg_interpreter=$tcg_interpreter \
4726
4694
-Dtrace_backends=$trace_backends -Dtrace_file=$trace_file -Dlinux_aio=$linux_aio \
4727
- -Dvde=$vde \
4695
+ -Dnetmap= $netmap - Dvde=$vde \
4728
4696
$cross_arg \
4729
4697
" $PWD " " $source_path "
4730
4698
0 commit comments