X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=c102d4281e9078273e11010ee27bc3e5b9e842c1;hb=77f34507469352a2898d77b7c7ea3c5e49499b94;hp=c6d2ac708cf7260ac2f1c905893ac0c9ac7379fd;hpb=ec13c41509db2b7fae9138cde2a8ea0b6d3b3699;p=ocaml-bitstring.git diff --git a/configure.ac b/configure.ac index c6d2ac7..c102d42 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ocaml-bitstring,1.9.7) +AC_INIT(ocaml-bitstring,1.9.8) dnl Check for basic C environment. AC_PROG_CC @@ -74,10 +74,33 @@ AC_SUBST(pkg_cil) dnl Check for /usr/bin/time and get full path. AC_PATH_PROG(TIME,time,no) +if test "x$TIME" = "xno"; then + AC_MSG_ERROR(['time' command not found]) +fi + +dnl Check for diff and get full path. +AC_PATH_PROG(DIFF,diff,no) +if test "x$DIFF" = "xno"; then + AC_MSG_ERROR(['diff' command not found]) +fi +AC_SUBST(DIFF) -dnl Check for gprof. +dnl Check for gprof (optional). AC_CHECK_PROG(GPROF,gprof,gprof,no) +dnl Check for ocaml-bisect (optional) and --enable-coverage. +AC_CHECK_PROG(BISECT_REPORT,bisect-report,bisect-report,no) +AC_ARG_ENABLE([coverage], + [AS_HELP_STRING([--enable-coverage], + [add code coverage information (slow) @<:@default=no@:>@])], + [], + [enable_coverage=no]) + +if test "x$enable_coverage" != "xno" -a "x$BISECT_REPORT" = "xno"; then + AC_MSG_ERROR([You must install ocaml-bisect package to get code coverage]) +fi +AC_SUBST(enable_coverage) + dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile META bitstring_config.ml cil-tools/Makefile])