git.annexia.org
/
ocaml-bitstring.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Map 8-bit int element arrays to strings
[ocaml-bitstring.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
182c2d4
..
35bac9d
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-17,7
+17,7
@@
dnl Process this file with autoconf to produce a configure script.
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
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
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
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
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])
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
AC_OUTPUT