-#detect ocamllex
-OCAMLLEX=ocamllex
-AC_ARG_WITH([ocamllex],
- AS_HELP_STRING([--with-ocamllex=PATH], [location of the ocamllex binary]),
- [OCAMLLEX="$withval"])
-AC_MSG_CHECKING([for ocamllex ($OCAMLLEX)])
-OCAMLLEX_VERSION=$($OCAMLLEX -version 2>/dev/null || echo foo)
-case "$OCAMLLEX_VERSION" in
+
+#detect camlp4
+CAMLP4=camlp4
+AC_ARG_WITH([camlp4],
+ AS_HELP_STRING([--with-camlp4=PATH], [location of the camlp4 binary]),
+ [CAMLP4="$withval"])
+AC_MSG_CHECKING([for camlp4 ($CAMLP4)])
+CAMLP4_VERSION=$($CAMLP4 -version 2>/dev/null || echo foo)
+case "$CAMLP4_VERSION" in