X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/98421fc1a6832ad5de4b3f6171852437aa3e0fb2..fedd2209840d4bbe4028ebb222e9b18b38701253:/configure.ac diff --git a/configure.ac b/configure.ac index 3c8cb375..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="" @@ -227,7 +229,7 @@ AC_CHECK_HEADERS([linux/random.h]) mdw_ORIG_LIBS=$LIBS LIBS=$CATACOMB_LIBS AC_SEARCH_LIBS([clock_gettime], [rt]) CATACOMB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS -if test $ac_cv_search_clock_gettime != no; then +if test "$ac_cv_search_clock_gettime" != no; then AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if you have the \`clock_gettime' function.]) fi