X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstrsep.m4;h=24e229d6268477ddfbad4d1da38ebde8150904ed;hb=29090434bf92407bb16b21e66a2bd5d36e1e7bd4;hp=cfcb06fb9e04913f34835df1c3ccedda369522bc;hpb=44fd637accbdb4f21edb7cc5194f5cf0848eac62;p=gnulib.git diff --git a/m4/strsep.m4 b/m4/strsep.m4 index cfcb06fb9..24e229d62 100644 --- a/m4/strsep.m4 +++ b/m4/strsep.m4 @@ -1,18 +1,22 @@ -# strsep.m4 serial 2 -dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. +# strsep.m4 serial 10 +dnl Copyright (C) 2002-2004, 2007, 2009-2011 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRSEP], [ dnl Persuade glibc to declare strsep(). - AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_REPLACE_FUNCS(strsep) - gl_PREREQ_STRSEP + dnl The strsep() declaration in lib/string.in.h uses 'restrict'. + AC_REQUIRE([AC_C_RESTRICT]) + + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS([strsep]) + if test $ac_cv_func_strsep = no; then + HAVE_STRSEP=0 + fi ]) # Prerequisites of lib/strsep.c.