From a8169a718ca48070d4d5bce71fd302ff6148b8f0 Mon Sep 17 00:00:00 2001 From: Pierre Boutillier Date: Fri, 12 Dec 2014 17:49:57 +0100 Subject: Fix #3163 and #3843 part 1 : Cygwin DLLs have extension ".so", not ".dll" --- configure.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ml b/configure.ml index e62ce3f2fa..4e2e34641a 100644 --- a/configure.ml +++ b/configure.ml @@ -12,7 +12,7 @@ open Printf let coq_version = "trunk" -let coq_macos_version = "8.4.99" (** "[...] should be a string comprised of +let coq_macos_version = "8.4.90" (** "[...] should be a string comprised of three non-negative, period-separed integers [...]" *) let vo_magic = 8511 let state_magic = 58511 @@ -154,6 +154,7 @@ let safe_remove f = (** The PATH list for searching programs *) let os_type_win32 = (Sys.os_type = "Win32") +let os_type_cygwin = (Sys.os_type = "Cygwin") let global_path = try string_split (if os_type_win32 then ';' else ':') (Sys.getenv "PATH") @@ -412,8 +413,6 @@ let rec try_archs = function | _ :: rest -> try_archs rest | [] -> query_arch () -let os_type_cygwin = (Sys.os_type = "Cygwin") - let arch = match !Prefs.arch with | Some a -> a | None -> @@ -427,7 +426,8 @@ let arch = match !Prefs.arch with let arch_win32 = (arch = "win32") -let exe,dll = if arch_win32 then ".exe",".dll" else "", ".so" +let exe = if arch_win32 then ".exe" else "" +let dll = if os_type_win32 then ".dll" else ".so" (** * VCS -- cgit v1.2.3