On 11-Nov-99 Mel wrote:
>This is for anyone that uses autoconf.
>>When I want to check if a library is available, I put
>>into configure.in and this works for most libraries such as pthreads
>>but it doesn't work for WINE. I tried
>>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
Personally i reckon this is right *on* topic, but anyways heres the reason
its not working.
Yes it there alright, but look at your config.log you will see that
the test link against wine failed because you did not specify the libraries
that wine depends on.
You will have to do
a) a test to find the linker flags for X11 itself, i.e.
b) also you will need to find all of the following as well.
libdl, and libXxf86dga and curses/ncurses and libXpm.
I would reccomend taking the wine configure script and
duplicating its checks for its own dependancies and
put them in your own configure script, and *then* check
for wine with all the needed libs mentioned in the options
that you can place in the third or fourth parameter to
the AC_CHECK_LIB call
You can get the full info on configure from the manuals
online at www.gnu.org
Keep an eye on config.log and delete config.cache after each
attempt of running your newly changed configure script.
programs such as wine should follow the same pattern as
gtk and gnome and provide a wine-config --libs program
which lists the libs it is linked against. Thats what
I provide, and its the best way. But in your case the
dependancies of wine are what the problem is.
Real Life: Caolan McNamara * Doing: MSc in HCI
Work: Caolan.McNamara at ul.ie * Phone: +353-86-8790257
URL: http://www.csn.ul.ie/~caolan * Sig: an oblique strategy
Re-evaluation (a warm feeling)
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!