changeset 2657:7f92b286575e

checkin for xanim support, also --disable-xanim and --with-xanimlibdir option added
author alex
date Sat, 03 Nov 2001 21:25:55 +0000
parents 63bde78ec880
children 2995e0cf02e9
files configure
diffstat 1 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Nov 03 21:24:00 2001 +0000
+++ b/configure	Sat Nov 03 21:25:55 2001 +0000
@@ -172,6 +172,7 @@
   --disable-dshow        disable DirectShow support (if no C++ compiler and
                          libs are available or find the dshow codecs slower 
                          than the old VfW ones) [autodetect]
+  --disable-xanim        disable XAnim DLL support [autodetect]
   --enable-vorbis        build with OggVorbis support [autodetect]
   --disable-iconv        do not use iconv(3) function [autodetect]
 
@@ -231,6 +232,7 @@
   --with-x11libdir=DIR     X library files in DIR
   --with-x11incdir=DIR     X headers in DIR
   --with-win32libdir=DIR   W*ndows DLL files in DIR
+  --with-xanimlibdir=DIR   XAnim DLL files in DIR
   --with-csslibdir=DIR     'libcss.so' (libcss shared lib.) in DIR
   --with-cssincdir=DIR     'css.h' (libcss header file) in DIR
   --with-sdl-config=PATH   path to 'sdl-config'
@@ -567,6 +569,7 @@
 _css=no
 _dvdread=no
 _win32=yes _dshow=yes
+_xanim=yes
 test "$host_arch" != i386 && _dshow=no _win32=no
 _fastmemcpy=yes
 _streaming=no
@@ -635,6 +638,15 @@
   done
 fi
 
+_xanimlibdir=
+if test "$_xanim" = yes ; then
+  for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods ; do
+    if test -d "$I" ; then
+      _xanimlibdir="$I"
+      break;
+    fi;
+  done
+fi
 
 if test -d libavcodec && test -f libavcodec/Makefile ; then
     _libavcodec=yes
@@ -1491,6 +1503,10 @@
   --disable-dshow)
         _dshow=no
 	;;
+  --disable-xanim)
+	_xanim=no
+	_xanimlibdir=
+	;;
   --disable-fastmemcpy)
         _fastmemcpy=no
 	;;
@@ -1520,6 +1536,10 @@
         _win32libdir=`echo $ac_option | cut -d '=' -f 2`
         _win32=yes
         ;;
+  --with-xanimlibdir=*)
+	_xanimlibdir=`echo $ac_option | cut -d '=' -f 2`
+	_xanim=yes
+	;;
   --with-csslibdir=*)
         _csslibdir=`echo $ac_option | cut -d '=' -f 2`
 	_css=yes
@@ -1692,6 +1712,10 @@
  fi
 fi
 
+if test "$_xanim" = yes && test "$_libdl" = no ; then
+  _xanim = no
+fi
+
 # to screen.
 echo "Install prefix: $_prefix"
 echo "Data directory: $_datadir"
@@ -1738,6 +1762,7 @@
 echo "Checking for mad support ... $_mad"
 echo "Checking for OggVorbis support ... $_vorbis"
 echo "Checking for Win32 DLL support ... $_win32"
+echo "Checking for XAnim DLL support ... $_xanim"
 echo "Checking for DirectShow ... $_dshow"
 echo "Checking for iconv function ... $_iconv"
 echo "Checking for zlib ... $_zlib"
@@ -1925,6 +1950,14 @@
   _dshowdep=
 fi
 
+if test "$_xanim" = yes ; then
+  _use_xanim="#define USE_XANIM 1"
+  _xanim_path="#define XACODEC_PATH \"$_xanimlibdir\""
+else
+  _use_xanim="#undef USE_XANIM"
+  _xanim_path=
+fi
+
 
 if test "$_libavcodec" = yes ; then
    _lavclib='-Llibavcodec -lavcodec'
@@ -2595,6 +2628,10 @@
 /* use only decoders from libavcodec: */
 #define CONFIG_DECODERS
 
+/* XAnim DLL support */
+$_use_xanim
+$_xanim_path
+
 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
 $_fastmemcpy