The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
dnl ---------------------------------------------------------------------------
dnl Macro: PROTOCOL_BINARY_TEST
dnl ---------------------------------------------------------------------------
AC_DEFUN([PROTOCOL_BINARY_TEST],
  [AC_LANG_PUSH([C])
   save_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -I${srcdir}"
   AC_RUN_IFELSE([
      AC_LANG_PROGRAM([[
#include <inttypes.h>
#include "libmemcached/memcached/protocol_binary.h"
   ]],[[
      protocol_binary_request_set request;
      if (sizeof(request) != sizeof(request.bytes)) {
         return 1;
      }
   ]])],, AC_MSG_ERROR([Unsupported struct padding done by compiler.]))
   CFLAGS="$save_CFLAGS"
   AC_LANG_POP
])

dnl ---------------------------------------------------------------------------
dnl End Macro: PROTOCOL_BINARY_TEST
dnl ---------------------------------------------------------------------------