aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authornotin2006-10-11 13:04:47 +0000
committernotin2006-10-11 13:04:47 +0000
commit8a03b56c47ed0d216f797fefd531286d6b74a3fb (patch)
tree38576a826c17296e1a2bdedb80e61daf414152e7 /configure
parentd0f5a4368666d86aba25d0700d49fea5e703f407 (diff)
Ajout d'une option -annotate au configure+ changement du comportement par défaut de make
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9232 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index de9e4405c2..3d70ed7cef 100755
--- a/configure
+++ b/configure
@@ -64,6 +64,8 @@ usage () {
echo -e "\tAdd debugging information in the Coq executables\n"
echo "-profile"
echo -e "\tAdd profiling information in the Coq executables\n"
+ echo "-annotate"
+ echo -e "\tCompiles Coq with -dtypes option"
}
@@ -81,6 +83,7 @@ camlp4oexec=camlp4o
coq_debug_flag=
coq_profile_flag=
+coq_annotate_flag=
best_compiler=opt
gcc_exec=gcc
@@ -190,6 +193,7 @@ while : ; do
-byte-only|-byteonly|--byteonly|--byte-only) best_compiler=byte;;
-debug|--debug) coq_debug_flag=-g;;
-profile|--profile) coq_profile_flag=-p;;
+ -annotate|--annotate) coq_annotate_flag=-dtypes;;
*) echo "Unknown option \"$1\"." 1>&2; usage; exit 2;;
esac
shift
@@ -279,7 +283,8 @@ case $camldir_spec in
*/) CAMLC="${CAMLC}"$bytecamlc;;
*) CAMLC="${CAMLC}"/$bytecamlc;;
esac
- esac;;
+ esac
+ CAMLBIN=`dirname "$CAMLC"`;;
yes) CAMLC=$camldir/$bytecamlc
CAMLBIN=`dirname "$CAMLC"`
@@ -694,6 +699,7 @@ sed -e "s|LOCALINSTALLATION|$local|" \
-e "s|CAMLP4COMPATFLAGS|$CAMLP4COMPAT|" \
-e "s|COQDEBUGFLAG|$coq_debug_flag|" \
-e "s|COQPROFILEFLAG|$coq_profile_flag|" \
+ -e "s|CAMLANNOTATEFLAG|$coq_annotate_flag|" \
-e "s|BESTCOMPILER|$best_compiler|" \
-e "s|EXECUTEEXTENSION|$EXE|" \
-e "s|BYTECAMLC|$bytecamlc|" \