移除 glog 的 autoconf 依赖

Remove autoconf dependency for glog

我想使用 Google 日志库(glog,https://github.com/google/glog),但这取决于 autoconf 工具。我现在如何在编译 glog 时禁用 autoconf?或者也许可以使用 autoconf 一次,然后删除依赖项或为所有后续编译运行禁用 autoconf。我只是不知道该怎么做...你能帮我吗?

谢谢!

I want to use the Google Logging Library (glog, https://github.com/google/glog) but it depends on the autoconf tools. How can I now disable the use of autoconf when I compile glog?

可能不是,如果它依赖于 autotools。

Or maybe it is possible to use autoconf ONCE and then remove the dependency or disable autoconf for all following compilation runs.

当然,有几种方法可以做到这一点。最简单的是:Use a package。下一个最简单的方法(如果您需要更多最新功能)是抓取代码快照并将 configure; make; make install 安装到您自己的系统中,这将安装 libs/headers(在本例中为 /usr/local/lib,它可以进行调整)。如果您不想这样做,您可以随时重新定位安装 libs/headers 的位置:configure; make; make DESTDIR=/some/dir install。然后是使用打包源(和代码快照)并制作您自己的包。