From 3907664db457c2479a1bf93c89922093107bee22 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 19 Jan 1999 12:45:10 +0000 Subject: [PATCH] Moved test for localtime_r and rand_r to a place after the determination 1999-01-19 Sebastian Wilhelmi * configure.in: Moved test for localtime_r and rand_r to a place after the determination of the G_THREAD_LIBS and use them for finding those functions, necessary on systems with a different C library libc_r for threaded progs, like FreeBSD 2.2.x. Info from Timur I. Bakeyev . --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-0 | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ ChangeLog.pre-2-12 | 8 ++++++++ ChangeLog.pre-2-2 | 8 ++++++++ ChangeLog.pre-2-4 | 8 ++++++++ ChangeLog.pre-2-6 | 8 ++++++++ ChangeLog.pre-2-8 | 8 ++++++++ configure.in | 11 ++++++++++- 9 files changed, 74 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55168cc..d28cf9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 55168cc..d28cf9d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +1999-01-19 Sebastian Wilhelmi + + * configure.in: Moved test for localtime_r and rand_r to a place + after the determination of the G_THREAD_LIBS and use them for + finding those functions, necessary on systems with a different C + library libc_r for threaded progs, like FreeBSD 2.2.x. Info from + Timur I. Bakeyev . + Tue Jan 19 00:44:24 1999 Josh MacDonald * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" diff --git a/configure.in b/configure.in index be17aa3..1f449ab 100644 --- a/configure.in +++ b/configure.in @@ -247,7 +247,7 @@ AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H)) AC_CHECK_HEADERS(values.h, AC_DEFINE(HAVE_VALUES_H)) # Check for some functions -AC_CHECK_FUNCS(localtime_r rand_r lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll) +AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll) # Check for sys_errlist AC_MSG_CHECKING(for sys_errlist) @@ -678,6 +678,15 @@ fi AC_MSG_CHECKING(necessary linker options) AC_MSG_RESULT($G_THREAD_LIBS) +dnl check for mt safe function variants +dnl *********************************** + +if test x"$have_threads" != xnone; then + glib_save_LIBS="$LIBS" + LIBS="$LIBS $G_THREAD_LIBS" + AC_CHECK_FUNCS(localtime_r rand_r) + LIBS="$glib_save_LIBS" +fi dnl determination of G_THREAD_CFLAGS dnl ******************************** -- 2.7.4