【问题标题】:Any difference between configure.ac and configure.in, and Makefile.am and Makefile.in?configure.ac 和 configure.in 以及 Makefile.am 和 Makefile.in 之间有什么区别?
【发布时间】:2011-04-16 12:41:17
【问题描述】:

我已经在我配置的不同内容中看到了这两种情况。我有什么区别?只使用一个值得注意吗?还是用哪一个都无所谓?

【问题讨论】:

    标签: makefile autoconf configure automake


    【解决方案1】:

    configure.acconfigure.in 是主 Autoconf 源文件的两个可能名称,由 autoconf 处理以生成 configure shell 脚本。 configure.ac 是新软件包的首选,configure.in 是一个仍然有效的旧名称。 (现在建议将.in 后缀仅用于将由config.status 处理的文件,这是运行configure结果。)

    Makefile.am 是一个 Automake 源文件。 Automake对其进行处理并生成Makefile.in,然后由config.status进一步处理以生成最终的Makefile。 Automake 生成的Makefile.in 不能手动编辑。但是,如果一个项目不使用 Automake(但确实使用 Autoconf),那么它只会有一个 Makefile.in 是手工编辑的。

    有关更多详细信息,请参阅http://www.gnu.org/software/autoconf/manual/html_node/Making-configure-Scripts.html - 特别是图表。

    【讨论】:

      猜你喜欢
      • 2013-12-23
      • 2010-12-19
      • 2014-07-10
      • 2014-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多