configure: remove dead code for in-tree builds

The $pwd_is_source_path variable is never "y", since
configure re-executes itself from a build directory.
Remove code that will never run.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-09-01 03:23:47 -04:00
parent 4fbcdcd742
commit 0f4d8894df
1 changed files with 2 additions and 12 deletions

14
configure vendored
View File

@ -665,14 +665,6 @@ QEMU_INCLUDES="$QEMU_INCLUDES -iquote ${source_path}/disas/libvixl"
CFLAGS="-std=gnu99 -Wall" CFLAGS="-std=gnu99 -Wall"
# running configure in the source tree?
# we know that's the case if configure is there.
if test -f "./configure"; then
pwd_is_source_path="y"
else
pwd_is_source_path="n"
fi
check_define() { check_define() {
cat > $TMPC <<EOF cat > $TMPC <<EOF
#if !defined($1) #if !defined($1)
@ -4262,9 +4254,7 @@ EOF
if test -d "${source_path}/dtc/libfdt" || test -e "${source_path}/.git" ; then if test -d "${source_path}/dtc/libfdt" || test -e "${source_path}/.git" ; then
fdt=git fdt=git
mkdir -p dtc mkdir -p dtc
if [ "$pwd_is_source_path" != "y" ] ; then symlink "$source_path/dtc/Makefile" "dtc/Makefile"
symlink "$source_path/dtc/Makefile" "dtc/Makefile"
fi
fdt_cflags="-I${source_path}/dtc/libfdt" fdt_cflags="-I${source_path}/dtc/libfdt"
fdt_ldflags="-Ldtc/libfdt" fdt_ldflags="-Ldtc/libfdt"
fdt_libs="$fdt_libs" fdt_libs="$fdt_libs"
@ -8088,7 +8078,7 @@ do
done done
mkdir -p $DIRS mkdir -p $DIRS
for f in $LINKS ; do for f in $LINKS ; do
if [ -e "$source_path/$f" ] && [ "$pwd_is_source_path" != "y" ]; then if [ -e "$source_path/$f" ]; then
symlink "$source_path/$f" "$f" symlink "$source_path/$f" "$f"
fi fi
done done