summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/configure.ac
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-03-13 13:57:50 +0100
committerJakub Grajciar <jgrajcia@cisco.com>2018-03-13 16:13:46 +0100
commit1941871e2622a17e84062c69c234414c4dc2bf4a (patch)
tree1743dcdc712f471839b096bf519173c55fb0a34d /extras/libmemif/configure.ac
parent3464c860650c5d8cc8abf11c7d2faa074105b8d6 (diff)
libmemif: ubuntu 18.04 build fix
Change-Id: I6624cacd625eea6a9b8214f67d14ec162e2c0195 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif/configure.ac')
-rw-r--r--extras/libmemif/configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/libmemif/configure.ac b/extras/libmemif/configure.ac
index 323e1134104..dfe33cf4f34 100644
--- a/extras/libmemif/configure.ac
+++ b/extras/libmemif/configure.ac
@@ -7,6 +7,8 @@ AC_PREFIX_DEFAULT([/usr])
PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=1], [HAVE_CHECK=0])
AM_CONDITIONAL([USE_CHECK],[test "$HAVE_CHECK" -eq 1])
+AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])])
+
AC_PROG_CC
AC_OUTPUT([Makefile])