From: ellson Date: Mon, 16 May 2005 18:21:30 +0000 (+0000) Subject: Try configure testing fesetenv while -lm is added to LIBS X-Git-Tag: LAST_LIBGRAPH~32^2~7549 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af1151c374314a1c4fda6f570f996cb119a36e90;p=graphviz Try configure testing fesetenv while -lm is added to LIBS --- 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