diff options
author | Bud Davis <bdavis9659@comcast.net> | 2004-06-12 17:59:30 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2004-06-12 17:59:30 +0000 |
commit | a2a2059fd77eb8c30c0534cbc766c21072a9829a (patch) | |
tree | fd31ff0dfbe883550455e1ab011a7e5daacf1f23 /libgfortran/configure.ac | |
parent | 2bd749490845f2edc7de74dca4b29fd7d7698dff (diff) | |
download | gcc-a2a2059fd77eb8c30c0534cbc766c21072a9829a.zip gcc-a2a2059fd77eb8c30c0534cbc766c21072a9829a.tar.gz gcc-a2a2059fd77eb8c30c0534cbc766c21072a9829a.tar.bz2 |
re PR libfortran/15292 (libgfortran depends on c99 functionality round and roundf)
PR gfortran/15292
* intrinsics/c99_functions.c: New file.
* Makefile.am: Add new file.
* configure.ac: Added test for round/roundf.
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.h.in: Regenerate.
From-SVN: r83036
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r-- | libgfortran/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index 9a719d9..d427856 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -166,6 +166,10 @@ AC_CHECK_LIB([mx],[csin],[need_math="no"],[need_math="yes"]) # Check for library functions. AC_CHECK_FUNCS(getrusage times) +# Check for some C99 functions +AC_CHECK_LIB([m],[round],[AC_DEFINE([HAVE_ROUND],[1],["c99 function"])]) +AC_CHECK_LIB([m],[roundf],[AC_DEFINE([HAVE_ROUNDF],[1],["c99 function"])]) + # Let the user override this AC_ARG_ENABLE(cmath, AC_HELP_STRING([--enable-cmath],[Include complex math functions]), |