From d68da92e04508309faed0c45f028572722d98ba4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Tue, 18 Aug 2026 20:12:49 +0200 Subject: [PATCH] build: fix cross-build host tool detection --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 553ea001c..a21b6032d 100644 --- a/configure.ac +++ b/configure.ac @@ -992,9 +992,9 @@ AM_CONDITIONAL(USE_MEDIALIB25, test $use_mlib25 = yes) dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling -AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) +AM_CONDITIONAL(CROSS_COMPILING, test "$build" != "$host") -if test $cross_compiling = yes; then +if test "$build" != "$host"; then AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no) if test x$GTK_UPDATE_ICON_CACHE = xno; then REBUILD_PNGS=# @@ -1551,7 +1551,11 @@ AC_ARG_ENABLE(cups, if test "x$enable_cups" = "xno"; then AM_CONDITIONAL(HAVE_CUPS, false) else - AC_PATH_TOOL(CUPS_CONFIG, cups-config, no) + if test "$build" != "$host"; then + AC_PATH_PROG(CUPS_CONFIG, ${host_alias}-cups-config, no) + else + AC_PATH_TOOL(CUPS_CONFIG, cups-config, no) + fi if test "x$CUPS_CONFIG" = "xno"; then if test "x$enable_cups" = "xauto"; then AM_CONDITIONAL(HAVE_CUPS, false)