--- parser3/configure.ac 2026/10/08 19:08:50 1.87 +++ parser3/configure.ac 2026/10/29 10:25:00 1.95 @@ -85,6 +85,7 @@ esac AC_CHECK_LIB(m, sin) AC_CHECK_LIB(crypt, crypt) +AC_SEARCH_LIBS(timer_create, rt) dnl Misc arguments @@ -386,8 +387,8 @@ AC_ARG_WITH(amqp,[ --with-amqp=DIR AC_CHECK_HEADER([amqp_ssl_socket.h],[AC_DEFINE([WITH_AMQP_SSL],,[librabbitmq with SSL support])]) else AMQP_INCLUDES="-I$AMQP/include" - if test -f $AMQP/lib/librabbitmq.la; then - AMQP_LIBS="$AMQP/lib/librabbitmq.la" + if test -f $AMQP/lib/librabbitmq.a; then + AMQP_LIBS="$AMQP/lib/librabbitmq.a" else AMQP_LIBS="-L$AMQP/lib -lrabbitmq" fi @@ -564,9 +565,16 @@ PA_TRY_COMPILE([#include ], [str AC_MSG_CHECKING(for gettid) PA_TRY_COMPILE([ #include +#include #include ], [uint tid=syscall(__NR_gettid);], AC_DEFINE(HAVE_GETTID) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) +AC_MSG_CHECKING(for pthread_getthreadid_np) +PA_TRY_COMPILE([ +#include +#include +], [unsigned int tid=pthread_getthreadid_np();], AC_DEFINE(HAVE_PTHREAD_GETTHREADID_NP) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) + AC_MSG_CHECKING(for TLS) PA_TRY_COMPILE([__thread int i=0;], [], AC_DEFINE(HAVE_TLS) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) @@ -593,6 +601,7 @@ AH_TEMPLATE([HAVE_TIMEZONE],[Define if y AH_TEMPLATE([HAVE_TM_GMTOFF],[Define if you have tm_gmtoff member of tm structure in ]) AH_TEMPLATE([HAVE_TM_TZADJ],[Define if you have tm_tzadj member of tm structure in ]) AH_TEMPLATE([HAVE_GETTID],[Define if you have gettid()]) +AH_TEMPLATE([HAVE_PTHREAD_GETTHREADID_NP],[Define if you have pthread_getthreadid_np()]) AH_TEMPLATE([HAVE_TLS],[Define if you have Thread-Local Storage]) AH_TEMPLATE([PA_DATE64],[Define if you have 0..9999 year date range support])