Changeset 1783 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Feb 7, 2008 1:11:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r1738 r1783 1 AC_INIT(pjproject,0. 7)1 AC_INIT(pjproject,0.8) 2 2 3 3 host_orig="$host" … … 147 147 AC_CHECK_HEADER(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)]) 148 148 AC_CHECK_HEADER(ifaddrs.h,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)]) 149 AC_CHECK_HEADER(semaphore.h,[AC_DEFINE(PJ_HAS_SEMAPHORE_H,1)]) 149 150 AC_CHECK_HEADER(setjmp.h,[AC_DEFINE(PJ_HAS_SETJMP_H,1)]) 150 151 AC_CHECK_HEADER(stdarg.h,[AC_DEFINE(PJ_HAS_STDARG_H,1)]) … … 269 270 [pthread_rwlock_t *x;])], 270 271 [AC_DEFINE(PJ_EMULATE_RWMUTEX,0) 272 ac_rwmutex="yes" 271 273 AC_MSG_RESULT(yes)], 272 274 [AC_DEFINE(PJ_EMULATE_RWMUTEX,1) 275 ac_rwmutex="no" 273 276 AC_MSG_RESULT(no)]) 277 278 dnl # If rwmutex is not detected, check again but this time 279 dnl # with _POSIX_READER_WRITER_LOCKS defined (newlib needs this) 280 if test "$ac_rwmutex" = "no"; then 281 AC_MSG_CHECKING([if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS]) 282 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _POSIX_READER_WRITER_LOCKS 283 #include <pthread.h>]], 284 [pthread_rwlock_t *x;])], 285 [AC_DEFINE(PJ_EMULATE_RWMUTEX,0) 286 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" 287 AC_MSG_RESULT(yes)], 288 [AC_DEFINE(PJ_EMULATE_RWMUTEX,1) 289 AC_MSG_RESULT(no)]) 290 fi 291 292 dnl # Do we have pthread_mutexattr_settype()? 293 AC_MSG_CHECKING([if pthread_mutexattr_settype() is available]) 294 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], 295 [pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);])], 296 [AC_DEFINE(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE,1) 297 AC_MSG_RESULT(yes)], 298 [AC_MSG_RESULT(no)]) 299 300 dnl # Does pthread_mutexattr_t has "recursive" member? 301 AC_MSG_CHECKING([if pthread_mutexattr_t has recursive member]) 302 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], 303 [[pthread_mutexattr_t attr; 304 attr.recursive=1;]])], 305 [AC_DEFINE(PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE,1) 306 AC_MSG_RESULT(yes)], 307 [AC_MSG_RESULT(no)]) 274 308 275 309 AC_SUBST(ac_os_objs)
Note: See TracChangeset
for help on using the changeset viewer.