diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-09-04 15:16:35 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-09-04 15:16:35 +0200 |
commit | 9157d901024558ca2cb2a59d21f26b7f897714cd (patch) | |
tree | f6174b78e2213e49df81a47417f83ca6c1c8807b /m4/hostent.m4 | |
parent | fb0b64c12a40529a03c22481570a11457076b7f9 (diff) |
Use Gnulib's `stat-time' module; update Gnulib.
This updates Gnulib files to v0.0-4207-gc82b481.
* m4/gnulib-cache.m4: Add `stat-time'.
Diffstat (limited to 'm4/hostent.m4')
-rw-r--r-- | m4/hostent.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/m4/hostent.m4 b/m4/hostent.m4 index 111104112..7104b3089 100644 --- a/m4/hostent.m4 +++ b/m4/hostent.m4 @@ -1,5 +1,5 @@ -# hostent.m4 serial 1 -dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +# hostent.m4 serial 2 +dnl Copyright (C) 2008, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -28,12 +28,16 @@ AC_DEFUN([gl_HOSTENT], [gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" - AC_TRY_LINK([ + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ #ifdef HAVE_WINSOCK2_H #include <winsock2.h> #endif #include <stddef.h> -], [gethostbyname(NULL);], [gl_cv_w32_gethostbyname=yes]) + ]], + [[gethostbyname(NULL);]])], + [gl_cv_w32_gethostbyname=yes]) LIBS="$gl_save_LIBS" ]) if test "$gl_cv_w32_gethostbyname" = "yes"; then |