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.
This commit is contained in:
Jan Schmidt 2008-01-12 23:08:28 +00:00
parent c571cc1e63
commit fa2f3fb98e
4 changed files with 19 additions and 2 deletions

View file

@ -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:

2
common

@ -1 +1 @@
Subproject commit bd02d788384b40ff511cac0e32aa77f51a68912d
Subproject commit 36e8d05157d6c831e0d3919ae2ee9c342498eda8

View 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])

View 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)