Browse Source

configure: require fork for NTLM-WB

Reported-by: ウさん

Fixes #9847
Closes #9856
Daniel Stenberg 1 year ago
parent
commit
592107fa16
2 changed files with 4 additions and 0 deletions
  1. 1 0
      configure.ac
  2. 3 0
      m4/curl-confopts.m4

+ 1 - 0
configure.ac

@@ -3536,6 +3536,7 @@ AC_CHECK_DECLS([getpwuid_r], [], [AC_DEFINE(HAVE_DECL_GETPWUID_R_MISSING, 1, "Se
 
 AC_CHECK_FUNCS([fnmatch \
   fchmod \
+  fork \
   geteuid \
   getpass_r \
   getppid \

+ 3 - 0
m4/curl-confopts.m4

@@ -618,6 +618,9 @@ AC_DEFUN([CURL_CHECK_NTLM_WB], [
     test "x$SSL_ENABLED" = "x"; then
     want_ntlm_wb_file=""
     want_ntlm_wb="no"
+  elif test "x$ac_cv_func_fork" != "xyes"; then
+    dnl ntlm_wb requires fork
+    want_ntlm_wb="no"
   fi
   AC_MSG_RESULT([$want_ntlm_wb])
   if test "$want_ntlm_wb" = "yes"; then