Add test to see if hstrerror is available or if we need libresolv (Solaris) for it...
authorJan Schmidt <thaytan@mad.scientist.com>
Sat, 12 Jan 2008 23:08:28 +0000 (23:08 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Sat, 12 Jan 2008 23:08:28 +0000 (23:08 +0000)
Original commit message from CVS:
* configure.ac:
* gst-libs/gst/rtsp/Makefile.am:
Add test to see if hstrerror is available or if we need libresolv
(Solaris) for it, then use it in libgstrtsp.

ChangeLog
common
configure.ac
gst-libs/gst/rtsp/Makefile.am

index d0c543ec5fb40bac2d5fad058f3c96836067dca4..82b51b174473500ead71dfd92db5ef181a882042 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-12  Jan Schmidt  <Jan.Schmidt@sun.com>
+
+       * configure.ac:
+       * gst-libs/gst/rtsp/Makefile.am:
+       Add test to see if hstrerror is available or if we need libresolv
+       (Solaris) for it, then use it in libgstrtsp.
+
 2008-01-12  Jan Schmidt  <Jan.Schmidt@sun.com>
 
        * gst-libs/gst/tag/Makefile.am:
diff --git a/common b/common
index bd02d788384b40ff511cac0e32aa77f51a68912d..36e8d05157d6c831e0d3919ae2ee9c342498eda8 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit bd02d788384b40ff511cac0e32aa77f51a68912d
+Subproject commit 36e8d05157d6c831e0d3919ae2ee9c342498eda8
index 9cb2f8119b4b63fa85c7e18ab6e54cc0070093be..eaf4e5ea9f49df9413a507d56b37fa2541caa931 100644 (file)
@@ -221,6 +221,16 @@ if test "x$HAVE_WINSOCK2_H" = "xyes"; then
   AC_SUBST(WIN32_LIBS)
 fi
 
+dnl check for hstrerror, for gst-libs/gst/rtsp
+save_libs="$LIBS"
+AC_CHECK_FUNC(hstrerror, ,
+    AC_CHECK_LIB(resolv, hstrerror, ,
+        [AC_DEFINE(NO_HSTRERROR, 1,
+             [Define if you have no native hstrerror() function.])]))
+HSTRERROR_LIBS=$LIBS
+AC_SUBST(HSTRERROR_LIBS)
+LIBS="$save_libs"
+
 dnl used in gst-libs/gst/pbutils and associated unit test
 AC_CHECK_HEADERS([process.h sys/types.h sys/wait.h sys/stat.h])
 
index 9da02268a6609d7e7319669eabdfe2056eb9f53b..d35e4cd0f7e0056fb03ff2401af8dad04252edb6 100644 (file)
@@ -35,7 +35,7 @@ noinst_HEADERS = gstrtsp.h
 #rtspextreal.c    
 
 libgstrtsp_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
-libgstrtsp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(WIN32_LIBS)
+libgstrtsp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(WIN32_LIBS) $(HSTRERROR_LIBS)
 libgstrtsp_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
 BUILT_SOURCES = $(built_headers) $(built_sources)