Mercurial > hg > octave-jordi > gnulib-hg
diff m4/euidaccess.m4 @ 10662:ad36db29dad7
Move the euidaccess() declaration to <unistd.h>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 19 Oct 2008 12:43:15 +0200 |
parents | 5a0294ce5372 |
children | f6cba5a556ce |
line wrap: on
line diff
--- a/m4/euidaccess.m4 +++ b/m4/euidaccess.m4 @@ -1,5 +1,5 @@ -# euidaccess.m4 serial 8 -dnl Copyright (C) 2002-2007 Free Software Foundation, Inc. +# euidaccess.m4 serial 9 +dnl Copyright (C) 2002-2008 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. @@ -17,12 +17,14 @@ AC_DEFUN([gl_FUNC_EUIDACCESS], [ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl Persuade glibc <unistd.h> to declare euidaccess(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_CHECK_DECLS_ONCE([euidaccess]) AC_REPLACE_FUNCS(euidaccess) if test $ac_cv_func_euidaccess = no; then + HAVE_EUIDACCESS=0 gl_PREREQ_EUIDACCESS fi ])