mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([urcrypt], [1.0])
|
|
AC_CONFIG_SRCDIR([urcrypt.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AC_CONFIG_MACRO_DIR([build-aux/m4])
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror])
|
|
AM_PROG_AR
|
|
LT_INIT
|
|
AC_PROG_CC
|
|
AC_CHECK_LIB([gmp], [mpz_init])
|
|
AC_CHECK_LIB([aes_siv], [AES_SIV_CTX_new])
|
|
|
|
PKG_CHECK_MODULES([SECP256K1], [libsecp256k1])
|
|
|
|
## Checks for libraries.
|
|
#AC_CHECK_LIB([ed25519], [main])
|
|
## FIXME: Replace `main' with a function in `-lgmp':
|
|
## FIXME: Replace `main' with a function in `-lsecp256k1':
|
|
#AC_CHECK_LIB([secp256k1], [main])
|
|
## FIXME: Replace `main' with a function in `-lssl':
|
|
#AC_CHECK_LIB([ssl], [main])
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([limits.h stddef.h stdint.h stdlib.h string.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_CHECK_HEADER_STDBOOL
|
|
AC_TYPE_INT32_T
|
|
AC_TYPE_INT64_T
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_UINT32_T
|
|
AC_TYPE_UINT64_T
|
|
AC_TYPE_UINT8_T
|
|
|
|
# Checks for library functions.
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|