summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-20 10:57:30 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-20 10:57:30 +0000
commit05a8589af1f30bb1b3713f5bf2a6b6a8c983321b (patch)
treee9600e1385361c8578f4c6072ed6097d4e1e960b /configure
parent4f1dfc7b33fc63b94a7ce5bbe6e34d6d65fb2ced (diff)
downloadmpv-05a8589af1f30bb1b3713f5bf2a6b6a8c983321b.tar.bz2
mpv-05a8589af1f30bb1b3713f5bf2a6b6a8c983321b.tar.xz
Simplify pkg-config invocation.
patch by Emanuele Giaquinta, emanuele . . . giaquinta . @ . gmail . . . com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17898 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 64a57a0468..8b5b90ab5d 100755
--- a/configure
+++ b/configure
@@ -4748,7 +4748,7 @@ fi
echocheck "Polyp"
if test "$_polyp" = auto ; then
_polyp=no
- if ( pkg-config --exists 'polyplib >= 0.6 polyplib-error >= 0.6 polyplib-mainloop >= 0.6' ) >> "$TMPLOG" 2>&1 ; then
+ if pkg-config --exists 'polyplib >= 0.6 polyplib-error >= 0.6 polyplib-mainloop >= 0.6' ; then
cat > $TMPC << EOF
#include <polyp/polyplib.h>
@@ -5173,7 +5173,7 @@ echores "$_cdparanoia"
echocheck "libcdio"
if test "$_libcdio" = auto && test "$_cdparanoia" = no ; then
- if ( pkg-config --modversion libcdio) > /dev/null 2>&1 ; then
+ if pkg-config --exists libcdio ; then
cat > $TMPC << EOF
#include <stdio.h>
#include <cdio/version.h>
@@ -5288,7 +5288,7 @@ EOF
_fontconfig=yes
if cc_check -lfontconfig ; then
_ld_fontconfig="-lfontconfig"
- elif cc_check `pkg-config --cflags --libs fontconfig` ; then
+ elif cc_check `pkg-config --silence-errors --cflags --libs fontconfig` ; then
_inc_fontconfig=`pkg-config --cflags fontconfig`
_ld_fontconfig=`pkg-config --libs fontconfig`
else
@@ -6107,7 +6107,7 @@ int main(void) {
return 0;
}
EOF
- if (pkg-config --exists libavcodec >> "$TMPLOG" 2>&1) ; then
+ if pkg-config --exists libavcodec ; then
_inc_libavcodec=`pkg-config --cflags libavcodec`
_ld_libavcodec=`pkg-config --libs libavcodec`
cc_check $_inc_libavcodec $_ld_libavcodec && _libavcodec_so=yes
@@ -6129,7 +6129,7 @@ if test "$_libavformat_so" = auto ; then
#include <ffmpeg/avformat.h>
int main(void) { av_alloc_format_context(); return 0; }
EOF
- if (pkg-config --exists libavformat >> "$TMPLOG" 2>&1 ) ; then
+ if pkg-config --exists libavformat ; then
_inc_libavformat=`pkg-config --cflags libavformat`
_ld_libavformat=`pkg-config --libs libavformat`
cc_check $_inc_libavformat $_ld_libavformat && _libavformat_so=yes