summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2025-10-21 23:59:18 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2025-10-21 23:59:18 +0900
commite20df6ee53d7eda6193e67b556f6d34aa208d3dd (patch)
tree3ee034fe56415262961eb8c2bc33b4a08014dabb /configure.ac
parent53985: update git completion for new options in 2.51 (diff)
downloadzsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar.gz
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar.bz2
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar.lz
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar.xz
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.tar.zst
zsh-e20df6ee53d7eda6193e67b556f6d34aa208d3dd.zip
53992: check for declaration of fpurge() instead of link-ability
musl-libc has fpurge() but does not declare it in stdio.h. zsh does not need fpurge() if musl is in use.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 13895bb1d..1f035bc0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1250,7 +1250,7 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
select poll \
readlink faccessx fchdir ftruncate \
fstat lstat lchown fchown fchmod \
- fpurge fseeko ftello \
+ fseeko ftello \
mkfifo _mktemp mkstemp \
waitpid wait3 \
sigqueue \
@@ -1292,6 +1292,9 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
setutxent getutxent endutxent getutent)
AC_FUNC_STRCOLL
+# fpurge exists on musl, but is undeclared in stdio.h and isn't actually required
+AC_CHECK_DECLS([fpurge])
+
# 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.])