strsep.m4 754 B

12345678910111213141516171819202122232425
  1. # strsep.m4 serial 9
  2. dnl Copyright (C) 2002, 2003, 2004, 2007, 2009, 2010 Free Software Foundation,
  3. dnl Inc.
  4. dnl This file is free software; the Free Software Foundation
  5. dnl gives unlimited permission to copy and/or distribute it,
  6. dnl with or without modifications, as long as this notice is preserved.
  7. AC_DEFUN([gl_FUNC_STRSEP],
  8. [
  9. dnl Persuade glibc <string.h> to declare strsep().
  10. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
  11. dnl The strsep() declaration in lib/string.in.h uses 'restrict'.
  12. AC_REQUIRE([AC_C_RESTRICT])
  13. AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
  14. AC_REPLACE_FUNCS([strsep])
  15. if test $ac_cv_func_strsep = no; then
  16. HAVE_STRSEP=0
  17. gl_PREREQ_STRSEP
  18. fi
  19. ])
  20. # Prerequisites of lib/strsep.c.
  21. AC_DEFUN([gl_PREREQ_STRSEP], [:])