]> git.marmaro.de Git - mmh/blobdiff - configure.ac
Replaced run-time detection of hard-link support with compile- time
[mmh] / configure.ac
index daec29c634a27f04acb851c723c9537979238796..a0602df339ea865215fd9c656bbea617f36cf630 100644 (file)
@@ -327,6 +327,13 @@ dnl then use `vi' as the default.
 AS_IF([test -z "$editorpath"], [editorpath="$vipath"])
 AC_SUBST([editorpath])dnl
 
+dnl Cygwin FAT filesystems do not support hard links.  So use cp instead,
+dnl even if running on an NTFS or other filesystem.
+AS_CASE(["$host_os"],
+  [cygwin*],[LINK_FILE=cp],
+  [LINK_FILE=ln])
+AC_SUBST([LINK_FILE])
+
 dnl ----------------------------------------------------------
 dnl FIND MAIL SPOOL AND SEE IF WE NEED TO MAKE inc SETGID MAIL
 dnl ----------------------------------------------------------