From 0f25baf0616918bd806fa48c64168c21f8581f3d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 9 Feb 2005 09:59:53 +0000 Subject: [PATCH] (gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files. --- m4/getcwd.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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], -- 2.47.3