From: Jeff Garzik Date: Tue, 15 Dec 1998 15:47:13 +0000 (+0000) Subject: Fixed --with-threads, small 64-bit prob X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=5c31783df2f8cc032b7cf82860bc059b03a135f4;p=dana%2Fcg-glib.git Fixed --with-threads, small 64-bit prob --- diff --git a/ChangeLog b/ChangeLog index 9f247874..216a9677 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9f247874..216a9677 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +1998-12-15 Jeff Garzik + + * configure.in: correctly support --without-threads and friends + + * gthread/testgthread.c: corrected 64-bitness problem + Tue Dec 15 10:40:09 1998 Owen Taylor * gnode.c glist.c gslist.c: Make sure all diff --git a/configure.in b/configure.in index 6b7fc2a1..fd96c971 100644 --- a/configure.in +++ b/configure.in @@ -539,13 +539,13 @@ LIBS_NOT_FOUND_2=". Please choose another thread implementation or dnl determination of thread implementation dnl *************************************** -if test x"$with_threads" = x; then +if test "x$with_threads" != xno; then case $host in *-*-solaris*) AC_CHECK_LIB(thread,cond_init,with_threads=solaris) ;; esac - if test x"$with_threads" = x; then + if test "x$with_threads" != xsolaris; then AC_CHECK_LIB(pthread,pthread_cond_init,with_threads=posix) AC_CHECK_LIB(pthreads,pthread_attr_init,with_threads=posix) AC_CHECK_LIB(nspr21,PRP_NewNakedCondVar,with_threads=nspr) @@ -556,10 +556,12 @@ AC_MSG_CHECKING(for thread implementation) if test x"$with_threads" = x; then with_threads=none + AC_MSG_RESULT(none available) AC_MSG_WARN($THREAD_NO_IMPLEMENTATION) +else + AC_MSG_RESULT($with_threads) fi -AC_MSG_RESULT($with_threads) dnl determination of G_THREAD_LIBS dnl ****************************** diff --git a/gthread/testgthread.c b/gthread/testgthread.c index be81f049..b82a2526 100644 --- a/gthread/testgthread.c +++ b/gthread/testgthread.c @@ -173,7 +173,7 @@ test_private () gpointer threads[TEST_PRIVATE_THREADS]; for (i = 0; i < TEST_PRIVATE_THREADS; i++) { - threads[i] = new_thread (test_private_func, (gpointer) i); + threads[i] = new_thread (test_private_func, GINT_TO_POINTER(i)); } for (i = 0; i < TEST_PRIVATE_THREADS; i++) {