Jakub Grajciar | ecfa2aa | 2018-03-26 11:26:34 +0200 | [diff] [blame] | 1 | AC_INIT(libmemif, 2.0) |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 2 | LT_INIT |
| 3 | AM_INIT_AUTOMAKE |
| 4 | AM_SILENT_RULES([yes]) |
| 5 | AC_PREFIX_DEFAULT([/usr]) |
| 6 | |
Jakub Grajciar | c62a63d | 2017-11-20 13:11:50 +0100 | [diff] [blame] | 7 | PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=1], [HAVE_CHECK=0]) |
| 8 | AM_CONDITIONAL([USE_CHECK],[test "$HAVE_CHECK" -eq 1]) |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 9 | |
Jakub Grajciar | 1941871 | 2018-03-13 13:57:50 +0100 | [diff] [blame] | 10 | AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])]) |
| 11 | |
Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 12 | AC_PROG_CC |
| 13 | |
| 14 | AC_OUTPUT([Makefile]) |
| 15 | |
| 16 | AC_CONFIG_MACRO_DIR([m4]) |