fdopendir: fix configure test
authorEric Blake <ebb9@byu.net>
Mon, 4 Jan 2010 13:36:13 +0000 (06:36 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 4 Jan 2010 13:36:13 +0000 (06:36 -0700)
A typo was causing spurious rejection of fdopendir.

* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/fdopendir.m4

index ecf7295..272c77f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-04  Eric Blake  <ebb9@byu.net>
+
+       fdopendir: fix configure test
+       * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
+
 2010-01-01  Bruno Haible  <bruno@clisp.org>
 
        wchar: Remove unused configure check.
index 1c14996..7282d4b 100644 (file)
@@ -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 <dirent.h>
 #include <fcntl.h>
-]], [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],