I am trying to compile a library, liblo. I am installing it because it is a required library for another library that I am trying to install, osc-mex. In order for liblo to work with osc-mex on Windows, I need to compile liblo with "pthreads commented out".
As far as I can tell from reading around, pthread is a protocol used with Unix? In any event, I need to remove mentions of pthread in the liblo code. But I'm presented with a problem; there are multiple regions of the code that has 'pthread' mentioned. Searching the (uncompiled) source of the liblo directory for the text "pthreads" yields 25 results in eight files:
Filename Line # Line text
*********************************************************************************
ChangeLog 165 * Fixed pthread resource leak, when stopping thread
NEWS 153 * Fixed pthread resource leak, when stopping server
config.h.in 18 /* Define to 1 if you have the `pthread' library (-lpthread). */
config.h.in 19 #undef HAVE_LIBPTHREAD
configure 11000 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
configure 11001 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
configure 11002 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
configure 11006 LIBS="-lpthread $LIBS"
configure 11020 char pthread_create ();
configure 11024 return pthread_create ();
configure 11047 ac_cv_lib_pthread_pthread_create=yes
configure 11052 ac_cv_lib_pthread_pthread_create=no
configure 11059 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
configure 11060 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
configure 11061 if test $ac_cv_lib_pthread_pthread_create = yes; then
configure 11063 #define HAVE_LIBPTHREAD 1
configure 11066 LIBS="-lpthread $LIBS"
configure.ac43 AC_CHECK_LIB([pthread], [pthread_create])
liblo.pc.in 9 Libs: -L${libdir} -llo -lpthread
libtool 4511 # Do not include libc_r directly, use -pthread flag.
libtool 4536 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
libtool 5030 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
ltmain.sh 4027 # Do not include libc_r directly, use -pthread flag.
ltmain.sh 4052 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
ltmain.sh 4546 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
Obviously, some of the above lines are already comments, but there are also lines here which could be modified in many different ways to achieve the same aim. The instruction to "comment out pthreads" is something I don't entirely understand or know how to implement. Any advice would be appreciated.