From e138cd8fc9c9465059e9d0427d0cf0669d5a8caf Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 4 Jan 2010 06:36:13 -0700 Subject: [PATCH] fdopendir: fix configure test A typo was causing spurious rejection of fdopendir. * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ m4/fdopendir.m4 | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ecf7295c9..272c77fc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-04 Eric Blake + + fdopendir: fix configure test + * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file. + 2010-01-01 Bruno Haible wchar: Remove unused configure check. diff --git a/m4/fdopendir.m4 b/m4/fdopendir.m4 index 1c14996fb..7282d4b06 100644 --- a/m4/fdopendir.m4 +++ b/m4/fdopendir.m4 @@ -1,4 +1,4 @@ -# serial 2 +# serial 3 # See if we need to provide fdopendir. dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. @@ -23,7 +23,7 @@ AC_DEFUN([gl_FUNC_FDOPENDIR], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include #include -]], [int fd = open ("conftest.h", O_RDONLY); +]], [int fd = open ("conftest.c", O_RDONLY); if (fd < 0) return 2; return !!fdopendir (fd);])], [gl_cv_func_fdopendir_works=yes], -- 2.11.0