0

AC_CHECK_LIB 接受您要检查的共享库的基本名称作为参数。因此,对于名为“libxyz.so”的库,您可以将库“xyz”的基本名称指定为 AC_CHECK_LIB 的参数。如果我有一个名为 xyz.so 的库(注意:不是 libxyz.so),我如何使用 autoconf 检查该库的可用性/可用性?

4

1 回答 1

1

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.

于 2010-06-10T08:10:31.187 回答