1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-02 11:50:48 -08:00

(-lm check): If $GCC, append -fno-builtin to $CC for just this test.

This commit is contained in:
Roland McGrath 1996-03-08 23:57:44 +00:00
parent e63679b833
commit e6fd904737

View file

@ -1369,7 +1369,13 @@ AC_FUNC_ALLOCA
# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
AC_CHECK_LIB(m, sqrt(0.0) + t)
old_CC="$CC"
# GCC's implicit prototype for its built-in `sqrt' function conflicts
# with autoconf's call, so disable the built-in function.
test x$GCC = xyes && CC="$CC -fno-builtin"
AC_CHECK_LIB(m, sqrt)
CC="$old_CC"
AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \
strerror fpathconf select mktime eaccess getpagesize tzset)