host_os=`uname -s`
case $CC-$host_os in
- gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD)
+ gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD | gcc-*SunOS* | cc-*SunOS* )
LOADED=bin/loaded
LOADED_OPT="-shared -fPIC"
echo "Using gcc on $host_os: will compile dynamically loaded module"
AC_SEARCH_LIBS([inet_pton], [nsl socket resolv])
AC_SEARCH_LIBS([inet_ntop], [nsl socket resolv])
+AC_CHECK_FUNCS_ONCE(getaddrinfo)
+
dnl "Export" these variables
AC_SUBST(BIND_8_COMPAT)