… | |
… | |
623 | LIBOBJS |
623 | LIBOBJS |
624 | INCLUDES |
624 | INCLUDES |
625 | ROHC_FALSE |
625 | ROHC_FALSE |
626 | ROHC_TRUE |
626 | ROHC_TRUE |
627 | LDFLAGS_DAEMON |
627 | LDFLAGS_DAEMON |
|
|
628 | LIBCRYPTO_LIBS |
|
|
629 | LIBCRYPTO_CFLAGS |
|
|
630 | PKG_CONFIG_LIBDIR |
|
|
631 | PKG_CONFIG_PATH |
|
|
632 | PKG_CONFIG |
628 | HAVE_TUNTAP |
633 | HAVE_TUNTAP |
629 | LINUX_IF_TUN_H |
634 | LINUX_IF_TUN_H |
630 | ALLOCA |
635 | ALLOCA |
631 | CXXCPP |
636 | CXXCPP |
632 | IFSUBTYPE |
637 | IFSUBTYPE |
… | |
… | |
720 | htmldir |
725 | htmldir |
721 | infodir |
726 | infodir |
722 | docdir |
727 | docdir |
723 | oldincludedir |
728 | oldincludedir |
724 | includedir |
729 | includedir |
|
|
730 | runstatedir |
725 | localstatedir |
731 | localstatedir |
726 | sharedstatedir |
732 | sharedstatedir |
727 | sysconfdir |
733 | sysconfdir |
728 | datadir |
734 | datadir |
729 | datarootdir |
735 | datarootdir |
… | |
… | |
751 | with_libiconv_prefix |
757 | with_libiconv_prefix |
752 | enable_nls |
758 | enable_nls |
753 | with_libintl_prefix |
759 | with_libintl_prefix |
754 | enable_iftype |
760 | enable_iftype |
755 | with_kernel |
761 | with_kernel |
756 | with_openssl_include |
|
|
757 | with_openssl_lib |
|
|
758 | enable_threads |
762 | enable_threads |
759 | enable_static_daemon |
763 | enable_static_daemon |
760 | enable_icmp |
764 | enable_icmp |
761 | enable_tcp |
765 | enable_tcp |
762 | enable_http_proxy |
766 | enable_http_proxy |
… | |
… | |
779 | CPPFLAGS |
783 | CPPFLAGS |
780 | CPP |
784 | CPP |
781 | CXX |
785 | CXX |
782 | CXXFLAGS |
786 | CXXFLAGS |
783 | CCC |
787 | CCC |
784 | CXXCPP' |
788 | CXXCPP |
|
|
789 | PKG_CONFIG |
|
|
790 | PKG_CONFIG_PATH |
|
|
791 | PKG_CONFIG_LIBDIR |
|
|
792 | LIBCRYPTO_CFLAGS |
|
|
793 | LIBCRYPTO_LIBS' |
785 | |
794 | |
786 | |
795 | |
787 | # Initialize some variables set by options. |
796 | # Initialize some variables set by options. |
788 | ac_init_help= |
797 | ac_init_help= |
789 | ac_init_version=false |
798 | ac_init_version=false |
… | |
… | |
818 | datarootdir='${prefix}/share' |
827 | datarootdir='${prefix}/share' |
819 | datadir='${datarootdir}' |
828 | datadir='${datarootdir}' |
820 | sysconfdir='${prefix}/etc' |
829 | sysconfdir='${prefix}/etc' |
821 | sharedstatedir='${prefix}/com' |
830 | sharedstatedir='${prefix}/com' |
822 | localstatedir='${prefix}/var' |
831 | localstatedir='${prefix}/var' |
|
|
832 | runstatedir='${localstatedir}/run' |
823 | includedir='${prefix}/include' |
833 | includedir='${prefix}/include' |
824 | oldincludedir='/usr/include' |
834 | oldincludedir='/usr/include' |
825 | docdir='${datarootdir}/doc/${PACKAGE}' |
835 | docdir='${datarootdir}/doc/${PACKAGE}' |
826 | infodir='${datarootdir}/info' |
836 | infodir='${datarootdir}/info' |
827 | htmldir='${docdir}' |
837 | htmldir='${docdir}' |
… | |
… | |
1070 | |
1080 | |
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1081 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1072 | | -silent | --silent | --silen | --sile | --sil) |
1082 | | -silent | --silent | --silen | --sile | --sil) |
1073 | silent=yes ;; |
1083 | silent=yes ;; |
1074 | |
1084 | |
|
|
1085 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
|
|
1086 | | --runstate | --runstat | --runsta | --runst | --runs \ |
|
|
1087 | | --run | --ru | --r) |
|
|
1088 | ac_prev=runstatedir ;; |
|
|
1089 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
|
|
1090 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
|
|
1091 | | --run=* | --ru=* | --r=*) |
|
|
1092 | runstatedir=$ac_optarg ;; |
|
|
1093 | |
1075 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1094 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1076 | ac_prev=sbindir ;; |
1095 | ac_prev=sbindir ;; |
1077 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1096 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1078 | | --sbi=* | --sb=*) |
1097 | | --sbi=* | --sb=*) |
1079 | sbindir=$ac_optarg ;; |
1098 | sbindir=$ac_optarg ;; |
… | |
… | |
1207 | |
1226 | |
1208 | # Check all directory arguments for consistency. |
1227 | # Check all directory arguments for consistency. |
1209 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1228 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1210 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1229 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1211 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1230 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1212 | libdir localedir mandir |
1231 | libdir localedir mandir runstatedir |
1213 | do |
1232 | do |
1214 | eval ac_val=\$$ac_var |
1233 | eval ac_val=\$$ac_var |
1215 | # Remove trailing slashes. |
1234 | # Remove trailing slashes. |
1216 | case $ac_val in |
1235 | case $ac_val in |
1217 | */ ) |
1236 | */ ) |
… | |
… | |
1360 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1379 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1361 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1380 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1362 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1381 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1363 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1382 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1364 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1383 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
1384 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1365 | --libdir=DIR object code libraries [EPREFIX/lib] |
1385 | --libdir=DIR object code libraries [EPREFIX/lib] |
1366 | --includedir=DIR C header files [PREFIX/include] |
1386 | --includedir=DIR C header files [PREFIX/include] |
1367 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1387 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1368 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1388 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1369 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1389 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
… | |
… | |
1451 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
1471 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
1452 | --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1472 | --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1453 | --without-libintl-prefix don't search for libintl in includedir and libdir |
1473 | --without-libintl-prefix don't search for libintl in includedir and libdir |
1454 | --with-kernel=dir give the directory with kernel sources |
1474 | --with-kernel=dir give the directory with kernel sources |
1455 | (default: /usr/src/linux) |
1475 | (default: /usr/src/linux) |
1456 | --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl) |
|
|
1457 | --with-openssl-lib=DIR OpenSSL library directory |
|
|
1458 | |
1476 | |
1459 | Some influential environment variables: |
1477 | Some influential environment variables: |
1460 | CC C compiler command |
1478 | CC C compiler command |
1461 | CFLAGS C compiler flags |
1479 | CFLAGS C compiler flags |
1462 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1480 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1466 | you have headers in a nonstandard directory <include dir> |
1484 | you have headers in a nonstandard directory <include dir> |
1467 | CPP C preprocessor |
1485 | CPP C preprocessor |
1468 | CXX C++ compiler command |
1486 | CXX C++ compiler command |
1469 | CXXFLAGS C++ compiler flags |
1487 | CXXFLAGS C++ compiler flags |
1470 | CXXCPP C++ preprocessor |
1488 | CXXCPP C++ preprocessor |
|
|
1489 | PKG_CONFIG path to pkg-config utility |
|
|
1490 | PKG_CONFIG_PATH |
|
|
1491 | directories to add to pkg-config's search path |
|
|
1492 | PKG_CONFIG_LIBDIR |
|
|
1493 | path overriding pkg-config's built-in search path |
|
|
1494 | LIBCRYPTO_CFLAGS |
|
|
1495 | C compiler flags for LIBCRYPTO, overriding pkg-config |
|
|
1496 | LIBCRYPTO_LIBS |
|
|
1497 | linker flags for LIBCRYPTO, overriding pkg-config |
1471 | |
1498 | |
1472 | Use these variables to override the choices made by `configure' or to help |
1499 | Use these variables to override the choices made by `configure' or to help |
1473 | it to find libraries and programs with nonstandard names/locations. |
1500 | it to find libraries and programs with nonstandard names/locations. |
1474 | |
1501 | |
1475 | Report bugs to the package provider. |
1502 | Report bugs to the package provider. |
… | |
… | |
2198 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2225 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2199 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2226 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2200 | as_fn_set_status $ac_retval |
2227 | as_fn_set_status $ac_retval |
2201 | |
2228 | |
2202 | } # ac_fn_cxx_try_link |
2229 | } # ac_fn_cxx_try_link |
2203 | |
|
|
2204 | # ac_fn_cxx_check_func LINENO FUNC VAR |
|
|
2205 | # ------------------------------------ |
|
|
2206 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
|
2207 | ac_fn_cxx_check_func () |
|
|
2208 | { |
|
|
2209 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
2211 | $as_echo_n "checking for $2... " >&6; } |
|
|
2212 | if eval \${$3+:} false; then : |
|
|
2213 | $as_echo_n "(cached) " >&6 |
|
|
2214 | else |
|
|
2215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2216 | /* end confdefs.h. */ |
|
|
2217 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
|
2218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
2219 | #define $2 innocuous_$2 |
|
|
2220 | |
|
|
2221 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
2222 | which can conflict with char $2 (); below. |
|
|
2223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2224 | <limits.h> exists even on freestanding compilers. */ |
|
|
2225 | |
|
|
2226 | #ifdef __STDC__ |
|
|
2227 | # include <limits.h> |
|
|
2228 | #else |
|
|
2229 | # include <assert.h> |
|
|
2230 | #endif |
|
|
2231 | |
|
|
2232 | #undef $2 |
|
|
2233 | |
|
|
2234 | /* Override any GCC internal prototype to avoid an error. |
|
|
2235 | Use char because int might match the return type of a GCC |
|
|
2236 | builtin and then its argument prototype would still apply. */ |
|
|
2237 | #ifdef __cplusplus |
|
|
2238 | extern "C" |
|
|
2239 | #endif |
|
|
2240 | char $2 (); |
|
|
2241 | /* The GNU C library defines this for functions which it implements |
|
|
2242 | to always fail with ENOSYS. Some functions are actually named |
|
|
2243 | something starting with __ and the normal name is an alias. */ |
|
|
2244 | #if defined __stub_$2 || defined __stub___$2 |
|
|
2245 | choke me |
|
|
2246 | #endif |
|
|
2247 | |
|
|
2248 | int |
|
|
2249 | main () |
|
|
2250 | { |
|
|
2251 | return $2 (); |
|
|
2252 | ; |
|
|
2253 | return 0; |
|
|
2254 | } |
|
|
2255 | _ACEOF |
|
|
2256 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
2257 | eval "$3=yes" |
|
|
2258 | else |
|
|
2259 | eval "$3=no" |
|
|
2260 | fi |
|
|
2261 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
2262 | conftest$ac_exeext conftest.$ac_ext |
|
|
2263 | fi |
|
|
2264 | eval ac_res=\$$3 |
|
|
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2266 | $as_echo "$ac_res" >&6; } |
|
|
2267 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2268 | |
|
|
2269 | } # ac_fn_cxx_check_func |
|
|
2270 | cat >config.log <<_ACEOF |
2230 | cat >config.log <<_ACEOF |
2271 | This file contains any messages produced by compilers while |
2231 | This file contains any messages produced by compilers while |
2272 | running configure, to aid debugging if configure makes a mistake. |
2232 | running configure, to aid debugging if configure makes a mistake. |
2273 | |
2233 | |
2274 | It was created by $as_me, which was |
2234 | It was created by $as_me, which was |
… | |
… | |
3014 | fi |
2974 | fi |
3015 | |
2975 | |
3016 | |
2976 | |
3017 | # Define the identity of the package. |
2977 | # Define the identity of the package. |
3018 | PACKAGE=gvpe |
2978 | PACKAGE=gvpe |
3019 | VERSION=2.25 |
2979 | VERSION=3.1 |
3020 | |
2980 | |
3021 | |
2981 | |
3022 | cat >>confdefs.h <<_ACEOF |
2982 | cat >>confdefs.h <<_ACEOF |
3023 | #define PACKAGE "$PACKAGE" |
2983 | #define PACKAGE "$PACKAGE" |
3024 | _ACEOF |
2984 | _ACEOF |
… | |
… | |
8073 | |
8033 | |
8074 | |
8034 | |
8075 | |
8035 | |
8076 | |
8036 | |
8077 | |
8037 | |
8078 | tinc_ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
8079 | |
8038 | |
8080 | |
8039 | |
8081 | # Check whether --with-openssl-include was given. |
|
|
8082 | if test "${with_openssl_include+set}" = set; then : |
|
|
8083 | withval=$with_openssl_include; openssl_include="$withval" |
|
|
8084 | CFLAGS="$CFLAGS -I$withval" |
|
|
8085 | CPPFLAGS="$CPPFLAGS -I$withval" |
|
|
8086 | |
8040 | |
8087 | fi |
|
|
8088 | |
8041 | |
8089 | |
8042 | |
8090 | |
8043 | |
8091 | # Check whether --with-openssl-lib was given. |
8044 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
8092 | if test "${with_openssl_lib+set}" = set; then : |
8045 | if test -n "$ac_tool_prefix"; then |
8093 | withval=$with_openssl_lib; openssl_lib="$withval" |
8046 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
8094 | LIBS="$LIBS -L$withval" |
8047 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
8095 | |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8096 | fi |
8049 | $as_echo_n "checking for $ac_word... " >&6; } |
8097 | |
8050 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
8098 | |
8051 | $as_echo_n "(cached) " >&6 |
8099 | for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h |
|
|
8100 | do : |
|
|
8101 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8102 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
8103 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
8104 | cat >>confdefs.h <<_ACEOF |
|
|
8105 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8106 | _ACEOF |
|
|
8107 | |
|
|
8108 | else |
8052 | else |
8109 | as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break |
8053 | case $PKG_CONFIG in |
8110 | |
8054 | [\\/]* | ?:[\\/]*) |
8111 | fi |
8055 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
8112 | |
8056 | ;; |
|
|
8057 | *) |
|
|
8058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8059 | for as_dir in $PATH |
|
|
8060 | do |
|
|
8061 | IFS=$as_save_IFS |
|
|
8062 | test -z "$as_dir" && as_dir=. |
|
|
8063 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8065 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
8066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8067 | break 2 |
|
|
8068 | fi |
8113 | done |
8069 | done |
|
|
8070 | done |
|
|
8071 | IFS=$as_save_IFS |
8114 | |
8072 | |
|
|
8073 | ;; |
|
|
8074 | esac |
|
|
8075 | fi |
|
|
8076 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
8077 | if test -n "$PKG_CONFIG"; then |
|
|
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
|
|
8079 | $as_echo "$PKG_CONFIG" >&6; } |
|
|
8080 | else |
|
|
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8082 | $as_echo "no" >&6; } |
|
|
8083 | fi |
8115 | |
8084 | |
8116 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
|
|
8117 | |
8085 | |
|
|
8086 | fi |
|
|
8087 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
|
|
8088 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
|
8089 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
8090 | set dummy pkg-config; ac_word=$2 |
8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8119 | $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } |
8092 | $as_echo_n "checking for $ac_word... " >&6; } |
8120 | if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : |
8093 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
8121 | $as_echo_n "(cached) " >&6 |
8094 | $as_echo_n "(cached) " >&6 |
8122 | else |
8095 | else |
8123 | ac_check_lib_save_LIBS=$LIBS |
8096 | case $ac_pt_PKG_CONFIG in |
8124 | LIBS="-lcrypto $LIBS" |
8097 | [\\/]* | ?:[\\/]*) |
8125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8098 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
8126 | /* end confdefs.h. */ |
|
|
8127 | |
|
|
8128 | /* Override any GCC internal prototype to avoid an error. |
|
|
8129 | Use char because int might match the return type of a GCC |
|
|
8130 | builtin and then its argument prototype would still apply. */ |
|
|
8131 | #ifdef __cplusplus |
|
|
8132 | extern "C" |
|
|
8133 | #endif |
|
|
8134 | char SHA1_Init (); |
|
|
8135 | int |
|
|
8136 | main () |
|
|
8137 | { |
|
|
8138 | return SHA1_Init (); |
|
|
8139 | ; |
8099 | ;; |
8140 | return 0; |
8100 | *) |
8141 | } |
8101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8142 | _ACEOF |
8102 | for as_dir in $PATH |
8143 | if ac_fn_cxx_try_link "$LINENO"; then : |
8103 | do |
8144 | ac_cv_lib_crypto_SHA1_Init=yes |
8104 | IFS=$as_save_IFS |
8145 | else |
8105 | test -z "$as_dir" && as_dir=. |
8146 | ac_cv_lib_crypto_SHA1_Init=no |
8106 | for ac_exec_ext in '' $ac_executable_extensions; do |
8147 | fi |
8107 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8148 | rm -f core conftest.err conftest.$ac_objext \ |
8108 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8149 | conftest$ac_exeext conftest.$ac_ext |
8109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8150 | LIBS=$ac_check_lib_save_LIBS |
8110 | break 2 |
8151 | fi |
8111 | fi |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 |
|
|
8153 | $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } |
|
|
8154 | if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : |
|
|
8155 | LIBS="$LIBS -lcrypto" |
|
|
8156 | else |
|
|
8157 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
|
|
8158 | |
|
|
8159 | fi |
|
|
8160 | |
|
|
8161 | |
|
|
8162 | for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms |
|
|
8163 | do : |
|
|
8164 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
8165 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
8166 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
8167 | cat >>confdefs.h <<_ACEOF |
|
|
8168 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
8169 | _ACEOF |
|
|
8170 | |
|
|
8171 | fi |
|
|
8172 | done |
8112 | done |
|
|
8113 | done |
|
|
8114 | IFS=$as_save_IFS |
8173 | |
8115 | |
|
|
8116 | ;; |
|
|
8117 | esac |
|
|
8118 | fi |
|
|
8119 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
|
8120 | if test -n "$ac_pt_PKG_CONFIG"; then |
|
|
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
|
|
8122 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
|
|
8123 | else |
|
|
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8125 | $as_echo "no" >&6; } |
|
|
8126 | fi |
8174 | |
8127 | |
8175 | ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
8128 | if test "x$ac_pt_PKG_CONFIG" = x; then |
8176 | if test "x$ac_cv_func_dlopen" = xyes; then : |
8129 | PKG_CONFIG="" |
|
|
8130 | else |
|
|
8131 | case $cross_compiling:$ac_tool_warned in |
|
|
8132 | yes:) |
|
|
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
8134 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
8135 | ac_tool_warned=yes ;; |
|
|
8136 | esac |
|
|
8137 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
|
8138 | fi |
|
|
8139 | else |
|
|
8140 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
|
8141 | fi |
8177 | |
8142 | |
|
|
8143 | fi |
|
|
8144 | if test -n "$PKG_CONFIG"; then |
|
|
8145 | _pkg_min_version=0.9.0 |
|
|
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
|
|
8147 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
|
|
8148 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
|
|
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8150 | $as_echo "yes" >&6; } |
8178 | else |
8151 | else |
|
|
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8153 | $as_echo "no" >&6; } |
|
|
8154 | PKG_CONFIG="" |
|
|
8155 | fi |
|
|
8156 | fi |
|
|
8157 | |
|
|
8158 | pkg_failed=no |
8179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5 |
8180 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
8160 | $as_echo_n "checking for LIBCRYPTO... " >&6; } |
8181 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8161 | |
8182 | $as_echo_n "(cached) " >&6 |
8162 | if test -n "$LIBCRYPTO_CFLAGS"; then |
|
|
8163 | pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS" |
|
|
8164 | elif test -n "$PKG_CONFIG"; then |
|
|
8165 | if test -n "$PKG_CONFIG" && \ |
|
|
8166 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
|
|
8167 | ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
|
|
8168 | ac_status=$? |
|
|
8169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
8170 | test $ac_status = 0; }; then |
|
|
8171 | pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null` |
|
|
8172 | test "x$?" != "x0" && pkg_failed=yes |
|
|
8173 | else |
|
|
8174 | pkg_failed=yes |
|
|
8175 | fi |
8183 | else |
8176 | else |
8184 | ac_check_lib_save_LIBS=$LIBS |
8177 | pkg_failed=untried |
8185 | LIBS="-ldl $LIBS" |
8178 | fi |
8186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8179 | if test -n "$LIBCRYPTO_LIBS"; then |
8187 | /* end confdefs.h. */ |
8180 | pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS" |
8188 | |
8181 | elif test -n "$PKG_CONFIG"; then |
8189 | /* Override any GCC internal prototype to avoid an error. |
8182 | if test -n "$PKG_CONFIG" && \ |
8190 | Use char because int might match the return type of a GCC |
8183 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
8191 | builtin and then its argument prototype would still apply. */ |
8184 | ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
8192 | #ifdef __cplusplus |
8185 | ac_status=$? |
8193 | extern "C" |
8186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8194 | #endif |
8187 | test $ac_status = 0; }; then |
8195 | char dlopen (); |
8188 | pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null` |
8196 | int |
8189 | test "x$?" != "x0" && pkg_failed=yes |
8197 | main () |
8190 | else |
8198 | { |
8191 | pkg_failed=yes |
8199 | return dlopen (); |
8192 | fi |
8200 | ; |
|
|
8201 | return 0; |
|
|
8202 | } |
|
|
8203 | _ACEOF |
|
|
8204 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
8205 | ac_cv_lib_dl_dlopen=yes |
|
|
8206 | else |
8193 | else |
8207 | ac_cv_lib_dl_dlopen=no |
8194 | pkg_failed=untried |
8208 | fi |
8195 | fi |
8209 | rm -f core conftest.err conftest.$ac_objext \ |
8196 | |
8210 | conftest$ac_exeext conftest.$ac_ext |
8197 | |
8211 | LIBS=$ac_check_lib_save_LIBS |
8198 | |
8212 | fi |
8199 | if test $pkg_failed = yes; then |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8214 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
8201 | $as_echo "no" >&6; } |
8215 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
|
8216 | LIBS="$LIBS -ldl" |
|
|
8217 | else |
|
|
8218 | as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5 |
|
|
8219 | |
8202 | |
8220 | fi |
8203 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8221 | |
8204 | _pkg_short_errors_supported=yes |
8222 | |
|
|
8223 | fi |
|
|
8224 | |
|
|
8225 | |
|
|
8226 | ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate" |
|
|
8227 | if test "x$ac_cv_func_inflate" = xyes; then : |
|
|
8228 | |
|
|
8229 | else |
8205 | else |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
8206 | _pkg_short_errors_supported=no |
8231 | $as_echo_n "checking for inflate in -lz... " >&6; } |
|
|
8232 | if ${ac_cv_lib_z_inflate+:} false; then : |
|
|
8233 | $as_echo_n "(cached) " >&6 |
|
|
8234 | else |
|
|
8235 | ac_check_lib_save_LIBS=$LIBS |
|
|
8236 | LIBS="-lz $LIBS" |
|
|
8237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8238 | /* end confdefs.h. */ |
|
|
8239 | |
|
|
8240 | /* Override any GCC internal prototype to avoid an error. |
|
|
8241 | Use char because int might match the return type of a GCC |
|
|
8242 | builtin and then its argument prototype would still apply. */ |
|
|
8243 | #ifdef __cplusplus |
|
|
8244 | extern "C" |
|
|
8245 | #endif |
|
|
8246 | char inflate (); |
|
|
8247 | int |
|
|
8248 | main () |
|
|
8249 | { |
|
|
8250 | return inflate (); |
|
|
8251 | ; |
|
|
8252 | return 0; |
|
|
8253 | } |
|
|
8254 | _ACEOF |
|
|
8255 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
8256 | ac_cv_lib_z_inflate=yes |
|
|
8257 | else |
|
|
8258 | ac_cv_lib_z_inflate=no |
|
|
8259 | fi |
8207 | fi |
8260 | rm -f core conftest.err conftest.$ac_objext \ |
8208 | if test $_pkg_short_errors_supported = yes; then |
8261 | conftest$ac_exeext conftest.$ac_ext |
8209 | LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
8262 | LIBS=$ac_check_lib_save_LIBS |
8210 | else |
8263 | fi |
8211 | LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
|
|
8212 | fi |
|
|
8213 | # Put the nasty error message in config.log where it belongs |
|
|
8214 | echo "$LIBCRYPTO_PKG_ERRORS" >&5 |
|
|
8215 | |
|
|
8216 | as_fn_error $? "Package requirements (libcrypto >= 1) were not met: |
|
|
8217 | |
|
|
8218 | $LIBCRYPTO_PKG_ERRORS |
|
|
8219 | |
|
|
8220 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
|
8221 | installed software in a non-standard prefix. |
|
|
8222 | |
|
|
8223 | Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
|
|
8224 | and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
|
|
8225 | See the pkg-config man page for more details." "$LINENO" 5 |
|
|
8226 | elif test $pkg_failed = untried; then |
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8265 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
8228 | $as_echo "no" >&6; } |
8266 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
8229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8267 | LIBS="$LIBS -lz" |
8230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8268 | else |
8231 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
8269 | as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5 |
8232 | is in your PATH or set the PKG_CONFIG environment variable to the full |
|
|
8233 | path to pkg-config. |
8270 | |
8234 | |
8271 | fi |
8235 | Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
|
|
8236 | and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
|
|
8237 | See the pkg-config man page for more details. |
8272 | |
8238 | |
|
|
8239 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
|
|
8240 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
8241 | else |
|
|
8242 | LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS |
|
|
8243 | LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS |
|
|
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8245 | $as_echo "yes" >&6; } |
8273 | |
8246 | |
8274 | fi |
|
|
8275 | |
|
|
8276 | |
|
|
8277 | if test "x$openssl_include" != x; then |
|
|
8278 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
|
|
8279 | fi |
8247 | fi |
8280 | |
8248 | |
8281 | # Check whether --enable-threads was given. |
8249 | # Check whether --enable-threads was given. |
8282 | if test "${enable_threads+set}" = set; then : |
8250 | if test "${enable_threads+set}" = set; then : |
8283 | enableval=$enable_threads; try_threads=$enableval |
8251 | enableval=$enable_threads; try_threads=$enableval |
… | |
… | |
10142 | fi |
10110 | fi |
10143 | |
10111 | |
10144 | echo "***" |
10112 | echo "***" |
10145 | echo |
10113 | echo |
10146 | |
10114 | |
|
|
10115 | if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then |
|
|
10116 | cat <<EOF |
|
|
10117 | [33m |
|
|
10118 | *** |
|
|
10119 | *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
|
|
10120 | *** |
|
|
10121 | *** You seem to configure gvpe with OpenSSL 1.1 or newer. |
|
|
10122 | *** While this probably compiles, please note that this is not only |
|
|
10123 | *** unsupported, but also discouraged. |
|
|
10124 | *** |
|
|
10125 | *** It is recommended to use either OpenSSL 1.0, as long as that is still |
|
|
10126 | *** supported, or LibreSSL (https://www.libressl.org/). |
|
|
10127 | *** |
|
|
10128 | *** This is not a political issue - while porting GVPE to the newer |
|
|
10129 | *** OpenSSL 1.1 API, I encountered two incompatible API changes that were |
|
|
10130 | *** not documented, were not caught while compiling but caused security |
|
|
10131 | *** issues. When reported, the reaction of the OpenSSL developers was to |
|
|
10132 | *** update the documentation. |
|
|
10133 | *** |
|
|
10134 | *** As a result, I lost all confidence in the ability and desire of |
|
|
10135 | *** OpenSSL developers to create a safe API, and would highly recommend |
|
|
10136 | *** switching to LibreSSL which explicitly avoids such braking changes. |
|
|
10137 | *** |
|
|
10138 | *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
|
|
10139 | *** |
|
|
10140 | *** Again, do not use OpenSSL 1.1 and complain if stuff breaks. |
|
|
10141 | *** You have been warned, but your choice is respected. |
|
|
10142 | *** |
|
|
10143 | [0m |
10147 | |
10144 | |
|
|
10145 | EOF |
|
|
10146 | fi |
|
|
10147 | |
|
|
10148 | |