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

Lars Hecking nmrc.ucc.ie at nmrc.ucc.ie
Thu Nov 11 15:48:03 GMT 1999


> Yeah, Thats it all right. I need a host of x libs and the like included.
> The full set needed is "-L/usr/local/lib -lwine -L/usr/X11R6/lib -lSM
> -lICE -lXpm -lXxf86dga -lXxf86vm -lXext -lX11 -lncurses -lm -ldl". How do
> I tell autoconf to put all other libs in while checking for wine?
 
 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).

 You have to put in tests for every single library and -L path you need
 to use before testing for the wine lib. You definitely want to use
 AC_PATH_XTRA for the X stuff, like:

AC_PATH_XTRA
if test "$no_x" != yes; then
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  LIBRARIES_FOR_X="$X_LIBS -lX11 $X_EXTRA_LIBS"
  AC_DEFINE(X11, 1,
            [ Define if you are using the X11 window system. ])
fi





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