--- libaitsess/configure.in 2011/09/07 15:52:35 1.3.2.1 +++ libaitsess/configure.in 2011/09/07 15:59:46 1.3.2.2 @@ -1,6 +1,6 @@ # # $Author: misho $ -# $Id: configure.in,v 1.3.2.1 2011/09/07 15:52:35 misho Exp $ +# $Id: configure.in,v 1.3.2.2 2011/09/07 15:59:46 misho Exp $ # AC_INIT(libaitsess, 3.0, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitsess.c]) @@ -20,6 +20,7 @@ CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS} LDFLAGS="-L/usr/local/lib ${LDFLAGS}" # Checks for libraries. +AC_CHECK_LIB(pthread, [pthread_create]) # Checks for header files. @@ -31,6 +32,7 @@ AC_C_INLINE AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([bzero memset munmap]) +AC_CHECK_FUNCS([pthread_create pthread_exit]) # It's stupid, but not all platforms have union semun, even those that need it. AC_MSG_CHECKING(looking for union semun in sys/sem.h)