X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=f6bfedc3e792b34b02776a6e317134e519c4f1c9;hb=a8bf42a6bd16d6a2067f0e1475e440dbdb5bc153;hp=ab732a84c7ab3e9e702210fb49c7e61dfd18590d;hpb=dffbeca2dd8a39d66026201760a715f5b25762e2;p=ocaml-bitstring.git diff --git a/configure.ac b/configure.ac index ab732a8..f6bfedc 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.8) +AC_INIT(ocaml-bitmatch,1.1) 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 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 @@ -45,5 +53,5 @@ fi dnl Produce output files. AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile META]) +AC_CONFIG_FILES([Makefile META bitmatch_config.ml]) AC_OUTPUT