error.m4 840 B

12345678910111213141516171819202122232425262728
  1. #serial 14
  2. # Copyright (C) 1996-1998, 2001-2004, 2009-2017 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. AC_DEFUN([gl_ERROR],
  8. [
  9. dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer
  10. dnl maintained in Autoconf and because it invokes AC_LIBOBJ.
  11. AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line],
  12. [AC_LINK_IFELSE(
  13. [AC_LANG_PROGRAM(
  14. [[#include <error.h>]],
  15. [[error_at_line (0, 0, "", 0, "an error occurred");]])],
  16. [ac_cv_lib_error_at_line=yes],
  17. [ac_cv_lib_error_at_line=no])])
  18. ])
  19. # Prerequisites of lib/error.c.
  20. AC_DEFUN([gl_PREREQ_ERROR],
  21. [
  22. AC_REQUIRE([AC_FUNC_STRERROR_R])
  23. :
  24. ])