summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Klimov <jimklimov@gmail.com>2022-08-08 15:10:26 +0200
committerJoe Orton <jorton@apache.org>2022-10-05 09:40:40 +0100
commitfcdf1cee4d98e64510a4d28f7974e59f3653913c (patch)
tree2efd866cb64376c6a8aec94e2a4b35ed4e2b2f52
parent4d787ab180b345fa1392f58662706544bf787447 (diff)
downloadneon-git-fcdf1cee4d98e64510a4d28f7974e59f3653913c.tar.gz
macros/neon.m4: fix LFS 64-bit support detection for Windows builds with MSYS2/MINGW
Lifted from https://build.opensuse.org/package/view_file/windows:mingw:win32/mingw32-libneon/neon-0.29.1-mingw.patch?expand=1
-rw-r--r--macros/neon.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index af1410d..1144f15 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -549,7 +549,12 @@ else
NEON_FORMAT(off64_t)
ne_lfsok=no
AC_CHECK_FUNCS([strtoll strtoq], [ne_lfsok=yes; break])
- AC_CHECK_FUNCS([lseek64 fstat64], [], [ne_lfsok=no; break])
+ AS_CASE([$ne_cv_os_uname],
+ [MINGW*|MSYS_NT*],
+ [AC_CHECK_FUNCS([lseek64], [], [ne_lfsok=no; break])],
+ dnl Default:
+ [AC_CHECK_FUNCS([lseek64 fstat64], [], [ne_lfsok=no; break])]
+ )
if test x$ne_lfsok = xyes; then
NE_ENABLE_SUPPORT(LFS, [LFS (large file) support enabled])
NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"