我试过了:
AC_CHECK_PROG(TEST,testprogram,AC_MSG_ERROR(Cannot find testprogram.))
当我配置它运行和输出:
Checking for testprogram... find: `testprogram. 15426 5 ': No such file or directory
但不会失败.
解决方法 尝试这是我从我的一个项目中解除的,它在路径中找到名为quantlib-config的东西:# borrowed from a check for gnome in GNU gretl: def. a check for quantlib-configAC_DEFUN(AC_PROG_QUANTliB,[AC_CHECK_PROG(QUANTliB,quantlib-config,yes)])AC_PROG_QUANTliBif test x"${QUANTliB}" == x"yes" ; then # use quantlib-config for QL settings [.... more stuff omitted here ...]else AC_MSG_ERROR([Please install Quantlib before trying to build RQuantlib.])fi总结
以上是内存溢出为你收集整理的linux – Autoconf检查程序,如果找不到则失败全部内容,希望文章能够帮你解决linux – Autoconf检查程序,如果找不到则失败所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)