diff options
| author | jbapple | 2014-10-27 17:49:43 -0700 |
|---|---|---|
| committer | Pierre Boutillier | 2014-10-28 09:09:56 +0100 |
| commit | 2d88f205592d279bc7a57e0901522214770c2948 (patch) | |
| tree | e6e4994352b5eaaef32ae9603ba7a016703cbb4b | |
| parent | a138fad67455ed2f48a222e4697d24d5aafed30b (diff) | |
Allow camlp5 to have version numbers like "6.09-exp"
| -rw-r--r-- | configure.ml | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
