diff configure.in @ 209:e63b9393f6ce

Added ModPlug support.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 10 Jan 2002 01:18:54 +0000
parents 56bc776f0563
children 07d0939d40e7
line wrap: on
line diff
--- a/configure.in	Thu Jan 10 01:16:24 2002 +0000
+++ b/configure.in	Thu Jan 10 01:18:54 2002 +0000
@@ -180,7 +180,20 @@
     CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
     LIBS="$LIBS $LIBMIKMOD_LIBS"
     LDADD="$LDADD $LIBMIKMOD_LDADD"
-    AC_DEFINE(SOUND_SUPPORTS_MOD)
+    AC_DEFINE(SOUND_SUPPORTS_MIKMOD)
+  fi
+fi
+
+dnl Check for libmodplug
+AC_ARG_ENABLE(modplug,
+[  --enable-modplug           enable MOD decoding via modplug [default=yes]],
+              , enable_modplug=yes)
+if test x$enable_modplug = xyes; then
+  AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes)
+  AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes)
+  if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then
+    LIBS="$LIBS -lmodplug"
+    AC_DEFINE(SOUND_SUPPORTS_MODPLUG)
   fi
 fi