Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnumeric
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
375
Issues
375
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gnumeric
Commits
00b63c67
Commit
00b63c67
authored
Mar 11, 2002
by
Morten Welinder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for the right functions (doh!) and be cross-compiler friendly.
parent
075f584b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
configure.in
configure.in
+6
-10
No files found.
configure.in
View file @
00b63c67
...
@@ -132,9 +132,6 @@ AC_ARG_WITH(long_double,
...
@@ -132,9 +132,6 @@ AC_ARG_WITH(long_double,
fi
fi
AC_MSG_CHECKING([checking for working ynl])
AC_MSG_CHECKING([checking for working ynl])
if false; then
AC_CHECK_FUNCS(ynl)
fi
AC_TRY_RUN([
AC_TRY_RUN([
#include <math.h>
#include <math.h>
#ifdef HAVE_SUNMATH_H
#ifdef HAVE_SUNMATH_H
...
@@ -147,12 +144,10 @@ AC_ARG_WITH(long_double,
...
@@ -147,12 +144,10 @@ AC_ARG_WITH(long_double,
}],
}],
[AC_DEFINE(HAVE_YNL)
[AC_DEFINE(HAVE_YNL)
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
AC_MSG_RESULT(no),
[AC_CHECK_FUNCS(ynl)])
AC_MSG_CHECKING([checking for working erf and erfc])
AC_MSG_CHECKING([checking for working erf and erfc])
if false; then
AC_CHECK_FUNCS(erf erfc)
fi
AC_TRY_RUN([
AC_TRY_RUN([
#include <math.h>
#include <math.h>
#ifdef HAVE_SUNMATH_H
#ifdef HAVE_SUNMATH_H
...
@@ -160,15 +155,16 @@ AC_ARG_WITH(long_double,
...
@@ -160,15 +155,16 @@ AC_ARG_WITH(long_double,
#endif
#endif
int main ()
int main ()
{
{
long double l1 = erf (1.2L);
long double l1 = erf
l
(1.2L);
long double l2 = erfc (1.2L);
long double l2 = erfc
l
(1.2L);
return !(l1 >= 0.91 && l1 <= 0.92 &&
return !(l1 >= 0.91 && l1 <= 0.92 &&
l2 >= 0.08 && l2 <= 0.09);
l2 >= 0.08 && l2 <= 0.09);
}],
}],
[AC_DEFINE(HAVE_ERF)
[AC_DEFINE(HAVE_ERF)
AC_DEFINE(HAVE_ERFC)
AC_DEFINE(HAVE_ERFC)
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
AC_MSG_RESULT(no),
[AC_CHECK_FUNCS(erfl erfcl)])
float_msg="long double (EXPERIMENTAL)"
float_msg="long double (EXPERIMENTAL)"
AC_MSG_WARN([Long double support is experimental -- expect problems])
AC_MSG_WARN([Long double support is experimental -- expect problems])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment