We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 167

Summary: X_LIBS vs Ubuntu...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: VERIFIED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: x86   
OS: Linux   

Description Ryan C. Gordon 2006-03-21 04:15:45 UTC
The configure script parses the value of $X_LIBS when looking at the --enable-x11-shared, which is getting set on Ubuntu 5.10 to "-L/usr/X11R6/lib" ... however, Ubuntu stores all the Xlib stuff in /usr/lib.

The end result in SDL is that the dynamic X11 stuff gets disabled by default, unless you override like this:

 ./configure --x-libraries=/usr/lib

Is X_LIBS the wrong value to check here, or is Ubuntu's autoconf hosed in this regard? I haven't figured out where this shell variable actually gets set yet...

--ryan.
Comment 1 Ryan C. Gordon 2006-03-21 04:17:19 UTC
to be clear, /usr/X11R6/lib DOES exist, but it's got a handful of files/dirs in it:

libxf86config.a  
libXvMCNVIDIA_dynamic.so.1  
modules
libXvMCNVIDIA.a  
libXvMCNVIDIA.so.1.0.8178   
X11


And not things like "libX11.so.6", which are in /usr/lib.

--ryan.

Comment 2 Sam Lantinga 2006-03-21 04:51:38 UTC
(In reply to comment #0)
> Is X_LIBS the wrong value to check here, or is Ubuntu's autoconf hosed in this
> regard? I haven't figured out where this shell variable actually gets set
> yet...

I'm not sure.  X_LIBS is set by the AC_PATH_X and AC_PATH_XTRA macros.

I put a fix into CVS... can you try it out?

Comment 3 Ryan C. Gordon 2006-03-21 05:15:35 UTC
Confirmed fixed, thanks!

--ryan.

Comment 4 Sam Lantinga 2006-03-21 05:44:37 UTC
No problem! :)