comparison configure @ 1029:1c285eec0ba0

add and disable esd detection support ;)
author pontscho
date Tue, 05 Jun 2001 10:16:32 +0000
parents b3dde72791ed
children a68f7553ee0d
comparison
equal deleted inserted replaced
1028:a710b2a06564 1029:1c285eec0ba0
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
5 # pontscho@makacs.poliod.hu 5 # pontscho@makacs.poliod.hu
6 # 6 #
7 # Changes in reversed order: 7 # Changes in reversed order:
8 # 8 #
9 # 2001/06/05 by Pontscho
10 # - added alsa and esd detection
9 # 11 #
10 # 2001/06/05 by Nick Kurshev 12 # 2001/06/05 by Nick Kurshev
11 # - added checking of kernel version 13 # - added checking of kernel version
12 # 14 #
13 # 2001/06/04 by Nick Kurshev 15 # 2001/06/04 by Nick Kurshev
113 115
114 --enable-termcap use termcap database for key codes 116 --enable-termcap use termcap database for key codes
115 --enable-xmmp use XMMP audio drivers 117 --enable-xmmp use XMMP audio drivers
116 --enable-lirc enable LIRC (remote control) support 118 --enable-lirc enable LIRC (remote control) support
117 119
118 --disable-alsa disable alsa support [autodetect] 120 --disable-alsa disable alsa support [autodetect]
119 121 --disable-esd disable esd sound support [autodetect]
122
120 --disable-gcc-checking disable gcc version checking 123 --disable-gcc-checking disable gcc version checking
121 124
122 --disable-select disable audio select() support ( for example required this 125 --disable-select disable audio select() support ( for example required this
123 option ALSA or Vortex2 driver ) 126 option ALSA or Vortex2 driver )
124 127
290 _select='#define HAVE_AUDIO_SELECT' 293 _select='#define HAVE_AUDIO_SELECT'
291 294
292 _gui=no; 295 _gui=no;
293 296
294 _alsa=yes 297 _alsa=yes
298 _esd=yes
295 299
296 for i in `echo $pparam`; do 300 for i in `echo $pparam`; do
297 301
298 case "$i" in 302 case "$i" in
299 3dnow) 303 3dnow)
594 598
595 # --- 599 # ---
596 600
597 cat > $TMPC << EOF 601 cat > $TMPC << EOF
598 #include <sys/asoundlib.h> 602 #include <sys/asoundlib.h>
599 #include <soundcard.h> 603 #include <sys/soundcard.h>
600 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 1; return 0; } 604 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==5)return 0; return 1; }
601 EOF 605 EOF
602 606
603 _alsaver='notfound' 607 _alsaver='not found'
604 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no 608 $_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no
605 609 [ $_alsa == 'yes' ] && $TMPO && { _alsaver='0.5.x'; }
606 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.5.x'; } 610
607 611 if [ $_alsaver == 'not found' ]; then
608 if [ $_alsaver = 'notfound' ]; then
609 cat > $TMPC << EOF 612 cat > $TMPC << EOF
610 #include <sys/asoundlib.h> 613 #include <sys/asoundlib.h>
611 #include <soundcard.h> 614 #include <sys/soundcard.h>
612 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 1; return 0; } 615 int main( void ) { if(SND_LIB_MAJOR==0&&SND_LIB_MINOR==9)return 0; return 1; }
613 EOF 616 EOF
614 617
615 _alsaver='notfound' 618 _alsaver='not found'
616 $_cc -o $TMPO -lasound $TMPC &> /dev/null || _alsa=no 619 $_cc -o $TMPO -lasound $TMPC 2> /dev/null || _alsa=no
617 [ $_alsa == "yes" ] && $TMPO && { _alsaver='0.9.x'; } 620 [ $_alsa == 'yes' ] && $TMPO && { _alsaver='0.9.x'; }
618 fi 621 fi
622
623 # ---
624
625 cat > $TMPC << EOF
626 #include <esd.h>
627 int main( void ){ return 0; }
628 EOF
629
630 $_cc -o $TMPO -lesd $TMPC 2> /dev/null || { _esd=no; }
619 631
620 # --- 632 # ---
621 633
622 # check for the parameters. 634 # check for the parameters.
623 635
790 ;; 802 ;;
791 --disable-alsa) 803 --disable-alsa)
792 _alsaver='notfound' 804 _alsaver='notfound'
793 _alsa=no 805 _alsa=no
794 ;; 806 ;;
807 --disable-esd)
808 _esd=no
809 ;;
795 --with-win32libdir=*) 810 --with-win32libdir=*)
796 _win32libdir=`echo $ac_option | cut -d '=' -f 2` 811 _win32libdir=`echo $ac_option | cut -d '=' -f 2`
797 _win32libdirnotify=no 812 _win32libdirnotify=no
798 ;; 813 ;;
799 --with-csslibdir=*) 814 --with-csslibdir=*)
934 echo "Checking for DeCSS support ... $_css" 949 echo "Checking for DeCSS support ... $_css"
935 echo "Checking for PNG support ... $_png" 950 echo "Checking for PNG support ... $_png"
936 echo "Checking for DirectShow ... $_dshow" 951 echo "Checking for DirectShow ... $_dshow"
937 echo "Checking for fastmemcpy ... $_fastmemcpy" 952 echo "Checking for fastmemcpy ... $_fastmemcpy"
938 echo "Checking for alsa ... $_alsaver" 953 echo "Checking for alsa ... $_alsaver"
954 echo "Checking for esd ... $_esd"
939 # write conf files. 955 # write conf files.
940 956
941 if [ $_gl = yes ]; then 957 if [ $_gl = yes ]; then
942 _gllib='-lGL' 958 _gllib='-lGL'
943 fi 959 fi
1219 _gui='#define HAVE_GUI' 1235 _gui='#define HAVE_GUI'
1220 else 1236 else
1221 _gui='#undef HAVE_GUI' 1237 _gui='#undef HAVE_GUI'
1222 fi 1238 fi
1223 1239
1224 if [ "$_alsaver" != "notfound" ]; then 1240 _alsa5='#undef HAVE_ALSA5'
1225 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; $_alsa='#define HAVE_ALSA5'; } 1241 _alsa9='#undef HAVE_ALSA9'
1226 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; } 1242 if [ $_alsa == 'yes' ]; then
1227 else 1243 [ $_alsaver == '0.5.x' ] && { _aosrc="$_aosrc ao_alsa5.c"; _alsa5='#define HAVE_ALSA5'; }
1228 _alsa=' ' 1244 # [ $_alsaver == '0.9.x' ] && { _aosrc="$_aosrc ao_alsa9.c"; _alsa9='#define HAVE_ALSA9'; }
1229 fi 1245 fi
1230 1246
1247 _esdd='#undef HAVE_ESD'
1248 if [ $_esd == 'yes' ]; then
1249 _esdd='#undef HAVE_ESD'
1250 fi
1251
1231 cat > $CCONF << EOF 1252 cat > $CCONF << EOF
1232 1253
1233 /* -------- Generated by ./configure ----------- */ 1254 /* -------- Generated by ./configure ----------- */
1234 1255
1235 /* Define this to enable avg. byte/sec-based AVI sync method by default: 1256 /* Define this to enable avg. byte/sec-based AVI sync method by default:
1294 1315
1295 /* gui support, please do not edit this option */ 1316 /* gui support, please do not edit this option */
1296 $_gui 1317 $_gui
1297 #define PREFIX "$_prefix" 1318 #define PREFIX "$_prefix"
1298 1319
1299 /* ALSA support */ 1320 /* Audio lib drivers */
1300 $_alsa 1321 $_alsa5
1322 $_alsa9
1323 $_esdd
1301 1324
1302 /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */ 1325 /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */
1303 #undef FAST_OSD 1326 #undef FAST_OSD
1304 #undef FAST_OSD_TABLE 1327 #undef FAST_OSD_TABLE
1305 1328