Commit e4c63a6a774025b14c07da8c8eb0c87ab96f8a90
1 parent
889bec69
Reject invalid audio drivers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4906 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
10 additions
and
0 deletions
configure
| @@ -795,6 +795,16 @@ for drv in $audio_drv_list; do | @@ -795,6 +795,16 @@ for drv in $audio_drv_list; do | ||
| 795 | "pa_simple *s = NULL; pa_simple_free(s); return 0;" | 795 | "pa_simple *s = NULL; pa_simple_free(s); return 0;" |
| 796 | ;; | 796 | ;; |
| 797 | 797 | ||
| 798 | + *) | ||
| 799 | + echo "$audio_possible_drivers" | grep -q "$drv" || { | ||
| 800 | + echo | ||
| 801 | + echo "Error: Unknown driver '$drv' selected" | ||
| 802 | + echo "Possible drivers are: $audio_possible_drivers" | ||
| 803 | + echo | ||
| 804 | + exit 1 | ||
| 805 | + } | ||
| 806 | + ;; | ||
| 807 | + | ||
| 798 | esac | 808 | esac |
| 799 | done | 809 | done |
| 800 | 810 |