Moved the warning about MT and no getpwuid_r from gutils.c to configure
authorManish Singh <yosh@src.gnome.org>
Sun, 24 Jan 1999 04:42:35 +0000 (04:42 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 24 Jan 1999 04:42:35 +0000 (04:42 +0000)
-Yosh

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
glib/gutils.c
gutils.c

index d6f25cb..e58858c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index d6f25cb..e58858c 100644 (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,
index ed563b9..a1e2178 100644 (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 ********************************
 
index 74dac8a..b9d5689 100644 (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 ();
index 74dac8a..b9d5689 100644 (file)
--- 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 ();