From 2995245d7e3f46e8b3995002995ebd28beca7d55 Mon Sep 17 00:00:00 2001 From: Andre McCurdy Date: Fri, 5 Feb 2016 14:00:00 -0800 Subject: [PATCH] use Build fix for MIPS with musl libc. The MIPS specific header is provided by glibc and uclibc but not by musl. Regardless of the libc, the kernel headers provide which provides the same definitions, so use that instead. Upstream-Status: Pending Signed-off-by: Andre McCurdy --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 1524b9b..287e03d 100644 --- a/configure.ac +++ b/configure.ac @@ -196,20 +196,20 @@ AC_SUBST(arch_mx32) if test "$arch" = mips; then AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM], [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM], - [#include ], + [#include ], [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])]) AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include ]], + [AC_LANG_PROGRAM([[#include ]], [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])], [st_cv_mips_abi=o32], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include ]], + [AC_LANG_PROGRAM([[#include ]], [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])], [st_cv_mips_abi=n32], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include ]], + [AC_LANG_PROGRAM([[#include ]], [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])], [st_cv_mips_abi=n64], [st_cv_mips_abi=unknown])])])]) -- 1.9.1