summaryrefslogtreecommitdiff
path: root/macros/neon-test.m4
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 17:20:56 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 17:20:56 +0000
commitf7ec89967dbdf8dc1b87c9ba2388c8f943493586 (patch)
tree74ff8814f100cb311a0de41d24aeec17251a9e4b /macros/neon-test.m4
parent86fa35e8d57c525394ae23297a7ad24067abc2ef (diff)
downloadneon-f7ec89967dbdf8dc1b87c9ba2388c8f943493586.tar.gz
Merge r1106 from 0.25.x branch:
* macros/neon-test.m4 (NE_FORMAT_TIMET): Factor out. (NEON_TEST): Use it. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1109 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros/neon-test.m4')
-rw-r--r--macros/neon-test.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/neon-test.m4 b/macros/neon-test.m4
index d76e332..944646e 100644
--- a/macros/neon-test.m4
+++ b/macros/neon-test.m4
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2005 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*-
+# Copyright (C) 2001-2006 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*-
#
# This file is free software; you may copy and/or distribute it with
# or without modifications, as long as this notice is preserved.
@@ -17,9 +17,17 @@
# Tests needed for the neon-test common test code.
+AC_DEFUN([NE_FORMAT_TIMET], [
+NEON_FORMAT(time_t, [
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif])
+])
+
AC_DEFUN([NEON_TEST], [
AC_REQUIRE([NEON_COMMON_CHECKS])
+AC_REQUIRE([NE_FORMAT_TIMET])
AC_REQUIRE([AC_TYPE_PID_T])
AC_REQUIRE([AC_HEADER_TIME])
@@ -35,9 +43,4 @@ AC_CHECK_FUNCS(pipe isatty usleep shutdown setlocale)
AC_REQUIRE([NE_FIND_AR])
-NEON_FORMAT(time_t, [
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif])
-
])