1330102Sdelphijdnl ######################################################################
2330102Sdelphijdnl AF_UNSPEC checks
3330102SdelphijAC_DEFUN([NTP_AF_UNSPEC], [
4330102Sdelphij
5330102Sdelphij# We could do a cv check here, but is it worth it?
6330102Sdelphij
7330102SdelphijAC_COMPILE_IFELSE(
8330102Sdelphij  [AC_LANG_PROGRAM(
9330102Sdelphij    [[
10330102Sdelphij    	#include <sys/socket.h>
11330102Sdelphij	#ifndef AF_UNSPEC
12330102Sdelphij	#include "Bletch: AF_UNSPEC is undefined!"
13330102Sdelphij	#endif
14330102Sdelphij	#if AF_UNSPEC != 0
15330102Sdelphij	#include "Bletch: AF_UNSPEC != 0"
16330102Sdelphij	#endif
17330102Sdelphij    ]],
18330102Sdelphij    [AC_MSG_NOTICE([AF_UNSPEC is zero, as expected.])],
19330102Sdelphij    [AC_MSG_ERROR([AF_UNSPEC is not zero on this platform!])]
20330102Sdelphij  )]
21330102Sdelphij)])
22330102Sdelphij
23330102Sdelphijdnl ######################################################################
24