Make pkgconfig_generate() explicitly return 0 in instead of returning

without value when the target library is disabled.

If it does not explicitly return 0, when the last library is disabled
(swscale), the final "configure" exit value is 1, even if the
configure script is successfully executed. So it breaks scripts that
invoke configure and rely on 0 for success and 1 for failure.

Patch by Jean-Daniel Dupas reverse(<org.shadowlab@devlists>).

Originally committed as revision 24585 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Jean-Daniel Dupas authored and Stefano Sabatini committed 2010-07-30 00:05:16 +00:00
1 parent 3dec10cded
commit 8fad266101
1 file changed
+1 -1
Vendored
+1 -1
View File
@@ -3192,7 +3192,7 @@ comment=$2
version=$3
libs=$4
requires=$5
enabled $shortname || return
enabled $shortname || return 0
cat <<EOF > $name/$name.pc
prefix=$prefix
exec_prefix=\${prefix}