diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-05-26 16:08:25 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-10 00:09:49 +0200 |
commit | dad4664f04fbc794b628549b62dfca26fecd4e56 (patch) | |
tree | 9a5368e8860843db23d75900152dbbd7fcbf922b /create_config | |
parent | 9232eea41c2ce9c5dbf35abaaf0c63d4311b4583 (diff) | |
download | qemu-dad4664f04fbc794b628549b62dfca26fecd4e56.tar.gz qemu-dad4664f04fbc794b628549b62dfca26fecd4e56.tar.bz2 qemu-dad4664f04fbc794b628549b62dfca26fecd4e56.zip |
configure: expand ${prefix} in create_config
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'create_config')
-rwxr-xr-x | create_config | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/create_config b/create_config index edcad254d3..23c0cd51f7 100755 --- a/create_config +++ b/create_config @@ -13,6 +13,15 @@ case $line in pkgversion=${line#*=} echo "#define QEMU_PKGVERSION \"$pkgversion\"" ;; + prefix=* | *dir=*) # directory configuration + name=${line%=*} + value=${line#*=} + define_name=`echo $name | tr '[:lower:]' '[:upper:]'` + eval "define_value=\"$value\"" + echo "#define CONFIG_QEMU_$define_name \"$define_value\"" + # save for the next definitions + eval "$name=\$define_value" + ;; CONFIG_AUDIO_DRIVERS=*) drivers=${line#*=} echo "#define CONFIG_AUDIO_DRIVERS \\" |