From: Ross Burton Date: Thu, 23 Jul 2026 12:09:13 +0000 (+0100) Subject: configure: only check in the watt library if WATT_ROOT is set X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=090056522b494feee8bb2e127a3df087b8753e56;p=thirdparty%2Fcurl.git 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 --- 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