blob: d9a87d8e652b030c0078ef19b97c919fea3a0ee5 [file] [log] [blame]
Damien Millerab18c411999-11-11 10:40:23 +11001AC_INIT(ssh.c)
Damien Miller7f6ea021999-10-28 13:25:17 +10002
3AC_CONFIG_HEADER(config.h)
Damien Miller856799b2000-03-15 21:18:10 +11004AC_PROG_CC
Damien Miller76112de1999-12-21 11:18:08 +11005AC_CANONICAL_HOST
Damien Miller7f6ea021999-10-28 13:25:17 +10006
Damien Millera22ba012000-03-02 23:09:20 +11007# Checks for programs.
Damien Millerab18c411999-11-11 10:40:23 +11008AC_PROG_CPP
Damien Miller7f6ea021999-10-28 13:25:17 +10009AC_PROG_RANLIB
Damien Millerd8087f61999-11-25 12:31:26 +110010AC_PROG_INSTALL
Damien Millerc7b38ce1999-11-09 10:28:04 +110011AC_CHECK_PROG(AR, ar, ar)
Damien Millere79334a1999-12-29 10:03:37 +110012AC_PATH_PROG(PERL, perl)
13AC_SUBST(PERL)
Damien Miller8d1fd572000-05-17 21:34:07 +100014AC_PATH_PROG(ENT, ent)
15AC_SUBST(ENT)
Damien Miller2e1b0821999-12-25 10:11:29 +110016
Damien Miller166bd442000-03-16 10:48:25 +110017if test -z "$LD" ; then
18 LD=$CC
19fi
20AC_SUBST(LD)
21
22# C Compiler features
23AC_C_INLINE
24if test "$GCC" = "yes"; then
25 CFLAGS="$CFLAGS -Wall"
26fi
27
Damien Millera22ba012000-03-02 23:09:20 +110028# Check for some target-specific stuff
Damien Miller76112de1999-12-21 11:18:08 +110029case "$host" in
Damien Miller75b1d102000-01-07 14:01:41 +110030*-*-aix*)
31 AFS_LIBS="-lld"
Damien Millerdb819592000-03-14 13:44:01 +110032 CFLAGS="$CFLAGS -I/usr/local/include"
33 LDFLAGS="$LDFLAGS -L/usr/local/lib"
Damien Milleredb82922000-06-20 13:25:52 +100034 if (test "$LD" != "gcc" && test -z "$blibpath"); then
Damien Miller29ea30d2000-03-17 10:54:15 +110035 blibpath="/usr/lib:/lib:/usr/local/lib"
36 fi
Damien Millerd2c208a2000-05-17 22:00:02 +100037 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
Damien Millereca71f82000-01-20 22:38:27 +110038 AC_DEFINE(BROKEN_GETADDRINFO)
andree441aa32000-06-12 22:34:38 +000039 MANTYPE='$(CATMAN)'
40 mansubdir=cat
andre60f3c982000-06-03 16:18:19 +000041 dnl AIX handles lastlog as part of its login message
42 AC_DEFINE(DISABLE_LASTLOG)
Damien Miller75b1d102000-01-07 14:01:41 +110043 ;;
Damien Miller76112de1999-12-21 11:18:08 +110044*-*-hpux10*)
45 if test -z "$GCC"; then
Damien Millerfda78d92000-05-20 15:33:44 +100046 CFLAGS="$CFLAGS -Ae"
Damien Miller76112de1999-12-21 11:18:08 +110047 fi
48 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
49 AC_DEFINE(IPADDR_IN_DISPLAY)
50 AC_MSG_CHECKING(for HPUX trusted system password database)
51 if test -f /tcb/files/auth/system/default; then
52 AC_MSG_RESULT(yes)
53 AC_DEFINE(HAVE_HPUX_TRUSTED_SYSTEM_PW)
54 LIBS="$LIBS -lsec"
Damien Miller105b7f02000-01-07 08:45:55 +110055 AC_MSG_WARN([This configuration is untested])
Damien Miller76112de1999-12-21 11:18:08 +110056 else
57 AC_MSG_RESULT(no)
58 AC_DEFINE(DISABLE_SHADOW)
59 fi
Damien Miller670a4b82000-01-22 13:53:11 +110060 MANTYPE='$(CATMAN)'
61 mansubdir=cat
Damien Miller76112de1999-12-21 11:18:08 +110062 ;;
Damien Miller1bead332000-04-30 00:47:29 +100063*-*-hpux11*)
64 if test -z "$GCC"; then
65 CFLAGS="$CFLAGS -Ae"
66 fi
67 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
Damien Miller1bead332000-04-30 00:47:29 +100068 AC_DEFINE(IPADDR_IN_DISPLAY)
Damien Miller1bead332000-04-30 00:47:29 +100069 AC_MSG_CHECKING(for HPUX trusted system password database)
70 if test -f /tcb/files/auth/system/default; then
71 AC_MSG_RESULT(yes)
72 AC_DEFINE(HAVE_HPUX_TRUSTED_SYSTEM_PW)
73 LIBS="$LIBS -lsec"
74 AC_MSG_WARN([This configuration is untested])
75 else
76 AC_MSG_RESULT(no)
77 AC_DEFINE(DISABLE_SHADOW)
78 fi
79 MANTYPE='$(CATMAN)'
80 mansubdir=cat
81 ;;
Damien Millerbeb4ba51999-12-28 15:09:35 +110082*-*-irix5*)
Damien Millerdb819592000-03-14 13:44:01 +110083 CFLAGS="$CFLAGS -I/usr/local/include"
Damien Miller9e110892000-06-07 21:05:46 +100084 LDFLAGS="$LDFLAGS"
Damien Miller07278932000-01-22 14:05:37 +110085 MANTYPE='$(CATMAN)'
Damien Miller1808f382000-01-06 12:03:12 +110086 no_libsocket=1
87 no_libnsl=1
88 ;;
89*-*-irix6*)
Damien Millerdb819592000-03-14 13:44:01 +110090 CFLAGS="$CFLAGS -I/usr/local/include"
Damien Miller9e110892000-06-07 21:05:46 +100091 LDFLAGS="$LDFLAGS"
Damien Miller07278932000-01-22 14:05:37 +110092 MANTYPE='$(CATMAN)'
93 AC_MSG_WARN([*** Irix 6.x is not tested, please report you experiences *** ])
Damien Millerbeb4ba51999-12-28 15:09:35 +110094 no_libsocket=1
95 no_libnsl=1
96 ;;
Damien Millerb29ea912000-01-15 14:12:03 +110097*-*-linux*)
98 no_dev_ptmx=1
Damien Miller7bcb0892000-03-11 20:45:40 +110099 AC_DEFINE(DONT_TRY_OTHER_AF)
100 inet6_default_4in6=yes
Damien Millerb29ea912000-01-15 14:12:03 +1100101 ;;
Damien Milleree1c0b32000-01-21 00:18:15 +1100102*-*-netbsd*)
Damien Millera22ba012000-03-02 23:09:20 +1100103 need_dash_r=1
Damien Milleree1c0b32000-01-21 00:18:15 +1100104 ;;
Damien Miller0f91b4e2000-06-18 15:43:25 +1000105*-next-*)
106 # hardwire lastlog location (can't detect it on some versions)
107 conf_lastlog_location="/usr/adm/lastlog"
108 AC_DEFINE(HAVE_NEXT)
109 CFLAGS="$CFLAGS -I/usr/local/include"
110 MAIL=/usr/spool/mail
111 conf_utmp_location=/etc/utmp
112 AC_MSG_WARN([*** Tested: PA-RISC/m68k Untested: Sparc/Intel])
113 AC_MSG_WARN([*** Expect 'scp' to fail!])
114 AC_MSG_WARN([*** Please report any problems, thanks])
115 ;;
Damien Miller75b1d102000-01-07 14:01:41 +1100116*-*-solaris*)
Damien Millerdb819592000-03-14 13:44:01 +1100117 CFLAGS="$CFLAGS -I/usr/local/include"
Damien Miller08c788a2000-03-16 07:52:29 +1100118 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
Damien Millera22ba012000-03-02 23:09:20 +1100119 need_dash_r=1
andre2ff7b5d2000-06-03 14:57:40 +0000120 # hardwire lastlog location (can't detect it on some versions)
121 conf_lastlog_location="/var/adm/lastlog"
Damien Millera1cb6442000-06-09 11:58:35 +1000122 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
123 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
124 if test "$sol2ver" -ge 8; then
125 AC_MSG_RESULT(yes)
126 AC_DEFINE(DISABLE_UTMP)
127 AC_DEFINE(DISABLE_WTMP)
128 else
129 AC_MSG_RESULT(no)
130 fi
Damien Miller75b1d102000-01-07 14:01:41 +1100131 ;;
Damien Millerdfc83f42000-05-20 15:02:59 +1000132*-*-sunos4*)
133 CFLAGS="$CFLAGS -DSUNOS4"
134 AC_CHECK_FUNCS(getpwanam)
135 ;;
Damien Miller75b1d102000-01-07 14:01:41 +1100136*-*-sysv*)
Damien Millerdb819592000-03-14 13:44:01 +1100137 CFLAGS="$CFLAGS -I/usr/local/include"
138 LDFLAGS="$LDFLAGS -L/usr/local/lib"
Damien Miller0e1cf7c2000-01-26 12:15:30 +1100139 MANTYPE='$(CATMAN)'
140 mansubdir=cat
Damien Miller75b1d102000-01-07 14:01:41 +1100141 LIBS="$LIBS -lgen -lsocket"
142 ;;
Damien Millera66626b2000-06-13 18:57:53 +1000143*-*-sco3*)
144 CFLAGS="$CFLAGS -I/usr/local/include"
145 LDFLAGS="$LDFLAGS -L/usr/local/lib"
146 MANTYPE='$(CATMAN)'
147 mansubdir=cat
148 LIBS="$LIBS -lgen -lsocket"
149 no_dev_ptmx=1
150 ;;
Damien Miller76112de1999-12-21 11:18:08 +1100151esac
152
Damien Millere37bfc12000-06-05 09:37:43 +1000153# Allow user to specify flags
154AC_ARG_WITH(cflags,
155 [ --with-cflags Specify additional flags to pass to compiler],
156 [
157 if test "x$withval" != "xno" ; then
158 CFLAGS="$CFLAGS $withval"
159 fi
160 ]
161)
162AC_ARG_WITH(ldflags,
163 [ --with-ldlags Specify additional flags to pass to linker],
164 [
165 if test "x$withval" != "xno" ; then
166 LDFLAGS="$LDFLAGS $withval"
167 fi
168 ]
169)
170AC_ARG_WITH(libs,
171 [ --with-libs Specify additional libraries to link with],
172 [
173 if test "x$withval" != "xno" ; then
174 LIBS="$LIBS $withval"
175 fi
176 ]
177)
178
179
Damien Millera22ba012000-03-02 23:09:20 +1100180# Checks for libraries.
Damien Millerab18c411999-11-11 10:40:23 +1100181AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
182AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
Damien Millerab18c411999-11-11 10:40:23 +1100183
Damien Millerbeb4ba51999-12-28 15:09:35 +1100184if test -z "$no_libsocket" ; then
185 AC_CHECK_LIB(nsl, yp_match, , )
186fi
187if test -z "$no_libnsl" ; then
188 AC_CHECK_LIB(socket, main, , )
Damien Miller32b3cf21999-12-26 10:21:48 +1100189fi
Damien Millerab18c411999-11-11 10:40:23 +1100190
Damien Millera22ba012000-03-02 23:09:20 +1100191# Checks for header files.
Damien Miller0f91b4e2000-06-18 15:43:25 +1000192AC_CHECK_HEADERS(bstring.h endian.h lastlog.h limits.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h util.h utmp.h utmpx.h)
Damien Millerab18c411999-11-11 10:40:23 +1100193
Damien Millera22ba012000-03-02 23:09:20 +1100194# Checks for library functions.
andre2ff7b5d2000-06-03 14:57:40 +0000195AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy vsnprintf vhangup _getpty __b64_ntop)
196dnl checks for time functions
197AC_CHECK_FUNCS(gettimeofday time)
198dnl checks for libutil functions
199AC_CHECK_FUNCS(login logout updwtmp logwtmp)
200dnl checks for utmp functions
201AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
202AC_CHECK_FUNCS(utmpname)
203dnl checks for utmpx functions
204AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
205AC_CHECK_FUNCS(setutxent utmpxname)
Damien Millercedfecc1999-11-15 14:36:53 +1100206
Damien Miller04f80141999-11-19 15:32:34 +1100207AC_CHECK_FUNC(login,
208 [AC_DEFINE(HAVE_LOGIN)],
209 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
210)
211
212AC_CHECK_FUNC(daemon,
213 [AC_DEFINE(HAVE_DAEMON)],
214 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
215)
216
Damien Miller9fb07e42000-03-05 16:22:59 +1100217AC_CHECK_FUNC(getpagesize,
218 [AC_DEFINE(HAVE_GETPAGESIZE)],
219 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
220)
221
Damien Miller7b22d652000-06-18 14:07:04 +1000222PAM_MSG="no"
Damien Millera22ba012000-03-02 23:09:20 +1100223AC_ARG_WITH(pam,
224 [ --without-pam Disable PAM support ],
225 [
226 if test "x$withval" = "xno" ; then
227 no_pam=1
228 AC_DEFINE(DISABLE_PAM)
Damien Miller7b22d652000-06-18 14:07:04 +1000229 PAM_MSG="disabled"
Damien Millera22ba012000-03-02 23:09:20 +1100230 fi
231 ]
232)
Damien Milleredb82922000-06-20 13:25:52 +1000233if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
Damien Millera22ba012000-03-02 23:09:20 +1100234 AC_CHECK_LIB(dl, dlopen, , )
235 LIBS="$LIBS -lpam"
236
Damien Miller0e65eed2000-05-17 22:16:05 +1000237 AC_CHECK_FUNCS(pam_getenvlist)
Damien Miller1bead332000-04-30 00:47:29 +1000238
Damien Miller7b22d652000-06-18 14:07:04 +1000239 PAM_MSG="yes"
240
Damien Millera22ba012000-03-02 23:09:20 +1100241 # Check PAM strerror arguments (old PAM)
242 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
243 AC_TRY_COMPILE(
244 [
Damien Miller81171112000-04-23 11:14:01 +1000245#include <stdlib.h>
246#include <security/pam_appl.h>
Damien Millera22ba012000-03-02 23:09:20 +1100247 ],
248 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
249 [AC_MSG_RESULT(no)],
250 [
251 AC_DEFINE(HAVE_OLD_PAM)
252 AC_MSG_RESULT(yes)
Damien Miller7b22d652000-06-18 14:07:04 +1000253 PAM_MSG="yes (old library)"
Damien Millera22ba012000-03-02 23:09:20 +1100254 ]
255 )
256fi
257
258# The big search for OpenSSL
259AC_ARG_WITH(ssl-dir,
260 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
261 [
262 if test "x$withval" != "$xno" ; then
263 tryssldir=$withval
264 fi
265 ]
266)
267
268saved_LIBS="$LIBS"
Damien Millera1ad4802000-03-15 10:04:54 +1100269saved_LDFLAGS="$LDFLAGS"
Damien Millera22ba012000-03-02 23:09:20 +1100270saved_CFLAGS="$CFLAGS"
271if test "x$prefix" != "xNONE" ; then
272 tryssldir="$tryssldir $prefix"
273fi
Damien Miller61e50f12000-05-08 20:49:37 +1000274AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
Damien Millera22ba012000-03-02 23:09:20 +1100275
Damien Miller61e50f12000-05-08 20:49:37 +1000276 for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
277 if test ! -z "$ssldir" ; then
278 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
279 CFLAGS="$saved_CFLAGS -I$ssldir/include"
280 if test ! -z "$need_dash_r" ; then
281 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
282 fi
Damien Millera1ad4802000-03-15 10:04:54 +1100283 else
Damien Miller61e50f12000-05-08 20:49:37 +1000284 LDFLAGS="$saved_LDFLAGS"
Damien Millerb85dcad2000-03-11 11:37:00 +1100285 fi
286
Damien Miller3b512e12000-05-17 23:29:18 +1000287 LIBS="$saved_LIBS -lcrypto"
Damien Miller61e50f12000-05-08 20:49:37 +1000288
Damien Miller3b512e12000-05-17 23:29:18 +1000289 # Basic test to check for compatible version and correct linking
290 # *does not* test for RSA - that comes later.
291 AC_TRY_RUN(
292 [
Damien Millere59ce622000-05-01 20:54:17 +1000293#include <string.h>
294#include <openssl/rand.h>
Damien Miller81171112000-04-23 11:14:01 +1000295int main(void)
296{
Damien Miller3b512e12000-05-17 23:29:18 +1000297 char a[2048];
298 memset(a, 0, sizeof(a));
Damien Miller81171112000-04-23 11:14:01 +1000299 RAND_add(a, sizeof(a), sizeof(a));
Damien Miller3b512e12000-05-17 23:29:18 +1000300 return(RAND_status() <= 0);
Damien Miller81171112000-04-23 11:14:01 +1000301}
Damien Miller3b512e12000-05-17 23:29:18 +1000302 ],
303 [
304 found_crypto=1
305 break;
306 ], []
307 )
Damien Miller61e50f12000-05-08 20:49:37 +1000308
309 if test ! -z "$found_crypto" ; then
310 break;
311 fi
Damien Millerb85dcad2000-03-11 11:37:00 +1100312 done
313
Damien Miller61e50f12000-05-08 20:49:37 +1000314 if test -z "$found_crypto" ; then
315 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
Damien Millerb85dcad2000-03-11 11:37:00 +1100316 fi
Damien Miller61e50f12000-05-08 20:49:37 +1000317 if test -z "$ssldir" ; then
318 ssldir="(system)"
319 fi
Damien Millera22ba012000-03-02 23:09:20 +1100320
Damien Miller61e50f12000-05-08 20:49:37 +1000321 ac_cv_openssldir=$ssldir
322])
323
Damien Milleredb82922000-06-20 13:25:52 +1000324if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
Damien Miller61e50f12000-05-08 20:49:37 +1000325 AC_DEFINE(HAVE_OPENSSL)
326 dnl Need to recover ssldir - test above runs in subshell
327 ssldir=$ac_cv_openssldir
Damien Millera1ad4802000-03-15 10:04:54 +1100328 CFLAGS="$saved_CFLAGS -I$ssldir/include"
329 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
330 if test ! -z "$need_dash_r" ; then
331 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
Damien Millera22ba012000-03-02 23:09:20 +1100332 fi
Damien Miller29ea30d2000-03-17 10:54:15 +1100333 if test ! -z "$blibpath" ; then
334 blibpath="$blibpath:$ssldir:$ssldir/lib"
335 fi
Damien Millera22ba012000-03-02 23:09:20 +1100336fi
Damien Miller3b512e12000-05-17 23:29:18 +1000337LIBS="$saved_LIBS -lcrypto"
Damien Miller61e50f12000-05-08 20:49:37 +1000338
Damien Miller3b512e12000-05-17 23:29:18 +1000339# Now test RSA support
340saved_LIBS="$LIBS"
341AC_MSG_CHECKING([for RSA support])
342for WANTS_RSAREF in "" 1 ; do
343 if test -z "$WANTS_RSAREF" ; then
344 LIBS="$saved_LIBS"
345 else
346 LIBS="$saved_LIBS -lRSAglue -lrsaref"
347 fi
348 AC_TRY_RUN([
349#include <string.h>
350#include <openssl/rand.h>
351#include <openssl/rsa.h>
352#include <openssl/bn.h>
353#include <openssl/sha.h>
354int main(void)
355{
356 int num; RSA *key; static unsigned char p_in[] = "blahblah";
357 unsigned char c[256], p[256];
358 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
359 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
360 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
361 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
362}
363 ],
364 [
365 rsa_works=1
366 break;
367 ], [])
368done
369
370if test ! -z "$no_rsa" ; then
371 AC_MSG_RESULT(disabled)
Damien Miller7b22d652000-06-18 14:07:04 +1000372 RSA_MSG="disabled"
Damien Miller3b512e12000-05-17 23:29:18 +1000373else
374 if test -z "$rsa_works" ; then
375 AC_MSG_WARN([*** No RSA support found *** ])
Damien Miller7b22d652000-06-18 14:07:04 +1000376 RSA_MSG="no"
Damien Miller3b512e12000-05-17 23:29:18 +1000377 else
378 if test -z "$WANTS_RSAREF" ; then
379 AC_MSG_RESULT(yes)
Damien Miller7b22d652000-06-18 14:07:04 +1000380 RSA_MSG="yes"
Damien Miller3b512e12000-05-17 23:29:18 +1000381 else
Damien Miller7b22d652000-06-18 14:07:04 +1000382 RSA_MSG="yes (using RSAref)"
Damien Miller3b512e12000-05-17 23:29:18 +1000383 AC_MSG_RESULT(using RSAref)
384 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
385 fi
386 fi
387fi
Damien Millera22ba012000-03-02 23:09:20 +1100388
389# Checks for data types
Damien Millere0f45742000-01-18 09:12:06 +1100390AC_CHECK_SIZEOF(char, 1)
Damien Millerc6398ef1999-11-20 12:18:40 +1100391AC_CHECK_SIZEOF(short int, 2)
392AC_CHECK_SIZEOF(int, 4)
393AC_CHECK_SIZEOF(long int, 4)
394AC_CHECK_SIZEOF(long long int, 8)
395
Damien Millera22ba012000-03-02 23:09:20 +1100396# More checks for data types
Damien Miller61e50f12000-05-08 20:49:37 +1000397AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
398 AC_TRY_COMPILE(
399 [ #include <sys/types.h> ],
400 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
401 [ ac_cv_have_intxx_t="yes" ],
402 [ ac_cv_have_intxx_t="no" ]
403 )
404])
405if test "x$ac_cv_have_intxx_t" = "xyes" ; then
406 AC_DEFINE(HAVE_INTXX_T)
407 have_intxx_t=1
408fi
409
410AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
411 AC_TRY_COMPILE(
412 [ #include <sys/types.h> ],
413 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
414 [ ac_cv_have_u_intxx_t="yes" ],
415 [ ac_cv_have_u_intxx_t="no" ]
416 )
417])
418if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
419 AC_DEFINE(HAVE_U_INTXX_T)
420 have_u_intxx_t=1
421fi
Damien Millerc6398ef1999-11-20 12:18:40 +1100422
Damien Millerc6398ef1999-11-20 12:18:40 +1100423
Damien Milleredb82922000-06-20 13:25:52 +1000424if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
425 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
Damien Millerb29ea912000-01-15 14:12:03 +1100426then
427 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
428 AC_TRY_COMPILE(
Damien Miller61e50f12000-05-08 20:49:37 +1000429 [
430#include <sys/bitypes.h>
431 ],
Damien Millerb29ea912000-01-15 14:12:03 +1100432 [
Damien Miller70494d12000-04-03 15:57:06 +1000433 int8_t a; int16_t b; int32_t c;
434 u_int8_t e; u_int16_t f; u_int32_t g;
435 a = b = c = e = f = g = 1;
Damien Millerb29ea912000-01-15 14:12:03 +1100436 ],
437 [
438 AC_DEFINE(HAVE_U_INTXX_T)
439 AC_DEFINE(HAVE_INTXX_T)
440 AC_MSG_RESULT(yes)
441 ],
442 [AC_MSG_RESULT(no)]
443 )
444fi
445
Damien Millerd6121d22000-03-17 23:26:46 +1100446if test -z "$have_u_intxx_t" ; then
Damien Miller61e50f12000-05-08 20:49:37 +1000447 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
448 AC_TRY_COMPILE(
449 [
450#include <sys/types.h>
451 ],
452 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
453 [ ac_cv_have_uintxx_t="yes" ],
454 [ ac_cv_have_uintxx_t="no" ]
455 )
456 ])
457 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
458 AC_DEFINE(HAVE_UINTXX_T)
459 fi
Damien Millerd6121d22000-03-17 23:26:46 +1100460fi
Damien Millerc6398ef1999-11-20 12:18:40 +1100461
Damien Miller61e50f12000-05-08 20:49:37 +1000462AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
463 AC_TRY_COMPILE(
464 [
Damien Miller81171112000-04-23 11:14:01 +1000465#include <sys/types.h>
466#include <sys/socket.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000467 ],
468 [socklen_t foo; foo = 1235;],
469 [ ac_cv_have_socklen_t="yes" ],
470 [ ac_cv_have_socklen_t="no" ]
471 )
472])
473if test "x$ac_cv_have_socklen_t" = "xyes" ; then
474 AC_DEFINE(HAVE_SOCKLEN_T)
475fi
Damien Miller74d0d4a1999-12-29 02:24:35 +1100476
Damien Miller61e50f12000-05-08 20:49:37 +1000477AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
478 AC_TRY_COMPILE(
479 [
480#include <sys/types.h>
481 ],
482 [ size_t foo; foo = 1235; ],
483 [ ac_cv_have_size_t="yes" ],
484 [ ac_cv_have_size_t="no" ]
485 )
486])
487if test "x$ac_cv_have_size_t" = "xyes" ; then
488 AC_DEFINE(HAVE_SIZE_T)
489fi
Damien Miller95058511999-12-29 10:36:45 +1100490
Damien Miller615f9392000-05-17 22:53:33 +1000491AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
492 AC_TRY_COMPILE(
493 [
494#include <sys/types.h>
495 ],
496 [ ssize_t foo; foo = 1235; ],
497 [ ac_cv_have_ssize_t="yes" ],
498 [ ac_cv_have_ssize_t="no" ]
499 )
500])
501if test "x$ac_cv_have_ssize_t" = "xyes" ; then
502 AC_DEFINE(HAVE_SSIZE_T)
503fi
504
Damien Millerb54b40e2000-06-23 08:23:34 +1000505AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
506 AC_TRY_COMPILE(
507 [
508#include <sys/types.h>
509#include <sys/socket.h>
510 ],
511 [ sa_family_t foo; foo = 1235; ],
512 [ ac_cv_have_sa_family_t="yes" ],
513 [ ac_cv_have_sa_family_t="no" ]
514 )
515])
516if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
517 AC_DEFINE(HAVE_SA_FAMILY_T)
518fi
519
Damien Miller0f91b4e2000-06-18 15:43:25 +1000520AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
521 AC_TRY_COMPILE(
522 [
523#include <sys/types.h>
524 ],
525 [ pid_t foo; foo = 1235; ],
526 [ ac_cv_have_pid_t="yes" ],
527 [ ac_cv_have_pid_t="no" ]
528 )
529])
530if test "x$ac_cv_have_pid_t" = "xyes" ; then
531 AC_DEFINE(HAVE_PID_T)
532fi
533
534AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
535 AC_TRY_COMPILE(
536 [
537#include <sys/types.h>
538 ],
539 [ mode_t foo; foo = 1235; ],
540 [ ac_cv_have_mode_t="yes" ],
541 [ ac_cv_have_mode_t="no" ]
542 )
543])
544if test "x$ac_cv_have_mode_t" = "xyes" ; then
545 AC_DEFINE(HAVE_MODE_T)
546fi
547
Damien Miller61e50f12000-05-08 20:49:37 +1000548
549AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
550 AC_TRY_COMPILE(
551 [
Damien Miller81171112000-04-23 11:14:01 +1000552#include <sys/types.h>
553#include <sys/socket.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000554 ],
555 [ struct sockaddr_storage s; ],
556 [ ac_cv_have_struct_sockaddr_storage="yes" ],
557 [ ac_cv_have_struct_sockaddr_storage="no" ]
558 )
559])
560if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
561 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
562fi
Damien Miller34132e52000-01-14 15:45:46 +1100563
Damien Miller61e50f12000-05-08 20:49:37 +1000564AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
565 AC_TRY_COMPILE(
566 [
Damien Miller7b22d652000-06-18 14:07:04 +1000567#include <sys/types.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000568#include <netinet/in.h>
569 ],
570 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
571 [ ac_cv_have_struct_sockaddr_in6="yes" ],
572 [ ac_cv_have_struct_sockaddr_in6="no" ]
573 )
574])
575if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
576 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
577fi
Damien Miller34132e52000-01-14 15:45:46 +1100578
Damien Miller61e50f12000-05-08 20:49:37 +1000579AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
580 AC_TRY_COMPILE(
581 [
Damien Miller7b22d652000-06-18 14:07:04 +1000582#include <sys/types.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000583#include <netinet/in.h>
584 ],
585 [ struct in6_addr s; s.s6_addr[0] = 0; ],
586 [ ac_cv_have_struct_in6_addr="yes" ],
587 [ ac_cv_have_struct_in6_addr="no" ]
588 )
589])
590if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
591 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
592fi
Damien Miller34132e52000-01-14 15:45:46 +1100593
Damien Miller61e50f12000-05-08 20:49:37 +1000594AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
595 AC_TRY_COMPILE(
596 [
Damien Miller81171112000-04-23 11:14:01 +1000597#include <sys/types.h>
598#include <sys/socket.h>
599#include <netdb.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000600 ],
601 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
602 [ ac_cv_have_struct_addrinfo="yes" ],
603 [ ac_cv_have_struct_addrinfo="no" ]
604 )
605])
606if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
607 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
608fi
609
Damien Miller34132e52000-01-14 15:45:46 +1100610
Damien Millera22ba012000-03-02 23:09:20 +1100611# Checks for structure members
Damien Miller34132e52000-01-14 15:45:46 +1100612
Damien Miller61e50f12000-05-08 20:49:37 +1000613OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
614OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
615OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
616OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
617OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
Damien Millerad1bc5f2000-05-20 14:53:09 +1000618OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
Damien Miller61e50f12000-05-08 20:49:37 +1000619OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
620OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
621OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
622OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
623OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
624OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
andre2ff7b5d2000-06-03 14:57:40 +0000625OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
626OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
627OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
628OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
629
Damien Miller61e50f12000-05-08 20:49:37 +1000630AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
631 ac_cv_have_ss_family_in_struct_ss, [
632 AC_TRY_COMPILE(
633 [
Damien Miller81171112000-04-23 11:14:01 +1000634#include <sys/types.h>
635#include <sys/socket.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000636 ],
637 [ struct sockaddr_storage s; s.ss_family = 1; ],
638 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
639 [ ac_cv_have_ss_family_in_struct_ss="no" ],
640 )
641])
642if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
643 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
644fi
645
Damien Miller61e50f12000-05-08 20:49:37 +1000646AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
647 ac_cv_have___ss_family_in_struct_ss, [
648 AC_TRY_COMPILE(
649 [
Damien Miller81171112000-04-23 11:14:01 +1000650#include <sys/types.h>
651#include <sys/socket.h>
Damien Miller61e50f12000-05-08 20:49:37 +1000652 ],
653 [ struct sockaddr_storage s; s.__ss_family = 1; ],
654 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
655 [ ac_cv_have___ss_family_in_struct_ss="no" ]
656 )
657])
658if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
659 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
660fi
Damien Millerbf1c9b21999-12-09 10:16:54 +1100661
Damien Miller61e50f12000-05-08 20:49:37 +1000662
663AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
664 AC_TRY_LINK([],
665 [ extern char *__progname; printf("%s", __progname); ],
666 [ ac_cv_libc_defines___progname="yes" ],
667 [ ac_cv_libc_defines___progname="no" ]
668 )
669])
670if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
671 AC_DEFINE(HAVE___PROGNAME)
672fi
673
Damien Millera22ba012000-03-02 23:09:20 +1100674
675# Looking for programs, paths and files
676AC_ARG_WITH(rsh,
677 [ --with-rsh=PATH Specify path to remote shell program ],
678 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100679 if test "x$withval" != "$no" ; then
Damien Miller7b22d652000-06-18 14:07:04 +1000680 rsa_path=$withval
Damien Millera22ba012000-03-02 23:09:20 +1100681 fi
682 ],
683 [
684 AC_PATH_PROG(rsh_path, rsh)
685 ]
686)
687
688AC_ARG_WITH(xauth,
689 [ --with-xauth=PATH Specify path to xauth program ],
690 [
691 if test "x$withval" != "$xno" ; then
Damien Miller7b22d652000-06-18 14:07:04 +1000692 xauth_path=$withval
Damien Millera22ba012000-03-02 23:09:20 +1100693 fi
694 ],
695 [
696 AC_PATH_PROG(xauth_path, xauth)
Damien Milleredb82922000-06-20 13:25:52 +1000697 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
Damien Millera22ba012000-03-02 23:09:20 +1100698 xauth_path="/usr/openwin/bin/xauth"
699 fi
700 ]
701)
702
703if test ! -z "$xauth_path" ; then
704 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
705fi
706if test ! -z "$rsh_path" ; then
707 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
708fi
709
710# Check for mail directory (last resort if we cannot get it from headers)
711if test ! -z "$MAIL" ; then
712 maildir=`dirname $MAIL`
713 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
714fi
715
Damien Millera22ba012000-03-02 23:09:20 +1100716if test -z "$no_dev_ptmx" ; then
Damien Miller204ad072000-03-02 23:56:12 +1100717 AC_CHECK_FILE("/dev/ptmx",
718 [
719 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
720 have_dev_ptmx=1
721 ]
722 )
Damien Millera22ba012000-03-02 23:09:20 +1100723fi
Damien Miller204ad072000-03-02 23:56:12 +1100724AC_CHECK_FILE("/dev/ptc",
725 [
726 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
727 have_dev_ptc=1
728 ]
729)
730
Damien Millera22ba012000-03-02 23:09:20 +1100731# Options from here on. Some of these are preset by platform above
732
Damien Millera22ba012000-03-02 23:09:20 +1100733# Check for user-specified random device, otherwise check /dev/urandom
734AC_ARG_WITH(random,
735 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
736 [
Damien Miller040f3832000-04-03 14:50:43 +1000737 if test "x$withval" != "xno" ; then
738 RANDOM_POOL="$withval";
739 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
740 fi
Damien Millera22ba012000-03-02 23:09:20 +1100741 ],
742 [
743 # Check for random device
744 AC_CHECK_FILE("/dev/urandom",
745 [
746 RANDOM_POOL="/dev/urandom";
747 AC_SUBST(RANDOM_POOL)
748 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
749 ]
750 )
751 ]
752)
753
754# Check for EGD pool file
755AC_ARG_WITH(egd-pool,
756 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
757 [
Damien Miller040f3832000-04-03 14:50:43 +1000758 if test "x$withval" != "xno" ; then
759 EGD_SOCKET="$withval";
760 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
761 fi
Damien Millera22ba012000-03-02 23:09:20 +1100762 ]
763)
764
Damien Miller0437b332000-05-02 09:56:41 +1000765# detect pathnames for entropy gathering commands, if we need them
766INSTALL_SSH_PRNG_CMDS=""
767rm -f prng_commands
Damien Milleredb82922000-06-20 13:25:52 +1000768if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
Damien Miller11e37f62000-04-08 18:23:30 +1000769 # Use these commands to collect entropy
Damien Miller61e50f12000-05-08 20:49:37 +1000770 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
771 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
772 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
773 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
774 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
775 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
776 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
777 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
778 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
779 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
780 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
781 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
782 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
783 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
784 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
Damien Miller0437b332000-05-02 09:56:41 +1000785
786 INSTALL_SSH_PRNG_CMDS="yes"
Damien Miller11e37f62000-04-08 18:23:30 +1000787fi
Damien Miller0437b332000-05-02 09:56:41 +1000788AC_SUBST(INSTALL_SSH_PRNG_CMDS)
789
Damien Miller11e37f62000-04-08 18:23:30 +1000790
Damien Miller670a4b82000-01-22 13:53:11 +1100791AC_ARG_WITH(catman,
792 [ --with-catman=man|cat Install preformatted manpages[no]],
793 [
794 MANTYPE='$(CATMAN)'
795 if test x"$withval" != x"yes" ; then
796 mansubdir=$withval
797 else
798 mansubdir=cat
799 fi
800 ], [
801 if test -z "$MANTYPE" ; then
802 MANTYPE='$(TROFFMAN)'
803 mansubdir=man
804 fi
805 ]
806)
807AC_SUBST(MANTYPE)
808AC_SUBST(mansubdir)
Damien Miller8bdeee21999-12-30 15:50:54 +1100809
Damien Millera22ba012000-03-02 23:09:20 +1100810# Check whether user wants Kerberos support
Damien Miller7b22d652000-06-18 14:07:04 +1000811KRB4_MSG="no"
Damien Miller80297751999-11-19 13:03:25 +1100812AC_ARG_WITH(kerberos4,
Damien Miller105b7f02000-01-07 08:45:55 +1100813 [ --with-kerberos4=PATH Enable Kerberos 4 support],
Damien Miller80297751999-11-19 13:03:25 +1100814 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100815 if test "x$withval" != "xno" ; then
Damien Miller105b7f02000-01-07 08:45:55 +1100816
817 if test "x$withval" != "$xyes" ; then
818 CFLAGS="$CFLAGS -I${withval}/include"
819 LDFLAGS="$LDFLAGS -L${withval}/lib"
Damien Miller29ea30d2000-03-17 10:54:15 +1100820 if test ! -z "$need_dash_r" ; then
821 LDFLAGS="$LDFLAGS -R${withval}/lib"
822 fi
823 if test ! -z "$blibpath" ; then
824 blibpath="$blibpath:${withval}/lib"
825 fi
Damien Miller105b7f02000-01-07 08:45:55 +1100826 else
827 if test -d /usr/include/kerberosIV ; then
828 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
829 fi
830 fi
831
832 AC_CHECK_HEADERS(krb.h)
833 AC_CHECK_LIB(krb, main)
834 if test "$ac_cv_header_krb_h" != yes; then
835 AC_MSG_WARN([Cannot find krb.h, build may fail])
836 fi
837 if test "$ac_cv_lib_krb_main" != yes; then
838 AC_MSG_WARN([Cannot find libkrb, build may fail])
839 fi
840
Damien Millerc85f9b42000-01-29 10:20:21 +1100841 KLIBS="-lkrb -ldes"
Damien Miller105b7f02000-01-07 08:45:55 +1100842 AC_CHECK_LIB(resolv, dn_expand, , )
843 KRB4=yes
Damien Miller7b22d652000-06-18 14:07:04 +1000844 KRB4_MSG="yes"
Damien Miller8bdeee21999-12-30 15:50:54 +1100845 AC_DEFINE(KRB4)
Damien Miller8bdeee21999-12-30 15:50:54 +1100846 fi
Damien Miller80297751999-11-19 13:03:25 +1100847 ]
848)
849
Damien Millera22ba012000-03-02 23:09:20 +1100850# Check whether user wants AFS support
Damien Miller7b22d652000-06-18 14:07:04 +1000851AFS_MSG="no"
Damien Millerc6398ef1999-11-20 12:18:40 +1100852AC_ARG_WITH(afs,
Damien Miller105b7f02000-01-07 08:45:55 +1100853 [ --with-afs=PATH Enable AFS support],
Damien Miller80297751999-11-19 13:03:25 +1100854 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100855 if test "x$withval" != "xno" ; then
Damien Miller105b7f02000-01-07 08:45:55 +1100856
857 if test "x$withval" != "$xyes" ; then
858 CFLAGS="$CFLAGS -I${withval}/include"
859 LFLAGS="$LFLAGS -L${withval}/lib"
860 fi
861
862 if test -z "$KRB4" ; then
863 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
864 fi
865
Damien Miller8bdeee21999-12-30 15:50:54 +1100866 LIBS="$LIBS -lkafs"
Damien Miller105b7f02000-01-07 08:45:55 +1100867 if test ! -z "$AFS_LIBS" ; then
868 LIBS="$LIBS $AFS_LIBS"
869 fi
870 AC_DEFINE(AFS)
Damien Miller7b22d652000-06-18 14:07:04 +1000871 AFS_MSG="yes"
Damien Miller8bdeee21999-12-30 15:50:54 +1100872 fi
Damien Miller80297751999-11-19 13:03:25 +1100873 ]
874)
Damien Millerc85f9b42000-01-29 10:20:21 +1100875LIBS="$LIBS $KLIBS"
Damien Miller80297751999-11-19 13:03:25 +1100876
Damien Millera22ba012000-03-02 23:09:20 +1100877# Check whether user wants S/Key support
Damien Miller7b22d652000-06-18 14:07:04 +1000878SKEY_MSG="no"
Damien Miller80297751999-11-19 13:03:25 +1100879AC_ARG_WITH(skey,
880 [ --with-skey Enable S/Key support],
881 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100882 if test "x$withval" != "xno" ; then
Damien Miller8bdeee21999-12-30 15:50:54 +1100883 AC_DEFINE(SKEY)
884 LIBS="$LIBS -lskey"
Damien Miller7b22d652000-06-18 14:07:04 +1000885 SKEY_MSG="yes"
Damien Miller8bdeee21999-12-30 15:50:54 +1100886 fi
Damien Miller80297751999-11-19 13:03:25 +1100887 ]
888)
889
Damien Millera22ba012000-03-02 23:09:20 +1100890# Check whether user wants TCP wrappers support
Damien Miller7b22d652000-06-18 14:07:04 +1000891TCPW_MSG="no"
Damien Millerf7c0f821999-11-22 22:31:49 +1100892AC_ARG_WITH(tcp-wrappers,
Damien Miller80297751999-11-19 13:03:25 +1100893 [ --with-tcp-wrappers Enable tcpwrappers support],
894 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100895 if test "x$withval" != "xno" ; then
Damien Miller65165f82000-03-05 17:02:45 +1100896 saved_LIBS="$LIBS"
Damien Miller105b7f02000-01-07 08:45:55 +1100897 LIBS="$LIBS -lwrap"
Damien Miller65165f82000-03-05 17:02:45 +1100898 AC_MSG_CHECKING(for libwrap)
899 AC_TRY_LINK(
900 [
Damien Miller81171112000-04-23 11:14:01 +1000901#include <tcpd.h>
Damien Miller65165f82000-03-05 17:02:45 +1100902 int deny_severity = 0, allow_severity = 0;
903 ],
904 [hosts_access(0);],
905 [
906 AC_MSG_RESULT(yes)
907 AC_DEFINE(LIBWRAP)
Damien Miller7b22d652000-06-18 14:07:04 +1000908 TCPW_MSG="yes"
Damien Miller65165f82000-03-05 17:02:45 +1100909 ],
910 [
Damien Miller7b22d652000-06-18 14:07:04 +1000911 AC_MSG_ERROR([*** libwrap missing])
Damien Miller65165f82000-03-05 17:02:45 +1100912 ]
913 )
Damien Miller8bdeee21999-12-30 15:50:54 +1100914 fi
Damien Miller80297751999-11-19 13:03:25 +1100915 ]
916)
917
Damien Millera22ba012000-03-02 23:09:20 +1100918# Check whether to enable MD5 passwords
Damien Miller7b22d652000-06-18 14:07:04 +1000919MD5_MSG="no"
Damien Millerf7c0f821999-11-22 22:31:49 +1100920AC_ARG_WITH(md5-passwords,
Damien Millerdd1c7ba1999-11-19 15:53:20 +1100921 [ --with-md5-passwords Enable use of MD5 passwords],
Damien Miller8bdeee21999-12-30 15:50:54 +1100922 [
Damien Millerb85dcad2000-03-11 11:37:00 +1100923 if test "x$withval" != "xno" ; then
Damien Miller8bdeee21999-12-30 15:50:54 +1100924 AC_DEFINE(HAVE_MD5_PASSWORDS)
Damien Miller7b22d652000-06-18 14:07:04 +1000925 MD5_MSG="yes"
Damien Miller8bdeee21999-12-30 15:50:54 +1100926 fi
927 ]
Damien Millerdd1c7ba1999-11-19 15:53:20 +1100928)
929
Damien Millera22ba012000-03-02 23:09:20 +1100930# Whether to disable shadow password support
Damien Miller76112de1999-12-21 11:18:08 +1100931AC_ARG_WITH(shadow,
932 [ --without-shadow Disable shadow password support],
933 [
934 if test "x$withval" = "xno" ; then
935 AC_DEFINE(DISABLE_SHADOW)
936 fi
937 ]
938)
939
Damien Millera22ba012000-03-02 23:09:20 +1100940# Use ip address instead of hostname in $DISPLAY
Damien Miller7b22d652000-06-18 14:07:04 +1000941DISPLAY_HACK_MSG="no"
Damien Miller76112de1999-12-21 11:18:08 +1100942AC_ARG_WITH(ipaddr-display,
943 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
944 [
Damien Miller66409952000-01-17 21:40:06 +1100945 if test "x$withval" = "xno" ; then
Damien Miller76112de1999-12-21 11:18:08 +1100946 AC_DEFINE(IPADDR_IN_DISPLAY)
Damien Miller7b22d652000-06-18 14:07:04 +1000947 DISPLAY_HACK_MSG="yes"
Damien Miller76112de1999-12-21 11:18:08 +1100948 fi
949 ]
950)
951
Damien Millera22ba012000-03-02 23:09:20 +1100952# Whether to mess with the default path
Damien Miller7b22d652000-06-18 14:07:04 +1000953SERVER_PATH_MSG="(default)"
Damien Millere7f626c1999-12-31 09:49:44 +1100954AC_ARG_WITH(default-path,
Damien Miller5a3e6831999-12-27 09:48:56 +1100955 [ --with-default-path=PATH Specify default \$PATH environment for server],
956 [
957 if test "x$withval" != "xno" ; then
Damien Miller9550a761999-12-29 02:32:22 +1100958 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
Damien Miller7b22d652000-06-18 14:07:04 +1000959 SERVER_PATH_MSG="$withval"
Damien Miller5a3e6831999-12-27 09:48:56 +1100960 fi
961 ]
962)
963
Damien Millera22ba012000-03-02 23:09:20 +1100964# Whether to force IPv4 by default (needed on broken glibc Linux)
Damien Miller7b22d652000-06-18 14:07:04 +1000965IPV4_HACK_MSG="no"
Damien Miller7d80e342000-01-19 14:36:49 +1100966AC_ARG_WITH(ipv4-default,
967 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
968 [
969 if test "x$withval" != "xno" ; then
970 AC_DEFINE(IPV4_DEFAULT)
Damien Miller7b22d652000-06-18 14:07:04 +1000971 IPV4_HACK_MSG="yes"
Damien Miller7d80e342000-01-19 14:36:49 +1100972 fi
973 ]
974)
975
Damien Miller61e50f12000-05-08 20:49:37 +1000976AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
Damien Miller7b22d652000-06-18 14:07:04 +1000977IPV4_IN6_HACK_MSG="no"
Damien Miller7bcb0892000-03-11 20:45:40 +1100978AC_ARG_WITH(4in6,
979 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
980 [
981 if test "x$withval" != "xno" ; then
982 AC_MSG_RESULT(yes)
983 AC_DEFINE(IPV4_IN_IPV6)
Damien Miller7b22d652000-06-18 14:07:04 +1000984 IPV4_IN6_HACK_MSG="yes"
Damien Miller7bcb0892000-03-11 20:45:40 +1100985 else
986 AC_MSG_RESULT(no)
987 fi
988 ],[
989 if test "x$inet6_default_4in6" = "xyes"; then
990 AC_MSG_RESULT([yes (default)])
991 AC_DEFINE(IPV4_IN_IPV6)
Damien Miller7b22d652000-06-18 14:07:04 +1000992 IPV4_IN6_HACK_MSG="yes"
Damien Miller7bcb0892000-03-11 20:45:40 +1100993 else
994 AC_MSG_RESULT([no (default)])
995 fi
996 ]
997)
998
Damien Millera22ba012000-03-02 23:09:20 +1100999# Where to place sshd.pid
Damien Millerb13c73e2000-01-17 22:02:17 +11001000piddir=/var/run
Damien Miller5eed6a22000-01-16 12:05:18 +11001001AC_ARG_WITH(pid-dir,
1002 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1003 [
1004 if test "x$withval" != "xno" ; then
Damien Millerb13c73e2000-01-17 22:02:17 +11001005 piddir=$withval
Damien Miller5eed6a22000-01-16 12:05:18 +11001006 fi
1007 ]
1008)
Damien Miller4018c192000-04-30 09:30:44 +10001009
Damien Millerdbd250f2000-01-18 08:57:14 +11001010AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
Damien Millerb13c73e2000-01-17 22:02:17 +11001011AC_SUBST(piddir)
Damien Miller5eed6a22000-01-16 12:05:18 +11001012
andre2ff7b5d2000-06-03 14:57:40 +00001013dnl allow user to disable some login recording features
1014AC_ARG_ENABLE(lastlog,
andre43ca7e22000-06-19 08:23:46 +00001015 [ --disable-lastlog disable use of lastlog even if detected [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001016 [ AC_DEFINE(DISABLE_LASTLOG) ]
1017)
1018AC_ARG_ENABLE(utmp,
andre43ca7e22000-06-19 08:23:46 +00001019 [ --disable-utmp disable use of utmp even if detected [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001020 [ AC_DEFINE(DISABLE_UTMP) ]
1021)
1022AC_ARG_ENABLE(utmpx,
andre43ca7e22000-06-19 08:23:46 +00001023 [ --disable-utmpx disable use of utmpx even if detected [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001024 [ AC_DEFINE(DISABLE_UTMPX) ]
1025)
1026AC_ARG_ENABLE(wtmp,
andre43ca7e22000-06-19 08:23:46 +00001027 [ --disable-wtmp disable use of wtmp even if detected [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001028 [ AC_DEFINE(DISABLE_WTMP) ]
1029)
1030AC_ARG_ENABLE(wtmpx,
andre43ca7e22000-06-19 08:23:46 +00001031 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001032 [ AC_DEFINE(DISABLE_WTMPX) ]
1033)
1034AC_ARG_ENABLE(libutil,
andre43ca7e22000-06-19 08:23:46 +00001035 [ --disable-libutil disable use of libutil (login() etc.) [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001036 [ AC_DEFINE(DISABLE_LOGIN) ]
1037)
1038AC_ARG_ENABLE(pututline,
andre43ca7e22000-06-19 08:23:46 +00001039 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001040 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1041)
1042AC_ARG_ENABLE(pututxline,
andre43ca7e22000-06-19 08:23:46 +00001043 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
andre2ff7b5d2000-06-03 14:57:40 +00001044 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1045)
1046AC_ARG_WITH(lastlog,
andre43ca7e22000-06-19 08:23:46 +00001047 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
andre2ff7b5d2000-06-03 14:57:40 +00001048 [ conf_lastlog_location="$withval"; ],)
1049
1050dnl lastlog, [uw]tmpx? detection
1051dnl NOTE: set the paths in the platform section to avoid the
1052dnl need for command-line parameters
1053dnl lastlog and [uw]tmp are subject to a file search if all else fails
1054
1055dnl lastlog detection
1056dnl NOTE: the code itself will detect if lastlog is a directory
1057AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1058AC_TRY_COMPILE([
1059#include <sys/types.h>
1060#include <utmp.h>
1061#ifdef HAVE_LASTLOG_H
1062# include <lastlog.h>
1063#endif
Damien Miller2994e082000-06-04 15:51:47 +10001064#ifdef HAVE_PATHS_H
andre2ff7b5d2000-06-03 14:57:40 +00001065# include <paths.h>
1066#endif
1067 ],
1068 [ char *lastlog = LASTLOG_FILE; ],
1069 [ AC_MSG_RESULT(yes) ],
Damien Miller2994e082000-06-04 15:51:47 +10001070 [
1071 AC_MSG_RESULT(no)
1072 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1073 AC_TRY_COMPILE([
1074#include <sys/types.h>
1075#include <utmp.h>
1076#ifdef HAVE_LASTLOG_H
1077# include <lastlog.h>
1078#endif
1079#ifdef HAVE_PATHS_H
1080# include <paths.h>
1081#endif
1082 ],
1083 [ char *lastlog = _PATH_LASTLOG; ],
1084 [ AC_MSG_RESULT(yes) ],
1085 [
andree441aa32000-06-12 22:34:38 +00001086 AC_MSG_RESULT(no)
Damien Miller2994e082000-06-04 15:51:47 +10001087 system_lastlog_path=no
1088 ])
1089 ]
andre2ff7b5d2000-06-03 14:57:40 +00001090)
Damien Miller2994e082000-06-04 15:51:47 +10001091
andre2ff7b5d2000-06-03 14:57:40 +00001092if test -z "$conf_lastlog_location"; then
1093 if test x"$system_lastlog_path" = x"no" ; then
1094 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
Damien Milleredb82922000-06-20 13:25:52 +10001095 if (test -d "$f" || test -f "$f") ; then
andre2ff7b5d2000-06-03 14:57:40 +00001096 conf_lastlog_location=$f
1097 fi
1098 done
1099 if test -z "$conf_lastlog_location"; then
andre45cad512000-06-12 23:27:31 +00001100 AC_MSG_WARN([** Cannot find lastlog **])
1101 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
andre2ff7b5d2000-06-03 14:57:40 +00001102 fi
1103 fi
1104fi
1105
1106if test -n "$conf_lastlog_location"; then
1107 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1108fi
1109
1110dnl utmp detection
1111AC_MSG_CHECKING([if your system defines UTMP_FILE])
1112AC_TRY_COMPILE([
1113#include <sys/types.h>
1114#include <utmp.h>
Damien Miller2994e082000-06-04 15:51:47 +10001115#ifdef HAVE_PATHS_H
andre2ff7b5d2000-06-03 14:57:40 +00001116# include <paths.h>
1117#endif
1118 ],
1119 [ char *utmp = UTMP_FILE; ],
1120 [ AC_MSG_RESULT(yes) ],
1121 [ AC_MSG_RESULT(no)
1122 system_utmp_path=no ]
1123)
1124if test -z "$conf_utmp_location"; then
1125 if test x"$system_utmp_path" = x"no" ; then
1126 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1127 if test -f $f ; then
1128 conf_utmp_location=$f
1129 fi
1130 done
1131 if test -z "$conf_utmp_location"; then
1132 AC_DEFINE(DISABLE_UTMP)
1133 fi
1134 fi
1135fi
1136if test -n "$conf_utmp_location"; then
1137 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1138fi
1139
1140dnl wtmp detection
1141AC_MSG_CHECKING([if your system defines WTMP_FILE])
1142AC_TRY_COMPILE([
1143#include <sys/types.h>
1144#include <utmp.h>
Damien Miller2994e082000-06-04 15:51:47 +10001145#ifdef HAVE_PATHS_H
andre2ff7b5d2000-06-03 14:57:40 +00001146# include <paths.h>
1147#endif
1148 ],
1149 [ char *wtmp = WTMP_FILE; ],
1150 [ AC_MSG_RESULT(yes) ],
1151 [ AC_MSG_RESULT(no)
1152 system_wtmp_path=no ]
1153)
1154if test -z "$conf_wtmp_location"; then
1155 if test x"$system_wtmp_path" = x"no" ; then
1156 for f in /usr/adm/wtmp /var/log/wtmp; do
1157 if test -f $f ; then
1158 conf_wtmp_location=$f
1159 fi
1160 done
1161 if test -z "$conf_wtmp_location"; then
1162 AC_DEFINE(DISABLE_WTMP)
1163 fi
1164 fi
1165fi
1166if test -n "$conf_wtmp_location"; then
1167 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1168fi
1169
1170
1171dnl utmpx detection - I don't know any system so perverse as to require
1172dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1173dnl there, though.
1174AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1175AC_TRY_COMPILE([
1176#include <sys/types.h>
1177#include <utmp.h>
1178#ifdef HAVE_UTMPX_H
1179#include <utmpx.h>
1180#endif
Damien Miller2994e082000-06-04 15:51:47 +10001181#ifdef HAVE_PATHS_H
andre2ff7b5d2000-06-03 14:57:40 +00001182# include <paths.h>
1183#endif
1184 ],
1185 [ char *utmpx = UTMPX_FILE; ],
1186 [ AC_MSG_RESULT(yes) ],
1187 [ AC_MSG_RESULT(no)
1188 system_utmpx_path=no ]
1189)
1190if test -z "$conf_utmpx_location"; then
1191 if test x"$system_utmpx_path" = x"no" ; then
1192 AC_DEFINE(DISABLE_UTMPX)
1193 fi
1194else
1195 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1196fi
1197
1198dnl wtmpx detection
1199AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1200AC_TRY_COMPILE([
1201#include <sys/types.h>
1202#include <utmp.h>
1203#ifdef HAVE_UTMPX_H
1204#include <utmpx.h>
1205#endif
Damien Miller2994e082000-06-04 15:51:47 +10001206#ifdef HAVE_PATHS_H
andre2ff7b5d2000-06-03 14:57:40 +00001207# include <paths.h>
1208#endif
1209 ],
1210 [ char *wtmpx = WTMPX_FILE; ],
1211 [ AC_MSG_RESULT(yes) ],
1212 [ AC_MSG_RESULT(no)
1213 system_wtmpx_path=no ]
1214)
1215if test -z "$conf_wtmpx_location"; then
1216 if test x"$system_wtmpx_path" = x"no" ; then
1217 AC_DEFINE(DISABLE_WTMPX)
1218 fi
1219else
1220 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1221fi
1222
Damien Miller4018c192000-04-30 09:30:44 +10001223
1224# Change default command timeout for builtin PRNG
Damien Miller14c12cb2000-06-07 22:20:23 +10001225entropy_timeout=200
Damien Miller4018c192000-04-30 09:30:44 +10001226AC_ARG_WITH(entropy-timeout,
1227 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1228 [
1229 if test "x$withval" != "xno" ; then
1230 entropy_timeout=$withval
1231 fi
1232 ]
1233)
1234AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1235
1236
Damien Miller29ea30d2000-03-17 10:54:15 +11001237if test ! -z "$blibpath" ; then
1238 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1239 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1240fi
1241
Damien Miller0437b332000-05-02 09:56:41 +10001242AC_OUTPUT(Makefile ssh_prng_cmds)
1243
Damien Miller7b22d652000-06-18 14:07:04 +10001244# Print summary of options
1245
1246if test x$MANTYPE = x'$(CATMAN)' ; then
1247 MAN_MSG=cat
1248else
1249 MAN_MSG=man
1250fi
1251if test ! -z "$RANDOM_POOL" ; then
1252 RAND_MSG="Device ($RANDOM_POOL)"
1253else
1254 if test ! -z "$EGD_SOCKET" ; then
1255 RAND_MSG="EGD ($EGD_SOCKET)"
1256 else
1257 RAND_MSG="Builtin (timeout $entropy_timeout)"
1258 fi
1259fi
1260
1261# Someone please show me a better way :)
1262A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1263B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1264C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1265D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1266E=`eval echo ${libexecdir}/ssh/ssh-askpass` ; E=`eval echo ${E}`
1267F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1268G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1269
1270echo ""
1271echo "OpenSSH configured has been configured with the following options."
1272echo " User binaries: $B"
1273echo " System binaries: $C"
1274echo " Configuration files: $D"
1275echo " Askpass program: $E"
1276echo " Manual pages: $F"
1277echo " PID file: $G"
1278echo " Random number collection: $RAND_MSG"
1279echo " Manpage format: $MAN_MSG"
1280echo " PAM support: ${PAM_MSG}"
1281echo " KerberosIV support: $KRB4_MSG"
1282echo " AFS support: $AFS_MSG"
1283echo " S/KEY support: $SKEY_MSG"
1284echo " TCP Wrappers support: $TCPW_MSG"
1285echo " MD5 password support: $MD5_MSG"
1286echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1287echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1288echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1289
1290echo ""
1291
1292echo "Compiler flags: ${CFLAGS}"
1293echo "Linker flags: ${LDFLAGS}"
1294echo "Libraries: ${LIBS}"
1295
1296echo ""
1297