- dnl -----------------------------------------------------------
- dnl test for gstreamer main lib
- dnl -----------------------------------------------------------
- AC_MSG_CHECKING([for gstreamer 0.8])
- WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],gstreamer-0.8)
- if test "$ac_find_libraries" != "" ; then
- dnl -------------------------------------------------------
- dnl Check for GStreamer gstplay lib
- dnl -------------------------------------------------------
- AC_MSG_RESULT([yes])
- AC_MSG_CHECKING([for gstplay 0.8])
- WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],gstplay-0.8)
- if test "$ac_find_libraries" != "" ; then
- dnl ---------------------------------------------------
- dnl gstplay lib found - check for gstinterfaces lib
- dnl ---------------------------------------------------
- AC_MSG_RESULT([yes])
- AC_MSG_CHECKING([for gstinterfaces 0.8])
- WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],gstinterfaces-0.8)
- if test "$ac_find_libraries" != "" ; then
- dnl -----------------------------------------------
- dnl GStreamer libs found - check for gstreamer
- dnl include path and header
- dnl -----------------------------------------------
- AC_MSG_RESULT([yes])
- AC_MSG_CHECKING(for GStreamer headers)
- WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, gst/gst.h)
- if test "$ac_find_includes" != "" ; then
- AC_MSG_RESULT(found in $ac_find_includes)
- WX_INCLUDE_PATH_EXIST($ac_find_includes, $TOOLKIT_INCLUDE)
- TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
- else
- AC_TRY_COMPILE(
- [
- #include <gst/gst.h>
- ],
- [],
- [AC_MSG_RESULT(found in default search path)],
- [wxUSE_GSTREAMER="no"])
- fi
- else
- dnl -----------------------------------------------
- dnl gstinterfaces lib not found - break out
- dnl -----------------------------------------------
- wxUSE_GSTREAMER="no"
- fi
- else
- dnl ---------------------------------------------------
- dnl gstplay lib not found - break out
- dnl ---------------------------------------------------
- wxUSE_GSTREAMER="no"
- fi
- else
- dnl -------------------------------------------------------
- dnl Main GStreamer lib not found - break out
- dnl -------------------------------------------------------
- wxUSE_GSTREAMER="no"
- fi
-
- dnl -----------------------------------------------------------
- dnl Check if everything went ok - if not then print no
- dnl and break out
- dnl -----------------------------------------------------------
- if test "$wxUSE_GSTREAMER" = "yes"; then
- dnl -------------------------------------------------------
- dnl Success! Define wxUSE_GSTREAMER to 1 so that
- dnl src/unix/mediactrl.cpp will build with GStreamer
- dnl enabled, and add the 3 gstreamer libs and the libxml2
- dnl to the linker's library includes
- dnl -------------------------------------------------------
- AC_DEFINE(wxUSE_GSTREAMER)
- LIBS="$LIBS -lgstreamer-0.8 -lgstplay-0.8"
- LIBS="$LIBS -lgstinterfaces-0.8 -lxml2"
- else
- dnl -------------------------------------------------------
- dnl Generic "NO" message - triggered if any of the above
- dnl conditions doesn't pan out
- dnl -------------------------------------------------------
- AC_MSG_RESULT([no])
- fi