How to change the include file path with autotools?

只谈情不闲聊 提交于 2019-12-02 01:19:58

问题


I am developing a simple chat application, which use crypto++, in ubuntu. The folder for crypto++'s header files is /usr/include/crypto++/.

After I upload the source tagbar to CentOS, I found that the folder for crypto++'s header files is /usr/include/cryptopp. So in CentOS, the compiler could not find the head files for cryptopp.

Source File:

#include "crypto++/md5.h"

Configure.ac:

AC_SEARCH_LIBS([_ZTIN8CryptoPP14CBC_EncryptionE], [crypto++ cryptopp], 
        [],[AC_MSG_ERROR([avchat requires crypto++/cryptopp])])

How to make the source bundle portable both on ubuntu and centos?

来源:https://stackoverflow.com/questions/32805772/how-to-change-the-include-file-path-with-autotools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!