我们的 Linux C 应用程序的构建是由 GNU Autotools 执行的,在此期间我们需要查看客户端的文件系统并构建相当复杂的配置文件。从我们的角度来看,Python 脚本是解决这个问题的最佳方式。
- 那么,是否可以在里面运行自定义 python 脚本 ./configure.sh?
- 为此应如何更改 configure.ac 和 Makefile.am 文件?
谢谢。
最佳答案
我假设 configure.sh 是 configure
。
- 当然可以。
configure
只是一个 shell 脚本。 - automake 拥有 Python 的设施, Autoconf Macro Archive也有一些 Python 宏。
关于python - Autotools:在 ./configure.sh 中包含 python 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18768404/