Mercurial > hg > octave-nkf > gnulib-hg
changeset 2068:541b8882542d
*** empty log message ***
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 04 Jan 2000 17:12:12 +0000 |
parents | 598b829c31fd |
children | 611d4e93a54b |
files | m4/ChangeLog m4/d-type.m4 m4/timespec.m4 |
diffstat | 3 files changed, 38 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,16 @@ +2000-01-04 Jim Meyering <meyering@ascend.com> + + * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from + jm_STRUCT_DIRENT_D_TYPE. + * d-ino.m4: (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from + jm_STRUCT_DIRENT_D_INO. + * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from + jm_STRUCT_UTIMBUF. + * jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ renamings. + + * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro. + * jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it. + 2000-01-03 Paul Eggert <eggert@twinsun.com> * nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
--- a/m4/d-type.m4 +++ b/m4/d-type.m4 @@ -1,11 +1,11 @@ -#serial 2 +#serial 3 dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_type. dnl -AC_DEFUN(jm_STRUCT_DIRENT_D_TYPE, +AC_DEFUN(jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE, [AC_REQUIRE([AC_HEADER_DIRENT])dnl AC_CACHE_CHECK([for d_type member in directory struct], jm_cv_struct_dirent_d_type,
new file mode 100644 --- /dev/null +++ b/m4/timespec.m4 @@ -0,0 +1,23 @@ +#serial 1 + +dnl From Jim Meyering + +dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared in time.h. + +AC_DEFUN(jm_CHECK_TYPE_STRUCT_TIMESPEC, +[ + AC_CACHE_CHECK([for struct timespec], fu_cv_sys_struct_timespec, + [AC_TRY_COMPILE( + [ +#include <time.h> + ], + [static struct timespec x; x.tv_sec = x.tv_nsec;], + fu_cv_sys_struct_timespec=yes, + fu_cv_sys_struct_timespec=no) + ]) + + if test $fu_cv_sys_struct_timespec = yes; then + AC_DEFINE_UNQUOTED(HAVE_STRUCT_TIMESPEC, 1, + [Define if struct timespec is declared in <time.h>. ]) + fi +])