summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d3c138)
raw | patch | inline | side by side (parent: 1d3c138)
author | Brian Cameron <brian.cameron@sun.com> | |
Fri, 23 Jan 2009 08:54:53 +0000 (09:54 +0100) | ||
committer | Sebastian Dröge <slomo@circular-chaos.org> | |
Fri, 23 Jan 2009 08:54:53 +0000 (09:54 +0100) |
Link libgstreamer with $(LIBM) as it uses math functions.
Add a configure check for socket and nsl library and add
them to LIBS if they're found. This is needed on Solaris
for socket() and gethostbyname().
Add a configure check for socket and nsl library and add
them to LIBS if they're found. This is needed on Solaris
for socket() and gethostbyname().
configure.ac | patch | blob | history | |
gst/Makefile.am | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index c2409b4788f885dd4ef1939c79f12f65a525ab4c..10709dc96f9ce054f4e3dd0a113e9474a2b8aaa8 100644 (file)
--- a/configure.ac
+++ b/configure.ac
LIBS="$LIBS -ldl")
CFLAGS="$save_cflags"
+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 check for inet_aton()
save_libs="$LIBS"
AC_CHECK_FUNC(inet_aton, ,
diff --git a/gst/Makefile.am b/gst/Makefile.am
index 8c4816b09c3cc346340cb1c9dde2bc66d3594ad1..83e7fc80e8514446fd5237edf8f7699002c2248a 100644 (file)
--- a/gst/Makefile.am
+++ b/gst/Makefile.am
$(XML_LIBS)
libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
- $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
+ $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(LIBM)
libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst