From 9cd39120edafb7a4c755f63d815adc18f5d455f9 Mon Sep 17 00:00:00 2001 From: Mrinmayee Hingolikar Date: Fri, 20 Sep 2013 11:56:19 +0530 Subject: configure.ac: Add test for cross-compiling. Since AC_CHECK_FILES macro doesn't work while cross-compiling. Change-Id: I1913543e99d4e2423a4cf1cd15d5cc372d689318 Signed-off-by: Mrinmayee Hingolikar Signed-off-by: Amarinder Bindra --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a27bd08..020d14f 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,9 @@ dnl *** checks for dependancy libraries *** dnl *** set variables based on configure arguments *** if test "$IPC_HEADERS" != "" ; then - AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])]) + if test "$cross_compiling" != "yes" ; then + AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])]) + fi AC_SUBST(IPC_HEADERS) else AC_MSG_ERROR([Set path variable IPC_HEADERS]) -- cgit v1.2.3-54-g00ecf