changeset 2961:f8402e758de2

removed _x _y support (no longer used) cosmetic for DVD support (css/dvdread) xanim detection slightly changed
author pl
date Sat, 17 Nov 2001 22:50:30 +0000
parents 6b69f306cf6e
children 98dacfba1195
files configure
diffstat 1 files changed, 16 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Nov 17 19:55:25 2001 +0000
+++ b/configure	Sat Nov 17 22:50:30 2001 +0000
@@ -63,7 +63,7 @@
 
 # Use this to echo the results of a check
 echores() {
-  echo "Result is $@" >> "$TMPLOG"
+  echo "Result is: $@" >> "$TMPLOG"
   echo "##########################################" >> "$TMPLOG"
   echo "" >> "$TMPLOG"
   echo "$@"
@@ -658,15 +658,11 @@
 _termcap=auto
 _3dfx=no
 _tdfxfb=no
-
+_largefiles=no
 _vo2=no
-
-_x=1
-_y=1
 _language=en
 
 
-
 for ac_option do
   case "$ac_option" in
   # Skip 1st pass
@@ -754,7 +750,8 @@
   --disable-tdfxfb)	_tdfxfb=no	;;
   --enable-mtrr)	_mtrr=yes	;;
   --disable-mtrr)	_mtrr=no	;;
-
+  --enable-largefiles)	_largefiles=yes	;;
+  --enable-largefiles)	_largefiles=no	;;
   --enable-vo2)		_vo2=yes	;;
   --disable-vo2)	_vo2=no		;;
 
@@ -788,17 +785,6 @@
     _mlib=yes
     ;;
 
-  --size-x=*)
-    _x=`echo $ac_option | cut -d '=' -f 2`
-    ;;
-  --size-y=*)
-    _y=`echo $ac_option | cut -d '=' -f 2`
-    ;;
-
-  --enable-largefiles)
-    _largefiles=yes
-    ;;
-
   --enable-profile)
     _profile='-p'
     ;;
@@ -949,12 +935,6 @@
 ######################
 
 
-echocheck "Screen size ..."
-_def_x="#define SCREEN_SIZE_X $_x"
-_def_y="#define SCREEN_SIZE_Y $_y"
-echores "${_x} x ${_y}"
-
-
 echocheck "Extra headers"
 echores "$_extraincdir"
 
@@ -1738,7 +1718,7 @@
 echores "$_sgiaudio"
 
 
-echocheck "Encrypted DVD support"
+echocheck "DVD support"
 if test "$_dvdread" = auto ; then
   cat > $TMPC << EOF
 #include <dvdread/dvd_reader.h>
@@ -1758,7 +1738,7 @@
 int main(void) { int i=CSSisEncrypted(0); return 0; }
 EOF
   _css=no
-  cc_check  -lcss && _css=yes
+  cc_check -lcss && _css=yes
 fi
 # dvdread preferred to DeCSS
 if test "$_dvdread" = yes ; then
@@ -1766,16 +1746,16 @@
   _def_dvdread='#define USE_DVDREAD 1'
   _def_css='#undef HAVE_LIBCSS'
   _ld_css='-ldvdread'
-  echores "-ldvdread"
+  echores "libdvdread"
 elif test "$_css" = yes ; then
   _def_dvdread='#undef USE_DVDREAD'
   _def_css='#define HAVE_LIBCSS 1'
   test "$_csslibdir" && _ld_css="-L${_csslibdir} ${_ld_css}"
-  echores "-lcss"
+  echores "libcss"
 else
   _def_dvdread='#undef USE_DVDREAD'
   _def_css='#undef HAVE_LIBCSS'
-  echores "none"
+  echores "no"
 fi
 
 
@@ -1906,9 +1886,12 @@
 
 echocheck "XAnim DLL"
 if test "$_xanim" = auto ; then
+  # xanim only requires dlopen() and/or libdl
+  cat > $TMPC << EOF
+int main(void) { (void) dlopen(0, 0); return 0; } 
+EOF
   _xanim=no
-  # FreeBSD does not libdl
-  if freebsd || test "$_dl" = yes ; then
+  if cc_check || test "$_dl" = yes ; then
     if test "$host_arch" = i386 ; then
       if test -z "$_xanimlibdir" ; then
         for I in /usr/local/lib/xanim/mods /usr/lib/xanim/mods ; do
@@ -2538,8 +2521,8 @@
 #endif
 
 /* libvo options */
-$_def_x
-$_def_y
+#define SCREEN_SIZE_X 1
+#define SCREEN_SIZE_Y 1
 $_def_x11
 $_def_xv
 $_def_vm