From 2d88f205592d279bc7a57e0901522214770c2948 Mon Sep 17 00:00:00 2001 From: jbapple Date: Mon, 27 Oct 2014 17:49:43 -0700 Subject: Allow camlp5 to have version numbers like "6.09-exp" --- configure.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ml b/configure.ml index 68674805bc..e62ce3f2fa 100644 --- a/configure.ml +++ b/configure.ml @@ -566,7 +566,7 @@ let check_camlp5_version () = let version_line, _ = run ~err:StdOut camlexec.p4 ["-v"] in let version = List.nth (string_split ' ' version_line) 2 in match string_split '.' version with - | major::minor::_ when (s2i major, s2i minor) >= (5,1) -> + | major::minor::_ when s2i major > 5 || (s2i major, s2i minor) >= (5,1) -> printf "You have Camlp5 %s. Good!\n" version | _ -> failwith "bad version" with _ -> die "Error: unsupported Camlp5 (version < 5.01 or unrecognized).\n" -- cgit v1.2.3