changeset 12838:ed6e77e08386

Avoid redundant symbol replacement.
author Bruno Haible <bruno@clisp.org>
date Sun, 31 Jan 2010 17:32:22 +0100
parents fff2b96bad5e
children c6d23570567d
files ChangeLog m4/getline.m4
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
--- a/m4/getline.m4
+++ b/m4/getline.m4
@@ -80,7 +80,9 @@
   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