mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES) to hold various defines
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES) to hold various defines to get the right thread implementation on different platforms. Also look in -ldce for pthread_create. Should make it work on HP-UX 10.x. * gthread/Makefile.am (INCLUDES): Added @GTHREAD_COMPILE_IMPL_DEFINES@.
This commit is contained in:
parent
05f42cc0e2
commit
3e95674232
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
@ -1,3 +1,10 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
to hold various defines to get the right thread implementation on
|
||||
different platforms. Also look in -ldce for pthread_create. Should
|
||||
make it work on HP-UX 10.x.
|
||||
|
||||
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gstack.c, gqueue.c:
|
||||
|
12
configure.in
12
configure.in
@ -580,6 +580,11 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then
|
||||
fi
|
||||
if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
|
||||
|| test "x$want_threads" = xdce; then
|
||||
# -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
|
||||
# -U_OSF_SOURCE if for Digital UNIX 4.0d
|
||||
GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
|
||||
glib_save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
|
||||
if test "x$have_threads" = xnone; then
|
||||
AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_init[^a-zA-Z_]],
|
||||
pthread.h,
|
||||
@ -590,6 +595,7 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
|
||||
pthread.h,
|
||||
have_threads=dce)
|
||||
fi
|
||||
CPPFLAGS="$glib_save_CPPFLAGS"
|
||||
fi
|
||||
if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
|
||||
if test "x$have_threads" = xnone; then
|
||||
@ -618,7 +624,7 @@ case $have_threads in
|
||||
posix|dce)
|
||||
G_THREAD_LIBS=error
|
||||
glib_save_LIBS="$LIBS"
|
||||
for thread_lib in "" pthread pthreads c_r thread; do
|
||||
for thread_lib in "" pthread pthreads c_r thread dce; do
|
||||
# This is not AC_CHECK_LIB to also work with function
|
||||
# name mangling in header files.
|
||||
if test x"$thread_lib" = x; then
|
||||
@ -640,9 +646,6 @@ case $have_threads in
|
||||
[AC_MSG_RESULT(no)])
|
||||
done
|
||||
LIBS="$glib_save_LIBS"
|
||||
dnl ********** DG/UX ************
|
||||
AC_CHECK_LIB(thread, __d10_pthread_create,
|
||||
G_THREAD_CFLAGS="-D_POSIX4A_DRAFT10_SOURCE")
|
||||
mutex_has_default=yes
|
||||
mutex_default_type='pthread_mutex_t'
|
||||
mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
|
||||
@ -653,6 +656,7 @@ case $have_threads in
|
||||
g_threads_impl="DCE"
|
||||
have_threads="posix"
|
||||
fi
|
||||
AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
|
||||
;;
|
||||
solaris)
|
||||
G_THREAD_LIBS=error
|
||||
|
@ -1,3 +1,7 @@
|
||||
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* Makefile.am (INCLUDES): Added @GTHREAD_COMPILE_IMPL_DEFINES@.
|
||||
|
||||
1999-03-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread-posix.c (g_private_get_posix_impl): Fixed typo for DCE
|
||||
|
@ -1,6 +1,7 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread -DG_LOG_DOMAIN=\"GThread\"
|
||||
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread \
|
||||
-DG_LOG_DOMAIN=\"GThread\" @GTHREAD_COMPILE_IMPL_DEFINES@
|
||||
|
||||
EXTRA_DIST = \
|
||||
gthread-posix.c \
|
||||
|
Loading…
Reference in New Issue
Block a user