fi\r
])\r
\r
-dnl This macro determins if the specified struct contains a specific member.\r
-dnl Syntax:\r
-dnl CARES_CHECK_STRUCT_MEMBER(headers, struct name, member name, if found, [if not found])\r
-\r
-AC_DEFUN([CARES_CHECK_STRUCT_MEMBER], [\r
- AC_MSG_CHECKING([if struct $2 has member $3])\r
- AC_TRY_COMPILE([$1], \r
- [\r
- struct $2 struct_instance;\r
- struct_instance.$3 = 0;\r
- ], ac_struct="yes", ac_found="no")\r
- if test "$ac_struct" = "yes" ; then\r
- AC_MSG_RESULT(yes)\r
- $4\r
- else\r
- AC_MSG_RESULT(no)\r
- $5\r
- fi\r
-])\r
-\r
dnl This macro determines if the specified constant exists in the specified file\r
dnl Syntax:\r
dnl CARES_CHECK_CONSTANT(headers, constant name, if found, [if not found])\r
)\r
\r
if test "$ac_have_sockaddr_in6" = "yes" ; then\r
-CARES_CHECK_STRUCT_MEMBER(\r
+AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,\r
+ AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,\r
+ [Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])\r
+ , ,\r
[\r
#ifdef HAVE_SYS_TYPES_H\r
#include <sys/types.h>\r
#include <netinet/in.h>\r
#endif\r
], [sockaddr_in6], [sin6_scope_id],\r
- AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,\r
- [Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])\r
)\r
fi\r
\r