Changeset 33034


Ignore:
Timestamp:
Aug 6, 2017, 10:23:09 PM (2 weeks ago)
Author:
brainslayer
Message:

hack the config script for cross compiling

Location:
src/router/nmap/libssh2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/router/nmap/libssh2/Makefile.in

    r32990 r33034  
    1 # Makefile.in generated by automake 1.15 from Makefile.am.
     1# Makefile.in generated by automake 1.13.4 from Makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
     4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
    55
    66# This Makefile.in is free software; the Free Software Foundation
     
    1717
    1818VPATH = @srcdir@
    19 am__is_gnu_make = { \
    20   if test -z '$(MAKELEVEL)'; then \
    21     false; \
    22   elif test -n '$(MAKE_HOST)'; then \
    23     true; \
    24   elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
    25     true; \
    26   else \
    27     false; \
    28   fi; \
    29 }
     19am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
    3020am__make_running_with_option = \
    3121  case $${target_option-} in \
     
    9080build_triplet = @build@
    9181host_triplet = @host@
     82DIST_COMMON = $(srcdir)/Makefile.inc $(srcdir)/Makefile.in \
     83        $(srcdir)/Makefile.am $(top_srcdir)/configure \
     84        $(am__configure_deps) $(srcdir)/libssh2.pc.in \
     85        $(include_HEADERS) COPYING ChangeLog NEWS README compile \
     86        config.guess config.rpath config.sub depcomp install-sh \
     87        missing ltmain.sh
    9288subdir = .
    9389ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    10096am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    10197        $(ACLOCAL_M4)
    102 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
    103         $(am__configure_deps) $(include_HEADERS) $(am__DIST_COMMON)
    10498am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
    10599 configure.lineno config.status.lineno
    106100mkinstalldirs = $(install_sh) -d
    107 CONFIG_HEADER = $(top_builddir)/src/libssh2_config.h \
    108         $(top_builddir)/example/libssh2_config.h
     101CONFIG_HEADER = $(top_builddir)/src/libssh2_config.h
    109102CONFIG_CLEAN_FILES = libssh2.pc
    110103CONFIG_CLEAN_VPATH_FILES =
     
    196189CSCOPE = cscope
    197190DIST_SUBDIRS = $(SUBDIRS)
    198 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.inc \
    199         $(srcdir)/libssh2.pc.in COPYING ChangeLog NEWS README compile \
    200         config.guess config.rpath config.sub depcomp install-sh \
    201         ltmain.sh missing
    202191DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    203192distdir = $(PACKAGE)-$(VERSION)
     
    274263HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@
    275264HAVE_LIBMBEDTLS = @HAVE_LIBMBEDTLS@
    276 HAVE_LIBSSL = @HAVE_LIBSSL@
    277265HAVE_LIBZ = @HAVE_LIBZ@
    278266INSTALL = @INSTALL@
     
    295283LIBSREQUIRED = @LIBSREQUIRED@
    296284LIBSSH2VER = @LIBSSH2VER@
    297 LIBSSL = @LIBSSL@
    298 LIBSSL_PREFIX = @LIBSSL_PREFIX@
    299285LIBTOOL = @LIBTOOL@
    300286LIBZ = @LIBZ@
     
    307293LTLIBMBEDTLS = @LTLIBMBEDTLS@
    308294LTLIBOBJS = @LTLIBOBJS@
    309 LTLIBSSL = @LTLIBSSL@
    310295LTLIBZ = @LTLIBZ@
    311296LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
     
    379364program_transform_name = @program_transform_name@
    380365psdir = @psdir@
    381 runstatedir = @runstatedir@
    382366sbindir = @sbindir@
    383367sharedstatedir = @sharedstatedir@
     
    390374AUTOMAKE_OPTIONS = foreign nostdinc
    391375SUBDIRS = src
     376#SUBDIRS = src tests docs
     377#if BUILD_EXAMPLES
     378#SUBDIRS += example
     379#endif
    392380pkgconfigdir = $(libdir)/pkgconfig
    393381pkgconfig_DATA = libssh2.pc
     
    463451        $(am__cd) $(top_srcdir) && \
    464452          $(AUTOMAKE) --foreign Makefile
     453.PRECIOUS: Makefile
    465454Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    466455        @case '$?' in \
     
    472461            cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
    473462        esac;
    474 $(srcdir)/Makefile.inc $(am__empty):
     463$(srcdir)/Makefile.inc:
    475464
    476465$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     
    726715
    727716dist-tarZ: distdir
    728         @echo WARNING: "Support for distribution archives compressed with" \
    729                        "legacy program 'compress' is deprecated." >&2
    730         @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
    731717        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
    732718        $(am__post_remove_distdir)
    733719
    734720dist-shar: distdir
    735         @echo WARNING: "Support for shar distribution archives is" \
    736                        "deprecated." >&2
    737         @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
    738721        shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
    739722        $(am__post_remove_distdir)
     
    770753        chmod -R a-w $(distdir)
    771754        chmod u+w $(distdir)
    772         mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
     755        mkdir $(distdir)/_build $(distdir)/_inst
    773756        chmod a-w $(distdir)
    774757        test -d $(distdir)/_build || exit 0; \
     
    776759          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
    777760          && am__cwd=`pwd` \
    778           && $(am__cd) $(distdir)/_build/sub \
    779           && ../../configure \
     761          && $(am__cd) $(distdir)/_build \
     762          && ../configure --srcdir=.. --prefix="$$dc_install_base" \
    780763            $(AM_DISTCHECK_CONFIGURE_FLAGS) \
    781764            $(DISTCHECK_CONFIGURE_FLAGS) \
    782             --srcdir=../.. --prefix="$$dc_install_base" \
    783765          && $(MAKE) $(AM_MAKEFLAGS) \
    784766          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     
    962944        uninstall-am uninstall-includeHEADERS uninstall-pkgconfigDATA
    963945
    964 .PRECIOUS: Makefile
    965 
    966946
    967947.PHONY: ChangeLog
  • src/router/nmap/libssh2/aclocal.m4

    r32990 r33034  
    1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
     1# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
     2
     3# Copyright (C) 1996-2013 Free Software Foundation, Inc.
    44
    55# This file is free software; the Free Software Foundation
     
    2121To do so, use the procedure documented by the package, typically 'autoreconf'.])])
    2222
    23 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
     23# Copyright (C) 2002-2013 Free Software Foundation, Inc.
    2424#
    2525# This file is free software; the Free Software Foundation
     
    3333# (This private macro should not be called outside this file.)
    3434AC_DEFUN([AM_AUTOMAKE_VERSION],
    35 [am__api_version='1.15'
     35[am__api_version='1.13'
    3636dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
    3737dnl require some minimum version.  Point them to the right macro.
    38 m4_if([$1], [1.15], [],
     38m4_if([$1], [1.13.4], [],
    3939      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
    4040])
     
    5252# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
    5353AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    54 [AM_AUTOMAKE_VERSION([1.15])dnl
     54[AM_AUTOMAKE_VERSION([1.13.4])dnl
    5555m4_ifndef([AC_AUTOCONF_VERSION],
    5656  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
     
    5959# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    6060
    61 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
     61# Copyright (C) 2001-2013 Free Software Foundation, Inc.
    6262#
    6363# This file is free software; the Free Software Foundation
     
    111111# AM_CONDITIONAL                                            -*- Autoconf -*-
    112112
    113 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
     113# Copyright (C) 1997-2013 Free Software Foundation, Inc.
    114114#
    115115# This file is free software; the Free Software Foundation
     
    142142fi])])
    143143
    144 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
     144# Copyright (C) 1999-2013 Free Software Foundation, Inc.
    145145#
    146146# This file is free software; the Free Software Foundation
     
    333333# Generate code to set up dependency tracking.              -*- Autoconf -*-
    334334
    335 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
     335# Copyright (C) 1999-2013 Free Software Foundation, Inc.
    336336#
    337337# This file is free software; the Free Software Foundation
     
    409409# Do all the work for Automake.                             -*- Autoconf -*-
    410410
    411 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
     411# Copyright (C) 1996-2013 Free Software Foundation, Inc.
    412412#
    413413# This file is free software; the Free Software Foundation
     
    417417# This macro actually does too much.  Some checks are only needed if
    418418# your package does certain things.  But this isn't really a big deal.
    419 
    420 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
    421 m4_define([AC_PROG_CC],
    422 m4_defn([AC_PROG_CC])
    423 [_AM_PROG_CC_C_O
    424 ])
    425419
    426420# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     
    499493# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
    500494AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
    501 # We need awk for the "check" target (and possibly the TAP driver).  The
    502 # system "awk" is bad on some platforms.
     495# We need awk for the "check" target.  The system "awk" is bad on
     496# some platforms.
    503497AC_REQUIRE([AC_PROG_AWK])dnl
    504498AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     
    532526[m4_provide_if([_AM_COMPILER_EXEEXT],
    533527  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
    534 
    535 # POSIX will say in a future version that running "rm -f" with no argument
    536 # is OK; and we want to be able to make that assumption in our Makefile
    537 # recipes.  So use an aggressive probe to check that the usage we want is
    538 # actually supported "in the wild" to an acceptable degree.
    539 # See automake bug#10828.
    540 # To make any issue more visible, cause the running configure to be aborted
    541 # by default if the 'rm' program in use doesn't match our expectations; the
    542 # user can still override this though.
    543 if rm -f && rm -fr && rm -rf; then : OK; else
    544   cat >&2 <<'END'
    545 Oops!
    546 
    547 Your 'rm' program seems unable to run without file operands specified
    548 on the command line, even when the '-f' option is present.  This is contrary
    549 to the behaviour of most rm programs out there, and not conforming with
    550 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
    551 
    552 Please tell bug-automake@gnu.org about your system, including the value
    553 of your $PATH and any error possibly output before this message.  This
    554 can help us improve future automake versions.
    555 
    556 END
    557   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    558     echo 'Configuration will proceed anyway, since you have set the' >&2
    559     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    560     echo >&2
    561   else
    562     cat >&2 <<'END'
    563 Aborting the configuration process, to ensure you take notice of the issue.
    564 
    565 You can download and install GNU coreutils to get an 'rm' implementation
    566 that behaves properly: <http://www.gnu.org/software/coreutils/>.
    567 
    568 If you want to complete the configuration process using your problematic
    569 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
    570 to "yes", and re-run configure.
    571 
    572 END
    573     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
    574   fi
    575 fi
    576 dnl The trailing newline in this macro's definition is deliberate, for
    577 dnl backward compatibility and to allow trailing 'dnl'-style comments
    578 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
    579528])
    580529
     
    584533m4_define([_AC_COMPILER_EXEEXT],
    585534m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
     535
    586536
    587537# When config.status generates a header, we must update the stamp-h file.
     
    606556echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    607557
    608 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
     558# Copyright (C) 2001-2013 Free Software Foundation, Inc.
    609559#
    610560# This file is free software; the Free Software Foundation
     
    617567AC_DEFUN([AM_PROG_INSTALL_SH],
    618568[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    619 if test x"${install_sh+set}" != xset; then
     569if test x"${install_sh}" != xset; then
    620570  case $am_aux_dir in
    621571  *\ * | *\     *)
     
    627577AC_SUBST([install_sh])])
    628578
    629 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
     579# Copyright (C) 2003-2013 Free Software Foundation, Inc.
    630580#
    631581# This file is free software; the Free Software Foundation
     
    649599# From Jim Meyering
    650600
    651 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
     601# Copyright (C) 1996-2013 Free Software Foundation, Inc.
    652602#
    653603# This file is free software; the Free Software Foundation
     
    684634# Check to see how 'make' treats includes.                  -*- Autoconf -*-
    685635
    686 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
     636# Copyright (C) 2001-2013 Free Software Foundation, Inc.
    687637#
    688638# This file is free software; the Free Software Foundation
     
    734684# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    735685
    736 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
     686# Copyright (C) 1997-2013 Free Software Foundation, Inc.
    737687#
    738688# This file is free software; the Free Software Foundation
     
    773723# Helper functions for option handling.                     -*- Autoconf -*-
    774724
    775 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
     725# Copyright (C) 2001-2013 Free Software Foundation, Inc.
    776726#
    777727# This file is free software; the Free Software Foundation
     
    802752[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    803753
    804 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
    805 #
    806 # This file is free software; the Free Software Foundation
    807 # gives unlimited permission to copy and/or distribute it,
    808 # with or without modifications, as long as this notice is preserved.
    809 
    810 # _AM_PROG_CC_C_O
    811 # ---------------
    812 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
    813 # to automatically call this.
    814 AC_DEFUN([_AM_PROG_CC_C_O],
    815 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    816 AC_REQUIRE_AUX_FILE([compile])dnl
    817 AC_LANG_PUSH([C])dnl
    818 AC_CACHE_CHECK(
    819   [whether $CC understands -c and -o together],
    820   [am_cv_prog_cc_c_o],
    821   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
    822   # Make sure it works both with $CC and with simple cc.
    823   # Following AC_PROG_CC_C_O, we do the test twice because some
    824   # compilers refuse to overwrite an existing .o file with -o,
    825   # though they will create one.
    826   am_cv_prog_cc_c_o=yes
    827   for am_i in 1 2; do
    828     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
    829          && test -f conftest2.$ac_objext; then
    830       : OK
    831     else
    832       am_cv_prog_cc_c_o=no
    833       break
    834     fi
    835   done
    836   rm -f core conftest*
    837   unset am_i])
    838 if test "$am_cv_prog_cc_c_o" != yes; then
    839    # Losing compiler, so override with the script.
    840    # FIXME: It is wrong to rewrite CC.
    841    # But if we don't then we get into trouble of one sort or another.
    842    # A longer-term fix would be to have automake use am__CC in this case,
    843    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
    844    CC="$am_aux_dir/compile $CC"
    845 fi
    846 AC_LANG_POP([C])])
    847 
    848 # For backward compatibility.
    849 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
    850 
    851 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
    852 #
    853 # This file is free software; the Free Software Foundation
    854 # gives unlimited permission to copy and/or distribute it,
    855 # with or without modifications, as long as this notice is preserved.
    856 
    857 # AM_RUN_LOG(COMMAND)
    858 # -------------------
    859 # Run COMMAND, save the exit status in ac_status, and log it.
    860 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
    861 AC_DEFUN([AM_RUN_LOG],
    862 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
    863    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
    864    ac_status=$?
    865    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    866    (exit $ac_status); }])
    867 
    868754# Check to make sure that the build environment is sane.    -*- Autoconf -*-
    869755
    870 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
     756# Copyright (C) 1996-2013 Free Software Foundation, Inc.
    871757#
    872758# This file is free software; the Free Software Foundation
     
    949835])
    950836
    951 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
     837# Copyright (C) 2009-2013 Free Software Foundation, Inc.
    952838#
    953839# This file is free software; the Free Software Foundation
     
    1009895])
    1010896
    1011 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
     897# Copyright (C) 2001-2013 Free Software Foundation, Inc.
    1012898#
    1013899# This file is free software; the Free Software Foundation
     
    1037923AC_SUBST([INSTALL_STRIP_PROGRAM])])
    1038924
    1039 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
     925# Copyright (C) 2006-2013 Free Software Foundation, Inc.
    1040926#
    1041927# This file is free software; the Free Software Foundation
     
    1056942# Check how to create a tarball.                            -*- Autoconf -*-
    1057943
    1058 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
     944# Copyright (C) 2004-2013 Free Software Foundation, Inc.
    1059945#
    1060946# This file is free software; the Free Software Foundation
  • src/router/nmap/libssh2/configure

    r32990 r33034  
    657657OPENSSL_FALSE
    658658OPENSSL_TRUE
    659 LIBSSL_PREFIX
    660 LTLIBSSL
    661 LIBSSL
    662 HAVE_LIBSSL
    663659LIBMBEDTLS_PREFIX
    664660LTLIBMBEDTLS
     
    779775oldincludedir
    780776includedir
    781 runstatedir
    782777localstatedir
    783778sharedstatedir
     
    824819with_libmbedtls_prefix
    825820with_libz
    826 with_libssl_prefix
    827821with_libz_prefix
    828822enable_crypt_none
     
    882876sharedstatedir='${prefix}/com'
    883877localstatedir='${prefix}/var'
    884 runstatedir='${localstatedir}/run'
    885878includedir='${prefix}/include'
    886879oldincludedir='/usr/include'
     
    11351128    silent=yes ;;
    11361129
    1137   -runstatedir | --runstatedir | --runstatedi | --runstated \
    1138   | --runstate | --runstat | --runsta | --runst | --runs \
    1139   | --run | --ru | --r)
    1140     ac_prev=runstatedir ;;
    1141   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
    1142   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
    1143   | --run=* | --ru=* | --r=*)
    1144     runstatedir=$ac_optarg ;;
    1145 
    11461130  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    11471131    ac_prev=sbindir ;;
     
    12811265                datadir sysconfdir sharedstatedir localstatedir includedir \
    12821266                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
    1283                 libdir localedir mandir runstatedir
     1267                libdir localedir mandir
    12841268do
    12851269  eval ac_val=\$$ac_var
     
    14341418  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    14351419  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    1436   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
    14371420  --libdir=DIR            object code libraries [EPREFIX/lib]
    14381421  --includedir=DIR        C header files [PREFIX/include]
     
    15281511  --without-libmbedtls-prefix     don't search for libmbedtls in includedir and libdir
    15291512  --with-libz             Use zlib for compression
    1530   --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
    1531   --without-libssl-prefix     don't search for libssl in includedir and libdir
    15321513  --with-libz-prefix[=DIR]  search for libz in DIR/include and DIR/lib
    15331514  --without-libz-prefix     don't search for libz in includedir and libdir
     
    1387413855    since some C++ compilers masquerading as C compilers
    1387513856    incorrectly reject 9223372036854775807.  */
    13876 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
     13857#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
    1387713858  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    1387813859                       && LARGE_OFF_T % 2147483647 == 1)
     
    1392013901    since some C++ compilers masquerading as C compilers
    1392113902    incorrectly reject 9223372036854775807.  */
    13922 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
     13903#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
    1392313904  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    1392413905                       && LARGE_OFF_T % 2147483647 == 1)
     
    1394413925    since some C++ compilers masquerading as C compilers
    1394513926    incorrectly reject 9223372036854775807.  */
    13946 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
     13927#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
    1394713928  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    1394813929                       && LARGE_OFF_T % 2147483647 == 1)
     
    1398913970    since some C++ compilers masquerading as C compilers
    1399013971    incorrectly reject 9223372036854775807.  */
    13991 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
     13972#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
    1399213973  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    1399313974                       && LARGE_OFF_T % 2147483647 == 1)
     
    1401313994    since some C++ compilers masquerading as C compilers
    1401413995    incorrectly reject 9223372036854775807.  */
    14015 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
     13996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
    1401613997  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
    1401713998                       && LARGE_OFF_T % 2147483647 == 1)
     
    1647216453support_clear_memory=no
    1647316454
    16474 # Look for OpenSSL
    16475 if test "$found_crypto" = "none" && test "$use_openssl" != "no"; then
    16476 
    16477 
    16478 
    16479 
    16480 
    16481 
    16482 
    16483 
    16484 
    16485 
    16486     use_additional=yes
    16487 
    16488   acl_save_prefix="$prefix"
    16489   prefix="$acl_final_prefix"
    16490   acl_save_exec_prefix="$exec_prefix"
    16491   exec_prefix="$acl_final_exec_prefix"
    16492 
    16493     eval additional_includedir=\"$includedir\"
    16494     eval additional_libdir=\"$libdir\"
    16495 
    16496   exec_prefix="$acl_save_exec_prefix"
    16497   prefix="$acl_save_prefix"
    16498 
    16499 
    16500 # Check whether --with-libssl-prefix was given.
    16501 if test "${with_libssl_prefix+set}" = set; then :
    16502   withval=$with_libssl_prefix;
    16503     if test "X$withval" = "Xno"; then
    16504       use_additional=no
    16505     else
    16506       if test "X$withval" = "X"; then
    16507 
    16508   acl_save_prefix="$prefix"
    16509   prefix="$acl_final_prefix"
    16510   acl_save_exec_prefix="$exec_prefix"
    16511   exec_prefix="$acl_final_exec_prefix"
    16512 
    16513           eval additional_includedir=\"$includedir\"
    16514           eval additional_libdir=\"$libdir\"
    16515 
    16516   exec_prefix="$acl_save_exec_prefix"
    16517   prefix="$acl_save_prefix"
    16518 
    16519       else
    16520         additional_includedir="$withval/include"
    16521         additional_libdir="$withval/$acl_libdirstem"
    16522       fi
    16523     fi
    16524 
    16525 fi
    16526 
    16527       LIBSSL=
    16528   LTLIBSSL=
    16529   INCSSL=
    16530   LIBSSL_PREFIX=
    16531   rpathdirs=
    16532   ltrpathdirs=
    16533   names_already_handled=
    16534   names_next_round='ssl crypto'
    16535   while test -n "$names_next_round"; do
    16536     names_this_round="$names_next_round"
    16537     names_next_round=
    16538     for name in $names_this_round; do
    16539       already_handled=
    16540       for n in $names_already_handled; do
    16541         if test "$n" = "$name"; then
    16542           already_handled=yes
    16543           break
    16544         fi
    16545       done
    16546       if test -z "$already_handled"; then
    16547         names_already_handled="$names_already_handled $name"
    16548                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
    16549         eval value=\"\$HAVE_LIB$uppername\"
    16550         if test -n "$value"; then
    16551           if test "$value" = yes; then
    16552             eval value=\"\$LIB$uppername\"
    16553             test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
    16554             eval value=\"\$LTLIB$uppername\"
    16555             test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
    16556           else
    16557                                     :
    16558           fi
    16559         else
    16560                               found_dir=
    16561           found_la=
    16562           found_so=
    16563           found_a=
    16564           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
    16565           if test -n "$acl_shlibext"; then
    16566             shrext=".$acl_shlibext"             # typically: shrext=.so
    16567           else
    16568             shrext=
    16569           fi
    16570           if test $use_additional = yes; then
    16571             dir="$additional_libdir"
    16572                                     if test -n "$acl_shlibext"; then
    16573               if test -f "$dir/$libname$shrext"; then
    16574                 found_dir="$dir"
    16575                 found_so="$dir/$libname$shrext"
    16576               else
    16577                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
    16578                   ver=`(cd "$dir" && \
    16579                         for f in "$libname$shrext".*; do echo "$f"; done \
    16580                         | sed -e "s,^$libname$shrext\\\\.,," \
    16581                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
    16582                         | sed 1q ) 2>/dev/null`
    16583                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
    16584                     found_dir="$dir"
    16585                     found_so="$dir/$libname$shrext.$ver"
    16586                   fi
    16587                 else
    16588                   eval library_names=\"$acl_library_names_spec\"
    16589                   for f in $library_names; do
    16590                     if test -f "$dir/$f"; then
    16591                       found_dir="$dir"
    16592                       found_so="$dir/$f"
    16593                       break
    16594                     fi
    16595                   done
    16596                 fi
    16597               fi
    16598             fi
    16599                         if test "X$found_dir" = "X"; then
    16600               if test -f "$dir/$libname.$acl_libext"; then
    16601                 found_dir="$dir"
    16602                 found_a="$dir/$libname.$acl_libext"
    16603               fi
    16604             fi
    16605             if test "X$found_dir" != "X"; then
    16606               if test -f "$dir/$libname.la"; then
    16607                 found_la="$dir/$libname.la"
    16608               fi
    16609             fi
    16610           fi
    16611           if test "X$found_dir" = "X"; then
    16612             for x in $LDFLAGS $LTLIBSSL; do
    16613 
    16614   acl_save_prefix="$prefix"
    16615   prefix="$acl_final_prefix"
    16616   acl_save_exec_prefix="$exec_prefix"
    16617   exec_prefix="$acl_final_exec_prefix"
    16618   eval x=\"$x\"
    16619   exec_prefix="$acl_save_exec_prefix"
    16620   prefix="$acl_save_prefix"
    16621 
    16622               case "$x" in
    16623                 -L*)
    16624                   dir=`echo "X$x" | sed -e 's/^X-L//'`
    16625                                     if test -n "$acl_shlibext"; then
    16626                     if test -f "$dir/$libname$shrext"; then
    16627                       found_dir="$dir"
    16628                       found_so="$dir/$libname$shrext"
    16629                     else
    16630                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
    16631                         ver=`(cd "$dir" && \
    16632                               for f in "$libname$shrext".*; do echo "$f"; done \
    16633                               | sed -e "s,^$libname$shrext\\\\.,," \
    16634                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
    16635                               | sed 1q ) 2>/dev/null`
    16636                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
    16637                           found_dir="$dir"
    16638                           found_so="$dir/$libname$shrext.$ver"
    16639                         fi
    16640                       else
    16641                         eval library_names=\"$acl_library_names_spec\"
    16642                         for f in $library_names; do
    16643                           if test -f "$dir/$f"; then
    16644                             found_dir="$dir"
    16645                             found_so="$dir/$f"
    16646                             break
    16647                           fi
    16648                         done
    16649                       fi
    16650                     fi
    16651                   fi
    16652                                     if test "X$found_dir" = "X"; then
    16653                     if test -f "$dir/$libname.$acl_libext"; then
    16654                       found_dir="$dir"
    16655                       found_a="$dir/$libname.$acl_libext"
    16656                     fi
    16657                   fi
    16658                   if test "X$found_dir" != "X"; then
    16659                     if test -f "$dir/$libname.la"; then
    16660                       found_la="$dir/$libname.la"
    16661                     fi
    16662                   fi
    16663                   ;;
    16664               esac
    16665               if test "X$found_dir" != "X"; then
    16666                 break
    16667               fi
    16668             done
    16669           fi
    16670           if test "X$found_dir" != "X"; then
    16671                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
    16672             if test "X$found_so" != "X"; then
    16673                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
    16674                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
    16675               else
    16676                                                                                 haveit=
    16677                 for x in $ltrpathdirs; do
    16678                   if test "X$x" = "X$found_dir"; then
    16679                     haveit=yes
    16680                     break
    16681                   fi
    16682                 done
    16683                 if test -z "$haveit"; then
    16684                   ltrpathdirs="$ltrpathdirs $found_dir"
    16685                 fi
    16686                                 if test "$acl_hardcode_direct" = yes; then
    16687                                                       LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
    16688                 else
    16689                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
    16690                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
    16691                                                             haveit=
    16692                     for x in $rpathdirs; do
    16693                       if test "X$x" = "X$found_dir"; then
    16694                         haveit=yes
    16695                         break
    16696                       fi
    16697                     done
    16698                     if test -z "$haveit"; then
    16699                       rpathdirs="$rpathdirs $found_dir"
    16700                     fi
    16701                   else
    16702                                                                                 haveit=
    16703                     for x in $LDFLAGS $LIBSSL; do
    16704 
    16705   acl_save_prefix="$prefix"
    16706   prefix="$acl_final_prefix"
    16707   acl_save_exec_prefix="$exec_prefix"
    16708   exec_prefix="$acl_final_exec_prefix"
    16709   eval x=\"$x\"
    16710   exec_prefix="$acl_save_exec_prefix"
    16711   prefix="$acl_save_prefix"
    16712 
    16713                       if test "X$x" = "X-L$found_dir"; then
    16714                         haveit=yes
    16715                         break
    16716                       fi
    16717                     done
    16718                     if test -z "$haveit"; then
    16719                       LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
    16720                     fi
    16721                     if test "$acl_hardcode_minus_L" != no; then
    16722                                                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
    16723                     else
    16724                                                                                                                                                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
    16725                     fi
    16726                   fi
    16727                 fi
    16728               fi
    16729             else
    16730               if test "X$found_a" != "X"; then
    16731                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
    16732               else
    16733                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
    16734               fi
    16735             fi
    16736                         additional_includedir=
    16737             case "$found_dir" in
    16738               */$acl_libdirstem | */$acl_libdirstem/)
    16739                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
    16740                 LIBSSL_PREFIX="$basedir"
    16741                 additional_includedir="$basedir/include"
    16742                 ;;
    16743             esac
    16744             if test "X$additional_includedir" != "X"; then
    16745                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
    16746                 haveit=
    16747                 if test "X$additional_includedir" = "X/usr/local/include"; then
    16748                   if test -n "$GCC"; then
    16749                     case $host_os in
    16750                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    16751                     esac
    16752                   fi
    16753                 fi
    16754                 if test -z "$haveit"; then
    16755                   for x in $CPPFLAGS $INCSSL; do
    16756 
    16757   acl_save_prefix="$prefix"
    16758   prefix="$acl_final_prefix"
    16759   acl_save_exec_prefix="$exec_prefix"
    16760   exec_prefix="$acl_final_exec_prefix"
    16761   eval x=\"$x\"
    16762   exec_prefix="$acl_save_exec_prefix"
    16763   prefix="$acl_save_prefix"
    16764 
    16765                     if test "X$x" = "X-I$additional_includedir"; then
    16766                       haveit=yes
    16767                       break
    16768                     fi
    16769                   done
    16770                   if test -z "$haveit"; then
    16771                     if test -d "$additional_includedir"; then
    16772                                             INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
    16773                     fi
    16774                   fi
    16775                 fi
    16776               fi
    16777             fi
    16778                         if test -n "$found_la"; then
    16779                                                         save_libdir="$libdir"
    16780               case "$found_la" in
    16781                 */* | *\\*) . "$found_la" ;;
    16782                 *) . "./$found_la" ;;
    16783               esac
    16784               libdir="$save_libdir"
    16785                             for dep in $dependency_libs; do
    16786                 case "$dep" in
    16787                   -L*)
    16788                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
    16789                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
    16790                       haveit=
    16791                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
    16792                         if test -n "$GCC"; then
    16793                           case $host_os in
    16794                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
    16795                           esac
    16796                         fi
    16797                       fi
    16798                       if test -z "$haveit"; then
    16799                         haveit=
    16800                         for x in $LDFLAGS $LIBSSL; do
    16801 
    16802   acl_save_prefix="$prefix"
    16803   prefix="$acl_final_prefix"
    16804   acl_save_exec_prefix="$exec_prefix"
    16805   exec_prefix="$acl_final_exec_prefix"
    16806   eval x=\"$x\"
    16807   exec_prefix="$acl_save_exec_prefix"
    16808   prefix="$acl_save_prefix"
    16809 
    16810                           if test "X$x" = "X-L$additional_libdir"; then
    16811                             haveit=yes
    16812                             break
    16813                           fi
    16814                         done
    16815                         if test -z "$haveit"; then
    16816                           if test -d "$additional_libdir"; then
    16817                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
    16818                           fi
    16819                         fi
    16820                         haveit=
    16821                         for x in $LDFLAGS $LTLIBSSL; do
    16822 
    16823   acl_save_prefix="$prefix"
    16824   prefix="$acl_final_prefix"
    16825   acl_save_exec_prefix="$exec_prefix"
    16826   exec_prefix="$acl_final_exec_prefix"
    16827   eval x=\"$x\"
    16828   exec_prefix="$acl_save_exec_prefix"
    16829   prefix="$acl_save_prefix"
    16830 
    16831                           if test "X$x" = "X-L$additional_libdir"; then
    16832                             haveit=yes
    16833                             break
    16834                           fi
    16835                         done
    16836                         if test -z "$haveit"; then
    16837                           if test -d "$additional_libdir"; then
    16838                                                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
    16839                           fi
    16840                         fi
    16841                       fi
    16842                     fi
    16843                     ;;
    16844                   -R*)
    16845                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
    16846                     if test "$enable_rpath" != no; then
    16847                                                                   haveit=
    16848                       for x in $rpathdirs; do
    16849                         if test "X$x" = "X$dir"; then
    16850                           haveit=yes
    16851                           break
    16852                         fi
    16853                       done
    16854                       if test -z "$haveit"; then
    16855                         rpathdirs="$rpathdirs $dir"
    16856                       fi
    16857                                                                   haveit=
    16858                       for x in $ltrpathdirs; do
    16859                         if test "X$x" = "X$dir"; then
    16860                           haveit=yes
    16861                           break
    16862                         fi
    16863                       done
    16864                       if test -z "$haveit"; then
    16865                         ltrpathdirs="$ltrpathdirs $dir"
    16866                       fi
    16867                     fi
    16868                     ;;
    16869                   -l*)
    16870                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
    16871                     ;;
    16872                   *.la)
    16873                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
    16874                     ;;
    16875                   *)
    16876                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
    16877                     LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
    16878                     ;;
    16879                 esac
    16880               done
    16881             fi
    16882           else
    16883                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
    16884             LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
    16885           fi
    16886         fi
    16887       fi
    16888     done
    16889   done
    16890   if test "X$rpathdirs" != "X"; then
    16891     if test -n "$acl_hardcode_libdir_separator"; then
    16892                         alldirs=
    16893       for found_dir in $rpathdirs; do
    16894         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
    16895       done
    16896             acl_save_libdir="$libdir"
    16897       libdir="$alldirs"
    16898       eval flag=\"$acl_hardcode_libdir_flag_spec\"
    16899       libdir="$acl_save_libdir"
    16900       LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
    16901     else
    16902             for found_dir in $rpathdirs; do
    16903         acl_save_libdir="$libdir"
    16904         libdir="$found_dir"
    16905         eval flag=\"$acl_hardcode_libdir_flag_spec\"
    16906         libdir="$acl_save_libdir"
    16907         LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
    16908       done
    16909     fi
    16910   fi
    16911   if test "X$ltrpathdirs" != "X"; then
    16912             for found_dir in $ltrpathdirs; do
    16913       LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
    16914     done
    16915   fi
    16916 
    16917 
    16918         ac_save_CPPFLAGS="$CPPFLAGS"
    16919 
    16920   for element in $INCSSL; do
    16921     haveit=
    16922     for x in $CPPFLAGS; do
    16923 
    16924   acl_save_prefix="$prefix"
    16925   prefix="$acl_final_prefix"
    16926   acl_save_exec_prefix="$exec_prefix"
    16927   exec_prefix="$acl_final_exec_prefix"
    16928   eval x=\"$x\"
    16929   exec_prefix="$acl_save_exec_prefix"
    16930   prefix="$acl_save_prefix"
    16931 
    16932       if test "X$x" = "X$element"; then
    16933         haveit=yes
    16934         break
    16935       fi
    16936     done
    16937     if test -z "$haveit"; then
    16938       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
    16939     fi
    16940   done
    16941 
    16942 
    16943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
    16944 $as_echo_n "checking for libssl... " >&6; }
    16945 if ${ac_cv_libssl+:} false; then :
    16946   $as_echo_n "(cached) " >&6
    16947 else
    16948 
    16949     ac_save_LIBS="$LIBS"
    16950     LIBS="$LIBS $LIBSSL"
    16951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    16952 /* end confdefs.h.  */
    16953 #include <openssl/ssl.h>
    16954 int
    16955 main ()
    16956 {
    16957 
    16958   ;
    16959   return 0;
    16960 }
    16961 _ACEOF
    16962 if ac_fn_c_try_link "$LINENO"; then :
    16963   ac_cv_libssl=yes
    16964 else
    16965   ac_cv_libssl=no
    16966 fi
    16967 rm -f core conftest.err conftest.$ac_objext \
    16968     conftest$ac_exeext conftest.$ac_ext
    16969     LIBS="$ac_save_LIBS"
    16970 
    16971 fi
    16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl" >&5
    16973 $as_echo "$ac_cv_libssl" >&6; }
    16974   if test "$ac_cv_libssl" = yes; then
    16975     HAVE_LIBSSL=yes
    16976 
    16977 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
    16978 
    16979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libssl" >&5
    16980 $as_echo_n "checking how to link with libssl... " >&6; }
    16981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSSL" >&5
    16982 $as_echo "$LIBSSL" >&6; }
    16983   else
    16984     HAVE_LIBSSL=no
    16985             CPPFLAGS="$ac_save_CPPFLAGS"
    16986     LIBSSL=
    16987     LTLIBSSL=
    16988     LIBSSL_PREFIX=
    16989   fi
    16990 
    16991 
    16992 
    16993 
    16994 
    16995 
    16996 
    16997 fi
    16998 if test "$ac_cv_libssl" = "yes"; then
     16455## Look for OpenSSL
     16456#if test "$found_crypto" = "none" && test "$use_openssl" != "no"; then
     16457 # AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/ssl.h>])
     16458#fi
     16459#if test "$ac_cv_libssl" = "yes"; then
    1699916460
    1700016461$as_echo "#define LIBSSH2_OPENSSL 1" >>confdefs.h
     
    1700216463  LIBSREQUIRED=libssl,libcrypto
    1700316464
    17004   # Not all OpenSSL have AES-CTR functions.
    17005   save_LIBS="$LIBS"
    17006   LIBS="$LIBS $LIBSSL"
    17007   for ac_func in EVP_aes_128_ctr
    17008 do :
    17009   ac_fn_c_check_func "$LINENO" "EVP_aes_128_ctr" "ac_cv_func_EVP_aes_128_ctr"
    17010 if test "x$ac_cv_func_EVP_aes_128_ctr" = xyes; then :
    17011   cat >>confdefs.h <<_ACEOF
    17012 #define HAVE_EVP_AES_128_CTR 1
    17013 _ACEOF
    17014 
    17015 fi
    17016 done
    17017 
    17018   LIBS="$save_LIBS"
    17019 
     16465#  # Not all OpenSSL have AES-CTR functions.
     16466save_LIBS="$LIBS"
     16467LIBS="$LIBS $LIBSSL"
     16468#  AC_CHECK_FUNCS(EVP_aes_128_ctr)
     16469LIBS="$save_LIBS"
     16470#
    1702016471  found_crypto="OpenSSL (AES-CTR: ${ac_cv_func_EVP_aes_128_ctr:-N/A})"
    17021 fi
     16472#fi
    1702216473
    1702316474 if test "$ac_cv_libssl" = "yes"; then
  • src/router/nmap/libssh2/configure.ac

    r32990 r33034  
    112112support_clear_memory=no
    113113
    114 # Look for OpenSSL
    115 if test "$found_crypto" = "none" && test "$use_openssl" != "no"; then
    116   AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/ssl.h>])
    117 fi
    118 if test "$ac_cv_libssl" = "yes"; then
     114## Look for OpenSSL
     115#if test "$found_crypto" = "none" && test "$use_openssl" != "no"; then
     116 # AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [#include <openssl/ssl.h>])
     117#fi
     118#if test "$ac_cv_libssl" = "yes"; then
    119119  AC_DEFINE(LIBSSH2_OPENSSL, 1, [Use OpenSSL])
    120120  LIBSREQUIRED=libssl,libcrypto
    121121
    122   # Not all OpenSSL have AES-CTR functions.
    123   save_LIBS="$LIBS"
    124   LIBS="$LIBS $LIBSSL"
    125   AC_CHECK_FUNCS(EVP_aes_128_ctr)
    126   LIBS="$save_LIBS"
    127 
     122#  # Not all OpenSSL have AES-CTR functions.
     123save_LIBS="$LIBS"
     124LIBS="$LIBS $LIBSSL"
     125#  AC_CHECK_FUNCS(EVP_aes_128_ctr)
     126LIBS="$save_LIBS"
     127#
    128128  found_crypto="OpenSSL (AES-CTR: ${ac_cv_func_EVP_aes_128_ctr:-N/A})"
    129 fi
     129#fi
    130130
    131131AM_CONDITIONAL(OPENSSL, test "$ac_cv_libssl" = "yes")
  • src/router/nmap/libssh2/src/Makefile.am

    r32990 r33034  
    33
    44# Get the CRYPTO_CSOURCES and CRYPTO_HHEADERS defines
    5 if OPENSSL
    65include ../Makefile.OpenSSL.inc
    7 endif
    8 if LIBGCRYPT
    9 include ../Makefile.libgcrypt.inc
    10 endif
    11 if WINCNG
    12 include ../Makefile.WinCNG.inc
    13 endif
    14 if OS400QC3
    15 include ../Makefile.os400qc3.inc
    16 endif
    17 if MBEDTLS
    18 include ../Makefile.mbedTLS.inc
    19 endif
    206
    217# Makefile.inc provides the CSOURCES and HHEADERS defines
     
    6652libssh2_la_LDFLAGS = $(VERSION) -no-undefined \
    6753        -export-symbols-regex '^libssh2_.*' \
    68         $(LTLIBGCRYPT) $(LTLIBSSL) $(LTLIBZ)
     54        $(LTLIBGCRYPT) $(LTLIBZ)
  • src/router/nmap/libssh2/src/Makefile.in

    r32990 r33034  
    1 # Makefile.in generated by automake 1.15 from Makefile.am.
     1# Makefile.in generated by automake 1.13.4 from Makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
     4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
    55
    66# This Makefile.in is free software; the Free Software Foundation
     
    1616
    1717VPATH = @srcdir@
    18 am__is_gnu_make = { \
    19   if test -z '$(MAKELEVEL)'; then \
    20     false; \
    21   elif test -n '$(MAKE_HOST)'; then \
    22     true; \
    23   elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
    24     true; \
    25   else \
    26     false; \
    27   fi; \
    28 }
     18am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
    2919am__make_running_with_option = \
    3020  case $${target_option-} in \
     
    8979build_triplet = @build@
    9080host_triplet = @host@
     81DIST_COMMON = $(srcdir)/../Makefile.OpenSSL.inc \
     82        $(srcdir)/../Makefile.inc $(srcdir)/Makefile.in \
     83        $(srcdir)/Makefile.am $(srcdir)/libssh2_config.h.in \
     84        $(top_srcdir)/depcomp
    9185subdir = src
    9286ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    9993am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    10094        $(ACLOCAL_M4)
    101 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
    10295mkinstalldirs = $(install_sh) -d
    103 CONFIG_HEADER = libssh2_config.h \
    104         $(top_builddir)/example/libssh2_config.h
     96CONFIG_HEADER = libssh2_config.h
    10597CONFIG_CLEAN_FILES =
    10698CONFIG_CLEAN_VPATH_FILES =
     
    135127LTLIBRARIES = $(lib_LTLIBRARIES)
    136128libssh2_la_LIBADD =
    137 am__libssh2_la_SOURCES_DIST = channel.c comp.c crypt.c hostkey.c kex.c \
    138         mac.c misc.c packet.c publickey.c scp.c session.c sftp.c \
    139         userauth.c transport.c version.c knownhost.c agent.c \
    140         libgcrypt.c mbedtls.c openssl.c os400qc3.c wincng.c pem.c \
    141         keepalive.c global.c libssh2_priv.h libgcrypt.h mbedtls.h \
    142         openssl.h os400qc3.h wincng.h transport.h channel.h comp.h \
    143         mac.h misc.h packet.h userauth.h session.h sftp.h crypto.h
    144 @LIBGCRYPT_FALSE@@MBEDTLS_FALSE@@OPENSSL_FALSE@@OS400QC3_FALSE@@WINCNG_TRUE@am__objects_1 = wincng.lo
    145 @LIBGCRYPT_FALSE@@MBEDTLS_FALSE@@OPENSSL_FALSE@@OS400QC3_TRUE@am__objects_1 = os400qc3.lo
    146 @LIBGCRYPT_FALSE@@MBEDTLS_FALSE@@OPENSSL_TRUE@am__objects_1 =  \
    147 @LIBGCRYPT_FALSE@@MBEDTLS_FALSE@@OPENSSL_TRUE@  openssl.lo
    148 @LIBGCRYPT_FALSE@@MBEDTLS_TRUE@am__objects_1 = mbedtls.lo
    149 @LIBGCRYPT_TRUE@am__objects_1 = libgcrypt.lo
     129am__objects_1 = openssl.lo
    150130am__objects_2 = channel.lo comp.lo crypt.lo hostkey.lo kex.lo mac.lo \
    151131        misc.lo packet.lo publickey.lo scp.lo session.lo sftp.lo \
     
    198178am__v_CCLD_1 =
    199179SOURCES = $(libssh2_la_SOURCES)
    200 DIST_SOURCES = $(am__libssh2_la_SOURCES_DIST)
     180DIST_SOURCES = $(libssh2_la_SOURCES)
    201181am__can_run_installinfo = \
    202182  case $$AM_UPDATE_INFO_DIR in \
     
    224204ETAGS = etags
    225205CTAGS = ctags
    226 am__DIST_COMMON = $(srcdir)/../Makefile.OpenSSL.inc \
    227         $(srcdir)/../Makefile.WinCNG.inc $(srcdir)/../Makefile.inc \
    228         $(srcdir)/../Makefile.libgcrypt.inc \
    229         $(srcdir)/../Makefile.mbedTLS.inc \
    230         $(srcdir)/../Makefile.os400qc3.inc $(srcdir)/Makefile.in \
    231         $(srcdir)/libssh2_config.h.in $(top_srcdir)/depcomp
    232206DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    233207ACLOCAL = @ACLOCAL@
     
    263237HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@
    264238HAVE_LIBMBEDTLS = @HAVE_LIBMBEDTLS@
    265 HAVE_LIBSSL = @HAVE_LIBSSL@
    266239HAVE_LIBZ = @HAVE_LIBZ@
    267240INSTALL = @INSTALL@
     
    284257LIBSREQUIRED = @LIBSREQUIRED@
    285258LIBSSH2VER = @LIBSSH2VER@
    286 LIBSSL = @LIBSSL@
    287 LIBSSL_PREFIX = @LIBSSL_PREFIX@
    288259LIBTOOL = @LIBTOOL@
    289260LIBZ = @LIBZ@
     
    296267LTLIBMBEDTLS = @LTLIBMBEDTLS@
    297268LTLIBOBJS = @LTLIBOBJS@
    298 LTLIBSSL = @LTLIBSSL@
    299269LTLIBZ = @LTLIBZ@
    300270LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
     
    368338program_transform_name = @program_transform_name@
    369339psdir = @psdir@
    370 runstatedir = @runstatedir@
    371340sbindir = @sbindir@
    372341sharedstatedir = @sharedstatedir@
     
    380349# $Id: Makefile.am,v 1.21 2009/05/07 17:21:56 bagder Exp $
    381350AUTOMAKE_OPTIONS = foreign nostdinc
    382 @LIBGCRYPT_TRUE@CRYPTO_CSOURCES = libgcrypt.c
    383 @MBEDTLS_TRUE@CRYPTO_CSOURCES = mbedtls.c
    384 @OPENSSL_TRUE@CRYPTO_CSOURCES = openssl.c
    385 @OS400QC3_TRUE@CRYPTO_CSOURCES = os400qc3.c
    386 @WINCNG_TRUE@CRYPTO_CSOURCES = wincng.c
    387 @LIBGCRYPT_TRUE@CRYPTO_HHEADERS = libgcrypt.h
    388 @MBEDTLS_TRUE@CRYPTO_HHEADERS = mbedtls.h
    389 @OPENSSL_TRUE@CRYPTO_HHEADERS = openssl.h
    390 @OS400QC3_TRUE@CRYPTO_HHEADERS = os400qc3.h
    391 @WINCNG_TRUE@CRYPTO_HHEADERS = wincng.h
     351CRYPTO_CSOURCES = openssl.c
     352CRYPTO_HHEADERS = openssl.h
    392353CSOURCES = channel.c comp.c crypt.c hostkey.c kex.c mac.c misc.c \
    393354 packet.c publickey.c scp.c session.c sftp.c userauth.c transport.c \
     
    440401libssh2_la_LDFLAGS = $(VERSION) -no-undefined \
    441402        -export-symbols-regex '^libssh2_.*' \
    442         $(LTLIBGCRYPT) $(LTLIBSSL) $(LTLIBZ)
     403        $(LTLIBGCRYPT) $(LTLIBZ)
    443404
    444405all: libssh2_config.h
     
    447408.SUFFIXES:
    448409.SUFFIXES: .c .lo .o .obj
    449 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../Makefile.OpenSSL.inc $(srcdir)/../Makefile.libgcrypt.inc $(srcdir)/../Makefile.WinCNG.inc $(srcdir)/../Makefile.os400qc3.inc $(srcdir)/../Makefile.mbedTLS.inc $(srcdir)/../Makefile.inc $(am__configure_deps)
     410$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../Makefile.OpenSSL.inc $(srcdir)/../Makefile.inc $(am__configure_deps)
    450411        @for dep in $?; do \
    451412          case '$(am__configure_deps)' in \
     
    459420        $(am__cd) $(top_srcdir) && \
    460421          $(AUTOMAKE) --foreign src/Makefile
     422.PRECIOUS: Makefile
    461423Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    462424        @case '$?' in \
     
    467429            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
    468430        esac;
    469 $(srcdir)/../Makefile.OpenSSL.inc $(srcdir)/../Makefile.libgcrypt.inc $(srcdir)/../Makefile.WinCNG.inc $(srcdir)/../Makefile.os400qc3.inc $(srcdir)/../Makefile.mbedTLS.inc $(srcdir)/../Makefile.inc $(am__empty):
     431$(srcdir)/../Makefile.OpenSSL.inc $(srcdir)/../Makefile.inc:
    470432
    471433$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     
    479441
    480442libssh2_config.h: stamp-h1
    481         @test -f $@ || rm -f stamp-h1
    482         @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
     443        @if test ! -f $@; then rm -f stamp-h1; else :; fi
     444        @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
    483445
    484446stamp-h1: $(srcdir)/libssh2_config.h.in $(top_builddir)/config.status
     
    546508@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kex.Plo@am__quote@
    547509@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/knownhost.Plo@am__quote@
    548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgcrypt.Plo@am__quote@
    549510@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac.Plo@am__quote@
    550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbedtls.Plo@am__quote@
    551511@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Plo@am__quote@
    552512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openssl.Plo@am__quote@
    553 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os400qc3.Plo@am__quote@
    554513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/packet.Plo@am__quote@
    555514@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pem.Plo@am__quote@
     
    561520@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/userauth.Plo@am__quote@
    562521@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@
    563 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wincng.Plo@am__quote@
    564522
    565523.c.o:
     
    568526@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    569527@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    570 @am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
     528@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
    571529
    572530.c.obj:
     
    575533@AMDEP_TRUE@@am__fastdepCC_FALSE@       $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    576534@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    577 @am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
     535@am__fastdepCC_FALSE@   $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
    578536
    579537.c.lo:
     
    797755        uninstall-am uninstall-libLTLIBRARIES
    798756
    799 .PRECIOUS: Makefile
    800 
    801757
    802758# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.