File qemu.configure-prefix.patch of Package qemu-8.1

From: Olaf Hering <olaf@aepfle.de>
Date: Tue, 17 Apr 2018 19:19:06 +0200
Subject: configure prefix

configure: recognize more rpmbuild macros

Extend the list of recognized, but ignored options from rpms %configure
macro. This fixes build on hosts running SUSE Linux.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

--- a/configure
+++ b/configure
@@ -740,24 +740,25 @@ for opt do
                         error_exit "File $cf does not exist"
                     fi
   ;;
   --without-default-features) # processed above
   ;;
   --static) static="yes"
   ;;
   --bindir=*) bindir="$optarg"
   ;;
   --with-suffix=*) qemu_suffix="$optarg"
   ;;
   --host=*|--build=*|\
+  --program-prefix=*|--exec-prefix=*|\
   --disable-dependency-tracking|\
   --sbindir=*|--sharedstatedir=*|\
   --oldincludedir=*|--datarootdir=*|--infodir=*|\
   --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
     # These switches are silently ignored, for compatibility with
     # autoconf-generated configure scripts. This allows QEMU's
     # configure to be used by RPM and similar macros that set
     # lots of directory switches by default.
   ;;
   --enable-debug-tcg) debug_tcg="yes"
   ;;
   --disable-debug-tcg) debug_tcg="no"
openSUSE Build Service is sponsored by