From f56720fc7b21e727d26e5a8363e5a116227cf5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 19 Feb 2013 09:32:08 +0000 Subject: [PATCH] configure: use AC_CHECK_FUNC to check for mmap --- configure.ac | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index b9721f984e..3fecd5cee8 100644 --- a/configure.ac +++ b/configure.ac @@ -406,16 +406,7 @@ case $ac_cv_audioresample_format in esac dnl Check for mmap (needed by allocators library) -AC_MSG_CHECKING(if mmap is supported) -AC_TRY_LINK( - [#include - #include - #include ], - [char * p = (char *)mmap(NULL, 10, PROT_READ, MAP_SHARED, -1, 2); - munmap(p,10);], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_MMAP, 1, [Defined if mmap is supported])], - [AC_MSG_RESULT(no)] ) +AC_CHECK_FUNC([mmap], [AC_DEFINE(HAVE_MMAP, 1, [Defined if mmap is supported])]) dnl *** plug-ins to include ***