diff options
| author | Roland McGrath | 1996-03-08 23:57:44 +0000 |
|---|---|---|
| committer | Roland McGrath | 1996-03-08 23:57:44 +0000 |
| commit | e6fd904737bbe8ff7970f40ae41b8760ec1f00d4 (patch) | |
| tree | 2ce6ac095f37c22f5a8d5e8fac2750c73cc263d9 | |
| parent | e63679b8335427b79e72420b05b5ce47220f919f (diff) | |
| download | emacs-e6fd904737bbe8ff7970f40ae41b8760ec1f00d4.tar.gz emacs-e6fd904737bbe8ff7970f40ae41b8760ec1f00d4.zip | |
(-lm check): If $GCC, append -fno-builtin to $CC for just this test.
| -rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 617fbe6a690..790ecec8f4e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1369,7 +1369,13 @@ AC_FUNC_ALLOCA | |||
| 1369 | 1369 | ||
| 1370 | # fmod, logb, and frexp are found in -lm on most systems. | 1370 | # fmod, logb, and frexp are found in -lm on most systems. |
| 1371 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 1371 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
| 1372 | AC_CHECK_LIB(m, sqrt(0.0) + t) | 1372 | old_CC="$CC" |
| 1373 | # GCC's implicit prototype for its built-in `sqrt' function conflicts | ||
| 1374 | # with autoconf's call, so disable the built-in function. | ||
| 1375 | test x$GCC = xyes && CC="$CC -fno-builtin" | ||
| 1376 | AC_CHECK_LIB(m, sqrt) | ||
| 1377 | CC="$old_CC" | ||
| 1378 | |||
| 1373 | AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ | 1379 | AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ |
| 1374 | random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \ | 1380 | random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \ |
| 1375 | strerror fpathconf select mktime eaccess getpagesize tzset) | 1381 | strerror fpathconf select mktime eaccess getpagesize tzset) |