Bytevectors Section 2.3: "Operations on Integers of Arbitrary Size"
[guile-r6rs-libs.git] / configure.ac
blobe748832898e53397f8ff992c849a34bee2a56eda
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([guile-r6rs], [0.0], [ludovic.courtes@laas.fr])
6 AC_CONFIG_AUX_DIR(build-aux)
8 AM_INIT_AUTOMAKE(guile-r6rs, 0.0)
10 AC_CONFIG_SRCDIR([src/bytevector.c])
11 AC_CONFIG_HEADER([src/config.h])
13 # Checks for programs.
14 AC_PROG_CC
15 AC_PROG_LIBTOOL
17 # Checks for Guile.
18 GUILE_PROGS
19 GUILE_FLAGS
20 AC_PATH_PROG([guile_snarf], [guile-snarf], [not-found])
21 if test "x$guile_snarf" = "xnot-found"; then
22    AC_MSG_ERROR([`guile-snarf' not found.  Please install Guile 1.8.x or later.])
24 GUILE_SITE_DIR
26 # Checks for header files.
27 AC_HEADER_STDC
28 AC_CHECK_HEADERS([string.h byteswap.h limits.h])
29 AC_CHECK_HEADER([gmp.h], [:],
30   AC_MSG_ERROR([GMP headers not found.  Please install it first.]))
32 # Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_C_INLINE
35 AC_TYPE_SIZE_T
37 # Checks for library functions.
38 AC_FUNC_MEMCMP
40 # Low-level details.
41 AC_C_BIGENDIAN
43 AC_CONFIG_FILES([Makefile
44                  modules/Makefile
45                  src/Makefile
46                  tests/Makefile
47                  pre-inst-guile])
48 AC_CONFIG_COMMANDS([pre-inst-guile-exec], [chmod +x pre-inst-guile])
50 AC_OUTPUT