【问题标题】:For automake: How to execute a command in the configure.ac?对于 automake:如何在 configure.ac 中执行命令?
【发布时间】:2013-01-26 11:02:27
【问题描述】:

在自动制作中

我想将命令执行结果分配给 Makefile 变量

如何在configure.ac中做到这一点?

【问题讨论】:

  • 命令何时执行? configure 何时运行或make 何时运行?

标签: makefile configure autoconf automake


【解决方案1】:

要将echo foo 的输出分配给变量var(即var=foo), 把这个放在configure.ac:

AC_SUBST([var],[$( echo foo )])  # use backticks for maximal portability

或者,分配 var 然后调用 AC_SUBST([var])(没有第二个参数)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-03
    • 1970-01-01
    相关资源
    最近更新 更多