From e75e3c0c615366351e5a0e2f813b3c685faa336d Mon Sep 17 00:00:00 2001 From: enge Date: Thu, 3 Feb 2011 18:29:36 +0000 Subject: configure.ac: added check for libm, required by sun cc git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@903 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'configure.ac') 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]) -- cgit v1.2.1