[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 04/11] slirp: feature detection for smbd
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v9 04/11] slirp: feature detection for smbd |
Date: |
Tue, 26 Jan 2021 08:30:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/26/21 2:24 AM, Joelle van Dyne wrote:
> Replace Windows specific macro with a more generic feature detection
> macro. Allows slirp smb feature to be disabled manually as well.
>
> Signed-off-by: Joelle van Dyne <j@getutm.app>
> ---
> configure | 22 +++++++++++++++++++++-
> meson.build | 2 +-
> net/slirp.c | 16 ++++++++--------
> 3 files changed, 30 insertions(+), 10 deletions(-)
>
> diff --git a/configure b/configure
> index 8d8a4733d7..d72ab22da5 100755
> --- a/configure
> +++ b/configure
> @@ -464,6 +464,7 @@ fuse="auto"
> fuse_lseek="auto"
>
> malloc_trim="auto"
> +slirp_smbd="auto"
>
> # parse CC options second
> for opt do
> @@ -845,7 +846,18 @@ do
> fi
> done
>
> +# Check for smbd dupport
> : ${smbd=${SMBD-/usr/sbin/smbd}}
> +if test "$slirp_smbd" != "no" ; then
Here slirp_smbd is always "auto".
> + if test "$mingw32" = "yes" ; then
> + if test "$slirp_smbd" = "yes" ; then
> + error_exit "Host smbd not supported on this platform."
> + fi
> + slirp_smbd=no
> + else
> + slirp_smbd=yes
> + fi
> +fi
So this check ...
>
> # Default objcc to clang if available, otherwise use CC
> if has clang; then
> @@ -1560,6 +1572,10 @@ for opt do
> ;;
> --disable-fuse-lseek) fuse_lseek="disabled"
> ;;
> + --enable-slirp-smbd) slirp_smbd=yes
> + ;;
> + --disable-slirp-smbd) slirp_smbd=no
> + ;;
> *)
... should be placed after the cmdline options processing,
isn't it?
- [PATCH v9 10/11] darwin: detect CoreAudio for build, (continued)
- [PATCH v9 10/11] darwin: detect CoreAudio for build, Joelle van Dyne, 2021/01/25
- [PATCH v9 07/11] darwin: fix cross-compiling for Darwin, Joelle van Dyne, 2021/01/25
- [PATCH v9 11/11] darwin: remove 64-bit build detection on 32-bit OS, Joelle van Dyne, 2021/01/25
- [PATCH v9 08/11] configure: cross compile should use x86_64 cpu_family, Joelle van Dyne, 2021/01/25
- [PATCH v9 09/11] block: check availablity for preadv/pwritev on mac, Joelle van Dyne, 2021/01/25
- [PATCH v9 02/11] configure: cross-compiling with empty cross_prefix, Joelle van Dyne, 2021/01/25
- [PATCH v9 04/11] slirp: feature detection for smbd, Joelle van Dyne, 2021/01/25
- Re: [PATCH v9 04/11] slirp: feature detection for smbd,
Philippe Mathieu-Daudé <=
- Re: [PATCH v9 00/11] iOS and Apple Silicon host support, Peter Maydell, 2021/01/28