Teach usermode emulation how to lie about uname -r.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1920 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/configure b/configure
index aae84af..d33e202 100755
--- a/configure
+++ b/configure
@@ -95,6 +95,7 @@
softmmu="yes"
user="no"
build_docs="no"
+uname_release=""
# OS specific
targetos=`uname -s`
@@ -237,6 +238,8 @@
;;
--enable-user) user="yes"
;;
+ --enable-uname-release=*) uname_release="$optarg"
+ ;;
esac
done
@@ -284,6 +287,7 @@
echo " --disable-user disable all linux usermode emulation targets"
echo " --fmod-lib path to FMOD library"
echo " --fmod-inc path to FMOD includes"
+echo " --enable-uname-release=R Return R for uname -r in usermode emulation"
echo ""
echo "NOTE: The object files are build at the place where configure is launched"
exit 1
@@ -553,6 +557,8 @@
echo "FMOD support $fmod $fmod_support"
echo "kqemu support $kqemu"
echo "Documentation $build_docs"
+[ ! -z "$uname_release" ] && \
+echo "uname -r $uname_release"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -711,6 +717,8 @@
echo "#define _BSD 1" >> $config_h
fi
+echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h
+
for target in $target_list; do
target_dir="$target"
config_mak=$target_dir/config.mak