default compilation tools to environment variables

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Paolo Bonzini 2010-12-23 11:43:48 +01:00 committed by Blue Swirl
parent 844bab604b
commit 3d8df6409b

20
configure vendored
View file

@ -74,19 +74,13 @@ interp_prefix="/usr/gnemul/qemu-%M"
static="no" static="no"
sparc_cpu="" sparc_cpu=""
cross_prefix="" cross_prefix=""
cc="gcc"
audio_drv_list="" audio_drv_list=""
audio_card_list="ac97 es1370 sb16 hda" audio_card_list="ac97 es1370 sb16 hda"
audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus hda" audio_possible_cards="ac97 es1370 sb16 cs4231a adlib gus hda"
block_drv_whitelist="" block_drv_whitelist=""
host_cc="gcc" host_cc="gcc"
ar="ar"
make="make" make="make"
install="install" install="install"
objcopy="objcopy"
ld="ld"
strip="strip"
windres="windres"
helper_cflags="" helper_cflags=""
libs_softmmu="" libs_softmmu=""
libs_tools="" libs_tools=""
@ -100,7 +94,7 @@ for opt do
case "$opt" in case "$opt" in
--cross-prefix=*) cross_prefix="$optarg" --cross-prefix=*) cross_prefix="$optarg"
;; ;;
--cc=*) cc="$optarg" --cc=*) CC="$optarg"
;; ;;
--cpu=*) cpu="$optarg" --cpu=*) cpu="$optarg"
;; ;;
@ -129,12 +123,12 @@ done
# Using uname is really, really broken. Once we have the right set of checks # Using uname is really, really broken. Once we have the right set of checks
# we can eliminate it's usage altogether # we can eliminate it's usage altogether
cc="${cross_prefix}${cc}" cc="${cross_prefix}${CC-gcc}"
ar="${cross_prefix}${ar}" ar="${cross_prefix}${AR-ar}"
objcopy="${cross_prefix}${objcopy}" objcopy="${cross_prefix}${OBJCOPY-objcopy}"
ld="${cross_prefix}${ld}" ld="${cross_prefix}${LD-ld}"
strip="${cross_prefix}${strip}" strip="${cross_prefix}${STRIP-strip}"
windres="${cross_prefix}${windres}" windres="${cross_prefix}${WINDRES-windres}"
# default flags for all hosts # default flags for all hosts
QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS" QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"