configure.in
changeset 5969 3a041d215edc
parent 5965 dd0c84d3d846
child 5975 516c5c4e7bea
     1.1 --- a/configure.in	Tue Sep 27 23:16:04 2011 -0400
     1.2 +++ b/configure.in	Sun Oct 02 00:29:16 2011 -0400
     1.3 @@ -1642,6 +1642,30 @@
     1.4              ])
     1.5              AC_MSG_RESULT($has_pthread_spin_trylock)
     1.6  
     1.7 +            AC_CHECK_HEADER(pthread_np.h, have_pthread_np_h=yes)
     1.8 +            if test x$have_pthread_np_h = xyes; then
     1.9 +                AC_DEFINE(HAVE_PTHREAD_NP_H, 1, [ ])
    1.10 +            fi
    1.11 +
    1.12 +            # Check to see if pthread naming is available
    1.13 +            AC_MSG_CHECKING(for pthread_setname_np)
    1.14 +            AC_TRY_LINK_FUNC(pthread_setname_np, [
    1.15 +              has_pthread_setname_np=yes
    1.16 +              AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [ ])
    1.17 +            ],[
    1.18 +              has_pthread_setname_np=no
    1.19 +            ])
    1.20 +            AC_MSG_RESULT($has_pthread_setname_np)
    1.21 +
    1.22 +            AC_MSG_CHECKING(for pthread_set_name_np)
    1.23 +            AC_TRY_LINK_FUNC(pthread_set_name_np, [
    1.24 +              has_pthread_set_name_np=yes
    1.25 +              AC_DEFINE(HAVE_PTHREAD_SET_NAME_NP, 1, [ ])
    1.26 +            ],[
    1.27 +              has_pthread_set_name_np=no
    1.28 +            ])
    1.29 +            AC_MSG_RESULT($has_pthread_set_name_np)
    1.30 +
    1.31              # Restore the compiler flags and libraries
    1.32              CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
    1.33