From 71db5909a5e88608430a956bb9fcf93eb701697b Mon Sep 17 00:00:00 2001 From: panne Date: Tue, 6 Jan 2004 18:39:13 +0000 Subject: [PATCH] [project @ 2004-01-06 18:39:12 by panne] Cleaned up libm detection --- aclocal.m4 | 2 +- configure.ac | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index c4b1eb8..526bc04 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1009,7 +1009,7 @@ else esac if test x"$use_quartz_opengl" != xyes; then - AC_CHECK_LIB([m], [main], [GL_LIBS="-lm $GL_LIBS"]) + AC_CHECK_LIB([m], [atan], [GL_LIBS="-lm $GL_LIBS"]) if test x"$no_x" != xyes; then test -n "$x_includes" && GL_CFLAGS="-I$x_includes $GL_CFLAGS" diff --git a/configure.ac b/configure.ac index f25589c..64922bb 100644 --- a/configure.ac +++ b/configure.ac @@ -1198,7 +1198,7 @@ else fi dnl ** check for math library -AC_CHECK_LIB([m], [main], [LIBM="-lm"], [LIBM=]) +AC_CHECK_LIB([m], [atan], [LIBS="-lm $LIBS"; LIBM="-lm"], [LIBM=]) AC_SUBST([LIBM]) dnl ** check for X Window System @@ -1309,8 +1309,6 @@ else AC_SUBST(HaveRtldNow) fi -FPTOOLS_CHECK_LIB_NOWARN(m, atan) - dnl ---------- usleep ---------- dnl --- stolen from guile configure --- dnl --- FIXME: /usr/include/unistd.h can't be right? -- 1.7.10.4