Mel writes:
> This is for anyone that uses autoconf.
>> When I want to check if a library is available, I put
>> AC_CHECK_LIB(lib, func)
>> into configure.in and this works for most libraries such as pthreads
>> AC_CHECK_LIB(pthreads, pthread_attr_init)
>> but it doesn't work for WINE. I tried
>> AC_CHECK_LIB(wine, MAIN_WinelibInit)
>> I know the function is there and I know the program would work if I didn't
> check fo rth library but configure always returns that it's not there. I
> checked with nm to be sure and got
[...]
> so it's defo there. How does AC_CHECK_LIB work and why might it be
> returning me garbage?
Check config.log to see what's happening. Maybe libwine.a needs some
more libraries for a successful link.
To see _everything_ that's going on, run configure with
sh -x ./configure <options> >my-log 2>&1
and examine my-log.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!