[FFmpeg-devel] [patch] Problem with configure script
Måns Rullgård
mans
Thu Jul 29 22:07:47 CEST 2010
Jean-Daniel Dupas <devlists at shadowlab.org> writes:
> Hello,
>
> Here is a patch to explicitly returns 0 in pkgconfig_generate() instead of returning without value when the target library is disabled.
> If it does not return 0 explicitly, when the last library is disabled (swscale), the final "configure" exit value is one,
> 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.
>
>
> Index: configure
> ===================================================================
> --- configure (revision 24577)
> +++ configure (working copy)
> @@ -3192,7 +3192,7 @@
> version=$3
> libs=$4
> requires=$5
> -enabled $shortname || return
> +enabled $shortname || return 0
> cat <<EOF > $name/$name.pc
> prefix=$prefix
> exec_prefix=\${prefix}
OK
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list