summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure255
1 files changed, 191 insertions, 64 deletions
diff --git a/configure b/configure
index 7c19fc204..5ebdb15c6 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.444 . 2# From configure.ac Revision: 1.449 .
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#
@@ -693,6 +693,7 @@ LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG 693PATH_PASSWD_PROG
694LD 694LD
695SSHDLIBS 695SSHDLIBS
696PKGCONFIG
696LIBEDIT 697LIBEDIT
697INSTALL_SSH_RAND_HELPER 698INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER 699SSH_PRIVSEP_USER
@@ -7435,6 +7436,85 @@ fi
7435*-*-dragonfly*) 7436*-*-dragonfly*)
7436 SSHDLIBS="$SSHDLIBS -lcrypt" 7437 SSHDLIBS="$SSHDLIBS -lcrypt"
7437 ;; 7438 ;;
7439*-*-haiku*)
7440 LIBS="$LIBS -lbsd "
7441
7442{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7443echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7444if test "${ac_cv_lib_network_socket+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 ac_check_lib_save_LIBS=$LIBS
7448LIBS="-lnetwork $LIBS"
7449cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h. */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h. */
7455
7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462char socket ();
7463int
7464main ()
7465{
7466return socket ();
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext conftest$ac_exeext
7472if { (ac_try="$ac_link"
7473case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476esac
7477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 ac_cv_lib_network_socket=yes
7490else
7491 echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_lib_network_socket=no
7495fi
7496
7497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499LIBS=$ac_check_lib_save_LIBS
7500fi
7501{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7502echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7503if test $ac_cv_lib_network_socket = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505#define HAVE_LIBNETWORK 1
7506_ACEOF
7507
7508 LIBS="-lnetwork $LIBS"
7509
7510fi
7511
7512 cat >>confdefs.h <<\_ACEOF
7513#define HAVE_U_INT64_T 1
7514_ACEOF
7515
7516 MANTYPE=man
7517 ;;
7438*-*-hpux*) 7518*-*-hpux*)
7439 # first we define all of the options common to all HP-UX releases 7519 # first we define all of the options common to all HP-UX releases
7440 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 7520 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
@@ -12326,7 +12406,61 @@ LIBEDIT_MSG="no"
12326# Check whether --with-libedit was given. 12406# Check whether --with-libedit was given.
12327if test "${with_libedit+set}" = set; then 12407if test "${with_libedit+set}" = set; then
12328 withval=$with_libedit; if test "x$withval" != "xno" ; then 12408 withval=$with_libedit; if test "x$withval" != "xno" ; then
12329 if test "x$withval" != "xyes"; then 12409 if test "x$withval" = "xyes" ; then
12410 # Extract the first word of "pkg-config", so it can be a program name with args.
12411set dummy pkg-config; ac_word=$2
12412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12414if test "${ac_cv_path_PKGCONFIG+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 case $PKGCONFIG in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
12420 ;;
12421 *)
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
12430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12432 fi
12433done
12434done
12435IFS=$as_save_IFS
12436
12437 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
12438 ;;
12439esac
12440fi
12441PKGCONFIG=$ac_cv_path_PKGCONFIG
12442if test -n "$PKGCONFIG"; then
12443 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
12444echo "${ECHO_T}$PKGCONFIG" >&6; }
12445else
12446 { echo "$as_me:$LINENO: result: no" >&5
12447echo "${ECHO_T}no" >&6; }
12448fi
12449
12450
12451 if test "x$PKGCONFIG" != "xno"; then
12452 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
12453echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
12454 if "$PKGCONFIG" libedit; then
12455 { echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6; }
12457 use_pkgconfig_for_libedit=yes
12458 else
12459 { echo "$as_me:$LINENO: result: no" >&5
12460echo "${ECHO_T}no" >&6; }
12461 fi
12462 fi
12463 else
12330 CPPFLAGS="$CPPFLAGS -I${withval}/include" 12464 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12331 if test -n "${need_dash_r}"; then 12465 if test -n "${need_dash_r}"; then
12332 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 12466 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
@@ -12334,13 +12468,20 @@ if test "${with_libedit+set}" = set; then
12334 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 12468 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12335 fi 12469 fi
12336 fi 12470 fi
12471 if test "x$use_pkgconfig_for_libedit" == "xyes"; then
12472 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
12473 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
12474 else
12475 LIBEDIT="-ledit -lcurses"
12476 fi
12477 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
12337 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 12478 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12338echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } 12479echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12339if test "${ac_cv_lib_edit_el_init+set}" = set; then 12480if test "${ac_cv_lib_edit_el_init+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6 12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else 12482else
12342 ac_check_lib_save_LIBS=$LIBS 12483 ac_check_lib_save_LIBS=$LIBS
12343LIBS="-ledit -lcurses 12484LIBS="-ledit $OTHERLIBS
12344 $LIBS" 12485 $LIBS"
12345cat >conftest.$ac_ext <<_ACEOF 12486cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */ 12487/* confdefs.h. */
@@ -12402,7 +12543,6 @@ cat >>confdefs.h <<\_ACEOF
12402#define USE_LIBEDIT 1 12543#define USE_LIBEDIT 1
12403_ACEOF 12544_ACEOF
12404 12545
12405 LIBEDIT="-ledit -lcurses"
12406 LIBEDIT_MSG="yes" 12546 LIBEDIT_MSG="yes"
12407 12547
12408 12548
@@ -14961,7 +15101,8 @@ done
14961 15101
14962 15102
14963 15103
14964for ac_func in endutxent getutxent getutxid getutxline pututxline 15104
15105for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
14965do 15106do
14966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14967{ echo "$as_me:$LINENO: checking for $ac_func" >&5 15108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -15056,7 +15197,8 @@ done
15056 15197
15057 15198
15058 15199
15059for ac_func in setutxent utmpxname 15200
15201for ac_func in setutxdb setutxent utmpxname
15060do 15202do
15061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15062{ echo "$as_me:$LINENO: checking for $ac_func" >&5 15204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -29373,8 +29515,8 @@ _ACEOF
29373fi 29515fi
29374 29516
29375 29517
29376{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 29518{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
29377echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } 29519echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
29378cat >conftest.$ac_ext <<_ACEOF 29520cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h. */ 29521/* confdefs.h. */
29380_ACEOF 29522_ACEOF
@@ -29394,7 +29536,7 @@ cat >>conftest.$ac_ext <<_ACEOF
29394int 29536int
29395main () 29537main ()
29396{ 29538{
29397 char *utmpx = UTMPX_FILE; 29539 char *wtmpx = WTMPX_FILE;
29398 ; 29540 ;
29399 return 0; 29541 return 0;
29400} 29542}
@@ -29424,48 +29566,59 @@ sed 's/^/| /' conftest.$ac_ext >&5
29424 29566
29425 { echo "$as_me:$LINENO: result: no" >&5 29567 { echo "$as_me:$LINENO: result: no" >&5
29426echo "${ECHO_T}no" >&6; } 29568echo "${ECHO_T}no" >&6; }
29427 system_utmpx_path=no 29569 system_wtmpx_path=no
29428 29570
29429fi 29571fi
29430 29572
29431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432if test -z "$conf_utmpx_location"; then 29574if test -z "$conf_wtmpx_location"; then
29433 if test x"$system_utmpx_path" = x"no" ; then 29575 if test x"$system_wtmpx_path" = x"no" ; then
29434 cat >>confdefs.h <<\_ACEOF 29576 cat >>confdefs.h <<\_ACEOF
29435#define DISABLE_UTMPX 1 29577#define DISABLE_WTMPX 1
29436_ACEOF 29578_ACEOF
29437 29579
29438 fi 29580 fi
29439else 29581else
29440 29582
29441cat >>confdefs.h <<_ACEOF 29583cat >>confdefs.h <<_ACEOF
29442#define CONF_UTMPX_FILE "$conf_utmpx_location" 29584#define CONF_WTMPX_FILE "$conf_wtmpx_location"
29443_ACEOF 29585_ACEOF
29444 29586
29445fi 29587fi
29446 29588
29447{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 29589
29448echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } 29590if test ! -z "$blibpath" ; then
29449cat >conftest.$ac_ext <<_ACEOF 29591 LDFLAGS="$LDFLAGS $blibflags$blibpath"
29592 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
29593echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
29594fi
29595
29596CFLAGS="$CFLAGS $werror_flags"
29597
29598if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
29599 TEST_SSH_IPV6=no
29600else
29601 TEST_SSH_IPV6=yes
29602fi
29603{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
29604echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
29605if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
29606 echo $ECHO_N "(cached) $ECHO_C" >&6
29607else
29608 cat >conftest.$ac_ext <<_ACEOF
29450/* confdefs.h. */ 29609/* confdefs.h. */
29451_ACEOF 29610_ACEOF
29452cat confdefs.h >>conftest.$ac_ext 29611cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF 29612cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */ 29613/* end confdefs.h. */
29455 29614$ac_includes_default
29456#include <sys/types.h>
29457#include <utmp.h>
29458#ifdef HAVE_UTMPX_H
29459#include <utmpx.h>
29460#endif
29461#ifdef HAVE_PATHS_H
29462# include <paths.h>
29463#endif
29464
29465int 29615int
29466main () 29616main ()
29467{ 29617{
29468 char *wtmpx = WTMPX_FILE; 29618#ifndef BROKEN_GETADDRINFO
29619 (void) BROKEN_GETADDRINFO;
29620#endif
29621
29469 ; 29622 ;
29470 return 0; 29623 return 0;
29471} 29624}
@@ -29487,51 +29640,24 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 test -z "$ac_c_werror_flag" || 29640 test -z "$ac_c_werror_flag" ||
29488 test ! -s conftest.err 29641 test ! -s conftest.err
29489 } && test -s conftest.$ac_objext; then 29642 } && test -s conftest.$ac_objext; then
29490 { echo "$as_me:$LINENO: result: yes" >&5 29643 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
29491echo "${ECHO_T}yes" >&6; }
29492else 29644else
29493 echo "$as_me: failed program was:" >&5 29645 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5 29646sed 's/^/| /' conftest.$ac_ext >&5
29495 29647
29496 { echo "$as_me:$LINENO: result: no" >&5 29648 ac_cv_have_decl_BROKEN_GETADDRINFO=no
29497echo "${ECHO_T}no" >&6; }
29498 system_wtmpx_path=no
29499
29500fi 29649fi
29501 29650
29502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29503if test -z "$conf_wtmpx_location"; then
29504 if test x"$system_wtmpx_path" = x"no" ; then
29505 cat >>confdefs.h <<\_ACEOF
29506#define DISABLE_WTMPX 1
29507_ACEOF
29508
29509 fi
29510else
29511
29512cat >>confdefs.h <<_ACEOF
29513#define CONF_WTMPX_FILE "$conf_wtmpx_location"
29514_ACEOF
29515
29516fi 29652fi
29517 29653{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
29518 29654echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
29519if test ! -z "$blibpath" ; then 29655if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
29520 LDFLAGS="$LDFLAGS $blibflags$blibpath" 29656 TEST_SSH_IPV6=no
29521 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
29522echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
29523fi 29657fi
29524 29658
29525CFLAGS="$CFLAGS $werror_flags" 29659TEST_SSH_IPV6=$TEST_SSH_IPV6
29526 29660
29527if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
29528 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
29529 TEST_SSH_IPV6=no
29530
29531else
29532 TEST_SSH_IPV6=yes
29533
29534fi
29535 29661
29536 29662
29537ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh" 29663ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
@@ -30236,6 +30362,7 @@ LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
30236PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim 30362PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
30237LD!$LD$ac_delim 30363LD!$LD$ac_delim
30238SSHDLIBS!$SSHDLIBS$ac_delim 30364SSHDLIBS!$SSHDLIBS$ac_delim
30365PKGCONFIG!$PKGCONFIG$ac_delim
30239LIBEDIT!$LIBEDIT$ac_delim 30366LIBEDIT!$LIBEDIT$ac_delim
30240INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim 30367INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
30241SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim 30368SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
@@ -30255,7 +30382,6 @@ PROG_VMSTAT!$PROG_VMSTAT$ac_delim
30255PROG_UPTIME!$PROG_UPTIME$ac_delim 30382PROG_UPTIME!$PROG_UPTIME$ac_delim
30256PROG_IPCS!$PROG_IPCS$ac_delim 30383PROG_IPCS!$PROG_IPCS$ac_delim
30257PROG_TAIL!$PROG_TAIL$ac_delim 30384PROG_TAIL!$PROG_TAIL$ac_delim
30258INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
30259_ACEOF 30385_ACEOF
30260 30386
30261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 30387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -30297,6 +30423,7 @@ _ACEOF
30297ac_delim='%!_!# ' 30423ac_delim='%!_!# '
30298for ac_last_try in false false false false false :; do 30424for ac_last_try in false false false false false :; do
30299 cat >conf$$subs.sed <<_ACEOF 30425 cat >conf$$subs.sed <<_ACEOF
30426INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
30300KRB5CONF!$KRB5CONF$ac_delim 30427KRB5CONF!$KRB5CONF$ac_delim
30301PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim 30428PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
30302xauth_path!$xauth_path$ac_delim 30429xauth_path!$xauth_path$ac_delim
@@ -30312,7 +30439,7 @@ LIBOBJS!$LIBOBJS$ac_delim
30312LTLIBOBJS!$LTLIBOBJS$ac_delim 30439LTLIBOBJS!$LTLIBOBJS$ac_delim
30313_ACEOF 30440_ACEOF
30314 30441
30315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 30442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
30316 break 30443 break
30317 elif $ac_last_try; then 30444 elif $ac_last_try; then
30318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5