是否应该“配置"?如果configure.ac可用,可以分发脚本吗? [英] Should a "configure" script be distributed if configure.ac is available?

查看:45
本文介绍了是否应该“配置"?如果configure.ac可用,可以分发脚本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我们的安装说明是:

Currently, our installation instructions are:

autoreconf -fi
./configure
...

autoreconf步骤从configure.ac生成configure文件,从Makefile.in生成Makefile.in.如果未安装任何一个依赖项(例如pkg-config),则configureautoreconf都将失败,尽管后者会打印出一个隐秘的错误消息.

The autoreconf step generates the configure file from configure.ac and Makefile.in from Makefile.in. If one of the dependencies (say pkg-config) is not installed, both configure and autoreconf fail although the latter prints a cryptic error message.

释放源tarball时,是否应在软件包中提供configure脚本?如果必须分发,还需要包括哪些其他文件?目录build-auxautom4te.cache以及文件aclocal.m4也已创建.

When releasing source tarballs, should the configure script be supplied in the package or not? What other files need to be included if it has to be distributed? The directories build-aux and autom4te.cache and files aclocal.m4 were also created.

推荐答案

在SCM存储库中,不应该存在任何自动生成的内容(包括configure,但是开发人员的意见不在这里).压缩文件应包含autoreconf -fi和/或autogen.sh之后的状态(或为它选择的任何名称).第三,您还可以使用make dist,尽管它要求在压缩包中出现的所有文件也必须在Makefiles中列出.

In an SCM repository, nothing autogenerated should be present (including configure — but developer opinions digress here). A tarball should contain the state after autoreconf -fi and/or autogen.sh (or whichever name you chose for it). Third, you could also use make dist, though it requires that all files that shall appear in the tarball are also listed in the Makefiles.

这篇关于是否应该“配置"?如果configure.ac可用,可以分发脚本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆