TEA (tclconfig) Source Code

View Ticket
Login
Ticket UUID: 4b01dadd353ec229b790ea5a270d91e0210cf559
Title: [PATCH] fix logical expression by adding keyword TEST
Type: Patch Version:
Submitter: anonymous Created on: 2020-05-26 23:17:18
Subsystem: 85. tclconfig Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2026-02-05 09:08:59
Resolution: Invalid Closed By: jan.nijtmans
    Closed on: 2026-02-05 09:08:59
Description:
Tiny patch to fix logical expression by adding 'test'.

Thanks,
J.


diff --git a/tcl.m4 b/tcl.m4
index a80742e..ad75eb3 100644
--- a/tcl.m4
+++ b/tcl.m4
@@ -1958,7 +1958,7 @@ dnl # preprocessing tests use only CPPFLAGS.
     # TEA specific: use PACKAGE_VERSION instead of VERSION
     UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'])
 
-    if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
+    if test "${GCC}" = "yes" -a test ${SHLIB_SUFFIX} = ".dll"; then
        AC_CACHE_CHECK(for SEH support in compiler,
            tcl_cv_seh,
        AC_TRY_RUN([
User Comments: stu added on 2026-02-05 00:54:38:
It's fine the way it is; that's how test works with -a.
Suggest closing with "Invalid".