diff options
author | Lluís | 2011-08-31 20:31:03 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2011-09-01 11:34:53 +0200 |
commit | e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7 (patch) | |
tree | ceb7f2b2cdff3c511e1807e65eb862b82cfac16c /configure | |
parent | trace: move backend-specific code into the trace/ directory (diff) | |
download | qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.tar.gz qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.tar.xz qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.zip |
trace: avoid conditional code compilation during option parsing
A default implementation for backend-specific routines is provided in
"trace/default.c", which backends can override by setting "trace_default=no" in
"configure".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3064,12 +3064,15 @@ bsd) ;; esac +# use default implementation for tracing backend-specific routines +trace_default=yes echo "TRACE_BACKEND=$trace_backend" >> $config_host_mak if test "$trace_backend" = "nop"; then echo "CONFIG_TRACE_NOP=y" >> $config_host_mak fi if test "$trace_backend" = "simple"; then echo "CONFIG_TRACE_SIMPLE=y" >> $config_host_mak + trace_default=no # Set the appropriate trace file. trace_file="\"$trace_file-\" FMT_pid" fi @@ -3086,6 +3089,9 @@ if test "$trace_backend" = "dtrace"; then fi fi echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak +if test "$trace_default" = "yes"; then + echo "CONFIG_TRACE_DEFAULT=y" >> $config_host_mak +fi echo "TOOLS=$tools" >> $config_host_mak echo "ROMS=$roms" >> $config_host_mak |