Moved the warning about MT and no getpwuid_r from gutils.c to configure

-Yosh
This commit is contained in:
Manish Singh 1999-01-24 04:42:35 +00:00
parent 448e792b0a
commit 90ca4040f6
11 changed files with 58 additions and 12 deletions

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -1,3 +1,9 @@
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
* 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 <jgarzik@pobox.com>
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,

View File

@ -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 ********************************

View File

@ -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 ();

View File

@ -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 ();