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 363

Summary: configure script fails to pass with-sdl-prefix to sdl-config
Product: SDL_image Reporter: Andrew Radford <aradford>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: Other   

Description Andrew Radford 2006-11-16 05:16:57 UTC
Using 1.2.5 stable off the homepage
Compiling on RHEL4 x86 32bit Linux 

I am using configure to set up a MIPS cross compile on a x86 box

Because of this, the SDL libs and headers are compiled for mips in a directory other than /usr/local. Configure should execute sdl-config with -prefix=<path/to/mips/sdl/installation> because supplied the correct --with-sdl-prefix parameter to configure. Instead sdl-config is called with no -prefix parameter, causing it to default to /usr/local - which contains either the wrong (x86) libs or none at all.

In configure, changing $SDL_CONFIG to pass $sdl_args instead of $sdlconf_args made this work. It seems $sdlconf_args or $sdl_config_args are empty. 

Note I am no expert in configure & autotools, so this may not be a bug if configure can be rebuilt somehow to fix this.
Comment 1 Sam Lantinga 2007-07-12 20:59:25 UTC
This seems like a bug in your SDL installation.  If I configure SDL with --prefix=/usr/local/cross-tools/i386-mingw32, and then do make install, an sdl-config will be generated and installed in /usr/local/cross-tools/i386-mingw32/bin, and running that with the --cflags and --libs arguments will yield:
-I/usr/local/cross-tools/i386-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32/lib -lmingw32 -lSDLmain -lSDL -mwindows