]> git.sesse.net Git - mlt/commitdiff
Avoid repeating -I twice
authorAlberto Villa <avilla@FreeBSD.org>
Thu, 4 Oct 2012 23:19:00 +0000 (01:19 +0200)
committerAlberto Villa <avilla@FreeBSD.org>
Thu, 4 Oct 2012 23:19:00 +0000 (01:19 +0200)
`pkg-config --cflags` already returns include dir with a prefixed -I,
which made the invocation result discarded (breaking VDPAU check with
non-default FFmpeg).

src/modules/avformat/configure

index a53d32219f6ed65f0a6bdfa45b8a0acc110741c5..9824d3362553855ef63cdcaa5c832730bde09829 100755 (executable)
@@ -143,7 +143,7 @@ else
                
                if [ "$vdpau" = "true" ]
                then
-                       printf "#include <libavcodec/vdpau.h>\n int main(){ VdpBitstreamBuffer test; test.struct_version; return 0;}" | $CC -I"$(pkg-config --cflags libavformat${avformat_suffix})" -I"$shared_ffmpeg/include" $CFLAGS -c -x c -  >/dev/null 2>&1
+                       printf "#include <libavcodec/vdpau.h>\n int main(){ VdpBitstreamBuffer test; test.struct_version; return 0;}" | $CC $(pkg-config --cflags libavformat${avformat_suffix}) -I"$shared_ffmpeg/include" $CFLAGS -c -x c -  >/dev/null 2>&1
                        [ "$x11" = "0" -a "$?" = "0" ] && echo "VDPAU=1" >> config.mak
                fi
        else