nicer messages for gstreamer detection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
81
configure
vendored
81
configure
vendored
@@ -39295,6 +39295,7 @@ echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&
|
|||||||
else
|
else
|
||||||
|
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
|
||||||
ac_cv_func_which_gethostbyname_r=unknown
|
ac_cv_func_which_gethostbyname_r=unknown
|
||||||
|
|
||||||
@@ -39532,6 +39533,7 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -44987,14 +44989,14 @@ fi
|
|||||||
USE_MEDIA=0
|
USE_MEDIA=0
|
||||||
|
|
||||||
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
||||||
|
USE_MEDIA=1
|
||||||
|
|
||||||
if test "$wxUSE_GTK" = 1; then
|
if test "$wxUSE_GTK" = 1; then
|
||||||
wxUSE_GSTREAMER="no"
|
wxUSE_GSTREAMER="no"
|
||||||
|
|
||||||
GST_VERSION_MAJOR=0
|
GST_VERSION_MAJOR=0
|
||||||
GST_VERSION_MINOR=10
|
GST_VERSION_MINOR=10
|
||||||
GST_VERSION_RELEASE=0
|
GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
||||||
GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
|
|
||||||
GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
|
||||||
|
|
||||||
if test "$wxUSE_GSTREAMER8" = "no"; then
|
if test "$wxUSE_GSTREAMER8" = "no"; then
|
||||||
|
|
||||||
@@ -45051,33 +45053,23 @@ fi
|
|||||||
else
|
else
|
||||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||||
echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
|
echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" >&5
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0... $ECHO_C" >&6
|
||||||
gconf-2.0" >&5
|
|
||||||
echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
|
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
|
||||||
gconf-2.0... $ECHO_C" >&6
|
|
||||||
|
|
||||||
if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
|
if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" ; then
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
|
||||||
gconf-2.0" ; then
|
|
||||||
echo "$as_me:$LINENO: result: yes" >&5
|
echo "$as_me:$LINENO: result: yes" >&5
|
||||||
echo "${ECHO_T}yes" >&6
|
echo "${ECHO_T}yes" >&6
|
||||||
succeeded=yes
|
succeeded=yes
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
|
echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
|
||||||
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
|
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
|
||||||
GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
|
GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
|
||||||
gconf-2.0"`
|
|
||||||
echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
|
echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
|
||||||
echo "${ECHO_T}$GST_CFLAGS" >&6
|
echo "${ECHO_T}$GST_CFLAGS" >&6
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking GST_LIBS" >&5
|
echo "$as_me:$LINENO: checking GST_LIBS" >&5
|
||||||
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
|
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
|
||||||
GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
|
GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
|
||||||
gconf-2.0"`
|
|
||||||
echo "$as_me:$LINENO: result: $GST_LIBS" >&5
|
echo "$as_me:$LINENO: result: $GST_LIBS" >&5
|
||||||
echo "${ECHO_T}$GST_LIBS" >&6
|
echo "${ECHO_T}$GST_LIBS" >&6
|
||||||
else
|
else
|
||||||
@@ -45085,9 +45077,7 @@ echo "${ECHO_T}$GST_LIBS" >&6
|
|||||||
GST_LIBS=""
|
GST_LIBS=""
|
||||||
## If we have a custom action on failure, don't print errors, but
|
## If we have a custom action on failure, don't print errors, but
|
||||||
## do set a variable so people can do so.
|
## do set a variable so people can do so.
|
||||||
GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
|
GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
|
||||||
gconf-2.0"`
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -45102,22 +45092,23 @@ echo "${ECHO_T}$GST_LIBS" >&6
|
|||||||
if test $succeeded = yes; then
|
if test $succeeded = yes; then
|
||||||
|
|
||||||
wxUSE_GSTREAMER="yes"
|
wxUSE_GSTREAMER="yes"
|
||||||
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
|
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
{ echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
|
||||||
|
echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
|
||||||
GST_VERSION_MINOR=8
|
GST_VERSION_MINOR=8
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
GST_VERSION_MINOR=8
|
GST_VERSION_MINOR=8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
|
if test $GST_VERSION_MINOR = "8"; then
|
||||||
GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
||||||
|
|
||||||
if test x$GST_VERSION_MINOR = x8; then
|
|
||||||
|
|
||||||
succeeded=no
|
succeeded=no
|
||||||
|
|
||||||
@@ -45172,33 +45163,23 @@ fi
|
|||||||
else
|
else
|
||||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||||
echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
|
echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" >&5
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION... $ECHO_C" >&6
|
||||||
gstreamer-gconf-$GST_MAJORMINOR" >&5
|
|
||||||
echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
|
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
|
|
||||||
|
|
||||||
if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
|
if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" ; then
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR" ; then
|
|
||||||
echo "$as_me:$LINENO: result: yes" >&5
|
echo "$as_me:$LINENO: result: yes" >&5
|
||||||
echo "${ECHO_T}yes" >&6
|
echo "${ECHO_T}yes" >&6
|
||||||
succeeded=yes
|
succeeded=yes
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
|
echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
|
||||||
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
|
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
|
||||||
GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
|
GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR"`
|
|
||||||
echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
|
echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
|
||||||
echo "${ECHO_T}$GST_CFLAGS" >&6
|
echo "${ECHO_T}$GST_CFLAGS" >&6
|
||||||
|
|
||||||
echo "$as_me:$LINENO: checking GST_LIBS" >&5
|
echo "$as_me:$LINENO: checking GST_LIBS" >&5
|
||||||
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
|
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
|
||||||
GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
|
GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR"`
|
|
||||||
echo "$as_me:$LINENO: result: $GST_LIBS" >&5
|
echo "$as_me:$LINENO: result: $GST_LIBS" >&5
|
||||||
echo "${ECHO_T}$GST_LIBS" >&6
|
echo "${ECHO_T}$GST_LIBS" >&6
|
||||||
else
|
else
|
||||||
@@ -45206,9 +45187,7 @@ echo "${ECHO_T}$GST_LIBS" >&6
|
|||||||
GST_LIBS=""
|
GST_LIBS=""
|
||||||
## If we have a custom action on failure, don't print errors, but
|
## If we have a custom action on failure, don't print errors, but
|
||||||
## do set a variable so people can do so.
|
## do set a variable so people can do so.
|
||||||
GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
|
GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR"`
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -45221,13 +45200,11 @@ echo "${ECHO_T}$GST_LIBS" >&6
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test $succeeded = yes; then
|
if test $succeeded = yes; then
|
||||||
|
|
||||||
wxUSE_GSTREAMER="yes"
|
wxUSE_GSTREAMER="yes"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
|
{ echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
|
||||||
echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
|
echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -45250,17 +45227,19 @@ echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
|
|||||||
#define wxUSE_GSTREAMER 1
|
#define wxUSE_GSTREAMER 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
|
else
|
||||||
echo "${ECHO_T}GStreamer detection successful" >&6
|
USE_MEDIA=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
USE_MEDIA=1
|
|
||||||
|
if test $USE_MEDIA = 1; then
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define wxUSE_MEDIACTRL 1
|
#define wxUSE_MEDIACTRL 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$cross_compiling" = "yes"; then
|
if test "$cross_compiling" = "yes"; then
|
||||||
|
42
configure.in
42
configure.in
@@ -6916,6 +6916,8 @@ dnl ---------------------------------------------------------------------------
|
|||||||
USE_MEDIA=0
|
USE_MEDIA=0
|
||||||
|
|
||||||
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
||||||
|
USE_MEDIA=1
|
||||||
|
|
||||||
dnl -----------------------------------------------------------------------
|
dnl -----------------------------------------------------------------------
|
||||||
dnl GStreamer
|
dnl GStreamer
|
||||||
dnl -----------------------------------------------------------------------
|
dnl -----------------------------------------------------------------------
|
||||||
@@ -6931,37 +6933,32 @@ if test "$wxUSE_MEDIACTRL" = "yes"; then
|
|||||||
dnl -------------------------------------------------------------------
|
dnl -------------------------------------------------------------------
|
||||||
GST_VERSION_MAJOR=0
|
GST_VERSION_MAJOR=0
|
||||||
GST_VERSION_MINOR=10
|
GST_VERSION_MINOR=10
|
||||||
GST_VERSION_RELEASE=0
|
GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
||||||
GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
|
|
||||||
GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
|
||||||
|
|
||||||
if test "$wxUSE_GSTREAMER8" = "no"; then
|
if test "$wxUSE_GSTREAMER8" = "no"; then
|
||||||
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR
|
PKG_CHECK_MODULES(GST,
|
||||||
gstreamer-plugins-base-$GST_MAJORMINOR
|
[gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0],
|
||||||
gconf-2.0,
|
|
||||||
[
|
[
|
||||||
wxUSE_GSTREAMER="yes"
|
wxUSE_GSTREAMER="yes"
|
||||||
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
|
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
AC_MSG_WARN([GStreamer 0.10 not available, falling back to 0.8])
|
||||||
GST_VERSION_MINOR=8
|
GST_VERSION_MINOR=8
|
||||||
])
|
]
|
||||||
|
)
|
||||||
else
|
else
|
||||||
|
dnl check only for 0.8
|
||||||
GST_VERSION_MINOR=8
|
GST_VERSION_MINOR=8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
|
if test $GST_VERSION_MINOR = "8"; then
|
||||||
GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
|
||||||
|
PKG_CHECK_MODULES(GST,
|
||||||
if test x$GST_VERSION_MINOR = x8; then
|
[gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION],
|
||||||
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR
|
wxUSE_GSTREAMER="yes",
|
||||||
gstreamer-interfaces-$GST_MAJORMINOR
|
|
||||||
gstreamer-gconf-$GST_MAJORMINOR,
|
|
||||||
[
|
[
|
||||||
wxUSE_GSTREAMER="yes"
|
AC_MSG_WARN([GStreamer 0.8/0.10 not available.])
|
||||||
],
|
|
||||||
[
|
|
||||||
AC_MSG_WARN([Proper GStreamer .8/.10 installation not found])
|
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -6981,13 +6978,16 @@ if test "$wxUSE_MEDIACTRL" = "yes"; then
|
|||||||
LIBS="$GST_LIBS $LIBS"
|
LIBS="$GST_LIBS $LIBS"
|
||||||
|
|
||||||
AC_DEFINE(wxUSE_GSTREAMER)
|
AC_DEFINE(wxUSE_GSTREAMER)
|
||||||
AC_MSG_RESULT([GStreamer detection successful])
|
else
|
||||||
|
USE_MEDIA=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
USE_MEDIA=1
|
|
||||||
|
if test $USE_MEDIA = 1; then
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
|
||||||
AC_DEFINE(wxUSE_MEDIACTRL)
|
AC_DEFINE(wxUSE_MEDIACTRL)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl get the string with OS info - used by wxGetOsDescription() on MacOS X
|
dnl get the string with OS info - used by wxGetOsDescription() on MacOS X
|
||||||
|
Reference in New Issue
Block a user