changeset 8891:6f72d6c642e3

Add checks to set HAVE_TIMEVAL and HAVE_SELECT.
author Karl Heuer <kwzh@gnu.org>
date Sun, 18 Sep 1994 20:34:21 +0000
parents 30d1c79f19b6
children 191acacfa1ec
files configure1.in
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Sun Sep 18 20:30:01 1994 +0000
+++ b/configure1.in	Sun Sep 18 20:34:21 1994 +0000
@@ -1209,6 +1209,17 @@
 
 dnl checks for typedefs
 AC_RETSIGTYPE
+AC_COMPILE_CHECK(struct timeval, [#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif], [static struct timeval x; x.tv_sec = x.tv_usec;],
+		AC_DEFINE(HAVE_TIMEVAL))
 
 dnl checks for structure members
 AC_STRUCT_TM
@@ -1545,7 +1556,7 @@
 AC_HAVE_LIBRARY(-lm)
 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
-strerror fpathconf)
+strerror fpathconf select)
 
 ok_so_far=true
 AC_FUNC_CHECK(socket, , ok_so_far=)