Hello,

> if $whatever; then
>    want_foo = yes
> fi
> AM_CONDITIONAL([WANT_FOO], [test "$want_foo" = yes])

... in this case, it can be shortened to

AM_CONDITIONAL([WANT_FOO], [$whatever])

> Makefile.am:
> if WANT_FOO
> FOO = foo
> else
> FOO =
> endif
> bin_PROGRAMS = $(FOO)
> EXTRA_PROGRAMS = foo

You don't have to define EXTRA_PROGRAMS, since Automake is able to trace
possible values of bin_PROGRAMS.

Have a nice day,
        Stepan


Reply via email to