pthread_create in libc

1999-03-16  Timur Bakeyev  <mc@bat.ru>

	* configure.in: Fix problem with pthread_create in libc, as running
	"gcc test.c -l " is not legal.
This commit is contained in:
Timur Bakeyev 1999-03-16 22:07:28 +00:00 committed by Timur I. Bakeyev
parent f64f75fde5
commit 5d1e3dc14e
9 changed files with 51 additions and 4 deletions

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -1,3 +1,8 @@
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the

View File

@ -605,14 +605,21 @@ case $have_threads in
for thread_lib in "" pthread pthreads c_r thread; do
# This is not AC_CHECK_LIB to also work with function
# name mangling in header files.
LIBS="$glib_save_LIBS -l$thread_lib"
IN=
test x"$thread_lib" = x || IN=" in -l$thread_lib"
if test x"$thread_lib" = x; then
add_thread_lib=""
IN=""
else
add_thread_lib="-l$thread_lib"
IN=" in -l$thread_lib"
fi
LIBS="$glib_save_LIBS $add_thread_lib"
AC_MSG_CHECKING(for pthread_create$IN)
AC_TRY_LINK([#include <pthread.h>],
[pthread_create(NULL,NULL,NULL,NULL)],
[AC_MSG_RESULT(yes)
G_THREAD_LIBS="-l$thread_lib"
G_THREAD_LIBS="$add_thread_lib"
break],
[AC_MSG_RESULT(no)])
done