Mercurial > mplayer.hg
comparison configure @ 21556:283bff578e1c
Support OpenAL headers in OpenAL/ instead of AL/ and OpenAL on MacOSX in general.
author | reimar |
---|---|
date | Sun, 10 Dec 2006 14:07:08 +0000 |
parents | 8edf162f5862 |
children | 7412d71880d5 |
comparison
equal
deleted
inserted
replaced
21555:ababf115f90d | 21556:283bff578e1c |
---|---|
4927 | 4927 |
4928 echocheck "OpenAL" | 4928 echocheck "OpenAL" |
4929 if test "$_openal" = auto ; then | 4929 if test "$_openal" = auto ; then |
4930 _openal=no | 4930 _openal=no |
4931 cat > $TMPC << EOF | 4931 cat > $TMPC << EOF |
4932 #ifdef OPENAL_AL_H | |
4933 #include <OpenAL/al.h> | |
4934 #else | |
4932 #include <AL/al.h> | 4935 #include <AL/al.h> |
4936 #endif | |
4933 int main(void) { | 4937 int main(void) { |
4934 alSourceQueueBuffers(0, 0, 0); | 4938 alSourceQueueBuffers(0, 0, 0); |
4935 // alGetSourcei(0, AL_SAMPLE_OFFSET, 0); | 4939 // alGetSourcei(0, AL_SAMPLE_OFFSET, 0); |
4936 return 0; | 4940 return 0; |
4937 } | 4941 } |
4938 EOF | 4942 EOF |
4939 if cc_check -lopenal ; then | 4943 for I in "-lopenal" "-framework OpenAL" ; do |
4940 _libs_mplayer="$_libs_mplayer -lopenal" | 4944 cc_check $I && _openal=yes && break |
4941 _openal=yes | 4945 cc_check -DOPENAL_AL_H=1 $I && _def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break |
4942 fi | 4946 done |
4947 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" | |
4943 fi | 4948 fi |
4944 if test "$_openal" = yes ; then | 4949 if test "$_openal" = yes ; then |
4945 _def_openal='#define USE_OPENAL 1' | 4950 _def_openal='#define USE_OPENAL 1' |
4946 _aosrc="$_aosrc ao_openal.c" | 4951 _aosrc="$_aosrc ao_openal.c" |
4947 _aomodules="openal $_aomodules" | 4952 _aomodules="openal $_aomodules" |
7914 $_def_esd | 7919 $_def_esd |
7915 $_def_esd_latency | 7920 $_def_esd_latency |
7916 $_def_polyp | 7921 $_def_polyp |
7917 $_def_jack | 7922 $_def_jack |
7918 $_def_openal | 7923 $_def_openal |
7924 $_def_openal_h | |
7919 $_def_sys_asoundlib_h | 7925 $_def_sys_asoundlib_h |
7920 $_def_alsa_asoundlib_h | 7926 $_def_alsa_asoundlib_h |
7921 $_def_sunaudio | 7927 $_def_sunaudio |
7922 $_def_sgiaudio | 7928 $_def_sgiaudio |
7923 $_def_win32waveout | 7929 $_def_win32waveout |