Mercurial > hg > octave-kai > gnulib-hg
annotate m4/d-ino.m4 @ 6322:716071856296
Sync from coreutils.
* lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h, getpass.c
mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
* lib/.cvsignore: Add fts.h, search.h, t-fpending.
* lib/settime.c (settime): Fix { typo in previous patch. Also, don't
bother returning ENOSYS if settimeofday or stime fails; just let
them return whatever errno they want to return.
* lib/utimens.c: Include unistd.h, for dup2.
(futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
(futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
* lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
* lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H'.
* lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
Remove AT_FDCWD test.
Do not consume the fd unless successful.
* lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
* lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
block, so that we don't even try to compile it if settimeofday is
available. This works around a compilation failure on OSF1 V5.1,
due to stime requiring a `long int*' while tv_sec is `int'.
* m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
* m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
ULLONG_MAX doesn't work with 2.7.2.1.
* m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
from glibc-2.2.5 that fails for read-only files.
* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
against `yes', rather than just testing for nonempty.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 02 Oct 2005 22:38:45 +0000 |
parents | 87c42e194f4a |
children | d68ff786c180 |
rev | line source |
---|---|
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
1 #serial 7 |
994 | 2 |
3 dnl From Jim Meyering. | |
4 dnl | |
5 dnl Check whether struct dirent has a member named d_ino. | |
6 dnl | |
7 | |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
8 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004 Free Software |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
9 # Foundation, Inc. |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
10 |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
11 # This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
12 # gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
13 # with or without modifications, as long as this notice is preserved. |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
14 |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
4108
diff
changeset
|
15 AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO], |
994 | 16 [AC_REQUIRE([AC_HEADER_DIRENT])dnl |
17 AC_CACHE_CHECK([for d_ino member in directory struct], | |
18 jm_cv_struct_dirent_d_ino, | |
19 [AC_TRY_LINK(dnl | |
20 [ | |
21 #include <sys/types.h> | |
22 #ifdef HAVE_DIRENT_H | |
23 # include <dirent.h> | |
24 #else /* not HAVE_DIRENT_H */ | |
25 # define dirent direct | |
26 # ifdef HAVE_SYS_NDIR_H | |
27 # include <sys/ndir.h> | |
28 # endif /* HAVE_SYS_NDIR_H */ | |
29 # ifdef HAVE_SYS_DIR_H | |
30 # include <sys/dir.h> | |
31 # endif /* HAVE_SYS_DIR_H */ | |
32 # ifdef HAVE_NDIR_H | |
33 # include <ndir.h> | |
34 # endif /* HAVE_NDIR_H */ | |
35 #endif /* HAVE_DIRENT_H */ | |
36 ], | |
37 [struct dirent dp; dp.d_ino = 0;], | |
38 | |
39 jm_cv_struct_dirent_d_ino=yes, | |
40 jm_cv_struct_dirent_d_ino=no) | |
41 ] | |
42 ) | |
43 if test $jm_cv_struct_dirent_d_ino = yes; then | |
1672
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
994
diff
changeset
|
44 AC_DEFINE(D_INO_IN_DIRENT, 1, |
4108
c1d472db5c30
An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents:
3339
diff
changeset
|
45 [Define if there is a member named d_ino in the struct describing |
c1d472db5c30
An independent .m4 file for each module.
Bruno Haible <bruno@clisp.org>
parents:
3339
diff
changeset
|
46 directory headers.]) |
994 | 47 fi |
48 ] | |
49 ) |