1
- # -*- Autoconf -*-
2
- # Process this file with autoconf to produce a configure script.
3
- #
4
1
# Copyright 2005-2008 David Snyder <dasnyderx(at)yahoo(dot)com>
5
2
# Copyright 2019-2021 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
6
3
#
7
4
# This file is under the same terms described by
8
5
# LICENSE file for the main source code (rdate.c).
9
6
10
- AC_PREREQ ( 2.61 )
7
+ AC_PREREQ ( [ 2.69 ] )
11
8
AC_INIT ( [ openrdate] ,[ 1.10.1] ,[ https://github.com/resurrecting-open-source-projects/openrdate/issues] )
12
9
AM_INIT_AUTOMAKE
13
10
AC_CONFIG_SRCDIR ( [ src/rdate.c] )
14
- AC_CONFIG_HEADER ([ config.h] )
11
+ AC_CONFIG_HEADERS ( [ config.h] )
15
12
AC_ARG_VAR ( [ kernel_version] , [ the version of the kernel to build against] )
16
13
17
14
# Checks for programs.
23
20
24
21
AC_PROG_INSTALL
25
22
AC_PROG_RANLIB
23
+ AC_PROG_EGREP
26
24
27
25
# Checks for libraries.
28
26
AC_CHECK_LIB ( [ c] , [ fork] )
29
27
AC_CHECK_LIB ( [ util] , [ malloc] )
30
28
31
29
#
32
30
# Checks for header files.
33
- AC_HEADER_STDC
34
31
AC_CHECK_HEADERS ( [ arpa/inet.h fcntl.h float.h limits.h netdb.h \
35
32
netinet/in.h stdlib.h string.h sys/param.h sys/socket.h \
36
33
sys/time.h unistd.h util.h] )
@@ -43,7 +40,6 @@ AC_C_INLINE
43
40
AC_TYPE_OFF_T
44
41
AC_TYPE_PID_T
45
42
AC_TYPE_SIZE_T
46
- AC_HEADER_TIME
47
43
AC_STRUCT_TM
48
44
49
45
# Checks for library functions.
@@ -53,7 +49,7 @@ AC_FUNC_STRFTIME
53
49
AC_CHECK_FUNCS ( [ gettimeofday memset select socket] )
54
50
55
51
# Check for uname prog
56
- AC_PATH_PROG ( [ UNAME] , [ uname] ,
52
+ AC_PATH_PROG ( [ UNAME] , [ uname] ,
57
53
[ :] )
58
54
59
55
AC_CANONICAL_HOST
@@ -66,10 +62,10 @@ case "${host}" in
66
62
if test "x${kernel_version}" = "x" && test "x${UNAME}" != "x:" ; then
67
63
UNAMEOUT=`nice ${UNAME} -r 2> /dev/null`
68
64
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";
73
69
else print "0"; }'`
74
70
if test "x${NO_SYSCTL}" = "x1"; then
75
71
AC_DEFINE ( [ __NO_SYSCTL__] , [ 1] , [ Do not use the sysctl calls.] )
0 commit comments