--- configure.ac.orig 2009-07-24 16:10:32.964084488 +0800 +++ configure.ac 2009-07-24 16:11:30.793631222 +0800 @@ -51,6 +51,14 @@ AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.]) AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation]) AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h]) +AC_SEARCH_LIBS([socket],[socket inet]) +case $host in + *-*-solaris* ) + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) + AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) + AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) + ;; +esac LIBNICE_CFLAGS="-Wall" dnl if asked for, add -Werror if supported