X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fd-type.m4;h=92f9b15844c9cd78acb8ae5c9623bf2c5b129f9c;hb=a428fac0e9534d605382b75a647bd067b5d2e551;hp=f4be1ce62e01e954989792c95163a79446e0b085;hpb=d76a6493392c315ba9da4a262efaa430b1a72476;p=gnulib.git diff --git a/m4/d-type.m4 b/m4/d-type.m4 index f4be1ce62..92f9b1584 100644 --- a/m4/d-type.m4 +++ b/m4/d-type.m4 @@ -13,26 +13,20 @@ dnl # with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE], - [AC_CHECK_HEADERS_ONCE([dirent.h])dnl - AC_CACHE_CHECK([for d_type member in directory struct], - jm_cv_struct_dirent_d_type, + [AC_CACHE_CHECK([for d_type member in directory struct], + gl_cv_struct_dirent_d_type, [AC_TRY_LINK(dnl [ #include -#ifdef HAVE_DIRENT_H -# include -#else -# define dirent direct -# include -#endif +#include ], [struct dirent dp; dp.d_type = 0;], - jm_cv_struct_dirent_d_type=yes, - jm_cv_struct_dirent_d_type=no) + gl_cv_struct_dirent_d_type=yes, + gl_cv_struct_dirent_d_type=no) ] ) - if test $jm_cv_struct_dirent_d_type = yes; then + if test $gl_cv_struct_dirent_d_type = yes; then AC_DEFINE(HAVE_STRUCT_DIRENT_D_TYPE, 1, [Define if there is a member named d_type in the struct describing directory headers.])