Revision bdf523e6

b/Makefile
28 28
include $(SRC_PATH)/rules.mak
29 29
config-host.mak: $(SRC_PATH)/configure
30 30
	@echo $@ is out-of-date, running configure
31
	@sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
31
	@# TODO: The next lines include code which supports a smooth
32
	@# transition from old configurations without config.status.
33
	@# This code can be removed after QEMU 1.7.
34
	@if test -x config.status; then \
35
	    ./config.status; \
36
        else \
37
	    sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh; \
38
	fi
32 39
else
33 40
config-host.mak:
34 41
ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
b/configure
27 27
echo >> config.log
28 28
echo "#" >> config.log
29 29

  
30
# Save the configure command line for later reuse.
31
cat <<EOD >config.status
32
#!/bin/sh
33
# Generated by configure.
34
# Run this file to recreate the current configuration.
35
# Compiler output produced by configure, useful for debugging
36
# configure, is in config.log if it exists.
37
EOD
38
printf "exec" >>config.status
39
printf " '%s'" "$0" "$@" >>config.status
40
echo >>config.status
41
chmod +x config.status
42

  
30 43
error_exit() {
31 44
    echo
32 45
    echo "ERROR: $1"
......
3757 3770
echo "# Automatically generated by configure - do not modify" >config-all-disas.mak
3758 3771

  
3759 3772
echo "# Automatically generated by configure - do not modify" > $config_host_mak
3760
printf "# Configured with:" >> $config_host_mak
3761
printf " '%s'" "$0" "$@" >> $config_host_mak
3762 3773
echo >> $config_host_mak
3763 3774

  
3764 3775
echo all: >> $config_host_mak

Also available in: Unified diff