summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-04-08 23:31:21 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-04-08 23:31:21 +0100
commit6e24ecb8db50e9703abdb30c9dbde58a513fdcdd (patch)
treec97a74f76ce513cdc176edba0f47d6524de417f2
parent2e40f04f96f11fac92e338f64eebfa26ae7f2275 (diff)
downloadswig-6e24ecb8db50e9703abdb30c9dbde58a513fdcdd.tar.gz
Revert "configure.ac tidyup after update (ccache)"
This reverts commit 558e7476a681ad3e3a0c795faf1b740c173da60a.
-rw-r--r--CCache/configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/CCache/configure.ac b/CCache/configure.ac
index 2db3553ce..2559fdb5f 100644
--- a/CCache/configure.ac
+++ b/CCache/configure.ac
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT([ccache-swig],[0.0]) # Get version from SWIG in ccache_swig_config.h.in
-AC_PREREQ([2.60])
+AC_PREREQ([2.71])
AC_CONFIG_SRCDIR([ccache.h])
AC_MSG_NOTICE([Configuring ccache])
@@ -41,6 +41,19 @@ else
fi
AC_HEADER_DIRENT
+m4_warn([obsolete],
+[Update your code to rely only on HAVE_SYS_TIME_H,
+then remove this warning and the obsolete code below it.
+All current systems provide time.h; it need not be checked for.
+Not all systems provide sys/time.h, but those that do, all allow
+you to include it and time.h simultaneously.])dnl
+AC_CHECK_HEADERS_ONCE([sys/time.h])
+# Obsolete code to be removed.
+if test $ac_cv_header_sys_time_h = yes; then
+ AC_DEFINE([TIME_WITH_SYS_TIME],[1],[Define to 1 if you can safely include both <sys/time.h>
+ and <time.h>. This macro is obsolete.])
+fi
+# End of obsolete code.
AC_HEADER_SYS_WAIT