libdice/configure.ac

29 lines
522 B
Plaintext
Raw Normal View History

2018-02-13 20:27:38 +01:00
AC_PREREQ([2.69])
AC_INIT([libdice], [0.1], [florian@n0la.org])
AM_INIT_AUTOMAKE([subdir-objects])
LT_INIT()
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
2018-02-22 13:38:07 +01:00
PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.0.1])
2018-02-13 20:27:38 +01:00
AC_CHECK_HEADER_STDBOOL()
2018-03-23 16:14:00 +01:00
AC_CHECK_FUNCS([arc4random_uniform],,
2018-02-13 20:27:38 +01:00
[PKG_CHECK_MODULES([BSD], [libbsd])])
AC_CONFIG_FILES([Makefile tests/Makefile])
AC_SEARCH_LIBS([cos], [m], [], [
AC_MSG_ERROR([unable to find the cos() function])
])
2018-03-23 16:14:00 +01:00
PKG_INSTALLDIR
AC_CONFIG_FILES([libdice.pc])
2018-02-13 20:27:38 +01:00
AC_OUTPUT