[svn] Use AC_CHECK_TYPES to check for struct utimbuf.

This commit is contained in:
hniksic 2003-11-10 05:48:53 -08:00
parent 02f90322e8
commit 92957a0ee2
2 changed files with 14 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of
AC_EGREP_CPP to check for struct utimbuf.
2003-11-09 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_WITH_NLS): Respect the user's setting of

22
aclocal.m4 vendored
View File

@ -3,19 +3,15 @@ dnl Check for `struct utimbuf'.
dnl
AC_DEFUN([WGET_STRUCT_UTIMBUF], [
AC_MSG_CHECKING([for struct utimbuf])
if test x"$ac_cv_header_utime_h" = xyes; then
AC_EGREP_CPP([struct[ ]+utimbuf],
[#include <utime.h>
], [
AC_DEFINE([HAVE_STRUCT_UTIMBUF], 1,
[Define if you have struct utimbuf.])
AC_MSG_RESULT(yes)
],
[AC_MSG_RESULT(no)])
else
AC_MSG_RESULT(no)
fi
AC_CHECK_TYPES([struct utimbuf], [], [], [
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_UTIME_H
# include <utime.h>
#endif
])
])