From: Vicente Olivert Riera Date: Tue, 20 Jun 2017 15:42:11 +0000 (+0100) Subject: configure.ac: detect MIPS ABI X-Git-Tag: V_7_7_P1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=580086704c31de91dc7ba040a28e416bf1fefbca;p=thirdparty%2Fopenssh-portable.git configure.ac: detect MIPS ABI Signed-off-by: Vicente Olivert Riera --- diff --git a/configure.ac b/configure.ac index 68586a30d..76a603d29 100644 --- a/configure.ac +++ b/configure.ac @@ -819,6 +819,27 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) ]) AC_CHECK_HEADERS([linux/seccomp.h linux/filter.h linux/audit.h], [], [], [#include ]) + # Obtain MIPS ABI + case "$host" in + mips*) + AC_COMPILE_IFELSE([ +#if _MIPS_SIM != _ABIO32 +#error +#endif + ],[mips_abi="o32"],[AC_COMPILE_IFELSE([ +#if _MIPS_SIM != _ABIN32 +#error +#endif + ],[mips_abi="n32"],[AC_COMPILE_IFELSE([ +#if _MIPS_SIM != _ABI64 +#error +#endif + ],[mips_abi="n64"],[AC_MSG_ERROR([unknown MIPS ABI]) + ]) + ]) + ]) + ;; + esac AC_MSG_CHECKING([for seccomp architecture]) seccomp_audit_arch= case "$host" in