diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 5be2e4f..dfb3983 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,18 @@ esac dnl Finally set up LibTool AC_PROG_LIBTOOL +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_HEADER_TIME + # Checks for libraries. +AC_CHECK_LIB([m], [creal]) + AC_CHECK_LIB([gmp], [__gmpz_init], [LIBS="-lgmp $LIBS"], [AC_MSG_ERROR([libgmp not found or uses a different ABI.])]) @@ -173,15 +184,6 @@ error AC_MSG_ERROR([MPFR version >= 2.4.2 required]) ]) -# Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS([complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h]) - -# Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_TYPE_SIZE_T -AC_HEADER_TIME - # Check for logging feature AS_IF([test "x$enable_logging" = "xyes"], [AC_CHECK_HEADERS([dlfcn.h]) |