Skip to content

Commit

Permalink
Update configure.ac for GSL 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
watanabe-j committed Aug 30, 2024
1 parent 38aeab3 commit b005bd0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: qfratio
Type: Package
Title: Moments and Distributions of Ratios of Quadratic Forms Using Recursion
Version: 1.1.1.9000
Date: 2024-08-29
Date: 2024-08-30
Authors@R: c(person("Junya", "Watanabe", email = "Junya.Watanabe@uab.cat",
role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-9810-5286")),
Expand Down
12 changes: 6 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#####
## Check availability of inline;
## HAVE_INLINE required to define gsl_poly_eval()
## From lines 135-165 in configure.ac from GSL
## From lines 136-166 in configure.ac from GSL
if test "$ac_cv_c_inline" != no ; then

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU-style extern inline" >&5
Expand Down Expand Up @@ -3555,7 +3555,7 @@ fi
#####
## Use libm; necessary to compile the check code for
## IEEE comparisons (with exp()) below
## From lines 216-220 in configure.ac from GSL
## From lines 217-221 in configure.ac from GSL

if test "x$LIBS" = "x" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
Expand Down Expand Up @@ -3609,7 +3609,7 @@ fi
## HAVE_DECL_ISFINITE, HAVE_DECL_FINITE or HAVE_IEEE_COMPARISONS required
## to define gsl_finite();
## HAVE_DECL_ISNAN or HAVE_IEEE_COMPARISONS required to define gsl_isnan()
## From lines 236-241 in configure.ac from GSL
## From lines 237-242 in configure.ac from GSL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
Expand Down Expand Up @@ -3728,7 +3728,7 @@ printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h
#####
## HAVE_EXTENDED_PRECISION_REGISTERS influences the definition of
## GSL_COERCE_DBL(), which is used in gsl_sf_multiply_e()
## From lines 269-300 in configure.ac from GSL
## From lines 270-301 in configure.ac from GSL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended floating point registers" >&5
printf %s "checking for extended floating point registers... " >&6; }
if test ${ac_cv_c_extended_fp+y}
Expand Down Expand Up @@ -3775,7 +3775,7 @@ fi

#####
## Check for HAVE_IEEE_COMPARISONS; see above for where this is used
## From lines 441-458 in configure.ac from GSL
## From lines 442-459 in configure.ac from GSL
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IEEE comparisons" >&5
printf %s "checking for IEEE comparisons... " >&6; }
if test ${ac_cv_c_ieee_comparisons+y}
Expand All @@ -3796,7 +3796,7 @@ int main (void)
inf = exp(1.0e10);
nan = inf / inf ;
status = (nan == nan);
exit (status);
return status;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
Expand Down
18 changes: 9 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## (or autoconf to generate configure and autoheader to generate config.h.in)
##
## GSL-related parts in this file were taken from configure.ac in
## GSL version 2.7.1.
## GSL version 2.8.
## The original line numbers are specified at the top of each chunk.
##
## Copyright (C) 2023-2024 Junya Watanabe
Expand Down Expand Up @@ -64,7 +64,7 @@ AC_SUBST(LIBM)
#####
## Check availability of inline;
## HAVE_INLINE required to define gsl_poly_eval()
## From lines 135-165 in configure.ac from GSL
## From lines 136-166 in configure.ac from GSL
if test "$ac_cv_c_inline" != no ; then
dnl Check for "extern inline", using a modified version of the test
dnl for AC_C_INLINE from acspecific.mt
Expand Down Expand Up @@ -101,7 +101,7 @@ fi
#####
## Use libm; necessary to compile the check code for
## IEEE comparisons (with exp()) below
## From lines 216-220 in configure.ac from GSL
## From lines 217-221 in configure.ac from GSL
dnl Use alternate libm if specified by user

if test "x$LIBS" = "x" ; then
Expand All @@ -114,7 +114,7 @@ fi
## HAVE_DECL_ISFINITE, HAVE_DECL_FINITE or HAVE_IEEE_COMPARISONS required
## to define gsl_finite();
## HAVE_DECL_ISNAN or HAVE_IEEE_COMPARISONS required to define gsl_isnan()
## From lines 236-241 in configure.ac from GSL
## From lines 237-242 in configure.ac from GSL
AC_CHECK_DECLS(isfinite,,,[#include <math.h>])
AC_CHECK_DECLS(finite,,,[#include <math.h>
#if HAVE_IEEEFP_H
Expand All @@ -126,7 +126,7 @@ AC_CHECK_DECLS(isnan,,,[#include <math.h>])
#####
## HAVE_EXTENDED_PRECISION_REGISTERS influences the definition of
## GSL_COERCE_DBL(), which is used in gsl_sf_multiply_e()
## From lines 269-300 in configure.ac from GSL
## From lines 270-301 in configure.ac from GSL
AC_CACHE_CHECK([for extended floating point registers],ac_cv_c_extended_fp,
[case "$host" in
*sparc*-*-*)
Expand Down Expand Up @@ -163,7 +163,7 @@ fi

#####
## Check for HAVE_IEEE_COMPARISONS; see above for where this is used
## From lines 441-458 in configure.ac from GSL
## From lines 442-459 in configure.ac from GSL
dnl Check IEEE comparisons, whether "x != x" is true for NaNs
dnl
AC_CACHE_CHECK([for IEEE comparisons], ac_cv_c_ieee_comparisons,
Expand All @@ -175,7 +175,7 @@ int main (void)
inf = exp(1.0e10);
nan = inf / inf ;
status = (nan == nan);
exit (status);
return status;
}]])],[ac_cv_c_ieee_comparisons="yes"],[ac_cv_c_ieee_comparisons="no"],[ac_cv_c_ieee_comparisons="yes"])
])

Expand All @@ -186,7 +186,7 @@ fi

dnl #####
dnl ## To define GSL_COERCE_DBL() in config.h
dnl ## From lines 507-525 in configure.ac from GSL
dnl ## From lines 508-526 in configure.ac from GSL
AH_BOTTOM([/* Define a rounding function which moves extended precision values
out of registers and rounds them to double-precision. This should
be used *sparingly*, in places where it is necessary to keep
Expand All @@ -210,7 +210,7 @@ AH_BOTTOM([/* Define a rounding function which moves extended precision values

dnl #####
dnl ## To define RETURN_IF_NULL() in config.h
dnl ## From lines 587-588 in configure.ac from GSL
dnl ## From lines 588-589 in configure.ac from GSL
AH_BOTTOM([#define RETURN_IF_NULL(x) if (!x) { return ; }
])

Expand Down

0 comments on commit b005bd0

Please sign in to comment.