X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=7e6457b438453cbaf13ad9fc1311d11b63a41f6b;hb=2333257b4dfa7e40eb6b7240fc9cd08b313e0be6;hp=df4cf8c09fbc7e8be97f04c2a26137641633d976;hpb=0b2bee9a672e5884f17ef231daf12daa89c26126;p=virt-df.git diff --git a/configure.ac b/configure.ac index df4cf8c..7e6457b 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(virt-df,2.0.1) +AC_INIT(virt-df,2.0.2) AC_PROG_INSTALL @@ -29,6 +29,8 @@ if test "x$OCAMLFIND" = "x"; then AC_MSG_ERROR([OCaml findlib is required]) fi +AC_CHECK_OCAML_WORD_SIZE(OCAML_WORD_SIZE) + dnl Use ocamlfind to find the required packages ... dnl Check for required OCaml packages. @@ -111,6 +113,20 @@ EOT fi done +dnl Enable type annotation files (always, there's no penalty for doing +dnl this). Use C-c C-t in emacs to print the type of an expression. +OCAMLCFLAGS="-dtypes -g" +OCAMLOPTFLAGS="" + +dnl Enable profiling support for native code. +AC_ARG_ENABLE([profiling], + [AS_HELP_STRING([--enable-profiling], + [enable profiling for native code])], + [OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p"]) + +AC_SUBST(OCAMLCFLAGS) +AC_SUBST(OCAMLOPTFLAGS) + dnl Summary. echo "------------------------------------------------------------" echo "Thanks for downloading" $PACKAGE_STRING