summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-25 11:46:50 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-25 11:46:50 +0000
commitefa761daf063a611bc59fd49e2b6afe57c9728eb (patch)
tree31a0a04f43da3f5f3498397915fdb9d6247f8b07
parent5ec534c72e30017f74fe28f5c11c502cdada2607 (diff)
downloadmpv-efa761daf063a611bc59fd49e2b6afe57c9728eb.tar.bz2
mpv-efa761daf063a611bc59fd49e2b6afe57c9728eb.tar.xz
added irix64()
original patch for irix64 by Martin Decky - slightly modified replaced a "$_cc blah" by "cc_check" (SGI audio) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2464 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure50
1 files changed, 29 insertions, 21 deletions
diff --git a/configure b/configure
index 3fe70e506a..0f022468b5 100755
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
#
# MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
@@ -146,6 +146,10 @@ bsd() {
freebsd || openbsd || bsdos
return "$?"
}
+irix64() {
+ test "$system_name" = "IRIX64"
+ return "$?"
+}
# Check how echo works in this /bin/sh
@@ -395,13 +399,12 @@ CHELP='help_mp.h'
# --- Check for C compiler:
if test -z "$_x11libdir" ; then
- if test -d /usr/X11R6 ; then
- _x11libdir=-L/usr/X11R6/lib
- else
- if test -d /usr/X11 ; then
- _x11libdir=-L/usr/X11/lib
- fi
- fi
+ for I in /usr/X11R6 /usr/X11 /usr/lib32 ; do
+ if test -d "$I" ; then
+ _x11libdir="-L$I"
+ break;
+ fi
+ done
fi
if test -z "$_x11incdir" ; then
@@ -887,7 +890,10 @@ _termcap=no
cc_check $_extraincdir $_extralibdir -ltermcap && _termcap=yes
_png=no
-cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes
+if test ! irix64 ; then
+ # Don't check for -png on irix
+ cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes
+fi
_vorbis=no
cc_check $_extraincdir $_extralibdir -lvorbis -lm && _vorbis=yes
@@ -1149,6 +1155,7 @@ cc_check && _sys_soundcard_h=yes
# ---
# try to detect type of audio supported on this machine
+
# check for OSS audio
cat > $TMPC << EOF
#include <sys/soundcard.h>
@@ -1158,16 +1165,6 @@ _oss_audio=no
cc_check && _oss_audio=yes
-# check for SUN audio
-cat > $TMPC << EOF
-#include <sys/types.h>
-#include <sys/audioio.h>
-int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
-EOF
-_sun_audio=no
-cc_check && _sun_audio=yes
-
-
# check for ALSA audio: 0.5.x then 0.9.x
if test "$_alsa" = yes ; then
_alsaver=no
@@ -1195,14 +1192,25 @@ int main( void ){ return 0; }
EOF
cc_check $_extraincdir $_extralibdir -lesd || _esd=no
+
+# check for SUN audio
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/audioio.h>
+int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
+EOF
+_sun_audio=no
+cc_check && _sun_audio=yes
+
+
# check for SGI audio
cat > $TMPC << EOF
#include <dmedia/audio.h>
int main( void ) { return 0; }
EOF
-
_sgi_audio=no
-$_cc -o $TMPO $TMPC 2> /dev/null && _sgi_audio=yes
+cc_check && _sgi_audio=yes
+
# check for mad library
cat > $TMPC << EOF