X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=200c2ca6920342f76994eea914b43d75fe4ca42e;hb=c17c1d9aff9c5a31efb34295ca9e0c99f2fe4d5b;hp=b50a511ebe1dd68d029f538ee50eaaaa5821e1de;hpb=a969312321dc6b6f87b5756686251ca4c11916f2;p=ocaml-bitstring.git diff --git a/configure.ac b/configure.ac index b50a511..200c2ca 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.3) +AC_INIT(ocaml-bitmatch,1.9.4) 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,15 @@ if test "x$CAMLP4OF" = "xno"; then AC_MSG_ERROR([You must have camlp4 installed]) fi +dnl Check for Extlib (optional) +AC_CHECK_OCAML_PKG(extlib) +AC_SUBST(pkg_extlib) + +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