LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [OT] Autoconf query

[ILUG] [OT] Autoconf query

Mel mel at csn.ul.ie
Thu Nov 11 16:18:47 GMT 1999


>  I would probably use something like
> 
> MOREXLIBS="-L/usr/local/lib -lwine -L/usr/X11R6/lib -lSM -lICE -lXpm -lXxf86dga -lXxf86vm -lXext -lX11 -lncurses -lm -ldl"
> AC_CHECK_LIB(wine, MAIN_WinelibInit,[$MOREXLIBS])
> 
>  but this wouldn't be very portable (ncurses, math lib).
> 

Still no go. I have

ADD_WINE_LIBS="-L/usr/X11R6/lib -lSM -lICE -lXpm -lXxf86dga -lXxf86vm -lXext -lX11 -lncurses -lm -ldl"
AC_CHECK_LIB(wine, MAIN_WinelibInit, [$ADD_WINE_LIBS])

And in config.log

configure:2375: checking for MAIN_WinelibInit in -lwine
configure:2394: gcc -o conftest -g -O2   conftest.c -lwine -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXext -lX11 -lm 1>&5
/usr/local/lib/libwine.a(x11drv.o): In function `OBM_CreateBitmaps':
/usr/src/wine-991031/graphics/x11drv/oembitmap.c:391: undefined reference to `XpmAttributesSize'
/usr/src/wine-991031/graphics/x11drv/oembitmap.c:399: undefined reference to `XpmCreatePixmapFromData'
.
.
loads of other ones
.
.

I don't think I have the

AC_CHECK_LIB syntax right. IIRC, AC_CHECK_LIB looks like

AC_CHECK_LIB(library, function, doIfLibExists, doIfLibNonExistant)

so what I wrote above would never add the additional libraries. Any other
ideas how I add the other libraries to be checked?

		Mel









More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell