X-Git-Url: http://www.project-moonshot.org/gitweb/?p=radsecproxy.git;a=blobdiff_plain;f=lib%2Fconfigure.ac;fp=lib%2Fconfigure.ac;h=7d8bd5fd5167d82aaba76876e93146c8a2dce56f;hp=bab02edc140c84e33a725b4b8a16b4c780b788e1;hb=c9b4a492cfe93fc9563d9b2b30bcdceefee1d4bb;hpb=5871418432e1b127c760cd42a50f781d95d245fd diff --git a/lib/configure.ac b/lib/configure.ac index bab02ed..7d8bd5f 100644 --- a/lib/configure.ac +++ b/lib/configure.ac @@ -17,6 +17,8 @@ AC_CHECK_LIB([confuse], [cfg_init],, AC_MSG_ERROR([required library libconfuse not found])) AC_CHECK_LIB([event_core], [event_get_version],, AC_MSG_ERROR([required library libevent_core not found])) +AH_TEMPLATE([HAVE_PTHREADS], [POSIX threads are available on this system]) +AC_SEARCH_LIBS([pthread_create], [pthread], AC_DEFINE([HAVE_PTHREADS])) # Enable-knobs. ## Enable TLS (RadSec), default on. @@ -47,7 +49,7 @@ AM_CONDITIONAL([RS_ENABLE_TLS_PSK], [test "${enable_tls_psk+set}" = set]) # Checks for header files. AC_CHECK_HEADERS( [sys/time.h time.h netdb.h netinet/in.h stdint.h stdlib.h strings.h string.h \ - sys/socket.h unistd.h syslog.h sys/select.h fcntl.h arpa/inet.h]) + sys/socket.h unistd.h syslog.h sys/select.h fcntl.h arpa/inet.h pthread.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T