~ubuntu-branches/ubuntu/raring/findutils/raring

« back to all changes in this revision

Viewing changes to gnulib/m4/getline.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2005-07-04 11:37:37 UTC
  • mto: (11.1.1 lenny) (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050704113737-oxfumqxsqgfz5gay
Tags: upstream-4.2.22
ImportĀ upstreamĀ versionĀ 4.2.22

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# getline.m4 serial 8
 
1
# getline.m4 serial 12
2
2
 
3
 
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software
 
3
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Free Software
4
4
dnl Foundation, Inc.
5
 
 
6
 
dnl This file is free software, distributed under the terms of the GNU
7
 
dnl General Public License.  As a special exception to the GNU General
8
 
dnl Public License, this file may be distributed as part of a program
9
 
dnl that contains a configuration script generated by Autoconf, under
10
 
dnl the same distribution terms as the rest of that program.
 
5
dnl
 
6
dnl This file is free software; the Free Software Foundation
 
7
dnl gives unlimited permission to copy and/or distribute it,
 
8
dnl with or without modifications, as long as this notice is preserved.
11
9
 
12
10
AC_PREREQ(2.52)
13
11
 
17
15
dnl to do with the function we need.
18
16
AC_DEFUN([AM_FUNC_GETLINE],
19
17
[
 
18
  AC_LIBSOURCES([getline.c, getline.h])
 
19
 
20
20
  dnl Persuade glibc <stdio.h> to declare getline() and getdelim().
21
21
  AC_REQUIRE([AC_GNU_SOURCE])
22
22
 
56
56
    AC_DEFINE([getline], [gnu_getline],
57
57
      [Define to a replacement function name for getline().])
58
58
    AC_LIBOBJ(getline)
 
59
 
 
60
    # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
 
61
    # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
 
62
    case " $LIB@&t@OBJS " in
 
63
    *" getndelim2.$ac_objext "* ) ;;
 
64
    *) AC_LIBOBJ(getndelim2);;
 
65
    esac
 
66
 
59
67
    gl_PREREQ_GETLINE
 
68
    gl_PREREQ_GETNDELIM2
60
69
  fi
61
70
])
62
71
 
63
72
# Prerequisites of lib/getline.c.
64
73
AC_DEFUN([gl_PREREQ_GETLINE],
65
74
[
66
 
  AC_REQUIRE([AC_HEADER_STDC])
67
75
  AC_CHECK_FUNCS(getdelim)
68
76
])