configure.in
changeset 9424 a3344156e514
parent 9318 3ad27ca380f3
child 9547 208ccaf7b64c
--- a/configure.in	Mon Mar 23 19:54:33 2015 -0400
+++ b/configure.in	Mon Mar 23 20:07:24 2015 -0400
@@ -2424,7 +2424,8 @@
             AC_MSG_CHECKING(for recursive mutexes)
             has_recursive_mutexes=no
             if test x$has_recursive_mutexes = xno; then
-                AC_TRY_COMPILE([
+                AC_TRY_LINK([
+                  #define _GNU_SOURCE 1
                   #include <pthread.h>
                 ],[
                   pthread_mutexattr_t attr;
@@ -2435,7 +2436,8 @@
                 ])
             fi
             if test x$has_recursive_mutexes = xno; then
-                AC_TRY_COMPILE([
+                AC_TRY_LINK([
+                  #define _GNU_SOURCE 1
                   #include <pthread.h>
                 ],[
                   pthread_mutexattr_t attr;