X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=35bac9d4817c51a4e0feba5cbc1a03e6749d4823;hb=0413e3eaa87aba7c3a7dd0c08c69f14ca6766661;hp=182c2d4828941e3396b5c33059a7ee7269a8d525;hpb=becf8636190d443cc047c82d2464d7af72eeda2f;p=ocaml-bitstring.git diff --git a/configure.ac b/configure.ac index 182c2d4..35bac9d 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-bitmatch,0.7) +AC_INIT(ocaml-bitmatch,1.9) dnl Check for basic C environment. AC_PROG_CC @@ -29,6 +29,14 @@ test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) AC_PROG_CC_C_O +dnl Check for native endianness. +AC_C_BIGENDIAN( + [NATIVEENDIAN=BigEndian], + [NATIVEENDIAN=LittleEndian], + [AC_MSG_ERROR([Machine endianness could not be determined])] +) +AC_SUBST(NATIVEENDIAN) + dnl Check for basic OCaml environment & findlib. AC_PROG_OCAML AC_PROG_FINDLIB @@ -43,7 +51,11 @@ if test "x$CAMLP4OF" = "xno"; then AC_MSG_ERROR([You must have camlp4 installed]) fi +dnl Check for CIL (optional) +AC_CHECK_OCAML_PKG(cil) +AC_SUBST(pkg_cil) + dnl Produce output files. AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile META]) +AC_CONFIG_FILES([Makefile META bitmatch_config.ml cil-tools/Makefile]) AC_OUTPUT