Browse Source

Test for cpprest with pthreads

master
Monty Taylor 3 months ago
parent
commit
52ba519ce2
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      m4/pandora_have_libcpprest.m4

+ 5
- 0
m4/pandora_have_libcpprest.m4 View File

@@ -21,11 +21,16 @@ AC_DEFUN([_PANDORA_SEARCH_LIBCPPREST],[
21 21
 
22 22
   AS_IF([test "x$ac_enable_libcpprest" = "xyes"],[
23 23
     AC_LANG_PUSH([C++])
24
+    save_CXXFLAGS="${CXXFLAGS}"
25
+    CXXFLAGS="${PTHREAD_CFLAGS} ${CXXFLAGS}"
24 26
     AC_LIB_HAVE_LINKFLAGS(cpprest,[boost_system ssl crypto],[
25 27
 #include <cpprest/http_client.h>
26 28
     ],[
27 29
 web::http::client::http_client client("http://example.com/");
28 30
     ])
31
+    CXXFLAGS="${save_CXXFLAGS}"
32
+    LIBCPPREST="${LIBCPPREST} ${PTHREAD_LIBS}"
33
+    LTLIBCPPREST="${LTLIBCPPREST} ${PTHREAD_LIBS}"
29 34
     AC_LANG_POP()
30 35
   ],[
31 36
     ac_cv_libcpprest="no"

Loading…
Cancel
Save