mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 05:39:21 +01:00
Fixed recognition of dce. Do not use -lc_r on OpenBSD and FreeBSD. Instead
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Fixed recognition of dce. Do not use -lc_r on OpenBSD and FreeBSD. Instead use -pthread. Move scheduling parameter check to after the case..esac block for finding the right thread libs.
This commit is contained in:
parent
70bdb43ba8
commit
6e61ccb19e
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Fixed recognition of dce. Do not use -lc_r on
|
||||||
|
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
|
||||||
|
parameter check to after the case..esac block for finding the
|
||||||
|
right thread libs.
|
||||||
|
|
||||||
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* GTK+-2.0.0 rc1
|
* GTK+-2.0.0 rc1
|
||||||
|
68
configure.in
68
configure.in
@ -1088,7 +1088,7 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
|
|||||||
if test "x$have_threads" = xno; then
|
if test "x$have_threads" = xno; then
|
||||||
AC_TRY_COMPILE([#include <pthread.h>],
|
AC_TRY_COMPILE([#include <pthread.h>],
|
||||||
[pthread_attr_t attr; pthread_attr_create(&attr);],
|
[pthread_attr_t attr; pthread_attr_create(&attr);],
|
||||||
have_threads=posix)
|
have_threads=dce)
|
||||||
fi
|
fi
|
||||||
CPPFLAGS="$glib_save_CPPFLAGS"
|
CPPFLAGS="$glib_save_CPPFLAGS"
|
||||||
fi
|
fi
|
||||||
@ -1196,8 +1196,13 @@ case $have_threads in
|
|||||||
G_THREAD_LIBS="-pthread"
|
G_THREAD_LIBS="-pthread"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
*-*-openbsd* | *-*-freebsd*)
|
||||||
|
# FreeBSD and OpenBSD want us to use the -pthread flag
|
||||||
|
# instead of linking to -lc_r and libtool enforces that.
|
||||||
|
G_THREAD_LIBS="-pthread"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
for thread_lib in "" pthread pthread32 pthreads c_r thread dce; do
|
for thread_lib in "" pthread pthread32 pthreads thread dce; do
|
||||||
if test x"$thread_lib" = x; then
|
if test x"$thread_lib" = x; then
|
||||||
add_thread_lib=""
|
add_thread_lib=""
|
||||||
IN=""
|
IN=""
|
||||||
@ -1229,37 +1234,36 @@ case $have_threads in
|
|||||||
break],
|
break],
|
||||||
[AC_MSG_RESULT(no)])
|
[AC_MSG_RESULT(no)])
|
||||||
done
|
done
|
||||||
if test "x$G_THREAD_LIBS" = xerror; then
|
;;
|
||||||
AC_MSG_ERROR($LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2)
|
esac
|
||||||
fi
|
if test "x$G_THREAD_LIBS" = xerror; then
|
||||||
for thread_lib in "" rt rte; do
|
AC_MSG_ERROR($LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2)
|
||||||
if test x"$thread_lib" = x; then
|
fi
|
||||||
add_thread_lib=""
|
for thread_lib in "" rt rte; do
|
||||||
IN=""
|
if test x"$thread_lib" = x; then
|
||||||
else
|
add_thread_lib=""
|
||||||
add_thread_lib="-l$thread_lib"
|
IN=""
|
||||||
IN=" in -l$thread_lib"
|
else
|
||||||
fi
|
add_thread_lib="-l$thread_lib"
|
||||||
LIBS="$glib_save_LIBS $add_thread_lib"
|
IN=" in -l$thread_lib"
|
||||||
|
fi
|
||||||
|
LIBS="$glib_save_LIBS $add_thread_lib"
|
||||||
|
|
||||||
AC_MSG_CHECKING(for sched_get_priority_min$IN)
|
AC_MSG_CHECKING(for sched_get_priority_min$IN)
|
||||||
AC_TRY_RUN([#include <sched.h>
|
AC_TRY_RUN([#include <sched.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
int main() {
|
int main() {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
return sched_get_priority_min(SCHED_OTHER)==-1
|
return sched_get_priority_min(SCHED_OTHER)==-1
|
||||||
&& errno != 0;
|
&& errno != 0;}],
|
||||||
}],
|
[AC_MSG_RESULT(yes)
|
||||||
[AC_MSG_RESULT(yes)
|
G_THREAD_LIBS="$G_THREAD_LIBS $add_thread_lib"
|
||||||
G_THREAD_LIBS="$G_THREAD_LIBS $add_thread_lib"
|
posix_priority_min="sched_get_priority_min(SCHED_OTHER)"
|
||||||
posix_priority_min="sched_get_priority_min(SCHED_OTHER)"
|
posix_priority_max="sched_get_priority_max(SCHED_OTHER)"
|
||||||
posix_priority_max="sched_get_priority_max(SCHED_OTHER)"
|
break],
|
||||||
break],
|
[AC_MSG_RESULT(no)])
|
||||||
[AC_MSG_RESULT(no)])
|
done
|
||||||
done
|
LIBS="$glib_save_LIBS"
|
||||||
LIBS="$glib_save_LIBS"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
mutex_has_default=yes
|
mutex_has_default=yes
|
||||||
mutex_default_type='pthread_mutex_t'
|
mutex_default_type='pthread_mutex_t'
|
||||||
mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
|
mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user