From fedd2209840d4bbe4028ebb222e9b18b38701253 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 26 May 2016 09:26:09 +0100 Subject: [PATCH] configure.ac: Segregate checks by source language better. Move the poking-about-for-CPU-features function checks in with the rest of the C code probing. --- configure.ac | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 902d7d59..f5d004f0 100644 --- a/configure.ac +++ b/configure.ac @@ -130,15 +130,11 @@ case $CPUFAM in *) AC_MSG_RESULT([$CPUFAM/$ABI]) ;; esac -dnl Some equipment wanted for checking CPU features at runtime. -AC_CHECK_HEADERS([asm/hwcap.h]) -AC_CHECK_HEADERS([sys/auxv.h]) -AC_CHECK_HEADERS([linux/auxvec.h]) -AC_CHECK_FUNCS([getauxval]) - dnl-------------------------------------------------------------------------- dnl C programming environment. +AC_LANG([C]) + CATACOMB_LIBS= dnl Find out if we're cross-compiling. @@ -162,6 +158,12 @@ AC_CHECK_HEADERS([stdint.h]) AC_SUBST([have_stdint_h]) AC_C_LONG_LONG +dnl Some equipment wanted for checking CPU features at runtime. +AC_CHECK_HEADERS([asm/hwcap.h]) +AC_CHECK_HEADERS([sys/auxv.h]) +AC_CHECK_HEADERS([linux/auxvec.h]) +AC_CHECK_FUNCS([getauxval]) + dnl Find the bit lengths of the obvious integer types. This will be useful dnl when deciding on a representation for multiprecision integers. type_bits="" type_bits_sep="" -- 2.11.0