mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
f64f75fde5
commit
5d1e3dc14e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
15
configure.in
15
configure.in
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user