diff -ur pidgin1/configure pidgin2/configure
--- pidgin1/configure	2023-01-01 04:51:54.000000000 +0100
+++ pidgin2/configure	2023-08-04 18:09:24.130057198 +0200
@@ -24865,6 +24865,7 @@
 	TCLCONFIG=no
 	TCLCONFIGDIRS="/usr/lib \
 			/usr/lib64 \
+			@TERMUX_PREFIX@/lib \
 			/usr/lib/tcl8.7 \
 			/usr/lib/tcl8.6 \
 			/usr/lib/tcl8.5 \
@@ -24990,6 +24991,7 @@
 	TKCONFIG=no
 	TKCONFIGDIRS="/usr/lib \
 			/usr/lib64 \
+			@TERMUX_PREFIX@/lib \
 			/usr/lib/tk8.7 \
 			/usr/lib/tk8.6 \
 			/usr/lib/tk8.5 \
