From 60e6847e858f642b6db7cefd635f064d7edf6357 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 20 Mar 2021 05:41:48 +0000 Subject: [PATCH] Do not abuse AC_CHECK_FILE AC_CHECK_FILE is meant to check for host files and therefore fails hard during cross compilation unless one supplies a cached check result. Here we want to know about the presence of a build system file though, so AC_CHECK_FILE is the wrong tool. --- libraries/libapparmor/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libapparmor/configure.ac b/libraries/libapparmor/configure.ac index 87d0876fe..0852aebab 100644 --- a/libraries/libapparmor/configure.ac +++ b/libraries/libapparmor/configure.ac @@ -58,7 +58,7 @@ if test "$with_perl" = "yes"; then AC_PATH_PROG(PERL, perl) test -z "$PERL" && AC_MSG_ERROR([perl is required when enabling perl bindings]) perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE" - AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no) + AS_IF([test -e "$perl_includedir/perl.h"], enable_perl=yes, enable_perl=no) fi