e6a2bc
diff -ru a/unix/configure b/unix/configure
e6a2bc
--- a/unix/configure	2017-09-06 07:52:06.000000000 -0400
e6a2bc
+++ b/unix/configure	2019-08-20 12:46:31.097935159 -0400
e6a2bc
@@ -8054,13 +8054,21 @@
e6a2bc
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xft" >&5
e6a2bc
 $as_echo "$enable_xft" >&6; }
e6a2bc
     else
e6a2bc
+	if [ $cross_compiling = yes ]; then
e6a2bc
+		XFT_CONFIG=${host}-xft-config
e6a2bc
+		PKG_CONFIG=${host}-pkg-config
e6a2bc
+	else
e6a2bc
+		XFT_CONFIG=xft-config
e6a2bc
+		PKG_CONFIG=pkg-config
e6a2bc
+	fi
e6a2bc
+
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"
e6a2bc
+	XFT_CFLAGS=`"${XFT_CONFIG}" --cflags 2>/dev/null` || found_xft="no"
e6a2bc
+	XFT_LIBS=`"${XFT_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; }