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
[mel at morpheus lib]$ nm -B libwine.a | grep MAIN
00001e20 T MAIN_GdiInit
00001ba8 T MAIN_KernelInit
00001af0 T MAIN_MainInit
00001ec8 T MAIN_UserInit
U MAIN_WineInit
00002048 T MAIN_WinelibInit
0000adf0 T MAIN_GetLanguageID
0000a8c0 t MAIN_GetProgramName
0000a93c T MAIN_ParseDebugOptions
0000c49c T MAIN_ParseLanguageOption
0000c648 T MAIN_ParseModeOption
0000c6b4 t MAIN_ParseOptions
0000a8a0 T MAIN_Usage
0000c7fc T MAIN_WineInit
so it's defo there. How does AC_CHECK_LIB work and why might it be
returning me garbage?
Mel
----Dumb Quote----
C makes it easy to shoot yourself in the foot.
C++ makes it harder, but when you do, you blow away your whole leg
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!