On 03/02/20 12:41, Philippe Mathieu-Daudé wrote: > > Maybe you can add something like: > > if test "$targetos" = "NetBSD"; then > nvmm="check" > fi
You could do just nvmm="" and, below, if test "$nvmm" != "no" && test "$targetos" = "NetBSD" But maybe even testing NetBSD is not needed since nvmm.h will likely not be there. Paolo > to build by default with NVMM if available. > >> +########################################## >> +# NetBSD Virtual Machine Monitor (NVMM) accelerator check >> +if test "$nvmm" != "no" ; then >> + if check_include "nvmm.h" ; then >> + nvmm="yes" >> + LIBS="-lnvmm $LIBS" >> + else >> + if test "$nvmm" = "yes"; then >> + feature_not_found "NVMM" "NVMM is not available" >> + fi >> + nvmm="no" >> + fi >> +fi