From 090056522b494feee8bb2e127a3df087b8753e56 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 23 Jul 2026 13:09:13 +0100 Subject: [PATCH] configure: only check in the watt library if WATT_ROOT is set Only look for gethostbyname in libwatt in $WATT_ROOT/lib if WATT_ROOT has actually been set. This avoids configure trying to search in /lib, which won't every succeed and can cause problems in cross builds which check that host paths are not being searched. Closes #22380 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6b87ee6e3e..2456589b61 100644 --- a/configure.ac +++ b/configure.ac @@ -1277,7 +1277,7 @@ if test "$HAVE_GETHOSTBYNAME" != "1"; then ) fi -if test "$HAVE_GETHOSTBYNAME" != "1"; then +if test "$HAVE_GETHOSTBYNAME" != "1" && test -n "$WATT_ROOT"; then dnl gethostbyname in the watt lib? clean_CPPFLAGS=$CPPFLAGS clean_LDFLAGS=$LDFLAGS