X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=36b6d26a8e697ce49789896822d24b7249d15b5e;hb=0fb4b24ebe3b85c935786f8e3e472d0d2292744e;hp=3f6a9e4d88fdda35c2b937ca10637c3ceb92e3a7;hpb=b7dfef5d08242c2f5ed81f526d7742768d4d6223;p=ocaml-bitstring.git diff --git a/configure.ac b/configure.ac index 3f6a9e4..36b6d26 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# Bitmatch syntax extension. +# Bitstring syntax extension. # Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones # # This library is free software; you can redistribute it and/or @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ocaml-bitmatch,0.4) +AC_INIT(ocaml-bitstring,1.9.7) 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 bitstring_config.ml cil-tools/Makefile]) AC_OUTPUT