summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
-rw-r--r--misc/xine-config.in2
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 996edafc4..1a4a6d4c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -290,6 +290,17 @@ fi
AM_CONDITIONAL(HAVE_NVTV, [test x"$enable_nvtv" = "xyes" -a x"$no_x" != "xyes"])
+
+dnl ---------------------------------------------
+dnl socket library
+dnl ---------------------------------------------
+dnl Test for socket and network support library
+NET_LIBS=""
+AC_CHECK_LIB(socket, socket, NET_LIBS="-lsocket $NET_LIBS",)
+AC_CHECK_LIB(nsl, gethostbyname, NET_LIBS="-lnsl $NET_LIBS",)
+AC_SUBST(NET_LIBS)
+
+
dnl ---------------------------------------------
dnl zlib
dnl ---------------------------------------------
diff --git a/misc/xine-config.in b/misc/xine-config.in
index c4b7a57fc..a1ddb013c 100644
--- a/misc/xine-config.in
+++ b/misc/xine-config.in
@@ -100,7 +100,7 @@ if test "$echo_cflags" = "yes"; then
fi
if test "$echo_libs" = "yes"; then
- echo -L@libdir@ -lxine @ZLIB_LIBS@ @THREAD_LIBS@ @EXTRA_X_LIBS@ @LIBICONV@
+ echo -L@libdir@ -lxine @ZLIB_LIBS@ @NET_LIBS@ @THREAD_LIBS@ @EXTRA_X_LIBS@ @LIBICONV@
fi
if test "$echo_plugindir" = "yes"; then
echo "@XINE_PLUGINPATH@"