configure: Check bzip2 is available
commit623ef637a2e42e023e7436d4bfbdc5159fb36684
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 8 Nov 2019 11:45:31 +0000 (8 12:45 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 11 Nov 2019 13:35:41 +0000 (11 14:35 +0100)
tree8e1000325dbdcb48cc4283855ede8ab715707b1a
parent05dfa22b5b6b6358b0b2c0b09a180f6249ced0a4
configure: Check bzip2 is available

The bzip2 tool is not included in default installations.
On freshly installed systems, ./configure succeeds but 'make'
might fail later:

    BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2
  /bin/sh: bzip2: command not found
  make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
  make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
  make: *** Waiting for unfinished jobs....

Add a check in ./configure to warn the user if bzip2 is missing.

See also: 536d2173b2b ("roms: build edk2 firmware binaries ...")
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191108114531.21518-3-philmd@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure