Commit fa2f3fb9 authored by Jan Schmidt's avatar Jan Schmidt

Add test to see if hstrerror is available or if we need libresolv (Solaris)...

Add test to see if hstrerror is available or if we need libresolv (Solaris) for it, then use it in libgstrtsp.

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.
parent c571cc1e
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:
common @ 36e8d051
Subproject commit bd02d788384b40ff511cac0e32aa77f51a68912d
Subproject commit 36e8d05157d6c831e0d3919ae2ee9c342498eda8
......@@ -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])
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment