[xiph-cvs] cvs commit: libshout/m4 acx_pthread.m4

Karl Heyes karl at xiph.org
Thu Mar 13 16:45:49 PST 2003



karl        03/03/13 19:45:49

  Modified:    m4       acx_pthread.m4
               .        acinclude.m4
               m4       acx_pthread.m4
  Log:
  separate the check for pthread_rwlock_t, it will soon be an optional

Revision  Changes    Path
1.2       +2 -1      ices/m4/acx_pthread.m4

Index: acx_pthread.m4
===================================================================
RCS file: /usr/local/cvsroot/ices/m4/acx_pthread.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- acx_pthread.m4	13 Mar 2003 03:18:27 -0000	1.1
+++ acx_pthread.m4	14 Mar 2003 00:45:49 -0000	1.2
@@ -108,7 +108,7 @@
         # functions on Solaris that doesn't have a non-functional libc stub.
         # We try pthread_create on general principles.
         AC_TRY_LINK([#include <pthread.h>],
-                    [pthread_t th; pthread_rwlock_t rw; pthread_join(th, 0);
+                    [pthread_t th; pthread_join(th, 0);
                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
                     [acx_pthread_ok=yes])
@@ -164,6 +164,7 @@
         if test "x$flag" != xno; then
                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
         fi
+        AC_CHECK_TYPES(pthread_rwlock_t)
 
         LIBS="$save_LIBS"
         CFLAGS="$save_CFLAGS"

<p><p>1.3       +1 -0      icecast/acinclude.m4

Index: acinclude.m4
===================================================================
RCS file: /usr/local/cvsroot/icecast/acinclude.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- acinclude.m4	2 Feb 2003 14:21:57 -0000	1.2
+++ acinclude.m4	14 Mar 2003 00:45:49 -0000	1.3
@@ -465,6 +465,7 @@
         if test "x$flag" != xno; then
                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
         fi
+        AC_CHECK_TYPES(pthread_rwlock_t)
 
         LIBS="$save_LIBS"
         CFLAGS="$save_CFLAGS"

<p><p>1.3       +2 -1      libshout/m4/acx_pthread.m4

Index: acx_pthread.m4
===================================================================
RCS file: /usr/local/cvsroot/libshout/m4/acx_pthread.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- acx_pthread.m4	13 Mar 2003 03:52:02 -0000	1.2
+++ acx_pthread.m4	14 Mar 2003 00:45:49 -0000	1.3
@@ -108,7 +108,7 @@
         # functions on Solaris that doesn't have a non-functional libc stub.
         # We try pthread_create on general principles.
         AC_TRY_LINK([#include <pthread.h>],
-                    [pthread_t th; pthread_rwlock_t rw; pthread_join(th, 0);
+                    [pthread_t th; pthread_join(th, 0);
                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
                     [acx_pthread_ok=yes])
@@ -164,6 +164,7 @@
         if test "x$flag" != xno; then
                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
         fi
+        AC_CHECK_TYPES(pthread_rwlock_t)
 
         LIBS="$save_LIBS"
         CFLAGS="$save_CFLAGS"

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list