Commit 0a8e90f401ec602c007ae591138160b4de838630
1 parent
8637c67f
Configure options to enable/disable all softmmu/user targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1787 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
23 additions
and
2 deletions
configure
... | ... | @@ -90,6 +90,8 @@ kernel_path="" |
90 | 90 | cocoa="no" |
91 | 91 | check_gfx="yes" |
92 | 92 | check_gcc="yes" |
93 | +softmmu="yes" | |
94 | +user="no" | |
93 | 95 | |
94 | 96 | # OS specific |
95 | 97 | targetos=`uname -s` |
... | ... | @@ -123,6 +125,7 @@ darwin="yes" |
123 | 125 | *) |
124 | 126 | oss="yes" |
125 | 127 | linux="yes" |
128 | +user="yes" | |
126 | 129 | if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then |
127 | 130 | kqemu="yes" |
128 | 131 | fi |
... | ... | @@ -208,6 +211,14 @@ for opt do |
208 | 211 | ;; |
209 | 212 | --disable-gcc-check) check_gcc="no" |
210 | 213 | ;; |
214 | + --disable-softmmu) softmmu="no" | |
215 | + ;; | |
216 | + --enable-softmmu) softmmu="yes" | |
217 | + ;; | |
218 | + --disable-user) user="no" | |
219 | + ;; | |
220 | + --enable-user) user="yes" | |
221 | + ;; | |
211 | 222 | esac |
212 | 223 | done |
213 | 224 | |
... | ... | @@ -232,14 +243,20 @@ fi |
232 | 243 | |
233 | 244 | if test -z "$target_list" ; then |
234 | 245 | # these targets are portable |
235 | - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu" | |
246 | + if [ "$softmmu" = "yes" ] ; then | |
247 | + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu" | |
248 | + fi | |
236 | 249 | # the following are Linux specific |
237 | - if [ "$linux" = "yes" ] ; then | |
250 | + if [ "$user" = "yes" ] ; then | |
238 | 251 | target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list" |
239 | 252 | fi |
240 | 253 | else |
241 | 254 | target_list=$(echo "$target_list" | sed -e 's/,/ /g') |
242 | 255 | fi |
256 | +if test -z "$target_list" ; then | |
257 | + echo "No targets enabled" | |
258 | + exit 1 | |
259 | +fi | |
243 | 260 | |
244 | 261 | if test -z "$cross_prefix" ; then |
245 | 262 | |
... | ... | @@ -385,6 +402,10 @@ echo " --enable-coreaudio enable Coreaudio audio driver" |
385 | 402 | echo " --enable-alsa enable ALSA audio driver" |
386 | 403 | echo " --enable-fmod enable FMOD audio driver" |
387 | 404 | echo " --enabled-dsound enable DirectSound audio driver" |
405 | +echo " --enable-system enable all system emulation targets" | |
406 | +echo " --disable-system disable all system emulation targets" | |
407 | +echo " --enable-user enable all linux usermode emulation targets" | |
408 | +echo " --disable-user disable all linux usermode emulation targets" | |
388 | 409 | echo " --fmod-lib path to FMOD library" |
389 | 410 | echo " --fmod-inc path to FMOD includes" |
390 | 411 | echo "" | ... | ... |