1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.69. |
3 | # Generated by GNU Autoconf 2.69 for gvpe 3.1. |
4 | # |
4 | # |
5 | # |
5 | # |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 | # |
7 | # |
8 | # |
8 | # |
… | |
… | |
573 | subdirs= |
573 | subdirs= |
574 | MFLAGS= |
574 | MFLAGS= |
575 | MAKEFLAGS= |
575 | MAKEFLAGS= |
576 | |
576 | |
577 | # Identity of this package. |
577 | # Identity of this package. |
578 | PACKAGE_NAME= |
578 | PACKAGE_NAME='gvpe' |
579 | PACKAGE_TARNAME= |
579 | PACKAGE_TARNAME='gvpe' |
580 | PACKAGE_VERSION= |
580 | PACKAGE_VERSION='3.1' |
581 | PACKAGE_STRING= |
581 | PACKAGE_STRING='gvpe 3.1' |
582 | PACKAGE_BUGREPORT= |
582 | PACKAGE_BUGREPORT='' |
583 | PACKAGE_URL= |
583 | PACKAGE_URL='' |
584 | |
584 | |
585 | ac_unique_file="src/gvpe.C" |
585 | ac_unique_file="src/gvpe.C" |
586 | # Factoring default headers for most tests. |
586 | # Factoring default headers for most tests. |
587 | ac_includes_default="\ |
587 | ac_includes_default="\ |
588 | #include <stdio.h> |
588 | #include <stdio.h> |
… | |
… | |
619 | # include <unistd.h> |
619 | # include <unistd.h> |
620 | #endif" |
620 | #endif" |
621 | |
621 | |
622 | ac_subst_vars='LTLIBOBJS |
622 | ac_subst_vars='LTLIBOBJS |
623 | LIBOBJS |
623 | LIBOBJS |
624 | INCLUDES |
624 | AM_CPPFLAGS |
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 |
… | |
… | |
752 | with_libiconv_prefix |
757 | with_libiconv_prefix |
753 | enable_nls |
758 | enable_nls |
754 | with_libintl_prefix |
759 | with_libintl_prefix |
755 | enable_iftype |
760 | enable_iftype |
756 | with_kernel |
761 | with_kernel |
757 | with_openssl_include |
|
|
758 | with_openssl_lib |
|
|
759 | enable_threads |
762 | enable_threads |
760 | enable_static_daemon |
763 | enable_static_daemon |
761 | enable_icmp |
764 | enable_icmp |
762 | enable_tcp |
765 | enable_tcp |
763 | enable_http_proxy |
766 | enable_http_proxy |
… | |
… | |
780 | CPPFLAGS |
783 | CPPFLAGS |
781 | CPP |
784 | CPP |
782 | CXX |
785 | CXX |
783 | CXXFLAGS |
786 | CXXFLAGS |
784 | CCC |
787 | CCC |
785 | CXXCPP' |
788 | CXXCPP |
|
|
789 | PKG_CONFIG |
|
|
790 | PKG_CONFIG_PATH |
|
|
791 | PKG_CONFIG_LIBDIR |
|
|
792 | LIBCRYPTO_CFLAGS |
|
|
793 | LIBCRYPTO_LIBS' |
786 | |
794 | |
787 | |
795 | |
788 | # Initialize some variables set by options. |
796 | # Initialize some variables set by options. |
789 | ac_init_help= |
797 | ac_init_help= |
790 | ac_init_version=false |
798 | ac_init_version=false |
… | |
… | |
822 | sharedstatedir='${prefix}/com' |
830 | sharedstatedir='${prefix}/com' |
823 | localstatedir='${prefix}/var' |
831 | localstatedir='${prefix}/var' |
824 | runstatedir='${localstatedir}/run' |
832 | runstatedir='${localstatedir}/run' |
825 | includedir='${prefix}/include' |
833 | includedir='${prefix}/include' |
826 | oldincludedir='/usr/include' |
834 | oldincludedir='/usr/include' |
827 | docdir='${datarootdir}/doc/${PACKAGE}' |
835 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
828 | infodir='${datarootdir}/info' |
836 | infodir='${datarootdir}/info' |
829 | htmldir='${docdir}' |
837 | htmldir='${docdir}' |
830 | dvidir='${docdir}' |
838 | dvidir='${docdir}' |
831 | pdfdir='${docdir}' |
839 | pdfdir='${docdir}' |
832 | psdir='${docdir}' |
840 | psdir='${docdir}' |
… | |
… | |
1331 | # |
1339 | # |
1332 | if test "$ac_init_help" = "long"; then |
1340 | if test "$ac_init_help" = "long"; then |
1333 | # Omit some internal or obsolete options to make the list less imposing. |
1341 | # Omit some internal or obsolete options to make the list less imposing. |
1334 | # This message is too long to be a string in the A/UX 3.1 sh. |
1342 | # This message is too long to be a string in the A/UX 3.1 sh. |
1335 | cat <<_ACEOF |
1343 | cat <<_ACEOF |
1336 | \`configure' configures this package to adapt to many kinds of systems. |
1344 | \`configure' configures gvpe 3.1 to adapt to many kinds of systems. |
1337 | |
1345 | |
1338 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1346 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1339 | |
1347 | |
1340 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1348 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1341 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1349 | VAR=VALUE. See below for descriptions of some of the useful variables. |
… | |
… | |
1380 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1388 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1381 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1389 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1382 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1390 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1383 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1391 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1384 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1392 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1385 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1393 | --docdir=DIR documentation root [DATAROOTDIR/doc/gvpe] |
1386 | --htmldir=DIR html documentation [DOCDIR] |
1394 | --htmldir=DIR html documentation [DOCDIR] |
1387 | --dvidir=DIR dvi documentation [DOCDIR] |
1395 | --dvidir=DIR dvi documentation [DOCDIR] |
1388 | --pdfdir=DIR pdf documentation [DOCDIR] |
1396 | --pdfdir=DIR pdf documentation [DOCDIR] |
1389 | --psdir=DIR ps documentation [DOCDIR] |
1397 | --psdir=DIR ps documentation [DOCDIR] |
1390 | _ACEOF |
1398 | _ACEOF |
… | |
… | |
1402 | --target=TARGET configure for building compilers for TARGET [HOST] |
1410 | --target=TARGET configure for building compilers for TARGET [HOST] |
1403 | _ACEOF |
1411 | _ACEOF |
1404 | fi |
1412 | fi |
1405 | |
1413 | |
1406 | if test -n "$ac_init_help"; then |
1414 | if test -n "$ac_init_help"; then |
1407 | |
1415 | case $ac_init_help in |
|
|
1416 | short | recursive ) echo "Configuration of gvpe 3.1:";; |
|
|
1417 | esac |
1408 | cat <<\_ACEOF |
1418 | cat <<\_ACEOF |
1409 | |
1419 | |
1410 | Optional Features: |
1420 | Optional Features: |
1411 | --disable-option-checking ignore unrecognized --enable/--with options |
1421 | --disable-option-checking ignore unrecognized --enable/--with options |
1412 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1422 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
… | |
… | |
1463 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
1473 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
1464 | --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1474 | --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1465 | --without-libintl-prefix don't search for libintl in includedir and libdir |
1475 | --without-libintl-prefix don't search for libintl in includedir and libdir |
1466 | --with-kernel=dir give the directory with kernel sources |
1476 | --with-kernel=dir give the directory with kernel sources |
1467 | (default: /usr/src/linux) |
1477 | (default: /usr/src/linux) |
1468 | --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl) |
|
|
1469 | --with-openssl-lib=DIR OpenSSL library directory |
|
|
1470 | |
1478 | |
1471 | Some influential environment variables: |
1479 | Some influential environment variables: |
1472 | CC C compiler command |
1480 | CC C compiler command |
1473 | CFLAGS C compiler flags |
1481 | CFLAGS C compiler flags |
1474 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1482 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1478 | you have headers in a nonstandard directory <include dir> |
1486 | you have headers in a nonstandard directory <include dir> |
1479 | CPP C preprocessor |
1487 | CPP C preprocessor |
1480 | CXX C++ compiler command |
1488 | CXX C++ compiler command |
1481 | CXXFLAGS C++ compiler flags |
1489 | CXXFLAGS C++ compiler flags |
1482 | CXXCPP C++ preprocessor |
1490 | CXXCPP C++ preprocessor |
|
|
1491 | PKG_CONFIG path to pkg-config utility |
|
|
1492 | PKG_CONFIG_PATH |
|
|
1493 | directories to add to pkg-config's search path |
|
|
1494 | PKG_CONFIG_LIBDIR |
|
|
1495 | path overriding pkg-config's built-in search path |
|
|
1496 | LIBCRYPTO_CFLAGS |
|
|
1497 | C compiler flags for LIBCRYPTO, overriding pkg-config |
|
|
1498 | LIBCRYPTO_LIBS |
|
|
1499 | linker flags for LIBCRYPTO, overriding pkg-config |
1483 | |
1500 | |
1484 | Use these variables to override the choices made by `configure' or to help |
1501 | Use these variables to override the choices made by `configure' or to help |
1485 | it to find libraries and programs with nonstandard names/locations. |
1502 | it to find libraries and programs with nonstandard names/locations. |
1486 | |
1503 | |
1487 | Report bugs to the package provider. |
1504 | Report bugs to the package provider. |
… | |
… | |
1545 | fi |
1562 | fi |
1546 | |
1563 | |
1547 | test -n "$ac_init_help" && exit $ac_status |
1564 | test -n "$ac_init_help" && exit $ac_status |
1548 | if $ac_init_version; then |
1565 | if $ac_init_version; then |
1549 | cat <<\_ACEOF |
1566 | cat <<\_ACEOF |
1550 | configure |
1567 | gvpe configure 3.1 |
1551 | generated by GNU Autoconf 2.69 |
1568 | generated by GNU Autoconf 2.69 |
1552 | |
1569 | |
1553 | Copyright (C) 2012 Free Software Foundation, Inc. |
1570 | Copyright (C) 2012 Free Software Foundation, Inc. |
1554 | This configure script is free software; the Free Software Foundation |
1571 | This configure script is free software; the Free Software Foundation |
1555 | gives unlimited permission to copy, distribute and modify it. |
1572 | gives unlimited permission to copy, distribute and modify it. |
… | |
… | |
2210 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2227 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2211 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2228 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2212 | as_fn_set_status $ac_retval |
2229 | as_fn_set_status $ac_retval |
2213 | |
2230 | |
2214 | } # ac_fn_cxx_try_link |
2231 | } # ac_fn_cxx_try_link |
2215 | |
|
|
2216 | # ac_fn_cxx_check_func LINENO FUNC VAR |
|
|
2217 | # ------------------------------------ |
|
|
2218 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
|
2219 | ac_fn_cxx_check_func () |
|
|
2220 | { |
|
|
2221 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
2223 | $as_echo_n "checking for $2... " >&6; } |
|
|
2224 | if eval \${$3+:} false; then : |
|
|
2225 | $as_echo_n "(cached) " >&6 |
|
|
2226 | else |
|
|
2227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2228 | /* end confdefs.h. */ |
|
|
2229 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
|
2230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
2231 | #define $2 innocuous_$2 |
|
|
2232 | |
|
|
2233 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
2234 | which can conflict with char $2 (); below. |
|
|
2235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2236 | <limits.h> exists even on freestanding compilers. */ |
|
|
2237 | |
|
|
2238 | #ifdef __STDC__ |
|
|
2239 | # include <limits.h> |
|
|
2240 | #else |
|
|
2241 | # include <assert.h> |
|
|
2242 | #endif |
|
|
2243 | |
|
|
2244 | #undef $2 |
|
|
2245 | |
|
|
2246 | /* Override any GCC internal prototype to avoid an error. |
|
|
2247 | Use char because int might match the return type of a GCC |
|
|
2248 | builtin and then its argument prototype would still apply. */ |
|
|
2249 | #ifdef __cplusplus |
|
|
2250 | extern "C" |
|
|
2251 | #endif |
|
|
2252 | char $2 (); |
|
|
2253 | /* The GNU C library defines this for functions which it implements |
|
|
2254 | to always fail with ENOSYS. Some functions are actually named |
|
|
2255 | something starting with __ and the normal name is an alias. */ |
|
|
2256 | #if defined __stub_$2 || defined __stub___$2 |
|
|
2257 | choke me |
|
|
2258 | #endif |
|
|
2259 | |
|
|
2260 | int |
|
|
2261 | main () |
|
|
2262 | { |
|
|
2263 | return $2 (); |
|
|
2264 | ; |
|
|
2265 | return 0; |
|
|
2266 | } |
|
|
2267 | _ACEOF |
|
|
2268 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
2269 | eval "$3=yes" |
|
|
2270 | else |
|
|
2271 | eval "$3=no" |
|
|
2272 | fi |
|
|
2273 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
2274 | conftest$ac_exeext conftest.$ac_ext |
|
|
2275 | fi |
|
|
2276 | eval ac_res=\$$3 |
|
|
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2278 | $as_echo "$ac_res" >&6; } |
|
|
2279 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2280 | |
|
|
2281 | } # ac_fn_cxx_check_func |
|
|
2282 | cat >config.log <<_ACEOF |
2232 | cat >config.log <<_ACEOF |
2283 | This file contains any messages produced by compilers while |
2233 | This file contains any messages produced by compilers while |
2284 | running configure, to aid debugging if configure makes a mistake. |
2234 | running configure, to aid debugging if configure makes a mistake. |
2285 | |
2235 | |
2286 | It was created by $as_me, which was |
2236 | It was created by gvpe $as_me 3.1, which was |
2287 | generated by GNU Autoconf 2.69. Invocation command line was |
2237 | generated by GNU Autoconf 2.69. Invocation command line was |
2288 | |
2238 | |
2289 | $ $0 $@ |
2239 | $ $0 $@ |
2290 | |
2240 | |
2291 | _ACEOF |
2241 | _ACEOF |
… | |
… | |
3025 | fi |
2975 | fi |
3026 | fi |
2976 | fi |
3027 | |
2977 | |
3028 | |
2978 | |
3029 | # Define the identity of the package. |
2979 | # Define the identity of the package. |
3030 | PACKAGE=gvpe |
2980 | PACKAGE='gvpe' |
3031 | VERSION=3.0 |
2981 | VERSION='3.1' |
3032 | |
2982 | |
3033 | |
2983 | |
3034 | cat >>confdefs.h <<_ACEOF |
2984 | cat >>confdefs.h <<_ACEOF |
3035 | #define PACKAGE "$PACKAGE" |
2985 | #define PACKAGE "$PACKAGE" |
3036 | _ACEOF |
2986 | _ACEOF |
… | |
… | |
8085 | |
8035 | |
8086 | |
8036 | |
8087 | |
8037 | |
8088 | |
8038 | |
8089 | |
8039 | |
8090 | tinc_ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
8091 | |
8040 | |
8092 | |
8041 | |
8093 | # Check whether --with-openssl-include was given. |
|
|
8094 | if test "${with_openssl_include+set}" = set; then : |
|
|
8095 | withval=$with_openssl_include; openssl_include="$withval" |
|
|
8096 | CFLAGS="$CFLAGS -I$withval" |
|
|
8097 | CPPFLAGS="$CPPFLAGS -I$withval" |
|
|
8098 | |
8042 | |
8099 | fi |
|
|
8100 | |
8043 | |
8101 | |
8044 | |
8102 | |
8045 | |
8103 | # Check whether --with-openssl-lib was given. |
8046 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
8104 | if test "${with_openssl_lib+set}" = set; then : |
8047 | if test -n "$ac_tool_prefix"; then |
8105 | withval=$with_openssl_lib; openssl_lib="$withval" |
8048 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
8106 | LIBS="$LIBS -L$withval" |
8049 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
8107 | |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8108 | fi |
8051 | $as_echo_n "checking for $ac_word... " >&6; } |
8109 | |
8052 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
8110 | |
8053 | $as_echo_n "(cached) " >&6 |
8111 | for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h |
|
|
8112 | do : |
|
|
8113 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8114 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
8115 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
8116 | cat >>confdefs.h <<_ACEOF |
|
|
8117 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8118 | _ACEOF |
|
|
8119 | |
|
|
8120 | else |
8054 | else |
8121 | as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break |
8055 | case $PKG_CONFIG in |
8122 | |
8056 | [\\/]* | ?:[\\/]*) |
8123 | fi |
8057 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
8124 | |
8058 | ;; |
|
|
8059 | *) |
|
|
8060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8061 | for as_dir in $PATH |
|
|
8062 | do |
|
|
8063 | IFS=$as_save_IFS |
|
|
8064 | test -z "$as_dir" && as_dir=. |
|
|
8065 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8067 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
8068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8069 | break 2 |
|
|
8070 | fi |
8125 | done |
8071 | done |
|
|
8072 | done |
|
|
8073 | IFS=$as_save_IFS |
8126 | |
8074 | |
|
|
8075 | ;; |
|
|
8076 | esac |
|
|
8077 | fi |
|
|
8078 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
8079 | if test -n "$PKG_CONFIG"; then |
|
|
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
|
|
8081 | $as_echo "$PKG_CONFIG" >&6; } |
|
|
8082 | else |
|
|
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8084 | $as_echo "no" >&6; } |
|
|
8085 | fi |
8127 | |
8086 | |
8128 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
|
|
8129 | |
8087 | |
|
|
8088 | fi |
|
|
8089 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
|
|
8090 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
|
8091 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
8092 | set dummy pkg-config; ac_word=$2 |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8131 | $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } |
8094 | $as_echo_n "checking for $ac_word... " >&6; } |
8132 | if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : |
8095 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
8133 | $as_echo_n "(cached) " >&6 |
8096 | $as_echo_n "(cached) " >&6 |
8134 | else |
8097 | else |
8135 | ac_check_lib_save_LIBS=$LIBS |
8098 | case $ac_pt_PKG_CONFIG in |
8136 | LIBS="-lcrypto $LIBS" |
8099 | [\\/]* | ?:[\\/]*) |
8137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8100 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
8138 | /* end confdefs.h. */ |
|
|
8139 | |
|
|
8140 | /* Override any GCC internal prototype to avoid an error. |
|
|
8141 | Use char because int might match the return type of a GCC |
|
|
8142 | builtin and then its argument prototype would still apply. */ |
|
|
8143 | #ifdef __cplusplus |
|
|
8144 | extern "C" |
|
|
8145 | #endif |
|
|
8146 | char SHA1_Init (); |
|
|
8147 | int |
|
|
8148 | main () |
|
|
8149 | { |
|
|
8150 | return SHA1_Init (); |
|
|
8151 | ; |
8101 | ;; |
8152 | return 0; |
8102 | *) |
8153 | } |
8103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8154 | _ACEOF |
8104 | for as_dir in $PATH |
8155 | if ac_fn_cxx_try_link "$LINENO"; then : |
8105 | do |
8156 | ac_cv_lib_crypto_SHA1_Init=yes |
8106 | IFS=$as_save_IFS |
8157 | else |
8107 | test -z "$as_dir" && as_dir=. |
8158 | ac_cv_lib_crypto_SHA1_Init=no |
8108 | for ac_exec_ext in '' $ac_executable_extensions; do |
8159 | fi |
8109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8160 | rm -f core conftest.err conftest.$ac_objext \ |
8110 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8161 | conftest$ac_exeext conftest.$ac_ext |
8111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8162 | LIBS=$ac_check_lib_save_LIBS |
8112 | break 2 |
8163 | fi |
8113 | fi |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 |
|
|
8165 | $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } |
|
|
8166 | if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : |
|
|
8167 | LIBS="$LIBS -lcrypto" |
|
|
8168 | else |
|
|
8169 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
|
|
8170 | |
|
|
8171 | fi |
|
|
8172 | |
|
|
8173 | |
|
|
8174 | for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms |
|
|
8175 | do : |
|
|
8176 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
8177 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
8178 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
8179 | cat >>confdefs.h <<_ACEOF |
|
|
8180 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
8181 | _ACEOF |
|
|
8182 | |
|
|
8183 | fi |
|
|
8184 | done |
8114 | done |
|
|
8115 | done |
|
|
8116 | IFS=$as_save_IFS |
8185 | |
8117 | |
|
|
8118 | ;; |
|
|
8119 | esac |
|
|
8120 | fi |
|
|
8121 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
|
8122 | if test -n "$ac_pt_PKG_CONFIG"; then |
|
|
8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
|
|
8124 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
|
|
8125 | else |
|
|
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8127 | $as_echo "no" >&6; } |
|
|
8128 | fi |
8186 | |
8129 | |
8187 | ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
8130 | if test "x$ac_pt_PKG_CONFIG" = x; then |
8188 | if test "x$ac_cv_func_dlopen" = xyes; then : |
8131 | PKG_CONFIG="" |
|
|
8132 | else |
|
|
8133 | case $cross_compiling:$ac_tool_warned in |
|
|
8134 | yes:) |
|
|
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
8136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
8137 | ac_tool_warned=yes ;; |
|
|
8138 | esac |
|
|
8139 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
|
8140 | fi |
|
|
8141 | else |
|
|
8142 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
|
8143 | fi |
8189 | |
8144 | |
|
|
8145 | fi |
|
|
8146 | if test -n "$PKG_CONFIG"; then |
|
|
8147 | _pkg_min_version=0.9.0 |
|
|
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
|
|
8149 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
|
|
8150 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
|
|
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8152 | $as_echo "yes" >&6; } |
8190 | else |
8153 | else |
|
|
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8155 | $as_echo "no" >&6; } |
|
|
8156 | PKG_CONFIG="" |
|
|
8157 | fi |
|
|
8158 | fi |
|
|
8159 | |
|
|
8160 | pkg_failed=no |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5 |
8192 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
8162 | $as_echo_n "checking for LIBCRYPTO... " >&6; } |
8193 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8163 | |
8194 | $as_echo_n "(cached) " >&6 |
8164 | if test -n "$LIBCRYPTO_CFLAGS"; then |
|
|
8165 | pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS" |
|
|
8166 | elif test -n "$PKG_CONFIG"; then |
|
|
8167 | if test -n "$PKG_CONFIG" && \ |
|
|
8168 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
|
|
8169 | ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
|
|
8170 | ac_status=$? |
|
|
8171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
8172 | test $ac_status = 0; }; then |
|
|
8173 | pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null` |
|
|
8174 | test "x$?" != "x0" && pkg_failed=yes |
|
|
8175 | else |
|
|
8176 | pkg_failed=yes |
|
|
8177 | fi |
8195 | else |
8178 | else |
8196 | ac_check_lib_save_LIBS=$LIBS |
8179 | pkg_failed=untried |
8197 | LIBS="-ldl $LIBS" |
8180 | fi |
8198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8181 | if test -n "$LIBCRYPTO_LIBS"; then |
8199 | /* end confdefs.h. */ |
8182 | pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS" |
8200 | |
8183 | elif test -n "$PKG_CONFIG"; then |
8201 | /* Override any GCC internal prototype to avoid an error. |
8184 | if test -n "$PKG_CONFIG" && \ |
8202 | Use char because int might match the return type of a GCC |
8185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
8203 | builtin and then its argument prototype would still apply. */ |
8186 | ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
8204 | #ifdef __cplusplus |
8187 | ac_status=$? |
8205 | extern "C" |
8188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8206 | #endif |
8189 | test $ac_status = 0; }; then |
8207 | char dlopen (); |
8190 | pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null` |
8208 | int |
8191 | test "x$?" != "x0" && pkg_failed=yes |
8209 | main () |
8192 | else |
8210 | { |
8193 | pkg_failed=yes |
8211 | return dlopen (); |
8194 | fi |
8212 | ; |
|
|
8213 | return 0; |
|
|
8214 | } |
|
|
8215 | _ACEOF |
|
|
8216 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
8217 | ac_cv_lib_dl_dlopen=yes |
|
|
8218 | else |
8195 | else |
8219 | ac_cv_lib_dl_dlopen=no |
8196 | pkg_failed=untried |
8220 | fi |
8197 | fi |
8221 | rm -f core conftest.err conftest.$ac_objext \ |
8198 | |
8222 | conftest$ac_exeext conftest.$ac_ext |
8199 | |
8223 | LIBS=$ac_check_lib_save_LIBS |
8200 | |
8224 | fi |
8201 | if test $pkg_failed = yes; then |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8226 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
8203 | $as_echo "no" >&6; } |
8227 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
|
8228 | LIBS="$LIBS -ldl" |
|
|
8229 | else |
|
|
8230 | as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5 |
|
|
8231 | |
8204 | |
8232 | fi |
8205 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8233 | |
8206 | _pkg_short_errors_supported=yes |
8234 | |
|
|
8235 | fi |
|
|
8236 | |
|
|
8237 | |
|
|
8238 | ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate" |
|
|
8239 | if test "x$ac_cv_func_inflate" = xyes; then : |
|
|
8240 | |
|
|
8241 | else |
8207 | else |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
8208 | _pkg_short_errors_supported=no |
8243 | $as_echo_n "checking for inflate in -lz... " >&6; } |
|
|
8244 | if ${ac_cv_lib_z_inflate+:} false; then : |
|
|
8245 | $as_echo_n "(cached) " >&6 |
|
|
8246 | else |
|
|
8247 | ac_check_lib_save_LIBS=$LIBS |
|
|
8248 | LIBS="-lz $LIBS" |
|
|
8249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8250 | /* end confdefs.h. */ |
|
|
8251 | |
|
|
8252 | /* Override any GCC internal prototype to avoid an error. |
|
|
8253 | Use char because int might match the return type of a GCC |
|
|
8254 | builtin and then its argument prototype would still apply. */ |
|
|
8255 | #ifdef __cplusplus |
|
|
8256 | extern "C" |
|
|
8257 | #endif |
|
|
8258 | char inflate (); |
|
|
8259 | int |
|
|
8260 | main () |
|
|
8261 | { |
|
|
8262 | return inflate (); |
|
|
8263 | ; |
|
|
8264 | return 0; |
|
|
8265 | } |
|
|
8266 | _ACEOF |
|
|
8267 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
8268 | ac_cv_lib_z_inflate=yes |
|
|
8269 | else |
|
|
8270 | ac_cv_lib_z_inflate=no |
|
|
8271 | fi |
8209 | fi |
8272 | rm -f core conftest.err conftest.$ac_objext \ |
8210 | if test $_pkg_short_errors_supported = yes; then |
8273 | conftest$ac_exeext conftest.$ac_ext |
8211 | LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
8274 | LIBS=$ac_check_lib_save_LIBS |
8212 | else |
8275 | fi |
8213 | LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
|
|
8214 | fi |
|
|
8215 | # Put the nasty error message in config.log where it belongs |
|
|
8216 | echo "$LIBCRYPTO_PKG_ERRORS" >&5 |
|
|
8217 | |
|
|
8218 | as_fn_error $? "Package requirements (libcrypto >= 1) were not met: |
|
|
8219 | |
|
|
8220 | $LIBCRYPTO_PKG_ERRORS |
|
|
8221 | |
|
|
8222 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
|
8223 | installed software in a non-standard prefix. |
|
|
8224 | |
|
|
8225 | Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
|
|
8226 | and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
|
|
8227 | See the pkg-config man page for more details." "$LINENO" 5 |
|
|
8228 | elif test $pkg_failed = untried; then |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8277 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
8230 | $as_echo "no" >&6; } |
8278 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
8231 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8279 | LIBS="$LIBS -lz" |
8232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8280 | else |
8233 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
8281 | as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5 |
8234 | is in your PATH or set the PKG_CONFIG environment variable to the full |
|
|
8235 | path to pkg-config. |
8282 | |
8236 | |
8283 | fi |
8237 | Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
|
|
8238 | and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
|
|
8239 | See the pkg-config man page for more details. |
8284 | |
8240 | |
|
|
8241 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
|
|
8242 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
8243 | else |
|
|
8244 | LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS |
|
|
8245 | LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS |
|
|
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
8247 | $as_echo "yes" >&6; } |
8285 | |
8248 | |
8286 | fi |
|
|
8287 | |
|
|
8288 | |
|
|
8289 | if test "x$openssl_include" != x; then |
|
|
8290 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
|
|
8291 | fi |
8249 | fi |
8292 | |
8250 | |
8293 | # Check whether --enable-threads was given. |
8251 | # Check whether --enable-threads was given. |
8294 | if test "${enable_threads+set}" = set; then : |
8252 | if test "${enable_threads+set}" = set; then : |
8295 | enableval=$enable_threads; try_threads=$enableval |
8253 | enableval=$enable_threads; try_threads=$enableval |
… | |
… | |
9108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9109 | # Save the log message, to keep $0 and so on meaningful, and to |
9067 | # Save the log message, to keep $0 and so on meaningful, and to |
9110 | # report actual input values of CONFIG_FILES etc. instead of their |
9068 | # report actual input values of CONFIG_FILES etc. instead of their |
9111 | # values after options handling. |
9069 | # values after options handling. |
9112 | ac_log=" |
9070 | ac_log=" |
9113 | This file was extended by $as_me, which was |
9071 | This file was extended by gvpe $as_me 3.1, which was |
9114 | generated by GNU Autoconf 2.69. Invocation command line was |
9072 | generated by GNU Autoconf 2.69. Invocation command line was |
9115 | |
9073 | |
9116 | CONFIG_FILES = $CONFIG_FILES |
9074 | CONFIG_FILES = $CONFIG_FILES |
9117 | CONFIG_HEADERS = $CONFIG_HEADERS |
9075 | CONFIG_HEADERS = $CONFIG_HEADERS |
9118 | CONFIG_LINKS = $CONFIG_LINKS |
9076 | CONFIG_LINKS = $CONFIG_LINKS |
… | |
… | |
9174 | |
9132 | |
9175 | _ACEOF |
9133 | _ACEOF |
9176 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9134 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9177 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9135 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9178 | ac_cs_version="\\ |
9136 | ac_cs_version="\\ |
9179 | config.status |
9137 | gvpe config.status 3.1 |
9180 | configured by $0, generated by GNU Autoconf 2.69, |
9138 | configured by $0, generated by GNU Autoconf 2.69, |
9181 | with options \\"\$ac_cs_config\\" |
9139 | with options \\"\$ac_cs_config\\" |
9182 | |
9140 | |
9183 | Copyright (C) 2012 Free Software Foundation, Inc. |
9141 | Copyright (C) 2012 Free Software Foundation, Inc. |
9184 | This config.status script is free software; the Free Software Foundation |
9142 | This config.status script is free software; the Free Software Foundation |
… | |
… | |
10154 | fi |
10112 | fi |
10155 | |
10113 | |
10156 | echo "***" |
10114 | echo "***" |
10157 | echo |
10115 | echo |
10158 | |
10116 | |
|
|
10117 | if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then |
|
|
10118 | cat <<EOF |
|
|
10119 | [33m |
|
|
10120 | *** |
|
|
10121 | *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
|
|
10122 | *** |
|
|
10123 | *** You seem to configure gvpe with OpenSSL 1.1 or newer. |
|
|
10124 | *** While this probably compiles, please note that this is not only |
|
|
10125 | *** unsupported, but also discouraged. |
|
|
10126 | *** |
|
|
10127 | *** It is recommended to use either OpenSSL 1.0, as long as that is still |
|
|
10128 | *** supported, or LibreSSL (https://www.libressl.org/). |
|
|
10129 | *** |
|
|
10130 | *** This is not a political issue - while porting GVPE to the newer |
|
|
10131 | *** OpenSSL 1.1 API, I encountered two incompatible API changes that were |
|
|
10132 | *** not documented, were not caught while compiling but caused security |
|
|
10133 | *** issues. When reported, the reaction of the OpenSSL developers was to |
|
|
10134 | *** update the documentation. |
|
|
10135 | *** |
|
|
10136 | *** As a result, I lost all confidence in the ability and desire of |
|
|
10137 | *** OpenSSL developers to create a safe API, and would highly recommend |
|
|
10138 | *** switching to LibreSSL which explicitly avoids such braking changes. |
|
|
10139 | *** |
|
|
10140 | *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
|
|
10141 | *** |
|
|
10142 | *** Again, do not use OpenSSL 1.1 and complain if stuff breaks. |
|
|
10143 | *** You have been warned, but your choice is respected. |
|
|
10144 | *** |
|
|
10145 | [0m |
10159 | |
10146 | |
|
|
10147 | EOF |
|
|
10148 | fi |
|
|
10149 | |
|
|
10150 | |