* configure.ac (AC_CHECK_LIB): Check for socket on Solaris.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 7 Jul 2008 09:31:12 +0000 (11:31 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 7 Jul 2008 09:31:12 +0000 (11:31 +0200)
configure.ac

index ff290deeb6028aca8519e12bf8a642e331add6ba..c8ddf37b8f6824f4b1127bd584f8e11ad5d32cd2 100644 (file)
@@ -283,6 +283,12 @@ AC_STRUCT_TM
 dnl Checks for libraries (NOTE: Should be done before function checks,
 dnl as some functions may be in libraries we check for).
 
+case "${OS_DIR}" in
+    solaris )
+         AC_CHECK_LIB([socket], [gethostname],, [AC_MSG_ERROR(cannot find libsocket)])
+         ;;
+esac
+
 dnl Checks for library functions.
 AC_PROG_GCC_TRADITIONAL
 AC_TYPE_SIGNAL