check for pthread_attr_init in all cases, du4 needs this since most of the

other functions are just #defines

-Yosh
This commit is contained in:
Manish Singh 1998-12-17 04:08:33 +00:00
parent a62ebb0e75
commit 6166dd889d
9 changed files with 44 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -1,3 +1,8 @@
Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: check for pthread_attr_init in all cases, du4
needs this since most of the other functions are just #defines
Thu Dec 17 04:10:49 1998 Tim Janik <timj@gtk.org>
* glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the

View File

@ -566,10 +566,10 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then
fi
if test "x$want_threads" = xyes || test "x$want_threads" = xposix; then
if test "x$have_threads" = xnone; then
AC_CHECK_LIB(pthread, pthread_cond_init, have_threads=posix)
AC_CHECK_LIB(pthread, pthread_attr_init, have_threads=posix)
fi
if test "x$have_threads" = xnone; then
AC_CHECK_LIB(pthreads, pthread_cond_init, have_threads=posix)
AC_CHECK_LIB(pthreads, pthread_attr_init, have_threads=posix)
fi
if test "x$have_threads" = xnone; then
# dont let us be fooled by a defined pthread_cond_init
@ -602,10 +602,10 @@ G_THREAD_LIBS=
case $have_threads in
posix)
G_THREAD_LIBS=error
AC_CHECK_LIB(pthread, pthread_cond_init,
AC_CHECK_LIB(pthread, pthread_attr_init,
G_THREAD_LIBS="-lpthread")
if test "x$G_THREAD_LIBS" = xerror; then
AC_CHECK_LIB(pthreads, pthread_cond_init,
AC_CHECK_LIB(pthreads, pthread_attr_init,
G_THREAD_LIBS="-lpthreads")
fi
if test "x$G_THREAD_LIBS" = xerror; then