Skip to contentSkip to conversation

tools: check liblzma in configure for rombios

PATCH In review Wei Liu 2 participants 2 messages Oct 13, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tools: check liblzma in configure for rombios

We upgraded ipxe in 38ab99b2 ("ipxe: update to new commit"). That version of ipxe requires liblzma to build.

Check that in configure and document this in README.

---
Cc: Ian Jackson <[email protected]>

Rerun autogen.sh while committing.

---
 README             |   1 +
 tools/config.h.in  |   3 ++
 tools/configure    | 139 +++++++++++++++++++++++++++++++++++------------------
 tools/configure.ac |   2 +
 4 files changed, 99 insertions(+), 46 deletions(-)
README +1 -0
index 91f4a8b..b370ce2 100644
@@ -82,6 +82,7 @@ disabled at compile time:
       information.
     * 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios
       (dev86 rpm or bin86 & bcc debs)
+    * Development install of liblzma for rombios
 
 Second, you need to acquire a suitable kernel for use in domain 0. If
 possible you should use a kernel provided by your OS distributor. If
tools/config.h.in +3 -0
index f65eec4..58856bc 100644
@@ -36,6 +36,9 @@
 /* Define to 1 if you have the `fdt' library (-lfdt). */
 #undef HAVE_LIBFDT
 
+/* Define to 1 if you have the `lzma' library (-llzma). */
+#undef HAVE_LIBLZMA
+
 /* Define to 1 if you have the `yajl' library (-lyajl). */
 #undef HAVE_LIBYAJL
 
tools/configure +93 -46

157 lines not on this page · raw message

tools/configure.ac +2 -0
index 794c615..1a8e493 100644
@@ -173,6 +173,8 @@ AS_IF([test "x$enable_rombios" = "xyes"], [
     AX_PATH_PROG_OR_FAIL([AS86], [as86])
     AX_PATH_PROG_OR_FAIL([LD86], [ld86])
     AX_PATH_PROG_OR_FAIL([BCC], [bcc])
+    AC_CHECK_LIB([lzma], [lzma_version_number], [],
+        [AC_MSG_ERROR([Could not find lzma, needed to build rombios])])
     AC_DEFINE([HAVE_ROMBIOS], [1], [ROMBIOS enabled])
     rombios=y],[
     rombios=n
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel