1
我有以下项目结构的自动工具项目:自动工具不喜欢在我的项目目录中的install.sh脚本
|-- Makefile.am
|-- configure.ac
|-- config.guess
|-- build
|-- include
| `-- code
| |-- File.h
|-- libCode
| |-- File.cpp
| |-- Makefile.am
`-- install.sh
当我生成项目,我碰到这个错误:
BUG.am: `install.sh' is an anachronism; use `install-sh' instead
我试图通过添加以下到configure.ac来解决这个问题:
AC_CONFIG_AUX_DIR([build])
这又摹ives我这个错误:
configure: error: cannot run /bin/sh ../../config.sub
注:我不能重命名install.sh由于几个依赖性的变化。有没有办法解决这个问题?