OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.ac versions 1.24 and 1.25
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.ac 1.24 -> 1.25

--- uuid.ac      2008/02/21 08:58:45     1.24
+++ uuid.ac      2008/02/21 15:34:51     1.25
@@ -57,6 +57,44 @@
 #endif
 ]])
 
+    dnl #   check for existence of particular C structures
+    AC_MSG_CHECKING(for struct timeval)
+    AC_TRY_COMPILE([
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#include <time.h>
+    ],[ struct timeval tv; ],
+    [ msg="yes" ], [ msg="no" ])
+    if test ".$msg" = .yes; then
+        AC_DEFINE(HAVE_STRUCT_TIMEVAL, 1, [define if exists "struct timeval"])
+    fi
+    AC_MSG_RESULT([$msg])
+    AC_MSG_CHECKING(for struct timezone)
+    AC_TRY_COMPILE([
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#include <time.h>
+    ],[ struct timezone tz; ],
+    [ msg="yes" ], [ msg="no" ])
+    if test ".$msg" = .yes; then
+        AC_DEFINE(HAVE_STRUCT_TIMEZONE, 1, [define if exists "struct timezone"])
+    fi
+    AC_MSG_RESULT([$msg])
+
     dnl #   check for functions
     AC_CHECK_FUNCS(getifaddrs nanosleep Sleep)
 

CVSTrac 2.0.1