configure.ac: fix openssl header circular dependency detector to work on out-of-tree builds.

This commit is contained in:
Daniel Pouzzner
2023-03-03 21:56:42 -06:00
parent 35b68fb23d
commit a7d9ea7550

View File

@ -8721,7 +8721,7 @@ if test "$ENABLED_OPENSSLEXTRA" = "yes"
then
SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -I$srcdir"
for header in wolfssl/openssl/*.h
for header in "${srcdir}"/wolfssl/openssl/*.h
do
AC_CHECK_HEADER([$header], [], [
AC_MSG_ERROR([Error including $header. Possible circular dependency introduced or missing include.])