From: Eric Blake Date: Mon, 4 Jan 2010 13:36:13 +0000 (-0700) Subject: fdopendir: fix configure test X-Git-Tag: v0.1~4921 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=e138cd8fc9c9465059e9d0427d0cf0669d5a8caf;hp=8f3aa1fee051bc5091d5f9b207609c03cf023894;p=gnulib.git 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 --- 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],