6 dnl Check for struct msghdr
9 AC_DEFUN([AC_TYPE_MSGHDR], [
11 AC_CACHE_CHECK(for struct msghdr, ac_cv_struct_msghdr, [
12 AC_EGREP_HEADER([struct msghdr], sys/socket.h,
13 ac_cv_struct_msghdr=yes,
14 ac_cv_struct_msghdr=no)
16 if test "$ac_cv_struct_msghdr" = "yes"; then
17 AC_DEFINE(HAVE_STRUCT_MSGHDR, 1, [define if you have struct msghdr])