summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-06-06 09:33:01 (GMT)
committerGitHub <noreply@github.com>2023-06-06 09:33:01 (GMT)
commite01c4de35dd40b132e57f4ba801991619bd2726b (patch)
tree161c24c711a798988b07cd134d270f3675b2d5d1 /configure
parentf4d8e10d0d0cc1ba0787d2350a699d9fb227a7cd (diff)
downloadcpython-e01c4de35dd40b132e57f4ba801991619bd2726b.zip
cpython-e01c4de35dd40b132e57f4ba801991619bd2726b.tar.gz
cpython-e01c4de35dd40b132e57f4ba801991619bd2726b.tar.bz2
gh-90005: Don't link with libbsd if not needed (#105236)
The regression was introduced with commit 5b946cada. Restore pre gh-29696 behaviour.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index d2a667f..7f17fe4 100755
--- a/configure
+++ b/configure
@@ -18968,13 +18968,15 @@ fi
printf "%s\n" "$ac_cv_flock_decl" >&6; }
if test "x$ac_cv_flock_decl" = xyes
then :
+
+ for ac_func in flock
+do :
ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
if test "x$ac_cv_func_flock" = xyes
then :
printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
-fi
-
+else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
printf %s "checking for flock in -lbsd... " >&6; }
if test ${ac_cv_lib_bsd_flock+y}
@@ -19015,7 +19017,9 @@ then :
FCNTL_LIBS="-lbsd"
fi
+fi
+done
fi