From 16347bfa21be999a7615823e9d6cd1f460830f4d Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Fri, 23 Jan 2009 10:00:11 +0100 Subject: [PATCH] Fix linking on Solaris. Fixes bug #568482. Check for nsl and socket libraries and add them to LIBS if they're found. They're needed for socket() and gethostbyname() on Solaris. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 00138f5d8e..8ea9889d02 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,10 @@ LIBS=$save_libs dnl Check for a way to display the function name in debug output AG_GST_CHECK_FUNCTION +dnl *** checks for socket and nsl libraries *** +AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)]) +AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) + dnl *** checks for dependency libraries *** dnl GLib is required