使用自动工具调用外部脚本 [英] Invoke external script using Autotools

查看:96
本文介绍了使用自动工具调用外部脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Autotools,并尝试获取configure.ac和生成的configure脚本来调用外部build_library.sh脚本.

I am using Autotools, and trying to get configure.ac and the resulting configure script to call an external build_library.sh script.

这怎么办?

推荐答案

configure.ac只是一个shell脚本,在其上面添加了少量"宏.因此,您可以在其中放置任何shell代码:

configure.ac is just a shell script with a "few" macros added on top of it. So, you can put any shell code in there:

$ac_top_srcdir/build_library.sh

($ac_top_srcdir确保即使从另一个目录运行./configure,也可以找到您的脚本.)

(The $ac_top_srcdir makes sure that your script can be found even if you are running ./configure from another directory.)

这篇关于使用自动工具调用外部脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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