summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMrinmayee Hingolikar2013-09-20 01:26:19 -0500
committerGerrit Code Review2013-09-27 11:19:48 -0500
commit9cd39120edafb7a4c755f63d815adc18f5d455f9 (patch)
treea227a99c5f2636a01d96798e1d52694448d6decb /configure.ac
parent0223f6619d9bcb59f4cff42d01b65cedbf242c14 (diff)
downloadhardware-ti-libdce-9cd39120edafb7a4c755f63d815adc18f5d455f9.tar.gz
hardware-ti-libdce-9cd39120edafb7a4c755f63d815adc18f5d455f9.tar.xz
hardware-ti-libdce-9cd39120edafb7a4c755f63d815adc18f5d455f9.zip
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 <mrinmayee@ti.com> Signed-off-by: Amarinder Bindra <a-bindra@ti.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
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 ***
70dnl *** set variables based on configure arguments *** 70dnl *** set variables based on configure arguments ***
71 71
72if test "$IPC_HEADERS" != "" ; then 72if test "$IPC_HEADERS" != "" ; then
73 AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])]) 73 if test "$cross_compiling" != "yes" ; then
74 AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])])
75 fi
74 AC_SUBST(IPC_HEADERS) 76 AC_SUBST(IPC_HEADERS)
75else 77else
76 AC_MSG_ERROR([Set path variable IPC_HEADERS]) 78 AC_MSG_ERROR([Set path variable IPC_HEADERS])