~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/m4/error.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# error.m4 serial 2 (gettext-0.12)
 
2
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
 
3
dnl This file is free software, distributed under the terms of the GNU
 
4
dnl General Public License.  As a special exception to the GNU General
 
5
dnl Public License, this file may be distributed as part of a program
 
6
dnl that contains a configuration script generated by Autoconf, under
 
7
dnl the same distribution terms as the rest of that program.
 
8
 
 
9
# A modified version of AM_FUNC_ERROR_AT_LINE that triggers HAVE_ERROR_AT_LINE
 
10
# in config.h instead of modifying LIBOBJS.
 
11
AC_DEFUN([gt_FUNC_ERROR_AT_LINE],
 
12
[
 
13
  AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line,
 
14
   [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],
 
15
                am_cv_lib_error_at_line=yes,
 
16
                am_cv_lib_error_at_line=no)])
 
17
  if test $am_cv_lib_error_at_line = yes; then
 
18
    AC_DEFINE(HAVE_ERROR_AT_LINE, 1,
 
19
      [Define to 1 if you have the functions error() and error_at_line().])
 
20
  else
 
21
    jm_PREREQ_ERROR
 
22
  fi
 
23
])
 
24
 
 
25
# Prerequisites of lib/error.c.
 
26
AC_DEFUN([jm_PREREQ_ERROR],
 
27
[
 
28
  AC_REQUIRE([AC_HEADER_STDC])
 
29
  AC_REQUIRE([AC_FUNC_VPRINTF])
 
30
  AC_CHECK_FUNCS(strerror)
 
31
  AC_CHECK_DECLS([strerror])
 
32
  AC_FUNC_STRERROR_R
 
33
])