comparison configure @ 2463:55dff9b0a9d1

added irix64() original patch for irix64 by Martin Decky - slightly modified replaced a "$_cc blah" by "cc_check" (SGI audio)
author pl
date Thu, 25 Oct 2001 11:46:50 +0000
parents dbd91f3c5699
children 4296c47ff209
comparison
equal deleted inserted replaced
2462:23de840b63f2 2463:55dff9b0a9d1
1 #!/bin/sh 1 #! /bin/sh
2 2
3 # 3 #
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 #
144 } 144 }
145 bsd() { 145 bsd() {
146 freebsd || openbsd || bsdos 146 freebsd || openbsd || bsdos
147 return "$?" 147 return "$?"
148 } 148 }
149 irix64() {
150 test "$system_name" = "IRIX64"
151 return "$?"
152 }
149 153
150 154
151 # Check how echo works in this /bin/sh 155 # Check how echo works in this /bin/sh
152 case `echo -n` in 156 case `echo -n` in
153 -n) _echo_n= _echo_c='\c';; # seems to be a SysV echo 157 -n) _echo_n= _echo_c='\c';; # seems to be a SysV echo
393 MCONF='config.mak' 397 MCONF='config.mak'
394 CHELP='help_mp.h' 398 CHELP='help_mp.h'
395 # --- Check for C compiler: 399 # --- Check for C compiler:
396 400
397 if test -z "$_x11libdir" ; then 401 if test -z "$_x11libdir" ; then
398 if test -d /usr/X11R6 ; then 402 for I in /usr/X11R6 /usr/X11 /usr/lib32 ; do
399 _x11libdir=-L/usr/X11R6/lib 403 if test -d "$I" ; then
400 else 404 _x11libdir="-L$I"
401 if test -d /usr/X11 ; then 405 break;
402 _x11libdir=-L/usr/X11/lib 406 fi
403 fi 407 done
404 fi
405 fi 408 fi
406 409
407 if test -z "$_x11incdir" ; then 410 if test -z "$_x11incdir" ; then
408 if test -d /usr/include/X11 ; then 411 if test -d /usr/include/X11 ; then
409 _x11incdir= 412 _x11incdir=
885 888
886 _termcap=no 889 _termcap=no
887 cc_check $_extraincdir $_extralibdir -ltermcap && _termcap=yes 890 cc_check $_extraincdir $_extralibdir -ltermcap && _termcap=yes
888 891
889 _png=no 892 _png=no
890 cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes 893 if test ! irix64 ; then
894 # Don't check for -png on irix
895 cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes
896 fi
891 897
892 _vorbis=no 898 _vorbis=no
893 cc_check $_extraincdir $_extralibdir -lvorbis -lm && _vorbis=yes 899 cc_check $_extraincdir $_extralibdir -lvorbis -lm && _vorbis=yes
894 900
895 _ggi=no 901 _ggi=no
1147 1153
1148 1154
1149 # --- 1155 # ---
1150 # try to detect type of audio supported on this machine 1156 # try to detect type of audio supported on this machine
1151 1157
1158
1152 # check for OSS audio 1159 # check for OSS audio
1153 cat > $TMPC << EOF 1160 cat > $TMPC << EOF
1154 #include <sys/soundcard.h> 1161 #include <sys/soundcard.h>
1155 int main( void ) { int arg = SNDCTL_DSP_SETFRAGMENT; } 1162 int main( void ) { int arg = SNDCTL_DSP_SETFRAGMENT; }
1156 EOF 1163 EOF
1157 _oss_audio=no 1164 _oss_audio=no
1158 cc_check && _oss_audio=yes 1165 cc_check && _oss_audio=yes
1159
1160
1161 # check for SUN audio
1162 cat > $TMPC << EOF
1163 #include <sys/types.h>
1164 #include <sys/audioio.h>
1165 int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
1166 EOF
1167 _sun_audio=no
1168 cc_check && _sun_audio=yes
1169 1166
1170 1167
1171 # check for ALSA audio: 0.5.x then 0.9.x 1168 # check for ALSA audio: 0.5.x then 0.9.x
1172 if test "$_alsa" = yes ; then 1169 if test "$_alsa" = yes ; then
1173 _alsaver=no 1170 _alsaver=no
1193 #include <esd.h> 1190 #include <esd.h>
1194 int main( void ){ return 0; } 1191 int main( void ){ return 0; }
1195 EOF 1192 EOF
1196 cc_check $_extraincdir $_extralibdir -lesd || _esd=no 1193 cc_check $_extraincdir $_extralibdir -lesd || _esd=no
1197 1194
1195
1196 # check for SUN audio
1197 cat > $TMPC << EOF
1198 #include <sys/types.h>
1199 #include <sys/audioio.h>
1200 int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
1201 EOF
1202 _sun_audio=no
1203 cc_check && _sun_audio=yes
1204
1205
1198 # check for SGI audio 1206 # check for SGI audio
1199 cat > $TMPC << EOF 1207 cat > $TMPC << EOF
1200 #include <dmedia/audio.h> 1208 #include <dmedia/audio.h>
1201 int main( void ) { return 0; } 1209 int main( void ) { return 0; }
1202 EOF 1210 EOF
1203
1204 _sgi_audio=no 1211 _sgi_audio=no
1205 $_cc -o $TMPO $TMPC 2> /dev/null && _sgi_audio=yes 1212 cc_check && _sgi_audio=yes
1213
1206 1214
1207 # check for mad library 1215 # check for mad library
1208 cat > $TMPC << EOF 1216 cat > $TMPC << EOF
1209 #include <mad.h> 1217 #include <mad.h>
1210 int main(void) { return 0; } 1218 int main(void) { return 0; }