]> jfr.im git - irc/UndernetIRC/iauthd-c.git/commitdiff
Update autoconfigury for current autoconf
authorMichael Poole <redacted>
Sun, 12 Sep 2021 15:51:57 +0000 (11:51 -0400)
committerMichael Poole <redacted>
Sun, 12 Sep 2021 15:51:57 +0000 (11:51 -0400)
configure.ac
src/compat.h

index 9a86629bda6128e1faeefa5526aae348aa65cc5b..726e4cee2052020b8775342e5ad251a1555a476b 100644 (file)
@@ -23,8 +23,8 @@
 # SOFTWARE.
 
 dnl General initialization.
-AC_PREREQ([2.63])
-AC_INIT([iauthd-c], [1.0.4], [coder-com@undernet.org])
+AC_PREREQ([2.71])
+AC_INIT([iauthd-c],[1.0.4],[coder-com@undernet.org])
 AC_CONFIG_AUX_DIR([autoconf])
 AC_CONFIG_MACRO_DIR([autoconf])
 AC_CONFIG_HEADERS([autoconf.h])
@@ -46,8 +46,7 @@ AC_PROG_MKDIR_P
 dnl Compiler/runtime feature checks.
 AC_C_CONST
 AC_C_INLINE
-AC_HEADER_STDC
-AC_HEADER_TIME
+AC_CHECK_INCLUDES_DEFAULT
 AC_STRUCT_TM
 
 dnl Check whether we might be running in a git working tree.
index a79a30157e4369bef4a086c36e204a416862352f..2e1a973d6258fcc08d6dd0b59deab8083f312cbf 100644 (file)
@@ -45,6 +45,7 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #if defined(HAVE_INTTYPES_H)
 #include <inttypes.h>
 #include <stdint.h>
 #endif
 
-#if defined(TIME_WITH_SYS_TIME)
-# include <sys/time.h>
-# include <time.h>
-#elif defined(HAVE_SYS_TIME_H)
-# include <sys/time.h>
-#else
-# include <time.h>
-#endif
-
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif