mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
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:
Vendored
+3
-10
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user