bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no pthread_spinlock_t on Mac OS 10.6.4


From: Paul Eggert
Subject: Re: no pthread_spinlock_t on Mac OS 10.6.4
Date: Wed, 22 Sep 2010 01:43:37 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

On 09/22/2010 01:18 AM, Gary V. Vaughan wrote:
> Actually this patch seems to make no discernable difference to the behaviour 
> of the build in both cases above.

That's odd, because adding "gl_use_threads_default=no" should cause
"configure" to default to --disable-threads behavior.

What is the difference between the outputs of
"./configure --disable-threads" and of
"./configure --enable-threads=posix"?
The former should behave as if the patch were installed,
and the latter as if it were not installed.

Assuming you have the gnulib patch that I just pushed,
you should see minor changes in the output of "configure",
as follows, where the "+" lines are with the patch
(or with --enable-threads=posix) and the "-" lines are
without the patch (or with --disable-threads).

@@ -333,7 +333,10 @@ checking whether getc_unlocked is declar
 checking whether we are using the GNU C Library 2.1 or newer... yes
 checking for wchar_t... yes
 checking whether NULL can be used in arbitrary expressions... yes
-checking for multithread API to use... none
+checking whether imported symbols can be declared weak... yes
+checking for pthread.h... (cached) yes
+checking for pthread_kill in -lpthread... yes
+checking for multithread API to use... posix
 checking for stdlib.h... (cached) yes
 checking for GNU libc compatible malloc... yes
 checking whether mbrtowc and mbstate_t are properly declared... (cached) yes
@@ -609,6 +612,7 @@ checking whether linkat handles trailing
 checking whether locale.h conforms to POSIX:2001... yes
 checking whether locale.h defines locale_t... yes
 checking whether duplocale is declared without a macro... yes
+checking for pthread_rwlock_t... yes
 checking whether lseek detects pipes... yes
 checking for stdlib.h... (cached) yes
 checking for GNU libc compatible malloc... (cached) yes
@@ -1010,6 +1014,7 @@ checking for wchar_t... (cached) yes
 checking for wint_t... (cached) yes
 checking for mmap... (cached) yes
 checking for MAP_ANONYMOUS... yes
+checking for pthread_atfork... yes
 checking for useconds_t... yes
 checking whether usleep allows large arguments... yes
 checking for a traditional french locale... (cached) fr_FR
@@ -1018,6 +1023,7 @@ checking for a traditional japanese loca
 checking for a transitional chinese locale... (cached) zh_CN.GB18030
 checking whether wctob works... yes
 checking whether wctob is declared... (cached) yes
+checking for sched_yield in -lrt... yes
 checking for library containing strerror... none required
 checking for function prototypes... yes
 checking for string.h... (cached) yes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]