Skip to content

Commit f2606d5

Browse files
committed
Remove warnings and bump autoconf version to 2.69
1 parent 5dd7f51 commit f2606d5

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

configure.ac

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# -*- Autoconf -*-
2-
# Process this file with autoconf to produce a configure script.
3-
#
41
# Copyright 2005-2008 David Snyder <dasnyderx(at)yahoo(dot)com>
52
# Copyright 2019-2021 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
63
#
74
# This file is under the same terms described by
85
# LICENSE file for the main source code (rdate.c).
96

10-
AC_PREREQ(2.61)
7+
AC_PREREQ([2.69])
118
AC_INIT([openrdate],[1.10.1],[https://github.com/resurrecting-open-source-projects/openrdate/issues])
129
AM_INIT_AUTOMAKE
1310
AC_CONFIG_SRCDIR([src/rdate.c])
14-
AC_CONFIG_HEADER([config.h])
11+
AC_CONFIG_HEADERS([config.h])
1512
AC_ARG_VAR([kernel_version], [the version of the kernel to build against])
1613

1714
# Checks for programs.
@@ -23,14 +20,14 @@ fi
2320

2421
AC_PROG_INSTALL
2522
AC_PROG_RANLIB
23+
AC_PROG_EGREP
2624

2725
# Checks for libraries.
2826
AC_CHECK_LIB([c], [fork])
2927
AC_CHECK_LIB([util], [malloc])
3028

3129
#
3230
# Checks for header files.
33-
AC_HEADER_STDC
3431
AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h netdb.h \
3532
netinet/in.h stdlib.h string.h sys/param.h sys/socket.h \
3633
sys/time.h unistd.h util.h])
@@ -43,7 +40,6 @@ AC_C_INLINE
4340
AC_TYPE_OFF_T
4441
AC_TYPE_PID_T
4542
AC_TYPE_SIZE_T
46-
AC_HEADER_TIME
4743
AC_STRUCT_TM
4844

4945
# Checks for library functions.
@@ -53,7 +49,7 @@ AC_FUNC_STRFTIME
5349
AC_CHECK_FUNCS([gettimeofday memset select socket])
5450

5551
# Check for uname prog
56-
AC_PATH_PROG([UNAME], [uname],
52+
AC_PATH_PROG([UNAME], [uname],
5753
[:])
5854

5955
AC_CANONICAL_HOST
@@ -66,10 +62,10 @@ case "${host}" in
6662
if test "x${kernel_version}" = "x" && test "x${UNAME}" != "x:" ; then
6763
UNAMEOUT=`nice ${UNAME} -r 2> /dev/null`
6864
if test "x${UNAMEOUT}" != "x"; then
69-
NO_SYSCTL=`echo ${UNAMEOUT} | ${AWK} -F '.' '{ if ($1 >= 2 &&
70-
$2 >= 6 &&
71-
$3 >= 19)
72-
print "1";
65+
NO_SYSCTL=`echo ${UNAMEOUT} | ${AWK} -F '.' '{ if ($1 >= 2 &&
66+
$2 >= 6 &&
67+
$3 >= 19)
68+
print "1";
7369
else print "0"; }'`
7470
if test "x${NO_SYSCTL}" = "x1"; then
7571
AC_DEFINE([__NO_SYSCTL__], [1], [Do not use the sysctl calls.])

0 commit comments

Comments
 (0)