diff options
Diffstat (limited to 'Build/source/libs/zziplib/configure.ac')
-rw-r--r-- | Build/source/libs/zziplib/configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Build/source/libs/zziplib/configure.ac b/Build/source/libs/zziplib/configure.ac index 98ff5c7fb40..52cebfedd7d 100644 --- a/Build/source/libs/zziplib/configure.ac +++ b/Build/source/libs/zziplib/configure.ac @@ -37,11 +37,13 @@ AC_CHECK_HEADERS([fnmatch.h]) # --------------------------------------------------------------- AC_MSG_CHECKING([whether can use mmap for file scanning]) enable_mmap='no (just a bit slower)' +AS_CASE([$host_os], + [mingw*], [], + [dnl test "x$ac_cv_header_winbase_h" = xyes && enable_mmap="yes, winbase.h" test "x$ac_cv_header_sys_mman_h" = xyes && enable_mmap="yes, sys/mman.h" -case "$enable_mmap" in - yes*) ZZIPLIB_DEFINES='-D_USE_MMAP';; -esac +AS_CASE([$enable_mmap], + [yes*], [ZZIPLIB_DEFINES='-D_USE_MMAP'])]) AC_MSG_RESULT([$enable_mmap]) AC_SUBST([ZZIPLIB_DEFINES]) @@ -79,8 +81,7 @@ KPSE_RESTORE_FLAGS echo timestamp >config.force fi -ZZIPLIB_TREE=zziplib-[]zziplib_version -AC_SUBST([ZZIPLIB_TREE]) +AC_SUBST([ZZIPLIB_TREE], [zziplib-]zziplib_version) # ----------------------------------------------------------------------- AC_MSG_RESULT([creating include/zzip/_msvc.in via zzip/_msvc.sed of config.h.in]) |