diff options
author | Lukas Larsson <[email protected]> | 2014-10-28 11:42:58 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-10-28 11:42:58 +0100 |
commit | 3a4433d67cb2f14c5ed69e8eae7b772eebcaa30b (patch) | |
tree | f23b51e249fbf6cae8cb7377b61d38cd8d574d0e /lib/test_server/src/configure.in | |
parent | 3f5685c7354dc481294013cf86d2f9621300c139 (diff) | |
parent | 4d73c647b55977d23c4295073945bd8aeb91ff83 (diff) | |
download | otp-3a4433d67cb2f14c5ed69e8eae7b772eebcaa30b.tar.gz otp-3a4433d67cb2f14c5ed69e8eae7b772eebcaa30b.tar.bz2 otp-3a4433d67cb2f14c5ed69e8eae7b772eebcaa30b.zip |
Merge branch 'sv/isfinite/OTP-12268' into maint
* sv/isfinite/OTP-12268:
Use isfinite() instead of finite() when available
Diffstat (limited to 'lib/test_server/src/configure.in')
-rw-r--r-- | lib/test_server/src/configure.in | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/test_server/src/configure.in b/lib/test_server/src/configure.in index cd723bcd4d..8398825d95 100644 --- a/lib/test_server/src/configure.in +++ b/lib/test_server/src/configure.in @@ -357,7 +357,23 @@ AC_CHECK_FUNCS(usleep) # First check if the library is available, then if we can choose between # two versions of gethostbyname AC_HAVE_LIBRARY(resolv) -AC_CHECK_LIB(resolv, res_gethostbyname,[DEFS="$DEFS -DHAVE_RES_GETHOSTBYNAME=1"]) +AC_CHECK_LIB(resolv, res_gethostbyname,[AC_DEFINE(HAVE_RES_GETHOSTBYNAME,1)]) + +#-------------------------------------------------------------------- +# Check for isfinite +#-------------------------------------------------------------------- + +AC_MSG_CHECKING([for isfinite]) +AC_TRY_LINK([#include <math.h>], + [isfinite(0);], have_isfinite=yes, have_isfinite=no) + +if test $have_isfinite = yes; then + AC_DEFINE(HAVE_ISFINITE,1) + AC_MSG_RESULT(yes) +else + AC_DEFINE(HAVE_FINITE,1) + AC_MSG_RESULT(no) +fi #-------------------------------------------------------------------- # Emulator compatible flags (for drivers) |