2N/A#serial 13
2N/A
2N/A# Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc.
2N/A#
2N/A# This file is free software; the Free Software Foundation
2N/A# gives unlimited permission to copy and/or distribute it,
2N/A# with or without modifications, as long as this notice is preserved.
2N/A
2N/AAC_DEFUN([gl_ERROR],
2N/A[
2N/A AC_FUNC_ERROR_AT_LINE
2N/A dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
2N/A gl_PREREQ_ERROR
2N/A])
2N/A
2N/A# Redefine AC_FUNC_ERROR_AT_LINE, because it is no longer maintained in
2N/A# Autoconf.
2N/AAC_DEFUN([AC_FUNC_ERROR_AT_LINE],
2N/A[
2N/A AC_LIBSOURCES([error.h, error.c])dnl
2N/A AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line],
2N/A [AC_LINK_IFELSE(
2N/A [AC_LANG_PROGRAM(
2N/A [[#include <error.h>]],
2N/A [[error_at_line (0, 0, "", 0, "an error occurred");]])],
2N/A [ac_cv_lib_error_at_line=yes],
2N/A [ac_cv_lib_error_at_line=no])])
2N/A if test $ac_cv_lib_error_at_line = no; then
2N/A AC_LIBOBJ([error])
2N/A fi
2N/A])
2N/A
2N/A# Prerequisites of lib/error.c.
2N/AAC_DEFUN([gl_PREREQ_ERROR],
2N/A[
2N/A AC_REQUIRE([AC_FUNC_STRERROR_R])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A :
2N/A])