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
oldabi
Jean-Daniel Dupas 15 years ago committed by Stefano Sabatini
parent 3dec10cded
commit 8fad266101
  1. 2
      configure

2
configure vendored

@ -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}

Loading…
Cancel
Save