Moved test for localtime_r and rand_r to a place after the determination
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 19 Jan 1999 12:45:10 +0000 (12:45 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 19 Jan 1999 12:45:10 +0000 (12:45 +0000)
1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* 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 <timur@comtat.ru>.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 55168cc..d28cf9d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index 55168cc..d28cf9d 100644 (file)
@@ -1,3 +1,11 @@
+1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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 <timur@comtat.ru>.
+
 Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>
 
        * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
index be17aa3..1f449ab 100644 (file)
@@ -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 ********************************