[binutils-gdb] Revert "Support MinGW & 64-bit libraries/paths in Tcl autoconf scripts"

Patrick Monnerat via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <20260331095455.2E9BF4BA2E09__25715.4437176482$1774950904$gmane$org@sourceware.org>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad6615bf96d148a238f21907caebf8100f92d74e

commit ad6615bf96d148a238f21907caebf8100f92d74e
Author: Patrick Monnerat <[email protected]>
Date:   Tue Mar 31 11:52:51 2026 +0200

    Revert "Support MinGW & 64-bit libraries/paths in Tcl autoconf scripts"
    
    This reverts commit 7c56717745c428d8caa648e449ba73890d4a5090.
    
    Reason for revert: mismatch with gcc sources in CI.

Diff:
---
 config/tcl.m4 | 64 ++---------------------------------------------------------
 1 file changed, 2 insertions(+), 62 deletions(-)

diff --git a/config/tcl.m4 b/config/tcl.m4
index 5a16c9cf18a..4542a4b23d7 100644
--- a/config/tcl.m4
+++ b/config/tcl.m4
@@ -33,7 +33,7 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
 
 	    # First check to see if --with-tcl was specified.
 	    case "${host}" in
-		*-*-mingw* | *-*-cygwin*) platDir="win" ;;
+		*-*-cygwin*) platDir="win" ;;
 		*) platDir="unix" ;;
 	    esac
 	    if test x"${with_tclconfig}" != x ; then
@@ -80,31 +80,6 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
 		done
 	    fi
 
-	    # Check where 32-bit vs 64-bit libraries are stored
-	    lib32="/usr/lib"
-	    lib64="/usr/lib"
-            if test -d /usr/lib32 ; then
-		lib32="/usr/lib32"
-	    fi
-	    if test -d /usr/lib64 ; then
-		lib64="/usr/lib64"
-	    fi
-	    case "${CFLAGS}" in
-		 *-m32*) force_32=yes ;;
-		 *) force_32=no ;;
-	    esac
-            case "${host}" in
-                i[3456]*) usrlibdir="${lib32}" ;;
-                x86_64*)
-			if test x"${force_32}" = xyes ; then
-			   usrlibdir="${lib32}"
-			else
-			   usrlibdir="${lib64}"
-			fi
-			;;
-                *) usrlibdir="/usr/lib" ;;
-            esac
-
 	    # check in a few common install locations
 	    if test x"${ac_cv_c_tclconfig}" = x ; then
 		for i in `ls -d ${libdir} 2>/dev/null` \
@@ -112,12 +87,7 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
 			`ls -d ${prefix}/lib 2>/dev/null` \
 			`ls -d /usr/local/lib 2>/dev/null` \
 			`ls -d /usr/contrib/lib 2>/dev/null` \
-			`ls -d ${usrlibdir} 2>/dev/null` \
-			`ls -d ${usrlibdir}/tcl[[8-9]].[[0-9]] 2>/dev/null` \
-			`ls -d ${usrlibdir}/tcl[[8-9]].[[0-9]]* 2>/dev/null` \
 			`ls -d /usr/lib 2>/dev/null` \
-			`ls -d /usr/lib/tcl[[8-9]].[[0-9]] 2>/dev/null` \
-			`ls -d /usr/lib/tcl[[8-9]].[[0-9]]* 2>/dev/null` \
 			; do
 		    if test -f "$i/tclConfig.sh" ; then
 			ac_cv_c_tclconfig=`(cd $i; pwd)`
@@ -195,7 +165,7 @@ AC_DEFUN([SC_PATH_TKCONFIG], [
 
 	    # then check for a private Tk library
 	    case "${host}" in
-		*-*-mingw* | *-*-cygwin*) platDir="win" ;;
+		*-*-cygwin*) platDir="win" ;;
 		*) platDir="unix" ;;
 	    esac
 	    if test x"${ac_cv_c_tkconfig}" = x ; then
@@ -233,31 +203,6 @@ AC_DEFUN([SC_PATH_TKCONFIG], [
 		done
 	    fi
 
-	    # Check where 32-bit vs 64-bit libraries are stored
-	    lib32="/usr/lib"
-	    lib64="/usr/lib"
-            if test -d /usr/lib32 ; then
-		lib32="/usr/lib32"
-	    fi
-	    if test -d /usr/lib64 ; then
-		lib64="/usr/lib64"
-	    fi
-	    case "${CFLAGS}" in
-		 *-m32*) force_32=yes ;;
-		 *) force_32=no ;;
-	    esac
-            case "${host}" in
-                i[3456]*) usrlibdir="${lib32}" ;;
-                x86_64*)
-			if test x"${force_32}" = xyes ; then
-			   usrlibdir="${lib32}"
-			else
-			   usrlibdir="${lib64}"
-			fi
-			;;
-                *) usrlibdir="/usr/lib" ;;
-            esac
-
 	    # check in a few common install locations
 	    if test x"${ac_cv_c_tkconfig}" = x ; then
 		for i in `ls -d ${libdir} 2>/dev/null` \
@@ -265,12 +210,7 @@ AC_DEFUN([SC_PATH_TKCONFIG], [
 			`ls -d ${prefix}/lib 2>/dev/null` \
 			`ls -d /usr/local/lib 2>/dev/null` \
 			`ls -d /usr/contrib/lib 2>/dev/null` \
-			`ls -d ${usrlibdir} 2>/dev/null` \
-			`ls -d ${usrlibdir}/tk[[8-9]].[[0-9]] 2>/dev/null` \
-			`ls -d ${usrlibdir}/tk[[8-9]].[[0-9]]* 2>/dev/null` \
 			`ls -d /usr/lib 2>/dev/null` \
-			`ls -d /usr/lib/tk[[8-9]].[[0-9]] 2>/dev/null` \
-			`ls -d /usr/lib/tk[[8-9]].[[0-9]]* 2>/dev/null` \
 			; do
 		    if test -f "$i/tkConfig.sh" ; then
 			ac_cv_c_tkconfig=`(cd $i; pwd)`
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.