aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-06-23 10:46:42 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-06-23 10:46:42 +0200
commit0d55670bdeebb96483a20e188f1e2f6b939c017e (patch)
treee772e9309ca307dc86faeeb6d6d97f46fc8019b7
parent3909905d92222591a54a010959481d3d3c1b478a (diff)
parent299cbc41f74aa4dd8ddfd14ca9da3a92cff34474 (diff)
Merge PR#729: Fixing an inconsistency between configure and configure.ml
-rwxr-xr-xconfigure5
-rw-r--r--configure.ml2
2 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 79c512f8a..4f11b2c2d 100755
--- a/configure
+++ b/configure
@@ -3,7 +3,7 @@
## This micro-configure shell script is here only to
## launch the real configuration via ocaml
-cmd=ocaml
+ocaml=ocaml
script=./configure.ml
if [ ! -f $script ]; then
@@ -16,10 +16,11 @@ fi
## Parse the args, only looking for -camldir
## We avoid using shift to keep "$@" intact
+cmd=$ocaml
last=
for i; do
case $last in
- -camldir|--camldir) cmd="$i/ocaml"; break;;
+ -camldir) cmd="$i/$ocaml"; break;;
esac
last=$i
done
diff --git a/configure.ml b/configure.ml
index caef75271..560577f47 100644
--- a/configure.ml
+++ b/configure.ml
@@ -349,6 +349,8 @@ let args_options = Arg.align [
" URL of the coq website";
"-force-caml-version", Arg.Set Prefs.force_caml_version,
" Force OCaml version";
+ "-camldir", Arg.String (fun _ -> ()),
+ "<dir> Specifies path to ocaml for running configure script";
]
let parse_args () =