Skip to content

Commit a4c81d6

Browse files
authored
Merge pull request #131 from sc108-lee/fix/json-c
Add libjson version check on configure to fix build error
2 parents 16c28fa + 986c5a9 commit a4c81d6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

configure

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,8 @@ print_config "libuuid" "${libuuid}"
199199
# check for libjson-c
200200
libjsonc="no"
201201
if [ -z "$disable_json" ] ; then
202-
${ld} -o /dev/null -ljson-c >/dev/null 2>&1
203-
if [ $? -eq 0 ]; then
204-
libjsonc="yes"
202+
if pkg-config --atleast-version=0.13 json-c; then
203+
libjsonc="yes"
205204
fi
206205
fi
207206
print_config "libjson-c" "${libjsonc}"

0 commit comments

Comments
 (0)