comparison configure.in @ 496:67d785044411

Forward port from stable branch: fix modplug header detection.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 12 Oct 2005 22:20:58 +0000
parents 9e761a594df1
children 0b244f36049e
comparison
equal deleted inserted replaced
494:355129c687b7 496:67d785044411
212 dnl Check for libmodplug 212 dnl Check for libmodplug
213 AC_ARG_ENABLE(modplug, 213 AC_ARG_ENABLE(modplug,
214 [ --enable-modplug enable MOD decoding via modplug [default=yes]], 214 [ --enable-modplug enable MOD decoding via modplug [default=yes]],
215 , enable_modplug=yes) 215 , enable_modplug=yes)
216 if test x$enable_modplug = xyes; then 216 if test x$enable_modplug = xyes; then
217 have_modplug_hdr=no
217 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes) 218 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes)
219 if test x$have_modplug_hdr = xno; then
220 AC_CHECK_HEADER(libmodplug/modplug.h, have_modplug_hdr=yes)
221 if test x$have_modplug_hdr = xyes; then
222 have_modplug_hdr=yes
223 AC_DEFINE(SOUND_MODPLUG_IN_OWN_PATH)
224 fi
225 fi
226
218 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes) 227 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes)
219 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then 228 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then
220 LIBS="$LIBS -lmodplug" 229 LIBS="$LIBS -lmodplug"
221 AC_DEFINE(SOUND_SUPPORTS_MODPLUG) 230 AC_DEFINE(SOUND_SUPPORTS_MODPLUG)
222 fi 231 fi