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 3778 - Configure check for modplug is broken
Summary: Configure check for modplug is broken
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 21:33 UTC by Orivej Desh
Modified: 2017-08-26 04:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Orivej Desh 2017-08-25 21:33:44 UTC
In SDL_Mixer 2.0.1 and tip, configure.in contains [1]:

     AC_CHECK_LIB([modplug], [have_libmodplug_lib=yes])

which generates invalid C file in configure [2]:

     char have_libmodplug_lib=yes ();

and libmodplug detection always fails. This can be fixed with:

     AC_CHECK_LIB([modplug], [ModPlug_Load], [have_libmodplug_lib=yes])

[1] http://hg.libsdl.org/SDL_mixer/file/d10f63427a5f/configure.in#l261
[2] http://hg.libsdl.org/SDL_mixer/file/d10f63427a5f/configure#l11842
Comment 1 Sam Lantinga 2017-08-26 04:06:03 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_mixer/rev/3e77f5482c24