mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
fix AC_LANG_SOURCE warnings
* configure.ac: Fix annoying AC_LANG_SOURCE warnings.
This commit is contained in:
parent
074f39c7bc
commit
ad0fedbf82
1 changed files with 9 additions and 9 deletions
18
configure.ac
18
configure.ac
|
@ -1145,19 +1145,19 @@ AC_CHECK_FUNCS(asinh acosh atanh copysign finite sincos trunc)
|
||||||
# use <math.h> so doesn't detect on macro-only systems like HP-UX.
|
# use <math.h> so doesn't detect on macro-only systems like HP-UX.
|
||||||
#
|
#
|
||||||
AC_MSG_CHECKING([for isinf])
|
AC_MSG_CHECKING([for isinf])
|
||||||
AC_LINK_IFELSE(AC_LANG_SOURCE(
|
AC_LINK_IFELSE([AC_LANG_SOURCE(
|
||||||
[[#include <math.h>
|
[[#include <math.h>
|
||||||
volatile double x = 0.0;
|
volatile double x = 0.0;
|
||||||
int main () { return (isinf(x) != 0); }]]),
|
int main () { return (isinf(x) != 0); }]])],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE_ISINF], 1,
|
AC_DEFINE([HAVE_ISINF], 1,
|
||||||
[Define to 1 if you have the `isinf' macro or function.])],
|
[Define to 1 if you have the `isinf' macro or function.])],
|
||||||
[AC_MSG_RESULT([no])])
|
[AC_MSG_RESULT([no])])
|
||||||
AC_MSG_CHECKING([for isnan])
|
AC_MSG_CHECKING([for isnan])
|
||||||
AC_LINK_IFELSE(AC_LANG_SOURCE(
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
[[#include <math.h>
|
#include <math.h>
|
||||||
volatile double x = 0.0;
|
volatile double x = 0.0;
|
||||||
int main () { return (isnan(x) != 0); }]]),
|
int main () { return (isnan(x) != 0); }]])],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE_ISNAN], 1,
|
AC_DEFINE([HAVE_ISNAN], 1,
|
||||||
[Define to 1 if you have the `isnan' macro or function.])],
|
[Define to 1 if you have the `isnan' macro or function.])],
|
||||||
|
@ -1438,8 +1438,8 @@ case "$with_threads" in
|
||||||
|
|
||||||
AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
|
AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
|
||||||
guile_cv_need_braces_on_pthread_once_init,
|
guile_cv_need_braces_on_pthread_once_init,
|
||||||
[AC_COMPILE_IFELSE([#include <pthread.h>
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
|
||||||
pthread_once_t foo = PTHREAD_ONCE_INIT;],
|
pthread_once_t foo = PTHREAD_ONCE_INIT;]])],
|
||||||
[guile_cv_need_braces_on_pthread_once_init=no],
|
[guile_cv_need_braces_on_pthread_once_init=no],
|
||||||
[guile_cv_need_braces_on_pthread_once_init=yes])])
|
[guile_cv_need_braces_on_pthread_once_init=yes])])
|
||||||
if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
|
if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
|
||||||
|
@ -1450,8 +1450,8 @@ case "$with_threads" in
|
||||||
# 6.5.30m with GCC 3.3.
|
# 6.5.30m with GCC 3.3.
|
||||||
AC_CACHE_CHECK([whether PTHREAD_MUTEX_INITIALIZER needs braces],
|
AC_CACHE_CHECK([whether PTHREAD_MUTEX_INITIALIZER needs braces],
|
||||||
guile_cv_need_braces_on_pthread_mutex_initializer,
|
guile_cv_need_braces_on_pthread_mutex_initializer,
|
||||||
[AC_COMPILE_IFELSE([#include <pthread.h>
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
|
||||||
pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;],
|
pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;]])],
|
||||||
[guile_cv_need_braces_on_pthread_mutex_initializer=no],
|
[guile_cv_need_braces_on_pthread_mutex_initializer=no],
|
||||||
[guile_cv_need_braces_on_pthread_mutex_initializer=yes])])
|
[guile_cv_need_braces_on_pthread_mutex_initializer=yes])])
|
||||||
if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
|
if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue