diff options
author | Luca Deri <deri@ntop.org> | 2020-11-30 16:30:38 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-11-30 16:30:38 +0100 |
commit | d4a42ed73325f8f07f26f96fc08ad4feb8880df3 (patch) | |
tree | e0fb9c703e2f31ec66118a234e3517f618787d47 | |
parent | 6b9155589a3db112b164ce05ba01ea667100a19d (diff) |
Improved JSON-C detection
-rw-r--r-- | configure.seed | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.seed b/configure.seed index 1dffd3bac..2314ff75c 100644 --- a/configure.seed +++ b/configure.seed @@ -76,7 +76,10 @@ AC_DEFINE_UNQUOTED(NDPI_GIT_RELEASE, "${GIT_RELEASE}", [GIT Release]) AC_DEFINE_UNQUOTED(NDPI_GIT_DATE, "${GIT_DATE}", [Last GIT change]) dnl> used by json-c for unit tests -PKG_CHECK_MODULES([JSONC], [json-c]) +PKG_CHECK_MODULES([JSONC], [json-c], [JSONC_LIBS=`pkg-config --cflags json-c`, JSONC_CFLAGS=`pkg-config --libs json-c`]) + +LIBS="$LIBS $JSONC_LIBS" +CFLAGS="$CFLAGS $JSONC_CFLAGS" AC_CHECK_HEADERS([netinet/in.h stdint.h stdlib.h string.h unistd.h json.h]) |