Avoid redundant symbol replacement.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:32:22 +0000 (17:32 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:32:22 +0000 (17:32 +0100)
ChangeLog
m4/getline.m4

index d4d8776..355a601 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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 7fca58e..996ca21 100644 (file)
@@ -80,7 +80,9 @@ AC_DEFUN([gl_FUNC_GETLINE],
   fi
 
   if test $am_cv_func_working_getline = no; then
-    REPLACE_GETLINE=1
+    if test $gl_getline_needs_run_time_check = yes; then
+      REPLACE_GETLINE=1
+    fi
     AC_LIBOBJ([getline])
 
     gl_PREREQ_GETLINE