-case $git_submodules_action in
- update|validate)
- if test ! -e "$source_path/.git"; then
- echo "ERROR: cannot $git_submodules_action git submodules without .git"
- exit 1
- fi
- ;;
- ignore)
- if ! test -f "$source_path/ui/keycodemapdb/README"
- then
- echo
- echo "ERROR: missing GIT submodules"
- echo
- if test -e "$source_path/.git"; then
- echo "--with-git-submodules=ignore specified but submodules were not"
- echo "checked out. Please initialize and update submodules."
- else
- echo "This is not a GIT checkout but module content appears to"
- echo "be missing. Do not use 'git archive' or GitHub download links"
- echo "to acquire QEMU source archives. Non-GIT builds are only"
- echo "supported with source archives linked from:"
- echo
- echo " https://www.qemu.org/download/#source"
- echo
- echo "Developers working with GIT can use scripts/archive-source.sh"
- echo "if they need to create valid source archives."
- fi
- echo
- exit 1
- fi
- ;;
- *)
- echo "ERROR: invalid --with-git-submodules= value '$git_submodules_action'"
- exit 1
- ;;
-esac
+if ! test -f "$source_path/subprojects/keycodemapdb/README" \
+ && test "$download" = disabled
+then
+ echo
+ echo "ERROR: missing subprojects"
+ echo
+ if test -e "$source_path/.git"; then
+ echo "--disable-download specified but subprojects were not"
+ echo 'checked out. Please invoke "meson subprojects download"'
+ echo "before configuring QEMU, or remove --disable-download"
+ echo "from the command line."
+ else
+ echo "This is not a GIT checkout but subproject content appears to"
+ echo "be missing. Do not use 'git archive' or GitHub download links"
+ echo "to acquire QEMU source archives. Non-GIT builds are only"
+ echo "supported with source archives linked from:"
+ echo
+ echo " https://www.qemu.org/download/#source"
+ echo
+ echo "Developers working with GIT can use scripts/archive-source.sh"
+ echo "if they need to create valid source archives."
+ fi
+ echo
+ exit 1
+fi