Skip to contentSkip to conversation

tools/check: check for yajl (needed by libxl)

PATCH In review Ian Campbell 2 participants 2 messages Oct 5, 2011 – Oct 10, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/check: check for yajl (needed by libxl)

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1317807757 -3600
# Node ID be6610d3477ebd77eb37c5961bf19a7afd31676f # Parent af62449dc68e952b8efbbb8302bc9ef0c801c9f9 tools/check: check for yajl (needed by libxl)

We need precisely version 1 so check for .so.1. In the future we should handle yajl v2 as well.

---
(note to committer, ensure the new file is executable)

tools/check/check_yajl_devel new file +8 -0
diff -r af62449dc68e -r be6610d3477e tools/check/check_yajl_devel
@@ -0,0 +1,8 @@
+#!/bin/sh
+# CHECK-BUILD
+
+. ./funcs.sh
+
+has_header yajl/yajl_parse.h || fail "can't find yajl/yajl_parse.h"
+has_header yajl/yajl_gen.h || fail "can't find yajl/yajl_gen.h"
+has_lib libyajl.so || fail "can't find libyajl.so"
tools/check/check_yajl_lib new file +6 -0
diff -r af62449dc68e -r be6610d3477e tools/check/check_yajl_lib
@@ -0,0 +1,6 @@
+#!/bin/sh
+# CHECK-BUILD CHECK-INSTALL
+
+. ./funcs.sh
+
+has_lib libyajl.so.1 || fail "can't find libyajl.so.1 version 1"