Automake:Makefile.am 中的条件语法

zer*_*lus 1 linux automake makefile

我熟悉if VAR_NAME, whereVAR_NAME由 configure.ac 中的 AM_CONDITIONAL 子句定义。

Makefile.am 中是否有相应的“如果未定义”结构?

Wil*_*ell 5

没有“如果未定义”结构。必须编写 configure.ac 以便始终定义条件。但是,如果您想测试条件是否为假,您可以执行“if ! VAR_NAME”。