mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Use AC_CHECK_TYPES to check for struct utimbuf.
This commit is contained in:
parent
02f90322e8
commit
92957a0ee2
@ -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
22
aclocal.m4
vendored
@ -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
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user