summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure426
1 files changed, 417 insertions, 9 deletions
diff --git a/configure b/configure
index 19cc20c84..0b757c6a4 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.409 . 2# From configure.ac Revision: 1.415 .
3# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5# 5#
@@ -203,7 +203,7 @@ if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded. 203 echo as_func_ret_failure succeeded.
204fi 204fi
205 205
206if (set x; as_func_ret_success y && test x = \"\$1\" ); then 206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 : 207 :
208else 208else
209 exitcode=1 209 exitcode=1
@@ -407,7 +407,7 @@ if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded. 407 echo as_func_ret_failure succeeded.
408fi 408fi
409 409
410if (set x; as_func_ret_success y && test x = \"\$1\" ); then 410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 : 411 :
412else 412else
413 exitcode=1 413 exitcode=1
@@ -5461,7 +5461,7 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5461 5461
5462 # -fstack-protector-all doesn't always work for some GCC versions 5462 # -fstack-protector-all doesn't always work for some GCC versions
5463 # and/or platforms, so we test if we can. If it's not supported 5463 # and/or platforms, so we test if we can. If it's not supported
5464 # on a give platform gcc will emit a warning so we use -Werror. 5464 # on a given platform gcc will emit a warning so we use -Werror.
5465 if test "x$use_stack_protector" = "x1"; then 5465 if test "x$use_stack_protector" = "x1"; then
5466 for t in -fstack-protector-all -fstack-protector; do 5466 for t in -fstack-protector-all -fstack-protector; do
5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
@@ -5477,8 +5477,8 @@ cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF 5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */ 5478/* end confdefs.h. */
5479 5479
5480#include <stdlib.h> 5480#include <stdio.h>
5481int main(void){return 0;} 5481int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5482 5482
5483_ACEOF 5483_ACEOF
5484rm -f conftest.$ac_objext conftest$ac_exeext 5484rm -f conftest.$ac_objext conftest$ac_exeext
@@ -5518,8 +5518,8 @@ cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF 5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */ 5519/* end confdefs.h. */
5520 5520
5521#include <stdlib.h> 5521#include <stdio.h>
5522int main(void){exit(0);} 5522int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5523 5523
5524_ACEOF 5524_ACEOF
5525rm -f conftest$ac_exeext 5525rm -f conftest$ac_exeext
@@ -7365,6 +7365,11 @@ _ACEOF
7365 7365
7366 #include <bsm/audit.h> 7366 #include <bsm/audit.h>
7367 7367
7368cat >>confdefs.h <<\_ACEOF
7369#define LASTLOG_WRITE_PUTUTXLINE 1
7370_ACEOF
7371
7372
7368fi 7373fi
7369 7374
7370 ;; 7375 ;;
@@ -7681,6 +7686,31 @@ _ACEOF
7681_ACEOF 7686_ACEOF
7682 7687
7683 ;; 7688 ;;
7689*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7690 check_for_libcrypt_later=1
7691 cat >>confdefs.h <<\_ACEOF
7692#define PAM_TTY_KLUDGE 1
7693_ACEOF
7694
7695 cat >>confdefs.h <<\_ACEOF
7696#define LOCKED_PASSWD_PREFIX "!"
7697_ACEOF
7698
7699 cat >>confdefs.h <<\_ACEOF
7700#define SPT_TYPE SPT_REUSEARGV
7701_ACEOF
7702
7703
7704cat >>confdefs.h <<\_ACEOF
7705#define _PATH_BTMP "/var/log/btmp"
7706_ACEOF
7707
7708
7709cat >>confdefs.h <<\_ACEOF
7710#define USE_BTMP 1
7711_ACEOF
7712
7713 ;;
7684*-*-linux*) 7714*-*-linux*)
7685 no_dev_ptmx=1 7715 no_dev_ptmx=1
7686 check_for_libcrypt_later=1 7716 check_for_libcrypt_later=1
@@ -8744,7 +8774,6 @@ _ACEOF
8744 ;; 8774 ;;
8745# UnixWare 7.x, OpenUNIX 8 8775# UnixWare 7.x, OpenUNIX 8
8746*-*-sysv5*) 8776*-*-sysv5*)
8747 check_for_libcrypt_later=1
8748 8777
8749cat >>confdefs.h <<\_ACEOF 8778cat >>confdefs.h <<\_ACEOF
8750#define UNIXWARE_LONG_PASSWORDS 1 8779#define UNIXWARE_LONG_PASSWORDS 1
@@ -8782,11 +8811,181 @@ _ACEOF
8782#define BROKEN_UPDWTMPX 1 8811#define BROKEN_UPDWTMPX 1
8783_ACEOF 8812_ACEOF
8784 8813
8814 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
8815echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
8816if test "${ac_cv_lib_prot_getluid+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819 ac_check_lib_save_LIBS=$LIBS
8820LIBS="-lprot $LIBS"
8821cat >conftest.$ac_ext <<_ACEOF
8822/* confdefs.h. */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h. */
8827
8828/* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8831#ifdef __cplusplus
8832extern "C"
8833#endif
8834char getluid ();
8835int
8836main ()
8837{
8838return getluid ();
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext conftest$ac_exeext
8844if { (ac_try="$ac_link"
8845case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848esac
8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_link") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext &&
8860 $as_test_x conftest$ac_exeext; then
8861 ac_cv_lib_prot_getluid=yes
8862else
8863 echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
8866 ac_cv_lib_prot_getluid=no
8867fi
8868
8869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8870 conftest$ac_exeext conftest.$ac_ext
8871LIBS=$ac_check_lib_save_LIBS
8872fi
8873{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
8874echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
8875if test $ac_cv_lib_prot_getluid = yes; then
8876 LIBS="$LIBS -lprot"
8877
8878
8879for ac_func in getluid setluid
8880do
8881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887 cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h. */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
8892/* end confdefs.h. */
8893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8895#define $ac_func innocuous_$ac_func
8896
8897/* System header to define __stub macros and hopefully few prototypes,
8898 which can conflict with char $ac_func (); below.
8899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8900 <limits.h> exists even on freestanding compilers. */
8901
8902#ifdef __STDC__
8903# include <limits.h>
8904#else
8905# include <assert.h>
8906#endif
8907
8908#undef $ac_func
8909
8910/* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8913#ifdef __cplusplus
8914extern "C"
8915#endif
8916char $ac_func ();
8917/* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920#if defined __stub_$ac_func || defined __stub___$ac_func
8921choke me
8922#endif
8923
8924int
8925main ()
8926{
8927return $ac_func ();
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext conftest$ac_exeext
8933if { (ac_try="$ac_link"
8934case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937esac
8938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_link") 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest$ac_exeext &&
8949 $as_test_x conftest$ac_exeext; then
8950 eval "$as_ac_var=yes"
8951else
8952 echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 eval "$as_ac_var=no"
8956fi
8957
8958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8959 conftest$ac_exeext conftest.$ac_ext
8960fi
8961ac_res=`eval echo '${'$as_ac_var'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963echo "${ECHO_T}$ac_res" >&6; }
8964if test `eval echo '${'$as_ac_var'}'` = yes; then
8965 cat >>confdefs.h <<_ACEOF
8966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8967_ACEOF
8968
8969fi
8970done
8971
8972 cat >>confdefs.h <<\_ACEOF
8973#define HAVE_SECUREWARE 1
8974_ACEOF
8975
8976 cat >>confdefs.h <<\_ACEOF
8977#define DISABLE_SHADOW 1
8978_ACEOF
8979
8980
8981fi
8982
8785 ;; 8983 ;;
8786 *) cat >>confdefs.h <<\_ACEOF 8984 *) cat >>confdefs.h <<\_ACEOF
8787#define LOCKED_PASSWD_STRING "*LK*" 8985#define LOCKED_PASSWD_STRING "*LK*"
8788_ACEOF 8986_ACEOF
8789 8987
8988 check_for_libcrypt_later=1
8790 ;; 8989 ;;
8791 esac 8990 esac
8792 ;; 8991 ;;
@@ -14775,6 +14974,100 @@ fi
14775done 14974done
14776 14975
14777 14976
14977for ac_func in getlastlogxbyname
14978do
14979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984else
14985 cat >conftest.$ac_ext <<_ACEOF
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14993#define $ac_func innocuous_$ac_func
14994
14995/* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func (); below.
14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 <limits.h> exists even on freestanding compilers. */
14999
15000#ifdef __STDC__
15001# include <limits.h>
15002#else
15003# include <assert.h>
15004#endif
15005
15006#undef $ac_func
15007
15008/* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011#ifdef __cplusplus
15012extern "C"
15013#endif
15014char $ac_func ();
15015/* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018#if defined __stub_$ac_func || defined __stub___$ac_func
15019choke me
15020#endif
15021
15022int
15023main ()
15024{
15025return $ac_func ();
15026 ;
15027 return 0;
15028}
15029_ACEOF
15030rm -f conftest.$ac_objext conftest$ac_exeext
15031if { (ac_try="$ac_link"
15032case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
15048 eval "$as_ac_var=yes"
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 eval "$as_ac_var=no"
15054fi
15055
15056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15057 conftest$ac_exeext conftest.$ac_ext
15058fi
15059ac_res=`eval echo '${'$as_ac_var'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061echo "${ECHO_T}$ac_res" >&6; }
15062if test `eval echo '${'$as_ac_var'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15065_ACEOF
15066
15067fi
15068done
15069
15070
14778{ echo "$as_me:$LINENO: checking for daemon" >&5 15071{ echo "$as_me:$LINENO: checking for daemon" >&5
14779echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } 15072echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14780if test "${ac_cv_func_daemon+set}" = set; then 15073if test "${ac_cv_func_daemon+set}" = set; then
@@ -22501,6 +22794,121 @@ cat >>confdefs.h <<\_ACEOF
22501#define HAVE_STRUCT_IN6_ADDR 1 22794#define HAVE_STRUCT_IN6_ADDR 1
22502_ACEOF 22795_ACEOF
22503 22796
22797
22798 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
22799echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
22800if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
22801 echo $ECHO_N "(cached) $ECHO_C" >&6
22802else
22803 cat >conftest.$ac_ext <<_ACEOF
22804/* confdefs.h. */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h. */
22809
22810#ifdef HAVE_SYS_TYPES_H
22811#include <sys/types.h>
22812#endif
22813#include <netinet/in.h>
22814
22815
22816int
22817main ()
22818{
22819static struct sockaddr_in6 ac_aggr;
22820if (ac_aggr.sin6_scope_id)
22821return 0;
22822 ;
22823 return 0;
22824}
22825_ACEOF
22826rm -f conftest.$ac_objext
22827if { (ac_try="$ac_compile"
22828case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831esac
22832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_compile") 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } && {
22840 test -z "$ac_c_werror_flag" ||
22841 test ! -s conftest.err
22842 } && test -s conftest.$ac_objext; then
22843 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
22844else
22845 echo "$as_me: failed program was:" >&5
22846sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 cat >conftest.$ac_ext <<_ACEOF
22849/* confdefs.h. */
22850_ACEOF
22851cat confdefs.h >>conftest.$ac_ext
22852cat >>conftest.$ac_ext <<_ACEOF
22853/* end confdefs.h. */
22854
22855#ifdef HAVE_SYS_TYPES_H
22856#include <sys/types.h>
22857#endif
22858#include <netinet/in.h>
22859
22860
22861int
22862main ()
22863{
22864static struct sockaddr_in6 ac_aggr;
22865if (sizeof ac_aggr.sin6_scope_id)
22866return 0;
22867 ;
22868 return 0;
22869}
22870_ACEOF
22871rm -f conftest.$ac_objext
22872if { (ac_try="$ac_compile"
22873case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876esac
22877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22879 ac_status=$?
22880 grep -v '^ *+' conftest.er1 >conftest.err
22881 rm -f conftest.er1
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
22889else
22890 echo "$as_me: failed program was:" >&5
22891sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
22894fi
22895
22896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897fi
22898
22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900fi
22901{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
22902echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
22903if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
22904
22905cat >>confdefs.h <<_ACEOF
22906#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
22907_ACEOF
22908
22909
22910fi
22911
22504fi 22912fi
22505 22913
22506{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 22914{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5