build-sys: check for malloc only if we're not cross-compiling.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 21 Aug 2014 14:22:57 +0000 (17:22 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 21 Aug 2014 14:22:57 +0000 (17:22 +0300)
configure.ac

index f6e37ea..e31240c 100644 (file)
@@ -108,7 +108,9 @@ AC_CHECK_TYPES([ptrdiff_t])
 # Checks for library functions.
 AC_FUNC_ERROR_AT_LINE
 AC_HEADER_MAJOR
-AC_FUNC_MALLOC
+if test "$cross_compiling" = "no"; then
+    AC_FUNC_MALLOC
+fi
 AC_FUNC_STRTOD
 AC_CHECK_FUNCS([clock_gettime memmove memset regcomp strcasecmp strchr strdup strrchr strtol strtoul])