From: Manish Singh Date: Sun, 24 Jan 1999 04:42:35 +0000 (+0000) Subject: Moved the warning about MT and no getpwuid_r from gutils.c to configure X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=90ca4040f668a5fcf08b2afc23dbbf0f9f663528;p=dana%2Fcg-glib.git Moved the warning about MT and no getpwuid_r from gutils.c to configure -Yosh --- diff --git a/ChangeLog b/ChangeLog index d6f25cb4..e58858ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d6f25cb4..e58858ca 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sat Jan 23 20:40:06 PST 1999 Manish Singh + + * gutils.c: removed the #warning about MT without getpwuid_r + + * configure.in: and moved it here + Sat Jan 23 22:45:59 1999 Jeff Garzik * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup, diff --git a/configure.in b/configure.in index ed563b92..a1e21782 100644 --- a/configure.in +++ b/configure.in @@ -570,6 +570,10 @@ LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation LIBS_NOT_FOUND_2=". Please choose another thread implementation or provide informationon your thread implementation." +FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)' + functions will not be MT-safe during their first call because + there is no 'getpwuid_r' on your system." + dnl determination of thread implementation dnl *************************************** @@ -706,6 +710,12 @@ if test x"$have_threads" != xnone; then LIBS="$glib_save_LIBS" fi +if test "x$enable_threads" = "xyes"; then + if test "$ac_cv_func_getpwuid_r" != "yes"; then + AC_MSG_WARN($FUNC_NO_GETPWUID_R) + fi +fi + dnl determination of G_THREAD_CFLAGS dnl ******************************** diff --git a/glib/gutils.c b/glib/gutils.c index 74dac8ab..b9d56899 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -479,12 +479,6 @@ g_get_any_init (void) # else /* !HAVE_GETPWUID_R */ -# ifdef G_THREADS_ENABLED -# warning "the `g_get_(user_name|real_name|home_dir|tmp_dir)'" -# warning "functions will not be MT-safe during their first call" -# warning "because there is no `getpwuid_r' on your system." -# endif /* G_THREADS_ENABLED */ - setpwent (); pw = getpwuid (getuid ()); endpwent (); diff --git a/gutils.c b/gutils.c index 74dac8ab..b9d56899 100644 --- a/gutils.c +++ b/gutils.c @@ -479,12 +479,6 @@ g_get_any_init (void) # else /* !HAVE_GETPWUID_R */ -# ifdef G_THREADS_ENABLED -# warning "the `g_get_(user_name|real_name|home_dir|tmp_dir)'" -# warning "functions will not be MT-safe during their first call" -# warning "because there is no `getpwuid_r' on your system." -# endif /* G_THREADS_ENABLED */ - setpwent (); pw = getpwuid (getuid ()); endpwent ();