Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB
Home

Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Silliness in FC_CHECK_X_LIB
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Sat, 21 Nov 1998 15:10:57 -0500

David Pfitzner (dwp@xxxxxxxxxxxxxx) wrote:

> Greg Wooledge wrote:

> >   After AC PATH XTRA: LIBS=, X_LIBS= -L/usr/X11R6/lib, X_PRE_LIBS= -lSM 
> > -lICE, X_EXTRA_LIBS=

> Is there any reason at all that the freeciv configure puts X_PRE_LIBS
> _after_ X_LIBS

See above.  And below.

> , given that according to the autoconf docs, (talking
> about AC_PATH_XTRA)
> 
> % And it checks for
> % special X11R6 libraries that need to be linked with before
> % `-lX11', and adds any found to the output variable `X_PRE_LIBS'.

That may or may not be true.  However, it's certainly incomplete.
Since AC_PATH_XTRA puts a linker flag in X_LIBS, and libraries appear
in the directory named by that flag in X_PRE_LIBS, it seems that X_LIBS
must be placed before X_PRE_LIBS on the command line.

-- 
"Daddy, why do those people have to    |   Greg Wooledge
  use Microsoft Windows?"              |   wooledge@xxxxxxxxxxx
"Don't stare, son; it's not polite."   |   http://www.kellnet.com/wooledge/


[Prev in Thread] Current Thread [Next in Thread]