+AC_CACHE_CHECK([for WCOREDUMP],userv_cv_hdr_wcoredump,[
+ AC_EGREP_CPP(yes,
+[
+#include <sys/types.h>
+#include <sys/wait.h>
+#ifdef WCOREDUMP
+ yes
+#endif
+],userv_cv_hdr_wcoredump=yes,userv_cv_hdr_wcoredump=no)])
+if test $userv_cv_hdr_wcoredump = yes
+then
+ AC_DEFINE(HAVE_WCOREDUMP)
+fi
+