Mercurial > dropbear
annotate configure.ac @ 1411:798854f62430 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 14 Jun 2017 23:31:42 +0800 |
parents | 3677a510f545 8d9bad0a1c86 |
children | 4f17d75d027b |
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 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
12 OLDCFLAGS=$CFLAGS |
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 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
22 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
|
23 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) |
864 | 24 CFLAGS="-Os -W -Wall -Wno-pointer-sign" |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
25 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
26 |
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
|
27 # 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
|
28 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
|
29 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
30 # Host specific options |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
31 # 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
|
32 AC_CANONICAL_HOST |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
33 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
34 case "$host" in |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
35 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
36 *-*-linux*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
37 no_ptmx_check=1 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
38 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
39 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
40 *-*-solaris*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
41 CFLAGS="$CFLAGS -I/usr/local/include" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
42 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
|
43 conf_lastlog_location="/var/adm/lastlog" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
44 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
|
45 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'` |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
46 if test "$sol2ver" -ge 8; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
47 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
|
48 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
|
49 AC_DEFINE(DISABLE_WTMP,1,Disable wtmp) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
50 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
51 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
52 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
53 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
54 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
|
55 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
56 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
57 *-*-aix*) |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
58 AC_DEFINE(AIX,1,Using AIX) |
67 | 59 # 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
|
60 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
61 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
62 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
63 *-*-hpux*) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
64 LIBS="$LIBS -lsec" |
67 | 65 # 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
|
66 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
67 | 67 ;; |
68 *-dec-osf*) | |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
69 AC_DEFINE(BROKEN_GETADDRINFO,1,Broken getaddrinfo) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
70 ;; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
71 esac |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
72 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
73 AC_CHECK_TOOL(AR, ar, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
74 AC_CHECK_TOOL(RANLIB, ranlib, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
75 AC_CHECK_TOOL(STRIP, strip, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
76 AC_CHECK_TOOL(INSTALL, install, :) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
77 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
78 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
|
79 AC_CHECK_DECL(__UCLIBC__, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
80 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
81 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
|
82 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
|
83 ],,) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
84 |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
85 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
|
86 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
|
87 dnl OS X doesn't need -lcrypt |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
88 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
|
89 AC_CHECK_LIB(crypt, crypt, |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
90 [ |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
91 CRYPTLIB="-lcrypt" |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
92 found_crypt_func=here |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
93 ]) |
519
a1b7c6cdd48a
Only use -lcrypt for Dropbear server binary
Matt Johnston <matt@ucc.asn.au>
parents:
461
diff
changeset
|
94 AC_SUBST(CRYPTLIB) |
1193
da1ed4fcdc4a
The '==' comparision operator is not defined by POSIX, use '=' instead
Juergen Daubert <jue@jue.li>
parents:
1186
diff
changeset
|
95 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
|
96 AC_DEFINE(HAVE_CRYPT, 1, [crypt() function]) |
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
97 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
98 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
99 # Check if zlib is needed |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
100 AC_ARG_WITH(zlib, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
101 [ --with-zlib=PATH Use zlib in PATH], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
102 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
103 # option is given |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
104 if test -d "$withval/lib"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
105 LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
106 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
107 LDFLAGS="-L${withval} ${LDFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
108 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
109 if test -d "$withval/include"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
110 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
111 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
112 CPPFLAGS="-I${withval} ${CPPFLAGS}" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
113 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
114 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
115 ) |
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 AC_ARG_ENABLE(zlib, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
118 [ --disable-zlib Don't include zlib support], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
119 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
120 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
|
121 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
|
122 AC_MSG_NOTICE(Disabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
123 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
124 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
|
125 AC_MSG_NOTICE(Enabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
126 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
127 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
128 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
129 # if not disabled, check for zlib |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
130 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
|
131 AC_MSG_NOTICE(Enabling zlib) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
132 ] |
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 |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
135 # 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
|
136 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
|
137 [ --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
|
138 [ |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
139 # option is given |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
140 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
|
141 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
|
142 else |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
143 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
|
144 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
145 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
|
146 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
|
147 else |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
148 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
|
149 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
150 ] |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
151 ) |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
152 |
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
|
153 |
57
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
154 AC_ARG_ENABLE(pam, |
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
|
155 [ --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
|
156 [ |
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
|
157 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
|
158 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
|
159 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
|
160 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
|
161 else |
1399
47a3a3cb7d45
Set configure #defines to 1. Escape some strings for m4
Matt Johnston <matt@ucc.asn.au>
parents:
1397
diff
changeset
|
162 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
|
163 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
|
164 fi |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
165 ], |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
166 [ |
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
|
167 # 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
|
168 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
|
169 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
|
170 ] |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
171 ) |
3b2a5a1c4347
svr-authpam code merged and works. needs tidying a log
Matt Johnston <matt@ucc.asn.au>
parents:
28
diff
changeset
|
172 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
173 AC_ARG_ENABLE(openpty, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
174 [ --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
|
175 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
176 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
|
177 AC_MSG_NOTICE(Not using openpty) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
178 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
|
179 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
|
180 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
|
181 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
182 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
183 [ |
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
|
184 AC_MSG_NOTICE(Using openpty if available) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
185 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
|
186 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
187 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
188 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
189 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
190 AC_ARG_ENABLE(syslog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
191 [ --disable-syslog Don't include syslog support], |
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 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
|
194 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
|
195 AC_MSG_NOTICE(Disabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
196 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
|
197 AC_MSG_NOTICE(Enabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
198 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
199 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
200 [ |
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
|
201 AC_MSG_NOTICE(Enabling syslog) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
202 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
203 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
204 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
205 AC_ARG_ENABLE(shadow, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
206 [ --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
|
207 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
208 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
|
209 AC_MSG_NOTICE(Not using shadow passwords) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
210 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
211 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
|
212 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
|
213 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
214 ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
215 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
216 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
|
217 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
|
218 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
219 ) |
1347
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
220 |
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
221 AC_ARG_ENABLE(fuzz, |
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
222 [ --enable-fuzz Build fuzzing], |
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
223 [ |
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
224 AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing) |
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
225 AC_MSG_NOTICE(Enabling fuzzing) |
1356
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
226 DROPBEAR_FUZZ=1 |
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
227 ], |
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
228 [ |
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
229 DROPBEAR_FUZZ=0 |
1347
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
230 ] |
1356
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
231 |
1347
b28624698130
copy over some fuzzing code from AFL branch
Matt Johnston <matt@ucc.asn.au>
parents:
1280
diff
changeset
|
232 ) |
1356
3677a510f545
add wrapfd. improve fuzzer in makefile
Matt Johnston <matt@ucc.asn.au>
parents:
1347
diff
changeset
|
233 AC_SUBST(DROPBEAR_FUZZ) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
234 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
235 # Checks for header files. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
236 AC_HEADER_STDC |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
237 AC_HEADER_SYS_WAIT |
800
1d1f80fcbcb3
Fix bad comma in header list
Matt Johnston <matt@ucc.asn.au>
parents:
728
diff
changeset
|
238 AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h sys/uio.h]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
239 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
240 # Checks for typedefs, structures, and compiler characteristics. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
241 AC_C_CONST |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
242 AC_TYPE_UID_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
243 AC_TYPE_MODE_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
244 AC_TYPE_PID_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
245 AC_TYPE_SIZE_T |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
246 AC_HEADER_TIME |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
247 |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
248 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
|
249 AC_CHECK_TYPES([struct sockaddr_storage]) |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
250 AC_CHECK_TYPE([socklen_t], ,[ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
251 AC_MSG_CHECKING([for socklen_t equivalent]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
252 AC_CACHE_VAL([curl_cv_socklen_t_equiv], |
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 # Systems have either "struct sockaddr *" or |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
255 # "void *" as the second argument to getpeername |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
256 curl_cv_socklen_t_equiv= |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
257 for arg2 in "struct sockaddr" void; do |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
258 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
|
259 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
|
260 #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
|
261 #include <sys/socket.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
262 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
263 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
|
264 ]],[[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
265 $t len; |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
266 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
|
267 ]])],[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
268 curl_cv_socklen_t_equiv="$t" |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
269 break |
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 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
272 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
273 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
274 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
|
275 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
|
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 AC_MSG_RESULT($curl_cv_socklen_t_equiv) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
279 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
|
280 [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
|
281 [#include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
282 #include <sys/socket.h>]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
283 |
67 | 284 # for the fake-rfc2553 stuff - straight from OpenSSH |
285 | |
286 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
|
287 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 288 #include <sys/types.h> |
289 #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
|
290 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
291 [[ if (sizeof(struct sockaddr_storage)) return 0 ]])], |
67 | 292 [ ac_cv_have_struct_sockaddr_storage="yes" ], |
293 [ ac_cv_have_struct_sockaddr_storage="no" ] | |
294 ) | |
295 ]) | |
296 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | |
297 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) | |
298 fi | |
299 | |
300 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
|
301 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 302 #include <sys/types.h> |
303 #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
|
304 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
305 [[ if (sizeof(struct sockaddr_in6)) return 0 ]])], |
67 | 306 [ ac_cv_have_struct_sockaddr_in6="yes" ], |
307 [ ac_cv_have_struct_sockaddr_in6="no" ] | |
308 ) | |
309 ]) | |
310 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
|
311 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6,1,Have struct sockaddr_in6) |
67 | 312 fi |
313 | |
314 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
|
315 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 316 #include <sys/types.h> |
317 #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
|
318 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
319 [[ if (sizeof(struct in6_addr)) return 0 ]])], |
67 | 320 [ ac_cv_have_struct_in6_addr="yes" ], |
321 [ ac_cv_have_struct_in6_addr="no" ] | |
322 ) | |
323 ]) | |
324 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
|
325 AC_DEFINE(HAVE_STRUCT_IN6_ADDR,1,Have struct in6_addr) |
67 | 326 fi |
327 | |
328 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
|
329 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 330 #include <sys/types.h> |
331 #include <sys/socket.h> | |
332 #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
|
333 ]], |
1088
f2a3570b5110
Test struct existance against sizeof() operator
Gaël PORTAY <gael.portay@gmail.com>
parents:
1033
diff
changeset
|
334 [[ if (sizeof(struct addrinfo)) return 0 ]])], |
67 | 335 [ ac_cv_have_struct_addrinfo="yes" ], |
336 [ ac_cv_have_struct_addrinfo="no" ] | |
337 ) | |
338 ]) | |
339 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
|
340 AC_DEFINE(HAVE_STRUCT_ADDRINFO,1,Have struct addrinfo) |
67 | 341 fi |
342 | |
343 | |
344 # IRIX has a const char return value for gai_strerror() | |
345 AC_CHECK_FUNCS(gai_strerror,[ | |
346 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
|
347 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
67 | 348 #include <sys/types.h> |
349 #include <sys/socket.h> | |
350 #include <netdb.h> | |
351 | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
352 const char *gai_strerror(int);]],[[ |
67 | 353 char *str; |
354 | |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
355 str = gai_strerror(0);]])],[ |
67 | 356 AC_DEFINE(HAVE_CONST_GAI_STRERROR_PROTO, 1, |
357 [Define if gai_strerror() returns const char *])])]) | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
358 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
359 # for loginrec.c |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
360 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
361 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
|
362 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
363 #if HAVE_UTMP_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
364 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
365 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
366 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
367 |
335
e17f0333c21e
Another stab at getting ss_family happy on older glibc
Matt Johnston <matt@ucc.asn.au>
parents:
321
diff
changeset
|
368 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
|
369 #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
|
370 #include <sys/socket.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
371 #if HAVE_UTMPX_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
372 #include <utmpx.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
373 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
374 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
375 |
336
2dd116db1956
Can't check for ss_family without #including sys/socket.h
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
376 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
|
377 #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
|
378 #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
|
379 ]) |
335
e17f0333c21e
Another stab at getting ss_family happy on older glibc
Matt Johnston <matt@ucc.asn.au>
parents:
321
diff
changeset
|
380 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
381 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
|
382 AC_CHECK_FUNCS(utmpname) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
383 AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
384 AC_CHECK_FUNCS(setutxent utmpxname) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
385 AC_CHECK_FUNCS(logout updwtmp logwtmp) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
386 |
928
7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
Matt Johnston <matt@ucc.asn.au>
parents:
898
diff
changeset
|
387 # 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
|
388 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
|
389 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
|
390 |
1280
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
391 AC_CHECK_FUNCS(explicit_bzero memset_s) |
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
392 |
94d4038bb34c
Use memset_s or explicit_bzero
Matt Johnston <matt@ucc.asn.au>
parents:
1193
diff
changeset
|
393 |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
394 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
|
395 [ --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
|
396 --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
|
397 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
|
398 [ |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
399 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
|
400 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
|
401 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
|
402 else |
4cf61252dfc3
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
Matt Johnston <matt@ucc.asn.au>
parents:
800
diff
changeset
|
403 BUNDLED_LIBTOM=0 |
1406
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
404 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
|
405 [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
|
406 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
|
407 [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
|
408 fi |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
409 ], |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
410 [ |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
411 BUNDLED_LIBTOM=0 |
1406
96a282e78085
Fix libtomcrypt/libtommath linking order
Andre McCurdy <armccurdy@gmail.com>
parents:
1280
diff
changeset
|
412 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
|
413 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
|
414 ] |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
415 ) |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
416 |
587
1151059c5eff
Work properly again with bundled libtom*. autoconf is a hassle.
Matt Johnston <matt@ucc.asn.au>
parents:
585
diff
changeset
|
417 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
|
418 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
|
419 fi |
1151059c5eff
Work properly again with bundled libtom*. autoconf is a hassle.
Matt Johnston <matt@ucc.asn.au>
parents:
585
diff
changeset
|
420 |
898
4f1988cb79ce
Fix building with system libtomcrypt/libtommath
Matt Johnston <matt@ucc.asn.au>
parents:
866
diff
changeset
|
421 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
|
422 AC_SUBST(BUNDLED_LIBTOM) |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
423 |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
424 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
|
425 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
426 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
|
427 AC_ARG_ENABLE(lastlog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
428 [ --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
|
429 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
430 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
|
431 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
|
432 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
433 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
434 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
435 AC_ARG_ENABLE(utmp, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
436 [ --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
|
437 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
438 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
|
439 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
|
440 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
441 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
442 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
443 AC_ARG_ENABLE(utmpx, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
444 [ --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
|
445 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
446 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
|
447 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
|
448 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
449 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
450 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
451 AC_ARG_ENABLE(wtmp, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
452 [ --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
|
453 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
454 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
|
455 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
|
456 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
457 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
458 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
459 AC_ARG_ENABLE(wtmpx, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
460 [ --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
|
461 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
462 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
|
463 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
|
464 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
465 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
466 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
467 AC_ARG_ENABLE(loginfunc, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
468 [ --disable-loginfunc Disable use of login() etc. [no]], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
469 [ 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
|
470 AC_MSG_NOTICE([Not using login() etc]) ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
471 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
472 AC_ARG_ENABLE(pututline, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
473 [ --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
|
474 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
475 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
|
476 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
|
477 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
478 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
479 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
480 AC_ARG_ENABLE(pututxline, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
481 [ --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
|
482 [ |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
483 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
|
484 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
|
485 fi |
18c0b0e450ff
Fix configure options using AC_ARG_ENABLE
Stefan Hauser <stefan@shauser.net>
parents:
1280
diff
changeset
|
486 ] |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
487 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
488 AC_ARG_WITH(lastlog, |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
489 [ --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
|
490 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
491 if test "x$withval" = "xno" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
492 AC_DEFINE(DISABLE_LASTLOG) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
493 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
494 conf_lastlog_location=$withval |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
495 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
496 ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
497 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
498 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
499 if test -z "$no_loginfunc_check"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
500 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
|
501 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
|
502 AC_CHECK_FUNCS(logout updwtmp logwtmp) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
503 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
504 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
505 dnl lastlog, [uw]tmpx? detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
506 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
|
507 dnl need for command-line parameters |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
508 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
|
509 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
510 dnl lastlog detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
511 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
|
512 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
|
513 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
514 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
515 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
516 #ifdef HAVE_LASTLOG_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
517 # include <lastlog.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
518 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
519 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
520 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
521 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
522 #ifdef HAVE_LOGIN_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
523 # include <login.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
524 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
525 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
526 [[ char *lastlog = LASTLOG_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
527 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
528 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
529 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
530 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
|
531 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
532 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
533 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
534 #ifdef HAVE_LASTLOG_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
535 # include <lastlog.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
536 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
537 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
538 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
539 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
540 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
541 [[ char *lastlog = _PATH_LASTLOG; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
542 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
543 [ |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
544 AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
545 system_lastlog_path=no |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
546 ]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
547 ] |
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 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
550 if test -z "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
551 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
|
552 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
|
553 if (test -d "$f" || test -f "$f") ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
554 conf_lastlog_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
555 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
556 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
557 if test -z "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
558 AC_MSG_WARN([** Cannot find lastlog **]) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
559 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
|
560 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
561 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
562 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
563 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
564 if test -n "$conf_lastlog_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
565 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
|
566 fi |
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 dnl utmp detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
569 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
|
570 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
571 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
572 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
573 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
574 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
575 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
576 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
577 [[ char *utmp = UTMP_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
578 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
579 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
580 system_utmp_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
581 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
582 if test -z "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
583 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
|
584 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
|
585 if test -f $f ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
586 conf_utmp_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
587 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
588 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
589 if test -z "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
590 AC_DEFINE(DISABLE_UTMP) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
591 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
592 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
593 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
594 if test -n "$conf_utmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
595 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
|
596 fi |
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 dnl wtmp detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
599 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
|
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> |
865 | 602 #ifdef HAVE_UTMP_H |
603 # include <utmp.h> | |
604 #endif | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
605 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
606 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
607 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
608 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
609 [[ char *wtmp = WTMP_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
610 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
611 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
612 system_wtmp_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
613 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
614 if test -z "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
615 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
|
616 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
|
617 if test -f $f ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
618 conf_wtmp_location=$f |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
619 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
620 done |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
621 if test -z "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
622 AC_DEFINE(DISABLE_WTMP) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
623 fi |
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 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
626 if test -n "$conf_wtmp_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
627 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
|
628 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
629 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
630 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
631 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
|
632 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
|
633 dnl there, though. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
634 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
|
635 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
636 #include <sys/types.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
637 #include <utmp.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
638 #ifdef HAVE_UTMPX_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
639 #include <utmpx.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
640 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
641 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
642 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
643 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
644 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
645 [[ char *utmpx = UTMPX_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
646 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
647 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
648 system_utmpx_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
649 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
650 if test -z "$conf_utmpx_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
651 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
|
652 AC_DEFINE(DISABLE_UTMPX) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
653 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
654 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
655 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
|
656 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
657 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
658 dnl wtmpx detection |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
659 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
|
660 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
661 #include <sys/types.h> |
865 | 662 #ifdef HAVE_UTMP_H |
663 # include <utmp.h> | |
664 #endif | |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
665 #ifdef HAVE_UTMPX_H |
865 | 666 # include <utmpx.h> |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
667 #endif |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
668 #ifdef HAVE_PATHS_H |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
669 # include <paths.h> |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
670 #endif |
856
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
671 ]], |
f56c41030c15
Replace some deprecated macros with other ones, from Daniel Richard G.
Matt Johnston <matt@ucc.asn.au>
parents:
835
diff
changeset
|
672 [[ char *wtmpx = WTMPX_FILE; ]])], |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
673 [ AC_MSG_RESULT(yes) ], |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
674 [ AC_MSG_RESULT(no) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
675 system_wtmpx_path=no ] |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
676 ) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
677 if test -z "$conf_wtmpx_location"; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
678 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
|
679 AC_DEFINE(DISABLE_WTMPX) |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
680 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
681 else |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
682 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
|
683 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
684 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
685 # Checks for library functions. |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
686 AC_PROG_GCC_TRADITIONAL |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
687 AC_FUNC_MEMCMP |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
688 AC_FUNC_SELECT_ARGTYPES |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
689 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
|
690 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
691 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
|
692 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
693 # Solaris needs ptmx |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
694 if test -z "$no_ptmx_check" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
695 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
|
696 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
|
697 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
|
698 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
699 else |
431
126687f635dc
Quote some message in configure
Matt Johnston <matt@ucc.asn.au>
parents:
417
diff
changeset
|
700 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
|
701 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
702 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
703 |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
704 if test -z "$no_ptc_check" ; then |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
705 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
|
706 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
|
707 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
|
708 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
709 else |
431
126687f635dc
Quote some message in configure
Matt Johnston <matt@ucc.asn.au>
parents:
417
diff
changeset
|
710 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
|
711 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
712 fi |
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
713 |
67 | 714 AC_EXEEXT |
366
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
715 |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
716 # 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
|
717 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
|
718 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
|
719 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
|
720 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
|
721 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
|
722 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
|
723 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
|
724 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
|
725 AS_MKDIR_P(libtomcrypt/src/hashes) |
59531221b846
Fix up separate-directory building for libtomcrypt
Matt Johnston <matt@ucc.asn.au>
parents:
336
diff
changeset
|
726 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
|
727 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
|
728 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
|
729 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
|
730 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
|
731 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
|
732 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
|
733 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
|
734 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
|
735 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
|
736 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
|
737 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
|
738 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
|
739 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
|
740 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
|
741 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
|
742 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
|
743 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
|
744 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
|
745 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
|
746 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
|
747 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
|
748 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
|
749 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
|
750 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
|
751 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
|
752 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
|
753 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
|
754 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
|
755 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
|
756 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
|
757 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
|
758 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
|
759 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
|
760 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
|
761 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
|
762 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
|
763 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
|
764 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
|
765 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
|
766 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
|
767 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
|
768 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" |
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
769 fi |
4
fe6bca95afa7
Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
770 AC_CONFIG_HEADER(config.h) |
998
3a32727986ee
Allow configure with libtomcrypt/libtommath directories missing
Elan Ruusamäe <glen@delfi.ee>
parents:
928
diff
changeset
|
771 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
|
772 AC_OUTPUT |
585
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
773 |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
774 AC_MSG_NOTICE() |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
775 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
|
776 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
|
777 else |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
778 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
|
779 fi |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
780 |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
781 |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
782 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
|
783 AC_MSG_NOTICE() |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
784 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
|
785 fi |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
786 |
1186
a4ce76e6fb63
Another attempt at test for crypt()
Matt Johnston <matt@ucc.asn.au>
parents:
1185
diff
changeset
|
787 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
|
788 AC_MSG_NOTICE() |
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
789 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
|
790 fi |
d194db6f9453
Use system libtomcrypt/libtommath if available. Doesn't currently
Matt Johnston <matt@ucc.asn.au>
parents:
573
diff
changeset
|
791 |
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
|
792 AC_MSG_NOTICE() |
1159
f567a4152c14
Test for crypt() rather than crypt.h
Matt Johnston <matt@ucc.asn.au>
parents:
1158
diff
changeset
|
793 AC_MSG_NOTICE([Now edit options.h to choose features.]) |