summaryrefslogtreecommitdiff
path: root/m4/getline.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-04 06:53:20 +0000
committerJim Meyering <jim@meyering.net>2004-04-04 06:53:20 +0000
commit8d553e22b1d1a8079d1aab1502a06d91e897a4bc (patch)
tree58d25468f87680f47477117dc4ca3c373e3cacf5 /m4/getline.m4
parent8c5584a1513cdbf62e8ed51c69053db4aae44682 (diff)
downloadcoreutils-8d553e22b1d1a8079d1aab1502a06d91e897a4bc.tar.xz
Sync from gnulib.
Diffstat (limited to 'm4/getline.m4')
-rw-r--r--m4/getline.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/getline.m4 b/m4/getline.m4
index 606a989b9..56960c937 100644
--- a/m4/getline.m4
+++ b/m4/getline.m4
@@ -1,4 +1,4 @@
-# getline.m4 serial 9
+# getline.m4 serial 10
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software
dnl Foundation, Inc.
@@ -56,7 +56,14 @@ AC_DEFUN([AM_FUNC_GETLINE],
AC_DEFINE([getline], [gnu_getline],
[Define to a replacement function name for getline().])
AC_LIBOBJ(getline)
- AC_LIBOBJ(getndelim2)
+
+ # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
+ # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
+ case " $LIB@&t@OBJS " in
+ *" getndelim2.$ac_objext "* ) ;;
+ *) AC_LIBOBJ(getndelim2);;
+ esac
+
gl_PREREQ_GETLINE
gl_PREREQ_GETNDELIM2
fi