+Fri Jun 15 16:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
+
+ * configure.in: Solaris header file fixes (Mark Johnson).
+
Fri Jun 15 14:42:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/test.c, src/virsh.c, src/xend_internal.c, src/xm_internal.c:
AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint)
AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
-dnl Availability of various common functions.
-AC_CHECK_FUNCS([regexec])
-
dnl Make sure we have an ANSI compiler
AM_C_PROTOTYPES
test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
LIBVIRT_COMPILE_WARNINGS(maximum)
+dnl Availability of various common functions (non-fatal if missing).
+AC_CHECK_FUNCS([regexec])
+
+dnl Availability of various common headers (non-fatal if missing).
+AC_CHECK_HEADERS(paths.h)
+
dnl Specific dir for HTML output ?
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
[path to base html directory, default $datadir/doc/html]),
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
-#include <paths.h>
#include "testutils.h"
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#endif
+
+#ifndef _PATH_DEVNULL
+#define _PATH_DEVNULL "/dev/null"
+#endif
+
#define GETTIMEOFDAY(T) gettimeofday(T, NULL)
#define DIFF_MSEC(T, U) \
((((int) ((T)->tv_sec - (U)->tv_sec)) * 1000000.0 + \