问题
I am using Autotools, and trying to get configure.ac
and the resulting configure
script to call an external build_library.sh
script.
How can this be done?
回答1:
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
(The $ac_top_srcdir
makes sure that your script can be found even if you are running ./configure
from another directory.)
来源:https://stackoverflow.com/questions/26757929/invoke-external-script-using-autotools