Close PKG_CHECK_MODULES with a no-op failure action and use a separate AS_IF to conditionally run the manual search fallback

This commit is contained in:
Tesfa Mael
2026-03-04 16:39:53 -08:00
committed by Daniele Lacamera
parent 7efe61fbd0
commit 8f9ecd1afb
+4 -2
View File
@@ -3031,8 +3031,10 @@ AS_IF([test "x$with_cryptoauthlib" != "xno"], [
LDFLAGS="$CRYPTOAUTHLIB_LIBS $LDFLAGS"
LIBS="$CRYPTOAUTHLIB_LIBS $LIBS"
cryptoauthlib_found="pkg-config"
], [
# Method 2: Manual search
], [:])
# Method 2: Manual search if pkg-config failed
AS_IF([test "x$cryptoauthlib_found" = "xno"], [
AS_IF([test "x$with_cryptoauthlib" = "xyes"], [
search_dirs="/usr /usr/local"
], [