X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fxgetcwd.m4;h=025b51c9481aae59798a8e2a6f48877b54597d28;hb=50129386b48ab0a7d8267ea6a0f5d515a090df6c;hp=efd30af3f0b3245a541da7272380f886770ba08e;hpb=53b8fa05726a7fb30010e42ce02e44a35f0d7489;p=gnulib.git diff --git a/m4/xgetcwd.m4 b/m4/xgetcwd.m4 index efd30af3f..025b51c94 100644 --- a/m4/xgetcwd.m4 +++ b/m4/xgetcwd.m4 @@ -1,15 +1,13 @@ -# xgetcwd.m4 serial 1 -dnl Copyright (C) 2002 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. +#serial 5 +dnl Copyright (C) 2002, 2003, 2004, 2005 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_XGETCWD], [ - dnl Prerequisites of lib/xgetcwd.c. - AC_CHECK_HEADERS_ONCE(stdlib.h unistd.h) - AC_CHECK_FUNCS(getcwd) - AC_FUNC_GETCWD_NULL + AC_LIBSOURCES([xgetcwd.c, xgetcwd.h]) + AC_LIBOBJ([xgetcwd]) + + AC_REQUIRE([gl_FUNC_GETCWD]) ])