From af1151c374314a1c4fda6f570f996cb119a36e90 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 16 May 2005 18:21:30 +0000 Subject: [PATCH] Try configure testing fesetenv while -lm is added to LIBS --- configure.ac | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index f902c4b3e..28147b8ca 100644 --- a/configure.ac +++ b/configure.ac @@ -717,14 +717,6 @@ AC_ARG_WITH(extralibdir, [ --with-extralibdir=DIR use extra libraries from DIR], LDFLAGS="$LDFLAGS -L$withval",) -dnl ----------------------------------- -dnl Checks for -lm library - -save_LIBS=$LIBS -AC_CHECK_LIB(m, main, [MATH_LIBS="-lm"]) -AC_SUBST(MATH_LIBS) -LIBS=$save_LIBS - dnl ----------------------------------- dnl ...borrow test for -lsocket -lnsl from tk8.3.3/unix/configure.in @@ -1211,10 +1203,22 @@ AC_FUNC_ALLOCA AC_CHECK_FUNCS([lrand48 drand48 srand48 setmode setenv getenv \ __freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \ - strtoul strtoll strtoull feenableexcept fesetenv uname]) + strtoul strtoll strtoull uname]) AC_REPLACE_FUNCS([strcasecmp strncasecmp]) +dnl ----------------------------------- +dnl Checks for -lm library + +save_LIBS=$LIBS +AC_CHECK_LIB(m, main, [MATH_LIBS="-lm"]) +AC_SUBST(MATH_LIBS) + +# Check for functions that might need -lm +AC_CHECK_FUNCS([feenableexcept fesetenv]) + +LIBS=$save_LIBS + # Check for st_blksize in struct stat # AC_ST_BLKSIZE -- 2.40.0