Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AC_CHECK_LIB 接受您要检查的共享库的基本名称作为参数。因此,对于名为“libxyz.so”的库,您可以将库“xyz”的基本名称指定为 AC_CHECK_LIB 的参数。如果我有一个名为 xyz.so 的库(注意:不是 libxyz.so),我如何使用 autoconf 检查该库的可用性/可用性?
Its not the task that can be done with means of autoconf, which simply passes the library name via "-lxyz" to the linker. And in your case the linker will not find it. The best solution is to create a symbolic/hardlink libxyz.so -> xyz.so.