-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pal: Handle a missing copysign() function
Some older compilers are missing copysign() and we can't simply replace it with the dsign() macro from SOFA. The main issue is that strtod() can return -0.0 and copysign can correctly note that. When copysign() is missing we have to go back to scanning the string for minus signs.
- Loading branch information
Showing
5 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script | |
AC_REVISION($Revision: 27534 $) | ||
|
||
dnl Initialisation: package name and version number | ||
AC_INIT(pal, 0.1.1, [email protected]) | ||
AC_INIT(pal, 0.1.2, [email protected]) | ||
|
||
dnl Require autoconf-2.50 at least | ||
AC_PREREQ(2.50) | ||
|
@@ -23,6 +23,8 @@ AC_PROG_LIBTOOL | |
# If --with-pic=no is set we should honour that. | ||
AM_CONDITIONAL(NOPIC, test x$pic_mode = xno) | ||
|
||
dnl copysign is a c99 feature | ||
AC_CHECK_FUNCS(copysign) | ||
|
||
dnl Declare the build and use dependencies for this package | ||
STAR_DECLARE_DEPENDENCIES(build, [sofa starutil]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters