autotools Makefiles 可以显示它们执行的命令吗?

Can autotools Makefiles display commands they execute?

我正在尝试构建一个项目,at-spi2-core,但我得到了未定义的引用。显然,没有链接 x11 库。但是,我很想看看 makefile 实际输出了什么命令。现在输出是这样的:

  CCLD     at-spi2-registryd
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `find_display':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextFindDisplay'
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextCreateExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextAddDisplay'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestCompareCursorWithWindow':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:136: undefined reference to `XMissingExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeKeyEvent':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:167: undefined reference to `XMissingExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeButtonEvent':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:188: undefined reference to `XMissingExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeMotionEvent':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:208: undefined reference to `XMissingExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeRelativeMotionEvent':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:234: undefined reference to `XMissingExtension'
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o):/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:301: more undefined references to `XMissingExtension' follow
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `close_display':
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:88: undefined reference to `XextRemoveDisplay'
collect2: error: ld returned 1 exit status

CCLD 一点帮助也没有。我在 http://www.gnu.org/software/automake/manual/html_node/Debugging-Make-Rules.html 中尝试过一些东西,但似乎没有输出 ld 的执行方式。此部分发生在 registryd 的内部文件夹中,而不是在根目录中(如果有任何相关性的话)。有人在使用 autotools 获得正常调试输出时遇到过类似问题吗?

普通的 makefile 总是打印出它们执行的命令; CCLD 和类似的输出是由于 Autotools "silent rules" 功能。要为 make、运行 make V=1 中的一个 运行 禁用它(V 代表 Verbose)。要永久禁用它,运行 再次配置 --disable-silent-rules