From cd48a74fd7fd69ffb3289cac88e49d7bce9e9126 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Tue, 6 Sep 2022 17:19:38 +0200 Subject: [PATCH] Fixed 'warning: cannot check for file existence when cross compiling' --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 606e129..3ef8c86 100644 --- a/configure.ac +++ b/configure.ac @@ -19,8 +19,8 @@ LT_INIT # Activate developer mode when the source is the git repository. # Otherwise, it is the source distribution and the developer mode should not be activated. TEST_IFEXISTS=".git" -AC_CHECK_FILE([$TEST_IFEXISTS], - [enable_maintainer_mode="yes"], +AS_IF([test -d $TEST_IFEXISTS], + [enable_maintainer_mode="yes"] ) VERSION_MAJOR=`echo ${PACKAGE_VERSION} | cut -d. -f1`