/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
+/* Define to 1 if you have the `sigaction' function. */
+#undef HAVE_SIGACTION
+
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
done
-for ac_func in select
+for ac_func in select sigaction
do :
- ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
-if test "x$ac_cv_func_select" = 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_SELECT 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
AC_PROG_LIBTOOL
AC_CHECK_HEADERS([sys/epoll.h])
-AC_CHECK_FUNCS([select])
+AC_CHECK_FUNCS([select sigaction])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
#error Could not find select. Was ist los?
#endif
+/* make sure we offer compat symbols that can be found by autoconf */
+#ifndef HAVE_SIGACTION
+#error sigaction not found. libc problem.
+#endif
+
int
main()
{