1From d170b04dcb8b2b28e370d8b18ffa1f593e8eec11 Mon Sep 17 00:00:00 2001 2From: Alistair Francis <alistair.francis@wdc.com> 3Date: Thu, 10 Apr 2025 13:15:16 +1000 4Subject: [PATCH] tlshd: configure.ac: Use AC_CHECK_HEADER instead of 5 AC_CHECK_FILE 6 7AC_CHECK_FILE doesn't work when cross-compiling [1], which breaks a lot of 8use cases (like OpenEmbedded for one). Autoconf supports AC_CHECK_HEADER 9which can be used instead and is more robust [2] so let's use that 10instead. 11 121: https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Files.html 132: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Generic-Headers.html 14 15Signed-off-by: Alistair Francis <alistair.francis@wdc.com> 16Upstream-Status: Submitted [https://github.com/oracle/ktls-utils/pull/90] 17--- 18 configure.ac | 2 +- 19 1 file changed, 1 insertion(+), 1 deletion(-) 20 21diff --git a/configure.ac b/configure.ac 22index 2c77fb1..c790d71 100644 23--- a/configure.ac 24+++ b/configure.ac 25@@ -63,7 +63,7 @@ PKG_CHECK_MODULES([LIBNL_GENL3], libnl-genl-3.0 >= 3.1) 26 AC_SUBST([LIBNL_GENL3_CFLAGS]) 27 AC_SUBST([LIBNL_GENL3_LIBS]) 28 29-AC_CHECK_FILE([/usr/include/linux/quic.h], 30+AC_CHECK_HEADER([linux/quic.h], 31 [AC_CHECK_LIB([gnutls], [gnutls_handshake_set_secret_function], 32 [AC_DEFINE([HAVE_GNUTLS_QUIC], [1], [Define to 1 if QUIC is found.])])]) 33 34-- 352.49.0 36 37