aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 13:32:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 13:32:17 +0000
commit97ccc689e614918a3b21ef58ce77ce297ace27fa (patch)
treebe2e1f56dfdc6f7486a795fbc1a2dab19f2566ee /configure
parentc98baaac2fb3ff80412f7968694ec41c800aea22 (diff)
downloadqemu-97ccc689e614918a3b21ef58ce77ce297ace27fa.zip
qemu-97ccc689e614918a3b21ef58ce77ce297ace27fa.tar.gz
qemu-97ccc689e614918a3b21ef58ce77ce297ace27fa.tar.bz2
Configure check for graphical output (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1460 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 9e4bfe0..9332aa1 100755
--- a/configure
+++ b/configure
@@ -84,6 +84,7 @@ linux="no"
kqemu="no"
kernel_path=""
cocoa="no"
+check_gfx="yes"
# OS specific
targetos=`uname -s`
@@ -186,6 +187,8 @@ for opt do
;;
--enable-cocoa) cocoa="yes" ; sdl="no"
;;
+ --disable-gfx-check) check_gfx="no"
+ ;;
esac
done
@@ -613,6 +616,14 @@ if expr $target : '.*-user' > /dev/null ; then
target_user_only="yes"
fi
+if test "$target_user_only" = "no" -a "$check_gfx" = "yes" \
+ -a "$sdl" = "no" -a "$cocoa" = "no" ; then
+ echo "ERROR: QEMU requires SDL or Cocoa for graphical output"
+ echo "To build QEMU with graphical output configure with --disable-gfx-check"
+ echo "Note that this will disable all output from the virtual graphics card."
+ exit 1;
+fi
+
#echo "Creating $config_mak, $config_h and $target_dir/Makefile"
mkdir -p $target_dir