summaryrefslogtreecommitdiff
path: root/dev/ocamldebug-coq.template
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ocamldebug-coq.template')
-rw-r--r--dev/ocamldebug-coq.template6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev/ocamldebug-coq.template b/dev/ocamldebug-coq.template
index 44680d6d..2d1c6289 100644
--- a/dev/ocamldebug-coq.template
+++ b/dev/ocamldebug-coq.template
@@ -7,7 +7,11 @@ export COQLIB=COQLIBDIRECTORY
export COQTH=$COQLIB/theories
CAMLBIN=CAMLBINDIRECTORY
OCAMLDEBUG=$CAMLBIN/ocamldebug
-export CAMLP4LIB=`$CAMLBIN/camlp4 -where`
+if [ -x "$CAMLBIN/camlp5" ]; then
+ export CAMLP4LIB=`$CAMLBIN/camlp5 -where`
+else
+ export CAMLP4LIB=`$CAMLBIN/camlp4 -where`
+fi
exec $OCAMLDEBUG \
-I $CAMLP4LIB \