Mercurial > dropbear
annotate configure.ac @ 1445:a3a96dbf9a58
Use MAX_AUTH_TRIES rather than DEFAULT_AUTH_TRIES, don't limit argument range
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 27 Jun 2017 22:20:38 +0800 |
parents | bfed37d12d90 |
children | b8764eee6bdb |
rev | line source |
---|---|
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
1 # -*- Autoconf -*- |
28
45ee5ffd6ea0
Mention that autoheader should also be run
Matt Johnston <matt@ucc.asn.au>
parents:
4
diff
changeset
|
2 # Process this file with autoconf and autoheader to produce a configure script. |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
3 |
67 | 4 # This Autoconf file was cobbled from various locations. In particular, a bunch |
5 # of the platform checks have been taken straight from OpenSSH's configure.ac | |
6 # Huge thanks to them for dealing with the horrible platform-specifics :) | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
7 |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
8 AC_PREREQ(2.59) |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
9 AC_INIT |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
10 AC_CONFIG_SRCDIR(buffer.c) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
11 |
1416
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
12 OLDCFLAGS="$CFLAGS" |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
13 # Checks for programs. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
14 AC_PROG_CC |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
15 AC_PROG_MAKE_SET |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
16 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
17 if test -z "$LD" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
18 LD=$CC |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
19 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
20 AC_SUBST(LD) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
21 |
1427
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
22 # set compile flags prior to other tests |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
23 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
24 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) |
864 | 25 CFLAGS="-Os -W -Wall -Wno-pointer-sign" |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
26 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
27 |
1416
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
28 AC_MSG_CHECKING([if compiler '$CC' supports -fno-strict-overflow]) |
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
29 OLDCFLAGS="$CFLAGS" |
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
30 CFLAGS="$CFLAGS -fno-strict-overflow" |
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
31 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
32 [AC_MSG_RESULT(yes)], |
1427
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
33 [AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS" ] |
1416
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
34 ) |
33d90d219e03
Compile with -fno-strict-overflow if possible.
Matt Johnston <matt@ucc.asn.au>
parents:
1407
diff
changeset
|
35 |
1427
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
36 hardenbuild=1 |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
37 AC_ARG_ENABLE(harden, |
1444
bfed37d12d90
improve configure --help alignment
Matt Johnston <matt@ucc.asn.au>
parents:
1429
diff
changeset
|
38 [ --disable-harden Don't set hardened build flags], |
1427
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
39 [ |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
40 if test "x$enableval" = "xno"; then |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
41 hardenbuild=0 |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
42 AC_MSG_NOTICE(Disabling hardened build flags) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
43 fi |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
44 ], []) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
45 |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
46 if test "$hardenbuild" -eq 1; then |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
47 AC_MSG_NOTICE(Checking for available hardened build flags:) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
48 # pie |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
49 OLDCFLAGS="$CFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
50 TESTFLAGS="-fPIE" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
51 CFLAGS="$CFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
52 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
53 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
54 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDCFLAGS" ] |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
55 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
56 OLDLDFLAGS="$LDFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
57 TESTFLAGS="-Wl,-pie" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
58 LDFLAGS="$LDFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
59 AC_LINK_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
60 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
1429
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
61 [ |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
62 LDFLAGS="$OLDLDFLAGS" |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
63 TESTFLAGS="-pie" |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
64 LDFLAGS="$LDFLAGS $TESTFLAGS" |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
65 AC_LINK_IFELSE([AC_LANG_PROGRAM([])], |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
66 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
67 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ] |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
68 ) |
a097c9c9608a
test for -pie linker flag as well, for Linux
Matt Johnston <matt@ucc.asn.au>
parents:
1427
diff
changeset
|
69 ] |
1427
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
70 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
71 # readonly elf relocation sections (relro) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
72 OLDLDFLAGS="$LDFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
73 TESTFLAGS="-Wl,-z,now -Wl,-z,relro" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
74 LDFLAGS="$LDFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
75 AC_LINK_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
76 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
77 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ] |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
78 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
79 # stack protector. -strong is good but only in gcc 4.9 or later |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
80 OLDCFLAGS="$CFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
81 TESTFLAGS="-fstack-protector-strong" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
82 CFLAGS="$CFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
83 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
84 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
85 [ |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
86 CFLAGS="$OLDCFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
87 TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
88 CFLAGS="$CFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
89 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
90 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
91 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDCFLAGS" ] |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
92 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
93 ] |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
94 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
95 # FORTIFY_SOURCE |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
96 OLDCFLAGS="$CFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
97 TESTFLAGS="-D_FORTIFY_SOURCE=2" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
98 CFLAGS="$CFLAGS $TESTFLAGS" |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
99 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
100 [AC_MSG_NOTICE([Setting $TESTFLAGS])], |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
101 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDCFLAGS" ] |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
102 ) |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
103 fi |
f0e262a46d4e
set hardened compiler/linker flags by default
Matt Johnston <matt@ucc.asn.au>
parents:
1426
diff
changeset
|
104 |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
105 # large file support is useful for scp |
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
106 AC_SYS_LARGEFILE |
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
107 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
108 # Host specific options |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
109 # this isn't a definitive list of hosts, they are just added as required |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
110 AC_CANONICAL_HOST |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
111 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
112 case "$host" in |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
113 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
114 *-*-linux*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
115 no_ptmx_check=1 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
116 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
117 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
118 *-*-solaris*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
119 CFLAGS="$CFLAGS -I/usr/local/include" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
120 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
121 conf_lastlog_location="/var/adm/lastlog" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
122 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
123 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'` |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
124 if test "$sol2ver" -ge 8; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
125 AC_MSG_RESULT(yes) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
126 AC_DEFINE(DISABLE_UTMP,1,Disable utmp) |
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
127 AC_DEFINE(DISABLE_WTMP,1,Disable wtmp) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
128 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
129 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
130 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
131 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
132 AC_CHECK_LIB(nsl, yp_match, LIBS="$LIBS -lnsl") |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
133 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
134 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
135 *-*-aix*) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
136 AC_DEFINE(AIX,1,Using AIX) |
67 | 137 # OpenSSH thinks it's broken. If it isn't, let me know. |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
138 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
139 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
140 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
141 *-*-hpux*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
142 LIBS="$LIBS -lsec" |
67 | 143 # It's probably broken. |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
144 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
67 | 145 ;; |
146 *-dec-osf*) | |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
147 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
148 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
149 esac |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
150 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
151 AC_CHECK_TOOL(AR, ar, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
152 AC_CHECK_TOOL(RANLIB, ranlib, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
153 AC_CHECK_TOOL(STRIP, strip, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
154 AC_CHECK_TOOL(INSTALL, install, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
155 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
156 dnl Can't use login() or logout() with uclibc |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
157 AC_CHECK_DECL(__UCLIBC__, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
158 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
159 no_loginfunc_check=1 |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
160 AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.]) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
161 ],,) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
162 |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
163 dnl We test for crypt() specially. On Linux (and others?) it resides in libcrypt |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
164 dnl but we don't want link all binaries to -lcrypt, just dropbear server. |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
165 dnl OS X doesn't need -lcrypt |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
166 AC_CHECK_FUNC(crypt, found_crypt_func=here) |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
167 AC_CHECK_LIB(crypt, crypt, |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
168 [ |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
169 CRYPTLIB="-lcrypt" |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
170 found_crypt_func=here |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
171 ]) |
519
a1b7c6cdd48a
Only use -lcrypt for Dropbear server binary
Matt Johnston <matt@ucc.asn.au>
parents:
461
diff
changeset
|
172 AC_SUBST(CRYPTLIB) |
1193
da1ed4fcdc4a
The '==' comparision operator is not defined by POSIX, use '=' instead
Juergen Daubert <jue@jue.li>
parents:
1186
diff
changeset
|
173 if test "t$found_crypt_func" = there; then |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
174 AC_DEFINE(HAVE_CRYPT, 1, [crypt() function]) |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
175 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
176 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
177 # Check if zlib is needed |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
178 AC_ARG_WITH(zlib, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
179 [ --with-zlib=PATH Use zlib in PATH], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
180 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
181 # option is given |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
182 if test -d "$withval/lib"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
183 LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
184 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
185 LDFLAGS="-L${withval} ${LDFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
186 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
187 if test -d "$withval/include"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
188 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
189 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
190 CPPFLAGS="-I${withval} ${CPPFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
191 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
192 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
193 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
194 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
195 AC_ARG_ENABLE(zlib, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
196 [ --disable-zlib Don't include zlib support], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
197 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
198 if test "x$enableval" = "xno"; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
199 AC_DEFINE(DISABLE_ZLIB,1,Use zlib) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
200 AC_MSG_NOTICE(Disabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
201 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
202 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
203 AC_MSG_NOTICE(Enabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
204 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
205 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
206 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
207 # if not disabled, check for zlib |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
208 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
209 AC_MSG_NOTICE(Enabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
210 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
211 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
212 |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
213 # Check if pam is needed |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
214 AC_ARG_WITH(pam, |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
215 [ --with-pam=PATH Use pam in PATH], |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
216 [ |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
217 # option is given |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
218 if test -d "$withval/lib"; then |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
219 LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
220 else |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
221 LDFLAGS="-L${withval} ${LDFLAGS}" |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
222 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
223 if test -d "$withval/include"; then |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
224 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
225 else |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
226 CPPFLAGS="-I${withval} ${CPPFLAGS}" |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
227 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
228 ] |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
229 ) |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
230 |
122
cb7ef2f63bf0
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
Matt Johnston <matt@ucc.asn.au>
parents:
119
diff
changeset
|
231 |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
232 AC_ARG_ENABLE(pam, |
1444
bfed37d12d90
improve configure --help alignment
Matt Johnston <matt@ucc.asn.au>
parents:
1429
diff
changeset
|
233 [ --enable-pam Try to include PAM support], |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
234 [ |
122
cb7ef2f63bf0
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
Matt Johnston <matt@ucc.asn.au>
parents:
119
diff
changeset
|
235 if test "x$enableval" = "xyes"; then |
cb7ef2f63bf0
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
Matt Johnston <matt@ucc.asn.au>
parents:
119
diff
changeset
|
236 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
237 AC_MSG_NOTICE(Enabling PAM) |
573
d3ea8b9672f0
- Test for pam_fail_delay() function in configure
Matt Johnston <matt@ucc.asn.au>
parents:
519
diff
changeset
|
238 AC_CHECK_FUNCS(pam_fail_delay) |
122
cb7ef2f63bf0
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
Matt Johnston <matt@ucc.asn.au>
parents:
119
diff
changeset
|
239 else |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
240 AC_DEFINE(DISABLE_PAM,1,Use PAM) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
241 AC_MSG_NOTICE(Disabling PAM) |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
242 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
243 ], |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
244 [ |
122
cb7ef2f63bf0
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
Matt Johnston <matt@ucc.asn.au>
parents:
119
diff
changeset
|
245 # disable it by default |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
246 AC_DEFINE(DISABLE_PAM,1,Use PAM) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
247 AC_MSG_NOTICE(Disabling PAM) |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
248 ] |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
249 ) |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
250 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
251 AC_ARG_ENABLE(openpty, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
252 [ --disable-openpty Don't use openpty, use alternative method], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
253 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
254 if test "x$enableval" = "xno"; then |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
255 AC_MSG_NOTICE(Not using openpty) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
256 else |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
257 AC_MSG_NOTICE(Using openpty if available) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
258 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,1,[Have openpty() function])]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
259 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
260 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
261 [ |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
262 AC_MSG_NOTICE(Using openpty if available) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
263 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
264 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
265 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
266 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
267 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
268 AC_ARG_ENABLE(syslog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
269 [ --disable-syslog Don't include syslog support], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
270 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
271 if test "x$enableval" = "xno"; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
272 AC_DEFINE(DISABLE_SYSLOG,1,Using syslog) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
273 AC_MSG_NOTICE(Disabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
274 else |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
275 AC_MSG_NOTICE(Enabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
276 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
277 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
278 [ |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
279 AC_MSG_NOTICE(Enabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
280 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
281 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
282 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
283 AC_ARG_ENABLE(shadow, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
284 [ --disable-shadow Don't use shadow passwords (if available)], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
285 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
286 if test "x$enableval" = "xno"; then |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
287 AC_MSG_NOTICE(Not using shadow passwords) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
288 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
289 AC_CHECK_HEADERS([shadow.h]) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
290 AC_MSG_NOTICE(Using shadow passwords if available) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
291 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
292 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
293 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
294 AC_CHECK_HEADERS([shadow.h]) |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
295 AC_MSG_NOTICE(Using shadow passwords if available) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
296 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
297 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
298 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
299 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
300 # Checks for header files. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
301 AC_HEADER_STDC |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
302 AC_HEADER_SYS_WAIT |
1426
89f8c5960527
test for linux/pkt-sched.h rather than SO_PRIORITY
Matt Johnston <matt@ucc.asn.au>
parents:
1416
diff
changeset
|
303 AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h \ |
89f8c5960527
test for linux/pkt-sched.h rather than SO_PRIORITY
Matt Johnston <matt@ucc.asn.au>
parents:
1416
diff
changeset
|
304 string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h \ |
89f8c5960527
test for linux/pkt-sched.h rather than SO_PRIORITY
Matt Johnston <matt@ucc.asn.au>
parents:
1416
diff
changeset
|
305 pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h \ |
89f8c5960527
test for linux/pkt-sched.h rather than SO_PRIORITY
Matt Johnston <matt@ucc.asn.au>
parents:
1416
diff
changeset
|
306 utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h \ |
89f8c5960527
test for linux/pkt-sched.h rather than SO_PRIORITY
Matt Johnston <matt@ucc.asn.au>
parents:
1416
diff
changeset
|
307 pam/pam_appl.h netinet/in_systm.h sys/uio.h linux/pkt_sched.h]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
308 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
309 # Checks for typedefs, structures, and compiler characteristics. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
310 AC_C_CONST |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
311 AC_TYPE_UID_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
312 AC_TYPE_MODE_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
313 AC_TYPE_PID_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
314 AC_TYPE_SIZE_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
315 AC_HEADER_TIME |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
316 |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
317 AC_CHECK_TYPES([uint8_t, u_int8_t, uint16_t, u_int16_t, uint32_t, u_int32_t]) |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
318 AC_CHECK_TYPES([struct sockaddr_storage]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
319 AC_CHECK_TYPE([socklen_t], ,[ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
320 AC_MSG_CHECKING([for socklen_t equivalent]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
321 AC_CACHE_VAL([curl_cv_socklen_t_equiv], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
322 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
323 # Systems have either "struct sockaddr *" or |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
324 # "void *" as the second argument to getpeername |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
325 curl_cv_socklen_t_equiv= |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
326 for arg2 in "struct sockaddr" void; do |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
327 for t in int size_t unsigned long "unsigned long"; do |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
328 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
329 #include <sys/types.h> |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
330 #include <sys/socket.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
331 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
332 int getpeername (int, $arg2 *, $t *); |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
333 ]],[[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
334 $t len; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
335 getpeername(0,0,&len); |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
336 ]])],[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
337 curl_cv_socklen_t_equiv="$t" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
338 break |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
339 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
340 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
341 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
342 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
343 if test "x$curl_cv_socklen_t_equiv" = x; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
344 AC_MSG_ERROR([Cannot find a type to use in place of socklen_t]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
345 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
346 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
347 AC_MSG_RESULT($curl_cv_socklen_t_equiv) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
348 AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
349 [type to use in place of socklen_t if not defined])], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
350 [#include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
351 #include <sys/socket.h>]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
352 |
67 | 353 # for the fake-rfc2553 stuff - straight from OpenSSH |
354 | |
355 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [ | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
356 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 357 #include <sys/types.h> |
358 #include <sys/socket.h> | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
359 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
360 [[ if (sizeof(struct sockaddr_storage)) return 0 ]])], |
67 | 361 [ ac_cv_have_struct_sockaddr_storage="yes" ], |
362 [ ac_cv_have_struct_sockaddr_storage="no" ] | |
363 ) | |
364 ]) | |
365 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | |
366 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) | |
367 fi | |
368 | |
369 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [ | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
370 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 371 #include <sys/types.h> |
372 #include <netinet/in.h> | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
373 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
374 [[ if (sizeof(struct sockaddr_in6)) return 0 ]])], |
67 | 375 [ ac_cv_have_struct_sockaddr_in6="yes" ], |
376 [ ac_cv_have_struct_sockaddr_in6="no" ] | |
377 ) | |
378 ]) | |
379 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
380 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6,1,Have struct sockaddr_in6) |
67 | 381 fi |
382 | |
383 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [ | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
384 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 385 #include <sys/types.h> |
386 #include <netinet/in.h> | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
387 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
388 [[ if (sizeof(struct in6_addr)) return 0 ]])], |
67 | 389 [ ac_cv_have_struct_in6_addr="yes" ], |
390 [ ac_cv_have_struct_in6_addr="no" ] | |
391 ) | |
392 ]) | |
393 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
394 AC_DEFINE(HAVE_STRUCT_IN6_ADDR,1,Have struct in6_addr) |
67 | 395 fi |
396 | |
397 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [ | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
398 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 399 #include <sys/types.h> |
400 #include <sys/socket.h> | |
401 #include <netdb.h> | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
402 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
403 [[ if (sizeof(struct addrinfo)) return 0 ]])], |
67 | 404 [ ac_cv_have_struct_addrinfo="yes" ], |
405 [ ac_cv_have_struct_addrinfo="no" ] | |
406 ) | |
407 ]) | |
408 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
409 AC_DEFINE(HAVE_STRUCT_ADDRINFO,1,Have struct addrinfo) |
67 | 410 fi |
411 | |
412 | |
413 # IRIX has a const char return value for gai_strerror() | |
414 AC_CHECK_FUNCS(gai_strerror,[ | |
415 AC_DEFINE(HAVE_GAI_STRERROR) | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
416 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 417 #include <sys/types.h> |
418 #include <sys/socket.h> | |
419 #include <netdb.h> | |
420 | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
421 const char *gai_strerror(int);]],[[ |
67 | 422 char *str; |
423 | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
424 str = gai_strerror(0);]])],[ |
67 | 425 AC_DEFINE(HAVE_CONST_GAI_STRERROR_PROTO, 1, |
426 [Define if gai_strerror() returns const char *])])]) | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
427 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
428 # for loginrec.c |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
429 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
430 AC_CHECK_MEMBERS([struct utmp.ut_host, struct utmp.ut_pid, struct utmp.ut_type, struct utmp.ut_tv, struct utmp.ut_id, struct utmp.ut_addr, struct utmp.ut_addr_v6, struct utmp.ut_exit, struct utmp.ut_time],,,[ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
431 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
432 #if HAVE_UTMP_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
433 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
434 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
435 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
436 |
335
e17f0333c21e
Another stab at getting ss_family happy on older glibc
Matt Johnston <matt@ucc.asn.au>
parents:
321
diff
changeset
|
437 AC_CHECK_MEMBERS([struct utmpx.ut_host, struct utmpx.ut_syslen, struct utmpx.ut_type, struct utmpx.ut_id, struct utmpx.ut_addr, struct utmpx.ut_addr_v6, struct utmpx.ut_time, struct utmpx.ut_tv],,,[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
438 #include <sys/types.h> |
262
a3a68c25035e
* workaround for systems such as glibc 2.1 that have
Matt Johnston <matt@ucc.asn.au>
parents:
254
diff
changeset
|
439 #include <sys/socket.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
440 #if HAVE_UTMPX_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
441 #include <utmpx.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
442 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
443 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
444 |
336
2dd116db1956
Can't check for ss_family without #including sys/socket.h
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
445 AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family],,,[ |
2dd116db1956
Can't check for ss_family without #including sys/socket.h
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
446 #include <sys/types.h> |
2dd116db1956
Can't check for ss_family without #including sys/socket.h
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
447 #include <sys/socket.h> |
2dd116db1956
Can't check for ss_family without #including sys/socket.h
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
448 ]) |
335
e17f0333c21e
Another stab at getting ss_family happy on older glibc
Matt Johnston <matt@ucc.asn.au>
parents:
321
diff
changeset
|
449 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
450 AC_CHECK_FUNCS(endutent getutent getutid getutline pututline setutent) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
451 AC_CHECK_FUNCS(utmpname) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
452 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
453 AC_CHECK_FUNCS(setutxent utmpxname) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
454 AC_CHECK_FUNCS(logout updwtmp logwtmp) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
455 |
928
7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
Matt Johnston <matt@ucc.asn.au>
parents:
898
diff
changeset
|
456 # OS X monotonic time |
7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
Matt Johnston <matt@ucc.asn.au>
parents:
898
diff
changeset
|
457 AC_CHECK_HEADERS([mach/mach_time.h]) |
7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
Matt Johnston <matt@ucc.asn.au>
parents:
898
diff
changeset
|
458 AC_CHECK_FUNCS(mach_absolute_time) |
7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
Matt Johnston <matt@ucc.asn.au>
parents:
898
diff
changeset
|
459 |
1280
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
460 AC_CHECK_FUNCS(explicit_bzero memset_s) |
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
461 |
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
462 |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
463 AC_ARG_ENABLE(bundled-libtom, |
829
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
464 [ --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists. |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
465 --disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist. |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
466 Default is to use system if available, otherwise bundled.], |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
467 [ |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
468 if test "x$enableval" = "xyes"; then |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
469 BUNDLED_LIBTOM=1 |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
470 AC_MSG_NOTICE(Forcing bundled libtom*) |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
471 else |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
472 BUNDLED_LIBTOM=0 |
1406
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
473 AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", |
898
4f1988cb79ce
Fix building with system libtomcrypt/libtommath
Matt Johnston <matt@ucc.asn.au>
parents:
866
diff
changeset
|
474 [AC_MSG_ERROR([Missing system libtommath and --disable-bundled-libtom was specified])] ) |
1406
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
475 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", |
829
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
476 [AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] ) |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
477 fi |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
478 ], |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
479 [ |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
480 BUNDLED_LIBTOM=0 |
1406
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
481 AC_CHECK_LIB(tommath, mp_exptmod, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", BUNDLED_LIBTOM=1) |
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
482 AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1) |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
483 ] |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
484 ) |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
485 |
587
1151059c5eff
Work properly again with bundled libtom*. autoconf is a hassle.
Matt Johnston <matt@ucc.asn.au>
parents:
585
diff
changeset
|
486 if test $BUNDLED_LIBTOM = 1 ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
487 AC_DEFINE(BUNDLED_LIBTOM,1,Use bundled libtom) |
587
1151059c5eff
Work properly again with bundled libtom*. autoconf is a hassle.
Matt Johnston <matt@ucc.asn.au>
parents:
585
diff
changeset
|
488 fi |
1151059c5eff
Work properly again with bundled libtom*. autoconf is a hassle.
Matt Johnston <matt@ucc.asn.au>
parents:
585
diff
changeset
|
489 |
898
4f1988cb79ce
Fix building with system libtomcrypt/libtommath
Matt Johnston <matt@ucc.asn.au>
parents:
866
diff
changeset
|
490 AC_SUBST(LIBTOM_LIBS) |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
491 AC_SUBST(BUNDLED_LIBTOM) |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
492 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
493 dnl Added from OpenSSH 3.6.1p2's configure.ac |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
494 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
495 dnl allow user to disable some login recording features |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
496 AC_ARG_ENABLE(lastlog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
497 [ --disable-lastlog Disable use of lastlog even if detected [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
498 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
499 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
500 AC_DEFINE(DISABLE_LASTLOG,1,Disable use of lastlog()) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
501 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
502 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
503 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
504 AC_ARG_ENABLE(utmp, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
505 [ --disable-utmp Disable use of utmp even if detected [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
506 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
507 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
508 AC_DEFINE(DISABLE_UTMP,1,Disable use of utmp) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
509 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
510 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
511 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
512 AC_ARG_ENABLE(utmpx, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
513 [ --disable-utmpx Disable use of utmpx even if detected [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
514 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
515 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
516 AC_DEFINE(DISABLE_UTMPX,1,Disable use of utmpx) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
517 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
518 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
519 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
520 AC_ARG_ENABLE(wtmp, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
521 [ --disable-wtmp Disable use of wtmp even if detected [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
522 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
523 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
524 AC_DEFINE(DISABLE_WTMP,1,Disable use of wtmp) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
525 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
526 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
527 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
528 AC_ARG_ENABLE(wtmpx, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
529 [ --disable-wtmpx Disable use of wtmpx even if detected [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
530 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
531 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
532 AC_DEFINE(DISABLE_WTMPX,1,Disable use of wtmpx) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
533 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
534 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
535 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
536 AC_ARG_ENABLE(loginfunc, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
537 [ --disable-loginfunc Disable use of login() etc. [no]], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
538 [ no_loginfunc_check=1 |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
539 AC_MSG_NOTICE([Not using login() etc]) ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
540 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
541 AC_ARG_ENABLE(pututline, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
542 [ --disable-pututline Disable use of pututline() etc. ([uw]tmp) [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
543 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
544 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
545 AC_DEFINE(DISABLE_PUTUTLINE,1,Disable use of pututline()) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
546 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
547 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
548 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
549 AC_ARG_ENABLE(pututxline, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
550 [ --disable-pututxline Disable use of pututxline() etc. ([uw]tmpx) [no]], |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
551 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
552 if test "x$enableval" = "xno" ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
553 AC_DEFINE(DISABLE_PUTUTXLINE,1,Disable use of pututxline()) |
1397
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
554 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
555 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
556 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
557 AC_ARG_WITH(lastlog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
558 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
559 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
560 if test "x$withval" = "xno" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
561 AC_DEFINE(DISABLE_LASTLOG) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
562 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
563 conf_lastlog_location=$withval |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
564 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
565 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
566 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
567 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
568 if test -z "$no_loginfunc_check"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
569 dnl Checks for libutil functions (login(), logout() etc, not openpty() ) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
570 AC_SEARCH_LIBS(login, util bsd, [AC_DEFINE(HAVE_LOGIN,1,[Have login() function])]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
571 AC_CHECK_FUNCS(logout updwtmp logwtmp) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
572 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
573 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
574 dnl lastlog, [uw]tmpx? detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
575 dnl NOTE: set the paths in the platform section to avoid the |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
576 dnl need for command-line parameters |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
577 dnl lastlog and [uw]tmp are subject to a file search if all else fails |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
578 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
579 dnl lastlog detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
580 dnl NOTE: the code itself will detect if lastlog is a directory |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
581 AC_MSG_CHECKING([if your system defines LASTLOG_FILE]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
582 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
583 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
584 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
585 #ifdef HAVE_LASTLOG_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
586 # include <lastlog.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
587 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
588 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
589 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
590 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
591 #ifdef HAVE_LOGIN_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
592 # include <login.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
593 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
594 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
595 [[ char *lastlog = LASTLOG_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
596 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
597 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
598 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
599 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
600 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
601 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
602 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
603 #ifdef HAVE_LASTLOG_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
604 # include <lastlog.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
605 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
606 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
607 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
608 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
609 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
610 [[ char *lastlog = _PATH_LASTLOG; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
611 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
612 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
613 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
614 system_lastlog_path=no |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
615 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
616 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
617 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
618 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
619 if test -z "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
620 if test x"$system_lastlog_path" = x"no" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
621 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
622 if (test -d "$f" || test -f "$f") ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
623 conf_lastlog_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
624 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
625 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
626 if test -z "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
627 AC_MSG_WARN([** Cannot find lastlog **]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
628 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
629 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
630 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
631 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
632 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
633 if test -n "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
634 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location", lastlog file location) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
635 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
636 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
637 dnl utmp detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
638 AC_MSG_CHECKING([if your system defines UTMP_FILE]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
639 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
640 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
641 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
642 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
643 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
644 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
645 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
646 [[ char *utmp = UTMP_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
647 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
648 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
649 system_utmp_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
650 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
651 if test -z "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
652 if test x"$system_utmp_path" = x"no" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
653 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
654 if test -f $f ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
655 conf_utmp_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
656 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
657 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
658 if test -z "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
659 AC_DEFINE(DISABLE_UTMP) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
660 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
661 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
662 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
663 if test -n "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
664 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location", utmp file location) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
665 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
666 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
667 dnl wtmp detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
668 AC_MSG_CHECKING([if your system defines WTMP_FILE]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
669 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
670 #include <sys/types.h> |
865 | 671 #ifdef HAVE_UTMP_H |
672 # include <utmp.h> | |
673 #endif | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
674 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
675 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
676 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
677 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
678 [[ char *wtmp = WTMP_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
679 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
680 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
681 system_wtmp_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
682 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
683 if test -z "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
684 if test x"$system_wtmp_path" = x"no" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
685 for f in /usr/adm/wtmp /var/log/wtmp; do |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
686 if test -f $f ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
687 conf_wtmp_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
688 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
689 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
690 if test -z "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
691 AC_DEFINE(DISABLE_WTMP) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
692 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
693 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
694 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
695 if test -n "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
696 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location", wtmp file location) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
697 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
698 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
699 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
700 dnl utmpx detection - I don't know any system so perverse as to require |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
701 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
702 dnl there, though. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
703 AC_MSG_CHECKING([if your system defines UTMPX_FILE]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
704 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
705 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
706 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
707 #ifdef HAVE_UTMPX_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
708 #include <utmpx.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
709 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
710 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
711 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
712 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
713 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
714 [[ char *utmpx = UTMPX_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
715 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
716 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
717 system_utmpx_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
718 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
719 if test -z "$conf_utmpx_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
720 if test x"$system_utmpx_path" = x"no" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
721 AC_DEFINE(DISABLE_UTMPX) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
722 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
723 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
724 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location", utmpx file location) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
725 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
726 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
727 dnl wtmpx detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
728 AC_MSG_CHECKING([if your system defines WTMPX_FILE]) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
729 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
730 #include <sys/types.h> |
865 | 731 #ifdef HAVE_UTMP_H |
732 # include <utmp.h> | |
733 #endif | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
734 #ifdef HAVE_UTMPX_H |
865 | 735 # include <utmpx.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
736 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
737 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
738 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
739 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
740 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
741 [[ char *wtmpx = WTMPX_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
742 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
743 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
744 system_wtmpx_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
745 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
746 if test -z "$conf_wtmpx_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
747 if test x"$system_wtmpx_path" = x"no" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
748 AC_DEFINE(DISABLE_WTMPX) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
749 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
750 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
751 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location", wtmpx file location) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
752 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
753 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
754 # Checks for library functions. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
755 AC_PROG_GCC_TRADITIONAL |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
756 AC_FUNC_MEMCMP |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
757 AC_FUNC_SELECT_ARGTYPES |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
758 AC_CHECK_FUNCS([dup2 getpass getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
759 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
760 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
761 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
762 # Solaris needs ptmx |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
763 if test -z "$no_ptmx_check" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
764 if test x"$cross_compiling" = x"no" ; then |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
765 if test -e /dev/ptmx ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
766 AC_DEFINE(USE_DEV_PTMX,1,Use /dev/ptmx) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
767 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
768 else |
431
126687f635dc
Quote some message in configure
Matt Johnston <matt@ucc.asn.au>
parents:
417
diff
changeset
|
769 AC_MSG_NOTICE([Not checking for /dev/ptmx, we're cross-compiling]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
770 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
771 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
772 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
773 if test -z "$no_ptc_check" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
774 if test x"$cross_compiling" = x"no" ; then |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
775 if test -e /dev/ptc ; then |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
776 AC_DEFINE(HAVE_DEV_PTS_AND_PTC,1,Use /dev/ptc & /dev/pts) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
777 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
778 else |
431
126687f635dc
Quote some message in configure
Matt Johnston <matt@ucc.asn.au>
parents:
417
diff
changeset
|
779 AC_MSG_NOTICE([Not checking for /dev/ptc & /dev/pts since we're cross-compiling]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
780 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
781 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
782 |
67 | 783 AC_EXEEXT |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
784 |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
785 # XXX there must be a nicer way to do this |
998
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
786 if test $BUNDLED_LIBTOM = 1 ; then |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
787 AS_MKDIR_P(libtomcrypt/src/ciphers/aes) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
788 AS_MKDIR_P(libtomcrypt/src/ciphers/safer) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
789 AS_MKDIR_P(libtomcrypt/src/ciphers/twofish) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
790 AS_MKDIR_P(libtomcrypt/src/encauth/ccm) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
791 AS_MKDIR_P(libtomcrypt/src/encauth/eax) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
792 AS_MKDIR_P(libtomcrypt/src/encauth/gcm) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
793 AS_MKDIR_P(libtomcrypt/src/encauth/ocb) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
794 AS_MKDIR_P(libtomcrypt/src/hashes) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
795 AS_MKDIR_P(libtomcrypt/src/hashes/chc) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
796 AS_MKDIR_P(libtomcrypt/src/hashes/helper) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
797 AS_MKDIR_P(libtomcrypt/src/hashes/sha2) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
798 AS_MKDIR_P(libtomcrypt/src/hashes/whirl) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
799 AS_MKDIR_P(libtomcrypt/src/mac/hmac) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
800 AS_MKDIR_P(libtomcrypt/src/mac/omac) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
801 AS_MKDIR_P(libtomcrypt/src/mac/pelican) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
802 AS_MKDIR_P(libtomcrypt/src/mac/pmac) |
461
db4f6adcb7e2
Fix to allow building from a separate directory, patch from Ricardo Martins
Matt Johnston <matt@ucc.asn.au>
parents:
431
diff
changeset
|
803 AS_MKDIR_P(libtomcrypt/src/mac/f9) |
db4f6adcb7e2
Fix to allow building from a separate directory, patch from Ricardo Martins
Matt Johnston <matt@ucc.asn.au>
parents:
431
diff
changeset
|
804 AS_MKDIR_P(libtomcrypt/src/mac/xcbc) |
db4f6adcb7e2
Fix to allow building from a separate directory, patch from Ricardo Martins
Matt Johnston <matt@ucc.asn.au>
parents:
431
diff
changeset
|
805 AS_MKDIR_P(libtomcrypt/src/math/fp) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
806 AS_MKDIR_P(libtomcrypt/src/misc/base64) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
807 AS_MKDIR_P(libtomcrypt/src/misc/crypt) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
808 AS_MKDIR_P(libtomcrypt/src/misc/mpi) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
809 AS_MKDIR_P(libtomcrypt/src/misc/pkcs5) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
810 AS_MKDIR_P(libtomcrypt/src/modes/cbc) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
811 AS_MKDIR_P(libtomcrypt/src/modes/cfb) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
812 AS_MKDIR_P(libtomcrypt/src/modes/ctr) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
813 AS_MKDIR_P(libtomcrypt/src/modes/ecb) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
814 AS_MKDIR_P(libtomcrypt/src/modes/ofb) |
461
db4f6adcb7e2
Fix to allow building from a separate directory, patch from Ricardo Martins
Matt Johnston <matt@ucc.asn.au>
parents:
431
diff
changeset
|
815 AS_MKDIR_P(libtomcrypt/src/modes/f8) |
db4f6adcb7e2
Fix to allow building from a separate directory, patch from Ricardo Martins
Matt Johnston <matt@ucc.asn.au>
parents:
431
diff
changeset
|
816 AS_MKDIR_P(libtomcrypt/src/modes/lrw) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
817 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/bit) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
818 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/boolean) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
819 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/choice) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
820 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/ia5) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
821 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/integer) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
822 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/object_identifier) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
823 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/octet) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
824 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/printable_string) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
825 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/sequence) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
826 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/set) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
827 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/short_integer) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
828 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/utctime) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
829 AS_MKDIR_P(libtomcrypt/src/pk/asn1/der/utf8) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
830 AS_MKDIR_P(libtomcrypt/src/pk/dh) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
831 AS_MKDIR_P(libtomcrypt/src/pk/dsa) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
832 AS_MKDIR_P(libtomcrypt/src/pk/ecc) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
833 AS_MKDIR_P(libtomcrypt/src/pk/katja) |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
834 AS_MKDIR_P(libtomcrypt/src/pk/pkcs1) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
835 AS_MKDIR_P(libtomcrypt/src/pk/rsa) |
755
b07eb3dc23ec
refactor kexdh code a bit, start working on ecdh etc
Matt Johnston <matt@ucc.asn.au>
parents:
724
diff
changeset
|
836 AS_MKDIR_P(libtomcrypt/src/prngs) |
998
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
837 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" |
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
838 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
839 AC_CONFIG_HEADER(config.h) |
998
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
840 AC_CONFIG_FILES(Makefile $LIBTOM_FILES) |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
841 AC_OUTPUT |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
842 |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
843 AC_MSG_NOTICE() |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
844 if test $BUNDLED_LIBTOM = 1 ; then |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
845 AC_MSG_NOTICE([Using bundled libtomcrypt and libtommath]) |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
846 else |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
847 AC_MSG_NOTICE([Using system libtomcrypt and libtommath]) |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
848 fi |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
849 |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
850 |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
851 if test "x$ac_cv_func_getpass" != xyes; then |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
852 AC_MSG_NOTICE() |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
853 AC_MSG_NOTICE([getpass() not available, dbclient will only have public-key authentication]) |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
854 fi |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
855 |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
856 if test "t$found_crypt_func" != there; then |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
857 AC_MSG_NOTICE() |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
858 AC_MSG_NOTICE([crypt() not available, dropbear server will not have password authentication]) |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
859 fi |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
860 |
321
fa9c45d09727
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
Matt Johnston <matt@ucc.asn.au>
parents:
262
diff
changeset
|
861 AC_MSG_NOTICE() |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
862 AC_MSG_NOTICE([Now edit options.h to choose features.]) |