summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1519
1 files changed, 1025 insertions, 494 deletions
diff --git a/configure b/configure
index 1bf7b0b0b..362218407 100755
--- a/configure
+++ b/configure
@@ -2,6 +2,8 @@
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenSSH Portable. 3# Generated by GNU Autoconf 2.59 for OpenSSH Portable.
4# 4#
5# Report bugs to <openssh-unix-dev@mindrot.org>.
6#
5# Copyright (C) 2003 Free Software Foundation, Inc. 7# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation 8# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it. 9# gives unlimited permission to copy, distribute and modify it.
@@ -269,7 +271,7 @@ PACKAGE_NAME='OpenSSH'
269PACKAGE_TARNAME='openssh' 271PACKAGE_TARNAME='openssh'
270PACKAGE_VERSION='Portable' 272PACKAGE_VERSION='Portable'
271PACKAGE_STRING='OpenSSH Portable' 273PACKAGE_STRING='OpenSSH Portable'
272PACKAGE_BUGREPORT='' 274PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
273 275
274ac_unique_file="ssh.c" 276ac_unique_file="ssh.c"
275# Factoring default headers for most tests. 277# Factoring default headers for most tests.
@@ -867,6 +869,7 @@ Optional Packages:
867 --with-cppflags Specify additional flags to pass to preprocessor 869 --with-cppflags Specify additional flags to pass to preprocessor
868 --with-ldflags Specify additional flags to pass to linker 870 --with-ldflags Specify additional flags to pass to linker
869 --with-libs Specify additional libraries to link with 871 --with-libs Specify additional libraries to link with
872 --with-Werror Build main code with -Werror
870 --with-zlib=PATH Use zlib in PATH 873 --with-zlib=PATH Use zlib in PATH
871 --without-zlib-version-check Disable zlib version check 874 --without-zlib-version-check Disable zlib version check
872 --with-skey[=PATH] Enable S/Key support (optionally in PATH) 875 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
@@ -881,7 +884,7 @@ Optional Packages:
881 --with-entropy-timeout Specify entropy gathering command timeout (msec) 884 --with-entropy-timeout Specify entropy gathering command timeout (msec)
882 --with-privsep-user=user Specify non-privileged user for privilege separation 885 --with-privsep-user=user Specify non-privileged user for privilege separation
883 --with-sectok Enable smartcard support using libsectok 886 --with-sectok Enable smartcard support using libsectok
884 --with-opensc=PFX Enable smartcard support using OpenSC 887--with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
885 --with-kerberos5=PATH Enable Kerberos 5 support 888 --with-kerberos5=PATH Enable Kerberos 5 support
886 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) 889 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
887 --with-xauth=PATH Specify path to xauth program 890 --with-xauth=PATH Specify path to xauth program
@@ -908,6 +911,7 @@ Some influential environment variables:
908Use these variables to override the choices made by `configure' or to help 911Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations. 912it to find libraries and programs with nonstandard names/locations.
910 913
914Report bugs to <openssh-unix-dev@mindrot.org>.
911_ACEOF 915_ACEOF
912fi 916fi
913 917
@@ -4098,8 +4102,253 @@ _ACEOF
4098 ;; 4102 ;;
4099esac 4103esac
4100 4104
4105
4106echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4107echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4108if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
4117#include <limits.h>
4118
4119int
4120main ()
4121{
4122#ifndef LLONG_MAX
4123 char *p = (char *) LLONG_MAX;
4124#endif
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_cv_have_decl_LLONG_MAX=yes
4153else
4154 echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157ac_cv_have_decl_LLONG_MAX=no
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160fi
4161echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4162echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4163if test $ac_cv_have_decl_LLONG_MAX = yes; then
4164 have_llong_max=1
4165fi
4166
4167
4101if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 4168if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4102 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" 4169 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
4170 GCC_VER=`$CC --version`
4171 case $GCC_VER in
4172 1.*) ;;
4173 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
4174 2.*) ;;
4175 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
4176 esac
4177
4178 if test -z "$have_llong_max"; then
4179 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
4180 unset ac_cv_have_decl_LLONG_MAX
4181 saved_CFLAGS="$CFLAGS"
4182 CFLAGS="$CFLAGS -std=gnu99"
4183 echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4184echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4185if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
4194#include <limits.h>
4195
4196
4197int
4198main ()
4199{
4200#ifndef LLONG_MAX
4201 char *p = (char *) LLONG_MAX;
4202#endif
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_have_decl_LLONG_MAX=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235ac_cv_have_decl_LLONG_MAX=no
4236fi
4237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4240echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4241if test $ac_cv_have_decl_LLONG_MAX = yes; then
4242 have_llong_max=1
4243else
4244 CFLAGS="$saved_CFLAGS"
4245fi
4246
4247 fi
4248fi
4249
4250if test -z "$have_llong_max"; then
4251 echo "$as_me:$LINENO: checking for max value of long long" >&5
4252echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4254
4255 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
4256echo "$as_me: WARNING: cross compiling: not checking" >&2;}
4257
4258
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266
4267#include <stdio.h>
4268/* Why is this so damn hard? */
4269#ifdef __GNUC__
4270# undef __GNUC__
4271#endif
4272#define __USE_ISOC99
4273#include <limits.h>
4274#define DATA "conftest.llminmax"
4275int main(void) {
4276 FILE *f;
4277 long long i, llmin, llmax = 0;
4278
4279 if((f = fopen(DATA,"w")) == NULL)
4280 exit(1);
4281
4282#if defined(LLONG_MIN) && defined(LLONG_MAX)
4283 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
4284 llmin = LLONG_MIN;
4285 llmax = LLONG_MAX;
4286#else
4287 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
4288 /* This will work on one's complement and two's complement */
4289 for (i = 1; i > llmax; i <<= 1, i++)
4290 llmax = i;
4291 llmin = llmax + 1LL; /* wrap */
4292#endif
4293
4294 /* Sanity check */
4295 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
4296 || llmax - 1 > llmax) {
4297 fprintf(f, "unknown unknown\n");
4298 exit(2);
4299 }
4300
4301 if (fprintf(f ,"%lld %lld", llmin, llmax) < 0)
4302 exit(3);
4303
4304 exit(0);
4305}
4306
4307_ACEOF
4308rm -f conftest$ac_exeext
4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 (eval $ac_link) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319
4320 llong_min=`$AWK '{print $1}' conftest.llminmax`
4321 llong_max=`$AWK '{print $2}' conftest.llminmax`
4322 echo "$as_me:$LINENO: result: $llong_max" >&5
4323echo "${ECHO_T}$llong_max" >&6
4324
4325cat >>confdefs.h <<_ACEOF
4326#define LLONG_MAX ${llong_max}LL
4327_ACEOF
4328
4329 echo "$as_me:$LINENO: checking for min value of long long" >&5
4330echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: $llong_min" >&5
4332echo "${ECHO_T}$llong_min" >&6
4333
4334cat >>confdefs.h <<_ACEOF
4335#define LLONG_MIN ${llong_min}LL
4336_ACEOF
4337
4338
4339else
4340 echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344( exit $ac_status )
4345
4346 echo "$as_me:$LINENO: result: not found" >&5
4347echo "${ECHO_T}not found" >&6
4348
4349fi
4350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351fi
4103fi 4352fi
4104 4353
4105 4354
@@ -4643,6 +4892,77 @@ _ACEOF
4643 4892
4644 4893
4645fi 4894fi
4895echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
4896echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6
4897if test "${ac_cv_have_decl_setauthdb+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
4906#include <usersec.h>
4907
4908int
4909main ()
4910{
4911#ifndef setauthdb
4912 char *p = (char *) setauthdb;
4913#endif
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext
4920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_have_decl_setauthdb=yes
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946ac_cv_have_decl_setauthdb=no
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949fi
4950echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
4951echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6
4952if test $ac_cv_have_decl_setauthdb = yes; then
4953
4954cat >>confdefs.h <<_ACEOF
4955#define HAVE_DECL_SETAUTHDB 1
4956_ACEOF
4957
4958
4959else
4960 cat >>confdefs.h <<_ACEOF
4961#define HAVE_DECL_SETAUTHDB 0
4962_ACEOF
4963
4964
4965fi
4646 4966
4647 4967
4648 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 4968 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
@@ -5019,121 +5339,8 @@ _ACEOF
5019_ACEOF 5339_ACEOF
5020 5340
5021 ;; 5341 ;;
5022*-*-hpux10.26) 5342*-*-hpux*)
5023 if test -z "$GCC"; then 5343 # first we define all of the options common to all HP-UX releases
5024 CFLAGS="$CFLAGS -Ae"
5025 fi
5026 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5027 IPADDR_IN_DISPLAY=yes
5028 cat >>confdefs.h <<\_ACEOF
5029#define HAVE_SECUREWARE 1
5030_ACEOF
5031
5032 cat >>confdefs.h <<\_ACEOF
5033#define USE_PIPES 1
5034_ACEOF
5035
5036 cat >>confdefs.h <<\_ACEOF
5037#define LOGIN_NO_ENDOPT 1
5038_ACEOF
5039
5040 cat >>confdefs.h <<\_ACEOF
5041#define LOGIN_NEEDS_UTMPX 1
5042_ACEOF
5043
5044 cat >>confdefs.h <<\_ACEOF
5045#define LOCKED_PASSWD_STRING "*"
5046_ACEOF
5047
5048 cat >>confdefs.h <<\_ACEOF
5049#define SPT_TYPE SPT_PSTAT
5050_ACEOF
5051
5052 LIBS="$LIBS -lsec -lsecpw"
5053
5054echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5055echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5056if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059 ac_check_lib_save_LIBS=$LIBS
5060LIBS="-lxnet $LIBS"
5061cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h. */
5067
5068/* Override any gcc2 internal prototype to avoid an error. */
5069#ifdef __cplusplus
5070extern "C"
5071#endif
5072/* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074char t_error ();
5075int
5076main ()
5077{
5078t_error ();
5079 ;
5080 return 0;
5081}
5082_ACEOF
5083rm -f conftest.$ac_objext conftest$ac_exeext
5084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest$ac_exeext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_lib_xnet_t_error=yes
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110ac_cv_lib_xnet_t_error=no
5111fi
5112rm -f conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5114LIBS=$ac_check_lib_save_LIBS
5115fi
5116echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5117echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5118if test $ac_cv_lib_xnet_t_error = yes; then
5119 cat >>confdefs.h <<_ACEOF
5120#define HAVE_LIBXNET 1
5121_ACEOF
5122
5123 LIBS="-lxnet $LIBS"
5124
5125else
5126 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5127echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5128 { (exit 1); exit 1; }; }
5129fi
5130
5131 disable_ptmx_check=yes
5132 ;;
5133*-*-hpux10*)
5134 if test -z "$GCC"; then
5135 CFLAGS="$CFLAGS -Ae"
5136 fi
5137 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 5344 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5138 IPADDR_IN_DISPLAY=yes 5345 IPADDR_IN_DISPLAY=yes
5139 cat >>confdefs.h <<\_ACEOF 5346 cat >>confdefs.h <<\_ACEOF
@@ -5235,124 +5442,44 @@ echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5235 { (exit 1); exit 1; }; } 5442 { (exit 1); exit 1; }; }
5236fi 5443fi
5237 5444
5238 ;;
5239*-*-hpux11*)
5240 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5241 IPADDR_IN_DISPLAY=yes
5242 cat >>confdefs.h <<\_ACEOF
5243#define PAM_SUN_CODEBASE 1
5244_ACEOF
5245
5246 cat >>confdefs.h <<\_ACEOF
5247#define USE_PIPES 1
5248_ACEOF
5249
5250 cat >>confdefs.h <<\_ACEOF
5251#define LOGIN_NO_ENDOPT 1
5252_ACEOF
5253 5445
5254 cat >>confdefs.h <<\_ACEOF 5446 # next, we define all of the options specific to major releases
5255#define LOGIN_NEEDS_UTMPX 1 5447 case "$host" in
5448 *-*-hpux10*)
5449 if test -z "$GCC"; then
5450 CFLAGS="$CFLAGS -Ae"
5451 fi
5452 ;;
5453 *-*-hpux11*)
5454 cat >>confdefs.h <<\_ACEOF
5455#define PAM_SUN_CODEBASE 1
5256_ACEOF 5456_ACEOF
5257 5457
5258 cat >>confdefs.h <<\_ACEOF 5458 cat >>confdefs.h <<\_ACEOF
5259#define DISABLE_UTMP 1 5459#define DISABLE_UTMP 1
5260_ACEOF 5460_ACEOF
5261 5461
5262 cat >>confdefs.h <<\_ACEOF
5263#define LOCKED_PASSWD_STRING "*"
5264_ACEOF
5265
5266 cat >>confdefs.h <<\_ACEOF
5267#define SPT_TYPE SPT_PSTAT
5268_ACEOF
5269
5270 5462
5271cat >>confdefs.h <<\_ACEOF 5463cat >>confdefs.h <<\_ACEOF
5272#define USE_BTMP 1 5464#define USE_BTMP 1
5273_ACEOF 5465_ACEOF
5274 5466
5275 check_for_hpux_broken_getaddrinfo=1 5467 check_for_hpux_broken_getaddrinfo=1
5276 check_for_conflicting_getspnam=1 5468 check_for_conflicting_getspnam=1
5277 LIBS="$LIBS -lsec" 5469 ;;
5278 5470 esac
5279echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5280echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5281if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 ac_check_lib_save_LIBS=$LIBS
5285LIBS="-lxnet $LIBS"
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292
5293/* Override any gcc2 internal prototype to avoid an error. */
5294#ifdef __cplusplus
5295extern "C"
5296#endif
5297/* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299char t_error ();
5300int
5301main ()
5302{
5303t_error ();
5304 ;
5305 return 0;
5306}
5307_ACEOF
5308rm -f conftest.$ac_objext conftest$ac_exeext
5309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_lib_xnet_t_error=yes
5331else
5332 echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334 5471
5335ac_cv_lib_xnet_t_error=no 5472 # lastly, we define options specific to minor releases
5336fi 5473 case "$host" in
5337rm -f conftest.err conftest.$ac_objext \ 5474 *-*-hpux10.26)
5338 conftest$ac_exeext conftest.$ac_ext 5475 cat >>confdefs.h <<\_ACEOF
5339LIBS=$ac_check_lib_save_LIBS 5476#define HAVE_SECUREWARE 1
5340fi
5341echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5342echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5343if test $ac_cv_lib_xnet_t_error = yes; then
5344 cat >>confdefs.h <<_ACEOF
5345#define HAVE_LIBXNET 1
5346_ACEOF 5477_ACEOF
5347 5478
5348 LIBS="-lxnet $LIBS" 5479 disable_ptmx_check=yes
5349 5480 LIBS="$LIBS -lsecpw"
5350else 5481 ;;
5351 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 5482 esac
5352echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5353 { (exit 1); exit 1; }; }
5354fi
5355
5356 ;; 5483 ;;
5357*-*-irix5*) 5484*-*-irix5*)
5358 PATH="$PATH:/usr/etc" 5485 PATH="$PATH:/usr/etc"
@@ -5566,8 +5693,9 @@ _ACEOF
5566 esac 5693 esac
5567 ;; 5694 ;;
5568mips-sony-bsd|mips-sony-newsos4) 5695mips-sony-bsd|mips-sony-newsos4)
5569 cat >>confdefs.h <<\_ACEOF 5696
5570#define HAVE_NEWS4 1 5697cat >>confdefs.h <<\_ACEOF
5698#define NEED_SETPRGP
5571_ACEOF 5699_ACEOF
5572 5700
5573 SONY=1 5701 SONY=1
@@ -5617,6 +5745,13 @@ _ACEOF
5617_ACEOF 5745_ACEOF
5618 5746
5619 ;; 5747 ;;
5748*-*-openbsd*)
5749
5750cat >>confdefs.h <<\_ACEOF
5751#define HAVE_ATTRIBUTE__SENTINEL__ 1
5752_ACEOF
5753
5754 ;;
5620*-*-solaris*) 5755*-*-solaris*)
5621 if test "x$withval" != "xno" ; then 5756 if test "x$withval" != "xno" ; then
5622 need_dash_r=1 5757 need_dash_r=1
@@ -6004,9 +6139,20 @@ _ACEOF
6004#define BROKEN_SETREGID 1 6139#define BROKEN_SETREGID 1
6005_ACEOF 6140_ACEOF
6006 6141
6142
6143cat >>confdefs.h <<\_ACEOF
6144#define PASSWD_NEEDS_USERNAME 1
6145_ACEOF
6146
6007 ;; 6147 ;;
6008# UnixWare 7.x, OpenUNIX 8 6148# UnixWare 7.x, OpenUNIX 8
6009*-*-sysv5*) 6149*-*-sysv5*)
6150 check_for_libcrypt_later=1
6151
6152cat >>confdefs.h <<\_ACEOF
6153#define UNIXWARE_LONG_PASSWORDS 1
6154_ACEOF
6155
6010 cat >>confdefs.h <<\_ACEOF 6156 cat >>confdefs.h <<\_ACEOF
6011#define USE_PIPES 1 6157#define USE_PIPES 1
6012_ACEOF 6158_ACEOF
@@ -6023,6 +6169,21 @@ _ACEOF
6023#define BROKEN_SETREGID 1 6169#define BROKEN_SETREGID 1
6024_ACEOF 6170_ACEOF
6025 6171
6172
6173cat >>confdefs.h <<\_ACEOF
6174#define PASSWD_NEEDS_USERNAME 1
6175_ACEOF
6176
6177 case "$host" in
6178 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
6179 TEST_SHELL=/u95/bin/sh
6180
6181cat >>confdefs.h <<\_ACEOF
6182#define BROKEN_LIBIAF 1
6183_ACEOF
6184
6185 ;;
6186 esac
6026 ;; 6187 ;;
6027*-*-sysv*) 6188*-*-sysv*)
6028 ;; 6189 ;;
@@ -6355,6 +6516,42 @@ _ACEOF
6355_ACEOF 6516_ACEOF
6356 6517
6357 ;; 6518 ;;
6519
6520*-*-ultrix*)
6521
6522cat >>confdefs.h <<\_ACEOF
6523#define BROKEN_GETGROUPS
6524_ACEOF
6525
6526
6527cat >>confdefs.h <<\_ACEOF
6528#define BROKEN_MMAP
6529_ACEOF
6530
6531
6532cat >>confdefs.h <<\_ACEOF
6533#define NEED_SETPRGP
6534_ACEOF
6535
6536
6537cat >>confdefs.h <<\_ACEOF
6538#define HAVE_SYS_SYSLOG_H 1
6539_ACEOF
6540
6541 ;;
6542
6543*-*-lynxos)
6544 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
6545 cat >>confdefs.h <<\_ACEOF
6546#define MISSING_HOWMANY 1
6547_ACEOF
6548
6549
6550cat >>confdefs.h <<\_ACEOF
6551#define BROKEN_SETVBUF 1
6552_ACEOF
6553
6554 ;;
6358esac 6555esac
6359 6556
6360# Allow user to specify flags 6557# Allow user to specify flags
@@ -6363,7 +6560,8 @@ esac
6363if test "${with_cflags+set}" = set; then 6560if test "${with_cflags+set}" = set; then
6364 withval="$with_cflags" 6561 withval="$with_cflags"
6365 6562
6366 if test "x$withval" != "xno" ; then 6563 if test -n "$withval" && test "x$withval" != "xno" && \
6564 test "x${withval}" != "xyes"; then
6367 CFLAGS="$CFLAGS $withval" 6565 CFLAGS="$CFLAGS $withval"
6368 fi 6566 fi
6369 6567
@@ -6374,7 +6572,8 @@ fi;
6374if test "${with_cppflags+set}" = set; then 6572if test "${with_cppflags+set}" = set; then
6375 withval="$with_cppflags" 6573 withval="$with_cppflags"
6376 6574
6377 if test "x$withval" != "xno"; then 6575 if test -n "$withval" && test "x$withval" != "xno" && \
6576 test "x${withval}" != "xyes"; then
6378 CPPFLAGS="$CPPFLAGS $withval" 6577 CPPFLAGS="$CPPFLAGS $withval"
6379 fi 6578 fi
6380 6579
@@ -6385,7 +6584,8 @@ fi;
6385if test "${with_ldflags+set}" = set; then 6584if test "${with_ldflags+set}" = set; then
6386 withval="$with_ldflags" 6585 withval="$with_ldflags"
6387 6586
6388 if test "x$withval" != "xno" ; then 6587 if test -n "$withval" && test "x$withval" != "xno" && \
6588 test "x${withval}" != "xyes"; then
6389 LDFLAGS="$LDFLAGS $withval" 6589 LDFLAGS="$LDFLAGS $withval"
6390 fi 6590 fi
6391 6591
@@ -6396,13 +6596,28 @@ fi;
6396if test "${with_libs+set}" = set; then 6596if test "${with_libs+set}" = set; then
6397 withval="$with_libs" 6597 withval="$with_libs"
6398 6598
6399 if test "x$withval" != "xno" ; then 6599 if test -n "$withval" && test "x$withval" != "xno" && \
6600 test "x${withval}" != "xyes"; then
6400 LIBS="$LIBS $withval" 6601 LIBS="$LIBS $withval"
6401 fi 6602 fi
6402 6603
6403 6604
6404fi; 6605fi;
6405 6606
6607# Check whether --with-Werror or --without-Werror was given.
6608if test "${with_Werror+set}" = set; then
6609 withval="$with_Werror"
6610
6611 if test -n "$withval" && test "x$withval" != "xno"; then
6612 werror_flags="-Werror"
6613 if "x${withval}" != "xyes"; then
6614 werror_flags="$withval"
6615 fi
6616 fi
6617
6618
6619fi;
6620
6406echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 6621echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6407echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 6622echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6408if test "$cross_compiling" = yes; then 6623if test "$cross_compiling" = yes; then
@@ -6451,7 +6666,6 @@ fi
6451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6452fi 6667fi
6453 6668
6454# Checks for header files.
6455 6669
6456echo "$as_me:$LINENO: checking for egrep" >&5 6670echo "$as_me:$LINENO: checking for egrep" >&5
6457echo $ECHO_N "checking for egrep... $ECHO_C" >&6 6671echo $ECHO_N "checking for egrep... $ECHO_C" >&6
@@ -6761,16 +6975,69 @@ done
6761 6975
6762 6976
6763 6977
6764for ac_header in bstring.h crypt.h dirent.h endian.h features.h \ 6978
6765 floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \ 6979
6766 login_cap.h maillock.h ndir.h netdb.h netgroup.h \ 6980
6767 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ 6981for ac_header in \
6768 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ 6982 bstring.h \
6769 strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \ 6983 crypt.h \
6770 sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \ 6984 dirent.h \
6771 sys/pstat.h sys/select.h sys/stat.h sys/stream.h \ 6985 endian.h \
6772 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \ 6986 features.h \
6773 time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h 6987 floatingpoint.h \
6988 getopt.h \
6989 glob.h \
6990 ia.h \
6991 iaf.h \
6992 lastlog.h \
6993 limits.h \
6994 login.h \
6995 login_cap.h \
6996 maillock.h \
6997 ndir.h \
6998 netdb.h \
6999 netgroup.h \
7000 netinet/in_systm.h \
7001 pam/pam_appl.h \
7002 paths.h \
7003 pty.h \
7004 readpassphrase.h \
7005 rpc/types.h \
7006 security/pam_appl.h \
7007 shadow.h \
7008 stddef.h \
7009 stdint.h \
7010 string.h \
7011 strings.h \
7012 sys/audit.h \
7013 sys/bitypes.h \
7014 sys/bsdtty.h \
7015 sys/cdefs.h \
7016 sys/dir.h \
7017 sys/mman.h \
7018 sys/ndir.h \
7019 sys/prctl.h \
7020 sys/pstat.h \
7021 sys/select.h \
7022 sys/stat.h \
7023 sys/stream.h \
7024 sys/stropts.h \
7025 sys/strtio.h \
7026 sys/sysmacros.h \
7027 sys/time.h \
7028 sys/timers.h \
7029 sys/un.h \
7030 time.h \
7031 tmpdir.h \
7032 ttyent.h \
7033 unistd.h \
7034 usersec.h \
7035 util.h \
7036 utime.h \
7037 utmp.h \
7038 utmpx.h \
7039 vis.h \
7040
6774do 7041do
6775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6776if eval "test \"\${$as_ac_Header+set}\" = set"; then 7043if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -6891,9 +7158,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
6891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6892 ( 7159 (
6893 cat <<\_ASBOX 7160 cat <<\_ASBOX
6894## ---------------------------------- ## 7161## ------------------------------------------- ##
6895## Report this to the OpenSSH lists. ## 7162## Report this to openssh-unix-dev@mindrot.org ##
6896## ---------------------------------- ## 7163## ------------------------------------------- ##
6897_ASBOX 7164_ASBOX
6898 ) | 7165 ) |
6899 sed "s/^/$as_me: WARNING: /" >&2 7166 sed "s/^/$as_me: WARNING: /" >&2
@@ -7547,9 +7814,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
7547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7548 ( 7815 (
7549 cat <<\_ASBOX 7816 cat <<\_ASBOX
7550## ---------------------------------- ## 7817## ------------------------------------------- ##
7551## Report this to the OpenSSH lists. ## 7818## Report this to openssh-unix-dev@mindrot.org ##
7552## ---------------------------------- ## 7819## ------------------------------------------- ##
7553_ASBOX 7820_ASBOX
7554 ) | 7821 ) |
7555 sed "s/^/$as_me: WARNING: /" >&2 7822 sed "s/^/$as_me: WARNING: /" >&2
@@ -7837,9 +8104,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
7837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7838 ( 8105 (
7839 cat <<\_ASBOX 8106 cat <<\_ASBOX
7840## ---------------------------------- ## 8107## ------------------------------------------- ##
7841## Report this to the OpenSSH lists. ## 8108## Report this to openssh-unix-dev@mindrot.org ##
7842## ---------------------------------- ## 8109## ------------------------------------------- ##
7843_ASBOX 8110_ASBOX
7844 ) | 8111 ) |
7845 sed "s/^/$as_me: WARNING: /" >&2 8112 sed "s/^/$as_me: WARNING: /" >&2
@@ -8171,12 +8438,11 @@ fi
8171# Check whether --with-zlib or --without-zlib was given. 8438# Check whether --with-zlib or --without-zlib was given.
8172if test "${with_zlib+set}" = set; then 8439if test "${with_zlib+set}" = set; then
8173 withval="$with_zlib" 8440 withval="$with_zlib"
8174 8441 if test "x$withval" = "xno" ; then
8175 if test "x$withval" = "xno" ; then 8442 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8176 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8177echo "$as_me: error: *** zlib is required ***" >&2;} 8443echo "$as_me: error: *** zlib is required ***" >&2;}
8178 { (exit 1); exit 1; }; } 8444 { (exit 1); exit 1; }; }
8179 fi 8445 elif test "x$withval" != "xyes"; then
8180 if test -d "$withval/lib"; then 8446 if test -d "$withval/lib"; then
8181 if test -n "${need_dash_r}"; then 8447 if test -n "${need_dash_r}"; then
8182 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 8448 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
@@ -8195,7 +8461,7 @@ echo "$as_me: error: *** zlib is required ***" >&2;}
8195 else 8461 else
8196 CPPFLAGS="-I${withval} ${CPPFLAGS}" 8462 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8197 fi 8463 fi
8198 8464 fi
8199 8465
8200fi; 8466fi;
8201 8467
@@ -8466,9 +8732,9 @@ echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8466echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 8732echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8467 ( 8733 (
8468 cat <<\_ASBOX 8734 cat <<\_ASBOX
8469## ---------------------------------- ## 8735## ------------------------------------------- ##
8470## Report this to the OpenSSH lists. ## 8736## Report this to openssh-unix-dev@mindrot.org ##
8471## ---------------------------------- ## 8737## ------------------------------------------- ##
8472_ASBOX 8738_ASBOX
8473 ) | 8739 ) |
8474 sed "s/^/$as_me: WARNING: /" >&2 8740 sed "s/^/$as_me: WARNING: /" >&2
@@ -8506,8 +8772,8 @@ if test "${with_zlib_version_check+set}" = set; then
8506 8772
8507fi; 8773fi;
8508 8774
8509echo "$as_me:$LINENO: checking for zlib 1.1.4 or greater" >&5 8775echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
8510echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6 8776echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6
8511if test "$cross_compiling" = yes; then 8777if test "$cross_compiling" = yes; then
8512 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 8778 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
8513echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} 8779echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
@@ -8520,15 +8786,25 @@ cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF 8786cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */ 8787/* end confdefs.h. */
8522 8788
8789#include <stdio.h>
8523#include <zlib.h> 8790#include <zlib.h>
8524int main() 8791int main()
8525{ 8792{
8526 int a, b, c, v; 8793 int a=0, b=0, c=0, d=0, n, v;
8527 if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3) 8794 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8795 if (n != 3 && n != 4)
8528 exit(1); 8796 exit(1);
8529 v = a*1000000 + b*1000 + c; 8797 v = a*1000000 + b*10000 + c*100 + d;
8530 if (v >= 1001004) 8798 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8799
8800 /* 1.1.4 is OK */
8801 if (a == 1 && b == 1 && c >= 4)
8802 exit(0);
8803
8804 /* 1.2.3 and up are OK */
8805 if (v >= 1020300)
8531 exit(0); 8806 exit(0);
8807
8532 exit(2); 8808 exit(2);
8533} 8809}
8534 8810
@@ -8544,29 +8820,31 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 ac_status=$? 8820 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then 8822 (exit $ac_status); }; }; then
8547 echo "$as_me:$LINENO: result: yes" >&5 8823 echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}yes" >&6 8824echo "${ECHO_T}no" >&6
8549else 8825else
8550 echo "$as_me: program exited with status $ac_status" >&5 8826 echo "$as_me: program exited with status $ac_status" >&5
8551echo "$as_me: failed program was:" >&5 8827echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5 8828sed 's/^/| /' conftest.$ac_ext >&5
8553 8829
8554( exit $ac_status ) 8830( exit $ac_status )
8555 echo "$as_me:$LINENO: result: no" >&5 8831 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}no" >&6 8832echo "${ECHO_T}yes" >&6
8557 if test -z "$zlib_check_nonfatal" ; then 8833 if test -z "$zlib_check_nonfatal" ; then
8558 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** 8834 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8559Your reported zlib version has known security problems. It's possible your 8835Your reported zlib version has known security problems. It's possible your
8560vendor has fixed these problems without changing the version number. If you 8836vendor has fixed these problems without changing the version number. If you
8561are sure this is the case, you can disable the check by running 8837are sure this is the case, you can disable the check by running
8562\"./configure --without-zlib-version-check\". 8838\"./configure --without-zlib-version-check\".
8563If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5 8839If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8840See http://www.gzip.org/zlib/ for details." >&5
8564echo "$as_me: error: *** zlib too old - check config.log *** 8841echo "$as_me: error: *** zlib too old - check config.log ***
8565Your reported zlib version has known security problems. It's possible your 8842Your reported zlib version has known security problems. It's possible your
8566vendor has fixed these problems without changing the version number. If you 8843vendor has fixed these problems without changing the version number. If you
8567are sure this is the case, you can disable the check by running 8844are sure this is the case, you can disable the check by running
8568\"./configure --without-zlib-version-check\". 8845\"./configure --without-zlib-version-check\".
8569If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;} 8846If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8847See http://www.gzip.org/zlib/ for details." >&2;}
8570 { (exit 1); exit 1; }; } 8848 { (exit 1); exit 1; }; }
8571 else 8849 else
8572 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 8850 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
@@ -9032,9 +9310,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
9032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9033 ( 9311 (
9034 cat <<\_ASBOX 9312 cat <<\_ASBOX
9035## ---------------------------------- ## 9313## ------------------------------------------- ##
9036## Report this to the OpenSSH lists. ## 9314## Report this to openssh-unix-dev@mindrot.org ##
9037## ---------------------------------- ## 9315## ------------------------------------------- ##
9038_ASBOX 9316_ASBOX
9039 ) | 9317 ) |
9040 sed "s/^/$as_me: WARNING: /" >&2 9318 sed "s/^/$as_me: WARNING: /" >&2
@@ -9753,7 +10031,8 @@ if test "${with_tcp_wrappers+set}" = set; then
9753 saved_LIBS="$LIBS" 10031 saved_LIBS="$LIBS"
9754 saved_LDFLAGS="$LDFLAGS" 10032 saved_LDFLAGS="$LDFLAGS"
9755 saved_CPPFLAGS="$CPPFLAGS" 10033 saved_CPPFLAGS="$CPPFLAGS"
9756 if test -n "${withval}" -a "${withval}" != "yes"; then 10034 if test -n "${withval}" && \
10035 test "x${withval}" != "xyes"; then
9757 if test -d "${withval}/lib"; then 10036 if test -d "${withval}/lib"; then
9758 if test -n "${need_dash_r}"; then 10037 if test -n "${need_dash_r}"; then
9759 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 10038 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
@@ -9856,13 +10135,17 @@ LIBEDIT_MSG="no"
9856if test "${with_libedit+set}" = set; then 10135if test "${with_libedit+set}" = set; then
9857 withval="$with_libedit" 10136 withval="$with_libedit"
9858 if test "x$withval" != "xno" ; then 10137 if test "x$withval" != "xno" ; then
10138 if test "x$withval" != "xyes"; then
10139 CPPFLAGS="$CPPFLAGS -I$withval/include"
10140 LDFLAGS="$LDFLAGS -L$withval/lib"
10141 fi
9859 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 10142 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
9860echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6 10143echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6
9861if test "${ac_cv_lib_edit_el_init+set}" = set; then 10144if test "${ac_cv_lib_edit_el_init+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6 10145 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else 10146else
9864 ac_check_lib_save_LIBS=$LIBS 10147 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ledit -lcurses 10148LIBS="-ledit -lcurses
9866 $LIBS" 10149 $LIBS"
9867cat >conftest.$ac_ext <<_ACEOF 10150cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */ 10151/* confdefs.h. */
@@ -9931,8 +10214,66 @@ _ACEOF
9931 LIBEDIT_MSG="yes" 10214 LIBEDIT_MSG="yes"
9932 10215
9933 10216
10217else
10218 { { echo "$as_me:$LINENO: error: libedit not found" >&5
10219echo "$as_me: error: libedit not found" >&2;}
10220 { (exit 1); exit 1; }; }
9934fi 10221fi
9935 10222
10223 echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
10224echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231
10232#include <histedit.h>
10233int main(void)
10234{
10235 int i = H_SETSIZE;
10236 el_init("", NULL, NULL, NULL);
10237 exit(0);
10238}
10239
10240_ACEOF
10241rm -f conftest.$ac_objext
10242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag"
10251 || test ! -s conftest.err'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest.$ac_objext'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 echo "$as_me:$LINENO: result: yes" >&5
10264echo "${ECHO_T}yes" >&6
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
10272echo "$as_me: error: libedit version is not compatible" >&2;}
10273 { (exit 1); exit 1; }; }
10274
10275fi
10276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi 10277 fi
9937 10278
9938fi; 10279fi;
@@ -10072,9 +10413,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
10072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10073 ( 10414 (
10074 cat <<\_ASBOX 10415 cat <<\_ASBOX
10075## ---------------------------------- ## 10416## ------------------------------------------- ##
10076## Report this to the OpenSSH lists. ## 10417## Report this to openssh-unix-dev@mindrot.org ##
10077## ---------------------------------- ## 10418## ------------------------------------------- ##
10078_ASBOX 10419_ASBOX
10079 ) | 10420 ) |
10080 sed "s/^/$as_me: WARNING: /" >&2 10421 sed "s/^/$as_me: WARNING: /" >&2
@@ -10407,6 +10748,10 @@ cat >>confdefs.h <<\_ACEOF
10407_ACEOF 10748_ACEOF
10408 10749
10409 ;; 10750 ;;
10751 no)
10752 echo "$as_me:$LINENO: result: no" >&5
10753echo "${ECHO_T}no" >&6
10754 ;;
10410 *) 10755 *)
10411 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 10756 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
10412echo "$as_me: error: Unknown audit module $withval" >&2;} 10757echo "$as_me: error: Unknown audit module $withval" >&2;}
@@ -10494,19 +10839,89 @@ fi;
10494 10839
10495 10840
10496 10841
10842
10843
10497for ac_func in \ 10844for ac_func in \
10498 arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \ 10845 arc4random \
10499 bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \ 10846 b64_ntop \
10500 freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \ 10847 __b64_ntop \
10501 getopt getpeereid _getpty getrlimit getttyent glob inet_aton \ 10848 b64_pton \
10502 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ 10849 __b64_pton \
10503 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ 10850 bcopy \
10504 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ 10851 bindresvport_sa \
10505 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ 10852 clock \
10506 setproctitle setregid setreuid setrlimit \ 10853 closefrom \
10507 setsid setvbuf sigaction sigvec snprintf socketpair strerror \ 10854 dirfd \
10508 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ 10855 fchmod \
10509 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ 10856 fchown \
10857 freeaddrinfo \
10858 futimes \
10859 getaddrinfo \
10860 getcwd \
10861 getgrouplist \
10862 getnameinfo \
10863 getopt \
10864 getpeereid \
10865 _getpty \
10866 getrlimit \
10867 getttyent \
10868 glob \
10869 inet_aton \
10870 inet_ntoa \
10871 inet_ntop \
10872 innetgr \
10873 login_getcapbool \
10874 md5_crypt \
10875 memmove \
10876 mkdtemp \
10877 mmap \
10878 ngetaddrinfo \
10879 nsleep \
10880 ogetaddrinfo \
10881 openlog_r \
10882 openpty \
10883 prctl \
10884 pstat \
10885 readpassphrase \
10886 realpath \
10887 recvmsg \
10888 rresvport_af \
10889 sendmsg \
10890 setdtablesize \
10891 setegid \
10892 setenv \
10893 seteuid \
10894 setgroups \
10895 setlogin \
10896 setpcred \
10897 setproctitle \
10898 setregid \
10899 setreuid \
10900 setrlimit \
10901 setsid \
10902 setvbuf \
10903 sigaction \
10904 sigvec \
10905 snprintf \
10906 socketpair \
10907 strdup \
10908 strerror \
10909 strlcat \
10910 strlcpy \
10911 strmode \
10912 strnvis \
10913 strtonum \
10914 strtoll \
10915 strtoul \
10916 sysconf \
10917 tcgetpgrp \
10918 truncate \
10919 unsetenv \
10920 updwtmpx \
10921 utimes \
10922 vhangup \
10923 vsnprintf \
10924 waitpid \
10510 10925
10511do 10926do
10512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -10904,9 +11319,9 @@ _ACEOF
10904fi 11319fi
10905 11320
10906 11321
10907echo "$as_me:$LINENO: checking whether strsep is declared" >&5 11322echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
10908echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 11323echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
10909if test "${ac_cv_have_decl_strsep+set}" = set; then 11324if test "${ac_cv_have_decl_getrusage+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6 11325 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else 11326else
10912 cat >conftest.$ac_ext <<_ACEOF 11327 cat >conftest.$ac_ext <<_ACEOF
@@ -10919,8 +11334,8 @@ $ac_includes_default
10919int 11334int
10920main () 11335main ()
10921{ 11336{
10922#ifndef strsep 11337#ifndef getrusage
10923 char *p = (char *) strsep; 11338 char *p = (char *) getrusage;
10924#endif 11339#endif
10925 11340
10926 ; 11341 ;
@@ -10949,20 +11364,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 ac_status=$? 11364 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then 11366 (exit $ac_status); }; }; then
10952 ac_cv_have_decl_strsep=yes 11367 ac_cv_have_decl_getrusage=yes
10953else 11368else
10954 echo "$as_me: failed program was:" >&5 11369 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5 11370sed 's/^/| /' conftest.$ac_ext >&5
10956 11371
10957ac_cv_have_decl_strsep=no 11372ac_cv_have_decl_getrusage=no
10958fi 11373fi
10959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10960fi 11375fi
10961echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 11376echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
10962echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 11377echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
10963if test $ac_cv_have_decl_strsep = yes; then 11378if test $ac_cv_have_decl_getrusage = yes; then
10964 11379
10965for ac_func in strsep 11380for ac_func in getrusage
10966do 11381do
10967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968echo "$as_me:$LINENO: checking for $ac_func" >&5 11383echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -11065,9 +11480,9 @@ done
11065 11480
11066fi 11481fi
11067 11482
11068echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 11483echo "$as_me:$LINENO: checking whether strsep is declared" >&5
11069echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 11484echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
11070if test "${ac_cv_have_decl_getrusage+set}" = set; then 11485if test "${ac_cv_have_decl_strsep+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6 11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else 11487else
11073 cat >conftest.$ac_ext <<_ACEOF 11488 cat >conftest.$ac_ext <<_ACEOF
@@ -11076,12 +11491,17 @@ _ACEOF
11076cat confdefs.h >>conftest.$ac_ext 11491cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF 11492cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */ 11493/* end confdefs.h. */
11079$ac_includes_default 11494
11495#ifdef HAVE_STRING_H
11496# include <string.h>
11497#endif
11498
11499
11080int 11500int
11081main () 11501main ()
11082{ 11502{
11083#ifndef getrusage 11503#ifndef strsep
11084 char *p = (char *) getrusage; 11504 char *p = (char *) strsep;
11085#endif 11505#endif
11086 11506
11087 ; 11507 ;
@@ -11110,20 +11530,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 ac_status=$? 11530 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then 11532 (exit $ac_status); }; }; then
11113 ac_cv_have_decl_getrusage=yes 11533 ac_cv_have_decl_strsep=yes
11114else 11534else
11115 echo "$as_me: failed program was:" >&5 11535 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5 11536sed 's/^/| /' conftest.$ac_ext >&5
11117 11537
11118ac_cv_have_decl_getrusage=no 11538ac_cv_have_decl_strsep=no
11119fi 11539fi
11120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121fi 11541fi
11122echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 11542echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
11123echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 11543echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
11124if test $ac_cv_have_decl_getrusage = yes; then 11544if test $ac_cv_have_decl_strsep = yes; then
11125 11545
11126for ac_func in getrusage 11546for ac_func in strsep
11127do 11547do
11128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11129echo "$as_me:$LINENO: checking for $ac_func" >&5 11549echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -12733,8 +13153,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 ac_status=$? 13153 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then 13155 (exit $ac_status); }; }; then
12736 echo "$as_me:$LINENO: result: yes" >&5 13156 echo "$as_me:$LINENO: result: yes" >&5
12737echo "${ECHO_T}yes" >&6 13157echo "${ECHO_T}yes" >&6
13158
13159cat >>confdefs.h <<\_ACEOF
13160#define HAVE_SO_PEERCRED
13161_ACEOF
13162
13163
12738else 13164else
12739 echo "$as_me: failed program was:" >&5 13165 echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5 13166sed 's/^/| /' conftest.$ac_ext >&5
@@ -12895,7 +13321,8 @@ rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftes
12895fi 13321fi
12896fi 13322fi
12897 13323
12898if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then 13324if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13325 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12899 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 13326 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
12900echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 13327echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
12901 if test "$cross_compiling" = yes; then 13328 if test "$cross_compiling" = yes; then
@@ -13002,7 +13429,8 @@ rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftes
13002fi 13429fi
13003fi 13430fi
13004 13431
13005if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_aix_broken_getaddrinfo" = "x1"; then 13432if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13433 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
13006 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 13434 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13007echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 13435echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13008 if test "$cross_compiling" = yes; then 13436 if test "$cross_compiling" = yes; then
@@ -14189,6 +14617,80 @@ fi
14189fi 14617fi
14190 14618
14191 14619
14620echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
14621echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6
14622if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624else
14625 ac_check_lib_save_LIBS=$LIBS
14626LIBS="-liaf $LIBS"
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633
14634/* Override any gcc2 internal prototype to avoid an error. */
14635#ifdef __cplusplus
14636extern "C"
14637#endif
14638/* We use char because int might match the return type of a gcc2
14639 builtin and then its argument prototype would still apply. */
14640char ia_openinfo ();
14641int
14642main ()
14643{
14644ia_openinfo ();
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext conftest$ac_exeext
14650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_cv_lib_iaf_ia_openinfo=yes
14672else
14673 echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
14676ac_cv_lib_iaf_ia_openinfo=no
14677fi
14678rm -f conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680LIBS=$ac_check_lib_save_LIBS
14681fi
14682echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
14683echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6
14684if test $ac_cv_lib_iaf_ia_openinfo = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686#define HAVE_LIBIAF 1
14687_ACEOF
14688
14689 LIBS="-liaf $LIBS"
14690
14691fi
14692
14693
14192### Configure cryptographic random number support 14694### Configure cryptographic random number support
14193 14695
14194# Check wheter OpenSSL seeds itself 14696# Check wheter OpenSSL seeds itself
@@ -14272,7 +14774,7 @@ echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
14272fi; 14774fi;
14273 14775
14274# Which randomness source do we use? 14776# Which randomness source do we use?
14275if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then 14777if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
14276 # OpenSSL only 14778 # OpenSSL only
14277 cat >>confdefs.h <<\_ACEOF 14779 cat >>confdefs.h <<\_ACEOF
14278#define OPENSSL_PRNG_ONLY 1 14780#define OPENSSL_PRNG_ONLY 1
@@ -14393,7 +14895,8 @@ entropy_timeout=200
14393if test "${with_entropy_timeout+set}" = set; then 14895if test "${with_entropy_timeout+set}" = set; then
14394 withval="$with_entropy_timeout" 14896 withval="$with_entropy_timeout"
14395 14897
14396 if test "x$withval" != "xno" ; then 14898 if test -n "$withval" && test "x$withval" != "xno" && \
14899 test "x${withval}" != "xyes"; then
14397 entropy_timeout=$withval 14900 entropy_timeout=$withval
14398 fi 14901 fi
14399 14902
@@ -14410,7 +14913,8 @@ SSH_PRIVSEP_USER=sshd
14410if test "${with_privsep_user+set}" = set; then 14913if test "${with_privsep_user+set}" = set; then
14411 withval="$with_privsep_user" 14914 withval="$with_privsep_user"
14412 14915
14413 if test -n "$withval"; then 14916 if test -n "$withval" && test "x$withval" != "xno" && \
14917 test "x${withval}" != "xyes"; then
14414 SSH_PRIVSEP_USER=$withval 14918 SSH_PRIVSEP_USER=$withval
14415 fi 14919 fi
14416 14920
@@ -19152,9 +19656,9 @@ fi
19152 19656
19153 19657
19154# We need int64_t or else certian parts of the compile will fail. 19658# We need int64_t or else certian parts of the compile will fail.
19155if test "x$ac_cv_have_int64_t" = "xno" -a \ 19659if test "x$ac_cv_have_int64_t" = "xno" && \
19156 "x$ac_cv_sizeof_long_int" != "x8" -a \ 19660 test "x$ac_cv_sizeof_long_int" != "x8" && \
19157 "x$ac_cv_sizeof_long_long_int" = "x0" ; then 19661 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
19158 echo "OpenSSH requires int64_t support. Contact your vendor or install" 19662 echo "OpenSSH requires int64_t support. Contact your vendor or install"
19159 echo "an alternative compiler (I.E., GCC) before continuing." 19663 echo "an alternative compiler (I.E., GCC) before continuing."
19160 echo "" 19664 echo ""
@@ -21068,9 +21572,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
21068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21069 ( 21573 (
21070 cat <<\_ASBOX 21574 cat <<\_ASBOX
21071## ---------------------------------- ## 21575## ------------------------------------------- ##
21072## Report this to the OpenSSH lists. ## 21576## Report this to openssh-unix-dev@mindrot.org ##
21073## ---------------------------------- ## 21577## ------------------------------------------- ##
21074_ASBOX 21578_ASBOX
21075 ) | 21579 ) |
21076 sed "s/^/$as_me: WARNING: /" >&2 21580 sed "s/^/$as_me: WARNING: /" >&2
@@ -21195,17 +21699,17 @@ _ACEOF
21195fi; 21699fi;
21196 21700
21197# Check whether user wants OpenSC support 21701# Check whether user wants OpenSC support
21702OPENSC_CONFIG="no"
21198 21703
21199# Check whether --with-opensc or --without-opensc was given. 21704# Check whether --with-opensc or --without-opensc was given.
21200if test "${with_opensc+set}" = set; then 21705if test "${with_opensc+set}" = set; then
21201 withval="$with_opensc" 21706 withval="$with_opensc"
21202 opensc_config_prefix="$withval" 21707
21203else 21708 if test "x$withval" != "xno" ; then
21204 opensc_config_prefix="" 21709 if test "x$withval" != "xyes" ; then
21205fi; 21710 OPENSC_CONFIG=$withval/bin/opensc-config
21206if test x$opensc_config_prefix != x ; then 21711 else
21207 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config 21712 # Extract the first word of "opensc-config", so it can be a program name with args.
21208 # Extract the first word of "opensc-config", so it can be a program name with args.
21209set dummy opensc-config; ac_word=$2 21713set dummy opensc-config; ac_word=$2
21210echo "$as_me:$LINENO: checking for $ac_word" >&5 21714echo "$as_me:$LINENO: checking for $ac_word" >&5
21211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -21245,22 +21749,26 @@ else
21245echo "${ECHO_T}no" >&6 21749echo "${ECHO_T}no" >&6
21246fi 21750fi
21247 21751
21248 if test "$OPENSC_CONFIG" != "no"; then 21752 fi
21249 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` 21753 if test "$OPENSC_CONFIG" != "no"; then
21250 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` 21754 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
21251 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" 21755 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
21252 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" 21756 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
21253 cat >>confdefs.h <<\_ACEOF 21757 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
21758 cat >>confdefs.h <<\_ACEOF
21254#define SMARTCARD 1 21759#define SMARTCARD 1
21255_ACEOF 21760_ACEOF
21256 21761
21257 cat >>confdefs.h <<\_ACEOF 21762 cat >>confdefs.h <<\_ACEOF
21258#define USE_OPENSC 1 21763#define USE_OPENSC 1
21259_ACEOF 21764_ACEOF
21260 21765
21261 SCARD_MSG="yes, using OpenSC" 21766 SCARD_MSG="yes, using OpenSC"
21262 fi 21767 fi
21263fi 21768 fi
21769
21770
21771fi;
21264 21772
21265# Check libraries needed by DNS fingerprint support 21773# Check libraries needed by DNS fingerprint support
21266echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 21774echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
@@ -21855,6 +22363,152 @@ _ACEOF
21855fi 22363fi
21856done 22364done
21857 22365
22366 echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
22367echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6
22368if test "${ac_cv_have_decl__getshort+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370else
22371 cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
22377#include <sys/types.h>
22378 #include <arpa/nameser.h>
22379
22380int
22381main ()
22382{
22383#ifndef _getshort
22384 char *p = (char *) _getshort;
22385#endif
22386
22387 ;
22388 return 0;
22389}
22390_ACEOF
22391rm -f conftest.$ac_objext
22392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393 (eval $ac_compile) 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_c_werror_flag"
22401 || test ! -s conftest.err'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; } &&
22407 { ac_try='test -s conftest.$ac_objext'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; }; then
22413 ac_cv_have_decl__getshort=yes
22414else
22415 echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418ac_cv_have_decl__getshort=no
22419fi
22420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22421fi
22422echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
22423echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6
22424if test $ac_cv_have_decl__getshort = yes; then
22425
22426cat >>confdefs.h <<_ACEOF
22427#define HAVE_DECL__GETSHORT 1
22428_ACEOF
22429
22430
22431else
22432 cat >>confdefs.h <<_ACEOF
22433#define HAVE_DECL__GETSHORT 0
22434_ACEOF
22435
22436
22437fi
22438echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
22439echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6
22440if test "${ac_cv_have_decl__getlong+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442else
22443 cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
22449#include <sys/types.h>
22450 #include <arpa/nameser.h>
22451
22452int
22453main ()
22454{
22455#ifndef _getlong
22456 char *p = (char *) _getlong;
22457#endif
22458
22459 ;
22460 return 0;
22461}
22462_ACEOF
22463rm -f conftest.$ac_objext
22464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465 (eval $ac_compile) 2>conftest.er1
22466 ac_status=$?
22467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ac_cv_have_decl__getlong=yes
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490ac_cv_have_decl__getlong=no
22491fi
22492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493fi
22494echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
22495echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6
22496if test $ac_cv_have_decl__getlong = yes; then
22497
22498cat >>confdefs.h <<_ACEOF
22499#define HAVE_DECL__GETLONG 1
22500_ACEOF
22501
22502
22503else
22504 cat >>confdefs.h <<_ACEOF
22505#define HAVE_DECL__GETLONG 0
22506_ACEOF
22507
22508
22509fi
22510
22511
21858 echo "$as_me:$LINENO: checking for HEADER.ad" >&5 22512 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
21859echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 22513echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
21860if test "${ac_cv_member_HEADER_ad+set}" = set; then 22514if test "${ac_cv_member_HEADER_ad+set}" = set; then
@@ -22594,9 +23248,9 @@ echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;
22594echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} 23248echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
22595 ( 23249 (
22596 cat <<\_ASBOX 23250 cat <<\_ASBOX
22597## ---------------------------------- ## 23251## ------------------------------------------- ##
22598## Report this to the OpenSSH lists. ## 23252## Report this to openssh-unix-dev@mindrot.org ##
22599## ---------------------------------- ## 23253## ------------------------------------------- ##
22600_ASBOX 23254_ASBOX
22601 ) | 23255 ) |
22602 sed "s/^/$as_me: WARNING: /" >&2 23256 sed "s/^/$as_me: WARNING: /" >&2
@@ -22740,9 +23394,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
22740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22741 ( 23395 (
22742 cat <<\_ASBOX 23396 cat <<\_ASBOX
22743## ---------------------------------- ## 23397## ------------------------------------------- ##
22744## Report this to the OpenSSH lists. ## 23398## Report this to openssh-unix-dev@mindrot.org ##
22745## ---------------------------------- ## 23399## ------------------------------------------- ##
22746_ASBOX 23400_ASBOX
22747 ) | 23401 ) |
22748 sed "s/^/$as_me: WARNING: /" >&2 23402 sed "s/^/$as_me: WARNING: /" >&2
@@ -22898,9 +23552,9 @@ echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result"
22898echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} 23552echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
22899 ( 23553 (
22900 cat <<\_ASBOX 23554 cat <<\_ASBOX
22901## ---------------------------------- ## 23555## ------------------------------------------- ##
22902## Report this to the OpenSSH lists. ## 23556## Report this to openssh-unix-dev@mindrot.org ##
22903## ---------------------------------- ## 23557## ------------------------------------------- ##
22904_ASBOX 23558_ASBOX
22905 ) | 23559 ) |
22906 sed "s/^/$as_me: WARNING: /" >&2 23560 sed "s/^/$as_me: WARNING: /" >&2
@@ -23057,9 +23711,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23058 ( 23712 (
23059 cat <<\_ASBOX 23713 cat <<\_ASBOX
23060## ---------------------------------- ## 23714## ------------------------------------------- ##
23061## Report this to the OpenSSH lists. ## 23715## Report this to openssh-unix-dev@mindrot.org ##
23062## ---------------------------------- ## 23716## ------------------------------------------- ##
23063_ASBOX 23717_ASBOX
23064 ) | 23718 ) |
23065 sed "s/^/$as_me: WARNING: /" >&2 23719 sed "s/^/$as_me: WARNING: /" >&2
@@ -23208,9 +23862,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23209 ( 23863 (
23210 cat <<\_ASBOX 23864 cat <<\_ASBOX
23211## ---------------------------------- ## 23865## ------------------------------------------- ##
23212## Report this to the OpenSSH lists. ## 23866## Report this to openssh-unix-dev@mindrot.org ##
23213## ---------------------------------- ## 23867## ------------------------------------------- ##
23214_ASBOX 23868_ASBOX
23215 ) | 23869 ) |
23216 sed "s/^/$as_me: WARNING: /" >&2 23870 sed "s/^/$as_me: WARNING: /" >&2
@@ -23359,9 +24013,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23360 ( 24014 (
23361 cat <<\_ASBOX 24015 cat <<\_ASBOX
23362## ---------------------------------- ## 24016## ------------------------------------------- ##
23363## Report this to the OpenSSH lists. ## 24017## Report this to openssh-unix-dev@mindrot.org ##
23364## ---------------------------------- ## 24018## ------------------------------------------- ##
23365_ASBOX 24019_ASBOX
23366 ) | 24020 ) |
23367 sed "s/^/$as_me: WARNING: /" >&2 24021 sed "s/^/$as_me: WARNING: /" >&2
@@ -23518,135 +24172,6 @@ _ACEOF
23518 24172
23519fi 24173fi
23520 24174
23521 echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5
23522echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
23523if test "${ac_cv_search_krb5_init_ets+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525else
23526 ac_func_search_save_LIBS=$LIBS
23527ac_cv_search_krb5_init_ets=no
23528cat >conftest.$ac_ext <<_ACEOF
23529/* confdefs.h. */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h. */
23534
23535/* Override any gcc2 internal prototype to avoid an error. */
23536#ifdef __cplusplus
23537extern "C"
23538#endif
23539/* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23541char krb5_init_ets ();
23542int
23543main ()
23544{
23545krb5_init_ets ();
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_search_krb5_init_ets="none required"
23573else
23574 echo "$as_me: failed program was:" >&5
23575sed 's/^/| /' conftest.$ac_ext >&5
23576
23577fi
23578rm -f conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23580if test "$ac_cv_search_krb5_init_ets" = no; then
23581 for ac_lib in $K5LIBS; do
23582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23583 cat >conftest.$ac_ext <<_ACEOF
23584/* confdefs.h. */
23585_ACEOF
23586cat confdefs.h >>conftest.$ac_ext
23587cat >>conftest.$ac_ext <<_ACEOF
23588/* end confdefs.h. */
23589
23590/* Override any gcc2 internal prototype to avoid an error. */
23591#ifdef __cplusplus
23592extern "C"
23593#endif
23594/* We use char because int might match the return type of a gcc2
23595 builtin and then its argument prototype would still apply. */
23596char krb5_init_ets ();
23597int
23598main ()
23599{
23600krb5_init_ets ();
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
23614 { ac_try='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest$ac_exeext'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_search_krb5_init_ets="-l$ac_lib"
23628break
23629else
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633fi
23634rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23636 done
23637fi
23638LIBS=$ac_func_search_save_LIBS
23639fi
23640echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5
23641echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
23642if test "$ac_cv_search_krb5_init_ets" != no; then
23643 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
23644 cat >>confdefs.h <<\_ACEOF
23645#define KRB5_INIT_ETS 1
23646_ACEOF
23647
23648fi
23649
23650 24175
23651 24176
23652fi; 24177fi;
@@ -23659,7 +24184,8 @@ PRIVSEP_PATH=/var/empty
23659if test "${with_privsep_path+set}" = set; then 24184if test "${with_privsep_path+set}" = set; then
23660 withval="$with_privsep_path" 24185 withval="$with_privsep_path"
23661 24186
23662 if test "x$withval" != "$no" ; then 24187 if test -n "$withval" && test "x$withval" != "xno" && \
24188 test "x${withval}" != "xyes"; then
23663 PRIVSEP_PATH=$withval 24189 PRIVSEP_PATH=$withval
23664 fi 24190 fi
23665 24191
@@ -23672,7 +24198,8 @@ fi;
23672if test "${with_xauth+set}" = set; then 24198if test "${with_xauth+set}" = set; then
23673 withval="$with_xauth" 24199 withval="$with_xauth"
23674 24200
23675 if test "x$withval" != "xno" ; then 24201 if test -n "$withval" && test "x$withval" != "xno" && \
24202 test "x${withval}" != "xyes"; then
23676 xauth_path=$withval 24203 xauth_path=$withval
23677 fi 24204 fi
23678 24205
@@ -24095,8 +24622,8 @@ _ACEOF
24095 fi 24622 fi
24096fi 24623fi
24097 24624
24098if test $ac_cv_func_login_getcapbool = "yes" -a \ 24625if test $ac_cv_func_login_getcapbool = "yes" && \
24099 $ac_cv_header_login_cap_h = "yes" ; then 24626 test $ac_cv_header_login_cap_h = "yes" ; then
24100 external_path_file=/etc/login.conf 24627 external_path_file=/etc/login.conf
24101fi 24628fi
24102 24629
@@ -24240,7 +24767,8 @@ fi
24240if test "${with_superuser_path+set}" = set; then 24767if test "${with_superuser_path+set}" = set; then
24241 withval="$with_superuser_path" 24768 withval="$with_superuser_path"
24242 24769
24243 if test "x$withval" != "xno" ; then 24770 if test -n "$withval" && test "x$withval" != "xno" && \
24771 test "x${withval}" != "xyes"; then
24244 cat >>confdefs.h <<_ACEOF 24772 cat >>confdefs.h <<_ACEOF
24245#define SUPERUSER_PATH "$withval" 24773#define SUPERUSER_PATH "$withval"
24246_ACEOF 24774_ACEOF
@@ -24324,7 +24852,8 @@ fi
24324if test "${with_pid_dir+set}" = set; then 24852if test "${with_pid_dir+set}" = set; then
24325 withval="$with_pid_dir" 24853 withval="$with_pid_dir"
24326 24854
24327 if test "x$withval" != "xno" ; then 24855 if test -n "$withval" && test "x$withval" != "xno" && \
24856 test "x${withval}" != "xyes"; then
24328 piddir=$withval 24857 piddir=$withval
24329 if test ! -d $piddir ; then 24858 if test ! -d $piddir ; then
24330 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 24859 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
@@ -24455,7 +24984,7 @@ if test "${with_lastlog+set}" = set; then
24455#define DISABLE_LASTLOG 1 24984#define DISABLE_LASTLOG 1
24456_ACEOF 24985_ACEOF
24457 24986
24458 else 24987 elif test -n "$withval" && test "x${withval}" != "xyes"; then
24459 conf_lastlog_location=$withval 24988 conf_lastlog_location=$withval
24460 fi 24989 fi
24461 24990
@@ -24931,6 +25460,8 @@ if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
24931 LIBS=`echo $LIBS | sed 's/-ldl //'` 25460 LIBS=`echo $LIBS | sed 's/-ldl //'`
24932fi 25461fi
24933 25462
25463CFLAGS="$CFLAGS $werror_flags"
25464
24934 25465
24935 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" 25466 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
24936 25467