From: Jim Meyering Date: Wed, 9 Feb 2005 09:59:53 +0000 (+0000) Subject: (gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files. X-Git-Tag: CPPI-1_12~1476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f25baf0616918bd806fa48c64168c21f8581f3d;p=thirdparty%2Fcoreutils.git (gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files. --- diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 index c2524916e3..3e7e5dcba9 100644 --- a/m4/getcwd.m4 +++ b/m4/getcwd.m4 @@ -1,6 +1,6 @@ # getcwd.m4 - check for working getcwd that is compatible with glibc -# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -9,6 +9,8 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL], [ + AC_LIBSOURCES([getcwd.c, getcwd.h]) + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CACHE_CHECK([whether getcwd (NULL, 0) allocates memory for result], [gl_cv_func_getcwd_null],