Reworked the file locking option as a command instead of as a

compile-time option.  The behavior can now be controlled from
within the program with "locking disable" or "locking enable".
This commit is contained in:
Tim Edwards
2022-01-01 14:28:59 -05:00
parent 6a78f4967e
commit e4d1c29112
7 changed files with 100 additions and 47 deletions
+3 -10
View File
@@ -6598,7 +6598,7 @@ if test $usingTcl ; then
# Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
# We really ought to run "ldd" to confirm that the linked libraries match.
if text "x${magic_with_wish_binary}" = "x" ; then
if test "x${magic_with_wish_binary}" = "x" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
$as_echo_n "checking for wish executable... " >&6; }
for dir in \
@@ -6844,15 +6844,8 @@ else
fi
if test "x$enable_locking" = "xyes" ; then
case $target in
*cygwin*)
;;
*)
$as_echo "#define FILE_LOCKS 1" >>confdefs.h
;;
esac
if test "x$enable_locking" = "xno" ; then
echo "File locking no longer set during configuration; ignoring option."
fi
# Check whether --enable-calma was given.
+3 -9
View File
@@ -705,7 +705,7 @@ if test $usingTcl ; then
# Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
# We really ought to run "ldd" to confirm that the linked libraries match.
if text "x${magic_with_wish_binary}" = "x" ; then
if test "x${magic_with_wish_binary}" = "x" ; then
AC_MSG_CHECKING([for wish executable])
for dir in \
${TK_EXEC_PREFIX}/bin \
@@ -935,14 +935,8 @@ AC_ARG_ENABLE(locking,
[],
[enable_locking=yes])
if test "x$enable_locking" = "xyes" ; then
case $target in
*cygwin*)
;;
*)
AC_DEFINE(FILE_LOCKS)
;;
esac
if test "x$enable_locking" = "xno" ; then
echo "File locking no longer set during configuration; ignoring option."
fi
AC_ARG_ENABLE(calma,