Blame patches/tk-8.7a1.local.patch

2665b3
diff -ru tk8.7a1.orig/unix/configure tk8.7a1/unix/configure
2665b3
--- tk8.7a1.orig/unix/configure	2023-03-30 14:25:29.062891597 +0200
2665b3
+++ tk8.7a1/unix/configure	2023-03-30 14:25:08.830891475 +0200
2665b3
@@ -7752,8 +7752,8 @@
2665b3
   *)
2665b3
     # Record where we found X for the cache.
2665b3
     ac_cv_have_x="have_x=yes\
2665b3
-	ac_x_includes='$ac_x_includes'\
2665b3
-	ac_x_libraries='$ac_x_libraries'"
2665b3
+	ac_x_includes=''\
2665b3
+	ac_x_libraries=''"
2665b3
 esac
2665b3
 fi
2665b3
 ;; #(
2665b3
@@ -8054,13 +8054,20 @@
e6a2bc
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xft" >&5
e6a2bc
 $as_echo "$enable_xft" >&6; }
e6a2bc
     else
2665b3
+    if [ $cross_compiling = yes ]; then
2665b3
+        XFT_CONFIG=${host}-xft-config
2665b3
+        PKG_CONFIG=${host}-pkg-config
2665b3
+    else
2665b3
+        XFT_CONFIG=xft-config
2665b3
+        PKG_CONFIG=pkg-config
2665b3
+   fi
e6a2bc
 	found_xft="yes"
e6a2bc
-			XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no"
e6a2bc
-	XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
2665b3
+	XFT_CFLAGS=`"${PKG_CONFIG}" --cflags 2>/dev/null` || found_xft="no"
2665b3
+	XFT_LIBS=`"${PKG_CONFIG}" --libs 2>/dev/null` || found_xft="no"
e6a2bc
 	if test "$found_xft" = "no" ; then
e6a2bc
 	    found_xft=yes
e6a2bc
-	    XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
e6a2bc
-	    XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
e6a2bc
+	    XFT_CFLAGS=`"${PKG_CONFIG}" --cflags xft 2>/dev/null` || found_xft="no"
e6a2bc
+	    XFT_LIBS=`"${PKG_CONFIG}" --libs xft 2>/dev/null` || found_xft="no"
e6a2bc
 	fi
e6a2bc
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_xft" >&5
e6a2bc
 $as_echo "$found_xft" >&6; }