diff options
-rw-r--r-- | INSTALL | 1 | ||||
-rw-r--r-- | config/Makefile.template | 2 | ||||
-rwxr-xr-x | configure | 12 |
3 files changed, 12 insertions, 3 deletions
@@ -47,6 +47,7 @@ WHAT DO YOU NEED ? For Ocaml version >= 3.10.0, you also need to install camlp5 (version <= 4.08, or >= 5.01 transitional) + - The num library if with Objective Caml version 4.06.0 or later - GNU Make version 3.81 or later ( diff --git a/config/Makefile.template b/config/Makefile.template index 5882b94..5459ee5 100644 --- a/config/Makefile.template +++ b/config/Makefile.template @@ -79,7 +79,7 @@ CAMLOPTLINK="NATIVECAMLC" CAMLMKTOP="CAMLMKTOPEXEC" # Caml flags -CAMLFLAGS=-rectypes CAMLANNOTATEFLAG CAMLWARNINGFLAG +CAMLFLAGS=-rectypes CAMLANNOTATEFLAG CAMLWARNINGFLAG CAMLSAFESTRINGFLAG # Compilation debug flags CAMLDEBUG=COQDEBUGFLAG @@ -106,6 +106,7 @@ coq_debug_flag_opt= coq_profile_flag= coq_annotate_flag= coq_warning_flag= +coq_safe_string_flag= best_compiler=opt cflags="-fno-defer-pop -Wall -Wno-unused" @@ -438,11 +439,17 @@ case $CAMLVERSION in CAMLP4COMPAT="-loc loc" echo "Warning: OCaml 4.02.0 suffers from a bug inducing" echo "very slow compilation times";; - ?*) + 4.0[0-5]*) # From 4.03.0, 4.00.0's warning 31, irrelevant for us, is fatal when activated CAMLP4COMPAT="-loc loc" coq_warning_flag="-w -31" echo "You have Objective-Caml $CAMLVERSION. Good!";; + ?*) + # From 4.06.0 + CAMLP4COMPAT="-loc loc" + coq_warning_flag="-w -31" + coq_safe_string_flag=-unsafe-string + echo "You have Objective-Caml $CAMLVERSION. Good!";; *) echo "I found the Objective-Caml compiler but cannot find its version number!" echo "Is it installed properly?" @@ -934,7 +941,7 @@ cat << END_OF_COQ_CONFIG > $mlconfig_file (* DO NOT EDIT THIS FILE: automatically generated by ../configure *) let local = $local -let coqrunbyteflags = "$ESCCOQRUNBYTEFLAGS $coq_warning_flag" +let coqrunbyteflags = "$ESCCOQRUNBYTEFLAGS $coq_warning_flag $coq_safe_string_flag" let coqlib = "$ESCLIBDIR" let coqsrc = "$ESCSRCDIR" let camlbin = "$ESCCAMLDIR" @@ -1016,6 +1023,7 @@ sed -e "s|LOCALINSTALLATION|$local|" \ -e "s|COQPROFILEFLAG|$coq_profile_flag|" \ -e "s|CAMLANNOTATEFLAG|$coq_annotate_flag|" \ -e "s|CAMLWARNINGFLAG|$coq_warning_flag|" \ + -e "s|CAMLSAFESTRINGFLAG|$coq_safe_string_flag|" \ -e "s|CCOMPILEFLAGS|$cflags|" \ -e "s|BESTCOMPILER|$best_compiler|" \ -e "s|DLLEXTENSION|$DLLEXT|" \ |