Commit 2f6a1ab038eefd6e5a9cfc8ec49435f6ad025812
1 parent
363a37d5
Fix OSS on OpenBSD
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5045 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
14 additions
and
5 deletions
Makefile.target
configure
... | ... | @@ -92,6 +92,7 @@ slirp="yes" |
92 | 92 | vde="yes" |
93 | 93 | fmod_lib="" |
94 | 94 | fmod_inc="" |
95 | +oss_lib="" | |
95 | 96 | vnc_tls="yes" |
96 | 97 | bsd="no" |
97 | 98 | linux="no" |
... | ... | @@ -153,6 +154,7 @@ bsd="yes" |
153 | 154 | openbsd="yes" |
154 | 155 | audio_drv_list="oss" |
155 | 156 | audio_possible_drivers="oss sdl esd" |
157 | +oss_lib="-lossaudio" | |
156 | 158 | ;; |
157 | 159 | Darwin) |
158 | 160 | bsd="yes" |
... | ... | @@ -273,6 +275,8 @@ for opt do |
273 | 275 | ;; |
274 | 276 | --fmod-inc=*) fmod_inc="$optarg" |
275 | 277 | ;; |
278 | + --oss-lib=*) oss_lib="$optarg" | |
279 | + ;; | |
276 | 280 | --audio-card-list=*) audio_card_list=`echo "$optarg" | sed -e 's/,/ /g'` |
277 | 281 | ;; |
278 | 282 | --audio-drv-list=*) audio_drv_list="$optarg" |
... | ... | @@ -437,6 +441,7 @@ echo " --enable-darwin-user enable all darwin usermode emulation targets" |
437 | 441 | echo " --disable-darwin-user disable all darwin usermode emulation targets" |
438 | 442 | echo " --fmod-lib path to FMOD library" |
439 | 443 | echo " --fmod-inc path to FMOD includes" |
444 | +echo " --oss-lib path to OSS library" | |
440 | 445 | echo " --enable-uname-release=R Return R for uname -r in usermode emulation" |
441 | 446 | echo " --sparc_cpu=V Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9" |
442 | 447 | echo " --disable-vde disable support for vde network" |
... | ... | @@ -823,6 +828,10 @@ for drv in $audio_drv_list; do |
823 | 828 | "pa_simple *s = NULL; pa_simple_free(s); return 0;" |
824 | 829 | ;; |
825 | 830 | |
831 | + oss|sdl|core|wav|dsound) | |
832 | + # XXX: Probes for CoreAudio, DirectSound, SDL(?) | |
833 | + ;; | |
834 | + | |
826 | 835 | *) |
827 | 836 | echo "$audio_possible_drivers" | grep -q "\<$drv\>" || { |
828 | 837 | echo |
... | ... | @@ -832,11 +841,6 @@ for drv in $audio_drv_list; do |
832 | 841 | exit 1 |
833 | 842 | } |
834 | 843 | ;; |
835 | - | |
836 | - oss|sdl|core|wav|dsound) | |
837 | - # XXX: Probes for CoreAudio, DirectSound, SDL(?) | |
838 | - ;; | |
839 | - | |
840 | 844 | esac |
841 | 845 | done |
842 | 846 | |
... | ... | @@ -1145,6 +1149,8 @@ for drv in $audio_drv_list; do |
1145 | 1149 | if test "$drv" = "fmod"; then |
1146 | 1150 | echo "CONFIG_FMOD_LIB=$fmod_lib" >> $config_mak |
1147 | 1151 | echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_mak |
1152 | + elif test "$drv" = "oss"; then | |
1153 | + echo "CONFIG_OSS_LIB=$oss_lib" >> $config_mak | |
1148 | 1154 | fi |
1149 | 1155 | done |
1150 | 1156 | echo "" >>$config_h | ... | ... |