--- configure.in.orig	Fri Nov 24 18:01:24 2006
+++ configure.in	Fri Nov 24 18:02:09 2006
@@ -146,6 +146,8 @@
 #	Look for thread-safe variants of some library functions.
 #--------------------------------------------------------------------
 
+AC_CHECK_FUNCS(getservbyname_r)
+
 if test "${TCL_THREADS}" = 1; then
     SC_TCL_GETPWUID_R
     SC_TCL_GETPWNAM_R
