Undo last commit. Add comment instead.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:57:07 +0000 (17:57 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:57:07 +0000 (17:57 +0100)
ChangeLog
m4/getline.m4

index 4fbc2a6..f94e401 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-01-31  Bruno Haible  <bruno@clisp.org>
 
+       * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
+
+2010-01-31  Bruno Haible  <bruno@clisp.org>
+
        Work around getdelim() bug on FreeBSD 8.0.
        * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
        initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
 
 2010-01-31  Bruno Haible  <bruno@clisp.org>
 
-       Avoid redundant symbol replacement.
-       * m4/getline.m4 (gl_FUNC_GETLINE): Set REPLACE_GETLINE only when the
-       function was found.
-
-2010-01-31  Bruno Haible  <bruno@clisp.org>
-
        Work around getline() bug on FreeBSD 8.0.
        * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
        and a non-zero size.
index 996ca21..8300560 100644 (file)
@@ -80,9 +80,10 @@ AC_DEFUN([gl_FUNC_GETLINE],
   fi
 
   if test $am_cv_func_working_getline = no; then
-    if test $gl_getline_needs_run_time_check = yes; then
-      REPLACE_GETLINE=1
-    fi
+    dnl Set REPLACE_GETLINE always: Even if we have not found the broken
+    dnl getline function among $LIBS, it may exist in libinet and the
+    dnl executable may be linked with -linet.
+    REPLACE_GETLINE=1
     AC_LIBOBJ([getline])
 
     gl_PREREQ_GETLINE