From 56a074b53a521e60033888881c251acfa8d29b1a Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 15 Mar 2006 21:16:25 +0000 Subject: [PATCH] * dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT. --- m4/ChangeLog | 6 +++++- m4/dirfd.m4 | 9 +++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 33e4987cc..04b72b801 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2006-03-15 Eric Blake + + * dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT. + 2006-03-08 Simon Josefsson * gc-random.m4: Permit 'no' as variable values and fix warnings, @@ -866,7 +870,7 @@ Yoann Vandoorselaere . 2005-05-09 Yoann Vandoorselaere - Bruno Haible + Bruno Haible * inet_ntop.m4: New file. diff --git a/m4/dirfd.m4 b/m4/dirfd.m4 index db2a9a0ed..7c5cf9608 100644 --- a/m4/dirfd.m4 +++ b/m4/dirfd.m4 @@ -1,8 +1,9 @@ -#serial 10 +#serial 11 -*- Autoconf -*- dnl Find out how to get the file descriptor associated with an open DIR*. -# Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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. @@ -16,8 +17,8 @@ AC_DEFUN([gl_FUNC_DIRFD], dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. AC_REQUIRE([AC_PROG_CPP]) AC_REQUIRE([AC_PROG_EGREP]) + AC_REQUIRE([AC_HEADER_DIRENT]) - AC_HEADER_DIRENT dirfd_headers=' #if HAVE_DIRENT_H # include @@ -55,7 +56,7 @@ AC_DEFUN([gl_FUNC_DIRFD], [how to get the file descriptor associated with an open DIR*], gl_cv_sys_dir_fd_member_name, [ - dirfd_save_CFLAGS=$CFLAGS + dirfd_save_CFLAGS=$CFLAGS for ac_expr in d_fd dd_fd; do CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr" -- 2.11.0