mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
43357: isinf/isnan can be macros so need custom configure tests
This commit is contained in:
parent
410c30a25b
commit
43e9a1dc97
2 changed files with 24 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2018-08-31 Oliver Kiddle <okiddle@yahoo.co.uk>
|
2018-08-31 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||||
|
|
||||||
|
* 43357: configure.ac: isinf/isnan can be macros rather
|
||||||
|
than functions so need a custom configure test
|
||||||
|
|
||||||
* unposted: Completion/Unix/Command/_git: git describe's
|
* unposted: Completion/Unix/Command/_git: git describe's
|
||||||
--long and --abbrev options are not mutually exclusive
|
--long and --abbrev options are not mutually exclusive
|
||||||
|
|
||||||
|
|
22
configure.ac
22
configure.ac
|
@ -1278,7 +1278,6 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
|
||||||
erand48 open_memstream \
|
erand48 open_memstream \
|
||||||
posix_openpt \
|
posix_openpt \
|
||||||
wctomb iconv \
|
wctomb iconv \
|
||||||
isinf isnan \
|
|
||||||
grantpt unlockpt ptsname \
|
grantpt unlockpt ptsname \
|
||||||
htons ntohs \
|
htons ntohs \
|
||||||
regcomp regexec regerror regfree \
|
regcomp regexec regerror regfree \
|
||||||
|
@ -1291,6 +1290,27 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
|
||||||
setutxent getutxent endutxent getutent)
|
setutxent getutxent endutxent getutent)
|
||||||
AC_FUNC_STRCOLL
|
AC_FUNC_STRCOLL
|
||||||
|
|
||||||
|
# isinf() and isnan() can exist as either functions or macros.
|
||||||
|
AH_TEMPLATE([HAVE_ISINF],
|
||||||
|
[Define to 1 if you have the `isinf' macro or function.])
|
||||||
|
AC_MSG_CHECKING([for isinf])
|
||||||
|
AC_LINK_IFELSE([AC_LANG_SOURCE(
|
||||||
|
[[#include <math.h>
|
||||||
|
int main () { return (isinf(1.0) != 0); }]])],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE([HAVE_ISINF])],
|
||||||
|
[AC_MSG_RESULT([no])])
|
||||||
|
|
||||||
|
AH_TEMPLATE([HAVE_ISNAN],
|
||||||
|
[Define to 1 if you have the `isnan' macro or function.])
|
||||||
|
AC_MSG_CHECKING([for isnan])
|
||||||
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <math.h>
|
||||||
|
int main () { return (isnan(1.0) != 0); }]])],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE([HAVE_ISNAN])],
|
||||||
|
[AC_MSG_RESULT([no])])
|
||||||
|
|
||||||
AH_TEMPLATE([REALPATH_ACCEPTS_NULL],
|
AH_TEMPLATE([REALPATH_ACCEPTS_NULL],
|
||||||
[Define if realpath() accepts NULL as its second argument.])
|
[Define if realpath() accepts NULL as its second argument.])
|
||||||
AC_CACHE_CHECK([if realpath accepts NULL],
|
AC_CACHE_CHECK([if realpath accepts NULL],
|
||||||
|
|
Loading…
Reference in a new issue