added check for pipe2 and epoll_create1 to configure.ac

This commit is contained in:
hyunghwan.chung
2018-11-13 07:36:04 +00:00
parent 6939433ff0
commit 210e022d92
3 changed files with 12 additions and 5 deletions

9
moo/configure vendored
View File

@ -18384,12 +18384,13 @@ _ACEOF
fi
done
for ac_func in accept4
for ac_func in accept4 pipe2 epoll_create1
do :
ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
if test "x$ac_cv_func_accept4" = xyes; then :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_ACCEPT4 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi