[vlc-devel] commit: Fix configure with --disable-sout (Pierre Ynard )

Rémi Denis-Courmont remi at remlab.net
Mon Aug 24 14:58:50 CEST 2009




On Mon, 24 Aug 2009 14:36:20 +0200, Pierre Ynard <linkfanel at yahoo.fr>
wrote:
>> It's not just ugly. This is not legal use of AM_CONDITIONAL.
>> 
>> It MUST be outside of any conditional statement.
> 
> Then calling PKG_ENABLE_MODULES_VLC from within 'if test
> "${enable_sout}" != "no"' was illegal to begin with. Which caused the
> problem, yes.

That's why a normal macro will not call AM_CONDITIONAL directly *EVER*.
Instead it will provide set of hooks (e.g. ACTION-IF-FOUND,
ACTION-IF-NOT-FOUND) where you can set a shell variable, and then you will
call AM_CONDITIONAL manually from the shell variable.

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list