aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-11-04 09:08:58 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-11-04 09:08:58 +0000
commitf95cb9e6e2b6c81f454461ee119a8d7a6a1366d0 (patch)
tree017917250a70c8f084d296d0595dcefbc659a789 /configure
parente79bfe9eddf4e40013d00da21933aaab560cca62 (diff)
Compatibilité ocaml 3.09
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7514 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 20 insertions, 8 deletions
diff --git a/configure b/configure
index 856b62d28..f0d134ece 100755
--- a/configure
+++ b/configure
@@ -293,16 +293,25 @@ CAMLBIN=`dirname "$CAMLC"`
CAMLVERSION=`"$CAMLC" -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
case $CAMLVERSION in
- 1.*|2.*|3.00|3.01|3.02|3.03|3.03alpha|3.04|3.05beta|3.05)
+ 1.*|2.*|3.00|3.01|3.02|3.03|3.03alpha|3.04|3.05beta|3.05|3.08.0)
echo "Your version of Objective-Caml is $CAMLVERSION."
- echo "You need Objective-Caml 3.06 or later !"
+ if [ "$CAMLVERSION" = "3.08.0" ] ; then
+ echo "You need Objective-Caml 3.06 or later (to the exception of 3.08.0)!"
+ else
+ echo "You need Objective-Caml 3.06 or later!";
+ fi
+ echo "Configuration script failed!"
+ exit 1;;
+ 3.06|3.07*|3.08*)
+ echo "You have Objective-Caml $CAMLVERSION. Good!";;
+ ?*)
+ CAMLP4COMPAT="-loc loc"
+ 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 ?"
echo "Configuration script failed!"
exit 1;;
- ?*) 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 ?"
- echo "Configuration script failed!"
- exit 1;;
esac
CAMLTAG=OCAML`echo $CAMLVERSION | sed -e "s/\([1-9]\)\.\([0-9]*\).*/\1\2/g"`
@@ -501,6 +510,7 @@ sed -e "s|LOCALINSTALLATION|$local|" \
-e "s|CAMLP4BINDIRECTORY|$CAMLP4BIN|" \
-e "s|CAMLP4LIBDIRECTORY|$CAMLP4LIB|" \
-e "s|CAMLP4TOOL|$camlp4o|" \
+ -e "s|CAMLP4COMPATFLAGS|$CAMLP4COMPAT|" \
-e "s|COQDEBUGFLAG|$coq_debug_flag|" \
-e "s|COQPROFILEFLAG|$coq_profile_flag|" \
-e "s|BESTCOMPILER|$best_compiler|" \
@@ -536,7 +546,9 @@ if test "$coq_debug_flag" = "-g" ; then
fi
# Compatibility with previous name
-ln -s `basename $OCAMLDEBUGCOQ` $COQTOP/dev/ocamldebug-v7
+if [ ! -f $COQTOP/dev/ocamldebug-v7 ] ; then
+ ln -s `basename $OCAMLDEBUGCOQ` $COQTOP/dev/ocamldebug-v7
+fi
echo "If anything in the above is wrong, please restart './configure'"
echo