(initrx): try random port if the default is busy
[arla.git] / cf / linux-func-init-mutex.m4
blob855b1834700382b353af9e398dbdd4f347e9c063
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_LINUX_FUNC_INIT_MUTEX], [
6 AC_CACHE_CHECK([for init_MUTEX],
7 ac_cv_func_init_mutex, [
8 save_CPPFLAGS="$CPPFLAGS"
9 CPPFLAGS="$CPPFLAGS $test_KERNEL_CFLAGS $KERNEL_CPPFLAGS"
10 AC_EGREP_CPP([init_MUTEX],
11 [#include <asm/semaphore.h>
12 #ifdef init_MUTEX
13 init_MUTEX
14 #endif],
15 ac_cv_func_init_mutex=yes,
16 ac_cv_func_init_mutex=no)]
17 CPPFLAGS="$save_CPPFLAGS"
19 if test "$ac_cv_func_init_mutex" = "yes"; then
20   AC_DEFINE(HAVE_INIT_MUTEX, 1,
21         [define if you have a function init_MUTEX])