diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2015-05-25 09:53:15 +0200 |
---|---|---|
committer | Luca Deri <lucaderi@users.noreply.github.com> | 2015-05-25 09:53:15 +0200 |
commit | 22d6e4f7c24205e4807eabd0d6adf95b68e9c6be (patch) | |
tree | 7c6729edacc8f4c7c9a9c2ad0c5066e219ccf01f /configure.ac | |
parent | 4cded5dc98c06722d801b248a5028d5bf115ab02 (diff) | |
parent | e7c0d41dd259a56cb36b5815e04d8cfe4f837fbc (diff) |
Merge pull request #11 from pr0gg3d/dev
Add check for pthread_setaffinity_np
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c85c0c38c..7152f2aa9 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,8 @@ LIBS=$OLD_LIBS AC_CHECK_LIB(json-c, json_object_new_object, AC_DEFINE_UNQUOTED(HAVE_JSON_C, 1, [The JSON-C library is present])) +AC_CHECK_LIB(pthread, pthread_setaffinity_np, AC_DEFINE_UNQUOTED(HAVE_PTHREAD_SETAFFINITY_NP, 1, [libc has pthread_setaffinity_np])) + AC_CONFIG_FILES([Makefile src/lib/Makefile example/Makefile libndpi.pc]) AC_CONFIG_HEADERS(config.h) AC_SUBST(GIT_RELEASE) @@ -86,5 +88,6 @@ AC_SUBST(SVN_DATE) AC_SUBST(JSON_C_LIB) AC_SUBST(PCAP_INC) AC_SUBST(PCAP_LIB) +AC_SUBST(HAVE_PTHREAD_SETAFFINITY_NP) AC_OUTPUT |