mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Merge "eventfd: Disable during cross compilation" into 13
This commit is contained in:
8
configure
vendored
8
configure
vendored
@@ -17797,10 +17797,9 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have usable eventfd support" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have usable eventfd support" >&5
|
||||||
$as_echo_n "checking if we have usable eventfd support... " >&6; }
|
$as_echo_n "checking if we have usable eventfd support... " >&6; }
|
||||||
if test "$cross_compiling" = yes; then :
|
if test "$cross_compiling" = yes; then :
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
$as_echo "cross-compile" >&6; }
|
||||||
as_fn_error $? "cannot run test program while cross compiling
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
@@ -17822,7 +17821,6 @@ $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
|
|||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||||
|
@@ -1104,7 +1104,8 @@ AC_RUN_IFELSE(
|
|||||||
[return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
|
[return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
|
AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no),
|
||||||
|
AC_MSG_RESULT(cross-compile)
|
||||||
)
|
)
|
||||||
|
|
||||||
AST_GCC_ATTRIBUTE(pure)
|
AST_GCC_ATTRIBUTE(pure)
|
||||||
|
Reference in New Issue
Block a user