| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 1402 2012-05-09 18:42:45Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 9963 2021-06-04 13:24:58Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
< |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8beta1. |
| 4 |
> |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.39. |
| 5 |
|
# |
| 6 |
|
# Report bugs to <bugs@ircd-hybrid.org>. |
| 7 |
|
# |
| 593 |
|
# Identity of this package. |
| 594 |
|
PACKAGE_NAME='ircd-hybrid' |
| 595 |
|
PACKAGE_TARNAME='ircd-hybrid' |
| 596 |
< |
PACKAGE_VERSION='8beta1' |
| 597 |
< |
PACKAGE_STRING='ircd-hybrid 8beta1' |
| 596 |
> |
PACKAGE_VERSION='8.2.39' |
| 597 |
> |
PACKAGE_STRING='ircd-hybrid 8.2.39' |
| 598 |
|
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
| 599 |
|
PACKAGE_URL='' |
| 600 |
|
|
| 648 |
|
LIBDIR |
| 649 |
|
SYSCONFDIR |
| 650 |
|
PREFIX |
| 651 |
– |
ENABLE_SSL_FALSE |
| 652 |
– |
ENABLE_SSL_TRUE |
| 651 |
|
LTDLOPEN |
| 652 |
|
LT_CONFIG_H |
| 653 |
|
CONVENIENCE_LTDL_FALSE |
| 654 |
|
CONVENIENCE_LTDL_TRUE |
| 655 |
|
INSTALL_LTDL_FALSE |
| 656 |
|
INSTALL_LTDL_TRUE |
| 657 |
< |
ARGZ_H |
| 657 |
> |
LT_ARGZ_H |
| 658 |
|
sys_symbol_underscore |
| 659 |
|
LIBADD_DL |
| 660 |
|
LT_DLPREOPEN |
| 667 |
|
LTDLDEPS |
| 668 |
|
LIBLTDL |
| 669 |
|
CPP |
| 670 |
+ |
LT_SYS_LIBRARY_PATH |
| 671 |
|
OTOOL64 |
| 672 |
|
OTOOL |
| 673 |
|
LIPO |
| 709 |
|
AMDEPBACKSLASH |
| 710 |
|
AMDEP_FALSE |
| 711 |
|
AMDEP_TRUE |
| 713 |
– |
am__quote |
| 712 |
|
am__include |
| 713 |
|
DEPDIR |
| 714 |
|
OBJEXT |
| 721 |
|
MAINT |
| 722 |
|
MAINTAINER_MODE_FALSE |
| 723 |
|
MAINTAINER_MODE_TRUE |
| 724 |
+ |
AM_BACKSLASH |
| 725 |
+ |
AM_DEFAULT_VERBOSITY |
| 726 |
+ |
AM_DEFAULT_V |
| 727 |
+ |
AM_V |
| 728 |
|
am__untar |
| 729 |
|
am__tar |
| 730 |
|
AMTAR |
| 731 |
|
am__leading_dot |
| 732 |
|
SET_MAKE |
| 733 |
|
AWK |
| 734 |
+ |
mkdir_p |
| 735 |
|
MKDIR_P |
| 736 |
|
INSTALL_STRIP_PROGRAM |
| 737 |
|
STRIP |
| 767 |
|
docdir |
| 768 |
|
oldincludedir |
| 769 |
|
includedir |
| 770 |
+ |
runstatedir |
| 771 |
|
localstatedir |
| 772 |
|
sharedstatedir |
| 773 |
|
sysconfdir |
| 786 |
|
PACKAGE_TARNAME |
| 787 |
|
PACKAGE_NAME |
| 788 |
|
PATH_SEPARATOR |
| 789 |
< |
SHELL' |
| 789 |
> |
SHELL |
| 790 |
> |
am__quote' |
| 791 |
|
ac_subst_files='' |
| 792 |
|
ac_user_opts=' |
| 793 |
|
enable_option_checking |
| 794 |
+ |
enable_silent_rules |
| 795 |
|
enable_maintainer_mode |
| 796 |
|
enable_dependency_tracking |
| 797 |
|
enable_static |
| 798 |
|
enable_shared |
| 799 |
|
with_pic |
| 800 |
|
enable_fast_install |
| 801 |
+ |
with_aix_soname |
| 802 |
|
with_gnu_ld |
| 803 |
|
with_sysroot |
| 804 |
|
enable_libtool_lock |
| 806 |
|
with_ltdl_include |
| 807 |
|
with_ltdl_lib |
| 808 |
|
enable_ltdl_install |
| 802 |
– |
enable_libpcre |
| 803 |
– |
enable_openssl |
| 804 |
– |
enable_assert |
| 805 |
– |
enable_small_net |
| 809 |
|
enable_kqueue |
| 810 |
|
enable_epoll |
| 811 |
|
enable_devpoll |
| 809 |
– |
enable_rtsigio |
| 812 |
|
enable_poll |
| 813 |
< |
enable_select |
| 812 |
< |
with_nicklen |
| 813 |
< |
with_topiclen |
| 814 |
< |
enable_halfops |
| 813 |
> |
enable_assert |
| 814 |
|
enable_debugging |
| 815 |
|
enable_warnings |
| 816 |
+ |
enable_efence |
| 817 |
+ |
with_tls |
| 818 |
|
' |
| 819 |
|
ac_precious_vars='build_alias |
| 820 |
|
host_alias |
| 826 |
|
CPPFLAGS |
| 827 |
|
YACC |
| 828 |
|
YFLAGS |
| 829 |
+ |
LT_SYS_LIBRARY_PATH |
| 830 |
|
CPP' |
| 831 |
|
|
| 832 |
|
|
| 866 |
|
sysconfdir='${prefix}/etc' |
| 867 |
|
sharedstatedir='${prefix}/com' |
| 868 |
|
localstatedir='${prefix}/var' |
| 869 |
+ |
runstatedir='${localstatedir}/run' |
| 870 |
|
includedir='${prefix}/include' |
| 871 |
|
oldincludedir='/usr/include' |
| 872 |
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1119 |
|
| -silent | --silent | --silen | --sile | --sil) |
| 1120 |
|
silent=yes ;; |
| 1121 |
|
|
| 1122 |
+ |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1123 |
+ |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1124 |
+ |
| --run | --ru | --r) |
| 1125 |
+ |
ac_prev=runstatedir ;; |
| 1126 |
+ |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1127 |
+ |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1128 |
+ |
| --run=* | --ru=* | --r=*) |
| 1129 |
+ |
runstatedir=$ac_optarg ;; |
| 1130 |
+ |
|
| 1131 |
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1132 |
|
ac_prev=sbindir ;; |
| 1133 |
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1265 |
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1266 |
|
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1267 |
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1268 |
< |
libdir localedir mandir |
| 1268 |
> |
libdir localedir mandir runstatedir |
| 1269 |
|
do |
| 1270 |
|
eval ac_val=\$$ac_var |
| 1271 |
|
# Remove trailing slashes. |
| 1378 |
|
# Omit some internal or obsolete options to make the list less imposing. |
| 1379 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1380 |
|
cat <<_ACEOF |
| 1381 |
< |
\`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems. |
| 1381 |
> |
\`configure' configures ircd-hybrid 8.2.39 to adapt to many kinds of systems. |
| 1382 |
|
|
| 1383 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1384 |
|
|
| 1418 |
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1419 |
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1420 |
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1421 |
+ |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1422 |
|
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1423 |
|
--includedir=DIR C header files [PREFIX/include] |
| 1424 |
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1449 |
|
|
| 1450 |
|
if test -n "$ac_init_help"; then |
| 1451 |
|
case $ac_init_help in |
| 1452 |
< |
short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";; |
| 1452 |
> |
short | recursive ) echo "Configuration of ircd-hybrid 8.2.39:";; |
| 1453 |
|
esac |
| 1454 |
|
cat <<\_ACEOF |
| 1455 |
|
|
| 1457 |
|
--disable-option-checking ignore unrecognized --enable/--with options |
| 1458 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1459 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1460 |
+ |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1461 |
+ |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1462 |
|
--enable-maintainer-mode |
| 1463 |
|
enable make rules and dependencies not useful (and |
| 1464 |
|
sometimes confusing) to the casual installer |
| 1472 |
|
optimize for fast installation [default=yes] |
| 1473 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1474 |
|
--enable-ltdl-install install libltdl |
| 1460 |
– |
--disable-libpcre Disable PCRE support |
| 1461 |
– |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1462 |
– |
--disable-openssl Disable OpenSSL support. |
| 1463 |
– |
--enable-assert Enable assert() statements |
| 1464 |
– |
--enable-small-net Enable small network support. |
| 1475 |
|
--enable-kqueue Force kqueue usage. |
| 1476 |
|
--enable-epoll Force epoll usage. |
| 1477 |
|
--enable-devpoll Force devpoll usage. |
| 1468 |
– |
--enable-rtsigio Force rtsigio usage. |
| 1478 |
|
--enable-poll Force poll usage. |
| 1479 |
< |
--enable-select Force select usage. |
| 1471 |
< |
--enable-halfops Enable halfops support. |
| 1479 |
> |
--enable-assert Enable assert() statements |
| 1480 |
|
--enable-debugging Enable debugging. |
| 1481 |
|
--enable-warnings Enable compiler warnings. |
| 1482 |
+ |
--enable-efence Enable linking with Electric Fence 'efence' memory |
| 1483 |
+ |
debugger library. |
| 1484 |
|
|
| 1485 |
|
Optional Packages: |
| 1486 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1487 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1488 |
|
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1489 |
|
both] |
| 1490 |
+ |
--with-aix-soname=aix|svr4|both |
| 1491 |
+ |
shared library versioning (aka "SONAME") variant to |
| 1492 |
+ |
provide on AIX, [default=aix]. |
| 1493 |
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1494 |
< |
--with-sysroot=DIR Search for dependent libraries within DIR |
| 1495 |
< |
(or the compiler's sysroot if not specified). |
| 1494 |
> |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1495 |
> |
compiler's sysroot if not specified). |
| 1496 |
|
--with-included-ltdl use the GNU ltdl sources included here |
| 1497 |
|
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1498 |
|
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1499 |
< |
--with-nicklen=<value> Set nickname length (default 9). |
| 1500 |
< |
--with-topiclen=<value> Set topic length (default 160). |
| 1499 |
> |
--with-tls Enables TLS with specified library. Options: |
| 1500 |
> |
'openssl', 'wolfssl', 'gnutls' or 'none' |
| 1501 |
|
|
| 1502 |
|
Some influential environment variables: |
| 1503 |
|
CC C compiler command |
| 1513 |
|
YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1514 |
|
This script will default YFLAGS to the empty string to avoid a |
| 1515 |
|
default value of `-d' given by some make applications. |
| 1516 |
+ |
LT_SYS_LIBRARY_PATH |
| 1517 |
+ |
User-defined run-time library search path. |
| 1518 |
|
CPP C preprocessor |
| 1519 |
|
|
| 1520 |
|
Use these variables to override the choices made by `configure' or to help |
| 1583 |
|
test -n "$ac_init_help" && exit $ac_status |
| 1584 |
|
if $ac_init_version; then |
| 1585 |
|
cat <<\_ACEOF |
| 1586 |
< |
ircd-hybrid configure 8beta1 |
| 1586 |
> |
ircd-hybrid configure 8.2.39 |
| 1587 |
|
generated by GNU Autoconf 2.69 |
| 1588 |
|
|
| 1589 |
|
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1958 |
|
|
| 1959 |
|
} # ac_fn_c_check_type |
| 1960 |
|
|
| 1946 |
– |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1947 |
– |
# ---------------------------------------------------- |
| 1948 |
– |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 1949 |
– |
# INCLUDES, setting cache variable VAR accordingly. |
| 1950 |
– |
ac_fn_c_check_member () |
| 1951 |
– |
{ |
| 1952 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1953 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1954 |
– |
$as_echo_n "checking for $2.$3... " >&6; } |
| 1955 |
– |
if eval \${$4+:} false; then : |
| 1956 |
– |
$as_echo_n "(cached) " >&6 |
| 1957 |
– |
else |
| 1958 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1959 |
– |
/* end confdefs.h. */ |
| 1960 |
– |
$5 |
| 1961 |
– |
int |
| 1962 |
– |
main () |
| 1963 |
– |
{ |
| 1964 |
– |
static $2 ac_aggr; |
| 1965 |
– |
if (ac_aggr.$3) |
| 1966 |
– |
return 0; |
| 1967 |
– |
; |
| 1968 |
– |
return 0; |
| 1969 |
– |
} |
| 1970 |
– |
_ACEOF |
| 1971 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1972 |
– |
eval "$4=yes" |
| 1973 |
– |
else |
| 1974 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1975 |
– |
/* end confdefs.h. */ |
| 1976 |
– |
$5 |
| 1977 |
– |
int |
| 1978 |
– |
main () |
| 1979 |
– |
{ |
| 1980 |
– |
static $2 ac_aggr; |
| 1981 |
– |
if (sizeof ac_aggr.$3) |
| 1982 |
– |
return 0; |
| 1983 |
– |
; |
| 1984 |
– |
return 0; |
| 1985 |
– |
} |
| 1986 |
– |
_ACEOF |
| 1987 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1988 |
– |
eval "$4=yes" |
| 1989 |
– |
else |
| 1990 |
– |
eval "$4=no" |
| 1991 |
– |
fi |
| 1992 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1993 |
– |
fi |
| 1994 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 |
– |
fi |
| 1996 |
– |
eval ac_res=\$$4 |
| 1997 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1998 |
– |
$as_echo "$ac_res" >&6; } |
| 1999 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2000 |
– |
|
| 2001 |
– |
} # ac_fn_c_check_member |
| 2002 |
– |
|
| 1961 |
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1962 |
|
# ------------------------------------------------------- |
| 1963 |
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2052 |
|
This file contains any messages produced by compilers while |
| 2053 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2054 |
|
|
| 2055 |
< |
It was created by ircd-hybrid $as_me 8beta1, which was |
| 2055 |
> |
It was created by ircd-hybrid $as_me 8.2.39, which was |
| 2056 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 2057 |
|
|
| 2058 |
|
$ $0 $@ |
| 2332 |
|
>$cache_file |
| 2333 |
|
fi |
| 2334 |
|
|
| 2377 |
– |
as_fn_append ac_func_list " mmap" |
| 2378 |
– |
as_fn_append ac_func_list " strtok_r" |
| 2379 |
– |
as_fn_append ac_func_list " usleep" |
| 2335 |
|
as_fn_append ac_func_list " strlcat" |
| 2336 |
|
as_fn_append ac_func_list " strlcpy" |
| 2337 |
|
as_fn_append ac_header_list " crypt.h" |
| 2383 |
– |
as_fn_append ac_header_list " sys/resource.h" |
| 2338 |
|
as_fn_append ac_header_list " sys/param.h" |
| 2339 |
|
as_fn_append ac_header_list " types.h" |
| 2340 |
|
as_fn_append ac_header_list " socket.h" |
| 2341 |
|
as_fn_append ac_header_list " sys/wait.h" |
| 2388 |
– |
as_fn_append ac_header_list " wait.h" |
| 2342 |
|
# Check that the precious variables saved in the cache have kept the same |
| 2343 |
|
# value. |
| 2344 |
|
ac_cache_corrupted=false |
| 2407 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2408 |
|
|
| 2409 |
|
|
| 2410 |
< |
am__api_version='1.12' |
| 2410 |
> |
am__api_version='1.16' |
| 2411 |
|
|
| 2412 |
|
ac_aux_dir= |
| 2413 |
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2608 |
|
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2609 |
|
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2610 |
|
|
| 2611 |
< |
# expand $ac_aux_dir to an absolute path |
| 2612 |
< |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2611 |
> |
# Expand $ac_aux_dir to an absolute path. |
| 2612 |
> |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 2613 |
|
|
| 2614 |
|
if test x"${MISSING+set}" != xset; then |
| 2615 |
|
case $am_aux_dir in |
| 2620 |
|
esac |
| 2621 |
|
fi |
| 2622 |
|
# Use eval to expand $SHELL |
| 2623 |
< |
if eval "$MISSING --run true"; then |
| 2624 |
< |
am_missing_run="$MISSING --run " |
| 2623 |
> |
if eval "$MISSING --is-lightweight"; then |
| 2624 |
> |
am_missing_run="$MISSING " |
| 2625 |
|
else |
| 2626 |
|
am_missing_run= |
| 2627 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2628 |
|
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2629 |
|
fi |
| 2630 |
|
|
| 2631 |
< |
if test x"${install_sh}" != xset; then |
| 2631 |
> |
if test x"${install_sh+set}" != xset; then |
| 2632 |
|
case $am_aux_dir in |
| 2633 |
|
*\ * | *\ *) |
| 2634 |
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2861 |
|
fi |
| 2862 |
|
rmdir .tst 2>/dev/null |
| 2863 |
|
|
| 2864 |
+ |
# Check whether --enable-silent-rules was given. |
| 2865 |
+ |
if test "${enable_silent_rules+set}" = set; then : |
| 2866 |
+ |
enableval=$enable_silent_rules; |
| 2867 |
+ |
fi |
| 2868 |
+ |
|
| 2869 |
+ |
case $enable_silent_rules in # ((( |
| 2870 |
+ |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 2871 |
+ |
no) AM_DEFAULT_VERBOSITY=1;; |
| 2872 |
+ |
*) AM_DEFAULT_VERBOSITY=1;; |
| 2873 |
+ |
esac |
| 2874 |
+ |
am_make=${MAKE-make} |
| 2875 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2876 |
+ |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2877 |
+ |
if ${am_cv_make_support_nested_variables+:} false; then : |
| 2878 |
+ |
$as_echo_n "(cached) " >&6 |
| 2879 |
+ |
else |
| 2880 |
+ |
if $as_echo 'TRUE=$(BAR$(V)) |
| 2881 |
+ |
BAR0=false |
| 2882 |
+ |
BAR1=true |
| 2883 |
+ |
V=1 |
| 2884 |
+ |
am__doit: |
| 2885 |
+ |
@$(TRUE) |
| 2886 |
+ |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2887 |
+ |
am_cv_make_support_nested_variables=yes |
| 2888 |
+ |
else |
| 2889 |
+ |
am_cv_make_support_nested_variables=no |
| 2890 |
+ |
fi |
| 2891 |
+ |
fi |
| 2892 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2893 |
+ |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2894 |
+ |
if test $am_cv_make_support_nested_variables = yes; then |
| 2895 |
+ |
AM_V='$(V)' |
| 2896 |
+ |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2897 |
+ |
else |
| 2898 |
+ |
AM_V=$AM_DEFAULT_VERBOSITY |
| 2899 |
+ |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2900 |
+ |
fi |
| 2901 |
+ |
AM_BACKSLASH='\' |
| 2902 |
+ |
|
| 2903 |
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2904 |
|
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2905 |
|
# is not polluted with repeated "-I." |
| 2922 |
|
|
| 2923 |
|
# Define the identity of the package. |
| 2924 |
|
PACKAGE='ircd-hybrid' |
| 2925 |
< |
VERSION='8beta1' |
| 2925 |
> |
VERSION='8.2.39' |
| 2926 |
|
|
| 2927 |
|
|
| 2928 |
|
cat >>confdefs.h <<_ACEOF |
| 2950 |
|
|
| 2951 |
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2952 |
|
|
| 2953 |
< |
# We need awk for the "check" target. The system "awk" is bad on |
| 2954 |
< |
# some platforms. |
| 2953 |
> |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 2954 |
> |
# dies out for good. For more background, see: |
| 2955 |
> |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2956 |
> |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2957 |
> |
mkdir_p='$(MKDIR_P)' |
| 2958 |
> |
|
| 2959 |
> |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 2960 |
> |
# system "awk" is bad on some platforms. |
| 2961 |
|
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 2962 |
|
# in the wild :-( We should find a proper way to deprecate it ... |
| 2963 |
|
AMTAR='$${TAR-tar}' |
| 2964 |
|
|
| 2965 |
+ |
|
| 2966 |
+ |
# We'll loop over all known methods to create a tar archive until one works. |
| 2967 |
+ |
_am_tools='gnutar pax cpio none' |
| 2968 |
+ |
|
| 2969 |
|
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2970 |
|
|
| 2971 |
|
|
| 2973 |
|
|
| 2974 |
|
|
| 2975 |
|
|
| 2976 |
+ |
# POSIX will say in a future version that running "rm -f" with no argument |
| 2977 |
+ |
# is OK; and we want to be able to make that assumption in our Makefile |
| 2978 |
+ |
# recipes. So use an aggressive probe to check that the usage we want is |
| 2979 |
+ |
# actually supported "in the wild" to an acceptable degree. |
| 2980 |
+ |
# See automake bug#10828. |
| 2981 |
+ |
# To make any issue more visible, cause the running configure to be aborted |
| 2982 |
+ |
# by default if the 'rm' program in use doesn't match our expectations; the |
| 2983 |
+ |
# user can still override this though. |
| 2984 |
+ |
if rm -f && rm -fr && rm -rf; then : OK; else |
| 2985 |
+ |
cat >&2 <<'END' |
| 2986 |
+ |
Oops! |
| 2987 |
+ |
|
| 2988 |
+ |
Your 'rm' program seems unable to run without file operands specified |
| 2989 |
+ |
on the command line, even when the '-f' option is present. This is contrary |
| 2990 |
+ |
to the behaviour of most rm programs out there, and not conforming with |
| 2991 |
+ |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2992 |
+ |
|
| 2993 |
+ |
Please tell bug-automake@gnu.org about your system, including the value |
| 2994 |
+ |
of your $PATH and any error possibly output before this message. This |
| 2995 |
+ |
can help us improve future automake versions. |
| 2996 |
+ |
|
| 2997 |
+ |
END |
| 2998 |
+ |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2999 |
+ |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3000 |
+ |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3001 |
+ |
echo >&2 |
| 3002 |
+ |
else |
| 3003 |
+ |
cat >&2 <<'END' |
| 3004 |
+ |
Aborting the configuration process, to ensure you take notice of the issue. |
| 3005 |
+ |
|
| 3006 |
+ |
You can download and install GNU coreutils to get an 'rm' implementation |
| 3007 |
+ |
that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 3008 |
+ |
|
| 3009 |
+ |
If you want to complete the configuration process using your problematic |
| 3010 |
+ |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3011 |
+ |
to "yes", and re-run configure. |
| 3012 |
+ |
|
| 3013 |
+ |
END |
| 3014 |
+ |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3015 |
+ |
fi |
| 3016 |
+ |
fi |
| 3017 |
+ |
|
| 3018 |
+ |
|
| 3019 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3020 |
|
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3021 |
|
# Check whether --enable-maintainer-mode was given. |
| 3038 |
|
MAINT=$MAINTAINER_MODE_TRUE |
| 3039 |
|
|
| 3040 |
|
|
| 3041 |
+ |
|
| 3042 |
|
ac_config_headers="$ac_config_headers config.h" |
| 3043 |
|
|
| 3044 |
|
|
| 3048 |
|
|
| 3049 |
|
ac_config_commands="$ac_config_commands depfiles" |
| 3050 |
|
|
| 3051 |
< |
|
| 3052 |
< |
am_make=${MAKE-make} |
| 3053 |
< |
cat > confinc << 'END' |
| 3051 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 3052 |
> |
$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 3053 |
> |
cat > confinc.mk << 'END' |
| 3054 |
|
am__doit: |
| 3055 |
< |
@echo this is the am__doit target |
| 3055 |
> |
@echo this is the am__doit target >confinc.out |
| 3056 |
|
.PHONY: am__doit |
| 3057 |
|
END |
| 3012 |
– |
# If we don't find an include directive, just comment out the code. |
| 3013 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3014 |
– |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3058 |
|
am__include="#" |
| 3059 |
|
am__quote= |
| 3060 |
< |
_am_result=none |
| 3061 |
< |
# First try GNU make style include. |
| 3062 |
< |
echo "include confinc" > confmf |
| 3063 |
< |
# Ignore all kinds of additional output from 'make'. |
| 3064 |
< |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3065 |
< |
*the\ am__doit\ target*) |
| 3066 |
< |
am__include=include |
| 3067 |
< |
am__quote= |
| 3068 |
< |
_am_result=GNU |
| 3069 |
< |
;; |
| 3070 |
< |
esac |
| 3071 |
< |
# Now try BSD make style include. |
| 3072 |
< |
if test "$am__include" = "#"; then |
| 3073 |
< |
echo '.include "confinc"' > confmf |
| 3074 |
< |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3075 |
< |
*the\ am__doit\ target*) |
| 3076 |
< |
am__include=.include |
| 3077 |
< |
am__quote="\"" |
| 3078 |
< |
_am_result=BSD |
| 3060 |
> |
# BSD make does it like this. |
| 3061 |
> |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 3062 |
> |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 3063 |
> |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 3064 |
> |
_am_result=no |
| 3065 |
> |
for s in GNU BSD; do |
| 3066 |
> |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 3067 |
> |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 3068 |
> |
ac_status=$? |
| 3069 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3070 |
> |
(exit $ac_status); } |
| 3071 |
> |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 3072 |
> |
'0:this is the am__doit target') : |
| 3073 |
> |
case $s in #( |
| 3074 |
> |
BSD) : |
| 3075 |
> |
am__include='.include' am__quote='"' ;; #( |
| 3076 |
> |
*) : |
| 3077 |
> |
am__include='include' am__quote='' ;; |
| 3078 |
> |
esac ;; #( |
| 3079 |
> |
*) : |
| 3080 |
|
;; |
| 3081 |
< |
esac |
| 3082 |
< |
fi |
| 3083 |
< |
|
| 3084 |
< |
|
| 3085 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3086 |
< |
$as_echo "$_am_result" >&6; } |
| 3087 |
< |
rm -f confinc confmf |
| 3081 |
> |
esac |
| 3082 |
> |
if test "$am__include" != "#"; then |
| 3083 |
> |
_am_result="yes ($s style)" |
| 3084 |
> |
break |
| 3085 |
> |
fi |
| 3086 |
> |
done |
| 3087 |
> |
rm -f confinc.* confmf.* |
| 3088 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 3089 |
> |
$as_echo "${_am_result}" >&6; } |
| 3090 |
|
|
| 3091 |
|
# Check whether --enable-dependency-tracking was given. |
| 3092 |
|
if test "${enable_dependency_tracking+set}" = set; then : |
| 3896 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3897 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3898 |
|
|
| 3899 |
+ |
ac_ext=c |
| 3900 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3901 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3902 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3903 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3904 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3905 |
+ |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3906 |
+ |
if ${am_cv_prog_cc_c_o+:} false; then : |
| 3907 |
+ |
$as_echo_n "(cached) " >&6 |
| 3908 |
+ |
else |
| 3909 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3910 |
+ |
/* end confdefs.h. */ |
| 3911 |
+ |
|
| 3912 |
+ |
int |
| 3913 |
+ |
main () |
| 3914 |
+ |
{ |
| 3915 |
+ |
|
| 3916 |
+ |
; |
| 3917 |
+ |
return 0; |
| 3918 |
+ |
} |
| 3919 |
+ |
_ACEOF |
| 3920 |
+ |
# Make sure it works both with $CC and with simple cc. |
| 3921 |
+ |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 3922 |
+ |
# compilers refuse to overwrite an existing .o file with -o, |
| 3923 |
+ |
# though they will create one. |
| 3924 |
+ |
am_cv_prog_cc_c_o=yes |
| 3925 |
+ |
for am_i in 1 2; do |
| 3926 |
+ |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3927 |
+ |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3928 |
+ |
ac_status=$? |
| 3929 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 |
+ |
(exit $ac_status); } \ |
| 3931 |
+ |
&& test -f conftest2.$ac_objext; then |
| 3932 |
+ |
: OK |
| 3933 |
+ |
else |
| 3934 |
+ |
am_cv_prog_cc_c_o=no |
| 3935 |
+ |
break |
| 3936 |
+ |
fi |
| 3937 |
+ |
done |
| 3938 |
+ |
rm -f core conftest* |
| 3939 |
+ |
unset am_i |
| 3940 |
+ |
fi |
| 3941 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3942 |
+ |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3943 |
+ |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 3944 |
+ |
# Losing compiler, so override with the script. |
| 3945 |
+ |
# FIXME: It is wrong to rewrite CC. |
| 3946 |
+ |
# But if we don't then we get into trouble of one sort or another. |
| 3947 |
+ |
# A longer-term fix would be to have automake use am__CC in this case, |
| 3948 |
+ |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3949 |
+ |
CC="$am_aux_dir/compile $CC" |
| 3950 |
+ |
fi |
| 3951 |
+ |
ac_ext=c |
| 3952 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3953 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3954 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3955 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3956 |
+ |
|
| 3957 |
+ |
|
| 3958 |
|
depcc="$CC" am_compiler_list= |
| 3959 |
|
|
| 3960 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4487 |
|
|
| 4488 |
|
|
| 4489 |
|
|
| 4490 |
< |
macro_version='2.4.2' |
| 4491 |
< |
macro_revision='1.3337' |
| 4490 |
> |
macro_version='2.4.6' |
| 4491 |
> |
macro_revision='2.4.6' |
| 4492 |
|
|
| 4493 |
|
|
| 4494 |
|
|
| 4502 |
|
|
| 4503 |
|
|
| 4504 |
|
|
| 4505 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
| 4505 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
| 4506 |
|
|
| 4507 |
|
# Make sure we can run config.sub. |
| 4508 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4622 |
|
$ECHO "" |
| 4623 |
|
} |
| 4624 |
|
|
| 4625 |
< |
case "$ECHO" in |
| 4625 |
> |
case $ECHO in |
| 4626 |
|
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4627 |
|
$as_echo "printf" >&6; } ;; |
| 4628 |
|
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4945 |
|
|
| 4946 |
|
# Check whether --with-gnu-ld was given. |
| 4947 |
|
if test "${with_gnu_ld+set}" = set; then : |
| 4948 |
< |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4948 |
> |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 4949 |
|
else |
| 4950 |
|
with_gnu_ld=no |
| 4951 |
|
fi |
| 4952 |
|
|
| 4953 |
|
ac_prog=ld |
| 4954 |
< |
if test "$GCC" = yes; then |
| 4954 |
> |
if test yes = "$GCC"; then |
| 4955 |
|
# Check if gcc -print-prog-name=ld gives a path. |
| 4956 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4957 |
|
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 4958 |
|
case $host in |
| 4959 |
|
*-*-mingw*) |
| 4960 |
< |
# gcc leaves a trailing carriage return which upsets mingw |
| 4960 |
> |
# gcc leaves a trailing carriage return, which upsets mingw |
| 4961 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4962 |
|
*) |
| 4963 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4971 |
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4972 |
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4973 |
|
done |
| 4974 |
< |
test -z "$LD" && LD="$ac_prog" |
| 4974 |
> |
test -z "$LD" && LD=$ac_prog |
| 4975 |
|
;; |
| 4976 |
|
"") |
| 4977 |
|
# If it fails, then pretend we aren't using GCC. |
| 4982 |
|
with_gnu_ld=unknown |
| 4983 |
|
;; |
| 4984 |
|
esac |
| 4985 |
< |
elif test "$with_gnu_ld" = yes; then |
| 4985 |
> |
elif test yes = "$with_gnu_ld"; then |
| 4986 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4987 |
|
$as_echo_n "checking for GNU ld... " >&6; } |
| 4988 |
|
else |
| 4993 |
|
$as_echo_n "(cached) " >&6 |
| 4994 |
|
else |
| 4995 |
|
if test -z "$LD"; then |
| 4996 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4996 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4997 |
|
for ac_dir in $PATH; do |
| 4998 |
< |
IFS="$lt_save_ifs" |
| 4998 |
> |
IFS=$lt_save_ifs |
| 4999 |
|
test -z "$ac_dir" && ac_dir=. |
| 5000 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5001 |
< |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5001 |
> |
lt_cv_path_LD=$ac_dir/$ac_prog |
| 5002 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
| 5003 |
|
# but apparently some variants of GNU ld only accept -v. |
| 5004 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 5005 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5006 |
|
*GNU* | *'with BFD'*) |
| 5007 |
< |
test "$with_gnu_ld" != no && break |
| 5007 |
> |
test no != "$with_gnu_ld" && break |
| 5008 |
|
;; |
| 5009 |
|
*) |
| 5010 |
< |
test "$with_gnu_ld" != yes && break |
| 5010 |
> |
test yes != "$with_gnu_ld" && break |
| 5011 |
|
;; |
| 5012 |
|
esac |
| 5013 |
|
fi |
| 5014 |
|
done |
| 5015 |
< |
IFS="$lt_save_ifs" |
| 5015 |
> |
IFS=$lt_save_ifs |
| 5016 |
|
else |
| 5017 |
< |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5017 |
> |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 5018 |
|
fi |
| 5019 |
|
fi |
| 5020 |
|
|
| 5021 |
< |
LD="$lt_cv_path_LD" |
| 5021 |
> |
LD=$lt_cv_path_LD |
| 5022 |
|
if test -n "$LD"; then |
| 5023 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5024 |
|
$as_echo "$LD" >&6; } |
| 5061 |
|
else |
| 5062 |
|
if test -n "$NM"; then |
| 5063 |
|
# Let the user override the test. |
| 5064 |
< |
lt_cv_path_NM="$NM" |
| 5064 |
> |
lt_cv_path_NM=$NM |
| 5065 |
|
else |
| 5066 |
< |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 5066 |
> |
lt_nm_to_check=${ac_tool_prefix}nm |
| 5067 |
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5068 |
|
lt_nm_to_check="$lt_nm_to_check nm" |
| 5069 |
|
fi |
| 5070 |
|
for lt_tmp_nm in $lt_nm_to_check; do |
| 5071 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5071 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 5072 |
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5073 |
< |
IFS="$lt_save_ifs" |
| 5073 |
> |
IFS=$lt_save_ifs |
| 5074 |
|
test -z "$ac_dir" && ac_dir=. |
| 5075 |
< |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5076 |
< |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5075 |
> |
tmp_nm=$ac_dir/$lt_tmp_nm |
| 5076 |
> |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 5077 |
|
# Check to see if the nm accepts a BSD-compat flag. |
| 5078 |
< |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5078 |
> |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 5079 |
|
# nm: unknown option "B" ignored |
| 5080 |
|
# Tru64's nm complains that /dev/null is an invalid object file |
| 5081 |
< |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5082 |
< |
*/dev/null* | *'Invalid file or object type'*) |
| 5081 |
> |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 5082 |
> |
case $build_os in |
| 5083 |
> |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 5084 |
> |
*) lt_bad_file=/dev/null ;; |
| 5085 |
> |
esac |
| 5086 |
> |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 5087 |
> |
*$lt_bad_file* | *'Invalid file or object type'*) |
| 5088 |
|
lt_cv_path_NM="$tmp_nm -B" |
| 5089 |
< |
break |
| 5089 |
> |
break 2 |
| 5090 |
|
;; |
| 5091 |
|
*) |
| 5092 |
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5093 |
|
*/dev/null*) |
| 5094 |
|
lt_cv_path_NM="$tmp_nm -p" |
| 5095 |
< |
break |
| 5095 |
> |
break 2 |
| 5096 |
|
;; |
| 5097 |
|
*) |
| 5098 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5103 |
|
esac |
| 5104 |
|
fi |
| 5105 |
|
done |
| 5106 |
< |
IFS="$lt_save_ifs" |
| 5106 |
> |
IFS=$lt_save_ifs |
| 5107 |
|
done |
| 5108 |
|
: ${lt_cv_path_NM=no} |
| 5109 |
|
fi |
| 5110 |
|
fi |
| 5111 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5112 |
|
$as_echo "$lt_cv_path_NM" >&6; } |
| 5113 |
< |
if test "$lt_cv_path_NM" != "no"; then |
| 5114 |
< |
NM="$lt_cv_path_NM" |
| 5113 |
> |
if test no != "$lt_cv_path_NM"; then |
| 5114 |
> |
NM=$lt_cv_path_NM |
| 5115 |
|
else |
| 5116 |
|
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 5117 |
|
if test -n "$DUMPBIN"; then : |
| 5217 |
|
fi |
| 5218 |
|
fi |
| 5219 |
|
|
| 5220 |
< |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5220 |
> |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 5221 |
|
*COFF*) |
| 5222 |
< |
DUMPBIN="$DUMPBIN -symbols" |
| 5222 |
> |
DUMPBIN="$DUMPBIN -symbols -headers" |
| 5223 |
|
;; |
| 5224 |
|
*) |
| 5225 |
|
DUMPBIN=: |
| 5227 |
|
esac |
| 5228 |
|
fi |
| 5229 |
|
|
| 5230 |
< |
if test "$DUMPBIN" != ":"; then |
| 5231 |
< |
NM="$DUMPBIN" |
| 5230 |
> |
if test : != "$DUMPBIN"; then |
| 5231 |
> |
NM=$DUMPBIN |
| 5232 |
|
fi |
| 5233 |
|
fi |
| 5234 |
|
test -z "$NM" && NM=nm |
| 5279 |
|
$as_echo_n "(cached) " >&6 |
| 5280 |
|
else |
| 5281 |
|
i=0 |
| 5282 |
< |
teststring="ABCD" |
| 5282 |
> |
teststring=ABCD |
| 5283 |
|
|
| 5284 |
|
case $build_os in |
| 5285 |
|
msdosdjgpp*) |
| 5319 |
|
lt_cv_sys_max_cmd_len=8192; |
| 5320 |
|
;; |
| 5321 |
|
|
| 5322 |
< |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5322 |
> |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 5323 |
|
# This has been around since 386BSD, at least. Likely further. |
| 5324 |
|
if test -x /sbin/sysctl; then |
| 5325 |
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5369 |
|
;; |
| 5370 |
|
*) |
| 5371 |
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5372 |
< |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5372 |
> |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 5373 |
> |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 5374 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5375 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5376 |
|
else |
| 5377 |
|
# Make teststring a little bigger before we do anything with it. |
| 5378 |
|
# a 1K string should be a reasonable start. |
| 5379 |
< |
for i in 1 2 3 4 5 6 7 8 ; do |
| 5379 |
> |
for i in 1 2 3 4 5 6 7 8; do |
| 5380 |
|
teststring=$teststring$teststring |
| 5381 |
|
done |
| 5382 |
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5383 |
|
# If test is not a shell built-in, we'll probably end up computing a |
| 5384 |
|
# maximum length that is only half of the actual maximum length, but |
| 5385 |
|
# we can't tell. |
| 5386 |
< |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5386 |
> |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5387 |
|
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5388 |
< |
test $i != 17 # 1/2 MB should be enough |
| 5388 |
> |
test 17 != "$i" # 1/2 MB should be enough |
| 5389 |
|
do |
| 5390 |
|
i=`expr $i + 1` |
| 5391 |
|
teststring=$teststring$teststring |
| 5403 |
|
|
| 5404 |
|
fi |
| 5405 |
|
|
| 5406 |
< |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 5406 |
> |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5407 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5408 |
|
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5409 |
|
else |
| 5421 |
|
: ${MV="mv -f"} |
| 5422 |
|
: ${RM="rm -f"} |
| 5423 |
|
|
| 5313 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5314 |
– |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5315 |
– |
# Try some XSI features |
| 5316 |
– |
xsi_shell=no |
| 5317 |
– |
( _lt_dummy="a/b/c" |
| 5318 |
– |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5319 |
– |
= c,a/b,b/c, \ |
| 5320 |
– |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5321 |
– |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5322 |
– |
&& xsi_shell=yes |
| 5323 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5324 |
– |
$as_echo "$xsi_shell" >&6; } |
| 5325 |
– |
|
| 5326 |
– |
|
| 5327 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5328 |
– |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5329 |
– |
lt_shell_append=no |
| 5330 |
– |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5331 |
– |
>/dev/null 2>&1 \ |
| 5332 |
– |
&& lt_shell_append=yes |
| 5333 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5334 |
– |
$as_echo "$lt_shell_append" >&6; } |
| 5335 |
– |
|
| 5336 |
– |
|
| 5424 |
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5425 |
|
lt_unset=unset |
| 5426 |
|
else |
| 5543 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5544 |
|
case $host_os in |
| 5545 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 5546 |
< |
if test "$GCC" != yes; then |
| 5546 |
> |
if test yes != "$GCC"; then |
| 5547 |
|
reload_cmds=false |
| 5548 |
|
fi |
| 5549 |
|
;; |
| 5550 |
|
darwin*) |
| 5551 |
< |
if test "$GCC" = yes; then |
| 5552 |
< |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5551 |
> |
if test yes = "$GCC"; then |
| 5552 |
> |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 5553 |
|
else |
| 5554 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5555 |
|
fi |
| 5677 |
|
# Need to set the preceding variable on all platforms that support |
| 5678 |
|
# interlibrary dependencies. |
| 5679 |
|
# 'none' -- dependencies not supported. |
| 5680 |
< |
# `unknown' -- same as none, but documents that we really don't know. |
| 5680 |
> |
# 'unknown' -- same as none, but documents that we really don't know. |
| 5681 |
|
# 'pass_all' -- all dependencies passed with no checks. |
| 5682 |
|
# 'test_compile' -- check by making test program. |
| 5683 |
|
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 5684 |
< |
# which responds to the $file_magic_cmd with a given extended regex. |
| 5685 |
< |
# If you have `file' or equivalent on your system and you're not sure |
| 5686 |
< |
# whether `pass_all' will *always* work, you probably want this one. |
| 5684 |
> |
# that responds to the $file_magic_cmd with a given extended regex. |
| 5685 |
> |
# If you have 'file' or equivalent on your system and you're not sure |
| 5686 |
> |
# whether 'pass_all' will *always* work, you probably want this one. |
| 5687 |
|
|
| 5688 |
|
case $host_os in |
| 5689 |
|
aix[4-9]*) |
| 5710 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 5711 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5712 |
|
# unless we find 'file', for example because we are cross-compiling. |
| 5713 |
< |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5627 |
< |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5713 |
> |
if ( file / ) >/dev/null 2>&1; then |
| 5714 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5715 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
| 5716 |
|
else |
| 5746 |
|
fi |
| 5747 |
|
;; |
| 5748 |
|
|
| 5663 |
– |
gnu*) |
| 5664 |
– |
lt_cv_deplibs_check_method=pass_all |
| 5665 |
– |
;; |
| 5666 |
– |
|
| 5749 |
|
haiku*) |
| 5750 |
|
lt_cv_deplibs_check_method=pass_all |
| 5751 |
|
;; |
| 5784 |
|
;; |
| 5785 |
|
|
| 5786 |
|
# This must be glibc/ELF. |
| 5787 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5787 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5788 |
|
lt_cv_deplibs_check_method=pass_all |
| 5789 |
|
;; |
| 5790 |
|
|
| 5791 |
< |
netbsd*) |
| 5791 |
> |
netbsd* | netbsdelf*-gnu) |
| 5792 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5793 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5794 |
|
else |
| 5806 |
|
lt_cv_deplibs_check_method=pass_all |
| 5807 |
|
;; |
| 5808 |
|
|
| 5809 |
< |
openbsd*) |
| 5810 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5809 |
> |
openbsd* | bitrig*) |
| 5810 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 5811 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5812 |
|
else |
| 5813 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5860 |
|
tpf*) |
| 5861 |
|
lt_cv_deplibs_check_method=pass_all |
| 5862 |
|
;; |
| 5863 |
+ |
os2*) |
| 5864 |
+ |
lt_cv_deplibs_check_method=pass_all |
| 5865 |
+ |
;; |
| 5866 |
|
esac |
| 5867 |
|
|
| 5868 |
|
fi |
| 6020 |
|
|
| 6021 |
|
case $host_os in |
| 6022 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 6023 |
< |
# two different shell functions defined in ltmain.sh |
| 6024 |
< |
# decide which to use based on capabilities of $DLLTOOL |
| 6023 |
> |
# two different shell functions defined in ltmain.sh; |
| 6024 |
> |
# decide which one to use based on capabilities of $DLLTOOL |
| 6025 |
|
case `$DLLTOOL --help 2>&1` in |
| 6026 |
|
*--identify-strict*) |
| 6027 |
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6033 |
|
;; |
| 6034 |
|
*) |
| 6035 |
|
# fallback: assume linklib IS sharedlib |
| 6036 |
< |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6036 |
> |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 6037 |
|
;; |
| 6038 |
|
esac |
| 6039 |
|
|
| 6150 |
|
fi |
| 6151 |
|
|
| 6152 |
|
: ${AR=ar} |
| 6153 |
< |
: ${AR_FLAGS=cru} |
| 6153 |
> |
: ${AR_FLAGS=cr} |
| 6154 |
|
|
| 6155 |
|
|
| 6156 |
|
|
| 6187 |
|
ac_status=$? |
| 6188 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6189 |
|
test $ac_status = 0; } |
| 6190 |
< |
if test "$ac_status" -eq 0; then |
| 6190 |
> |
if test 0 -eq "$ac_status"; then |
| 6191 |
|
# Ensure the archiver fails upon bogus file names. |
| 6192 |
|
rm -f conftest.$ac_objext libconftest.a |
| 6193 |
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6195 |
|
ac_status=$? |
| 6196 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6197 |
|
test $ac_status = 0; } |
| 6198 |
< |
if test "$ac_status" -ne 0; then |
| 6198 |
> |
if test 0 -ne "$ac_status"; then |
| 6199 |
|
lt_cv_ar_at_file=@ |
| 6200 |
|
fi |
| 6201 |
|
fi |
| 6208 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6209 |
|
$as_echo "$lt_cv_ar_at_file" >&6; } |
| 6210 |
|
|
| 6211 |
< |
if test "x$lt_cv_ar_at_file" = xno; then |
| 6211 |
> |
if test no = "$lt_cv_ar_at_file"; then |
| 6212 |
|
archiver_list_spec= |
| 6213 |
|
else |
| 6214 |
|
archiver_list_spec=$lt_cv_ar_at_file |
| 6425 |
|
|
| 6426 |
|
if test -n "$RANLIB"; then |
| 6427 |
|
case $host_os in |
| 6428 |
< |
openbsd*) |
| 6428 |
> |
bitrig* | openbsd*) |
| 6429 |
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6430 |
|
;; |
| 6431 |
|
*) |
| 6515 |
|
symcode='[ABCDGISTW]' |
| 6516 |
|
;; |
| 6517 |
|
hpux*) |
| 6518 |
< |
if test "$host_cpu" = ia64; then |
| 6518 |
> |
if test ia64 = "$host_cpu"; then |
| 6519 |
|
symcode='[ABCDEGRST]' |
| 6520 |
|
fi |
| 6521 |
|
;; |
| 6548 |
|
symcode='[ABCDGIRSTW]' ;; |
| 6549 |
|
esac |
| 6550 |
|
|
| 6551 |
+ |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6552 |
+ |
# Gets list of data symbols to import. |
| 6553 |
+ |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 6554 |
+ |
# Adjust the below global symbol transforms to fixup imported variables. |
| 6555 |
+ |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 6556 |
+ |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 6557 |
+ |
lt_c_name_lib_hook="\ |
| 6558 |
+ |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 6559 |
+ |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 6560 |
+ |
else |
| 6561 |
+ |
# Disable hooks by default. |
| 6562 |
+ |
lt_cv_sys_global_symbol_to_import= |
| 6563 |
+ |
lt_cdecl_hook= |
| 6564 |
+ |
lt_c_name_hook= |
| 6565 |
+ |
lt_c_name_lib_hook= |
| 6566 |
+ |
fi |
| 6567 |
+ |
|
| 6568 |
|
# Transform an extracted symbol line into a proper C declaration. |
| 6569 |
|
# Some systems (esp. on ia64) link data and code symbols differently, |
| 6570 |
|
# so use this general approach. |
| 6571 |
< |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6571 |
> |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 6572 |
> |
$lt_cdecl_hook\ |
| 6573 |
> |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 6574 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6575 |
|
|
| 6576 |
|
# Transform an extracted symbol line into symbol name and symbol address |
| 6577 |
< |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6578 |
< |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 6577 |
> |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 6578 |
> |
$lt_c_name_hook\ |
| 6579 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6580 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 6581 |
> |
|
| 6582 |
> |
# Transform an extracted symbol line into symbol name with lib prefix and |
| 6583 |
> |
# symbol address. |
| 6584 |
> |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 6585 |
> |
$lt_c_name_lib_hook\ |
| 6586 |
> |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6587 |
> |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 6588 |
> |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 6589 |
|
|
| 6590 |
|
# Handle CRLF in mingw tool chain |
| 6591 |
|
opt_cr= |
| 6603 |
|
|
| 6604 |
|
# Write the raw and C identifiers. |
| 6605 |
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6606 |
< |
# Fake it for dumpbin and say T for any non-static function |
| 6607 |
< |
# and D for any global variable. |
| 6606 |
> |
# Fake it for dumpbin and say T for any non-static function, |
| 6607 |
> |
# D for any global variable and I for any imported variable. |
| 6608 |
|
# Also find C++ and __fastcall symbols from MSVC++, |
| 6609 |
|
# which start with @ or ?. |
| 6610 |
|
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6611 |
|
" {last_section=section; section=\$ 3};"\ |
| 6612 |
|
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6613 |
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6614 |
+ |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 6615 |
+ |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 6616 |
+ |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 6617 |
|
" \$ 0!~/External *\|/{next};"\ |
| 6618 |
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6619 |
|
" {if(hide[section]) next};"\ |
| 6620 |
< |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6621 |
< |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6622 |
< |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6623 |
< |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6620 |
> |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 6621 |
> |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 6622 |
> |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 6623 |
> |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 6624 |
|
" ' prfx=^$ac_symprfx" |
| 6625 |
|
else |
| 6626 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6651 |
|
test $ac_status = 0; }; then |
| 6652 |
|
# Now try to grab the symbols. |
| 6653 |
|
nlist=conftest.nm |
| 6654 |
< |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6655 |
< |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6538 |
< |
ac_status=$? |
| 6539 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6540 |
< |
test $ac_status = 0; } && test -s "$nlist"; then |
| 6654 |
> |
$ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 6655 |
> |
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 6656 |
|
# Try sorting and uniquifying the output. |
| 6657 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
| 6658 |
|
mv -f "$nlist"T "$nlist" |
| 6665 |
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6666 |
|
cat <<_LT_EOF > conftest.$ac_ext |
| 6667 |
|
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6668 |
< |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6669 |
< |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6668 |
> |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 6669 |
> |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 6670 |
|
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6671 |
|
# define LT_DLSYM_CONST |
| 6672 |
< |
#elif defined(__osf__) |
| 6672 |
> |
#elif defined __osf__ |
| 6673 |
|
/* This system does not cope well with relocations in const data. */ |
| 6674 |
|
# define LT_DLSYM_CONST |
| 6675 |
|
#else |
| 6695 |
|
{ |
| 6696 |
|
{ "@PROGRAM@", (void *) 0 }, |
| 6697 |
|
_LT_EOF |
| 6698 |
< |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6698 |
> |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6699 |
|
cat <<\_LT_EOF >> conftest.$ac_ext |
| 6700 |
|
{0, (void *) 0} |
| 6701 |
|
}; |
| 6715 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
| 6716 |
|
lt_globsym_save_LIBS=$LIBS |
| 6717 |
|
lt_globsym_save_CFLAGS=$CFLAGS |
| 6718 |
< |
LIBS="conftstm.$ac_objext" |
| 6718 |
> |
LIBS=conftstm.$ac_objext |
| 6719 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6720 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6721 |
|
(eval $ac_link) 2>&5 |
| 6722 |
|
ac_status=$? |
| 6723 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6724 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6724 |
> |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 6725 |
|
pipe_works=yes |
| 6726 |
|
fi |
| 6727 |
|
LIBS=$lt_globsym_save_LIBS |
| 6742 |
|
rm -rf conftest* conftst* |
| 6743 |
|
|
| 6744 |
|
# Do not use the global_symbol_pipe unless it works. |
| 6745 |
< |
if test "$pipe_works" = yes; then |
| 6745 |
> |
if test yes = "$pipe_works"; then |
| 6746 |
|
break |
| 6747 |
|
else |
| 6748 |
|
lt_cv_sys_global_symbol_pipe= |
| 6795 |
|
|
| 6796 |
|
|
| 6797 |
|
|
| 6798 |
+ |
|
| 6799 |
+ |
|
| 6800 |
+ |
|
| 6801 |
+ |
|
| 6802 |
+ |
|
| 6803 |
+ |
|
| 6804 |
+ |
|
| 6805 |
+ |
|
| 6806 |
+ |
|
| 6807 |
+ |
|
| 6808 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6809 |
|
$as_echo_n "checking for sysroot... " >&6; } |
| 6810 |
|
|
| 6817 |
|
|
| 6818 |
|
|
| 6819 |
|
lt_sysroot= |
| 6820 |
< |
case ${with_sysroot} in #( |
| 6820 |
> |
case $with_sysroot in #( |
| 6821 |
|
yes) |
| 6822 |
< |
if test "$GCC" = yes; then |
| 6822 |
> |
if test yes = "$GCC"; then |
| 6823 |
|
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6824 |
|
fi |
| 6825 |
|
;; #( |
| 6829 |
|
no|'') |
| 6830 |
|
;; #( |
| 6831 |
|
*) |
| 6832 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6833 |
< |
$as_echo "${with_sysroot}" >&6; } |
| 6832 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 6833 |
> |
$as_echo "$with_sysroot" >&6; } |
| 6834 |
|
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6835 |
|
;; |
| 6836 |
|
esac |
| 6842 |
|
|
| 6843 |
|
|
| 6844 |
|
|
| 6845 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 6846 |
+ |
$as_echo_n "checking for a working dd... " >&6; } |
| 6847 |
+ |
if ${ac_cv_path_lt_DD+:} false; then : |
| 6848 |
+ |
$as_echo_n "(cached) " >&6 |
| 6849 |
+ |
else |
| 6850 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6851 |
+ |
cat conftest.i conftest.i >conftest2.i |
| 6852 |
+ |
: ${lt_DD:=$DD} |
| 6853 |
+ |
if test -z "$lt_DD"; then |
| 6854 |
+ |
ac_path_lt_DD_found=false |
| 6855 |
+ |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 6856 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6857 |
+ |
for as_dir in $PATH |
| 6858 |
+ |
do |
| 6859 |
+ |
IFS=$as_save_IFS |
| 6860 |
+ |
test -z "$as_dir" && as_dir=. |
| 6861 |
+ |
for ac_prog in dd; do |
| 6862 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6863 |
+ |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 6864 |
+ |
as_fn_executable_p "$ac_path_lt_DD" || continue |
| 6865 |
+ |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6866 |
+ |
cmp -s conftest.i conftest.out \ |
| 6867 |
+ |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 6868 |
+ |
fi |
| 6869 |
+ |
$ac_path_lt_DD_found && break 3 |
| 6870 |
+ |
done |
| 6871 |
+ |
done |
| 6872 |
+ |
done |
| 6873 |
+ |
IFS=$as_save_IFS |
| 6874 |
+ |
if test -z "$ac_cv_path_lt_DD"; then |
| 6875 |
+ |
: |
| 6876 |
+ |
fi |
| 6877 |
+ |
else |
| 6878 |
+ |
ac_cv_path_lt_DD=$lt_DD |
| 6879 |
+ |
fi |
| 6880 |
+ |
|
| 6881 |
+ |
rm -f conftest.i conftest2.i conftest.out |
| 6882 |
+ |
fi |
| 6883 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 6884 |
+ |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
| 6885 |
+ |
|
| 6886 |
+ |
|
| 6887 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 6888 |
+ |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 6889 |
+ |
if ${lt_cv_truncate_bin+:} false; then : |
| 6890 |
+ |
$as_echo_n "(cached) " >&6 |
| 6891 |
+ |
else |
| 6892 |
+ |
printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6893 |
+ |
cat conftest.i conftest.i >conftest2.i |
| 6894 |
+ |
lt_cv_truncate_bin= |
| 6895 |
+ |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6896 |
+ |
cmp -s conftest.i conftest.out \ |
| 6897 |
+ |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 6898 |
+ |
fi |
| 6899 |
+ |
rm -f conftest.i conftest2.i conftest.out |
| 6900 |
+ |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 6901 |
+ |
fi |
| 6902 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 6903 |
+ |
$as_echo "$lt_cv_truncate_bin" >&6; } |
| 6904 |
+ |
|
| 6905 |
+ |
|
| 6906 |
+ |
|
| 6907 |
+ |
|
| 6908 |
+ |
|
| 6909 |
+ |
|
| 6910 |
+ |
|
| 6911 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 6912 |
+ |
func_cc_basename () |
| 6913 |
+ |
{ |
| 6914 |
+ |
for cc_temp in $*""; do |
| 6915 |
+ |
case $cc_temp in |
| 6916 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6917 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6918 |
+ |
\-*) ;; |
| 6919 |
+ |
*) break;; |
| 6920 |
+ |
esac |
| 6921 |
+ |
done |
| 6922 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 6923 |
+ |
} |
| 6924 |
+ |
|
| 6925 |
|
# Check whether --enable-libtool-lock was given. |
| 6926 |
|
if test "${enable_libtool_lock+set}" = set; then : |
| 6927 |
|
enableval=$enable_libtool_lock; |
| 6928 |
|
fi |
| 6929 |
|
|
| 6930 |
< |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6930 |
> |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 6931 |
|
|
| 6932 |
|
# Some flags need to be propagated to the compiler or linker for good |
| 6933 |
|
# libtool support. |
| 6934 |
|
case $host in |
| 6935 |
|
ia64-*-hpux*) |
| 6936 |
< |
# Find out which ABI we are using. |
| 6936 |
> |
# Find out what ABI is being produced by ac_compile, and set mode |
| 6937 |
> |
# options accordingly. |
| 6938 |
|
echo 'int i;' > conftest.$ac_ext |
| 6939 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6940 |
|
(eval $ac_compile) 2>&5 |
| 6943 |
|
test $ac_status = 0; }; then |
| 6944 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 6945 |
|
*ELF-32*) |
| 6946 |
< |
HPUX_IA64_MODE="32" |
| 6946 |
> |
HPUX_IA64_MODE=32 |
| 6947 |
|
;; |
| 6948 |
|
*ELF-64*) |
| 6949 |
< |
HPUX_IA64_MODE="64" |
| 6949 |
> |
HPUX_IA64_MODE=64 |
| 6950 |
|
;; |
| 6951 |
|
esac |
| 6952 |
|
fi |
| 6953 |
|
rm -rf conftest* |
| 6954 |
|
;; |
| 6955 |
|
*-*-irix6*) |
| 6956 |
< |
# Find out which ABI we are using. |
| 6956 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 6957 |
> |
# options accordingly. |
| 6958 |
|
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6959 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6960 |
|
(eval $ac_compile) 2>&5 |
| 6961 |
|
ac_status=$? |
| 6962 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6963 |
|
test $ac_status = 0; }; then |
| 6964 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6964 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 6965 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 6966 |
|
*32-bit*) |
| 6967 |
|
LD="${LD-ld} -melf32bsmip" |
| 6990 |
|
rm -rf conftest* |
| 6991 |
|
;; |
| 6992 |
|
|
| 6993 |
< |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6993 |
> |
mips64*-*linux*) |
| 6994 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 6995 |
> |
# options accordingly. |
| 6996 |
> |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6997 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6998 |
> |
(eval $ac_compile) 2>&5 |
| 6999 |
> |
ac_status=$? |
| 7000 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7001 |
> |
test $ac_status = 0; }; then |
| 7002 |
> |
emul=elf |
| 7003 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7004 |
> |
*32-bit*) |
| 7005 |
> |
emul="${emul}32" |
| 7006 |
> |
;; |
| 7007 |
> |
*64-bit*) |
| 7008 |
> |
emul="${emul}64" |
| 7009 |
> |
;; |
| 7010 |
> |
esac |
| 7011 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7012 |
> |
*MSB*) |
| 7013 |
> |
emul="${emul}btsmip" |
| 7014 |
> |
;; |
| 7015 |
> |
*LSB*) |
| 7016 |
> |
emul="${emul}ltsmip" |
| 7017 |
> |
;; |
| 7018 |
> |
esac |
| 7019 |
> |
case `/usr/bin/file conftest.$ac_objext` in |
| 7020 |
> |
*N32*) |
| 7021 |
> |
emul="${emul}n32" |
| 7022 |
> |
;; |
| 7023 |
> |
esac |
| 7024 |
> |
LD="${LD-ld} -m $emul" |
| 7025 |
> |
fi |
| 7026 |
> |
rm -rf conftest* |
| 7027 |
> |
;; |
| 7028 |
> |
|
| 7029 |
> |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 7030 |
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 7031 |
< |
# Find out which ABI we are using. |
| 7031 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 7032 |
> |
# options accordingly. Note that the listed cases only cover the |
| 7033 |
> |
# situations where additional linker options are needed (such as when |
| 7034 |
> |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 7035 |
> |
# vice versa); the common cases where no linker options are needed do |
| 7036 |
> |
# not appear in the list. |
| 7037 |
|
echo 'int i;' > conftest.$ac_ext |
| 7038 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7039 |
|
(eval $ac_compile) 2>&5 |
| 7047 |
|
LD="${LD-ld} -m elf_i386_fbsd" |
| 7048 |
|
;; |
| 7049 |
|
x86_64-*linux*) |
| 7050 |
< |
LD="${LD-ld} -m elf_i386" |
| 7050 |
> |
case `/usr/bin/file conftest.o` in |
| 7051 |
> |
*x86-64*) |
| 7052 |
> |
LD="${LD-ld} -m elf32_x86_64" |
| 7053 |
> |
;; |
| 7054 |
> |
*) |
| 7055 |
> |
LD="${LD-ld} -m elf_i386" |
| 7056 |
> |
;; |
| 7057 |
> |
esac |
| 7058 |
> |
;; |
| 7059 |
> |
powerpc64le-*linux*) |
| 7060 |
> |
LD="${LD-ld} -m elf32lppclinux" |
| 7061 |
|
;; |
| 7062 |
< |
ppc64-*linux*|powerpc64-*linux*) |
| 7062 |
> |
powerpc64-*linux*) |
| 7063 |
|
LD="${LD-ld} -m elf32ppclinux" |
| 7064 |
|
;; |
| 7065 |
|
s390x-*linux*) |
| 7078 |
|
x86_64-*linux*) |
| 7079 |
|
LD="${LD-ld} -m elf_x86_64" |
| 7080 |
|
;; |
| 7081 |
< |
ppc*-*linux*|powerpc*-*linux*) |
| 7081 |
> |
powerpcle-*linux*) |
| 7082 |
> |
LD="${LD-ld} -m elf64lppc" |
| 7083 |
> |
;; |
| 7084 |
> |
powerpc-*linux*) |
| 7085 |
|
LD="${LD-ld} -m elf64ppc" |
| 7086 |
|
;; |
| 7087 |
|
s390*-*linux*|s390*-*tpf*) |
| 7099 |
|
|
| 7100 |
|
*-*-sco3.2v5*) |
| 7101 |
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7102 |
< |
SAVE_CFLAGS="$CFLAGS" |
| 7102 |
> |
SAVE_CFLAGS=$CFLAGS |
| 7103 |
|
CFLAGS="$CFLAGS -belf" |
| 7104 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7105 |
|
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7139 |
|
fi |
| 7140 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7141 |
|
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7142 |
< |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 7142 |
> |
if test yes != "$lt_cv_cc_needs_belf"; then |
| 7143 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7144 |
< |
CFLAGS="$SAVE_CFLAGS" |
| 7144 |
> |
CFLAGS=$SAVE_CFLAGS |
| 7145 |
|
fi |
| 7146 |
|
;; |
| 7147 |
|
*-*solaris*) |
| 7148 |
< |
# Find out which ABI we are using. |
| 7148 |
> |
# Find out what ABI is being produced by ac_compile, and set linker |
| 7149 |
> |
# options accordingly. |
| 7150 |
|
echo 'int i;' > conftest.$ac_ext |
| 7151 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7152 |
|
(eval $ac_compile) 2>&5 |
| 7158 |
|
case $lt_cv_prog_gnu_ld in |
| 7159 |
|
yes*) |
| 7160 |
|
case $host in |
| 7161 |
< |
i?86-*-solaris*) |
| 7161 |
> |
i?86-*-solaris*|x86_64-*-solaris*) |
| 7162 |
|
LD="${LD-ld} -m elf_x86_64" |
| 7163 |
|
;; |
| 7164 |
|
sparc*-*-solaris*) |
| 7167 |
|
esac |
| 7168 |
|
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7169 |
|
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7170 |
< |
LD="${LD-ld}_sol2" |
| 7170 |
> |
LD=${LD-ld}_sol2 |
| 7171 |
|
fi |
| 7172 |
|
;; |
| 7173 |
|
*) |
| 7183 |
|
;; |
| 7184 |
|
esac |
| 7185 |
|
|
| 7186 |
< |
need_locks="$enable_libtool_lock" |
| 7186 |
> |
need_locks=$enable_libtool_lock |
| 7187 |
|
|
| 7188 |
|
if test -n "$ac_tool_prefix"; then |
| 7189 |
|
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7294 |
|
fi |
| 7295 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7296 |
|
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7297 |
< |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7297 |
> |
if test yes != "$lt_cv_path_mainfest_tool"; then |
| 7298 |
|
MANIFEST_TOOL=: |
| 7299 |
|
fi |
| 7300 |
|
|
| 7797 |
|
$as_echo_n "(cached) " >&6 |
| 7798 |
|
else |
| 7799 |
|
lt_cv_apple_cc_single_mod=no |
| 7800 |
< |
if test -z "${LT_MULTI_MODULE}"; then |
| 7800 |
> |
if test -z "$LT_MULTI_MODULE"; then |
| 7801 |
|
# By default we will add the -single_module flag. You can override |
| 7802 |
|
# by either setting the environment variable LT_MULTI_MODULE |
| 7803 |
|
# non-empty at configure time, or by adding -multi_module to the |
| 7815 |
|
cat conftest.err >&5 |
| 7816 |
|
# Otherwise, if the output was created with a 0 exit code from |
| 7817 |
|
# the compiler, it worked. |
| 7818 |
< |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7818 |
> |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 7819 |
|
lt_cv_apple_cc_single_mod=yes |
| 7820 |
|
else |
| 7821 |
|
cat conftest.err >&5 |
| 7854 |
|
fi |
| 7855 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 7856 |
|
conftest$ac_exeext conftest.$ac_ext |
| 7857 |
< |
LDFLAGS="$save_LDFLAGS" |
| 7857 |
> |
LDFLAGS=$save_LDFLAGS |
| 7858 |
|
|
| 7859 |
|
fi |
| 7860 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7871 |
|
_LT_EOF |
| 7872 |
|
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7873 |
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7874 |
< |
echo "$AR cru libconftest.a conftest.o" >&5 |
| 7875 |
< |
$AR cru libconftest.a conftest.o 2>&5 |
| 7874 |
> |
echo "$AR cr libconftest.a conftest.o" >&5 |
| 7875 |
> |
$AR cr libconftest.a conftest.o 2>&5 |
| 7876 |
|
echo "$RANLIB libconftest.a" >&5 |
| 7877 |
|
$RANLIB libconftest.a 2>&5 |
| 7878 |
|
cat > conftest.c << _LT_EOF |
| 7883 |
|
_lt_result=$? |
| 7884 |
|
if test -s conftest.err && $GREP force_load conftest.err; then |
| 7885 |
|
cat conftest.err >&5 |
| 7886 |
< |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7886 |
> |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 7887 |
|
lt_cv_ld_force_load=yes |
| 7888 |
|
else |
| 7889 |
|
cat conftest.err >&5 |
| 7896 |
|
$as_echo "$lt_cv_ld_force_load" >&6; } |
| 7897 |
|
case $host_os in |
| 7898 |
|
rhapsody* | darwin1.[012]) |
| 7899 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7899 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 7900 |
|
darwin1.*) |
| 7901 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7901 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7902 |
|
darwin*) # darwin 5.x on |
| 7903 |
|
# if running on 10.5 or later, the deployment target defaults |
| 7904 |
|
# to the OS version, if on x86, and 10.4, the deployment |
| 7905 |
|
# target defaults to 10.4. Don't you love it? |
| 7906 |
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7907 |
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7908 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7909 |
< |
10.[012]*) |
| 7910 |
< |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7908 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7909 |
> |
10.[012][,.]*) |
| 7910 |
> |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7911 |
|
10.*) |
| 7912 |
< |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7912 |
> |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7913 |
|
esac |
| 7914 |
|
;; |
| 7915 |
|
esac |
| 7916 |
< |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7916 |
> |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 7917 |
|
_lt_dar_single_mod='$single_module' |
| 7918 |
|
fi |
| 7919 |
< |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7920 |
< |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7919 |
> |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 7920 |
> |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 7921 |
|
else |
| 7922 |
< |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7922 |
> |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 7923 |
|
fi |
| 7924 |
< |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7924 |
> |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 7925 |
|
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7926 |
|
else |
| 7927 |
|
_lt_dsymutil= |
| 7929 |
|
;; |
| 7930 |
|
esac |
| 7931 |
|
|
| 7932 |
+ |
# func_munge_path_list VARIABLE PATH |
| 7933 |
+ |
# ----------------------------------- |
| 7934 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
| 7935 |
+ |
# directories to be munged by the contents of PATH, which is string |
| 7936 |
+ |
# having a format: |
| 7937 |
+ |
# "DIR[:DIR]:" |
| 7938 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 7939 |
+ |
# ":DIR[:DIR]" |
| 7940 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 7941 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 7942 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 7943 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 7944 |
+ |
# "DIR[:DIR]" |
| 7945 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 7946 |
+ |
func_munge_path_list () |
| 7947 |
+ |
{ |
| 7948 |
+ |
case x$2 in |
| 7949 |
+ |
x) |
| 7950 |
+ |
;; |
| 7951 |
+ |
*:) |
| 7952 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 7953 |
+ |
;; |
| 7954 |
+ |
x:*) |
| 7955 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 7956 |
+ |
;; |
| 7957 |
+ |
*::*) |
| 7958 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 7959 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 7960 |
+ |
;; |
| 7961 |
+ |
*) |
| 7962 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 7963 |
+ |
;; |
| 7964 |
+ |
esac |
| 7965 |
+ |
} |
| 7966 |
+ |
|
| 7967 |
|
ac_ext=c |
| 7968 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 7969 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8259 |
|
*) |
| 8260 |
|
enable_static=no |
| 8261 |
|
# Look at the argument we got. We use all the common list separators. |
| 8262 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8262 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8263 |
|
for pkg in $enableval; do |
| 8264 |
< |
IFS="$lt_save_ifs" |
| 8264 |
> |
IFS=$lt_save_ifs |
| 8265 |
|
if test "X$pkg" = "X$p"; then |
| 8266 |
|
enable_static=yes |
| 8267 |
|
fi |
| 8268 |
|
done |
| 8269 |
< |
IFS="$lt_save_ifs" |
| 8269 |
> |
IFS=$lt_save_ifs |
| 8270 |
|
;; |
| 8271 |
|
esac |
| 8272 |
|
else |
| 8295 |
|
*) |
| 8296 |
|
enable_shared=no |
| 8297 |
|
# Look at the argument we got. We use all the common list separators. |
| 8298 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8298 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8299 |
|
for pkg in $enableval; do |
| 8300 |
< |
IFS="$lt_save_ifs" |
| 8300 |
> |
IFS=$lt_save_ifs |
| 8301 |
|
if test "X$pkg" = "X$p"; then |
| 8302 |
|
enable_shared=yes |
| 8303 |
|
fi |
| 8304 |
|
done |
| 8305 |
< |
IFS="$lt_save_ifs" |
| 8305 |
> |
IFS=$lt_save_ifs |
| 8306 |
|
;; |
| 8307 |
|
esac |
| 8308 |
|
else |
| 8327 |
|
*) |
| 8328 |
|
pic_mode=default |
| 8329 |
|
# Look at the argument we got. We use all the common list separators. |
| 8330 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8330 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8331 |
|
for lt_pkg in $withval; do |
| 8332 |
< |
IFS="$lt_save_ifs" |
| 8332 |
> |
IFS=$lt_save_ifs |
| 8333 |
|
if test "X$lt_pkg" = "X$lt_p"; then |
| 8334 |
|
pic_mode=yes |
| 8335 |
|
fi |
| 8336 |
|
done |
| 8337 |
< |
IFS="$lt_save_ifs" |
| 8337 |
> |
IFS=$lt_save_ifs |
| 8338 |
|
;; |
| 8339 |
|
esac |
| 8340 |
|
else |
| 8342 |
|
fi |
| 8343 |
|
|
| 8344 |
|
|
| 8048 |
– |
test -z "$pic_mode" && pic_mode=default |
| 8049 |
– |
|
| 8345 |
|
|
| 8346 |
|
|
| 8347 |
|
|
| 8357 |
|
*) |
| 8358 |
|
enable_fast_install=no |
| 8359 |
|
# Look at the argument we got. We use all the common list separators. |
| 8360 |
< |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8360 |
> |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 8361 |
|
for pkg in $enableval; do |
| 8362 |
< |
IFS="$lt_save_ifs" |
| 8362 |
> |
IFS=$lt_save_ifs |
| 8363 |
|
if test "X$pkg" = "X$p"; then |
| 8364 |
|
enable_fast_install=yes |
| 8365 |
|
fi |
| 8366 |
|
done |
| 8367 |
< |
IFS="$lt_save_ifs" |
| 8367 |
> |
IFS=$lt_save_ifs |
| 8368 |
|
;; |
| 8369 |
|
esac |
| 8370 |
|
else |
| 8378 |
|
|
| 8379 |
|
|
| 8380 |
|
|
| 8381 |
+ |
shared_archive_member_spec= |
| 8382 |
+ |
case $host,$enable_shared in |
| 8383 |
+ |
power*-*-aix[5-9]*,yes) |
| 8384 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 8385 |
+ |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 8386 |
+ |
|
| 8387 |
+ |
# Check whether --with-aix-soname was given. |
| 8388 |
+ |
if test "${with_aix_soname+set}" = set; then : |
| 8389 |
+ |
withval=$with_aix_soname; case $withval in |
| 8390 |
+ |
aix|svr4|both) |
| 8391 |
+ |
;; |
| 8392 |
+ |
*) |
| 8393 |
+ |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 8394 |
+ |
;; |
| 8395 |
+ |
esac |
| 8396 |
+ |
lt_cv_with_aix_soname=$with_aix_soname |
| 8397 |
+ |
else |
| 8398 |
+ |
if ${lt_cv_with_aix_soname+:} false; then : |
| 8399 |
+ |
$as_echo_n "(cached) " >&6 |
| 8400 |
+ |
else |
| 8401 |
+ |
lt_cv_with_aix_soname=aix |
| 8402 |
+ |
fi |
| 8403 |
+ |
|
| 8404 |
+ |
with_aix_soname=$lt_cv_with_aix_soname |
| 8405 |
+ |
fi |
| 8406 |
+ |
|
| 8407 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 8408 |
+ |
$as_echo "$with_aix_soname" >&6; } |
| 8409 |
+ |
if test aix != "$with_aix_soname"; then |
| 8410 |
+ |
# For the AIX way of multilib, we name the shared archive member |
| 8411 |
+ |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 8412 |
+ |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 8413 |
+ |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 8414 |
+ |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 8415 |
+ |
if test 64 = "${OBJECT_MODE-32}"; then |
| 8416 |
+ |
shared_archive_member_spec=shr_64 |
| 8417 |
+ |
else |
| 8418 |
+ |
shared_archive_member_spec=shr |
| 8419 |
+ |
fi |
| 8420 |
+ |
fi |
| 8421 |
+ |
;; |
| 8422 |
+ |
*) |
| 8423 |
+ |
with_aix_soname=aix |
| 8424 |
+ |
;; |
| 8425 |
+ |
esac |
| 8426 |
+ |
|
| 8427 |
+ |
|
| 8428 |
+ |
|
| 8429 |
+ |
|
| 8430 |
+ |
|
| 8431 |
+ |
|
| 8432 |
+ |
|
| 8433 |
|
|
| 8434 |
|
|
| 8435 |
|
|
| 8436 |
|
# This can be used to rebuild libtool when needed |
| 8437 |
< |
LIBTOOL_DEPS="$ltmain" |
| 8437 |
> |
LIBTOOL_DEPS=$ltmain |
| 8438 |
|
|
| 8439 |
|
# Always use our own libtool. |
| 8440 |
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8483 |
|
|
| 8484 |
|
|
| 8485 |
|
|
| 8486 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
| 8486 |
> |
if test -n "${ZSH_VERSION+set}"; then |
| 8487 |
|
setopt NO_GLOB_SUBST |
| 8488 |
|
fi |
| 8489 |
|
|
| 8522 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 8523 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8524 |
|
# vanish in a puff of smoke. |
| 8525 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8525 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
| 8526 |
|
COLLECT_NAMES= |
| 8527 |
|
export COLLECT_NAMES |
| 8528 |
|
fi |
| 8533 |
|
ofile=libtool |
| 8534 |
|
can_build_shared=yes |
| 8535 |
|
|
| 8536 |
< |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 8536 |
> |
# All known linkers require a '.a' archive for static linking (except MSVC, |
| 8537 |
|
# which needs '.lib'). |
| 8538 |
|
libext=a |
| 8539 |
|
|
| 8540 |
< |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8540 |
> |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 8541 |
|
|
| 8542 |
< |
old_CC="$CC" |
| 8543 |
< |
old_CFLAGS="$CFLAGS" |
| 8542 |
> |
old_CC=$CC |
| 8543 |
> |
old_CFLAGS=$CFLAGS |
| 8544 |
|
|
| 8545 |
|
# Set sane defaults for various variables |
| 8546 |
|
test -z "$CC" && CC=cc |
| 8549 |
|
test -z "$LD" && LD=ld |
| 8550 |
|
test -z "$ac_objext" && ac_objext=o |
| 8551 |
|
|
| 8552 |
< |
for cc_temp in $compiler""; do |
| 8553 |
< |
case $cc_temp in |
| 8207 |
< |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8208 |
< |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8209 |
< |
\-*) ;; |
| 8210 |
< |
*) break;; |
| 8211 |
< |
esac |
| 8212 |
< |
done |
| 8213 |
< |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8552 |
> |
func_cc_basename $compiler |
| 8553 |
> |
cc_basename=$func_cc_basename_result |
| 8554 |
|
|
| 8555 |
|
|
| 8556 |
|
# Only perform the check for file, if the check method requires it |
| 8565 |
|
else |
| 8566 |
|
case $MAGIC_CMD in |
| 8567 |
|
[\\/*] | ?:[\\/]*) |
| 8568 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8568 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8569 |
|
;; |
| 8570 |
|
*) |
| 8571 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8572 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8571 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8572 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8573 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8574 |
|
for ac_dir in $ac_dummy; do |
| 8575 |
< |
IFS="$lt_save_ifs" |
| 8575 |
> |
IFS=$lt_save_ifs |
| 8576 |
|
test -z "$ac_dir" && ac_dir=. |
| 8577 |
< |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8578 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8577 |
> |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 8578 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 8579 |
|
if test -n "$file_magic_test_file"; then |
| 8580 |
|
case $deplibs_check_method in |
| 8581 |
|
"file_magic "*) |
| 8582 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8583 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8583 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8584 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8585 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 8586 |
|
: |
| 8603 |
|
break |
| 8604 |
|
fi |
| 8605 |
|
done |
| 8606 |
< |
IFS="$lt_save_ifs" |
| 8607 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8606 |
> |
IFS=$lt_save_ifs |
| 8607 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8608 |
|
;; |
| 8609 |
|
esac |
| 8610 |
|
fi |
| 8611 |
|
|
| 8612 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8612 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8613 |
|
if test -n "$MAGIC_CMD"; then |
| 8614 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8615 |
|
$as_echo "$MAGIC_CMD" >&6; } |
| 8631 |
|
else |
| 8632 |
|
case $MAGIC_CMD in |
| 8633 |
|
[\\/*] | ?:[\\/]*) |
| 8634 |
< |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8634 |
> |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8635 |
|
;; |
| 8636 |
|
*) |
| 8637 |
< |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8638 |
< |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8637 |
> |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8638 |
> |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8639 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8640 |
|
for ac_dir in $ac_dummy; do |
| 8641 |
< |
IFS="$lt_save_ifs" |
| 8641 |
> |
IFS=$lt_save_ifs |
| 8642 |
|
test -z "$ac_dir" && ac_dir=. |
| 8643 |
< |
if test -f $ac_dir/file; then |
| 8644 |
< |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8643 |
> |
if test -f "$ac_dir/file"; then |
| 8644 |
> |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 8645 |
|
if test -n "$file_magic_test_file"; then |
| 8646 |
|
case $deplibs_check_method in |
| 8647 |
|
"file_magic "*) |
| 8648 |
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8649 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8649 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8650 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8651 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 8652 |
|
: |
| 8669 |
|
break |
| 8670 |
|
fi |
| 8671 |
|
done |
| 8672 |
< |
IFS="$lt_save_ifs" |
| 8673 |
< |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8672 |
> |
IFS=$lt_save_ifs |
| 8673 |
> |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8674 |
|
;; |
| 8675 |
|
esac |
| 8676 |
|
fi |
| 8677 |
|
|
| 8678 |
< |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8678 |
> |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8679 |
|
if test -n "$MAGIC_CMD"; then |
| 8680 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8681 |
|
$as_echo "$MAGIC_CMD" >&6; } |
| 8696 |
|
|
| 8697 |
|
# Use C for the default configuration in the libtool script |
| 8698 |
|
|
| 8699 |
< |
lt_save_CC="$CC" |
| 8699 |
> |
lt_save_CC=$CC |
| 8700 |
|
ac_ext=c |
| 8701 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 8702 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8750 |
|
$RM -r conftest* |
| 8751 |
|
|
| 8752 |
|
|
| 8753 |
+ |
## CAVEAT EMPTOR: |
| 8754 |
+ |
## There is no encapsulation within the following macros, do not change |
| 8755 |
+ |
## the running order or otherwise move them around unless you know exactly |
| 8756 |
+ |
## what you are doing... |
| 8757 |
|
if test -n "$compiler"; then |
| 8758 |
|
|
| 8759 |
|
lt_prog_compiler_no_builtin_flag= |
| 8760 |
|
|
| 8761 |
< |
if test "$GCC" = yes; then |
| 8761 |
> |
if test yes = "$GCC"; then |
| 8762 |
|
case $cc_basename in |
| 8763 |
|
nvcc*) |
| 8764 |
|
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8774 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
| 8775 |
|
ac_outfile=conftest.$ac_objext |
| 8776 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8777 |
< |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8777 |
> |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 8778 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 8779 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 8780 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 8804 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8805 |
|
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8806 |
|
|
| 8807 |
< |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8807 |
> |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 8808 |
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8809 |
|
else |
| 8810 |
|
: |
| 8822 |
|
lt_prog_compiler_static= |
| 8823 |
|
|
| 8824 |
|
|
| 8825 |
< |
if test "$GCC" = yes; then |
| 8825 |
> |
if test yes = "$GCC"; then |
| 8826 |
|
lt_prog_compiler_wl='-Wl,' |
| 8827 |
|
lt_prog_compiler_static='-static' |
| 8828 |
|
|
| 8829 |
|
case $host_os in |
| 8830 |
|
aix*) |
| 8831 |
|
# All AIX code is PIC. |
| 8832 |
< |
if test "$host_cpu" = ia64; then |
| 8832 |
> |
if test ia64 = "$host_cpu"; then |
| 8833 |
|
# AIX 5 now supports IA64 processor |
| 8834 |
|
lt_prog_compiler_static='-Bstatic' |
| 8835 |
|
fi |
| 8836 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 8837 |
|
;; |
| 8838 |
|
|
| 8839 |
|
amigaos*) |
| 8844 |
|
;; |
| 8845 |
|
m68k) |
| 8846 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
| 8847 |
< |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 8848 |
< |
# like `-m68040'. |
| 8847 |
> |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 8848 |
> |
# like '-m68040'. |
| 8849 |
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8850 |
|
;; |
| 8851 |
|
esac |
| 8861 |
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8862 |
|
# (--disable-auto-import) libraries |
| 8863 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8864 |
+ |
case $host_os in |
| 8865 |
+ |
os2*) |
| 8866 |
+ |
lt_prog_compiler_static='$wl-static' |
| 8867 |
+ |
;; |
| 8868 |
+ |
esac |
| 8869 |
|
;; |
| 8870 |
|
|
| 8871 |
|
darwin* | rhapsody*) |
| 8936 |
|
case $host_os in |
| 8937 |
|
aix*) |
| 8938 |
|
lt_prog_compiler_wl='-Wl,' |
| 8939 |
< |
if test "$host_cpu" = ia64; then |
| 8939 |
> |
if test ia64 = "$host_cpu"; then |
| 8940 |
|
# AIX 5 now supports IA64 processor |
| 8941 |
|
lt_prog_compiler_static='-Bstatic' |
| 8942 |
|
else |
| 8944 |
|
fi |
| 8945 |
|
;; |
| 8946 |
|
|
| 8947 |
+ |
darwin* | rhapsody*) |
| 8948 |
+ |
# PIC is the default on this platform |
| 8949 |
+ |
# Common symbols not allowed in MH_DYLIB files |
| 8950 |
+ |
lt_prog_compiler_pic='-fno-common' |
| 8951 |
+ |
case $cc_basename in |
| 8952 |
+ |
nagfor*) |
| 8953 |
+ |
# NAG Fortran compiler |
| 8954 |
+ |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8955 |
+ |
lt_prog_compiler_pic='-PIC' |
| 8956 |
+ |
lt_prog_compiler_static='-Bstatic' |
| 8957 |
+ |
;; |
| 8958 |
+ |
esac |
| 8959 |
+ |
;; |
| 8960 |
+ |
|
| 8961 |
|
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8962 |
|
# This hack is so that the source file can tell whether it is being |
| 8963 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 8964 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8965 |
+ |
case $host_os in |
| 8966 |
+ |
os2*) |
| 8967 |
+ |
lt_prog_compiler_static='$wl-static' |
| 8968 |
+ |
;; |
| 8969 |
+ |
esac |
| 8970 |
|
;; |
| 8971 |
|
|
| 8972 |
|
hpux9* | hpux10* | hpux11*) |
| 8982 |
|
;; |
| 8983 |
|
esac |
| 8984 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8985 |
< |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8985 |
> |
lt_prog_compiler_static='$wl-a ${wl}archive' |
| 8986 |
|
;; |
| 8987 |
|
|
| 8988 |
|
irix5* | irix6* | nonstopux*) |
| 8991 |
|
lt_prog_compiler_static='-non_shared' |
| 8992 |
|
;; |
| 8993 |
|
|
| 8994 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8994 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8995 |
|
case $cc_basename in |
| 8996 |
< |
# old Intel for x86_64 which still supported -KPIC. |
| 8996 |
> |
# old Intel for x86_64, which still supported -KPIC. |
| 8997 |
|
ecc*) |
| 8998 |
|
lt_prog_compiler_wl='-Wl,' |
| 8999 |
|
lt_prog_compiler_pic='-KPIC' |
| 9000 |
|
lt_prog_compiler_static='-static' |
| 9001 |
|
;; |
| 9002 |
+ |
# flang / f18. f95 an alias for gfortran or flang on Debian |
| 9003 |
+ |
flang* | f18* | f95*) |
| 9004 |
+ |
lt_prog_compiler_wl='-Wl,' |
| 9005 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 9006 |
+ |
lt_prog_compiler_static='-static' |
| 9007 |
+ |
;; |
| 9008 |
|
# icc used to be incompatible with GCC. |
| 9009 |
|
# ICC 10 doesn't accept -KPIC any more. |
| 9010 |
|
icc* | ifort*) |
| 9024 |
|
lt_prog_compiler_pic='-PIC' |
| 9025 |
|
lt_prog_compiler_static='-Bstatic' |
| 9026 |
|
;; |
| 9027 |
+ |
tcc*) |
| 9028 |
+ |
# Fabrice Bellard et al's Tiny C Compiler |
| 9029 |
+ |
lt_prog_compiler_wl='-Wl,' |
| 9030 |
+ |
lt_prog_compiler_pic='-fPIC' |
| 9031 |
+ |
lt_prog_compiler_static='-static' |
| 9032 |
+ |
;; |
| 9033 |
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9034 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 9035 |
|
# which looks to be a dead project) |
| 9127 |
|
;; |
| 9128 |
|
|
| 9129 |
|
sysv4*MP*) |
| 9130 |
< |
if test -d /usr/nec ;then |
| 9130 |
> |
if test -d /usr/nec; then |
| 9131 |
|
lt_prog_compiler_pic='-Kconform_pic' |
| 9132 |
|
lt_prog_compiler_static='-Bstatic' |
| 9133 |
|
fi |
| 9156 |
|
fi |
| 9157 |
|
|
| 9158 |
|
case $host_os in |
| 9159 |
< |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 9159 |
> |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 9160 |
|
*djgpp*) |
| 9161 |
|
lt_prog_compiler_pic= |
| 9162 |
|
;; |
| 9188 |
|
lt_cv_prog_compiler_pic_works=no |
| 9189 |
|
ac_outfile=conftest.$ac_objext |
| 9190 |
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9191 |
< |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9191 |
> |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 9192 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 9193 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 9194 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 9218 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 9219 |
|
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 9220 |
|
|
| 9221 |
< |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 9221 |
> |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 9222 |
|
case $lt_prog_compiler_pic in |
| 9223 |
|
"" | " "*) ;; |
| 9224 |
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9250 |
|
$as_echo_n "(cached) " >&6 |
| 9251 |
|
else |
| 9252 |
|
lt_cv_prog_compiler_static_works=no |
| 9253 |
< |
save_LDFLAGS="$LDFLAGS" |
| 9253 |
> |
save_LDFLAGS=$LDFLAGS |
| 9254 |
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 9255 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9256 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9269 |
|
fi |
| 9270 |
|
fi |
| 9271 |
|
$RM -r conftest* |
| 9272 |
< |
LDFLAGS="$save_LDFLAGS" |
| 9272 |
> |
LDFLAGS=$save_LDFLAGS |
| 9273 |
|
|
| 9274 |
|
fi |
| 9275 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 9276 |
|
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9277 |
|
|
| 9278 |
< |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9278 |
> |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 9279 |
|
: |
| 9280 |
|
else |
| 9281 |
|
lt_prog_compiler_static= |
| 9395 |
|
|
| 9396 |
|
|
| 9397 |
|
|
| 9398 |
< |
hard_links="nottested" |
| 9399 |
< |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9398 |
> |
hard_links=nottested |
| 9399 |
> |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 9400 |
|
# do not overwrite the value of need_locks provided by the user |
| 9401 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9402 |
|
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9408 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9409 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9410 |
|
$as_echo "$hard_links" >&6; } |
| 9411 |
< |
if test "$hard_links" = no; then |
| 9412 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9413 |
< |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9411 |
> |
if test no = "$hard_links"; then |
| 9412 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 9413 |
> |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 9414 |
|
need_locks=warn |
| 9415 |
|
fi |
| 9416 |
|
else |
| 9453 |
|
# included in the symbol list |
| 9454 |
|
include_expsyms= |
| 9455 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 9456 |
< |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9457 |
< |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9458 |
< |
# as well as any symbol that contains `d'. |
| 9456 |
> |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 9457 |
> |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 9458 |
> |
# as well as any symbol that contains 'd'. |
| 9459 |
|
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9460 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9461 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 9470 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9471 |
|
# When not using gcc, we currently assume that we are using |
| 9472 |
|
# Microsoft Visual C++. |
| 9473 |
< |
if test "$GCC" != yes; then |
| 9473 |
> |
if test yes != "$GCC"; then |
| 9474 |
|
with_gnu_ld=no |
| 9475 |
|
fi |
| 9476 |
|
;; |
| 9478 |
|
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9479 |
|
with_gnu_ld=yes |
| 9480 |
|
;; |
| 9481 |
< |
openbsd*) |
| 9481 |
> |
openbsd* | bitrig*) |
| 9482 |
|
with_gnu_ld=no |
| 9483 |
|
;; |
| 9484 |
+ |
linux* | k*bsd*-gnu | gnu*) |
| 9485 |
+ |
link_all_deplibs=no |
| 9486 |
+ |
;; |
| 9487 |
|
esac |
| 9488 |
|
|
| 9489 |
|
ld_shlibs=yes |
| 9491 |
|
# On some targets, GNU ld is compatible enough with the native linker |
| 9492 |
|
# that we're better off using the native interface for both. |
| 9493 |
|
lt_use_gnu_ld_interface=no |
| 9494 |
< |
if test "$with_gnu_ld" = yes; then |
| 9494 |
> |
if test yes = "$with_gnu_ld"; then |
| 9495 |
|
case $host_os in |
| 9496 |
|
aix*) |
| 9497 |
|
# The AIX port of GNU ld has always aspired to compatibility |
| 9513 |
|
esac |
| 9514 |
|
fi |
| 9515 |
|
|
| 9516 |
< |
if test "$lt_use_gnu_ld_interface" = yes; then |
| 9516 |
> |
if test yes = "$lt_use_gnu_ld_interface"; then |
| 9517 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 9518 |
< |
wlarc='${wl}' |
| 9518 |
> |
wlarc='$wl' |
| 9519 |
|
|
| 9520 |
|
# Set some defaults for GNU ld with shared library support. These |
| 9521 |
|
# are reset later if shared libraries are not supported. Putting them |
| 9522 |
|
# here allows them to be overridden if necessary. |
| 9523 |
|
runpath_var=LD_RUN_PATH |
| 9524 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9525 |
< |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9524 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9525 |
> |
export_dynamic_flag_spec='$wl--export-dynamic' |
| 9526 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 9527 |
|
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9528 |
< |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9528 |
> |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 9529 |
|
else |
| 9530 |
|
whole_archive_flag_spec= |
| 9531 |
|
fi |
| 9532 |
|
supports_anon_versioning=no |
| 9533 |
< |
case `$LD -v 2>&1` in |
| 9533 |
> |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 9534 |
|
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 9535 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9536 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9543 |
|
case $host_os in |
| 9544 |
|
aix[3-9]*) |
| 9545 |
|
# On AIX/PPC, the GNU linker is very broken |
| 9546 |
< |
if test "$host_cpu" != ia64; then |
| 9546 |
> |
if test ia64 != "$host_cpu"; then |
| 9547 |
|
ld_shlibs=no |
| 9548 |
|
cat <<_LT_EOF 1>&2 |
| 9549 |
|
|
| 9562 |
|
case $host_cpu in |
| 9563 |
|
powerpc) |
| 9564 |
|
# see comment about AmigaOS4 .so support |
| 9565 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9565 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9566 |
|
archive_expsym_cmds='' |
| 9567 |
|
;; |
| 9568 |
|
m68k) |
| 9578 |
|
allow_undefined_flag=unsupported |
| 9579 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9580 |
|
# support --undefined. This deserves some investigation. FIXME |
| 9581 |
< |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9581 |
> |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9582 |
|
else |
| 9583 |
|
ld_shlibs=no |
| 9584 |
|
fi |
| 9588 |
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9589 |
|
# as there is no search path for DLLs. |
| 9590 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 9591 |
< |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9591 |
> |
export_dynamic_flag_spec='$wl--export-all-symbols' |
| 9592 |
|
allow_undefined_flag=unsupported |
| 9593 |
|
always_export_symbols=no |
| 9594 |
|
enable_shared_with_static_runtimes=yes |
| 9596 |
|
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9597 |
|
|
| 9598 |
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9599 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9600 |
< |
# If the export-symbols file already is a .def file (1st line |
| 9601 |
< |
# is EXPORTS), use it as is; otherwise, prepend... |
| 9602 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9603 |
< |
cp $export_symbols $output_objdir/$soname.def; |
| 9604 |
< |
else |
| 9605 |
< |
echo EXPORTS > $output_objdir/$soname.def; |
| 9606 |
< |
cat $export_symbols >> $output_objdir/$soname.def; |
| 9607 |
< |
fi~ |
| 9608 |
< |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9599 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9600 |
> |
# If the export-symbols file already is a .def file, use it as |
| 9601 |
> |
# is; otherwise, prepend EXPORTS... |
| 9602 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9603 |
> |
cp $export_symbols $output_objdir/$soname.def; |
| 9604 |
> |
else |
| 9605 |
> |
echo EXPORTS > $output_objdir/$soname.def; |
| 9606 |
> |
cat $export_symbols >> $output_objdir/$soname.def; |
| 9607 |
> |
fi~ |
| 9608 |
> |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9609 |
|
else |
| 9610 |
|
ld_shlibs=no |
| 9611 |
|
fi |
| 9612 |
|
;; |
| 9613 |
|
|
| 9614 |
|
haiku*) |
| 9615 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9615 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9616 |
|
link_all_deplibs=yes |
| 9617 |
|
;; |
| 9618 |
|
|
| 9619 |
+ |
os2*) |
| 9620 |
+ |
hardcode_libdir_flag_spec='-L$libdir' |
| 9621 |
+ |
hardcode_minus_L=yes |
| 9622 |
+ |
allow_undefined_flag=unsupported |
| 9623 |
+ |
shrext_cmds=.dll |
| 9624 |
+ |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9625 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9626 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9627 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9628 |
+ |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 9629 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9630 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
| 9631 |
+ |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9632 |
+ |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9633 |
+ |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9634 |
+ |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9635 |
+ |
prefix_cmds="$SED"~ |
| 9636 |
+ |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 9637 |
+ |
prefix_cmds="$prefix_cmds -e 1d"; |
| 9638 |
+ |
fi~ |
| 9639 |
+ |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 9640 |
+ |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 9641 |
+ |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9642 |
+ |
emximp -o $lib $output_objdir/$libname.def' |
| 9643 |
+ |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 9644 |
+ |
enable_shared_with_static_runtimes=yes |
| 9645 |
+ |
;; |
| 9646 |
+ |
|
| 9647 |
|
interix[3-9]*) |
| 9648 |
|
hardcode_direct=no |
| 9649 |
|
hardcode_shlibpath_var=no |
| 9650 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9651 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 9650 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 9651 |
> |
export_dynamic_flag_spec='$wl-E' |
| 9652 |
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9653 |
|
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9654 |
|
# default) and relocated if they conflict, which is a slow very memory |
| 9655 |
|
# consuming and fragmenting process. To avoid this, we pick a random, |
| 9656 |
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9657 |
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9658 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9659 |
< |
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9658 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9659 |
> |
archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9660 |
|
;; |
| 9661 |
|
|
| 9662 |
|
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9663 |
|
tmp_diet=no |
| 9664 |
< |
if test "$host_os" = linux-dietlibc; then |
| 9664 |
> |
if test linux-dietlibc = "$host_os"; then |
| 9665 |
|
case $cc_basename in |
| 9666 |
|
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9667 |
|
esac |
| 9668 |
|
fi |
| 9669 |
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9670 |
< |
&& test "$tmp_diet" = no |
| 9670 |
> |
&& test no = "$tmp_diet" |
| 9671 |
|
then |
| 9672 |
|
tmp_addflag=' $pic_flag' |
| 9673 |
|
tmp_sharedflag='-shared' |
| 9674 |
|
case $cc_basename,$host_cpu in |
| 9675 |
|
pgcc*) # Portland Group C compiler |
| 9676 |
< |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9676 |
> |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9677 |
|
tmp_addflag=' $pic_flag' |
| 9678 |
|
;; |
| 9679 |
|
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9680 |
|
# Portland Group f77 and f90 compilers |
| 9681 |
< |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9681 |
> |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9682 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9683 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9684 |
|
tmp_addflag=' -i_dynamic' ;; |
| 9689 |
|
lf95*) # Lahey Fortran 8.1 |
| 9690 |
|
whole_archive_flag_spec= |
| 9691 |
|
tmp_sharedflag='--shared' ;; |
| 9692 |
+ |
nagfor*) # NAGFOR 5.3 |
| 9693 |
+ |
tmp_sharedflag='-Wl,-shared' ;; |
| 9694 |
|
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9695 |
|
tmp_sharedflag='-qmkshrobj' |
| 9696 |
|
tmp_addflag= ;; |
| 9697 |
|
nvcc*) # Cuda Compiler Driver 2.2 |
| 9698 |
< |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9698 |
> |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9699 |
|
compiler_needs_object=yes |
| 9700 |
|
;; |
| 9701 |
|
esac |
| 9702 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 9703 |
|
*Sun\ C*) # Sun C 5.9 |
| 9704 |
< |
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9704 |
> |
whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9705 |
|
compiler_needs_object=yes |
| 9706 |
|
tmp_sharedflag='-G' ;; |
| 9707 |
|
*Sun\ F*) # Sun Fortran 8.3 |
| 9708 |
|
tmp_sharedflag='-G' ;; |
| 9709 |
|
esac |
| 9710 |
< |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9710 |
> |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9711 |
|
|
| 9712 |
< |
if test "x$supports_anon_versioning" = xyes; then |
| 9712 |
> |
if test yes = "$supports_anon_versioning"; then |
| 9713 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9714 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9715 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9716 |
< |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9714 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9715 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9716 |
> |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 9717 |
|
fi |
| 9718 |
|
|
| 9719 |
|
case $cc_basename in |
| 9720 |
+ |
tcc*) |
| 9721 |
+ |
export_dynamic_flag_spec='-rdynamic' |
| 9722 |
+ |
;; |
| 9723 |
|
xlf* | bgf* | bgxlf* | mpixlf*) |
| 9724 |
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9725 |
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9726 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9726 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9727 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9728 |
< |
if test "x$supports_anon_versioning" = xyes; then |
| 9728 |
> |
if test yes = "$supports_anon_versioning"; then |
| 9729 |
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9730 |
< |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9731 |
< |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9732 |
< |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9730 |
> |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9731 |
> |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9732 |
> |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9733 |
|
fi |
| 9734 |
|
;; |
| 9735 |
|
esac |
| 9738 |
|
fi |
| 9739 |
|
;; |
| 9740 |
|
|
| 9741 |
< |
netbsd*) |
| 9741 |
> |
netbsd* | netbsdelf*-gnu) |
| 9742 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9743 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9744 |
|
wlarc= |
| 9745 |
|
else |
| 9746 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9747 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9746 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9747 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9748 |
|
fi |
| 9749 |
|
;; |
| 9750 |
|
|
| 9762 |
|
|
| 9763 |
|
_LT_EOF |
| 9764 |
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9765 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9766 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9765 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9766 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9767 |
|
else |
| 9768 |
|
ld_shlibs=no |
| 9769 |
|
fi |
| 9775 |
|
ld_shlibs=no |
| 9776 |
|
cat <<_LT_EOF 1>&2 |
| 9777 |
|
|
| 9778 |
< |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9778 |
> |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 9779 |
|
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9780 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9781 |
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9790 |
|
# DT_RUNPATH tag from executables and libraries. But doing so |
| 9791 |
|
# requires that you compile everything twice, which is a pain. |
| 9792 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9793 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9794 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9795 |
< |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9793 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9794 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9795 |
> |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9796 |
|
else |
| 9797 |
|
ld_shlibs=no |
| 9798 |
|
fi |
| 9809 |
|
|
| 9810 |
|
*) |
| 9811 |
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9812 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9813 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9812 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9813 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9814 |
|
else |
| 9815 |
|
ld_shlibs=no |
| 9816 |
|
fi |
| 9817 |
|
;; |
| 9818 |
|
esac |
| 9819 |
|
|
| 9820 |
< |
if test "$ld_shlibs" = no; then |
| 9820 |
> |
if test no = "$ld_shlibs"; then |
| 9821 |
|
runpath_var= |
| 9822 |
|
hardcode_libdir_flag_spec= |
| 9823 |
|
export_dynamic_flag_spec= |
| 9833 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
| 9834 |
|
# are no directories specified by -L. |
| 9835 |
|
hardcode_minus_L=yes |
| 9836 |
< |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9836 |
> |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 9837 |
|
# Neither direct hardcoding nor static linking is supported with a |
| 9838 |
|
# broken collect2. |
| 9839 |
|
hardcode_direct=unsupported |
| 9841 |
|
;; |
| 9842 |
|
|
| 9843 |
|
aix[4-9]*) |
| 9844 |
< |
if test "$host_cpu" = ia64; then |
| 9844 |
> |
if test ia64 = "$host_cpu"; then |
| 9845 |
|
# On IA64, the linker does run time linking by default, so we don't |
| 9846 |
|
# have to do anything special. |
| 9847 |
|
aix_use_runtimelinking=no |
| 9848 |
|
exp_sym_flag='-Bexport' |
| 9849 |
< |
no_entry_flag="" |
| 9849 |
> |
no_entry_flag= |
| 9850 |
|
else |
| 9851 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
| 9852 |
< |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9853 |
< |
# Also, AIX nm treats weak defined symbols like other global |
| 9854 |
< |
# defined symbols, whereas GNU nm marks them as "W". |
| 9852 |
> |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 9853 |
> |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
| 9854 |
> |
# weak defined symbols like other global defined symbols, whereas |
| 9855 |
> |
# GNU nm marks them as "W". |
| 9856 |
> |
# While the 'weak' keyword is ignored in the Export File, we need |
| 9857 |
> |
# it in the Import File for the 'aix-soname' feature, so we have |
| 9858 |
> |
# to replace the "-B" option with "-P" for AIX nm. |
| 9859 |
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9860 |
< |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9860 |
> |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 9861 |
|
else |
| 9862 |
< |
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9862 |
> |
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 9863 |
|
fi |
| 9864 |
|
aix_use_runtimelinking=no |
| 9865 |
|
|
| 9866 |
|
# Test if we are trying to use run time linking or normal |
| 9867 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9868 |
< |
# need to do runtime linking. |
| 9868 |
> |
# have runtime linking enabled, and use it for executables. |
| 9869 |
> |
# For shared libraries, we enable/disable runtime linking |
| 9870 |
> |
# depending on the kind of the shared library created - |
| 9871 |
> |
# when "with_aix_soname,aix_use_runtimelinking" is: |
| 9872 |
> |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 9873 |
> |
# "aix,yes" lib.so shared, rtl:yes, for executables |
| 9874 |
> |
# lib.a static archive |
| 9875 |
> |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 9876 |
> |
# lib.a(lib.so.V) shared, rtl:no, for executables |
| 9877 |
> |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9878 |
> |
# lib.a(lib.so.V) shared, rtl:no |
| 9879 |
> |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9880 |
> |
# lib.a static archive |
| 9881 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9882 |
|
for ld_flag in $LDFLAGS; do |
| 9883 |
< |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9883 |
> |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 9884 |
|
aix_use_runtimelinking=yes |
| 9885 |
|
break |
| 9886 |
|
fi |
| 9887 |
|
done |
| 9888 |
+ |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 9889 |
+ |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 9890 |
+ |
# so we don't have lib.a shared libs to link our executables. |
| 9891 |
+ |
# We have to force runtime linking in this case. |
| 9892 |
+ |
aix_use_runtimelinking=yes |
| 9893 |
+ |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 9894 |
+ |
fi |
| 9895 |
|
;; |
| 9896 |
|
esac |
| 9897 |
|
|
| 9910 |
|
hardcode_direct_absolute=yes |
| 9911 |
|
hardcode_libdir_separator=':' |
| 9912 |
|
link_all_deplibs=yes |
| 9913 |
< |
file_list_spec='${wl}-f,' |
| 9913 |
> |
file_list_spec='$wl-f,' |
| 9914 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
| 9915 |
> |
aix,*) ;; # traditional, no import file |
| 9916 |
> |
svr4,* | *,yes) # use import file |
| 9917 |
> |
# The Import File defines what to hardcode. |
| 9918 |
> |
hardcode_direct=no |
| 9919 |
> |
hardcode_direct_absolute=no |
| 9920 |
> |
;; |
| 9921 |
> |
esac |
| 9922 |
|
|
| 9923 |
< |
if test "$GCC" = yes; then |
| 9923 |
> |
if test yes = "$GCC"; then |
| 9924 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
| 9925 |
|
# We only want to do this on AIX 4.2 and lower, the check |
| 9926 |
|
# below for broken collect2 doesn't work under 4.3+ |
| 9927 |
< |
collect2name=`${CC} -print-prog-name=collect2` |
| 9927 |
> |
collect2name=`$CC -print-prog-name=collect2` |
| 9928 |
|
if test -f "$collect2name" && |
| 9929 |
|
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9930 |
|
then |
| 9943 |
|
;; |
| 9944 |
|
esac |
| 9945 |
|
shared_flag='-shared' |
| 9946 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9947 |
< |
shared_flag="$shared_flag "'${wl}-G' |
| 9946 |
> |
if test yes = "$aix_use_runtimelinking"; then |
| 9947 |
> |
shared_flag="$shared_flag "'$wl-G' |
| 9948 |
|
fi |
| 9949 |
+ |
# Need to ensure runtime linking is disabled for the traditional |
| 9950 |
+ |
# shared library, or the linker may eventually find shared libraries |
| 9951 |
+ |
# /with/ Import File - we do not want to mix them. |
| 9952 |
+ |
shared_flag_aix='-shared' |
| 9953 |
+ |
shared_flag_svr4='-shared $wl-G' |
| 9954 |
|
else |
| 9955 |
|
# not using gcc |
| 9956 |
< |
if test "$host_cpu" = ia64; then |
| 9956 |
> |
if test ia64 = "$host_cpu"; then |
| 9957 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9958 |
|
# chokes on -Wl,-G. The following line is correct: |
| 9959 |
|
shared_flag='-G' |
| 9960 |
|
else |
| 9961 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9962 |
< |
shared_flag='${wl}-G' |
| 9961 |
> |
if test yes = "$aix_use_runtimelinking"; then |
| 9962 |
> |
shared_flag='$wl-G' |
| 9963 |
|
else |
| 9964 |
< |
shared_flag='${wl}-bM:SRE' |
| 9964 |
> |
shared_flag='$wl-bM:SRE' |
| 9965 |
|
fi |
| 9966 |
+ |
shared_flag_aix='$wl-bM:SRE' |
| 9967 |
+ |
shared_flag_svr4='$wl-G' |
| 9968 |
|
fi |
| 9969 |
|
fi |
| 9970 |
|
|
| 9971 |
< |
export_dynamic_flag_spec='${wl}-bexpall' |
| 9971 |
> |
export_dynamic_flag_spec='$wl-bexpall' |
| 9972 |
|
# It seems that -bexpall does not export symbols beginning with |
| 9973 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
| 9974 |
|
always_export_symbols=yes |
| 9975 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 9975 |
> |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 9976 |
|
# Warning - without using the other runtime loading flags (-brtl), |
| 9977 |
|
# -berok will link without error, but may produce a broken library. |
| 9978 |
|
allow_undefined_flag='-berok' |
| 9979 |
|
# Determine the default libpath from the value encoded in an |
| 9980 |
|
# empty executable. |
| 9981 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 9981 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 9982 |
|
aix_libpath=$lt_cv_aix_libpath |
| 9983 |
|
else |
| 9984 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
| 10013 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10014 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10015 |
|
if test -z "$lt_cv_aix_libpath_"; then |
| 10016 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 10016 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 10017 |
|
fi |
| 10018 |
|
|
| 10019 |
|
fi |
| 10021 |
|
aix_libpath=$lt_cv_aix_libpath_ |
| 10022 |
|
fi |
| 10023 |
|
|
| 10024 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10025 |
< |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 10024 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10025 |
> |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 10026 |
|
else |
| 10027 |
< |
if test "$host_cpu" = ia64; then |
| 10028 |
< |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 10027 |
> |
if test ia64 = "$host_cpu"; then |
| 10028 |
> |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 10029 |
|
allow_undefined_flag="-z nodefs" |
| 10030 |
< |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 10030 |
> |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 10031 |
|
else |
| 10032 |
|
# Determine the default libpath from the value encoded in an |
| 10033 |
|
# empty executable. |
| 10034 |
< |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 10034 |
> |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 10035 |
|
aix_libpath=$lt_cv_aix_libpath |
| 10036 |
|
else |
| 10037 |
|
if ${lt_cv_aix_libpath_+:} false; then : |
| 10066 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10067 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10068 |
|
if test -z "$lt_cv_aix_libpath_"; then |
| 10069 |
< |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 10069 |
> |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 10070 |
|
fi |
| 10071 |
|
|
| 10072 |
|
fi |
| 10074 |
|
aix_libpath=$lt_cv_aix_libpath_ |
| 10075 |
|
fi |
| 10076 |
|
|
| 10077 |
< |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10077 |
> |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10078 |
|
# Warning - without using the other run time loading flags, |
| 10079 |
|
# -berok will link without error, but may produce a broken library. |
| 10080 |
< |
no_undefined_flag=' ${wl}-bernotok' |
| 10081 |
< |
allow_undefined_flag=' ${wl}-berok' |
| 10082 |
< |
if test "$with_gnu_ld" = yes; then |
| 10080 |
> |
no_undefined_flag=' $wl-bernotok' |
| 10081 |
> |
allow_undefined_flag=' $wl-berok' |
| 10082 |
> |
if test yes = "$with_gnu_ld"; then |
| 10083 |
|
# We only use this code for GNU lds that support --whole-archive. |
| 10084 |
< |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10084 |
> |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 10085 |
|
else |
| 10086 |
|
# Exported symbols can be pulled into shared objects from archives |
| 10087 |
|
whole_archive_flag_spec='$convenience' |
| 10088 |
|
fi |
| 10089 |
|
archive_cmds_need_lc=yes |
| 10090 |
< |
# This is similar to how AIX traditionally builds its shared libraries. |
| 10091 |
< |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 10090 |
> |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 10091 |
> |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
| 10092 |
> |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 10093 |
> |
if test svr4 != "$with_aix_soname"; then |
| 10094 |
> |
# This is similar to how AIX traditionally builds its shared libraries. |
| 10095 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 10096 |
> |
fi |
| 10097 |
> |
if test aix != "$with_aix_soname"; then |
| 10098 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 10099 |
> |
else |
| 10100 |
> |
# used by -dlpreopen to get the symbols |
| 10101 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 10102 |
> |
fi |
| 10103 |
> |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 10104 |
|
fi |
| 10105 |
|
fi |
| 10106 |
|
;; |
| 10109 |
|
case $host_cpu in |
| 10110 |
|
powerpc) |
| 10111 |
|
# see comment about AmigaOS4 .so support |
| 10112 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10112 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10113 |
|
archive_expsym_cmds='' |
| 10114 |
|
;; |
| 10115 |
|
m68k) |
| 10139 |
|
# Tell ltmain to make .lib files, not .a files. |
| 10140 |
|
libext=lib |
| 10141 |
|
# Tell ltmain to make .dll files, not .so files. |
| 10142 |
< |
shrext_cmds=".dll" |
| 10142 |
> |
shrext_cmds=.dll |
| 10143 |
|
# FIXME: Setting linknames here is a bad hack. |
| 10144 |
< |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 10145 |
< |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10146 |
< |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 10147 |
< |
else |
| 10148 |
< |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 10149 |
< |
fi~ |
| 10150 |
< |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 10151 |
< |
linknames=' |
| 10144 |
> |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 10145 |
> |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 10146 |
> |
cp "$export_symbols" "$output_objdir/$soname.def"; |
| 10147 |
> |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 10148 |
> |
else |
| 10149 |
> |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 10150 |
> |
fi~ |
| 10151 |
> |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 10152 |
> |
linknames=' |
| 10153 |
|
# The linker will not automatically build a static lib if we build a DLL. |
| 10154 |
|
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 10155 |
|
enable_shared_with_static_runtimes=yes |
| 10158 |
|
# Don't use ranlib |
| 10159 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
| 10160 |
|
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 10161 |
< |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 10162 |
< |
case $lt_outputfile in |
| 10163 |
< |
*.exe|*.EXE) ;; |
| 10164 |
< |
*) |
| 10165 |
< |
lt_outputfile="$lt_outputfile.exe" |
| 10166 |
< |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 10167 |
< |
;; |
| 10168 |
< |
esac~ |
| 10169 |
< |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 10170 |
< |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 10171 |
< |
$RM "$lt_outputfile.manifest"; |
| 10172 |
< |
fi' |
| 10161 |
> |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 10162 |
> |
case $lt_outputfile in |
| 10163 |
> |
*.exe|*.EXE) ;; |
| 10164 |
> |
*) |
| 10165 |
> |
lt_outputfile=$lt_outputfile.exe |
| 10166 |
> |
lt_tool_outputfile=$lt_tool_outputfile.exe |
| 10167 |
> |
;; |
| 10168 |
> |
esac~ |
| 10169 |
> |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 10170 |
> |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 10171 |
> |
$RM "$lt_outputfile.manifest"; |
| 10172 |
> |
fi' |
| 10173 |
|
;; |
| 10174 |
|
*) |
| 10175 |
|
# Assume MSVC wrapper |
| 10178 |
|
# Tell ltmain to make .lib files, not .a files. |
| 10179 |
|
libext=lib |
| 10180 |
|
# Tell ltmain to make .dll files, not .so files. |
| 10181 |
< |
shrext_cmds=".dll" |
| 10181 |
> |
shrext_cmds=.dll |
| 10182 |
|
# FIXME: Setting linknames here is a bad hack. |
| 10183 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 10184 |
|
# The linker will automatically build a .lib file if we build a DLL. |
| 10197 |
|
hardcode_direct=no |
| 10198 |
|
hardcode_automatic=yes |
| 10199 |
|
hardcode_shlibpath_var=unsupported |
| 10200 |
< |
if test "$lt_cv_ld_force_load" = "yes"; then |
| 10201 |
< |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 10200 |
> |
if test yes = "$lt_cv_ld_force_load"; then |
| 10201 |
> |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 10202 |
|
|
| 10203 |
|
else |
| 10204 |
|
whole_archive_flag_spec='' |
| 10205 |
|
fi |
| 10206 |
|
link_all_deplibs=yes |
| 10207 |
< |
allow_undefined_flag="$_lt_dar_allow_undefined" |
| 10207 |
> |
allow_undefined_flag=$_lt_dar_allow_undefined |
| 10208 |
|
case $cc_basename in |
| 10209 |
< |
ifort*) _lt_dar_can_shared=yes ;; |
| 10209 |
> |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 10210 |
|
*) _lt_dar_can_shared=$GCC ;; |
| 10211 |
|
esac |
| 10212 |
< |
if test "$_lt_dar_can_shared" = "yes"; then |
| 10212 |
> |
if test yes = "$_lt_dar_can_shared"; then |
| 10213 |
|
output_verbose_link_cmd=func_echo_all |
| 10214 |
< |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 10215 |
< |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 10216 |
< |
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 10217 |
< |
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 10214 |
> |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 10215 |
> |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 10216 |
> |
archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 10217 |
> |
module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 10218 |
|
|
| 10219 |
|
else |
| 10220 |
|
ld_shlibs=no |
| 10256 |
|
;; |
| 10257 |
|
|
| 10258 |
|
hpux9*) |
| 10259 |
< |
if test "$GCC" = yes; then |
| 10260 |
< |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10259 |
> |
if test yes = "$GCC"; then |
| 10260 |
> |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 10261 |
|
else |
| 10262 |
< |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10262 |
> |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 10263 |
|
fi |
| 10264 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10264 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10265 |
|
hardcode_libdir_separator=: |
| 10266 |
|
hardcode_direct=yes |
| 10267 |
|
|
| 10268 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10269 |
|
# but as the default location of the library. |
| 10270 |
|
hardcode_minus_L=yes |
| 10271 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10271 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10272 |
|
;; |
| 10273 |
|
|
| 10274 |
|
hpux10*) |
| 10275 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10276 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10275 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 10276 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10277 |
|
else |
| 10278 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10279 |
|
fi |
| 10280 |
< |
if test "$with_gnu_ld" = no; then |
| 10281 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10280 |
> |
if test no = "$with_gnu_ld"; then |
| 10281 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10282 |
|
hardcode_libdir_separator=: |
| 10283 |
|
hardcode_direct=yes |
| 10284 |
|
hardcode_direct_absolute=yes |
| 10285 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10285 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10286 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10287 |
|
# but as the default location of the library. |
| 10288 |
|
hardcode_minus_L=yes |
| 10290 |
|
;; |
| 10291 |
|
|
| 10292 |
|
hpux11*) |
| 10293 |
< |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10293 |
> |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 10294 |
|
case $host_cpu in |
| 10295 |
|
hppa*64*) |
| 10296 |
< |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10296 |
> |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10297 |
|
;; |
| 10298 |
|
ia64*) |
| 10299 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10299 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10300 |
|
;; |
| 10301 |
|
*) |
| 10302 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10302 |
> |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10303 |
|
;; |
| 10304 |
|
esac |
| 10305 |
|
else |
| 10306 |
|
case $host_cpu in |
| 10307 |
|
hppa*64*) |
| 10308 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10308 |
> |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10309 |
|
;; |
| 10310 |
|
ia64*) |
| 10311 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10311 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10312 |
|
;; |
| 10313 |
|
*) |
| 10314 |
|
|
| 10320 |
|
$as_echo_n "(cached) " >&6 |
| 10321 |
|
else |
| 10322 |
|
lt_cv_prog_compiler__b=no |
| 10323 |
< |
save_LDFLAGS="$LDFLAGS" |
| 10323 |
> |
save_LDFLAGS=$LDFLAGS |
| 10324 |
|
LDFLAGS="$LDFLAGS -b" |
| 10325 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10326 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10339 |
|
fi |
| 10340 |
|
fi |
| 10341 |
|
$RM -r conftest* |
| 10342 |
< |
LDFLAGS="$save_LDFLAGS" |
| 10342 |
> |
LDFLAGS=$save_LDFLAGS |
| 10343 |
|
|
| 10344 |
|
fi |
| 10345 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 10346 |
|
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 10347 |
|
|
| 10348 |
< |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 10349 |
< |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10348 |
> |
if test yes = "$lt_cv_prog_compiler__b"; then |
| 10349 |
> |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10350 |
|
else |
| 10351 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10352 |
|
fi |
| 10354 |
|
;; |
| 10355 |
|
esac |
| 10356 |
|
fi |
| 10357 |
< |
if test "$with_gnu_ld" = no; then |
| 10358 |
< |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10357 |
> |
if test no = "$with_gnu_ld"; then |
| 10358 |
> |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 10359 |
|
hardcode_libdir_separator=: |
| 10360 |
|
|
| 10361 |
|
case $host_cpu in |
| 10366 |
|
*) |
| 10367 |
|
hardcode_direct=yes |
| 10368 |
|
hardcode_direct_absolute=yes |
| 10369 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10369 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10370 |
|
|
| 10371 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 10372 |
|
# but as the default location of the library. |
| 10377 |
|
;; |
| 10378 |
|
|
| 10379 |
|
irix5* | irix6* | nonstopux*) |
| 10380 |
< |
if test "$GCC" = yes; then |
| 10381 |
< |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10380 |
> |
if test yes = "$GCC"; then |
| 10381 |
> |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 10382 |
|
# Try to use the -exported_symbol ld option, if it does not |
| 10383 |
|
# work, assume that -exports_file does not work either and |
| 10384 |
|
# implicitly export all symbols. |
| 10388 |
|
if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10389 |
|
$as_echo_n "(cached) " >&6 |
| 10390 |
|
else |
| 10391 |
< |
save_LDFLAGS="$LDFLAGS" |
| 10392 |
< |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10391 |
> |
save_LDFLAGS=$LDFLAGS |
| 10392 |
> |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 10393 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10394 |
|
/* end confdefs.h. */ |
| 10395 |
|
int foo (void) { return 0; } |
| 10401 |
|
fi |
| 10402 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 10403 |
|
conftest$ac_exeext conftest.$ac_ext |
| 10404 |
< |
LDFLAGS="$save_LDFLAGS" |
| 10404 |
> |
LDFLAGS=$save_LDFLAGS |
| 10405 |
|
fi |
| 10406 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10407 |
|
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10408 |
< |
if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10409 |
< |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 10408 |
> |
if test yes = "$lt_cv_irix_exported_symbol"; then |
| 10409 |
> |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
| 10410 |
|
fi |
| 10411 |
+ |
link_all_deplibs=no |
| 10412 |
|
else |
| 10413 |
< |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10414 |
< |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 10413 |
> |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 10414 |
> |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
| 10415 |
|
fi |
| 10416 |
|
archive_cmds_need_lc='no' |
| 10417 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10417 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10418 |
|
hardcode_libdir_separator=: |
| 10419 |
|
inherit_rpath=yes |
| 10420 |
|
link_all_deplibs=yes |
| 10421 |
|
;; |
| 10422 |
|
|
| 10423 |
< |
netbsd*) |
| 10423 |
> |
linux*) |
| 10424 |
> |
case $cc_basename in |
| 10425 |
> |
tcc*) |
| 10426 |
> |
# Fabrice Bellard et al's Tiny C Compiler |
| 10427 |
> |
ld_shlibs=yes |
| 10428 |
> |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10429 |
> |
;; |
| 10430 |
> |
esac |
| 10431 |
> |
;; |
| 10432 |
> |
|
| 10433 |
> |
netbsd* | netbsdelf*-gnu) |
| 10434 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10435 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10436 |
|
else |
| 10444 |
|
newsos6) |
| 10445 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10446 |
|
hardcode_direct=yes |
| 10447 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10447 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10448 |
|
hardcode_libdir_separator=: |
| 10449 |
|
hardcode_shlibpath_var=no |
| 10450 |
|
;; |
| 10452 |
|
*nto* | *qnx*) |
| 10453 |
|
;; |
| 10454 |
|
|
| 10455 |
< |
openbsd*) |
| 10455 |
> |
openbsd* | bitrig*) |
| 10456 |
|
if test -f /usr/libexec/ld.so; then |
| 10457 |
|
hardcode_direct=yes |
| 10458 |
|
hardcode_shlibpath_var=no |
| 10459 |
|
hardcode_direct_absolute=yes |
| 10460 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10460 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 10461 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10462 |
< |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10463 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10464 |
< |
export_dynamic_flag_spec='${wl}-E' |
| 10462 |
> |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 10463 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10464 |
> |
export_dynamic_flag_spec='$wl-E' |
| 10465 |
|
else |
| 10466 |
< |
case $host_os in |
| 10467 |
< |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9989 |
< |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9990 |
< |
hardcode_libdir_flag_spec='-R$libdir' |
| 9991 |
< |
;; |
| 9992 |
< |
*) |
| 9993 |
< |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9994 |
< |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9995 |
< |
;; |
| 9996 |
< |
esac |
| 10466 |
> |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10467 |
> |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10468 |
|
fi |
| 10469 |
|
else |
| 10470 |
|
ld_shlibs=no |
| 10475 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 10476 |
|
hardcode_minus_L=yes |
| 10477 |
|
allow_undefined_flag=unsupported |
| 10478 |
< |
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 10479 |
< |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10478 |
> |
shrext_cmds=.dll |
| 10479 |
> |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10480 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10481 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10482 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10483 |
> |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 10484 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10485 |
> |
emximp -o $lib $output_objdir/$libname.def' |
| 10486 |
> |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10487 |
> |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10488 |
> |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10489 |
> |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10490 |
> |
prefix_cmds="$SED"~ |
| 10491 |
> |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 10492 |
> |
prefix_cmds="$prefix_cmds -e 1d"; |
| 10493 |
> |
fi~ |
| 10494 |
> |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 10495 |
> |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 10496 |
> |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10497 |
> |
emximp -o $lib $output_objdir/$libname.def' |
| 10498 |
> |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 10499 |
> |
enable_shared_with_static_runtimes=yes |
| 10500 |
|
;; |
| 10501 |
|
|
| 10502 |
|
osf3*) |
| 10503 |
< |
if test "$GCC" = yes; then |
| 10504 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10505 |
< |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10503 |
> |
if test yes = "$GCC"; then |
| 10504 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10505 |
> |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 10506 |
|
else |
| 10507 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 10508 |
< |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10508 |
> |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 10509 |
|
fi |
| 10510 |
|
archive_cmds_need_lc='no' |
| 10511 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10511 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10512 |
|
hardcode_libdir_separator=: |
| 10513 |
|
;; |
| 10514 |
|
|
| 10515 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10516 |
< |
if test "$GCC" = yes; then |
| 10517 |
< |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10518 |
< |
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10519 |
< |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10516 |
> |
if test yes = "$GCC"; then |
| 10517 |
> |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10518 |
> |
archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 10519 |
> |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10520 |
|
else |
| 10521 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 10522 |
< |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10522 |
> |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 10523 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 10524 |
< |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 10524 |
> |
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
| 10525 |
|
|
| 10526 |
|
# Both c and cxx compiler support -rpath directly |
| 10527 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
| 10532 |
|
|
| 10533 |
|
solaris*) |
| 10534 |
|
no_undefined_flag=' -z defs' |
| 10535 |
< |
if test "$GCC" = yes; then |
| 10536 |
< |
wlarc='${wl}' |
| 10537 |
< |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10535 |
> |
if test yes = "$GCC"; then |
| 10536 |
> |
wlarc='$wl' |
| 10537 |
> |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10538 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10539 |
< |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10539 |
> |
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10540 |
|
else |
| 10541 |
|
case `$CC -V 2>&1` in |
| 10542 |
|
*"Compilers 5.0"*) |
| 10543 |
|
wlarc='' |
| 10544 |
< |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10544 |
> |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10545 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10546 |
< |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10546 |
> |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10547 |
|
;; |
| 10548 |
|
*) |
| 10549 |
< |
wlarc='${wl}' |
| 10550 |
< |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10549 |
> |
wlarc='$wl' |
| 10550 |
> |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10551 |
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10552 |
< |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10552 |
> |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10553 |
|
;; |
| 10554 |
|
esac |
| 10555 |
|
fi |
| 10559 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10560 |
|
*) |
| 10561 |
|
# The compiler driver will combine and reorder linker options, |
| 10562 |
< |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10562 |
> |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
| 10563 |
|
# but is careful enough not to reorder. |
| 10564 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10565 |
< |
if test "$GCC" = yes; then |
| 10566 |
< |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10565 |
> |
if test yes = "$GCC"; then |
| 10566 |
> |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 10567 |
|
else |
| 10568 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10569 |
|
fi |
| 10573 |
|
;; |
| 10574 |
|
|
| 10575 |
|
sunos4*) |
| 10576 |
< |
if test "x$host_vendor" = xsequent; then |
| 10576 |
> |
if test sequent = "$host_vendor"; then |
| 10577 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
| 10578 |
|
# files that make .init and .fini sections work. |
| 10579 |
< |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10579 |
> |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10580 |
|
else |
| 10581 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10582 |
|
fi |
| 10625 |
|
;; |
| 10626 |
|
|
| 10627 |
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10628 |
< |
no_undefined_flag='${wl}-z,text' |
| 10628 |
> |
no_undefined_flag='$wl-z,text' |
| 10629 |
|
archive_cmds_need_lc=no |
| 10630 |
|
hardcode_shlibpath_var=no |
| 10631 |
|
runpath_var='LD_RUN_PATH' |
| 10632 |
|
|
| 10633 |
< |
if test "$GCC" = yes; then |
| 10634 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10635 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10633 |
> |
if test yes = "$GCC"; then |
| 10634 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10635 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10636 |
|
else |
| 10637 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10638 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10637 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10638 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10639 |
|
fi |
| 10640 |
|
;; |
| 10641 |
|
|
| 10642 |
|
sysv5* | sco3.2v5* | sco5v6*) |
| 10643 |
< |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 10643 |
> |
# Note: We CANNOT use -z defs as we might desire, because we do not |
| 10644 |
|
# link with -lc, and that would cause any symbols used from libc to |
| 10645 |
|
# always be unresolved, which means just about no library would |
| 10646 |
|
# ever link correctly. If we're not using GNU ld we use -z text |
| 10647 |
|
# though, which does catch some bad symbols but isn't as heavy-handed |
| 10648 |
|
# as -z defs. |
| 10649 |
< |
no_undefined_flag='${wl}-z,text' |
| 10650 |
< |
allow_undefined_flag='${wl}-z,nodefs' |
| 10649 |
> |
no_undefined_flag='$wl-z,text' |
| 10650 |
> |
allow_undefined_flag='$wl-z,nodefs' |
| 10651 |
|
archive_cmds_need_lc=no |
| 10652 |
|
hardcode_shlibpath_var=no |
| 10653 |
< |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10653 |
> |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 10654 |
|
hardcode_libdir_separator=':' |
| 10655 |
|
link_all_deplibs=yes |
| 10656 |
< |
export_dynamic_flag_spec='${wl}-Bexport' |
| 10656 |
> |
export_dynamic_flag_spec='$wl-Bexport' |
| 10657 |
|
runpath_var='LD_RUN_PATH' |
| 10658 |
|
|
| 10659 |
< |
if test "$GCC" = yes; then |
| 10660 |
< |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10661 |
< |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10659 |
> |
if test yes = "$GCC"; then |
| 10660 |
> |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10661 |
> |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10662 |
|
else |
| 10663 |
< |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10664 |
< |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10663 |
> |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10664 |
> |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10665 |
|
fi |
| 10666 |
|
;; |
| 10667 |
|
|
| 10676 |
|
;; |
| 10677 |
|
esac |
| 10678 |
|
|
| 10679 |
< |
if test x$host_vendor = xsni; then |
| 10679 |
> |
if test sni = "$host_vendor"; then |
| 10680 |
|
case $host in |
| 10681 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10682 |
< |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10682 |
> |
export_dynamic_flag_spec='$wl-Blargedynsym' |
| 10683 |
|
;; |
| 10684 |
|
esac |
| 10685 |
|
fi |
| 10687 |
|
|
| 10688 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10689 |
|
$as_echo "$ld_shlibs" >&6; } |
| 10690 |
< |
test "$ld_shlibs" = no && can_build_shared=no |
| 10690 |
> |
test no = "$ld_shlibs" && can_build_shared=no |
| 10691 |
|
|
| 10692 |
|
with_gnu_ld=$with_gnu_ld |
| 10693 |
|
|
| 10713 |
|
# Assume -lc should be added |
| 10714 |
|
archive_cmds_need_lc=yes |
| 10715 |
|
|
| 10716 |
< |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10716 |
> |
if test yes,yes = "$GCC,$enable_shared"; then |
| 10717 |
|
case $archive_cmds in |
| 10718 |
|
*'~'*) |
| 10719 |
|
# FIXME: we may have to deal with multi-command sequences. |
| 10928 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10929 |
|
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10930 |
|
|
| 10931 |
< |
if test "$GCC" = yes; then |
| 10931 |
> |
if test yes = "$GCC"; then |
| 10932 |
|
case $host_os in |
| 10933 |
< |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10934 |
< |
*) lt_awk_arg="/^libraries:/" ;; |
| 10933 |
> |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 10934 |
> |
*) lt_awk_arg='/^libraries:/' ;; |
| 10935 |
|
esac |
| 10936 |
|
case $host_os in |
| 10937 |
< |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10938 |
< |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10937 |
> |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 10938 |
> |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
| 10939 |
|
esac |
| 10940 |
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10941 |
|
case $lt_search_path_spec in |
| 10951 |
|
;; |
| 10952 |
|
esac |
| 10953 |
|
# Ok, now we have the path, separated by spaces, we can step through it |
| 10954 |
< |
# and add multilib dir if necessary. |
| 10954 |
> |
# and add multilib dir if necessary... |
| 10955 |
|
lt_tmp_lt_search_path_spec= |
| 10956 |
< |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10956 |
> |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10957 |
> |
# ...but if some path component already ends with the multilib dir we assume |
| 10958 |
> |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 10959 |
> |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 10960 |
> |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 10961 |
> |
lt_multi_os_dir= |
| 10962 |
> |
;; |
| 10963 |
> |
esac |
| 10964 |
|
for lt_sys_path in $lt_search_path_spec; do |
| 10965 |
< |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10966 |
< |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10967 |
< |
else |
| 10965 |
> |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 10966 |
> |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 10967 |
> |
elif test -n "$lt_multi_os_dir"; then |
| 10968 |
|
test -d "$lt_sys_path" && \ |
| 10969 |
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10970 |
|
fi |
| 10971 |
|
done |
| 10972 |
|
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10973 |
< |
BEGIN {RS=" "; FS="/|\n";} { |
| 10974 |
< |
lt_foo=""; |
| 10975 |
< |
lt_count=0; |
| 10973 |
> |
BEGIN {RS = " "; FS = "/|\n";} { |
| 10974 |
> |
lt_foo = ""; |
| 10975 |
> |
lt_count = 0; |
| 10976 |
|
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10977 |
|
if ($lt_i != "" && $lt_i != ".") { |
| 10978 |
|
if ($lt_i == "..") { |
| 10979 |
|
lt_count++; |
| 10980 |
|
} else { |
| 10981 |
|
if (lt_count == 0) { |
| 10982 |
< |
lt_foo="/" $lt_i lt_foo; |
| 10982 |
> |
lt_foo = "/" $lt_i lt_foo; |
| 10983 |
|
} else { |
| 10984 |
|
lt_count--; |
| 10985 |
|
} |
| 10993 |
|
# for these hosts. |
| 10994 |
|
case $host_os in |
| 10995 |
|
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10996 |
< |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10996 |
> |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 10997 |
|
esac |
| 10998 |
|
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10999 |
|
else |
| 11002 |
|
library_names_spec= |
| 11003 |
|
libname_spec='lib$name' |
| 11004 |
|
soname_spec= |
| 11005 |
< |
shrext_cmds=".so" |
| 11005 |
> |
shrext_cmds=.so |
| 11006 |
|
postinstall_cmds= |
| 11007 |
|
postuninstall_cmds= |
| 11008 |
|
finish_cmds= |
| 11019 |
|
# flags to be left without arguments |
| 11020 |
|
need_version=unknown |
| 11021 |
|
|
| 11022 |
+ |
|
| 11023 |
+ |
|
| 11024 |
|
case $host_os in |
| 11025 |
|
aix3*) |
| 11026 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11027 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11027 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 11028 |
|
shlibpath_var=LIBPATH |
| 11029 |
|
|
| 11030 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
| 11031 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11031 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11032 |
|
;; |
| 11033 |
|
|
| 11034 |
|
aix[4-9]*) |
| 11036 |
|
need_lib_prefix=no |
| 11037 |
|
need_version=no |
| 11038 |
|
hardcode_into_libs=yes |
| 11039 |
< |
if test "$host_cpu" = ia64; then |
| 11039 |
> |
if test ia64 = "$host_cpu"; then |
| 11040 |
|
# AIX 5 supports IA64 |
| 11041 |
< |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11041 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 11042 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11043 |
|
else |
| 11044 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
| 11045 |
|
# for dependence libraries. The import file would start with |
| 11046 |
< |
# the line `#! .'. This would cause the generated library to |
| 11047 |
< |
# depend on `.', always an invalid library. This was fixed in |
| 11046 |
> |
# the line '#! .'. This would cause the generated library to |
| 11047 |
> |
# depend on '.', always an invalid library. This was fixed in |
| 11048 |
|
# development snapshots of GCC prior to 3.0. |
| 11049 |
|
case $host_os in |
| 11050 |
|
aix4 | aix4.[01] | aix4.[01].*) |
| 11051 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11052 |
|
echo ' yes ' |
| 11053 |
< |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 11053 |
> |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 11054 |
|
: |
| 11055 |
|
else |
| 11056 |
|
can_build_shared=no |
| 11057 |
|
fi |
| 11058 |
|
;; |
| 11059 |
|
esac |
| 11060 |
< |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11060 |
> |
# Using Import Files as archive members, it is possible to support |
| 11061 |
> |
# filename-based versioning of shared library archives on AIX. While |
| 11062 |
> |
# this would work for both with and without runtime linking, it will |
| 11063 |
> |
# prevent static linking of such archives. So we do filename-based |
| 11064 |
> |
# shared library versioning with .so extension only, which is used |
| 11065 |
> |
# when both runtime linking and shared linking is enabled. |
| 11066 |
> |
# Unfortunately, runtime linking may impact performance, so we do |
| 11067 |
> |
# not want this to be the default eventually. Also, we use the |
| 11068 |
> |
# versioned .so libs for executables only if there is the -brtl |
| 11069 |
> |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 11070 |
> |
# To allow for filename-based versioning support, we need to create |
| 11071 |
> |
# libNAME.so.V as an archive file, containing: |
| 11072 |
> |
# *) an Import File, referring to the versioned filename of the |
| 11073 |
> |
# archive as well as the shared archive member, telling the |
| 11074 |
> |
# bitwidth (32 or 64) of that shared object, and providing the |
| 11075 |
> |
# list of exported symbols of that shared object, eventually |
| 11076 |
> |
# decorated with the 'weak' keyword |
| 11077 |
> |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
| 11078 |
> |
# it being seen by the linker. |
| 11079 |
> |
# At run time we better use the real file rather than another symlink, |
| 11080 |
> |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 11081 |
> |
|
| 11082 |
> |
case $with_aix_soname,$aix_use_runtimelinking in |
| 11083 |
> |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 11084 |
|
# soname into executable. Probably we can add versioning support to |
| 11085 |
|
# collect2, so additional links can be useful in future. |
| 11086 |
< |
if test "$aix_use_runtimelinking" = yes; then |
| 11086 |
> |
aix,yes) # traditional libtool |
| 11087 |
> |
dynamic_linker='AIX unversionable lib.so' |
| 11088 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11089 |
|
# instead of lib<name>.a to let people know that these are not |
| 11090 |
|
# typical AIX shared libraries. |
| 11091 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11092 |
< |
else |
| 11091 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11092 |
> |
;; |
| 11093 |
> |
aix,no) # traditional AIX only |
| 11094 |
> |
dynamic_linker='AIX lib.a(lib.so.V)' |
| 11095 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
| 11096 |
|
# and later when we are not doing run time linking. |
| 11097 |
< |
library_names_spec='${libname}${release}.a $libname.a' |
| 11098 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11099 |
< |
fi |
| 11097 |
> |
library_names_spec='$libname$release.a $libname.a' |
| 11098 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11099 |
> |
;; |
| 11100 |
> |
svr4,*) # full svr4 only |
| 11101 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 11102 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 11103 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 11104 |
> |
shlibpath_overrides_runpath=yes |
| 11105 |
> |
;; |
| 11106 |
> |
*,yes) # both, prefer svr4 |
| 11107 |
> |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 11108 |
> |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 11109 |
> |
# unpreferred sharedlib libNAME.a needs extra handling |
| 11110 |
> |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 11111 |
> |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 11112 |
> |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 11113 |
> |
shlibpath_overrides_runpath=yes |
| 11114 |
> |
;; |
| 11115 |
> |
*,no) # both, prefer aix |
| 11116 |
> |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 11117 |
> |
library_names_spec='$libname$release.a $libname.a' |
| 11118 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11119 |
> |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 11120 |
> |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 11121 |
> |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 11122 |
> |
;; |
| 11123 |
> |
esac |
| 11124 |
|
shlibpath_var=LIBPATH |
| 11125 |
|
fi |
| 11126 |
|
;; |
| 11130 |
|
powerpc) |
| 11131 |
|
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 11132 |
|
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 11133 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11133 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11134 |
|
;; |
| 11135 |
|
m68k) |
| 11136 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
| 11137 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11138 |
< |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 11138 |
> |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 11139 |
|
;; |
| 11140 |
|
esac |
| 11141 |
|
;; |
| 11142 |
|
|
| 11143 |
|
beos*) |
| 11144 |
< |
library_names_spec='${libname}${shared_ext}' |
| 11144 |
> |
library_names_spec='$libname$shared_ext' |
| 11145 |
|
dynamic_linker="$host_os ld.so" |
| 11146 |
|
shlibpath_var=LIBRARY_PATH |
| 11147 |
|
;; |
| 11149 |
|
bsdi[45]*) |
| 11150 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11151 |
|
need_version=no |
| 11152 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11153 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11152 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11153 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11154 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11155 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11156 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11162 |
|
|
| 11163 |
|
cygwin* | mingw* | pw32* | cegcc*) |
| 11164 |
|
version_type=windows |
| 11165 |
< |
shrext_cmds=".dll" |
| 11165 |
> |
shrext_cmds=.dll |
| 11166 |
|
need_version=no |
| 11167 |
|
need_lib_prefix=no |
| 11168 |
|
|
| 11171 |
|
# gcc |
| 11172 |
|
library_names_spec='$libname.dll.a' |
| 11173 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11174 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
| 11175 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 11174 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11175 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 11176 |
|
dldir=$destdir/`dirname \$dlpath`~ |
| 11177 |
|
test -d \$dldir || mkdir -p \$dldir~ |
| 11178 |
|
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 11188 |
|
case $host_os in |
| 11189 |
|
cygwin*) |
| 11190 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11191 |
< |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11191 |
> |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11192 |
|
|
| 11193 |
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 11194 |
|
;; |
| 11195 |
|
mingw* | cegcc*) |
| 11196 |
|
# MinGW DLLs use traditional 'lib' prefix |
| 11197 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11197 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11198 |
|
;; |
| 11199 |
|
pw32*) |
| 11200 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11201 |
< |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11201 |
> |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11202 |
|
;; |
| 11203 |
|
esac |
| 11204 |
|
dynamic_linker='Win32 ld.exe' |
| 11207 |
|
*,cl*) |
| 11208 |
|
# Native MSVC |
| 11209 |
|
libname_spec='$name' |
| 11210 |
< |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11211 |
< |
library_names_spec='${libname}.dll.lib' |
| 11210 |
> |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 11211 |
> |
library_names_spec='$libname.dll.lib' |
| 11212 |
|
|
| 11213 |
|
case $build_os in |
| 11214 |
|
mingw*) |
| 11235 |
|
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11236 |
|
;; |
| 11237 |
|
*) |
| 11238 |
< |
sys_lib_search_path_spec="$LIB" |
| 11238 |
> |
sys_lib_search_path_spec=$LIB |
| 11239 |
|
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 11240 |
|
# It is most probably a Windows format PATH. |
| 11241 |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11248 |
|
esac |
| 11249 |
|
|
| 11250 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11251 |
< |
postinstall_cmds='base_file=`basename \${file}`~ |
| 11252 |
< |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 11251 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11252 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 11253 |
|
dldir=$destdir/`dirname \$dlpath`~ |
| 11254 |
|
test -d \$dldir || mkdir -p \$dldir~ |
| 11255 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
| 11262 |
|
|
| 11263 |
|
*) |
| 11264 |
|
# Assume MSVC wrapper |
| 11265 |
< |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11265 |
> |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 11266 |
|
dynamic_linker='Win32 ld.exe' |
| 11267 |
|
;; |
| 11268 |
|
esac |
| 11275 |
|
version_type=darwin |
| 11276 |
|
need_lib_prefix=no |
| 11277 |
|
need_version=no |
| 11278 |
< |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11279 |
< |
soname_spec='${libname}${release}${major}$shared_ext' |
| 11278 |
> |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 11279 |
> |
soname_spec='$libname$release$major$shared_ext' |
| 11280 |
|
shlibpath_overrides_runpath=yes |
| 11281 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
| 11282 |
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 11289 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11290 |
|
need_lib_prefix=no |
| 11291 |
|
need_version=no |
| 11292 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11293 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11292 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11293 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11294 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11295 |
|
;; |
| 11296 |
|
|
| 11308 |
|
version_type=freebsd-$objformat |
| 11309 |
|
case $version_type in |
| 11310 |
|
freebsd-elf*) |
| 11311 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11311 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11312 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11313 |
|
need_version=no |
| 11314 |
|
need_lib_prefix=no |
| 11315 |
|
;; |
| 11316 |
|
freebsd-*) |
| 11317 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11317 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11318 |
|
need_version=yes |
| 11319 |
|
;; |
| 11320 |
|
esac |
| 11339 |
|
esac |
| 11340 |
|
;; |
| 11341 |
|
|
| 10791 |
– |
gnu*) |
| 10792 |
– |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10793 |
– |
need_lib_prefix=no |
| 10794 |
– |
need_version=no |
| 10795 |
– |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10796 |
– |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10797 |
– |
shlibpath_var=LD_LIBRARY_PATH |
| 10798 |
– |
shlibpath_overrides_runpath=no |
| 10799 |
– |
hardcode_into_libs=yes |
| 10800 |
– |
;; |
| 10801 |
– |
|
| 11342 |
|
haiku*) |
| 11343 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11344 |
|
need_lib_prefix=no |
| 11345 |
|
need_version=no |
| 11346 |
|
dynamic_linker="$host_os runtime_loader" |
| 11347 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11348 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11347 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11348 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11349 |
|
shlibpath_var=LIBRARY_PATH |
| 11350 |
< |
shlibpath_overrides_runpath=yes |
| 11350 |
> |
shlibpath_overrides_runpath=no |
| 11351 |
|
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 11352 |
|
hardcode_into_libs=yes |
| 11353 |
|
;; |
| 11365 |
|
dynamic_linker="$host_os dld.so" |
| 11366 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11367 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11368 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11369 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11370 |
< |
if test "X$HPUX_IA64_MODE" = X32; then |
| 11368 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11369 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11370 |
> |
if test 32 = "$HPUX_IA64_MODE"; then |
| 11371 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11372 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 11373 |
|
else |
| 11374 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11375 |
+ |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 11376 |
|
fi |
| 10835 |
– |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11377 |
|
;; |
| 11378 |
|
hppa*64*) |
| 11379 |
|
shrext_cmds='.sl' |
| 11381 |
|
dynamic_linker="$host_os dld.sl" |
| 11382 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11383 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11384 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11385 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11384 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11385 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11386 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11387 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11388 |
|
;; |
| 11391 |
|
dynamic_linker="$host_os dld.sl" |
| 11392 |
|
shlibpath_var=SHLIB_PATH |
| 11393 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11394 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11395 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11394 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11395 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11396 |
|
;; |
| 11397 |
|
esac |
| 11398 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 11405 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11406 |
|
need_lib_prefix=no |
| 11407 |
|
need_version=no |
| 11408 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11409 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11408 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11409 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11410 |
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11411 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11412 |
|
shlibpath_overrides_runpath=no |
| 11417 |
|
case $host_os in |
| 11418 |
|
nonstopux*) version_type=nonstopux ;; |
| 11419 |
|
*) |
| 11420 |
< |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11420 |
> |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 11421 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11422 |
|
else |
| 11423 |
|
version_type=irix |
| 11425 |
|
esac |
| 11426 |
|
need_lib_prefix=no |
| 11427 |
|
need_version=no |
| 11428 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11429 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11428 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11429 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 11430 |
|
case $host_os in |
| 11431 |
|
irix5* | nonstopux*) |
| 11432 |
|
libsuff= shlibsuff= |
| 11445 |
|
esac |
| 11446 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11447 |
|
shlibpath_overrides_runpath=no |
| 11448 |
< |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11449 |
< |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11448 |
> |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 11449 |
> |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 11450 |
|
hardcode_into_libs=yes |
| 11451 |
|
;; |
| 11452 |
|
|
| 11455 |
|
dynamic_linker=no |
| 11456 |
|
;; |
| 11457 |
|
|
| 11458 |
+ |
linux*android*) |
| 11459 |
+ |
version_type=none # Android doesn't support versioned libraries. |
| 11460 |
+ |
need_lib_prefix=no |
| 11461 |
+ |
need_version=no |
| 11462 |
+ |
library_names_spec='$libname$release$shared_ext' |
| 11463 |
+ |
soname_spec='$libname$release$shared_ext' |
| 11464 |
+ |
finish_cmds= |
| 11465 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11466 |
+ |
shlibpath_overrides_runpath=yes |
| 11467 |
+ |
|
| 11468 |
+ |
# This implies no fast_install, which is unacceptable. |
| 11469 |
+ |
# Some rework will be needed to allow for fast_install |
| 11470 |
+ |
# before this can be enabled. |
| 11471 |
+ |
hardcode_into_libs=yes |
| 11472 |
+ |
|
| 11473 |
+ |
dynamic_linker='Android linker' |
| 11474 |
+ |
# Don't embed -rpath directories since the linker doesn't support them. |
| 11475 |
+ |
hardcode_libdir_flag_spec='-L$libdir' |
| 11476 |
+ |
;; |
| 11477 |
+ |
|
| 11478 |
|
# This must be glibc/ELF. |
| 11479 |
< |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11479 |
> |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11480 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11481 |
|
need_lib_prefix=no |
| 11482 |
|
need_version=no |
| 11483 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11484 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11483 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11484 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11485 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11486 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11487 |
|
shlibpath_overrides_runpath=no |
| 11525 |
|
# before this can be enabled. |
| 11526 |
|
hardcode_into_libs=yes |
| 11527 |
|
|
| 11528 |
< |
# Append ld.so.conf contents to the search path |
| 11528 |
> |
# Ideally, we could use ldconfig to report *all* directores which are |
| 11529 |
> |
# searched for libraries, however this is still not possible. Aside from not |
| 11530 |
> |
# being certain /sbin/ldconfig is available, command |
| 11531 |
> |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 11532 |
> |
# even though it is searched at run-time. Try to do the best guess by |
| 11533 |
> |
# appending ld.so.conf contents (and includes) to the search path. |
| 11534 |
|
if test -f /etc/ld.so.conf; then |
| 11535 |
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 11536 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11545 |
|
dynamic_linker='GNU/Linux ld.so' |
| 11546 |
|
;; |
| 11547 |
|
|
| 11548 |
+ |
netbsdelf*-gnu) |
| 11549 |
+ |
version_type=linux |
| 11550 |
+ |
need_lib_prefix=no |
| 11551 |
+ |
need_version=no |
| 11552 |
+ |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11553 |
+ |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11554 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11555 |
+ |
shlibpath_overrides_runpath=no |
| 11556 |
+ |
hardcode_into_libs=yes |
| 11557 |
+ |
dynamic_linker='NetBSD ld.elf_so' |
| 11558 |
+ |
;; |
| 11559 |
+ |
|
| 11560 |
|
netbsd*) |
| 11561 |
|
version_type=sunos |
| 11562 |
|
need_lib_prefix=no |
| 11563 |
|
need_version=no |
| 11564 |
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11565 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11565 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11566 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11567 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
| 11568 |
|
else |
| 11569 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11570 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11569 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11570 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11571 |
|
dynamic_linker='NetBSD ld.elf_so' |
| 11572 |
|
fi |
| 11573 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11577 |
|
|
| 11578 |
|
newsos6) |
| 11579 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11580 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11580 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11581 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11582 |
|
shlibpath_overrides_runpath=yes |
| 11583 |
|
;; |
| 11586 |
|
version_type=qnx |
| 11587 |
|
need_lib_prefix=no |
| 11588 |
|
need_version=no |
| 11589 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11590 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11589 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11590 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11591 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11592 |
|
shlibpath_overrides_runpath=no |
| 11593 |
|
hardcode_into_libs=yes |
| 11594 |
|
dynamic_linker='ldqnx.so' |
| 11595 |
|
;; |
| 11596 |
|
|
| 11597 |
< |
openbsd*) |
| 11597 |
> |
openbsd* | bitrig*) |
| 11598 |
|
version_type=sunos |
| 11599 |
< |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 11599 |
> |
sys_lib_dlsearch_path_spec=/usr/lib |
| 11600 |
|
need_lib_prefix=no |
| 11601 |
< |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11602 |
< |
case $host_os in |
| 11025 |
< |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11026 |
< |
*) need_version=no ;; |
| 11027 |
< |
esac |
| 11028 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11029 |
< |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11030 |
< |
shlibpath_var=LD_LIBRARY_PATH |
| 11031 |
< |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11032 |
< |
case $host_os in |
| 11033 |
< |
openbsd2.[89] | openbsd2.[89].*) |
| 11034 |
< |
shlibpath_overrides_runpath=no |
| 11035 |
< |
;; |
| 11036 |
< |
*) |
| 11037 |
< |
shlibpath_overrides_runpath=yes |
| 11038 |
< |
;; |
| 11039 |
< |
esac |
| 11601 |
> |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 11602 |
> |
need_version=no |
| 11603 |
|
else |
| 11604 |
< |
shlibpath_overrides_runpath=yes |
| 11604 |
> |
need_version=yes |
| 11605 |
|
fi |
| 11606 |
+ |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11607 |
+ |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11608 |
+ |
shlibpath_var=LD_LIBRARY_PATH |
| 11609 |
+ |
shlibpath_overrides_runpath=yes |
| 11610 |
|
;; |
| 11611 |
|
|
| 11612 |
|
os2*) |
| 11613 |
|
libname_spec='$name' |
| 11614 |
< |
shrext_cmds=".dll" |
| 11614 |
> |
version_type=windows |
| 11615 |
> |
shrext_cmds=.dll |
| 11616 |
> |
need_version=no |
| 11617 |
|
need_lib_prefix=no |
| 11618 |
< |
library_names_spec='$libname${shared_ext} $libname.a' |
| 11618 |
> |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
| 11619 |
> |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 11620 |
> |
v=$($ECHO $release$versuffix | tr -d .-); |
| 11621 |
> |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 11622 |
> |
$ECHO $n$v`$shared_ext' |
| 11623 |
> |
library_names_spec='${libname}_dll.$libext' |
| 11624 |
|
dynamic_linker='OS/2 ld.exe' |
| 11625 |
< |
shlibpath_var=LIBPATH |
| 11625 |
> |
shlibpath_var=BEGINLIBPATH |
| 11626 |
> |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11627 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11628 |
> |
postinstall_cmds='base_file=`basename \$file`~ |
| 11629 |
> |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 11630 |
> |
dldir=$destdir/`dirname \$dlpath`~ |
| 11631 |
> |
test -d \$dldir || mkdir -p \$dldir~ |
| 11632 |
> |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 11633 |
> |
chmod a+x \$dldir/$dlname~ |
| 11634 |
> |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 11635 |
> |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 11636 |
> |
fi' |
| 11637 |
> |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 11638 |
> |
dlpath=$dir/\$dldll~ |
| 11639 |
> |
$RM \$dlpath' |
| 11640 |
|
;; |
| 11641 |
|
|
| 11642 |
|
osf3* | osf4* | osf5*) |
| 11643 |
|
version_type=osf |
| 11644 |
|
need_lib_prefix=no |
| 11645 |
|
need_version=no |
| 11646 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11647 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11646 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11647 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11648 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11649 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11650 |
< |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11650 |
> |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11651 |
|
;; |
| 11652 |
|
|
| 11653 |
|
rdos*) |
| 11658 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11659 |
|
need_lib_prefix=no |
| 11660 |
|
need_version=no |
| 11661 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11662 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11661 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11662 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11663 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11664 |
|
shlibpath_overrides_runpath=yes |
| 11665 |
|
hardcode_into_libs=yes |
| 11669 |
|
|
| 11670 |
|
sunos4*) |
| 11671 |
|
version_type=sunos |
| 11672 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11672 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 11673 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11674 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11675 |
|
shlibpath_overrides_runpath=yes |
| 11676 |
< |
if test "$with_gnu_ld" = yes; then |
| 11676 |
> |
if test yes = "$with_gnu_ld"; then |
| 11677 |
|
need_lib_prefix=no |
| 11678 |
|
fi |
| 11679 |
|
need_version=yes |
| 11681 |
|
|
| 11682 |
|
sysv4 | sysv4.3*) |
| 11683 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11684 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11685 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11684 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11685 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11686 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11687 |
|
case $host_vendor in |
| 11688 |
|
sni) |
| 11703 |
|
;; |
| 11704 |
|
|
| 11705 |
|
sysv4*MP*) |
| 11706 |
< |
if test -d /usr/nec ;then |
| 11706 |
> |
if test -d /usr/nec; then |
| 11707 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11708 |
< |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11709 |
< |
soname_spec='$libname${shared_ext}.$major' |
| 11708 |
> |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 11709 |
> |
soname_spec='$libname$shared_ext.$major' |
| 11710 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11711 |
|
fi |
| 11712 |
|
;; |
| 11713 |
|
|
| 11714 |
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11715 |
< |
version_type=freebsd-elf |
| 11715 |
> |
version_type=sco |
| 11716 |
|
need_lib_prefix=no |
| 11717 |
|
need_version=no |
| 11718 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11719 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11718 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 11719 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11720 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11721 |
|
shlibpath_overrides_runpath=yes |
| 11722 |
|
hardcode_into_libs=yes |
| 11723 |
< |
if test "$with_gnu_ld" = yes; then |
| 11723 |
> |
if test yes = "$with_gnu_ld"; then |
| 11724 |
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11725 |
|
else |
| 11726 |
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11738 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11739 |
|
need_lib_prefix=no |
| 11740 |
|
need_version=no |
| 11741 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11741 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11742 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11743 |
|
shlibpath_overrides_runpath=no |
| 11744 |
|
hardcode_into_libs=yes |
| 11746 |
|
|
| 11747 |
|
uts4*) |
| 11748 |
|
version_type=linux # correct to gnu/linux during the next big refactor |
| 11749 |
< |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11750 |
< |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11749 |
> |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11750 |
> |
soname_spec='$libname$release$shared_ext$major' |
| 11751 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 11752 |
|
;; |
| 11753 |
|
|
| 11757 |
|
esac |
| 11758 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11759 |
|
$as_echo "$dynamic_linker" >&6; } |
| 11760 |
< |
test "$dynamic_linker" = no && can_build_shared=no |
| 11760 |
> |
test no = "$dynamic_linker" && can_build_shared=no |
| 11761 |
|
|
| 11762 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11763 |
< |
if test "$GCC" = yes; then |
| 11763 |
> |
if test yes = "$GCC"; then |
| 11764 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11765 |
|
fi |
| 11766 |
|
|
| 11767 |
< |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11768 |
< |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11767 |
> |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 11768 |
> |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 11769 |
|
fi |
| 11770 |
< |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11771 |
< |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11770 |
> |
|
| 11771 |
> |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 11772 |
> |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 11773 |
|
fi |
| 11774 |
|
|
| 11775 |
+ |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 11776 |
+ |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 11777 |
+ |
|
| 11778 |
+ |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 11779 |
+ |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 11780 |
+ |
|
| 11781 |
+ |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 11782 |
+ |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 11783 |
+ |
|
| 11784 |
+ |
|
| 11785 |
+ |
|
| 11786 |
+ |
|
| 11787 |
+ |
|
| 11788 |
+ |
|
| 11789 |
|
|
| 11790 |
|
|
| 11791 |
|
|
| 11882 |
|
hardcode_action= |
| 11883 |
|
if test -n "$hardcode_libdir_flag_spec" || |
| 11884 |
|
test -n "$runpath_var" || |
| 11885 |
< |
test "X$hardcode_automatic" = "Xyes" ; then |
| 11885 |
> |
test yes = "$hardcode_automatic"; then |
| 11886 |
|
|
| 11887 |
|
# We can hardcode non-existent directories. |
| 11888 |
< |
if test "$hardcode_direct" != no && |
| 11888 |
> |
if test no != "$hardcode_direct" && |
| 11889 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11890 |
|
# have to relink, otherwise we might link with an installed library |
| 11891 |
|
# when we should be linking with a yet-to-be-installed one |
| 11892 |
< |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11893 |
< |
test "$hardcode_minus_L" != no; then |
| 11892 |
> |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 11893 |
> |
test no != "$hardcode_minus_L"; then |
| 11894 |
|
# Linking always hardcodes the temporary library directory. |
| 11895 |
|
hardcode_action=relink |
| 11896 |
|
else |
| 11905 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11906 |
|
$as_echo "$hardcode_action" >&6; } |
| 11907 |
|
|
| 11908 |
< |
if test "$hardcode_action" = relink || |
| 11909 |
< |
test "$inherit_rpath" = yes; then |
| 11908 |
> |
if test relink = "$hardcode_action" || |
| 11909 |
> |
test yes = "$inherit_rpath"; then |
| 11910 |
|
# Fast installation is not supported |
| 11911 |
|
enable_fast_install=no |
| 11912 |
< |
elif test "$shlibpath_overrides_runpath" = yes || |
| 11913 |
< |
test "$enable_shared" = no; then |
| 11912 |
> |
elif test yes = "$shlibpath_overrides_runpath" || |
| 11913 |
> |
test no = "$enable_shared"; then |
| 11914 |
|
# Fast installation is not necessary |
| 11915 |
|
enable_fast_install=needless |
| 11916 |
|
fi |
| 11920 |
|
|
| 11921 |
|
|
| 11922 |
|
|
| 11923 |
< |
if test "x$enable_dlopen" != xyes; then |
| 11923 |
> |
if test yes != "$enable_dlopen"; then |
| 11924 |
|
enable_dlopen=unknown |
| 11925 |
|
enable_dlopen_self=unknown |
| 11926 |
|
enable_dlopen_self_static=unknown |
| 11930 |
|
|
| 11931 |
|
case $host_os in |
| 11932 |
|
beos*) |
| 11933 |
< |
lt_cv_dlopen="load_add_on" |
| 11933 |
> |
lt_cv_dlopen=load_add_on |
| 11934 |
|
lt_cv_dlopen_libs= |
| 11935 |
|
lt_cv_dlopen_self=yes |
| 11936 |
|
;; |
| 11937 |
|
|
| 11938 |
|
mingw* | pw32* | cegcc*) |
| 11939 |
< |
lt_cv_dlopen="LoadLibrary" |
| 11939 |
> |
lt_cv_dlopen=LoadLibrary |
| 11940 |
|
lt_cv_dlopen_libs= |
| 11941 |
|
;; |
| 11942 |
|
|
| 11943 |
|
cygwin*) |
| 11944 |
< |
lt_cv_dlopen="dlopen" |
| 11944 |
> |
lt_cv_dlopen=dlopen |
| 11945 |
|
lt_cv_dlopen_libs= |
| 11946 |
|
;; |
| 11947 |
|
|
| 11948 |
|
darwin*) |
| 11949 |
< |
# if libdl is installed we need to link against it |
| 11949 |
> |
# if libdl is installed we need to link against it |
| 11950 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11951 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11952 |
|
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11984 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11985 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11986 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11987 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11987 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 11988 |
|
else |
| 11989 |
|
|
| 11990 |
< |
lt_cv_dlopen="dyld" |
| 11990 |
> |
lt_cv_dlopen=dyld |
| 11991 |
|
lt_cv_dlopen_libs= |
| 11992 |
|
lt_cv_dlopen_self=yes |
| 11993 |
|
|
| 11995 |
|
|
| 11996 |
|
;; |
| 11997 |
|
|
| 11998 |
+ |
tpf*) |
| 11999 |
+ |
# Don't try to run any link tests for TPF. We know it's impossible |
| 12000 |
+ |
# because TPF is a cross-compiler, and we know how we open DSOs. |
| 12001 |
+ |
lt_cv_dlopen=dlopen |
| 12002 |
+ |
lt_cv_dlopen_libs= |
| 12003 |
+ |
lt_cv_dlopen_self=no |
| 12004 |
+ |
;; |
| 12005 |
+ |
|
| 12006 |
|
*) |
| 12007 |
|
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 12008 |
|
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 12009 |
< |
lt_cv_dlopen="shl_load" |
| 12009 |
> |
lt_cv_dlopen=shl_load |
| 12010 |
|
else |
| 12011 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 12012 |
|
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 12045 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12046 |
|
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 12047 |
|
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 12048 |
< |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 12048 |
> |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 12049 |
|
else |
| 12050 |
|
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 12051 |
|
if test "x$ac_cv_func_dlopen" = xyes; then : |
| 12052 |
< |
lt_cv_dlopen="dlopen" |
| 12052 |
> |
lt_cv_dlopen=dlopen |
| 12053 |
|
else |
| 12054 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 12055 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 12088 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12089 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 12090 |
|
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 12091 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12091 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 12092 |
|
else |
| 12093 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12094 |
|
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 12127 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12128 |
|
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 12129 |
|
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 12130 |
< |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12130 |
> |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 12131 |
|
else |
| 12132 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 12133 |
|
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 12166 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12167 |
|
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 12168 |
|
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 12169 |
< |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 12169 |
> |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 12170 |
|
fi |
| 12171 |
|
|
| 12172 |
|
|
| 12187 |
|
;; |
| 12188 |
|
esac |
| 12189 |
|
|
| 12190 |
< |
if test "x$lt_cv_dlopen" != xno; then |
| 11580 |
< |
enable_dlopen=yes |
| 11581 |
< |
else |
| 12190 |
> |
if test no = "$lt_cv_dlopen"; then |
| 12191 |
|
enable_dlopen=no |
| 12192 |
+ |
else |
| 12193 |
+ |
enable_dlopen=yes |
| 12194 |
|
fi |
| 12195 |
|
|
| 12196 |
|
case $lt_cv_dlopen in |
| 12197 |
|
dlopen) |
| 12198 |
< |
save_CPPFLAGS="$CPPFLAGS" |
| 12199 |
< |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12198 |
> |
save_CPPFLAGS=$CPPFLAGS |
| 12199 |
> |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12200 |
|
|
| 12201 |
< |
save_LDFLAGS="$LDFLAGS" |
| 12201 |
> |
save_LDFLAGS=$LDFLAGS |
| 12202 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12203 |
|
|
| 12204 |
< |
save_LIBS="$LIBS" |
| 12204 |
> |
save_LIBS=$LIBS |
| 12205 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12206 |
|
|
| 12207 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 12209 |
|
if ${lt_cv_dlopen_self+:} false; then : |
| 12210 |
|
$as_echo_n "(cached) " >&6 |
| 12211 |
|
else |
| 12212 |
< |
if test "$cross_compiling" = yes; then : |
| 12212 |
> |
if test yes = "$cross_compiling"; then : |
| 12213 |
|
lt_cv_dlopen_self=cross |
| 12214 |
|
else |
| 12215 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12256 |
|
# endif |
| 12257 |
|
#endif |
| 12258 |
|
|
| 12259 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 12259 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 12260 |
|
correspondingly for the symbols needed. */ |
| 12261 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12261 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12262 |
|
int fnord () __attribute__((visibility("default"))); |
| 12263 |
|
#endif |
| 12264 |
|
|
| 12288 |
|
(eval $ac_link) 2>&5 |
| 12289 |
|
ac_status=$? |
| 12290 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12291 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12291 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 12292 |
|
(./conftest; exit; ) >&5 2>/dev/null |
| 12293 |
|
lt_status=$? |
| 12294 |
|
case x$lt_status in |
| 12308 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 12309 |
|
$as_echo "$lt_cv_dlopen_self" >&6; } |
| 12310 |
|
|
| 12311 |
< |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 12311 |
> |
if test yes = "$lt_cv_dlopen_self"; then |
| 12312 |
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 12313 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 12314 |
|
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 12315 |
|
if ${lt_cv_dlopen_self_static+:} false; then : |
| 12316 |
|
$as_echo_n "(cached) " >&6 |
| 12317 |
|
else |
| 12318 |
< |
if test "$cross_compiling" = yes; then : |
| 12318 |
> |
if test yes = "$cross_compiling"; then : |
| 12319 |
|
lt_cv_dlopen_self_static=cross |
| 12320 |
|
else |
| 12321 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12362 |
|
# endif |
| 12363 |
|
#endif |
| 12364 |
|
|
| 12365 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 12365 |
> |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 12366 |
|
correspondingly for the symbols needed. */ |
| 12367 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12367 |
> |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12368 |
|
int fnord () __attribute__((visibility("default"))); |
| 12369 |
|
#endif |
| 12370 |
|
|
| 12394 |
|
(eval $ac_link) 2>&5 |
| 12395 |
|
ac_status=$? |
| 12396 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12397 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12397 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 12398 |
|
(./conftest; exit; ) >&5 2>/dev/null |
| 12399 |
|
lt_status=$? |
| 12400 |
|
case x$lt_status in |
| 12415 |
|
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 12416 |
|
fi |
| 12417 |
|
|
| 12418 |
< |
CPPFLAGS="$save_CPPFLAGS" |
| 12419 |
< |
LDFLAGS="$save_LDFLAGS" |
| 12420 |
< |
LIBS="$save_LIBS" |
| 12418 |
> |
CPPFLAGS=$save_CPPFLAGS |
| 12419 |
> |
LDFLAGS=$save_LDFLAGS |
| 12420 |
> |
LIBS=$save_LIBS |
| 12421 |
|
;; |
| 12422 |
|
esac |
| 12423 |
|
|
| 12461 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
| 12462 |
|
case $host_os in |
| 12463 |
|
darwin*) |
| 12464 |
< |
if test -n "$STRIP" ; then |
| 12464 |
> |
if test -n "$STRIP"; then |
| 12465 |
|
striplib="$STRIP -x" |
| 12466 |
|
old_striplib="$STRIP -S" |
| 12467 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12489 |
|
|
| 12490 |
|
|
| 12491 |
|
|
| 12492 |
< |
# Report which library types will actually be built |
| 12492 |
> |
# Report what library types will actually be built |
| 12493 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 12494 |
|
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 12495 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 12497 |
|
|
| 12498 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 12499 |
|
$as_echo_n "checking whether to build shared libraries... " >&6; } |
| 12500 |
< |
test "$can_build_shared" = "no" && enable_shared=no |
| 12500 |
> |
test no = "$can_build_shared" && enable_shared=no |
| 12501 |
|
|
| 12502 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
| 12503 |
|
# are all built from PIC. |
| 12504 |
|
case $host_os in |
| 12505 |
|
aix3*) |
| 12506 |
< |
test "$enable_shared" = yes && enable_static=no |
| 12506 |
> |
test yes = "$enable_shared" && enable_static=no |
| 12507 |
|
if test -n "$RANLIB"; then |
| 12508 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12509 |
|
postinstall_cmds='$RANLIB $lib' |
| 12511 |
|
;; |
| 12512 |
|
|
| 12513 |
|
aix[4-9]*) |
| 12514 |
< |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12515 |
< |
test "$enable_shared" = yes && enable_static=no |
| 12514 |
> |
if test ia64 != "$host_cpu"; then |
| 12515 |
> |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 12516 |
> |
yes,aix,yes) ;; # shared object as lib.so file only |
| 12517 |
> |
yes,svr4,*) ;; # shared object as lib.so archive member only |
| 12518 |
> |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 12519 |
> |
esac |
| 12520 |
|
fi |
| 12521 |
|
;; |
| 12522 |
|
esac |
| 12526 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12527 |
|
$as_echo_n "checking whether to build static libraries... " >&6; } |
| 12528 |
|
# Make sure either enable_shared or enable_static is yes. |
| 12529 |
< |
test "$enable_shared" = yes || enable_static=yes |
| 12529 |
> |
test yes = "$enable_shared" || enable_static=yes |
| 12530 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12531 |
|
$as_echo "$enable_static" >&6; } |
| 12532 |
|
|
| 12540 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12541 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12542 |
|
|
| 12543 |
< |
CC="$lt_save_CC" |
| 12543 |
> |
CC=$lt_save_CC |
| 12544 |
|
|
| 12545 |
|
|
| 12546 |
|
|
| 12564 |
|
# Only expand once: |
| 12565 |
|
|
| 12566 |
|
|
| 12567 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| 12568 |
< |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| 12567 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 |
| 12568 |
> |
$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } |
| 12569 |
|
if ${libltdl_cv_shlibext+:} false; then : |
| 12570 |
|
$as_echo_n "(cached) " >&6 |
| 12571 |
|
else |
| 12592 |
|
_ACEOF |
| 12593 |
|
|
| 12594 |
|
fi |
| 12595 |
+ |
if test -n "$shared_archive_member_spec"; then |
| 12596 |
|
|
| 12597 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| 12598 |
< |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| 12597 |
> |
cat >>confdefs.h <<_ACEOF |
| 12598 |
> |
#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" |
| 12599 |
> |
_ACEOF |
| 12600 |
> |
|
| 12601 |
> |
fi |
| 12602 |
> |
|
| 12603 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 |
| 12604 |
> |
$as_echo_n "checking what variable specifies run-time module search path... " >&6; } |
| 12605 |
|
if ${lt_cv_module_path_var+:} false; then : |
| 12606 |
|
$as_echo_n "(cached) " >&6 |
| 12607 |
|
else |
| 12608 |
< |
lt_cv_module_path_var="$shlibpath_var" |
| 12608 |
> |
lt_cv_module_path_var=$shlibpath_var |
| 12609 |
|
fi |
| 12610 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| 12611 |
|
$as_echo "$lt_cv_module_path_var" >&6; } |
| 12622 |
|
if ${lt_cv_sys_dlsearch_path+:} false; then : |
| 12623 |
|
$as_echo_n "(cached) " >&6 |
| 12624 |
|
else |
| 12625 |
< |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 12625 |
> |
lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 12626 |
|
fi |
| 12627 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| 12628 |
|
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 12630 |
|
sys_dlsearch_path= |
| 12631 |
|
for dir in $lt_cv_sys_dlsearch_path; do |
| 12632 |
|
if test -z "$sys_dlsearch_path"; then |
| 12633 |
< |
sys_dlsearch_path="$dir" |
| 12633 |
> |
sys_dlsearch_path=$dir |
| 12634 |
|
else |
| 12635 |
< |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 12635 |
> |
sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir |
| 12636 |
|
fi |
| 12637 |
|
done |
| 12638 |
|
|
| 12652 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12653 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12654 |
|
|
| 12655 |
+ |
lt_dlload_save_LIBS=$LIBS |
| 12656 |
|
|
| 12657 |
|
LIBADD_DLOPEN= |
| 12658 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 12711 |
|
|
| 12712 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12713 |
|
|
| 12714 |
< |
if test "$ac_cv_search_dlopen" != "none required" ; then |
| 12715 |
< |
LIBADD_DLOPEN="-ldl" |
| 12714 |
> |
if test "$ac_cv_search_dlopen" != "none required"; then |
| 12715 |
> |
LIBADD_DLOPEN=-ldl |
| 12716 |
|
fi |
| 12717 |
< |
libltdl_cv_lib_dl_dlopen="yes" |
| 12717 |
> |
libltdl_cv_lib_dl_dlopen=yes |
| 12718 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12719 |
|
else |
| 12720 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12735 |
|
|
| 12736 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12737 |
|
|
| 12738 |
< |
libltdl_cv_func_dlopen="yes" |
| 12738 |
> |
libltdl_cv_func_dlopen=yes |
| 12739 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12740 |
|
else |
| 12741 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12778 |
|
|
| 12779 |
|
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12780 |
|
|
| 12781 |
< |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 12781 |
> |
LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes |
| 12782 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12783 |
|
fi |
| 12784 |
|
|
| 12787 |
|
conftest$ac_exeext conftest.$ac_ext |
| 12788 |
|
fi |
| 12789 |
|
|
| 12790 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 12790 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" |
| 12791 |
|
then |
| 12792 |
< |
lt_save_LIBS="$LIBS" |
| 12792 |
> |
lt_save_LIBS=$LIBS |
| 12793 |
|
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12794 |
|
for ac_func in dlerror |
| 12795 |
|
do : |
| 12802 |
|
fi |
| 12803 |
|
done |
| 12804 |
|
|
| 12805 |
< |
LIBS="$lt_save_LIBS" |
| 12805 |
> |
LIBS=$lt_save_LIBS |
| 12806 |
|
fi |
| 12807 |
|
|
| 12808 |
|
|
| 12855 |
|
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 12856 |
|
|
| 12857 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 12858 |
< |
LIBADD_SHL_LOAD="-ldld" |
| 12858 |
> |
LIBADD_SHL_LOAD=-ldld |
| 12859 |
|
fi |
| 12860 |
|
|
| 12861 |
|
fi |
| 12877 |
|
beos*) |
| 12878 |
|
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 12879 |
|
;; |
| 12880 |
< |
cygwin* | mingw* | os2* | pw32*) |
| 12880 |
> |
cygwin* | mingw* | pw32*) |
| 12881 |
|
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 12882 |
|
" |
| 12883 |
|
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
| 12955 |
|
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 12956 |
|
|
| 12957 |
|
|
| 12958 |
+ |
LIBS=$lt_dlload_save_LIBS |
| 12959 |
|
ac_ext=c |
| 12960 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 12961 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13010 |
|
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 13011 |
|
|
| 13012 |
|
|
| 13013 |
< |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 13014 |
< |
if test x"$libltdl_cv_func_dlopen" = xyes || |
| 13015 |
< |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 12392 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 13013 |
> |
if test yes = "$lt_cv_sys_symbol_underscore"; then |
| 13014 |
> |
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then |
| 13015 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 13016 |
|
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| 13017 |
|
if ${libltdl_cv_need_uscore+:} false; then : |
| 13018 |
|
$as_echo_n "(cached) " >&6 |
| 13019 |
|
else |
| 13020 |
|
libltdl_cv_need_uscore=unknown |
| 13021 |
< |
save_LIBS="$LIBS" |
| 13022 |
< |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 13023 |
< |
if test "$cross_compiling" = yes; then : |
| 13024 |
< |
libltdl_cv_need_uscore=cross |
| 12402 |
< |
else |
| 12403 |
< |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12404 |
< |
lt_status=$lt_dlunknown |
| 12405 |
< |
cat > conftest.$ac_ext <<_LT_EOF |
| 13021 |
> |
dlsym_uscore_save_LIBS=$LIBS |
| 13022 |
> |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 13023 |
> |
libname=conftmod # stay within 8.3 filename limits! |
| 13024 |
> |
cat >$libname.$ac_ext <<_LT_EOF |
| 13025 |
|
#line $LINENO "configure" |
| 13026 |
|
#include "confdefs.h" |
| 13027 |
+ |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 13028 |
+ |
correspondingly for the symbols needed. */ |
| 13029 |
+ |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13030 |
+ |
int fnord () __attribute__((visibility("default"))); |
| 13031 |
+ |
#endif |
| 13032 |
+ |
int fnord () { return 42; } |
| 13033 |
+ |
_LT_EOF |
| 13034 |
|
|
| 13035 |
+ |
# ltfn_module_cmds module_cmds |
| 13036 |
+ |
# Execute tilde-delimited MODULE_CMDS with environment primed for |
| 13037 |
+ |
# $module_cmds or $archive_cmds type content. |
| 13038 |
+ |
ltfn_module_cmds () |
| 13039 |
+ |
{( # subshell avoids polluting parent global environment |
| 13040 |
+ |
module_cmds_save_ifs=$IFS; IFS='~' |
| 13041 |
+ |
for cmd in $1; do |
| 13042 |
+ |
IFS=$module_cmds_save_ifs |
| 13043 |
+ |
libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext |
| 13044 |
+ |
rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. |
| 13045 |
+ |
major=; versuffix=; verstring=; deplibs= |
| 13046 |
+ |
ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= |
| 13047 |
+ |
eval $cmd |
| 13048 |
+ |
done |
| 13049 |
+ |
IFS=$module_cmds_save_ifs |
| 13050 |
+ |
)} |
| 13051 |
+ |
|
| 13052 |
+ |
# Compile a loadable module using libtool macro expansion results. |
| 13053 |
+ |
$CC $pic_flag -c $libname.$ac_ext |
| 13054 |
+ |
ltfn_module_cmds "${module_cmds:-$archive_cmds}" |
| 13055 |
+ |
|
| 13056 |
+ |
# Try to fetch fnord with dlsym(). |
| 13057 |
+ |
libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 |
| 13058 |
+ |
cat >conftest.$ac_ext <<_LT_EOF |
| 13059 |
+ |
#line $LINENO "configure" |
| 13060 |
+ |
#include "confdefs.h" |
| 13061 |
|
#if HAVE_DLFCN_H |
| 13062 |
|
#include <dlfcn.h> |
| 13063 |
|
#endif |
| 12412 |
– |
|
| 13064 |
|
#include <stdio.h> |
| 13065 |
< |
|
| 12415 |
< |
#ifdef RTLD_GLOBAL |
| 12416 |
< |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 12417 |
< |
#else |
| 13065 |
> |
#ifndef RTLD_GLOBAL |
| 13066 |
|
# ifdef DL_GLOBAL |
| 13067 |
< |
# define LT_DLGLOBAL DL_GLOBAL |
| 13067 |
> |
# define RTLD_GLOBAL DL_GLOBAL |
| 13068 |
|
# else |
| 13069 |
< |
# define LT_DLGLOBAL 0 |
| 13069 |
> |
# define RTLD_GLOBAL 0 |
| 13070 |
|
# endif |
| 13071 |
|
#endif |
| 13072 |
< |
|
| 13073 |
< |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13074 |
< |
find out it does not work in some platform. */ |
| 12427 |
< |
#ifndef LT_DLLAZY_OR_NOW |
| 12428 |
< |
# ifdef RTLD_LAZY |
| 12429 |
< |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13072 |
> |
#ifndef RTLD_NOW |
| 13073 |
> |
# ifdef DL_NOW |
| 13074 |
> |
# define RTLD_NOW DL_NOW |
| 13075 |
|
# else |
| 13076 |
< |
# ifdef DL_LAZY |
| 12432 |
< |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 12433 |
< |
# else |
| 12434 |
< |
# ifdef RTLD_NOW |
| 12435 |
< |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12436 |
< |
# else |
| 12437 |
< |
# ifdef DL_NOW |
| 12438 |
< |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 12439 |
< |
# else |
| 12440 |
< |
# define LT_DLLAZY_OR_NOW 0 |
| 12441 |
< |
# endif |
| 12442 |
< |
# endif |
| 12443 |
< |
# endif |
| 13076 |
> |
# define RTLD_NOW 0 |
| 13077 |
|
# endif |
| 13078 |
|
#endif |
| 13079 |
< |
|
| 13080 |
< |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 13081 |
< |
correspondingly for the symbols needed. */ |
| 13082 |
< |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13083 |
< |
int fnord () __attribute__((visibility("default"))); |
| 13084 |
< |
#endif |
| 13085 |
< |
|
| 13086 |
< |
int fnord () { return 42; } |
| 13087 |
< |
int main () |
| 12455 |
< |
{ |
| 12456 |
< |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12457 |
< |
int status = $lt_dlunknown; |
| 12458 |
< |
|
| 12459 |
< |
if (self) |
| 12460 |
< |
{ |
| 12461 |
< |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13079 |
> |
int main () { |
| 13080 |
> |
void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); |
| 13081 |
> |
int status = $libltdl_dlunknown; |
| 13082 |
> |
if (handle) { |
| 13083 |
> |
if (dlsym (handle, "fnord")) |
| 13084 |
> |
status = $libltdl_dlnouscore; |
| 13085 |
> |
else { |
| 13086 |
> |
if (dlsym (handle, "_fnord")) |
| 13087 |
> |
status = $libltdl_dluscore; |
| 13088 |
|
else |
| 13089 |
< |
{ |
| 12464 |
< |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12465 |
< |
else puts (dlerror ()); |
| 12466 |
< |
} |
| 12467 |
< |
/* dlclose (self); */ |
| 13089 |
> |
puts (dlerror ()); |
| 13090 |
|
} |
| 13091 |
< |
else |
| 13091 |
> |
dlclose (handle); |
| 13092 |
> |
} else |
| 13093 |
|
puts (dlerror ()); |
| 12471 |
– |
|
| 13094 |
|
return status; |
| 13095 |
|
} |
| 13096 |
|
_LT_EOF |
| 13097 |
< |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13097 |
> |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13098 |
|
(eval $ac_link) 2>&5 |
| 13099 |
|
ac_status=$? |
| 13100 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13101 |
< |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13102 |
< |
(./conftest; exit; ) >&5 2>/dev/null |
| 13103 |
< |
lt_status=$? |
| 13104 |
< |
case x$lt_status in |
| 13105 |
< |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 13106 |
< |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 13107 |
< |
x$lt_dlunknown|x*) ;; |
| 13108 |
< |
esac |
| 13109 |
< |
else : |
| 13110 |
< |
# compilation failed |
| 13111 |
< |
|
| 12490 |
< |
fi |
| 12491 |
< |
fi |
| 12492 |
< |
rm -fr conftest* |
| 12493 |
< |
|
| 12494 |
< |
LIBS="$save_LIBS" |
| 13101 |
> |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 13102 |
> |
(./conftest; exit; ) >&5 2>/dev/null |
| 13103 |
> |
libltdl_status=$? |
| 13104 |
> |
case x$libltdl_status in |
| 13105 |
> |
x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; |
| 13106 |
> |
x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; |
| 13107 |
> |
x*) libltdl_cv_need_uscore=unknown ;; |
| 13108 |
> |
esac |
| 13109 |
> |
fi |
| 13110 |
> |
rm -rf conftest* $libname* |
| 13111 |
> |
LIBS=$dlsym_uscore_save_LIBS |
| 13112 |
|
|
| 13113 |
|
fi |
| 13114 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 13116 |
|
fi |
| 13117 |
|
fi |
| 13118 |
|
|
| 13119 |
< |
if test x"$libltdl_cv_need_uscore" = xyes; then |
| 13119 |
> |
if test yes = "$libltdl_cv_need_uscore"; then |
| 13120 |
|
|
| 13121 |
|
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
| 13122 |
|
|
| 13135 |
|
case $host_os in |
| 13136 |
|
aix3*|aix4.1.*|aix4.2.*) |
| 13137 |
|
# Unknown whether this is true for these versions of AIX, but |
| 13138 |
< |
# we want this `case' here to explicitly catch those versions. |
| 13138 |
> |
# we want this 'case' here to explicitly catch those versions. |
| 13139 |
|
lt_cv_sys_dlopen_deplibs=unknown |
| 13140 |
|
;; |
| 13141 |
|
aix[4-9]*) |
| 13148 |
|
;; |
| 13149 |
|
esac |
| 13150 |
|
;; |
| 13151 |
+ |
bitrig*) |
| 13152 |
+ |
lt_cv_sys_dlopen_deplibs=yes |
| 13153 |
+ |
;; |
| 13154 |
|
darwin*) |
| 13155 |
|
# Assuming the user has installed a libdl from somewhere, this is true |
| 13156 |
|
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 13179 |
|
# at 6.2 and later dlopen does load deplibs. |
| 13180 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13181 |
|
;; |
| 13182 |
< |
netbsd*) |
| 13182 |
> |
netbsd* | netbsdelf*-gnu) |
| 13183 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13184 |
|
;; |
| 13185 |
|
openbsd*) |
| 13188 |
|
osf[1234]*) |
| 13189 |
|
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 13190 |
|
# it did *not* use an RPATH in a shared library to find objects the |
| 13191 |
< |
# library depends on, so we explicitly say `no'. |
| 13191 |
> |
# library depends on, so we explicitly say 'no'. |
| 13192 |
|
lt_cv_sys_dlopen_deplibs=no |
| 13193 |
|
;; |
| 13194 |
|
osf5.0|osf5.0a|osf5.1) |
| 13197 |
|
# that the library depends on, but there's no easy way to know if that |
| 13198 |
|
# patch is installed. Since this is the case, all we can really |
| 13199 |
|
# say is unknown -- it depends on the patch being installed. If |
| 13200 |
< |
# it is, this changes to `yes'. Without it, it would be `no'. |
| 13200 |
> |
# it is, this changes to 'yes'. Without it, it would be 'no'. |
| 13201 |
|
lt_cv_sys_dlopen_deplibs=unknown |
| 13202 |
|
;; |
| 13203 |
|
osf*) |
| 13204 |
|
# the two cases above should catch all versions of osf <= 5.1. Read |
| 13205 |
|
# the comments above for what we know about them. |
| 13206 |
|
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 13207 |
< |
# is used to find them so we can finally say `yes'. |
| 13207 |
> |
# is used to find them so we can finally say 'yes'. |
| 13208 |
|
lt_cv_sys_dlopen_deplibs=yes |
| 13209 |
|
;; |
| 13210 |
|
qnx*) |
| 13221 |
|
fi |
| 13222 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 13223 |
|
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 13224 |
< |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 13224 |
> |
if test yes != "$lt_cv_sys_dlopen_deplibs"; then |
| 13225 |
|
|
| 13226 |
|
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| 13227 |
|
|
| 13228 |
|
fi |
| 13229 |
|
|
| 12610 |
– |
: |
| 13230 |
|
|
| 13231 |
|
for ac_header in argz.h |
| 13232 |
|
do : |
| 13263 |
|
fi |
| 13264 |
|
|
| 13265 |
|
|
| 13266 |
< |
ARGZ_H= |
| 13266 |
> |
LT_ARGZ_H= |
| 13267 |
|
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 13268 |
|
argz_next argz_stringify |
| 13269 |
|
do : |
| 13275 |
|
_ACEOF |
| 13276 |
|
|
| 13277 |
|
else |
| 13278 |
< |
ARGZ_H=argz.h; |
| 13278 |
> |
LT_ARGZ_H=lt__argz.h; |
| 13279 |
|
|
| 13280 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 13280 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
| 13281 |
|
|
| 13282 |
|
fi |
| 13283 |
|
done |
| 13284 |
|
|
| 13285 |
|
|
| 13286 |
< |
if test -z "$ARGZ_H"; then : |
| 13286 |
> |
if test -z "$LT_ARGZ_H"; then : |
| 13287 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| 13288 |
|
$as_echo_n "checking if argz actually works... " >&6; } |
| 13289 |
|
if ${lt_cv_sys_argz_works+:} false; then : |
| 13292 |
|
case $host_os in #( |
| 13293 |
|
*cygwin*) |
| 13294 |
|
lt_cv_sys_argz_works=no |
| 13295 |
< |
if test "$cross_compiling" != no; then |
| 13295 |
> |
if test no != "$cross_compiling"; then |
| 13296 |
|
lt_cv_sys_argz_works="guessing no" |
| 13297 |
|
else |
| 13298 |
|
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 13303 |
|
lt_os_major=${2-0} |
| 13304 |
|
lt_os_minor=${3-0} |
| 13305 |
|
lt_os_micro=${4-0} |
| 13306 |
< |
if test "$lt_os_major" -gt 1 \ |
| 13307 |
< |
|| { test "$lt_os_major" -eq 1 \ |
| 13308 |
< |
&& { test "$lt_os_minor" -gt 5 \ |
| 13309 |
< |
|| { test "$lt_os_minor" -eq 5 \ |
| 13310 |
< |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
| 13306 |
> |
if test 1 -lt "$lt_os_major" \ |
| 13307 |
> |
|| { test 1 -eq "$lt_os_major" \ |
| 13308 |
> |
&& { test 5 -lt "$lt_os_minor" \ |
| 13309 |
> |
|| { test 5 -eq "$lt_os_minor" \ |
| 13310 |
> |
&& test 24 -lt "$lt_os_micro"; }; }; }; then |
| 13311 |
|
lt_cv_sys_argz_works=yes |
| 13312 |
|
fi |
| 13313 |
|
fi |
| 13317 |
|
fi |
| 13318 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| 13319 |
|
$as_echo "$lt_cv_sys_argz_works" >&6; } |
| 13320 |
< |
if test "$lt_cv_sys_argz_works" = yes; then : |
| 13320 |
> |
if test yes = "$lt_cv_sys_argz_works"; then : |
| 13321 |
|
|
| 13322 |
|
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| 13323 |
|
|
| 13324 |
|
else |
| 13325 |
< |
ARGZ_H=argz.h |
| 13325 |
> |
LT_ARGZ_H=lt__argz.h |
| 13326 |
|
|
| 13327 |
|
|
| 13328 |
< |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 13328 |
> |
_LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
| 13329 |
|
|
| 13330 |
|
fi |
| 13331 |
|
fi |
| 13346 |
|
fi |
| 13347 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 13348 |
|
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 13349 |
< |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 13349 |
> |
if test yes = "$libltdl_cv_preloaded_symbols"; then |
| 13350 |
|
|
| 13351 |
|
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| 13352 |
|
|
| 13370 |
|
fi |
| 13371 |
|
|
| 13372 |
|
|
| 13373 |
< |
if test "x$with_included_ltdl" != xyes; then |
| 13373 |
> |
if test yes != "$with_included_ltdl"; then |
| 13374 |
|
# We are not being forced to use the included libltdl sources, so |
| 13375 |
|
# decide whether there is a useful installed version we can use. |
| 13376 |
|
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| 13446 |
|
if test -n "$with_ltdl_include"; then |
| 13447 |
|
if test -f "$with_ltdl_include/ltdl.h"; then : |
| 13448 |
|
else |
| 13449 |
< |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| 13449 |
> |
as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5 |
| 13450 |
|
fi |
| 13451 |
|
else |
| 13452 |
|
with_ltdl_include=no |
| 13462 |
|
if test -n "$with_ltdl_lib"; then |
| 13463 |
|
if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 13464 |
|
else |
| 13465 |
< |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| 13465 |
> |
as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5 |
| 13466 |
|
fi |
| 13467 |
|
else |
| 13468 |
|
with_ltdl_lib=no |
| 13475 |
|
"") enable_ltdl_convenience=yes |
| 13476 |
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 13477 |
|
esac |
| 13478 |
< |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 13478 |
> |
LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 13479 |
|
LTDLDEPS=$LIBLTDL |
| 13480 |
< |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 13480 |
> |
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 13481 |
|
|
| 13482 |
|
|
| 13483 |
|
|
| 13484 |
|
|
| 13485 |
|
|
| 13486 |
|
# For backwards non-gettext consistent compatibility... |
| 13487 |
< |
INCLTDL="$LTDLINCL" |
| 13487 |
> |
INCLTDL=$LTDLINCL |
| 13488 |
|
|
| 13489 |
|
|
| 13490 |
|
;; |
| 13499 |
|
LTDLINCL= |
| 13500 |
|
;; |
| 13501 |
|
,no*,no,*) |
| 13502 |
< |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| 13502 |
> |
as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| 13503 |
|
;; |
| 13504 |
|
*) with_included_ltdl=no |
| 13505 |
|
LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 13506 |
|
LTDLDEPS= |
| 13507 |
< |
LTDLINCL="-I$with_ltdl_include" |
| 13507 |
> |
LTDLINCL=-I$with_ltdl_include |
| 13508 |
|
;; |
| 13509 |
|
esac |
| 13510 |
< |
INCLTDL="$LTDLINCL" |
| 13510 |
> |
INCLTDL=$LTDLINCL |
| 13511 |
|
|
| 13512 |
|
# Report our decision... |
| 13513 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| 13527 |
|
fi |
| 13528 |
|
|
| 13529 |
|
|
| 13530 |
< |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 13530 |
> |
case ,$enable_ltdl_install,$enable_ltdl_convenience in |
| 13531 |
|
*yes*) ;; |
| 13532 |
|
*) enable_ltdl_convenience=yes ;; |
| 13533 |
|
esac |
| 13534 |
|
|
| 13535 |
< |
if test x"${enable_ltdl_install-no}" != xno; then |
| 13535 |
> |
if test no != "${enable_ltdl_install-no}"; then |
| 13536 |
|
INSTALL_LTDL_TRUE= |
| 13537 |
|
INSTALL_LTDL_FALSE='#' |
| 13538 |
|
else |
| 13540 |
|
INSTALL_LTDL_FALSE= |
| 13541 |
|
fi |
| 13542 |
|
|
| 13543 |
< |
if test x"${enable_ltdl_convenience-no}" != xno; then |
| 13543 |
> |
if test no != "${enable_ltdl_convenience-no}"; then |
| 13544 |
|
CONVENIENCE_LTDL_TRUE= |
| 13545 |
|
CONVENIENCE_LTDL_FALSE='#' |
| 13546 |
|
else |
| 13642 |
|
|
| 13643 |
|
# Checks for libraries. |
| 13644 |
|
|
| 13645 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 13646 |
< |
$as_echo_n "checking for library containing socket... " >&6; } |
| 13647 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13645 |
> |
|
| 13646 |
> |
if test "X$CC" != "X"; then |
| 13647 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5 |
| 13648 |
> |
$as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; } |
| 13649 |
> |
if ${ssp_cv_cc+:} false; then : |
| 13650 |
> |
$as_echo_n "(cached) " >&6 |
| 13651 |
> |
else |
| 13652 |
> |
ssp_old_cflags="$CFLAGS" |
| 13653 |
> |
CFLAGS="$CFLAGS -fstack-protector-strong" |
| 13654 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13655 |
> |
/* end confdefs.h. */ |
| 13656 |
> |
|
| 13657 |
> |
int |
| 13658 |
> |
main () |
| 13659 |
> |
{ |
| 13660 |
> |
|
| 13661 |
> |
; |
| 13662 |
> |
return 0; |
| 13663 |
> |
} |
| 13664 |
> |
_ACEOF |
| 13665 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13666 |
> |
ssp_cv_cc=yes |
| 13667 |
> |
else |
| 13668 |
> |
ssp_cv_cc=no |
| 13669 |
> |
fi |
| 13670 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13671 |
> |
CFLAGS="$ssp_old_cflags" |
| 13672 |
> |
|
| 13673 |
> |
fi |
| 13674 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
| 13675 |
> |
$as_echo "$ssp_cv_cc" >&6; } |
| 13676 |
> |
if test $ssp_cv_cc = yes; then |
| 13677 |
> |
CFLAGS="$CFLAGS -fstack-protector-strong" |
| 13678 |
> |
|
| 13679 |
> |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
| 13680 |
> |
|
| 13681 |
> |
else |
| 13682 |
> |
unset ssp_cv_cc |
| 13683 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 |
| 13684 |
> |
$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } |
| 13685 |
> |
if ${ssp_cv_cc+:} false; then : |
| 13686 |
> |
$as_echo_n "(cached) " >&6 |
| 13687 |
> |
else |
| 13688 |
> |
ssp_old_cflags="$CFLAGS" |
| 13689 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
| 13690 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13691 |
> |
/* end confdefs.h. */ |
| 13692 |
> |
|
| 13693 |
> |
int |
| 13694 |
> |
main () |
| 13695 |
> |
{ |
| 13696 |
> |
|
| 13697 |
> |
; |
| 13698 |
> |
return 0; |
| 13699 |
> |
} |
| 13700 |
> |
_ACEOF |
| 13701 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13702 |
> |
ssp_cv_cc=yes |
| 13703 |
> |
else |
| 13704 |
> |
ssp_cv_cc=no |
| 13705 |
> |
fi |
| 13706 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13707 |
> |
CFLAGS="$ssp_old_cflags" |
| 13708 |
> |
|
| 13709 |
> |
fi |
| 13710 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
| 13711 |
> |
$as_echo "$ssp_cv_cc" >&6; } |
| 13712 |
> |
if test $ssp_cv_cc = yes; then |
| 13713 |
> |
CFLAGS="$CFLAGS -fstack-protector" |
| 13714 |
> |
|
| 13715 |
> |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
| 13716 |
> |
|
| 13717 |
> |
fi |
| 13718 |
> |
fi |
| 13719 |
> |
fi |
| 13720 |
> |
|
| 13721 |
> |
|
| 13722 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 |
| 13723 |
> |
$as_echo_n "checking whether libssp exists... " >&6; } |
| 13724 |
> |
if ${ssp_cv_lib+:} false; then : |
| 13725 |
> |
$as_echo_n "(cached) " >&6 |
| 13726 |
> |
else |
| 13727 |
> |
ssp_old_libs="$LIBS" |
| 13728 |
> |
LIBS="$LIBS -lssp" |
| 13729 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13730 |
> |
/* end confdefs.h. */ |
| 13731 |
> |
|
| 13732 |
> |
int |
| 13733 |
> |
main () |
| 13734 |
> |
{ |
| 13735 |
> |
|
| 13736 |
> |
; |
| 13737 |
> |
return 0; |
| 13738 |
> |
} |
| 13739 |
> |
_ACEOF |
| 13740 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 13741 |
> |
ssp_cv_lib=yes |
| 13742 |
> |
else |
| 13743 |
> |
ssp_cv_lib=no |
| 13744 |
> |
fi |
| 13745 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 13746 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 13747 |
> |
LIBS="$ssp_old_libs" |
| 13748 |
> |
|
| 13749 |
> |
fi |
| 13750 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 |
| 13751 |
> |
$as_echo "$ssp_cv_lib" >&6; } |
| 13752 |
> |
if test $ssp_cv_lib = yes; then |
| 13753 |
> |
LIBS="$LIBS -lssp" |
| 13754 |
> |
fi |
| 13755 |
> |
|
| 13756 |
> |
|
| 13757 |
> |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
| 13758 |
> |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
| 13759 |
> |
|
| 13760 |
> |
else |
| 13761 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
| 13762 |
> |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
| 13763 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13764 |
|
$as_echo_n "(cached) " >&6 |
| 13765 |
|
else |
| 13766 |
|
ac_func_search_save_LIBS=$LIBS |
| 13773 |
|
#ifdef __cplusplus |
| 13774 |
|
extern "C" |
| 13775 |
|
#endif |
| 13776 |
< |
char socket (); |
| 13776 |
> |
char getaddrinfo (); |
| 13777 |
|
int |
| 13778 |
|
main () |
| 13779 |
|
{ |
| 13780 |
< |
return socket (); |
| 13780 |
> |
return getaddrinfo (); |
| 13781 |
|
; |
| 13782 |
|
return 0; |
| 13783 |
|
} |
| 13784 |
|
_ACEOF |
| 13785 |
< |
for ac_lib in '' socket; do |
| 13785 |
> |
for ac_lib in '' nsl; do |
| 13786 |
|
if test -z "$ac_lib"; then |
| 13787 |
|
ac_res="none required" |
| 13788 |
|
else |
| 13790 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13791 |
|
fi |
| 13792 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13793 |
< |
ac_cv_search_socket=$ac_res |
| 13793 |
> |
ac_cv_search_getaddrinfo=$ac_res |
| 13794 |
|
fi |
| 13795 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13796 |
|
conftest$ac_exeext |
| 13797 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13797 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13798 |
|
break |
| 13799 |
|
fi |
| 13800 |
|
done |
| 13801 |
< |
if ${ac_cv_search_socket+:} false; then : |
| 13801 |
> |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13802 |
|
|
| 13803 |
|
else |
| 13804 |
< |
ac_cv_search_socket=no |
| 13804 |
> |
ac_cv_search_getaddrinfo=no |
| 13805 |
|
fi |
| 13806 |
|
rm conftest.$ac_ext |
| 13807 |
|
LIBS=$ac_func_search_save_LIBS |
| 13808 |
|
fi |
| 13809 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 13810 |
< |
$as_echo "$ac_cv_search_socket" >&6; } |
| 13811 |
< |
ac_res=$ac_cv_search_socket |
| 13809 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
| 13810 |
> |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
| 13811 |
> |
ac_res=$ac_cv_search_getaddrinfo |
| 13812 |
|
if test "$ac_res" != no; then : |
| 13813 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13814 |
|
|
| 13080 |
– |
else |
| 13081 |
– |
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13815 |
|
fi |
| 13816 |
|
|
| 13817 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
| 13818 |
< |
$as_echo_n "checking for library containing inet_ntoa... " >&6; } |
| 13819 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13817 |
> |
fi |
| 13818 |
> |
|
| 13819 |
> |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 13820 |
> |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
| 13821 |
> |
|
| 13822 |
> |
else |
| 13823 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
| 13824 |
> |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
| 13825 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13826 |
|
$as_echo_n "(cached) " >&6 |
| 13827 |
|
else |
| 13828 |
|
ac_func_search_save_LIBS=$LIBS |
| 13835 |
|
#ifdef __cplusplus |
| 13836 |
|
extern "C" |
| 13837 |
|
#endif |
| 13838 |
< |
char inet_ntoa (); |
| 13838 |
> |
char getnameinfo (); |
| 13839 |
|
int |
| 13840 |
|
main () |
| 13841 |
|
{ |
| 13842 |
< |
return inet_ntoa (); |
| 13842 |
> |
return getnameinfo (); |
| 13843 |
|
; |
| 13844 |
|
return 0; |
| 13845 |
|
} |
| 13852 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13853 |
|
fi |
| 13854 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13855 |
< |
ac_cv_search_inet_ntoa=$ac_res |
| 13855 |
> |
ac_cv_search_getnameinfo=$ac_res |
| 13856 |
|
fi |
| 13857 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13858 |
|
conftest$ac_exeext |
| 13859 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13859 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13860 |
|
break |
| 13861 |
|
fi |
| 13862 |
|
done |
| 13863 |
< |
if ${ac_cv_search_inet_ntoa+:} false; then : |
| 13863 |
> |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13864 |
|
|
| 13865 |
|
else |
| 13866 |
< |
ac_cv_search_inet_ntoa=no |
| 13866 |
> |
ac_cv_search_getnameinfo=no |
| 13867 |
|
fi |
| 13868 |
|
rm conftest.$ac_ext |
| 13869 |
|
LIBS=$ac_func_search_save_LIBS |
| 13870 |
|
fi |
| 13871 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
| 13872 |
< |
$as_echo "$ac_cv_search_inet_ntoa" >&6; } |
| 13873 |
< |
ac_res=$ac_cv_search_inet_ntoa |
| 13871 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
| 13872 |
> |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
| 13873 |
> |
ac_res=$ac_cv_search_getnameinfo |
| 13874 |
|
if test "$ac_res" != no; then : |
| 13875 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13876 |
|
|
| 13877 |
|
fi |
| 13878 |
|
|
| 13879 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
| 13880 |
< |
$as_echo_n "checking for library containing inet_aton... " >&6; } |
| 13881 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13879 |
> |
fi |
| 13880 |
> |
|
| 13881 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 13882 |
> |
$as_echo_n "checking for library containing socket... " >&6; } |
| 13883 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13884 |
|
$as_echo_n "(cached) " >&6 |
| 13885 |
|
else |
| 13886 |
|
ac_func_search_save_LIBS=$LIBS |
| 13893 |
|
#ifdef __cplusplus |
| 13894 |
|
extern "C" |
| 13895 |
|
#endif |
| 13896 |
< |
char inet_aton (); |
| 13896 |
> |
char socket (); |
| 13897 |
|
int |
| 13898 |
|
main () |
| 13899 |
|
{ |
| 13900 |
< |
return inet_aton (); |
| 13900 |
> |
return socket (); |
| 13901 |
|
; |
| 13902 |
|
return 0; |
| 13903 |
|
} |
| 13904 |
|
_ACEOF |
| 13905 |
< |
for ac_lib in '' resolv; do |
| 13905 |
> |
for ac_lib in '' socket; do |
| 13906 |
|
if test -z "$ac_lib"; then |
| 13907 |
|
ac_res="none required" |
| 13908 |
|
else |
| 13910 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13911 |
|
fi |
| 13912 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 13913 |
< |
ac_cv_search_inet_aton=$ac_res |
| 13913 |
> |
ac_cv_search_socket=$ac_res |
| 13914 |
|
fi |
| 13915 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 13916 |
|
conftest$ac_exeext |
| 13917 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13917 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13918 |
|
break |
| 13919 |
|
fi |
| 13920 |
|
done |
| 13921 |
< |
if ${ac_cv_search_inet_aton+:} false; then : |
| 13921 |
> |
if ${ac_cv_search_socket+:} false; then : |
| 13922 |
|
|
| 13923 |
|
else |
| 13924 |
< |
ac_cv_search_inet_aton=no |
| 13924 |
> |
ac_cv_search_socket=no |
| 13925 |
|
fi |
| 13926 |
|
rm conftest.$ac_ext |
| 13927 |
|
LIBS=$ac_func_search_save_LIBS |
| 13928 |
|
fi |
| 13929 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
| 13930 |
< |
$as_echo "$ac_cv_search_inet_aton" >&6; } |
| 13931 |
< |
ac_res=$ac_cv_search_inet_aton |
| 13929 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 13930 |
> |
$as_echo "$ac_cv_search_socket" >&6; } |
| 13931 |
> |
ac_res=$ac_cv_search_socket |
| 13932 |
|
if test "$ac_res" != no; then : |
| 13933 |
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13934 |
|
|
| 13935 |
< |
fi |
| 13936 |
< |
|
| 13196 |
< |
for ac_func in inet_aton inet_ntop inet_pton |
| 13197 |
< |
do : |
| 13198 |
< |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13199 |
< |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13200 |
< |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13201 |
< |
cat >>confdefs.h <<_ACEOF |
| 13202 |
< |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13203 |
< |
_ACEOF |
| 13204 |
< |
|
| 13205 |
< |
fi |
| 13206 |
< |
done |
| 13207 |
< |
|
| 13208 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
| 13209 |
< |
#include <sys/socket.h> |
| 13210 |
< |
#include <netdb.h> |
| 13211 |
< |
|
| 13212 |
< |
" |
| 13213 |
< |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
| 13214 |
< |
|
| 13215 |
< |
cat >>confdefs.h <<_ACEOF |
| 13216 |
< |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
| 13217 |
< |
_ACEOF |
| 13218 |
< |
|
| 13219 |
< |
|
| 13220 |
< |
fi |
| 13221 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
| 13222 |
< |
#include <sys/socket.h> |
| 13223 |
< |
#include <netdb.h> |
| 13224 |
< |
|
| 13225 |
< |
" |
| 13226 |
< |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
| 13227 |
< |
|
| 13228 |
< |
cat >>confdefs.h <<_ACEOF |
| 13229 |
< |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
| 13230 |
< |
_ACEOF |
| 13231 |
< |
|
| 13232 |
< |
|
| 13233 |
< |
fi |
| 13234 |
< |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
| 13235 |
< |
#include <sys/socket.h> |
| 13236 |
< |
#include <netdb.h> |
| 13237 |
< |
|
| 13238 |
< |
" |
| 13239 |
< |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
| 13240 |
< |
|
| 13241 |
< |
cat >>confdefs.h <<_ACEOF |
| 13242 |
< |
#define HAVE_STRUCT_ADDRINFO 1 |
| 13243 |
< |
_ACEOF |
| 13244 |
< |
|
| 13245 |
< |
|
| 13246 |
< |
fi |
| 13247 |
< |
|
| 13248 |
< |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
| 13249 |
< |
<sys/socket.h> |
| 13250 |
< |
" |
| 13251 |
< |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
| 13252 |
< |
|
| 13253 |
< |
cat >>confdefs.h <<_ACEOF |
| 13254 |
< |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
| 13255 |
< |
_ACEOF |
| 13256 |
< |
|
| 13257 |
< |
|
| 13258 |
< |
fi |
| 13259 |
< |
|
| 13260 |
< |
|
| 13261 |
< |
|
| 13262 |
< |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13263 |
< |
" |
| 13264 |
< |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13265 |
< |
|
| 13266 |
< |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13267 |
< |
|
| 13935 |
> |
else |
| 13936 |
> |
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13937 |
|
fi |
| 13938 |
|
|
| 13939 |
|
|
| 14186 |
|
|
| 14187 |
|
|
| 14188 |
|
|
| 13520 |
– |
|
| 13521 |
– |
|
| 13522 |
– |
|
| 13523 |
– |
|
| 13524 |
– |
|
| 13525 |
– |
|
| 14189 |
|
# Checks for header files. |
| 14190 |
|
|
| 14191 |
|
|
| 14216 |
|
|
| 14217 |
|
|
| 14218 |
|
|
| 13556 |
– |
|
| 13557 |
– |
|
| 13558 |
– |
|
| 13559 |
– |
|
| 14219 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 14220 |
|
$as_echo_n "checking for library containing crypt... " >&6; } |
| 14221 |
|
if ${ac_cv_search_crypt+:} false; then : |
| 14273 |
|
fi |
| 14274 |
|
|
| 14275 |
|
|
| 14276 |
< |
# Check whether --enable-libpcre was given. |
| 14277 |
< |
if test "${enable_libpcre+set}" = set; then : |
| 14278 |
< |
enableval=$enable_libpcre; |
| 14279 |
< |
else |
| 14280 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 14281 |
< |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 14282 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 14283 |
< |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 14284 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14285 |
< |
$as_echo_n "(cached) " >&6 |
| 14286 |
< |
else |
| 14287 |
< |
ac_func_search_save_LIBS=$LIBS |
| 14288 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14276 |
> |
# Argument processing. |
| 14277 |
> |
|
| 14278 |
> |
desired_iopoll_mechanism="none" |
| 14279 |
> |
|
| 14280 |
> |
# Check whether --enable-kqueue was given. |
| 14281 |
> |
if test "${enable_kqueue+set}" = set; then : |
| 14282 |
> |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 14283 |
> |
fi |
| 14284 |
> |
|
| 14285 |
> |
# Check whether --enable-epoll was given. |
| 14286 |
> |
if test "${enable_epoll+set}" = set; then : |
| 14287 |
> |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
| 14288 |
> |
fi |
| 14289 |
> |
|
| 14290 |
> |
# Check whether --enable-devpoll was given. |
| 14291 |
> |
if test "${enable_devpoll+set}" = set; then : |
| 14292 |
> |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 14293 |
> |
fi |
| 14294 |
> |
|
| 14295 |
> |
# Check whether --enable-poll was given. |
| 14296 |
> |
if test "${enable_poll+set}" = set; then : |
| 14297 |
> |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 14298 |
> |
fi |
| 14299 |
> |
|
| 14300 |
> |
|
| 14301 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14302 |
> |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14303 |
> |
|
| 14304 |
> |
iopoll_mechanism_none=0 |
| 14305 |
> |
|
| 14306 |
> |
cat >>confdefs.h <<_ACEOF |
| 14307 |
> |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 14308 |
> |
_ACEOF |
| 14309 |
> |
|
| 14310 |
> |
|
| 14311 |
> |
iopoll_mechanism_kqueue=1 |
| 14312 |
> |
|
| 14313 |
> |
cat >>confdefs.h <<_ACEOF |
| 14314 |
> |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 14315 |
> |
_ACEOF |
| 14316 |
> |
|
| 14317 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14318 |
|
/* end confdefs.h. */ |
| 14319 |
+ |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
| 14320 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14321 |
+ |
#define kevent innocuous_kevent |
| 14322 |
+ |
|
| 14323 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
| 14324 |
+ |
which can conflict with char kevent (); below. |
| 14325 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14326 |
+ |
<limits.h> exists even on freestanding compilers. */ |
| 14327 |
+ |
|
| 14328 |
+ |
#ifdef __STDC__ |
| 14329 |
+ |
# include <limits.h> |
| 14330 |
+ |
#else |
| 14331 |
+ |
# include <assert.h> |
| 14332 |
+ |
#endif |
| 14333 |
+ |
|
| 14334 |
+ |
#undef kevent |
| 14335 |
|
|
| 14336 |
|
/* Override any GCC internal prototype to avoid an error. |
| 14337 |
|
Use char because int might match the return type of a GCC |
| 14339 |
|
#ifdef __cplusplus |
| 14340 |
|
extern "C" |
| 14341 |
|
#endif |
| 14342 |
< |
char pcre_study (); |
| 14342 |
> |
char kevent (); |
| 14343 |
> |
/* The GNU C library defines this for functions which it implements |
| 14344 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 14345 |
> |
something starting with __ and the normal name is an alias. */ |
| 14346 |
> |
#if defined __stub_kevent || defined __stub___kevent |
| 14347 |
> |
choke me |
| 14348 |
> |
#endif |
| 14349 |
> |
|
| 14350 |
|
int |
| 14351 |
|
main () |
| 14352 |
|
{ |
| 14353 |
< |
return pcre_study (); |
| 14353 |
> |
return kevent (); |
| 14354 |
|
; |
| 14355 |
|
return 0; |
| 14356 |
|
} |
| 14357 |
|
_ACEOF |
| 14358 |
< |
for ac_lib in '' pcre; do |
| 14359 |
< |
if test -z "$ac_lib"; then |
| 14360 |
< |
ac_res="none required" |
| 14361 |
< |
else |
| 13651 |
< |
ac_res=-l$ac_lib |
| 13652 |
< |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13653 |
< |
fi |
| 13654 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 13655 |
< |
ac_cv_search_pcre_study=$ac_res |
| 14358 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14359 |
> |
is_kqueue_mechanism_available="yes" |
| 14360 |
> |
else |
| 14361 |
> |
is_kqueue_mechanism_available="no" |
| 14362 |
|
fi |
| 14363 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14364 |
< |
conftest$ac_exeext |
| 14365 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14366 |
< |
break |
| 13661 |
< |
fi |
| 13662 |
< |
done |
| 13663 |
< |
if ${ac_cv_search_pcre_study+:} false; then : |
| 14364 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14365 |
> |
|
| 14366 |
> |
iopoll_mechanism_epoll=2 |
| 14367 |
|
|
| 14368 |
+ |
cat >>confdefs.h <<_ACEOF |
| 14369 |
+ |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 14370 |
+ |
_ACEOF |
| 14371 |
+ |
|
| 14372 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14373 |
+ |
/* end confdefs.h. */ |
| 14374 |
+ |
#include <sys/epoll.h> |
| 14375 |
+ |
int |
| 14376 |
+ |
main () |
| 14377 |
+ |
{ |
| 14378 |
+ |
epoll_create1(EPOLL_CLOEXEC); |
| 14379 |
+ |
; |
| 14380 |
+ |
return 0; |
| 14381 |
+ |
} |
| 14382 |
+ |
_ACEOF |
| 14383 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 14384 |
+ |
is_epoll_mechanism_available="yes" |
| 14385 |
|
else |
| 14386 |
< |
ac_cv_search_pcre_study=no |
| 13667 |
< |
fi |
| 13668 |
< |
rm conftest.$ac_ext |
| 13669 |
< |
LIBS=$ac_func_search_save_LIBS |
| 14386 |
> |
is_epoll_mechanism_available="no" |
| 14387 |
|
fi |
| 14388 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 14389 |
< |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13673 |
< |
ac_res=$ac_cv_search_pcre_study |
| 13674 |
< |
if test "$ac_res" != no; then : |
| 13675 |
< |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14388 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 14389 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 14390 |
|
|
| 14391 |
< |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 14391 |
> |
iopoll_mechanism_devpoll=3 |
| 14392 |
|
|
| 14393 |
< |
fi |
| 14393 |
> |
cat >>confdefs.h <<_ACEOF |
| 14394 |
> |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 14395 |
> |
_ACEOF |
| 14396 |
> |
|
| 14397 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14398 |
> |
/* end confdefs.h. */ |
| 14399 |
> |
#include <devpoll.h> |
| 14400 |
> |
int |
| 14401 |
> |
main () |
| 14402 |
> |
{ |
| 14403 |
|
|
| 14404 |
+ |
; |
| 14405 |
+ |
return 0; |
| 14406 |
+ |
} |
| 14407 |
+ |
_ACEOF |
| 14408 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14409 |
+ |
is_devpoll_mechanism_available="yes" |
| 14410 |
+ |
else |
| 14411 |
+ |
is_devpoll_mechanism_available="no" |
| 14412 |
|
fi |
| 14413 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14414 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14415 |
+ |
|
| 14416 |
+ |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
| 14417 |
|
|
| 14418 |
+ |
fi |
| 14419 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14420 |
+ |
/* end confdefs.h. */ |
| 14421 |
+ |
#include <sys/devpoll.h> |
| 14422 |
+ |
int |
| 14423 |
+ |
main () |
| 14424 |
+ |
{ |
| 14425 |
|
|
| 14426 |
+ |
; |
| 14427 |
+ |
return 0; |
| 14428 |
+ |
} |
| 14429 |
+ |
_ACEOF |
| 14430 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14431 |
+ |
is_devpoll_mechanism_available="yes" |
| 14432 |
+ |
else |
| 14433 |
+ |
is_devpoll_mechanism_available="no" |
| 14434 |
|
fi |
| 14435 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14436 |
+ |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14437 |
|
|
| 14438 |
+ |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14439 |
|
|
| 14440 |
< |
# Check whether --enable-openssl was given. |
| 14441 |
< |
if test "${enable_openssl+set}" = set; then : |
| 14442 |
< |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 14440 |
> |
fi |
| 14441 |
> |
|
| 14442 |
> |
iopoll_mechanism_poll=4 |
| 14443 |
> |
|
| 14444 |
> |
cat >>confdefs.h <<_ACEOF |
| 14445 |
> |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14446 |
> |
_ACEOF |
| 14447 |
> |
|
| 14448 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14449 |
> |
/* end confdefs.h. */ |
| 14450 |
> |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
| 14451 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14452 |
> |
#define poll innocuous_poll |
| 14453 |
> |
|
| 14454 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 14455 |
> |
which can conflict with char poll (); below. |
| 14456 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14457 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 14458 |
> |
|
| 14459 |
> |
#ifdef __STDC__ |
| 14460 |
> |
# include <limits.h> |
| 14461 |
> |
#else |
| 14462 |
> |
# include <assert.h> |
| 14463 |
> |
#endif |
| 14464 |
> |
|
| 14465 |
> |
#undef poll |
| 14466 |
> |
|
| 14467 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 14468 |
> |
Use char because int might match the return type of a GCC |
| 14469 |
> |
builtin and then its argument prototype would still apply. */ |
| 14470 |
> |
#ifdef __cplusplus |
| 14471 |
> |
extern "C" |
| 14472 |
> |
#endif |
| 14473 |
> |
char poll (); |
| 14474 |
> |
/* The GNU C library defines this for functions which it implements |
| 14475 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 14476 |
> |
something starting with __ and the normal name is an alias. */ |
| 14477 |
> |
#if defined __stub_poll || defined __stub___poll |
| 14478 |
> |
choke me |
| 14479 |
> |
#endif |
| 14480 |
> |
|
| 14481 |
> |
int |
| 14482 |
> |
main () |
| 14483 |
> |
{ |
| 14484 |
> |
return poll (); |
| 14485 |
> |
; |
| 14486 |
> |
return 0; |
| 14487 |
> |
} |
| 14488 |
> |
_ACEOF |
| 14489 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 14490 |
> |
is_poll_mechanism_available="yes" |
| 14491 |
|
else |
| 14492 |
< |
cf_enable_openssl="auto" |
| 14492 |
> |
is_poll_mechanism_available="no" |
| 14493 |
|
fi |
| 14494 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 14495 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 14496 |
|
|
| 14497 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
| 14498 |
< |
$as_echo_n "checking for OpenSSL... " >&6; } |
| 14499 |
< |
if test "$cf_enable_openssl" != "no"; then |
| 14500 |
< |
cf_openssl_basedir="" |
| 14501 |
< |
if test "$cf_enable_openssl" != "auto" && |
| 14502 |
< |
test "$cf_enable_openssl" != "yes"; then |
| 14503 |
< |
cf_openssl_basedir="${cf_enable_openssl}" |
| 14504 |
< |
else |
| 13702 |
< |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 13703 |
< |
/opt /opt/openssl /usr/local/openssl; do |
| 13704 |
< |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 13705 |
< |
cf_openssl_basedir="${dirs}" |
| 13706 |
< |
break |
| 13707 |
< |
fi |
| 13708 |
< |
done |
| 13709 |
< |
unset dirs |
| 13710 |
< |
fi |
| 14497 |
> |
optimal_iopoll_mechanism="none" |
| 14498 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
| 14499 |
> |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14500 |
> |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14501 |
> |
optimal_iopoll_mechanism="$mechanism" |
| 14502 |
> |
break |
| 14503 |
> |
fi |
| 14504 |
> |
done |
| 14505 |
|
|
| 14506 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 14507 |
< |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 14508 |
< |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 14509 |
< |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 14506 |
> |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14507 |
> |
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14508 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14509 |
> |
$as_echo "none" >&6; } |
| 14510 |
> |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
| 14511 |
|
else |
| 14512 |
< |
cf_openssl_basedir="" |
| 14512 |
> |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
| 14513 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14514 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14515 |
|
fi |
| 14516 |
|
else |
| 14517 |
< |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 14518 |
< |
cf_openssl_basedir="/usr" |
| 14517 |
> |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
| 14518 |
> |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
| 14519 |
> |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
| 14520 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14521 |
> |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14522 |
> |
else |
| 14523 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14524 |
> |
$as_echo "none" >&6; } |
| 14525 |
> |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14526 |
|
fi |
| 14527 |
|
fi |
| 14528 |
|
|
| 14529 |
< |
if test ! -z "$cf_openssl_basedir"; then |
| 14530 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 14531 |
< |
$as_echo "$cf_openssl_basedir" >&6; } |
| 14532 |
< |
cf_enable_openssl="yes" |
| 14533 |
< |
else |
| 14534 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 14535 |
< |
$as_echo "not found. Please check your path." >&6; } |
| 14536 |
< |
cf_enable_openssl="no" |
| 14537 |
< |
fi |
| 14538 |
< |
unset cf_openssl_basedir |
| 14529 |
> |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14530 |
> |
|
| 14531 |
> |
cat >>confdefs.h <<_ACEOF |
| 14532 |
> |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 14533 |
> |
_ACEOF |
| 14534 |
> |
|
| 14535 |
> |
|
| 14536 |
> |
|
| 14537 |
> |
# Check whether --enable-assert was given. |
| 14538 |
> |
if test "${enable_assert+set}" = set; then : |
| 14539 |
> |
enableval=$enable_assert; assert=$enableval |
| 14540 |
|
else |
| 14541 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 13737 |
< |
$as_echo "disabled" >&6; } |
| 14541 |
> |
assert=no |
| 14542 |
|
fi |
| 14543 |
|
|
| 14544 |
< |
if test "$cf_enable_openssl" != "no"; then : |
| 14545 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 14546 |
< |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 14547 |
< |
if test "$cross_compiling" = yes; then : |
| 14548 |
< |
cf_openssl_version_ok=no |
| 14544 |
> |
|
| 14545 |
> |
if test "$assert" = "no"; then : |
| 14546 |
> |
|
| 14547 |
> |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 14548 |
> |
|
| 14549 |
> |
fi |
| 14550 |
> |
|
| 14551 |
> |
|
| 14552 |
> |
# Check whether --enable-debugging was given. |
| 14553 |
> |
if test "${enable_debugging+set}" = set; then : |
| 14554 |
> |
enableval=$enable_debugging; debugging="$enableval" |
| 14555 |
> |
else |
| 14556 |
> |
debugging="no" |
| 14557 |
> |
fi |
| 14558 |
> |
|
| 14559 |
> |
|
| 14560 |
> |
if test "$debugging" = "yes"; then : |
| 14561 |
> |
|
| 14562 |
> |
CFLAGS="-Wall -g -O0" |
| 14563 |
> |
|
| 14564 |
> |
fi |
| 14565 |
> |
|
| 14566 |
> |
|
| 14567 |
> |
# Check whether --enable-warnings was given. |
| 14568 |
> |
if test "${enable_warnings+set}" = set; then : |
| 14569 |
> |
enableval=$enable_warnings; warnings="$enableval" |
| 14570 |
|
else |
| 14571 |
+ |
warnings="no" |
| 14572 |
+ |
fi |
| 14573 |
+ |
|
| 14574 |
+ |
|
| 14575 |
+ |
if test "$warnings" = "yes"; then : |
| 14576 |
+ |
|
| 14577 |
+ |
|
| 14578 |
+ |
|
| 14579 |
+ |
|
| 14580 |
+ |
|
| 14581 |
+ |
for flag in -Wall; do |
| 14582 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14583 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14584 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14585 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 14586 |
+ |
$as_echo_n "(cached) " >&6 |
| 14587 |
+ |
else |
| 14588 |
+ |
|
| 14589 |
+ |
ax_check_save_flags=$CFLAGS |
| 14590 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14591 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14592 |
|
/* end confdefs.h. */ |
| 14593 |
|
|
| 14594 |
+ |
int |
| 14595 |
+ |
main () |
| 14596 |
+ |
{ |
| 14597 |
+ |
|
| 14598 |
+ |
; |
| 14599 |
+ |
return 0; |
| 14600 |
+ |
} |
| 14601 |
+ |
_ACEOF |
| 14602 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14603 |
+ |
eval "$as_CACHEVAR=yes" |
| 14604 |
+ |
else |
| 14605 |
+ |
eval "$as_CACHEVAR=no" |
| 14606 |
+ |
fi |
| 14607 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14608 |
+ |
CFLAGS=$ax_check_save_flags |
| 14609 |
+ |
fi |
| 14610 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14611 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14612 |
+ |
$as_echo "$ac_res" >&6; } |
| 14613 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14614 |
+ |
|
| 14615 |
+ |
if ${CFLAGS+:} false; then : |
| 14616 |
+ |
|
| 14617 |
+ |
case " $CFLAGS " in #( |
| 14618 |
+ |
*" $flag "*) : |
| 14619 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14620 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 14621 |
+ |
ac_status=$? |
| 14622 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14623 |
+ |
test $ac_status = 0; } ;; #( |
| 14624 |
+ |
*) : |
| 14625 |
+ |
|
| 14626 |
+ |
as_fn_append CFLAGS " $flag" |
| 14627 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14628 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14629 |
+ |
ac_status=$? |
| 14630 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14631 |
+ |
test $ac_status = 0; } |
| 14632 |
+ |
;; |
| 14633 |
+ |
esac |
| 14634 |
+ |
|
| 14635 |
+ |
else |
| 14636 |
+ |
|
| 14637 |
+ |
CFLAGS=$flag |
| 14638 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14639 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14640 |
+ |
ac_status=$? |
| 14641 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14642 |
+ |
test $ac_status = 0; } |
| 14643 |
+ |
|
| 14644 |
+ |
fi |
| 14645 |
+ |
|
| 14646 |
+ |
else |
| 14647 |
+ |
: |
| 14648 |
+ |
fi |
| 14649 |
+ |
|
| 14650 |
+ |
done |
| 14651 |
+ |
|
| 14652 |
+ |
|
| 14653 |
+ |
|
| 14654 |
+ |
|
| 14655 |
+ |
|
| 14656 |
+ |
for flag in -Wbad-function-cast; do |
| 14657 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14658 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14659 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14660 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 14661 |
+ |
$as_echo_n "(cached) " >&6 |
| 14662 |
+ |
else |
| 14663 |
+ |
|
| 14664 |
+ |
ax_check_save_flags=$CFLAGS |
| 14665 |
+ |
CFLAGS="$CFLAGS $flag" |
| 14666 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14667 |
+ |
/* end confdefs.h. */ |
| 14668 |
|
|
| 13750 |
– |
#include <openssl/opensslv.h> |
| 13751 |
– |
#include <stdlib.h> |
| 14669 |
|
int |
| 14670 |
|
main () |
| 14671 |
|
{ |
| 14672 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 14672 |
> |
|
| 14673 |
|
; |
| 14674 |
|
return 0; |
| 14675 |
|
} |
| 14676 |
|
_ACEOF |
| 14677 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 14678 |
< |
cf_openssl_version_ok=yes |
| 14677 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14678 |
> |
eval "$as_CACHEVAR=yes" |
| 14679 |
|
else |
| 14680 |
< |
cf_openssl_version_ok=no |
| 14680 |
> |
eval "$as_CACHEVAR=no" |
| 14681 |
|
fi |
| 14682 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14683 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14682 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14683 |
> |
CFLAGS=$ax_check_save_flags |
| 14684 |
|
fi |
| 14685 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14686 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14687 |
+ |
$as_echo "$ac_res" >&6; } |
| 14688 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14689 |
|
|
| 14690 |
+ |
if ${CFLAGS+:} false; then : |
| 14691 |
|
|
| 14692 |
< |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 14693 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 14694 |
< |
$as_echo "found" >&6; } |
| 14692 |
> |
case " $CFLAGS " in #( |
| 14693 |
> |
*" $flag "*) : |
| 14694 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14695 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14696 |
> |
ac_status=$? |
| 14697 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14698 |
> |
test $ac_status = 0; } ;; #( |
| 14699 |
> |
*) : |
| 14700 |
|
|
| 14701 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 14702 |
< |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 14703 |
< |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 14701 |
> |
as_fn_append CFLAGS " $flag" |
| 14702 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14703 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14704 |
> |
ac_status=$? |
| 14705 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14706 |
> |
test $ac_status = 0; } |
| 14707 |
> |
;; |
| 14708 |
> |
esac |
| 14709 |
> |
|
| 14710 |
> |
else |
| 14711 |
> |
|
| 14712 |
> |
CFLAGS=$flag |
| 14713 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14714 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14715 |
> |
ac_status=$? |
| 14716 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14717 |
> |
test $ac_status = 0; } |
| 14718 |
> |
|
| 14719 |
> |
fi |
| 14720 |
> |
|
| 14721 |
> |
else |
| 14722 |
> |
: |
| 14723 |
> |
fi |
| 14724 |
> |
|
| 14725 |
> |
done |
| 14726 |
> |
|
| 14727 |
> |
|
| 14728 |
> |
|
| 14729 |
> |
|
| 14730 |
> |
|
| 14731 |
> |
for flag in -Wcast-align; do |
| 14732 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14733 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14734 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14735 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14736 |
|
$as_echo_n "(cached) " >&6 |
| 14737 |
|
else |
| 14738 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 14739 |
< |
LIBS="-lssl $LIBS" |
| 14740 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14738 |
> |
|
| 14739 |
> |
ax_check_save_flags=$CFLAGS |
| 14740 |
> |
CFLAGS="$CFLAGS $flag" |
| 14741 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14742 |
|
/* end confdefs.h. */ |
| 14743 |
|
|
| 13784 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13785 |
– |
Use char because int might match the return type of a GCC |
| 13786 |
– |
builtin and then its argument prototype would still apply. */ |
| 13787 |
– |
#ifdef __cplusplus |
| 13788 |
– |
extern "C" |
| 13789 |
– |
#endif |
| 13790 |
– |
char SSL_connect (); |
| 14744 |
|
int |
| 14745 |
|
main () |
| 14746 |
|
{ |
| 14747 |
< |
return SSL_connect (); |
| 14747 |
> |
|
| 14748 |
|
; |
| 14749 |
|
return 0; |
| 14750 |
|
} |
| 14751 |
|
_ACEOF |
| 14752 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14753 |
< |
ac_cv_lib_ssl_SSL_connect=yes |
| 14752 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14753 |
> |
eval "$as_CACHEVAR=yes" |
| 14754 |
|
else |
| 14755 |
< |
ac_cv_lib_ssl_SSL_connect=no |
| 14755 |
> |
eval "$as_CACHEVAR=no" |
| 14756 |
|
fi |
| 14757 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14758 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 13806 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 14757 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14758 |
> |
CFLAGS=$ax_check_save_flags |
| 14759 |
|
fi |
| 14760 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 14761 |
< |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 14762 |
< |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 14763 |
< |
cat >>confdefs.h <<_ACEOF |
| 14764 |
< |
#define HAVE_LIBSSL 1 |
| 14760 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14761 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14762 |
> |
$as_echo "$ac_res" >&6; } |
| 14763 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14764 |
> |
|
| 14765 |
> |
if ${CFLAGS+:} false; then : |
| 14766 |
> |
|
| 14767 |
> |
case " $CFLAGS " in #( |
| 14768 |
> |
*" $flag "*) : |
| 14769 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14770 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14771 |
> |
ac_status=$? |
| 14772 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14773 |
> |
test $ac_status = 0; } ;; #( |
| 14774 |
> |
*) : |
| 14775 |
> |
|
| 14776 |
> |
as_fn_append CFLAGS " $flag" |
| 14777 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14778 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14779 |
> |
ac_status=$? |
| 14780 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14781 |
> |
test $ac_status = 0; } |
| 14782 |
> |
;; |
| 14783 |
> |
esac |
| 14784 |
> |
|
| 14785 |
> |
else |
| 14786 |
> |
|
| 14787 |
> |
CFLAGS=$flag |
| 14788 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14789 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14790 |
> |
ac_status=$? |
| 14791 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14792 |
> |
test $ac_status = 0; } |
| 14793 |
> |
|
| 14794 |
> |
fi |
| 14795 |
> |
|
| 14796 |
> |
else |
| 14797 |
> |
: |
| 14798 |
> |
fi |
| 14799 |
> |
|
| 14800 |
> |
done |
| 14801 |
> |
|
| 14802 |
> |
|
| 14803 |
> |
|
| 14804 |
> |
|
| 14805 |
> |
|
| 14806 |
> |
for flag in -Wcast-function-type; do |
| 14807 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14808 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14809 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14810 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14811 |
> |
$as_echo_n "(cached) " >&6 |
| 14812 |
> |
else |
| 14813 |
> |
|
| 14814 |
> |
ax_check_save_flags=$CFLAGS |
| 14815 |
> |
CFLAGS="$CFLAGS $flag" |
| 14816 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14817 |
> |
/* end confdefs.h. */ |
| 14818 |
> |
|
| 14819 |
> |
int |
| 14820 |
> |
main () |
| 14821 |
> |
{ |
| 14822 |
> |
|
| 14823 |
> |
; |
| 14824 |
> |
return 0; |
| 14825 |
> |
} |
| 14826 |
|
_ACEOF |
| 14827 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14828 |
+ |
eval "$as_CACHEVAR=yes" |
| 14829 |
+ |
else |
| 14830 |
+ |
eval "$as_CACHEVAR=no" |
| 14831 |
+ |
fi |
| 14832 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14833 |
+ |
CFLAGS=$ax_check_save_flags |
| 14834 |
+ |
fi |
| 14835 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14836 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14837 |
+ |
$as_echo "$ac_res" >&6; } |
| 14838 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14839 |
|
|
| 14840 |
< |
LIBS="-lssl $LIBS" |
| 14840 |
> |
if ${CFLAGS+:} false; then : |
| 14841 |
> |
|
| 14842 |
> |
case " $CFLAGS " in #( |
| 14843 |
> |
*" $flag "*) : |
| 14844 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14845 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14846 |
> |
ac_status=$? |
| 14847 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14848 |
> |
test $ac_status = 0; } ;; #( |
| 14849 |
> |
*) : |
| 14850 |
> |
|
| 14851 |
> |
as_fn_append CFLAGS " $flag" |
| 14852 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14853 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14854 |
> |
ac_status=$? |
| 14855 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14856 |
> |
test $ac_status = 0; } |
| 14857 |
> |
;; |
| 14858 |
> |
esac |
| 14859 |
> |
|
| 14860 |
> |
else |
| 14861 |
> |
|
| 14862 |
> |
CFLAGS=$flag |
| 14863 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14864 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14865 |
> |
ac_status=$? |
| 14866 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14867 |
> |
test $ac_status = 0; } |
| 14868 |
|
|
| 14869 |
|
fi |
| 14870 |
|
|
| 14871 |
< |
if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then : |
| 14872 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 14873 |
< |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 14874 |
< |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 14871 |
> |
else |
| 14872 |
> |
: |
| 14873 |
> |
fi |
| 14874 |
> |
|
| 14875 |
> |
done |
| 14876 |
> |
|
| 14877 |
> |
|
| 14878 |
> |
|
| 14879 |
> |
|
| 14880 |
> |
|
| 14881 |
> |
for flag in -Wcast-qual; do |
| 14882 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14883 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14884 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14885 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14886 |
|
$as_echo_n "(cached) " >&6 |
| 14887 |
|
else |
| 14888 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 14889 |
< |
LIBS="-lcrypto $LIBS" |
| 14890 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14888 |
> |
|
| 14889 |
> |
ax_check_save_flags=$CFLAGS |
| 14890 |
> |
CFLAGS="$CFLAGS $flag" |
| 14891 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14892 |
|
/* end confdefs.h. */ |
| 14893 |
|
|
| 13830 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 13831 |
– |
Use char because int might match the return type of a GCC |
| 13832 |
– |
builtin and then its argument prototype would still apply. */ |
| 13833 |
– |
#ifdef __cplusplus |
| 13834 |
– |
extern "C" |
| 13835 |
– |
#endif |
| 13836 |
– |
char RSA_free (); |
| 14894 |
|
int |
| 14895 |
|
main () |
| 14896 |
|
{ |
| 14897 |
< |
return RSA_free (); |
| 14897 |
> |
|
| 14898 |
|
; |
| 14899 |
|
return 0; |
| 14900 |
|
} |
| 14901 |
|
_ACEOF |
| 14902 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 14903 |
< |
ac_cv_lib_crypto_RSA_free=yes |
| 14902 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14903 |
> |
eval "$as_CACHEVAR=yes" |
| 14904 |
|
else |
| 14905 |
< |
ac_cv_lib_crypto_RSA_free=no |
| 14905 |
> |
eval "$as_CACHEVAR=no" |
| 14906 |
|
fi |
| 14907 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 14908 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 13852 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 14907 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14908 |
> |
CFLAGS=$ax_check_save_flags |
| 14909 |
|
fi |
| 14910 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 14911 |
< |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 14912 |
< |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 14913 |
< |
cat >>confdefs.h <<_ACEOF |
| 14914 |
< |
#define HAVE_LIBCRYPTO 1 |
| 14910 |
> |
eval ac_res=\$$as_CACHEVAR |
| 14911 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14912 |
> |
$as_echo "$ac_res" >&6; } |
| 14913 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14914 |
> |
|
| 14915 |
> |
if ${CFLAGS+:} false; then : |
| 14916 |
> |
|
| 14917 |
> |
case " $CFLAGS " in #( |
| 14918 |
> |
*" $flag "*) : |
| 14919 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14920 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14921 |
> |
ac_status=$? |
| 14922 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14923 |
> |
test $ac_status = 0; } ;; #( |
| 14924 |
> |
*) : |
| 14925 |
> |
|
| 14926 |
> |
as_fn_append CFLAGS " $flag" |
| 14927 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14928 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14929 |
> |
ac_status=$? |
| 14930 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14931 |
> |
test $ac_status = 0; } |
| 14932 |
> |
;; |
| 14933 |
> |
esac |
| 14934 |
> |
|
| 14935 |
> |
else |
| 14936 |
> |
|
| 14937 |
> |
CFLAGS=$flag |
| 14938 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 14939 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 14940 |
> |
ac_status=$? |
| 14941 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14942 |
> |
test $ac_status = 0; } |
| 14943 |
> |
|
| 14944 |
> |
fi |
| 14945 |
> |
|
| 14946 |
> |
else |
| 14947 |
> |
: |
| 14948 |
> |
fi |
| 14949 |
> |
|
| 14950 |
> |
done |
| 14951 |
> |
|
| 14952 |
> |
|
| 14953 |
> |
|
| 14954 |
> |
|
| 14955 |
> |
|
| 14956 |
> |
for flag in -Wclobbered; do |
| 14957 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14958 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14959 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 14960 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 14961 |
> |
$as_echo_n "(cached) " >&6 |
| 14962 |
> |
else |
| 14963 |
> |
|
| 14964 |
> |
ax_check_save_flags=$CFLAGS |
| 14965 |
> |
CFLAGS="$CFLAGS $flag" |
| 14966 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14967 |
> |
/* end confdefs.h. */ |
| 14968 |
> |
|
| 14969 |
> |
int |
| 14970 |
> |
main () |
| 14971 |
> |
{ |
| 14972 |
> |
|
| 14973 |
> |
; |
| 14974 |
> |
return 0; |
| 14975 |
> |
} |
| 14976 |
|
_ACEOF |
| 14977 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14978 |
+ |
eval "$as_CACHEVAR=yes" |
| 14979 |
+ |
else |
| 14980 |
+ |
eval "$as_CACHEVAR=no" |
| 14981 |
+ |
fi |
| 14982 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14983 |
+ |
CFLAGS=$ax_check_save_flags |
| 14984 |
+ |
fi |
| 14985 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 14986 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 14987 |
+ |
$as_echo "$ac_res" >&6; } |
| 14988 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 14989 |
|
|
| 14990 |
< |
LIBS="-lcrypto $LIBS" |
| 14990 |
> |
if ${CFLAGS+:} false; then : |
| 14991 |
> |
|
| 14992 |
> |
case " $CFLAGS " in #( |
| 14993 |
> |
*" $flag "*) : |
| 14994 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 14995 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 14996 |
> |
ac_status=$? |
| 14997 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14998 |
> |
test $ac_status = 0; } ;; #( |
| 14999 |
> |
*) : |
| 15000 |
> |
|
| 15001 |
> |
as_fn_append CFLAGS " $flag" |
| 15002 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15003 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15004 |
> |
ac_status=$? |
| 15005 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15006 |
> |
test $ac_status = 0; } |
| 15007 |
> |
;; |
| 15008 |
> |
esac |
| 15009 |
> |
|
| 15010 |
> |
else |
| 15011 |
> |
|
| 15012 |
> |
CFLAGS=$flag |
| 15013 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15014 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15015 |
> |
ac_status=$? |
| 15016 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15017 |
> |
test $ac_status = 0; } |
| 15018 |
|
|
| 15019 |
|
fi |
| 15020 |
|
|
| 15021 |
+ |
else |
| 15022 |
+ |
: |
| 15023 |
+ |
fi |
| 15024 |
+ |
|
| 15025 |
+ |
done |
| 15026 |
+ |
|
| 15027 |
+ |
|
| 15028 |
+ |
|
| 15029 |
+ |
|
| 15030 |
+ |
|
| 15031 |
+ |
for flag in -Wduplicated-cond; do |
| 15032 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15033 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15034 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15035 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15036 |
+ |
$as_echo_n "(cached) " >&6 |
| 15037 |
+ |
else |
| 15038 |
+ |
|
| 15039 |
+ |
ax_check_save_flags=$CFLAGS |
| 15040 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15041 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15042 |
+ |
/* end confdefs.h. */ |
| 15043 |
+ |
|
| 15044 |
+ |
int |
| 15045 |
+ |
main () |
| 15046 |
+ |
{ |
| 15047 |
+ |
|
| 15048 |
+ |
; |
| 15049 |
+ |
return 0; |
| 15050 |
+ |
} |
| 15051 |
+ |
_ACEOF |
| 15052 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15053 |
+ |
eval "$as_CACHEVAR=yes" |
| 15054 |
+ |
else |
| 15055 |
+ |
eval "$as_CACHEVAR=no" |
| 15056 |
+ |
fi |
| 15057 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15058 |
+ |
CFLAGS=$ax_check_save_flags |
| 15059 |
|
fi |
| 15060 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15061 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15062 |
+ |
$as_echo "$ac_res" >&6; } |
| 15063 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15064 |
+ |
|
| 15065 |
+ |
if ${CFLAGS+:} false; then : |
| 15066 |
+ |
|
| 15067 |
+ |
case " $CFLAGS " in #( |
| 15068 |
+ |
*" $flag "*) : |
| 15069 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15070 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15071 |
+ |
ac_status=$? |
| 15072 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15073 |
+ |
test $ac_status = 0; } ;; #( |
| 15074 |
+ |
*) : |
| 15075 |
+ |
|
| 15076 |
+ |
as_fn_append CFLAGS " $flag" |
| 15077 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15078 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15079 |
+ |
ac_status=$? |
| 15080 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15081 |
+ |
test $ac_status = 0; } |
| 15082 |
+ |
;; |
| 15083 |
+ |
esac |
| 15084 |
|
|
| 15085 |
|
else |
| 15086 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 15087 |
< |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 15088 |
< |
cf_enable_openssl="no" |
| 15086 |
> |
|
| 15087 |
> |
CFLAGS=$flag |
| 15088 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15089 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15090 |
> |
ac_status=$? |
| 15091 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15092 |
> |
test $ac_status = 0; } |
| 15093 |
> |
|
| 15094 |
|
fi |
| 15095 |
+ |
|
| 15096 |
+ |
else |
| 15097 |
+ |
: |
| 15098 |
|
fi |
| 15099 |
|
|
| 15100 |
< |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
| 15101 |
< |
ENABLE_SSL_TRUE= |
| 15102 |
< |
ENABLE_SSL_FALSE='#' |
| 15100 |
> |
done |
| 15101 |
> |
|
| 15102 |
> |
|
| 15103 |
> |
|
| 15104 |
> |
|
| 15105 |
> |
|
| 15106 |
> |
for flag in -Wempty-body; do |
| 15107 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15108 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15109 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15110 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15111 |
> |
$as_echo_n "(cached) " >&6 |
| 15112 |
|
else |
| 15113 |
< |
ENABLE_SSL_TRUE='#' |
| 15114 |
< |
ENABLE_SSL_FALSE= |
| 15113 |
> |
|
| 15114 |
> |
ax_check_save_flags=$CFLAGS |
| 15115 |
> |
CFLAGS="$CFLAGS $flag" |
| 15116 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15117 |
> |
/* end confdefs.h. */ |
| 15118 |
> |
|
| 15119 |
> |
int |
| 15120 |
> |
main () |
| 15121 |
> |
{ |
| 15122 |
> |
|
| 15123 |
> |
; |
| 15124 |
> |
return 0; |
| 15125 |
> |
} |
| 15126 |
> |
_ACEOF |
| 15127 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15128 |
> |
eval "$as_CACHEVAR=yes" |
| 15129 |
> |
else |
| 15130 |
> |
eval "$as_CACHEVAR=no" |
| 15131 |
|
fi |
| 15132 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15133 |
+ |
CFLAGS=$ax_check_save_flags |
| 15134 |
+ |
fi |
| 15135 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15136 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15137 |
+ |
$as_echo "$ac_res" >&6; } |
| 15138 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15139 |
|
|
| 15140 |
+ |
if ${CFLAGS+:} false; then : |
| 15141 |
|
|
| 15142 |
+ |
case " $CFLAGS " in #( |
| 15143 |
+ |
*" $flag "*) : |
| 15144 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15145 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15146 |
+ |
ac_status=$? |
| 15147 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15148 |
+ |
test $ac_status = 0; } ;; #( |
| 15149 |
+ |
*) : |
| 15150 |
+ |
|
| 15151 |
+ |
as_fn_append CFLAGS " $flag" |
| 15152 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15153 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15154 |
+ |
ac_status=$? |
| 15155 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15156 |
+ |
test $ac_status = 0; } |
| 15157 |
+ |
;; |
| 15158 |
+ |
esac |
| 15159 |
|
|
| 13884 |
– |
# Check whether --enable-assert was given. |
| 13885 |
– |
if test "${enable_assert+set}" = set; then : |
| 13886 |
– |
enableval=$enable_assert; assert=$enableval |
| 15160 |
|
else |
| 15161 |
< |
assert=no |
| 15161 |
> |
|
| 15162 |
> |
CFLAGS=$flag |
| 15163 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15164 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15165 |
> |
ac_status=$? |
| 15166 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15167 |
> |
test $ac_status = 0; } |
| 15168 |
> |
|
| 15169 |
> |
fi |
| 15170 |
> |
|
| 15171 |
> |
else |
| 15172 |
> |
: |
| 15173 |
|
fi |
| 15174 |
|
|
| 15175 |
+ |
done |
| 15176 |
|
|
| 13892 |
– |
if test "$assert" = "no"; then : |
| 15177 |
|
|
| 13894 |
– |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 15178 |
|
|
| 15179 |
+ |
|
| 15180 |
+ |
|
| 15181 |
+ |
for flag in -Wignored-qualifiers; do |
| 15182 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15183 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15184 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15185 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15186 |
+ |
$as_echo_n "(cached) " >&6 |
| 15187 |
+ |
else |
| 15188 |
+ |
|
| 15189 |
+ |
ax_check_save_flags=$CFLAGS |
| 15190 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15191 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15192 |
+ |
/* end confdefs.h. */ |
| 15193 |
+ |
|
| 15194 |
+ |
int |
| 15195 |
+ |
main () |
| 15196 |
+ |
{ |
| 15197 |
+ |
|
| 15198 |
+ |
; |
| 15199 |
+ |
return 0; |
| 15200 |
+ |
} |
| 15201 |
+ |
_ACEOF |
| 15202 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15203 |
+ |
eval "$as_CACHEVAR=yes" |
| 15204 |
+ |
else |
| 15205 |
+ |
eval "$as_CACHEVAR=no" |
| 15206 |
|
fi |
| 15207 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15208 |
+ |
CFLAGS=$ax_check_save_flags |
| 15209 |
+ |
fi |
| 15210 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15211 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15212 |
+ |
$as_echo "$ac_res" >&6; } |
| 15213 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15214 |
+ |
|
| 15215 |
+ |
if ${CFLAGS+:} false; then : |
| 15216 |
+ |
|
| 15217 |
+ |
case " $CFLAGS " in #( |
| 15218 |
+ |
*" $flag "*) : |
| 15219 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15220 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15221 |
+ |
ac_status=$? |
| 15222 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15223 |
+ |
test $ac_status = 0; } ;; #( |
| 15224 |
+ |
*) : |
| 15225 |
|
|
| 15226 |
+ |
as_fn_append CFLAGS " $flag" |
| 15227 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15228 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15229 |
+ |
ac_status=$? |
| 15230 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15231 |
+ |
test $ac_status = 0; } |
| 15232 |
+ |
;; |
| 15233 |
+ |
esac |
| 15234 |
|
|
| 13899 |
– |
# Check whether --enable-small-net was given. |
| 13900 |
– |
if test "${enable_small_net+set}" = set; then : |
| 13901 |
– |
enableval=$enable_small_net; small_net=$enableval |
| 15235 |
|
else |
| 15236 |
< |
small_net=no |
| 15236 |
> |
|
| 15237 |
> |
CFLAGS=$flag |
| 15238 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15239 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15240 |
> |
ac_status=$? |
| 15241 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15242 |
> |
test $ac_status = 0; } |
| 15243 |
> |
|
| 15244 |
|
fi |
| 15245 |
|
|
| 15246 |
+ |
else |
| 15247 |
+ |
: |
| 15248 |
+ |
fi |
| 15249 |
|
|
| 15250 |
< |
if test "$small_net" = "yes"; then : |
| 15250 |
> |
done |
| 15251 |
|
|
| 15252 |
|
|
| 13910 |
– |
$as_echo "#define NICKNAMEHISTORYLENGTH 2048" >>confdefs.h |
| 15253 |
|
|
| 15254 |
|
|
| 13913 |
– |
$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
| 15255 |
|
|
| 15256 |
+ |
for flag in -Wlogical-op; do |
| 15257 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15258 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15259 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15260 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15261 |
+ |
$as_echo_n "(cached) " >&6 |
| 15262 |
+ |
else |
| 15263 |
|
|
| 15264 |
< |
$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
| 15264 |
> |
ax_check_save_flags=$CFLAGS |
| 15265 |
> |
CFLAGS="$CFLAGS $flag" |
| 15266 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15267 |
> |
/* end confdefs.h. */ |
| 15268 |
|
|
| 15269 |
+ |
int |
| 15270 |
+ |
main () |
| 15271 |
+ |
{ |
| 15272 |
|
|
| 15273 |
< |
$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
| 15273 |
> |
; |
| 15274 |
> |
return 0; |
| 15275 |
> |
} |
| 15276 |
> |
_ACEOF |
| 15277 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15278 |
> |
eval "$as_CACHEVAR=yes" |
| 15279 |
> |
else |
| 15280 |
> |
eval "$as_CACHEVAR=no" |
| 15281 |
> |
fi |
| 15282 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15283 |
> |
CFLAGS=$ax_check_save_flags |
| 15284 |
> |
fi |
| 15285 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15286 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15287 |
> |
$as_echo "$ac_res" >&6; } |
| 15288 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15289 |
|
|
| 15290 |
+ |
if ${CFLAGS+:} false; then : |
| 15291 |
|
|
| 15292 |
< |
$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
| 15292 |
> |
case " $CFLAGS " in #( |
| 15293 |
> |
*" $flag "*) : |
| 15294 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15295 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15296 |
> |
ac_status=$? |
| 15297 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15298 |
> |
test $ac_status = 0; } ;; #( |
| 15299 |
> |
*) : |
| 15300 |
|
|
| 15301 |
+ |
as_fn_append CFLAGS " $flag" |
| 15302 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15303 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15304 |
+ |
ac_status=$? |
| 15305 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15306 |
+ |
test $ac_status = 0; } |
| 15307 |
+ |
;; |
| 15308 |
+ |
esac |
| 15309 |
|
|
| 15310 |
< |
$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
| 15310 |
> |
else |
| 15311 |
|
|
| 15312 |
+ |
CFLAGS=$flag |
| 15313 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15314 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15315 |
+ |
ac_status=$? |
| 15316 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15317 |
+ |
test $ac_status = 0; } |
| 15318 |
|
|
| 15319 |
< |
$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
| 15319 |
> |
fi |
| 15320 |
|
|
| 15321 |
+ |
else |
| 15322 |
+ |
: |
| 15323 |
+ |
fi |
| 15324 |
|
|
| 15325 |
< |
$as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h |
| 15325 |
> |
done |
| 15326 |
|
|
| 15327 |
|
|
| 13934 |
– |
$as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h |
| 15328 |
|
|
| 15329 |
|
|
| 13937 |
– |
$as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h |
| 15330 |
|
|
| 15331 |
+ |
for flag in -Wmissing-declarations; do |
| 15332 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15333 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15334 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15335 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15336 |
+ |
$as_echo_n "(cached) " >&6 |
| 15337 |
|
else |
| 15338 |
|
|
| 15339 |
+ |
ax_check_save_flags=$CFLAGS |
| 15340 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15341 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15342 |
+ |
/* end confdefs.h. */ |
| 15343 |
|
|
| 15344 |
+ |
int |
| 15345 |
+ |
main () |
| 15346 |
+ |
{ |
| 15347 |
|
|
| 15348 |
< |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
| 15348 |
> |
; |
| 15349 |
> |
return 0; |
| 15350 |
> |
} |
| 15351 |
> |
_ACEOF |
| 15352 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15353 |
> |
eval "$as_CACHEVAR=yes" |
| 15354 |
> |
else |
| 15355 |
> |
eval "$as_CACHEVAR=no" |
| 15356 |
> |
fi |
| 15357 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15358 |
> |
CFLAGS=$ax_check_save_flags |
| 15359 |
> |
fi |
| 15360 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15361 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15362 |
> |
$as_echo "$ac_res" >&6; } |
| 15363 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15364 |
|
|
| 15365 |
+ |
if ${CFLAGS+:} false; then : |
| 15366 |
|
|
| 15367 |
< |
$as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h |
| 15367 |
> |
case " $CFLAGS " in #( |
| 15368 |
> |
*" $flag "*) : |
| 15369 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15370 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15371 |
> |
ac_status=$? |
| 15372 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15373 |
> |
test $ac_status = 0; } ;; #( |
| 15374 |
> |
*) : |
| 15375 |
|
|
| 15376 |
+ |
as_fn_append CFLAGS " $flag" |
| 15377 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15378 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15379 |
+ |
ac_status=$? |
| 15380 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15381 |
+ |
test $ac_status = 0; } |
| 15382 |
+ |
;; |
| 15383 |
+ |
esac |
| 15384 |
|
|
| 15385 |
< |
$as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h |
| 15385 |
> |
else |
| 15386 |
|
|
| 15387 |
+ |
CFLAGS=$flag |
| 15388 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15389 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15390 |
+ |
ac_status=$? |
| 15391 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15392 |
+ |
test $ac_status = 0; } |
| 15393 |
|
|
| 15394 |
< |
$as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h |
| 15394 |
> |
fi |
| 15395 |
|
|
| 15396 |
+ |
else |
| 15397 |
+ |
: |
| 15398 |
+ |
fi |
| 15399 |
|
|
| 15400 |
< |
$as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h |
| 15400 |
> |
done |
| 15401 |
|
|
| 15402 |
|
|
| 13958 |
– |
$as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h |
| 15403 |
|
|
| 15404 |
|
|
| 13961 |
– |
$as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h |
| 15405 |
|
|
| 15406 |
+ |
for flag in -Wmissing-field-initializers; do |
| 15407 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15408 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15409 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15410 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15411 |
+ |
$as_echo_n "(cached) " >&6 |
| 15412 |
+ |
else |
| 15413 |
|
|
| 15414 |
< |
$as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h |
| 15414 |
> |
ax_check_save_flags=$CFLAGS |
| 15415 |
> |
CFLAGS="$CFLAGS $flag" |
| 15416 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15417 |
> |
/* end confdefs.h. */ |
| 15418 |
|
|
| 15419 |
+ |
int |
| 15420 |
+ |
main () |
| 15421 |
+ |
{ |
| 15422 |
|
|
| 15423 |
< |
$as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h |
| 15423 |
> |
; |
| 15424 |
> |
return 0; |
| 15425 |
> |
} |
| 15426 |
> |
_ACEOF |
| 15427 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15428 |
> |
eval "$as_CACHEVAR=yes" |
| 15429 |
> |
else |
| 15430 |
> |
eval "$as_CACHEVAR=no" |
| 15431 |
> |
fi |
| 15432 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15433 |
> |
CFLAGS=$ax_check_save_flags |
| 15434 |
> |
fi |
| 15435 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15436 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15437 |
> |
$as_echo "$ac_res" >&6; } |
| 15438 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15439 |
|
|
| 15440 |
+ |
if ${CFLAGS+:} false; then : |
| 15441 |
|
|
| 15442 |
< |
$as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h |
| 15442 |
> |
case " $CFLAGS " in #( |
| 15443 |
> |
*" $flag "*) : |
| 15444 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15445 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15446 |
> |
ac_status=$? |
| 15447 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15448 |
> |
test $ac_status = 0; } ;; #( |
| 15449 |
> |
*) : |
| 15450 |
> |
|
| 15451 |
> |
as_fn_append CFLAGS " $flag" |
| 15452 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15453 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15454 |
> |
ac_status=$? |
| 15455 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15456 |
> |
test $ac_status = 0; } |
| 15457 |
> |
;; |
| 15458 |
> |
esac |
| 15459 |
> |
|
| 15460 |
> |
else |
| 15461 |
> |
|
| 15462 |
> |
CFLAGS=$flag |
| 15463 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15464 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15465 |
> |
ac_status=$? |
| 15466 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15467 |
> |
test $ac_status = 0; } |
| 15468 |
|
|
| 15469 |
|
fi |
| 15470 |
|
|
| 15471 |
+ |
else |
| 15472 |
+ |
: |
| 15473 |
+ |
fi |
| 15474 |
|
|
| 15475 |
< |
# Argument processing. |
| 15475 |
> |
done |
| 15476 |
|
|
| 15477 |
< |
desired_iopoll_mechanism="none" |
| 15478 |
< |
# Check whether --enable-kqueue was given. |
| 15479 |
< |
if test "${enable_kqueue+set}" = set; then : |
| 15480 |
< |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 15477 |
> |
|
| 15478 |
> |
|
| 15479 |
> |
|
| 15480 |
> |
|
| 15481 |
> |
for flag in -Wmissing-include-dirs; do |
| 15482 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15483 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15484 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15485 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15486 |
> |
$as_echo_n "(cached) " >&6 |
| 15487 |
> |
else |
| 15488 |
> |
|
| 15489 |
> |
ax_check_save_flags=$CFLAGS |
| 15490 |
> |
CFLAGS="$CFLAGS $flag" |
| 15491 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15492 |
> |
/* end confdefs.h. */ |
| 15493 |
> |
|
| 15494 |
> |
int |
| 15495 |
> |
main () |
| 15496 |
> |
{ |
| 15497 |
> |
|
| 15498 |
> |
; |
| 15499 |
> |
return 0; |
| 15500 |
> |
} |
| 15501 |
> |
_ACEOF |
| 15502 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15503 |
> |
eval "$as_CACHEVAR=yes" |
| 15504 |
> |
else |
| 15505 |
> |
eval "$as_CACHEVAR=no" |
| 15506 |
|
fi |
| 15507 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15508 |
+ |
CFLAGS=$ax_check_save_flags |
| 15509 |
+ |
fi |
| 15510 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15511 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15512 |
+ |
$as_echo "$ac_res" >&6; } |
| 15513 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15514 |
+ |
|
| 15515 |
+ |
if ${CFLAGS+:} false; then : |
| 15516 |
+ |
|
| 15517 |
+ |
case " $CFLAGS " in #( |
| 15518 |
+ |
*" $flag "*) : |
| 15519 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15520 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15521 |
+ |
ac_status=$? |
| 15522 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15523 |
+ |
test $ac_status = 0; } ;; #( |
| 15524 |
+ |
*) : |
| 15525 |
+ |
|
| 15526 |
+ |
as_fn_append CFLAGS " $flag" |
| 15527 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15528 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15529 |
+ |
ac_status=$? |
| 15530 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15531 |
+ |
test $ac_status = 0; } |
| 15532 |
+ |
;; |
| 15533 |
+ |
esac |
| 15534 |
+ |
|
| 15535 |
+ |
else |
| 15536 |
+ |
|
| 15537 |
+ |
CFLAGS=$flag |
| 15538 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15539 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15540 |
+ |
ac_status=$? |
| 15541 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15542 |
+ |
test $ac_status = 0; } |
| 15543 |
|
|
| 13983 |
– |
# Check whether --enable-epoll was given. |
| 13984 |
– |
if test "${enable_epoll+set}" = set; then : |
| 13985 |
– |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
| 15544 |
|
fi |
| 15545 |
|
|
| 15546 |
< |
# Check whether --enable-devpoll was given. |
| 15547 |
< |
if test "${enable_devpoll+set}" = set; then : |
| 13990 |
< |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 15546 |
> |
else |
| 15547 |
> |
: |
| 15548 |
|
fi |
| 15549 |
|
|
| 15550 |
< |
# Check whether --enable-rtsigio was given. |
| 15551 |
< |
if test "${enable_rtsigio+set}" = set; then : |
| 15552 |
< |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
| 15550 |
> |
done |
| 15551 |
> |
|
| 15552 |
> |
|
| 15553 |
> |
|
| 15554 |
> |
|
| 15555 |
> |
|
| 15556 |
> |
for flag in -Wmissing-parameter-type; do |
| 15557 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15558 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15559 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15560 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15561 |
> |
$as_echo_n "(cached) " >&6 |
| 15562 |
> |
else |
| 15563 |
> |
|
| 15564 |
> |
ax_check_save_flags=$CFLAGS |
| 15565 |
> |
CFLAGS="$CFLAGS $flag" |
| 15566 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15567 |
> |
/* end confdefs.h. */ |
| 15568 |
> |
|
| 15569 |
> |
int |
| 15570 |
> |
main () |
| 15571 |
> |
{ |
| 15572 |
> |
|
| 15573 |
> |
; |
| 15574 |
> |
return 0; |
| 15575 |
> |
} |
| 15576 |
> |
_ACEOF |
| 15577 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15578 |
> |
eval "$as_CACHEVAR=yes" |
| 15579 |
> |
else |
| 15580 |
> |
eval "$as_CACHEVAR=no" |
| 15581 |
> |
fi |
| 15582 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15583 |
> |
CFLAGS=$ax_check_save_flags |
| 15584 |
|
fi |
| 15585 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15586 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15587 |
+ |
$as_echo "$ac_res" >&6; } |
| 15588 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15589 |
+ |
|
| 15590 |
+ |
if ${CFLAGS+:} false; then : |
| 15591 |
+ |
|
| 15592 |
+ |
case " $CFLAGS " in #( |
| 15593 |
+ |
*" $flag "*) : |
| 15594 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15595 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15596 |
+ |
ac_status=$? |
| 15597 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15598 |
+ |
test $ac_status = 0; } ;; #( |
| 15599 |
+ |
*) : |
| 15600 |
+ |
|
| 15601 |
+ |
as_fn_append CFLAGS " $flag" |
| 15602 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15603 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15604 |
+ |
ac_status=$? |
| 15605 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15606 |
+ |
test $ac_status = 0; } |
| 15607 |
+ |
;; |
| 15608 |
+ |
esac |
| 15609 |
+ |
|
| 15610 |
+ |
else |
| 15611 |
+ |
|
| 15612 |
+ |
CFLAGS=$flag |
| 15613 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15614 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15615 |
+ |
ac_status=$? |
| 15616 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15617 |
+ |
test $ac_status = 0; } |
| 15618 |
|
|
| 13998 |
– |
# Check whether --enable-poll was given. |
| 13999 |
– |
if test "${enable_poll+set}" = set; then : |
| 14000 |
– |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 15619 |
|
fi |
| 15620 |
|
|
| 15621 |
< |
# Check whether --enable-select was given. |
| 15622 |
< |
if test "${enable_select+set}" = set; then : |
| 14005 |
< |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 15621 |
> |
else |
| 15622 |
> |
: |
| 15623 |
|
fi |
| 15624 |
|
|
| 15625 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14009 |
< |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14010 |
< |
iopoll_mechanism_none=0 |
| 15625 |
> |
done |
| 15626 |
|
|
| 15627 |
< |
cat >>confdefs.h <<_ACEOF |
| 15628 |
< |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 15627 |
> |
|
| 15628 |
> |
|
| 15629 |
> |
|
| 15630 |
> |
|
| 15631 |
> |
for flag in -Wmissing-prototypes; do |
| 15632 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15633 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15634 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15635 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15636 |
> |
$as_echo_n "(cached) " >&6 |
| 15637 |
> |
else |
| 15638 |
> |
|
| 15639 |
> |
ax_check_save_flags=$CFLAGS |
| 15640 |
> |
CFLAGS="$CFLAGS $flag" |
| 15641 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15642 |
> |
/* end confdefs.h. */ |
| 15643 |
> |
|
| 15644 |
> |
int |
| 15645 |
> |
main () |
| 15646 |
> |
{ |
| 15647 |
> |
|
| 15648 |
> |
; |
| 15649 |
> |
return 0; |
| 15650 |
> |
} |
| 15651 |
|
_ACEOF |
| 15652 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15653 |
+ |
eval "$as_CACHEVAR=yes" |
| 15654 |
+ |
else |
| 15655 |
+ |
eval "$as_CACHEVAR=no" |
| 15656 |
+ |
fi |
| 15657 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15658 |
+ |
CFLAGS=$ax_check_save_flags |
| 15659 |
+ |
fi |
| 15660 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15661 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15662 |
+ |
$as_echo "$ac_res" >&6; } |
| 15663 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15664 |
|
|
| 15665 |
< |
iopoll_mechanism_kqueue=1 |
| 15665 |
> |
if ${CFLAGS+:} false; then : |
| 15666 |
|
|
| 15667 |
< |
cat >>confdefs.h <<_ACEOF |
| 15668 |
< |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 15667 |
> |
case " $CFLAGS " in #( |
| 15668 |
> |
*" $flag "*) : |
| 15669 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15670 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15671 |
> |
ac_status=$? |
| 15672 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15673 |
> |
test $ac_status = 0; } ;; #( |
| 15674 |
> |
*) : |
| 15675 |
> |
|
| 15676 |
> |
as_fn_append CFLAGS " $flag" |
| 15677 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15678 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15679 |
> |
ac_status=$? |
| 15680 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15681 |
> |
test $ac_status = 0; } |
| 15682 |
> |
;; |
| 15683 |
> |
esac |
| 15684 |
> |
|
| 15685 |
> |
else |
| 15686 |
> |
|
| 15687 |
> |
CFLAGS=$flag |
| 15688 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15689 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15690 |
> |
ac_status=$? |
| 15691 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15692 |
> |
test $ac_status = 0; } |
| 15693 |
> |
|
| 15694 |
> |
fi |
| 15695 |
> |
|
| 15696 |
> |
else |
| 15697 |
> |
: |
| 15698 |
> |
fi |
| 15699 |
> |
|
| 15700 |
> |
done |
| 15701 |
> |
|
| 15702 |
> |
|
| 15703 |
> |
|
| 15704 |
> |
|
| 15705 |
> |
|
| 15706 |
> |
for flag in -Wnested-externs; do |
| 15707 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15708 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15709 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15710 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15711 |
> |
$as_echo_n "(cached) " >&6 |
| 15712 |
> |
else |
| 15713 |
> |
|
| 15714 |
> |
ax_check_save_flags=$CFLAGS |
| 15715 |
> |
CFLAGS="$CFLAGS $flag" |
| 15716 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15717 |
> |
/* end confdefs.h. */ |
| 15718 |
> |
|
| 15719 |
> |
int |
| 15720 |
> |
main () |
| 15721 |
> |
{ |
| 15722 |
> |
|
| 15723 |
> |
; |
| 15724 |
> |
return 0; |
| 15725 |
> |
} |
| 15726 |
|
_ACEOF |
| 15727 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15728 |
+ |
eval "$as_CACHEVAR=yes" |
| 15729 |
+ |
else |
| 15730 |
+ |
eval "$as_CACHEVAR=no" |
| 15731 |
+ |
fi |
| 15732 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15733 |
+ |
CFLAGS=$ax_check_save_flags |
| 15734 |
+ |
fi |
| 15735 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15736 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15737 |
+ |
$as_echo "$ac_res" >&6; } |
| 15738 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15739 |
+ |
|
| 15740 |
+ |
if ${CFLAGS+:} false; then : |
| 15741 |
+ |
|
| 15742 |
+ |
case " $CFLAGS " in #( |
| 15743 |
+ |
*" $flag "*) : |
| 15744 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15745 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15746 |
+ |
ac_status=$? |
| 15747 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15748 |
+ |
test $ac_status = 0; } ;; #( |
| 15749 |
+ |
*) : |
| 15750 |
+ |
|
| 15751 |
+ |
as_fn_append CFLAGS " $flag" |
| 15752 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15753 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15754 |
+ |
ac_status=$? |
| 15755 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15756 |
+ |
test $ac_status = 0; } |
| 15757 |
+ |
;; |
| 15758 |
+ |
esac |
| 15759 |
|
|
| 15760 |
+ |
else |
| 15761 |
+ |
|
| 15762 |
+ |
CFLAGS=$flag |
| 15763 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15764 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15765 |
+ |
ac_status=$? |
| 15766 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15767 |
+ |
test $ac_status = 0; } |
| 15768 |
+ |
|
| 15769 |
+ |
fi |
| 15770 |
+ |
|
| 15771 |
+ |
else |
| 15772 |
+ |
: |
| 15773 |
+ |
fi |
| 15774 |
+ |
|
| 15775 |
+ |
done |
| 15776 |
+ |
|
| 15777 |
+ |
|
| 15778 |
+ |
|
| 15779 |
+ |
|
| 15780 |
+ |
|
| 15781 |
+ |
for flag in -Wold-style-declaration; do |
| 15782 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15783 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15784 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15785 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 15786 |
+ |
$as_echo_n "(cached) " >&6 |
| 15787 |
+ |
else |
| 15788 |
+ |
|
| 15789 |
+ |
ax_check_save_flags=$CFLAGS |
| 15790 |
+ |
CFLAGS="$CFLAGS $flag" |
| 15791 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15792 |
|
/* end confdefs.h. */ |
| 14024 |
– |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
| 14025 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14026 |
– |
#define kevent innocuous_kevent |
| 15793 |
|
|
| 15794 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
| 15795 |
< |
which can conflict with char kevent (); below. |
| 15796 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14031 |
< |
<limits.h> exists even on freestanding compilers. */ |
| 15794 |
> |
int |
| 15795 |
> |
main () |
| 15796 |
> |
{ |
| 15797 |
|
|
| 15798 |
< |
#ifdef __STDC__ |
| 15799 |
< |
# include <limits.h> |
| 15800 |
< |
#else |
| 15801 |
< |
# include <assert.h> |
| 15802 |
< |
#endif |
| 15798 |
> |
; |
| 15799 |
> |
return 0; |
| 15800 |
> |
} |
| 15801 |
> |
_ACEOF |
| 15802 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15803 |
> |
eval "$as_CACHEVAR=yes" |
| 15804 |
> |
else |
| 15805 |
> |
eval "$as_CACHEVAR=no" |
| 15806 |
> |
fi |
| 15807 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15808 |
> |
CFLAGS=$ax_check_save_flags |
| 15809 |
> |
fi |
| 15810 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15811 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15812 |
> |
$as_echo "$ac_res" >&6; } |
| 15813 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15814 |
|
|
| 15815 |
< |
#undef kevent |
| 15815 |
> |
if ${CFLAGS+:} false; then : |
| 15816 |
|
|
| 15817 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 15818 |
< |
Use char because int might match the return type of a GCC |
| 15819 |
< |
builtin and then its argument prototype would still apply. */ |
| 15820 |
< |
#ifdef __cplusplus |
| 15821 |
< |
extern "C" |
| 15822 |
< |
#endif |
| 15823 |
< |
char kevent (); |
| 15824 |
< |
/* The GNU C library defines this for functions which it implements |
| 15825 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 15826 |
< |
something starting with __ and the normal name is an alias. */ |
| 15827 |
< |
#if defined __stub_kevent || defined __stub___kevent |
| 15828 |
< |
choke me |
| 15829 |
< |
#endif |
| 15817 |
> |
case " $CFLAGS " in #( |
| 15818 |
> |
*" $flag "*) : |
| 15819 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15820 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15821 |
> |
ac_status=$? |
| 15822 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15823 |
> |
test $ac_status = 0; } ;; #( |
| 15824 |
> |
*) : |
| 15825 |
> |
|
| 15826 |
> |
as_fn_append CFLAGS " $flag" |
| 15827 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15828 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15829 |
> |
ac_status=$? |
| 15830 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15831 |
> |
test $ac_status = 0; } |
| 15832 |
> |
;; |
| 15833 |
> |
esac |
| 15834 |
> |
|
| 15835 |
> |
else |
| 15836 |
> |
|
| 15837 |
> |
CFLAGS=$flag |
| 15838 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15839 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15840 |
> |
ac_status=$? |
| 15841 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15842 |
> |
test $ac_status = 0; } |
| 15843 |
> |
|
| 15844 |
> |
fi |
| 15845 |
> |
|
| 15846 |
> |
else |
| 15847 |
> |
: |
| 15848 |
> |
fi |
| 15849 |
> |
|
| 15850 |
> |
done |
| 15851 |
> |
|
| 15852 |
> |
|
| 15853 |
> |
|
| 15854 |
> |
|
| 15855 |
> |
|
| 15856 |
> |
for flag in -Woverride-init; do |
| 15857 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15858 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15859 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15860 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15861 |
> |
$as_echo_n "(cached) " >&6 |
| 15862 |
> |
else |
| 15863 |
> |
|
| 15864 |
> |
ax_check_save_flags=$CFLAGS |
| 15865 |
> |
CFLAGS="$CFLAGS $flag" |
| 15866 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15867 |
> |
/* end confdefs.h. */ |
| 15868 |
|
|
| 15869 |
|
int |
| 15870 |
|
main () |
| 15871 |
|
{ |
| 15872 |
< |
return kevent (); |
| 15872 |
> |
|
| 15873 |
|
; |
| 15874 |
|
return 0; |
| 15875 |
|
} |
| 15876 |
|
_ACEOF |
| 15877 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 15878 |
< |
is_kqueue_mechanism_available="yes" |
| 15877 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15878 |
> |
eval "$as_CACHEVAR=yes" |
| 15879 |
|
else |
| 15880 |
< |
is_kqueue_mechanism_available="no" |
| 15880 |
> |
eval "$as_CACHEVAR=no" |
| 15881 |
|
fi |
| 15882 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 15883 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 15884 |
< |
iopoll_mechanism_epoll=2 |
| 15882 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15883 |
> |
CFLAGS=$ax_check_save_flags |
| 15884 |
> |
fi |
| 15885 |
> |
eval ac_res=\$$as_CACHEVAR |
| 15886 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15887 |
> |
$as_echo "$ac_res" >&6; } |
| 15888 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15889 |
|
|
| 15890 |
< |
cat >>confdefs.h <<_ACEOF |
| 15891 |
< |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 15890 |
> |
if ${CFLAGS+:} false; then : |
| 15891 |
> |
|
| 15892 |
> |
case " $CFLAGS " in #( |
| 15893 |
> |
*" $flag "*) : |
| 15894 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15895 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 15896 |
> |
ac_status=$? |
| 15897 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15898 |
> |
test $ac_status = 0; } ;; #( |
| 15899 |
> |
*) : |
| 15900 |
> |
|
| 15901 |
> |
as_fn_append CFLAGS " $flag" |
| 15902 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15903 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15904 |
> |
ac_status=$? |
| 15905 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15906 |
> |
test $ac_status = 0; } |
| 15907 |
> |
;; |
| 15908 |
> |
esac |
| 15909 |
> |
|
| 15910 |
> |
else |
| 15911 |
> |
|
| 15912 |
> |
CFLAGS=$flag |
| 15913 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15914 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15915 |
> |
ac_status=$? |
| 15916 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15917 |
> |
test $ac_status = 0; } |
| 15918 |
> |
|
| 15919 |
> |
fi |
| 15920 |
> |
|
| 15921 |
> |
else |
| 15922 |
> |
: |
| 15923 |
> |
fi |
| 15924 |
> |
|
| 15925 |
> |
done |
| 15926 |
> |
|
| 15927 |
> |
|
| 15928 |
> |
|
| 15929 |
> |
|
| 15930 |
> |
|
| 15931 |
> |
for flag in -Wpointer-arith; do |
| 15932 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15933 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15934 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 15935 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 15936 |
> |
$as_echo_n "(cached) " >&6 |
| 15937 |
> |
else |
| 15938 |
> |
|
| 15939 |
> |
ax_check_save_flags=$CFLAGS |
| 15940 |
> |
CFLAGS="$CFLAGS $flag" |
| 15941 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15942 |
> |
/* end confdefs.h. */ |
| 15943 |
> |
|
| 15944 |
> |
int |
| 15945 |
> |
main () |
| 15946 |
> |
{ |
| 15947 |
> |
|
| 15948 |
> |
; |
| 15949 |
> |
return 0; |
| 15950 |
> |
} |
| 15951 |
|
_ACEOF |
| 15952 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15953 |
+ |
eval "$as_CACHEVAR=yes" |
| 15954 |
+ |
else |
| 15955 |
+ |
eval "$as_CACHEVAR=no" |
| 15956 |
+ |
fi |
| 15957 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15958 |
+ |
CFLAGS=$ax_check_save_flags |
| 15959 |
+ |
fi |
| 15960 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 15961 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15962 |
+ |
$as_echo "$ac_res" >&6; } |
| 15963 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 15964 |
+ |
|
| 15965 |
+ |
if ${CFLAGS+:} false; then : |
| 15966 |
+ |
|
| 15967 |
+ |
case " $CFLAGS " in #( |
| 15968 |
+ |
*" $flag "*) : |
| 15969 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 15970 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 15971 |
+ |
ac_status=$? |
| 15972 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15973 |
+ |
test $ac_status = 0; } ;; #( |
| 15974 |
+ |
*) : |
| 15975 |
+ |
|
| 15976 |
+ |
as_fn_append CFLAGS " $flag" |
| 15977 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15978 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15979 |
+ |
ac_status=$? |
| 15980 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15981 |
+ |
test $ac_status = 0; } |
| 15982 |
+ |
;; |
| 15983 |
+ |
esac |
| 15984 |
|
|
| 14076 |
– |
if test "$cross_compiling" = yes; then : |
| 14077 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14078 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14079 |
– |
as_fn_error $? "cannot run test program while cross compiling |
| 14080 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 15985 |
|
else |
| 15986 |
+ |
|
| 15987 |
+ |
CFLAGS=$flag |
| 15988 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 15989 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 15990 |
+ |
ac_status=$? |
| 15991 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15992 |
+ |
test $ac_status = 0; } |
| 15993 |
+ |
|
| 15994 |
+ |
fi |
| 15995 |
+ |
|
| 15996 |
+ |
else |
| 15997 |
+ |
: |
| 15998 |
+ |
fi |
| 15999 |
+ |
|
| 16000 |
+ |
done |
| 16001 |
+ |
|
| 16002 |
+ |
|
| 16003 |
+ |
|
| 16004 |
+ |
|
| 16005 |
+ |
|
| 16006 |
+ |
for flag in -Wredundant-decls; do |
| 16007 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16008 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16009 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16010 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 16011 |
+ |
$as_echo_n "(cached) " >&6 |
| 16012 |
+ |
else |
| 16013 |
+ |
|
| 16014 |
+ |
ax_check_save_flags=$CFLAGS |
| 16015 |
+ |
CFLAGS="$CFLAGS $flag" |
| 16016 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16017 |
|
/* end confdefs.h. */ |
| 16018 |
|
|
| 16019 |
< |
#include <sys/epoll.h> |
| 16020 |
< |
#include <sys/syscall.h> |
| 16021 |
< |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
| 16022 |
< |
#if !defined(__NR_epoll_create) |
| 16023 |
< |
#if defined(__ia64__) |
| 16024 |
< |
#define __NR_epoll_create 1243 |
| 16025 |
< |
#elif defined(__x86_64__) |
| 16026 |
< |
#define __NR_epoll_create 214 |
| 16027 |
< |
#elif defined(__sparc64__) || defined(__sparc__) |
| 16028 |
< |
#define __NR_epoll_create 193 |
| 16029 |
< |
#elif defined(__s390__) || defined(__m68k__) |
| 16030 |
< |
#define __NR_epoll_create 249 |
| 16031 |
< |
#elif defined(__ppc64__) || defined(__ppc__) |
| 16032 |
< |
#define __NR_epoll_create 236 |
| 16033 |
< |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
| 16034 |
< |
#define __NR_epoll_create 224 |
| 16035 |
< |
#elif defined(__alpha__) |
| 16036 |
< |
#define __NR_epoll_create 407 |
| 16037 |
< |
#elif defined(__sh64__) |
| 16038 |
< |
#define __NR_epoll_create 282 |
| 16039 |
< |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
| 16040 |
< |
#define __NR_epoll_create 254 |
| 16041 |
< |
#else |
| 16042 |
< |
#error No system call numbers defined for epoll family. |
| 16043 |
< |
#endif |
| 16044 |
< |
#endif |
| 16045 |
< |
_syscall1(int, epoll_create, int, size) |
| 16046 |
< |
#endif |
| 16019 |
> |
int |
| 16020 |
> |
main () |
| 16021 |
> |
{ |
| 16022 |
> |
|
| 16023 |
> |
; |
| 16024 |
> |
return 0; |
| 16025 |
> |
} |
| 16026 |
> |
_ACEOF |
| 16027 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16028 |
> |
eval "$as_CACHEVAR=yes" |
| 16029 |
> |
else |
| 16030 |
> |
eval "$as_CACHEVAR=no" |
| 16031 |
> |
fi |
| 16032 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16033 |
> |
CFLAGS=$ax_check_save_flags |
| 16034 |
> |
fi |
| 16035 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16036 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16037 |
> |
$as_echo "$ac_res" >&6; } |
| 16038 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16039 |
> |
|
| 16040 |
> |
if ${CFLAGS+:} false; then : |
| 16041 |
> |
|
| 16042 |
> |
case " $CFLAGS " in #( |
| 16043 |
> |
*" $flag "*) : |
| 16044 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16045 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16046 |
> |
ac_status=$? |
| 16047 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16048 |
> |
test $ac_status = 0; } ;; #( |
| 16049 |
> |
*) : |
| 16050 |
> |
|
| 16051 |
> |
as_fn_append CFLAGS " $flag" |
| 16052 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16053 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16054 |
> |
ac_status=$? |
| 16055 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16056 |
> |
test $ac_status = 0; } |
| 16057 |
> |
;; |
| 16058 |
> |
esac |
| 16059 |
> |
|
| 16060 |
> |
else |
| 16061 |
> |
|
| 16062 |
> |
CFLAGS=$flag |
| 16063 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16064 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16065 |
> |
ac_status=$? |
| 16066 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16067 |
> |
test $ac_status = 0; } |
| 16068 |
> |
|
| 16069 |
> |
fi |
| 16070 |
> |
|
| 16071 |
> |
else |
| 16072 |
> |
: |
| 16073 |
> |
fi |
| 16074 |
> |
|
| 16075 |
> |
done |
| 16076 |
> |
|
| 16077 |
> |
|
| 16078 |
> |
|
| 16079 |
> |
|
| 16080 |
> |
|
| 16081 |
> |
for flag in -Wshadow; do |
| 16082 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16083 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16084 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16085 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16086 |
> |
$as_echo_n "(cached) " >&6 |
| 16087 |
> |
else |
| 16088 |
> |
|
| 16089 |
> |
ax_check_save_flags=$CFLAGS |
| 16090 |
> |
CFLAGS="$CFLAGS $flag" |
| 16091 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16092 |
> |
/* end confdefs.h. */ |
| 16093 |
|
|
| 16094 |
|
int |
| 16095 |
|
main () |
| 16096 |
|
{ |
| 16097 |
< |
return epoll_create(256) == -1 ? 1 : 0 |
| 16097 |
> |
|
| 16098 |
|
; |
| 16099 |
|
return 0; |
| 16100 |
|
} |
| 16101 |
|
_ACEOF |
| 16102 |
< |
if ac_fn_c_try_run "$LINENO"; then : |
| 16103 |
< |
is_epoll_mechanism_available="yes" |
| 16102 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16103 |
> |
eval "$as_CACHEVAR=yes" |
| 16104 |
|
else |
| 16105 |
< |
is_epoll_mechanism_available="no" |
| 16105 |
> |
eval "$as_CACHEVAR=no" |
| 16106 |
|
fi |
| 16107 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16108 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16107 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16108 |
> |
CFLAGS=$ax_check_save_flags |
| 16109 |
|
fi |
| 16110 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 16111 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16112 |
+ |
$as_echo "$ac_res" >&6; } |
| 16113 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16114 |
|
|
| 16115 |
< |
iopoll_mechanism_devpoll=3 |
| 16115 |
> |
if ${CFLAGS+:} false; then : |
| 16116 |
|
|
| 16117 |
< |
cat >>confdefs.h <<_ACEOF |
| 16118 |
< |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 16117 |
> |
case " $CFLAGS " in #( |
| 16118 |
> |
*" $flag "*) : |
| 16119 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16120 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16121 |
> |
ac_status=$? |
| 16122 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16123 |
> |
test $ac_status = 0; } ;; #( |
| 16124 |
> |
*) : |
| 16125 |
> |
|
| 16126 |
> |
as_fn_append CFLAGS " $flag" |
| 16127 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16128 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16129 |
> |
ac_status=$? |
| 16130 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16131 |
> |
test $ac_status = 0; } |
| 16132 |
> |
;; |
| 16133 |
> |
esac |
| 16134 |
> |
|
| 16135 |
> |
else |
| 16136 |
> |
|
| 16137 |
> |
CFLAGS=$flag |
| 16138 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16139 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16140 |
> |
ac_status=$? |
| 16141 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16142 |
> |
test $ac_status = 0; } |
| 16143 |
> |
|
| 16144 |
> |
fi |
| 16145 |
> |
|
| 16146 |
> |
else |
| 16147 |
> |
: |
| 16148 |
> |
fi |
| 16149 |
> |
|
| 16150 |
> |
done |
| 16151 |
> |
|
| 16152 |
> |
|
| 16153 |
> |
|
| 16154 |
> |
|
| 16155 |
> |
|
| 16156 |
> |
for flag in -Wshift-negative-value; do |
| 16157 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16158 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16159 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16160 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16161 |
> |
$as_echo_n "(cached) " >&6 |
| 16162 |
> |
else |
| 16163 |
> |
|
| 16164 |
> |
ax_check_save_flags=$CFLAGS |
| 16165 |
> |
CFLAGS="$CFLAGS $flag" |
| 16166 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16167 |
> |
/* end confdefs.h. */ |
| 16168 |
> |
|
| 16169 |
> |
int |
| 16170 |
> |
main () |
| 16171 |
> |
{ |
| 16172 |
> |
|
| 16173 |
> |
; |
| 16174 |
> |
return 0; |
| 16175 |
> |
} |
| 16176 |
|
_ACEOF |
| 16177 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16178 |
+ |
eval "$as_CACHEVAR=yes" |
| 16179 |
+ |
else |
| 16180 |
+ |
eval "$as_CACHEVAR=no" |
| 16181 |
+ |
fi |
| 16182 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16183 |
+ |
CFLAGS=$ax_check_save_flags |
| 16184 |
+ |
fi |
| 16185 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 16186 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16187 |
+ |
$as_echo "$ac_res" >&6; } |
| 16188 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16189 |
|
|
| 16190 |
+ |
if ${CFLAGS+:} false; then : |
| 16191 |
+ |
|
| 16192 |
+ |
case " $CFLAGS " in #( |
| 16193 |
+ |
*" $flag "*) : |
| 16194 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16195 |
+ |
(: CFLAGS already contains $flag) 2>&5 |
| 16196 |
+ |
ac_status=$? |
| 16197 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16198 |
+ |
test $ac_status = 0; } ;; #( |
| 16199 |
+ |
*) : |
| 16200 |
+ |
|
| 16201 |
+ |
as_fn_append CFLAGS " $flag" |
| 16202 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16203 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16204 |
+ |
ac_status=$? |
| 16205 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16206 |
+ |
test $ac_status = 0; } |
| 16207 |
+ |
;; |
| 16208 |
+ |
esac |
| 16209 |
+ |
|
| 16210 |
+ |
else |
| 16211 |
+ |
|
| 16212 |
+ |
CFLAGS=$flag |
| 16213 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16214 |
+ |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16215 |
+ |
ac_status=$? |
| 16216 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16217 |
+ |
test $ac_status = 0; } |
| 16218 |
+ |
|
| 16219 |
+ |
fi |
| 16220 |
+ |
|
| 16221 |
+ |
else |
| 16222 |
+ |
: |
| 16223 |
+ |
fi |
| 16224 |
+ |
|
| 16225 |
+ |
done |
| 16226 |
+ |
|
| 16227 |
+ |
|
| 16228 |
+ |
|
| 16229 |
+ |
|
| 16230 |
+ |
|
| 16231 |
+ |
for flag in -Wsign-compare; do |
| 16232 |
+ |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16233 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16234 |
+ |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16235 |
+ |
if eval \${$as_CACHEVAR+:} false; then : |
| 16236 |
+ |
$as_echo_n "(cached) " >&6 |
| 16237 |
+ |
else |
| 16238 |
+ |
|
| 16239 |
+ |
ax_check_save_flags=$CFLAGS |
| 16240 |
+ |
CFLAGS="$CFLAGS $flag" |
| 16241 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16242 |
|
/* end confdefs.h. */ |
| 16243 |
< |
#include <devpoll.h> |
| 16243 |
> |
|
| 16244 |
|
int |
| 16245 |
|
main () |
| 16246 |
|
{ |
| 16250 |
|
} |
| 16251 |
|
_ACEOF |
| 16252 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
| 16253 |
< |
is_devpoll_mechanism_available="yes" |
| 16253 |
> |
eval "$as_CACHEVAR=yes" |
| 16254 |
|
else |
| 16255 |
< |
is_devpoll_mechanism_available="no" |
| 16255 |
> |
eval "$as_CACHEVAR=no" |
| 16256 |
|
fi |
| 16257 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16258 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 16258 |
> |
CFLAGS=$ax_check_save_flags |
| 16259 |
> |
fi |
| 16260 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16261 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16262 |
> |
$as_echo "$ac_res" >&6; } |
| 16263 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16264 |
|
|
| 16265 |
< |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
| 16265 |
> |
if ${CFLAGS+:} false; then : |
| 16266 |
|
|
| 16267 |
< |
fi |
| 16267 |
> |
case " $CFLAGS " in #( |
| 16268 |
> |
*" $flag "*) : |
| 16269 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16270 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16271 |
> |
ac_status=$? |
| 16272 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16273 |
> |
test $ac_status = 0; } ;; #( |
| 16274 |
> |
*) : |
| 16275 |
> |
|
| 16276 |
> |
as_fn_append CFLAGS " $flag" |
| 16277 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16278 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16279 |
> |
ac_status=$? |
| 16280 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16281 |
> |
test $ac_status = 0; } |
| 16282 |
> |
;; |
| 16283 |
> |
esac |
| 16284 |
> |
|
| 16285 |
> |
else |
| 16286 |
> |
|
| 16287 |
> |
CFLAGS=$flag |
| 16288 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16289 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16290 |
> |
ac_status=$? |
| 16291 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16292 |
> |
test $ac_status = 0; } |
| 16293 |
> |
|
| 16294 |
> |
fi |
| 16295 |
> |
|
| 16296 |
> |
else |
| 16297 |
> |
: |
| 16298 |
> |
fi |
| 16299 |
> |
|
| 16300 |
> |
done |
| 16301 |
> |
|
| 16302 |
> |
|
| 16303 |
> |
|
| 16304 |
> |
|
| 16305 |
> |
|
| 16306 |
> |
for flag in -Wtype-limits; do |
| 16307 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16308 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16309 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16310 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16311 |
> |
$as_echo_n "(cached) " >&6 |
| 16312 |
> |
else |
| 16313 |
> |
|
| 16314 |
> |
ax_check_save_flags=$CFLAGS |
| 16315 |
> |
CFLAGS="$CFLAGS $flag" |
| 16316 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16317 |
|
/* end confdefs.h. */ |
| 16318 |
< |
#include <sys/devpoll.h> |
| 16318 |
> |
|
| 16319 |
|
int |
| 16320 |
|
main () |
| 16321 |
|
{ |
| 16325 |
|
} |
| 16326 |
|
_ACEOF |
| 16327 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
| 16328 |
< |
is_devpoll_mechanism_available="yes" |
| 16328 |
> |
eval "$as_CACHEVAR=yes" |
| 16329 |
|
else |
| 16330 |
< |
is_devpoll_mechanism_available="no" |
| 16330 |
> |
eval "$as_CACHEVAR=no" |
| 16331 |
|
fi |
| 16332 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16333 |
< |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 16333 |
> |
CFLAGS=$ax_check_save_flags |
| 16334 |
> |
fi |
| 16335 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16336 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16337 |
> |
$as_echo "$ac_res" >&6; } |
| 16338 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16339 |
|
|
| 16340 |
< |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 16340 |
> |
if ${CFLAGS+:} false; then : |
| 16341 |
|
|
| 16342 |
< |
fi |
| 16343 |
< |
iopoll_mechanism_rtsigio=4 |
| 16342 |
> |
case " $CFLAGS " in #( |
| 16343 |
> |
*" $flag "*) : |
| 16344 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16345 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16346 |
> |
ac_status=$? |
| 16347 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16348 |
> |
test $ac_status = 0; } ;; #( |
| 16349 |
> |
*) : |
| 16350 |
|
|
| 16351 |
< |
cat >>confdefs.h <<_ACEOF |
| 16352 |
< |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
| 16351 |
> |
as_fn_append CFLAGS " $flag" |
| 16352 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16353 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16354 |
> |
ac_status=$? |
| 16355 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16356 |
> |
test $ac_status = 0; } |
| 16357 |
> |
;; |
| 16358 |
> |
esac |
| 16359 |
> |
|
| 16360 |
> |
else |
| 16361 |
> |
|
| 16362 |
> |
CFLAGS=$flag |
| 16363 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16364 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16365 |
> |
ac_status=$? |
| 16366 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16367 |
> |
test $ac_status = 0; } |
| 16368 |
> |
|
| 16369 |
> |
fi |
| 16370 |
> |
|
| 16371 |
> |
else |
| 16372 |
> |
: |
| 16373 |
> |
fi |
| 16374 |
> |
|
| 16375 |
> |
done |
| 16376 |
> |
|
| 16377 |
> |
|
| 16378 |
> |
|
| 16379 |
> |
|
| 16380 |
> |
|
| 16381 |
> |
for flag in -Wundef; do |
| 16382 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16383 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16384 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16385 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16386 |
> |
$as_echo_n "(cached) " >&6 |
| 16387 |
> |
else |
| 16388 |
> |
|
| 16389 |
> |
ax_check_save_flags=$CFLAGS |
| 16390 |
> |
CFLAGS="$CFLAGS $flag" |
| 16391 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16392 |
> |
/* end confdefs.h. */ |
| 16393 |
> |
|
| 16394 |
> |
int |
| 16395 |
> |
main () |
| 16396 |
> |
{ |
| 16397 |
> |
|
| 16398 |
> |
; |
| 16399 |
> |
return 0; |
| 16400 |
> |
} |
| 16401 |
|
_ACEOF |
| 16402 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16403 |
+ |
eval "$as_CACHEVAR=yes" |
| 16404 |
+ |
else |
| 16405 |
+ |
eval "$as_CACHEVAR=no" |
| 16406 |
+ |
fi |
| 16407 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16408 |
+ |
CFLAGS=$ax_check_save_flags |
| 16409 |
+ |
fi |
| 16410 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 16411 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16412 |
+ |
$as_echo "$ac_res" >&6; } |
| 16413 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16414 |
|
|
| 16415 |
< |
if test "$cross_compiling" = yes; then : |
| 16415 |
> |
if ${CFLAGS+:} false; then : |
| 16416 |
> |
|
| 16417 |
> |
case " $CFLAGS " in #( |
| 16418 |
> |
*" $flag "*) : |
| 16419 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16420 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16421 |
> |
ac_status=$? |
| 16422 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16423 |
> |
test $ac_status = 0; } ;; #( |
| 16424 |
> |
*) : |
| 16425 |
> |
|
| 16426 |
> |
as_fn_append CFLAGS " $flag" |
| 16427 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16428 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16429 |
> |
ac_status=$? |
| 16430 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16431 |
> |
test $ac_status = 0; } |
| 16432 |
> |
;; |
| 16433 |
> |
esac |
| 16434 |
> |
|
| 16435 |
> |
else |
| 16436 |
> |
|
| 16437 |
> |
CFLAGS=$flag |
| 16438 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16439 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16440 |
> |
ac_status=$? |
| 16441 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16442 |
> |
test $ac_status = 0; } |
| 16443 |
> |
|
| 16444 |
> |
fi |
| 16445 |
> |
|
| 16446 |
> |
else |
| 16447 |
> |
: |
| 16448 |
> |
fi |
| 16449 |
> |
|
| 16450 |
> |
done |
| 16451 |
> |
|
| 16452 |
> |
|
| 16453 |
> |
|
| 16454 |
> |
|
| 16455 |
> |
|
| 16456 |
> |
for flag in -Wuninitialized; do |
| 16457 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16458 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16459 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16460 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16461 |
> |
$as_echo_n "(cached) " >&6 |
| 16462 |
> |
else |
| 16463 |
> |
|
| 16464 |
> |
ax_check_save_flags=$CFLAGS |
| 16465 |
> |
CFLAGS="$CFLAGS $flag" |
| 16466 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16467 |
> |
/* end confdefs.h. */ |
| 16468 |
> |
|
| 16469 |
> |
int |
| 16470 |
> |
main () |
| 16471 |
> |
{ |
| 16472 |
> |
|
| 16473 |
> |
; |
| 16474 |
> |
return 0; |
| 16475 |
> |
} |
| 16476 |
> |
_ACEOF |
| 16477 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16478 |
> |
eval "$as_CACHEVAR=yes" |
| 16479 |
> |
else |
| 16480 |
> |
eval "$as_CACHEVAR=no" |
| 16481 |
> |
fi |
| 16482 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16483 |
> |
CFLAGS=$ax_check_save_flags |
| 16484 |
> |
fi |
| 16485 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16486 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16487 |
> |
$as_echo "$ac_res" >&6; } |
| 16488 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16489 |
> |
|
| 16490 |
> |
if ${CFLAGS+:} false; then : |
| 16491 |
> |
|
| 16492 |
> |
case " $CFLAGS " in #( |
| 16493 |
> |
*" $flag "*) : |
| 16494 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16495 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16496 |
> |
ac_status=$? |
| 16497 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16498 |
> |
test $ac_status = 0; } ;; #( |
| 16499 |
> |
*) : |
| 16500 |
> |
|
| 16501 |
> |
as_fn_append CFLAGS " $flag" |
| 16502 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16503 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16504 |
> |
ac_status=$? |
| 16505 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16506 |
> |
test $ac_status = 0; } |
| 16507 |
> |
;; |
| 16508 |
> |
esac |
| 16509 |
> |
|
| 16510 |
> |
else |
| 16511 |
> |
|
| 16512 |
> |
CFLAGS=$flag |
| 16513 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16514 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16515 |
> |
ac_status=$? |
| 16516 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16517 |
> |
test $ac_status = 0; } |
| 16518 |
> |
|
| 16519 |
> |
fi |
| 16520 |
> |
|
| 16521 |
> |
else |
| 16522 |
> |
: |
| 16523 |
> |
fi |
| 16524 |
> |
|
| 16525 |
> |
done |
| 16526 |
> |
|
| 16527 |
> |
|
| 16528 |
> |
|
| 16529 |
> |
|
| 16530 |
> |
|
| 16531 |
> |
for flag in -Wwrite-strings; do |
| 16532 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 16533 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 16534 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 16535 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 16536 |
> |
$as_echo_n "(cached) " >&6 |
| 16537 |
> |
else |
| 16538 |
> |
|
| 16539 |
> |
ax_check_save_flags=$CFLAGS |
| 16540 |
> |
CFLAGS="$CFLAGS $flag" |
| 16541 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16542 |
> |
/* end confdefs.h. */ |
| 16543 |
> |
|
| 16544 |
> |
int |
| 16545 |
> |
main () |
| 16546 |
> |
{ |
| 16547 |
> |
|
| 16548 |
> |
; |
| 16549 |
> |
return 0; |
| 16550 |
> |
} |
| 16551 |
> |
_ACEOF |
| 16552 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16553 |
> |
eval "$as_CACHEVAR=yes" |
| 16554 |
> |
else |
| 16555 |
> |
eval "$as_CACHEVAR=no" |
| 16556 |
> |
fi |
| 16557 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16558 |
> |
CFLAGS=$ax_check_save_flags |
| 16559 |
> |
fi |
| 16560 |
> |
eval ac_res=\$$as_CACHEVAR |
| 16561 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16562 |
> |
$as_echo "$ac_res" >&6; } |
| 16563 |
> |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 16564 |
> |
|
| 16565 |
> |
if ${CFLAGS+:} false; then : |
| 16566 |
> |
|
| 16567 |
> |
case " $CFLAGS " in #( |
| 16568 |
> |
*" $flag "*) : |
| 16569 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 16570 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 16571 |
> |
ac_status=$? |
| 16572 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16573 |
> |
test $ac_status = 0; } ;; #( |
| 16574 |
> |
*) : |
| 16575 |
> |
|
| 16576 |
> |
as_fn_append CFLAGS " $flag" |
| 16577 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16578 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16579 |
> |
ac_status=$? |
| 16580 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16581 |
> |
test $ac_status = 0; } |
| 16582 |
> |
;; |
| 16583 |
> |
esac |
| 16584 |
> |
|
| 16585 |
> |
else |
| 16586 |
> |
|
| 16587 |
> |
CFLAGS=$flag |
| 16588 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 16589 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 16590 |
> |
ac_status=$? |
| 16591 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16592 |
> |
test $ac_status = 0; } |
| 16593 |
> |
|
| 16594 |
> |
fi |
| 16595 |
> |
|
| 16596 |
> |
else |
| 16597 |
> |
: |
| 16598 |
> |
fi |
| 16599 |
> |
|
| 16600 |
> |
done |
| 16601 |
> |
|
| 16602 |
> |
|
| 16603 |
> |
fi |
| 16604 |
> |
|
| 16605 |
> |
|
| 16606 |
> |
# Check whether --enable-efence was given. |
| 16607 |
> |
if test "${enable_efence+set}" = set; then : |
| 16608 |
> |
enableval=$enable_efence; efence="$enableval" |
| 16609 |
> |
else |
| 16610 |
> |
efence="no" |
| 16611 |
> |
fi |
| 16612 |
> |
|
| 16613 |
> |
|
| 16614 |
> |
if test "$efence" = "yes"; then : |
| 16615 |
> |
|
| 16616 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5 |
| 16617 |
> |
$as_echo_n "checking for library containing EF_Print... " >&6; } |
| 16618 |
> |
if ${ac_cv_search_EF_Print+:} false; then : |
| 16619 |
> |
$as_echo_n "(cached) " >&6 |
| 16620 |
> |
else |
| 16621 |
> |
ac_func_search_save_LIBS=$LIBS |
| 16622 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16623 |
> |
/* end confdefs.h. */ |
| 16624 |
> |
|
| 16625 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 16626 |
> |
Use char because int might match the return type of a GCC |
| 16627 |
> |
builtin and then its argument prototype would still apply. */ |
| 16628 |
> |
#ifdef __cplusplus |
| 16629 |
> |
extern "C" |
| 16630 |
> |
#endif |
| 16631 |
> |
char EF_Print (); |
| 16632 |
> |
int |
| 16633 |
> |
main () |
| 16634 |
> |
{ |
| 16635 |
> |
return EF_Print (); |
| 16636 |
> |
; |
| 16637 |
> |
return 0; |
| 16638 |
> |
} |
| 16639 |
> |
_ACEOF |
| 16640 |
> |
for ac_lib in '' efence; do |
| 16641 |
> |
if test -z "$ac_lib"; then |
| 16642 |
> |
ac_res="none required" |
| 16643 |
> |
else |
| 16644 |
> |
ac_res=-l$ac_lib |
| 16645 |
> |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16646 |
> |
fi |
| 16647 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 16648 |
> |
ac_cv_search_EF_Print=$ac_res |
| 16649 |
> |
fi |
| 16650 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 16651 |
> |
conftest$ac_exeext |
| 16652 |
> |
if ${ac_cv_search_EF_Print+:} false; then : |
| 16653 |
> |
break |
| 16654 |
> |
fi |
| 16655 |
> |
done |
| 16656 |
> |
if ${ac_cv_search_EF_Print+:} false; then : |
| 16657 |
> |
|
| 16658 |
> |
else |
| 16659 |
> |
ac_cv_search_EF_Print=no |
| 16660 |
> |
fi |
| 16661 |
> |
rm conftest.$ac_ext |
| 16662 |
> |
LIBS=$ac_func_search_save_LIBS |
| 16663 |
> |
fi |
| 16664 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5 |
| 16665 |
> |
$as_echo "$ac_cv_search_EF_Print" >&6; } |
| 16666 |
> |
ac_res=$ac_cv_search_EF_Print |
| 16667 |
> |
if test "$ac_res" != no; then : |
| 16668 |
> |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16669 |
> |
|
| 16670 |
> |
else |
| 16671 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16672 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16673 |
> |
as_fn_error $? "Electric Fence 'efence' library not found |
| 16674 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 16675 |
> |
fi |
| 16676 |
> |
|
| 16677 |
> |
|
| 16678 |
> |
fi |
| 16679 |
> |
|
| 16680 |
> |
|
| 16681 |
> |
|
| 16682 |
> |
|
| 16683 |
> |
# Check whether --with-tls was given. |
| 16684 |
> |
if test "${with_tls+set}" = set; then : |
| 16685 |
> |
withval=$with_tls; with_tls=$withval |
| 16686 |
> |
else |
| 16687 |
> |
with_tls=auto |
| 16688 |
> |
fi |
| 16689 |
> |
|
| 16690 |
> |
|
| 16691 |
> |
if test "$with_tls" = "openssl" || |
| 16692 |
> |
test "$with_tls" = "auto"; then |
| 16693 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" |
| 16694 |
> |
if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : |
| 16695 |
> |
|
| 16696 |
> |
if test "$cross_compiling" = yes; then : |
| 16697 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16698 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16699 |
|
as_fn_error $? "cannot run test program while cross compiling |
| 16702 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16703 |
|
/* end confdefs.h. */ |
| 16704 |
|
|
| 14196 |
– |
#define _GNU_SOURCE |
| 14197 |
– |
#include <fcntl.h> |
| 14198 |
– |
static unsigned int have_f_setsig = 0; |
| 16705 |
|
|
| 16706 |
+ |
#include <openssl/opensslv.h> |
| 16707 |
+ |
#include <stdlib.h> |
| 16708 |
|
int |
| 16709 |
|
main () |
| 16710 |
|
{ |
| 16711 |
|
|
| 16712 |
< |
#ifdef F_SETSIG |
| 14205 |
< |
have_f_setsig = 1; |
| 14206 |
< |
#endif |
| 14207 |
< |
return have_f_setsig == 0; |
| 14208 |
< |
|
| 16712 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL)); |
| 16713 |
|
; |
| 16714 |
|
return 0; |
| 16715 |
|
} |
| 16716 |
|
_ACEOF |
| 16717 |
|
if ac_fn_c_try_run "$LINENO"; then : |
| 16718 |
< |
is_rtsigio_mechanism_available="yes" |
| 16718 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 16719 |
> |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 16720 |
> |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 16721 |
> |
$as_echo_n "(cached) " >&6 |
| 16722 |
|
else |
| 16723 |
< |
is_rtsigio_mechanism_available="no" |
| 16723 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16724 |
> |
LIBS="-lcrypto $LIBS" |
| 16725 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16726 |
> |
/* end confdefs.h. */ |
| 16727 |
> |
|
| 16728 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 16729 |
> |
Use char because int might match the return type of a GCC |
| 16730 |
> |
builtin and then its argument prototype would still apply. */ |
| 16731 |
> |
#ifdef __cplusplus |
| 16732 |
> |
extern "C" |
| 16733 |
> |
#endif |
| 16734 |
> |
char RSA_free (); |
| 16735 |
> |
int |
| 16736 |
> |
main () |
| 16737 |
> |
{ |
| 16738 |
> |
return RSA_free (); |
| 16739 |
> |
; |
| 16740 |
> |
return 0; |
| 16741 |
> |
} |
| 16742 |
> |
_ACEOF |
| 16743 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 16744 |
> |
ac_cv_lib_crypto_RSA_free=yes |
| 16745 |
> |
else |
| 16746 |
> |
ac_cv_lib_crypto_RSA_free=no |
| 16747 |
|
fi |
| 16748 |
< |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16749 |
< |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16748 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 16749 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 16750 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 16751 |
|
fi |
| 16752 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 16753 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 16754 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 16755 |
+ |
cat >>confdefs.h <<_ACEOF |
| 16756 |
+ |
#define HAVE_LIBCRYPTO 1 |
| 16757 |
+ |
_ACEOF |
| 16758 |
|
|
| 16759 |
< |
iopoll_mechanism_poll=5 |
| 16759 |
> |
LIBS="-lcrypto $LIBS" |
| 16760 |
|
|
| 16761 |
< |
cat >>confdefs.h <<_ACEOF |
| 14225 |
< |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14226 |
< |
_ACEOF |
| 16761 |
> |
fi |
| 16762 |
|
|
| 16763 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16764 |
< |
/* end confdefs.h. */ |
| 16765 |
< |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
| 16766 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14232 |
< |
#define poll innocuous_poll |
| 16763 |
> |
fi |
| 16764 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16765 |
> |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16766 |
> |
fi |
| 16767 |
|
|
| 16768 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
| 14235 |
< |
which can conflict with char poll (); below. |
| 14236 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14237 |
< |
<limits.h> exists even on freestanding compilers. */ |
| 16768 |
> |
fi |
| 16769 |
|
|
| 14239 |
– |
#ifdef __STDC__ |
| 14240 |
– |
# include <limits.h> |
| 14241 |
– |
#else |
| 14242 |
– |
# include <assert.h> |
| 14243 |
– |
#endif |
| 16770 |
|
|
| 16771 |
< |
#undef poll |
| 16771 |
> |
|
| 16772 |
> |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 16773 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 16774 |
> |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 16775 |
> |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 16776 |
> |
$as_echo_n "(cached) " >&6 |
| 16777 |
> |
else |
| 16778 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16779 |
> |
LIBS="-lssl $LIBS" |
| 16780 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16781 |
> |
/* end confdefs.h. */ |
| 16782 |
|
|
| 16783 |
|
/* Override any GCC internal prototype to avoid an error. |
| 16784 |
|
Use char because int might match the return type of a GCC |
| 16786 |
|
#ifdef __cplusplus |
| 16787 |
|
extern "C" |
| 16788 |
|
#endif |
| 16789 |
< |
char poll (); |
| 14254 |
< |
/* The GNU C library defines this for functions which it implements |
| 14255 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14256 |
< |
something starting with __ and the normal name is an alias. */ |
| 14257 |
< |
#if defined __stub_poll || defined __stub___poll |
| 14258 |
< |
choke me |
| 14259 |
< |
#endif |
| 14260 |
< |
|
| 16789 |
> |
char SSL_connect (); |
| 16790 |
|
int |
| 16791 |
|
main () |
| 16792 |
|
{ |
| 16793 |
< |
return poll (); |
| 16793 |
> |
return SSL_connect (); |
| 16794 |
|
; |
| 16795 |
|
return 0; |
| 16796 |
|
} |
| 16797 |
|
_ACEOF |
| 16798 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 16799 |
< |
is_poll_mechanism_available="yes" |
| 16799 |
> |
ac_cv_lib_ssl_SSL_connect=yes |
| 16800 |
|
else |
| 16801 |
< |
is_poll_mechanism_available="no" |
| 16801 |
> |
ac_cv_lib_ssl_SSL_connect=no |
| 16802 |
|
fi |
| 16803 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 16804 |
|
conftest$ac_exeext conftest.$ac_ext |
| 16805 |
< |
iopoll_mechanism_select=6 |
| 16806 |
< |
|
| 16807 |
< |
cat >>confdefs.h <<_ACEOF |
| 16808 |
< |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 16805 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 16806 |
> |
fi |
| 16807 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 16808 |
> |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 16809 |
> |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 16810 |
> |
cat >>confdefs.h <<_ACEOF |
| 16811 |
> |
#define HAVE_LIBSSL 1 |
| 16812 |
|
_ACEOF |
| 16813 |
|
|
| 16814 |
+ |
LIBS="-lssl $LIBS" |
| 16815 |
+ |
|
| 16816 |
+ |
fi |
| 16817 |
+ |
|
| 16818 |
+ |
fi |
| 16819 |
+ |
|
| 16820 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5 |
| 16821 |
+ |
$as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; } |
| 16822 |
+ |
if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then : |
| 16823 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 16824 |
+ |
$as_echo "found" >&6; } |
| 16825 |
+ |
else |
| 16826 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
| 16827 |
+ |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
| 16828 |
+ |
fi |
| 16829 |
+ |
|
| 16830 |
+ |
fi |
| 16831 |
+ |
|
| 16832 |
+ |
if test "$with_tls" = "gnutls" || |
| 16833 |
+ |
test "$with_tls" = "auto"; then |
| 16834 |
+ |
if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then |
| 16835 |
+ |
|
| 16836 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" |
| 16837 |
+ |
if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : |
| 16838 |
+ |
|
| 16839 |
+ |
if test "$cross_compiling" = yes; then : |
| 16840 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16841 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16842 |
+ |
as_fn_error $? "cannot run test program while cross compiling |
| 16843 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
| 16844 |
+ |
else |
| 16845 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16846 |
|
/* end confdefs.h. */ |
| 14284 |
– |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14285 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14286 |
– |
#define select innocuous_select |
| 16847 |
|
|
| 14288 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 14289 |
– |
which can conflict with char select (); below. |
| 14290 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14291 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 16848 |
|
|
| 16849 |
< |
#ifdef __STDC__ |
| 16850 |
< |
# include <limits.h> |
| 16851 |
< |
#else |
| 16852 |
< |
# include <assert.h> |
| 16853 |
< |
#endif |
| 16849 |
> |
#include <gnutls/gnutls.h> |
| 16850 |
> |
#include <stdlib.h> |
| 16851 |
> |
int |
| 16852 |
> |
main () |
| 16853 |
> |
{ |
| 16854 |
|
|
| 16855 |
< |
#undef select |
| 16855 |
> |
exit(!(GNUTLS_VERSION_NUMBER >= 0x030605)); |
| 16856 |
> |
; |
| 16857 |
> |
return 0; |
| 16858 |
> |
} |
| 16859 |
> |
_ACEOF |
| 16860 |
> |
if ac_fn_c_try_run "$LINENO"; then : |
| 16861 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5 |
| 16862 |
> |
$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; } |
| 16863 |
> |
if ${ac_cv_lib_gnutls_gnutls_init+:} false; then : |
| 16864 |
> |
$as_echo_n "(cached) " >&6 |
| 16865 |
> |
else |
| 16866 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16867 |
> |
LIBS="-lgnutls $LIBS" |
| 16868 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16869 |
> |
/* end confdefs.h. */ |
| 16870 |
|
|
| 16871 |
|
/* Override any GCC internal prototype to avoid an error. |
| 16872 |
|
Use char because int might match the return type of a GCC |
| 16874 |
|
#ifdef __cplusplus |
| 16875 |
|
extern "C" |
| 16876 |
|
#endif |
| 16877 |
< |
char select (); |
| 14308 |
< |
/* The GNU C library defines this for functions which it implements |
| 14309 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 14310 |
< |
something starting with __ and the normal name is an alias. */ |
| 14311 |
< |
#if defined __stub_select || defined __stub___select |
| 14312 |
< |
choke me |
| 14313 |
< |
#endif |
| 14314 |
< |
|
| 16877 |
> |
char gnutls_init (); |
| 16878 |
|
int |
| 16879 |
|
main () |
| 16880 |
|
{ |
| 16881 |
< |
return select (); |
| 16881 |
> |
return gnutls_init (); |
| 16882 |
|
; |
| 16883 |
|
return 0; |
| 16884 |
|
} |
| 16885 |
|
_ACEOF |
| 16886 |
|
if ac_fn_c_try_link "$LINENO"; then : |
| 16887 |
< |
is_select_mechanism_available="yes" |
| 16887 |
> |
ac_cv_lib_gnutls_gnutls_init=yes |
| 16888 |
|
else |
| 16889 |
< |
is_select_mechanism_available="no" |
| 16889 |
> |
ac_cv_lib_gnutls_gnutls_init=no |
| 16890 |
|
fi |
| 16891 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 16892 |
|
conftest$ac_exeext conftest.$ac_ext |
| 16893 |
< |
optimal_iopoll_mechanism="none" |
| 16894 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
| 16895 |
< |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 16896 |
< |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 16897 |
< |
optimal_iopoll_mechanism="$mechanism" |
| 16898 |
< |
break |
| 16899 |
< |
fi |
| 14337 |
< |
done |
| 14338 |
< |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14339 |
< |
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14340 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14341 |
< |
$as_echo "none" >&6; } |
| 14342 |
< |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
| 14343 |
< |
else |
| 14344 |
< |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
| 14345 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14346 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14347 |
< |
fi |
| 14348 |
< |
else |
| 14349 |
< |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
| 14350 |
< |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
| 14351 |
< |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
| 14352 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14353 |
< |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14354 |
< |
else |
| 14355 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14356 |
< |
$as_echo "none" >&6; } |
| 14357 |
< |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14358 |
< |
fi |
| 14359 |
< |
fi |
| 14360 |
< |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14361 |
< |
|
| 14362 |
< |
cat >>confdefs.h <<_ACEOF |
| 14363 |
< |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 16893 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 16894 |
> |
fi |
| 16895 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5 |
| 16896 |
> |
$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; } |
| 16897 |
> |
if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then : |
| 16898 |
> |
cat >>confdefs.h <<_ACEOF |
| 16899 |
> |
#define HAVE_LIBGNUTLS 1 |
| 16900 |
|
_ACEOF |
| 16901 |
|
|
| 16902 |
+ |
LIBS="-lgnutls $LIBS" |
| 16903 |
+ |
|
| 16904 |
+ |
fi |
| 16905 |
+ |
|
| 16906 |
+ |
fi |
| 16907 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16908 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16909 |
+ |
fi |
| 16910 |
+ |
|
| 16911 |
+ |
fi |
| 16912 |
|
|
| 16913 |
|
|
| 16914 |
|
|
| 16915 |
< |
# Check whether --with-nicklen was given. |
| 16916 |
< |
if test "${with_nicklen+set}" = set; then : |
| 16917 |
< |
withval=$with_nicklen; nicklen="$withval" |
| 16915 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5 |
| 16916 |
> |
$as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; } |
| 16917 |
> |
if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then : |
| 16918 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 16919 |
> |
$as_echo "found" >&6; } |
| 16920 |
|
else |
| 16921 |
< |
nicklen="9" |
| 16921 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5 |
| 16922 |
> |
$as_echo "no - GnuTLS support disabled" >&6; } |
| 16923 |
|
fi |
| 16924 |
|
|
| 16925 |
+ |
fi |
| 16926 |
+ |
fi |
| 16927 |
|
|
| 16928 |
< |
cat >>confdefs.h <<_ACEOF |
| 16929 |
< |
#define NICKLEN ($nicklen) |
| 16930 |
< |
_ACEOF |
| 16928 |
> |
if test "$with_tls" = "wolfssl" || |
| 16929 |
> |
test "$with_tls" = "auto"; then |
| 16930 |
> |
if test "$ac_cv_lib_ssl_SSL_connect" != "yes" && |
| 16931 |
> |
test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then |
| 16932 |
|
|
| 16933 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default" |
| 16934 |
+ |
if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then : |
| 16935 |
+ |
|
| 16936 |
+ |
if test "$cross_compiling" = yes; then : |
| 16937 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16938 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16939 |
+ |
as_fn_error $? "cannot run test program while cross compiling |
| 16940 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
| 16941 |
+ |
else |
| 16942 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16943 |
+ |
/* end confdefs.h. */ |
| 16944 |
|
|
| 16945 |
|
|
| 16946 |
+ |
#include <wolfssl/version.h> |
| 16947 |
+ |
#include <stdlib.h> |
| 16948 |
+ |
int |
| 16949 |
+ |
main () |
| 16950 |
+ |
{ |
| 16951 |
|
|
| 16952 |
< |
# Check whether --with-topiclen was given. |
| 16953 |
< |
if test "${with_topiclen+set}" = set; then : |
| 16954 |
< |
withval=$with_topiclen; topiclen="$withval" |
| 16952 |
> |
exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000)); |
| 16953 |
> |
; |
| 16954 |
> |
return 0; |
| 16955 |
> |
} |
| 16956 |
> |
_ACEOF |
| 16957 |
> |
if ac_fn_c_try_run "$LINENO"; then : |
| 16958 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5 |
| 16959 |
> |
$as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; } |
| 16960 |
> |
if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then : |
| 16961 |
> |
$as_echo_n "(cached) " >&6 |
| 16962 |
> |
else |
| 16963 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 16964 |
> |
LIBS="-lwolfssl $LIBS" |
| 16965 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16966 |
> |
/* end confdefs.h. */ |
| 16967 |
> |
|
| 16968 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 16969 |
> |
Use char because int might match the return type of a GCC |
| 16970 |
> |
builtin and then its argument prototype would still apply. */ |
| 16971 |
> |
#ifdef __cplusplus |
| 16972 |
> |
extern "C" |
| 16973 |
> |
#endif |
| 16974 |
> |
char wolfSSL_X509_digest (); |
| 16975 |
> |
int |
| 16976 |
> |
main () |
| 16977 |
> |
{ |
| 16978 |
> |
return wolfSSL_X509_digest (); |
| 16979 |
> |
; |
| 16980 |
> |
return 0; |
| 16981 |
> |
} |
| 16982 |
> |
_ACEOF |
| 16983 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 16984 |
> |
ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes |
| 16985 |
|
else |
| 16986 |
< |
topiclen="160" |
| 16986 |
> |
ac_cv_lib_wolfssl_wolfSSL_X509_digest=no |
| 16987 |
|
fi |
| 16988 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 16989 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 16990 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 16991 |
+ |
fi |
| 16992 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5 |
| 16993 |
+ |
$as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; } |
| 16994 |
+ |
if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then : |
| 16995 |
+ |
cat >>confdefs.h <<_ACEOF |
| 16996 |
+ |
#define HAVE_LIBWOLFSSL 1 |
| 16997 |
+ |
_ACEOF |
| 16998 |
|
|
| 16999 |
+ |
LIBS="-lwolfssl $LIBS" |
| 17000 |
|
|
| 17001 |
< |
cat >>confdefs.h <<_ACEOF |
| 17002 |
< |
#define TOPICLEN ($topiclen) |
| 17003 |
< |
_ACEOF |
| 17001 |
> |
fi |
| 17002 |
> |
|
| 17003 |
> |
fi |
| 17004 |
> |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17005 |
> |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17006 |
> |
fi |
| 17007 |
> |
|
| 17008 |
> |
fi |
| 17009 |
|
|
| 17010 |
|
|
| 17011 |
|
|
| 17012 |
< |
# Check whether --enable-halfops was given. |
| 17013 |
< |
if test "${enable_halfops+set}" = set; then : |
| 17014 |
< |
enableval=$enable_halfops; halfops="$enableval" |
| 17012 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5 |
| 17013 |
> |
$as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; } |
| 17014 |
> |
if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then : |
| 17015 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 17016 |
> |
$as_echo "found" >&6; } |
| 17017 |
|
else |
| 17018 |
< |
halfops="no" |
| 17018 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5 |
| 17019 |
> |
$as_echo "no - wolfSSL support disabled" >&6; } |
| 17020 |
|
fi |
| 17021 |
|
|
| 17022 |
< |
if test "$halfops" = "yes" ; then |
| 17022 |
> |
fi |
| 17023 |
> |
fi |
| 17024 |
|
|
| 14407 |
– |
$as_echo "#define HALFOPS 1" >>confdefs.h |
| 17025 |
|
|
| 14409 |
– |
fi |
| 17026 |
|
|
| 17027 |
+ |
# Disable -Wformat-truncation |
| 17028 |
|
|
| 17029 |
< |
# Check whether --enable-debugging was given. |
| 17030 |
< |
if test "${enable_debugging+set}" = set; then : |
| 17031 |
< |
enableval=$enable_debugging; debugging="$enableval" |
| 17029 |
> |
|
| 17030 |
> |
|
| 17031 |
> |
|
| 17032 |
> |
for flag in -Wno-format-truncation; do |
| 17033 |
> |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 17034 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 17035 |
> |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 17036 |
> |
if eval \${$as_CACHEVAR+:} false; then : |
| 17037 |
> |
$as_echo_n "(cached) " >&6 |
| 17038 |
|
else |
| 17039 |
< |
debugging="no" |
| 17039 |
> |
|
| 17040 |
> |
ax_check_save_flags=$CFLAGS |
| 17041 |
> |
CFLAGS="$CFLAGS $flag" |
| 17042 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17043 |
> |
/* end confdefs.h. */ |
| 17044 |
> |
|
| 17045 |
> |
int |
| 17046 |
> |
main () |
| 17047 |
> |
{ |
| 17048 |
> |
|
| 17049 |
> |
; |
| 17050 |
> |
return 0; |
| 17051 |
> |
} |
| 17052 |
> |
_ACEOF |
| 17053 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17054 |
> |
eval "$as_CACHEVAR=yes" |
| 17055 |
> |
else |
| 17056 |
> |
eval "$as_CACHEVAR=no" |
| 17057 |
> |
fi |
| 17058 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17059 |
> |
CFLAGS=$ax_check_save_flags |
| 17060 |
|
fi |
| 17061 |
+ |
eval ac_res=\$$as_CACHEVAR |
| 17062 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17063 |
+ |
$as_echo "$ac_res" >&6; } |
| 17064 |
+ |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 17065 |
|
|
| 17066 |
< |
if test "$debugging" = "yes" ; then |
| 17066 |
> |
if ${CFLAGS+:} false; then : |
| 17067 |
|
|
| 17068 |
< |
$as_echo "#define DEBUG 1" >>confdefs.h |
| 17068 |
> |
case " $CFLAGS " in #( |
| 17069 |
> |
*" $flag "*) : |
| 17070 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
| 17071 |
> |
(: CFLAGS already contains $flag) 2>&5 |
| 17072 |
> |
ac_status=$? |
| 17073 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17074 |
> |
test $ac_status = 0; } ;; #( |
| 17075 |
> |
*) : |
| 17076 |
|
|
| 17077 |
< |
CFLAGS="-Wall -g -O0" |
| 17078 |
< |
else |
| 17077 |
> |
as_fn_append CFLAGS " $flag" |
| 17078 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 17079 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 17080 |
> |
ac_status=$? |
| 17081 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17082 |
> |
test $ac_status = 0; } |
| 17083 |
> |
;; |
| 17084 |
> |
esac |
| 17085 |
|
|
| 17086 |
< |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 17086 |
> |
else |
| 17087 |
|
|
| 17088 |
< |
fi |
| 17088 |
> |
CFLAGS=$flag |
| 17089 |
> |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
| 17090 |
> |
(: CFLAGS="$CFLAGS") 2>&5 |
| 17091 |
> |
ac_status=$? |
| 17092 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17093 |
> |
test $ac_status = 0; } |
| 17094 |
|
|
| 17095 |
+ |
fi |
| 17096 |
|
|
| 14431 |
– |
# Check whether --enable-warnings was given. |
| 14432 |
– |
if test "${enable_warnings+set}" = set; then : |
| 14433 |
– |
enableval=$enable_warnings; warnings="$enableval" |
| 17097 |
|
else |
| 17098 |
< |
warnings="no" |
| 17098 |
> |
: |
| 17099 |
|
fi |
| 17100 |
|
|
| 17101 |
< |
if test "$warnings" = "yes" ; then |
| 14439 |
< |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 14440 |
< |
fi |
| 17101 |
> |
done |
| 17102 |
|
|
| 17103 |
|
|
| 17104 |
|
|
| 17187 |
|
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 17188 |
|
|
| 17189 |
|
|
| 17190 |
< |
ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 17190 |
> |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile" |
| 17191 |
|
|
| 17192 |
|
|
| 17193 |
|
cat >confcache <<\_ACEOF |
| 17353 |
|
|
| 17354 |
|
|
| 17355 |
|
|
| 14695 |
– |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
| 14696 |
– |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
| 14697 |
– |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14698 |
– |
fi |
| 17356 |
|
|
| 17357 |
|
: "${CONFIG_STATUS=./config.status}" |
| 17358 |
|
ac_write_fail=0 |
| 17750 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
| 17751 |
|
# values after options handling. |
| 17752 |
|
ac_log=" |
| 17753 |
< |
This file was extended by ircd-hybrid $as_me 8beta1, which was |
| 17753 |
> |
This file was extended by ircd-hybrid $as_me 8.2.39, which was |
| 17754 |
|
generated by GNU Autoconf 2.69. Invocation command line was |
| 17755 |
|
|
| 17756 |
|
CONFIG_FILES = $CONFIG_FILES |
| 17816 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17817 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 17818 |
|
ac_cs_version="\\ |
| 17819 |
< |
ircd-hybrid config.status 8beta1 |
| 17819 |
> |
ircd-hybrid config.status 8.2.39 |
| 17820 |
|
configured by $0, generated by GNU Autoconf 2.69, |
| 17821 |
|
with options \\"\$ac_cs_config\\" |
| 17822 |
|
|
| 17935 |
|
# |
| 17936 |
|
# INIT-COMMANDS |
| 17937 |
|
# |
| 17938 |
< |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 17938 |
> |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 17939 |
|
|
| 17940 |
|
|
| 17941 |
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17951 |
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 17952 |
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 17953 |
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 17954 |
+ |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 17955 |
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 17956 |
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 17957 |
|
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 18001 |
|
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 18002 |
|
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 18003 |
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 18004 |
+ |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 18005 |
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 18006 |
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 18007 |
+ |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 18008 |
|
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 18009 |
|
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 18010 |
+ |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 18011 |
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 18012 |
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 18013 |
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 18072 |
|
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 18073 |
|
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 18074 |
|
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18075 |
< |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 18075 |
> |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 18076 |
> |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 18077 |
|
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 18078 |
|
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 18079 |
|
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 18124 |
|
compiler \ |
| 18125 |
|
lt_cv_sys_global_symbol_pipe \ |
| 18126 |
|
lt_cv_sys_global_symbol_to_cdecl \ |
| 18127 |
+ |
lt_cv_sys_global_symbol_to_import \ |
| 18128 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
| 18129 |
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 18130 |
+ |
lt_cv_nm_interface \ |
| 18131 |
|
nm_file_list_spec \ |
| 18132 |
+ |
lt_cv_truncate_bin \ |
| 18133 |
|
lt_prog_compiler_no_builtin_flag \ |
| 18134 |
|
lt_prog_compiler_pic \ |
| 18135 |
|
lt_prog_compiler_wl \ |
| 18164 |
|
striplib; do |
| 18165 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18166 |
|
*[\\\\\\\`\\"\\\$]*) |
| 18167 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 18167 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 18168 |
|
;; |
| 18169 |
|
*) |
| 18170 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18191 |
|
postuninstall_cmds \ |
| 18192 |
|
finish_cmds \ |
| 18193 |
|
sys_lib_search_path_spec \ |
| 18194 |
< |
sys_lib_dlsearch_path_spec; do |
| 18194 |
> |
configure_time_dlsearch_path \ |
| 18195 |
> |
configure_time_lt_sys_library_path; do |
| 18196 |
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 18197 |
|
*[\\\\\\\`\\"\\\$]*) |
| 18198 |
< |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 18198 |
> |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 18199 |
|
;; |
| 18200 |
|
*) |
| 18201 |
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18204 |
|
done |
| 18205 |
|
|
| 18206 |
|
ac_aux_dir='$ac_aux_dir' |
| 15541 |
– |
xsi_shell='$xsi_shell' |
| 15542 |
– |
lt_shell_append='$lt_shell_append' |
| 18207 |
|
|
| 18208 |
< |
# See if we are running on zsh, and set the options which allow our |
| 18208 |
> |
# See if we are running on zsh, and set the options that allow our |
| 18209 |
|
# commands through without removal of \ escapes INIT. |
| 18210 |
< |
if test -n "\${ZSH_VERSION+set}" ; then |
| 18210 |
> |
if test -n "\${ZSH_VERSION+set}"; then |
| 18211 |
|
setopt NO_GLOB_SUBST |
| 18212 |
|
fi |
| 18213 |
|
|
| 18214 |
|
|
| 18215 |
|
PACKAGE='$PACKAGE' |
| 18216 |
|
VERSION='$VERSION' |
| 15553 |
– |
TIMESTAMP='$TIMESTAMP' |
| 18217 |
|
RM='$RM' |
| 18218 |
|
ofile='$ofile' |
| 18219 |
|
|
| 18232 |
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 18233 |
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 18234 |
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15572 |
– |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
| 15573 |
– |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
| 18235 |
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 18236 |
|
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 15576 |
– |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
| 18237 |
|
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 18238 |
|
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 18239 |
+ |
"modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;; |
| 18240 |
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 18241 |
|
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15581 |
– |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15582 |
– |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 18242 |
|
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 18243 |
|
|
| 18244 |
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 18836 |
|
|
| 18837 |
|
case $ac_file$ac_mode in |
| 18838 |
|
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 18839 |
< |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 18839 |
> |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 18840 |
|
# are listed without --file. Let's play safe and only enable the eval |
| 18841 |
|
# if we detect the quoting. |
| 18842 |
< |
case $CONFIG_FILES in |
| 18843 |
< |
*\'*) eval set x "$CONFIG_FILES" ;; |
| 18844 |
< |
*) set x $CONFIG_FILES ;; |
| 18845 |
< |
esac |
| 18842 |
> |
# TODO: see whether this extra hack can be removed once we start |
| 18843 |
> |
# requiring Autoconf 2.70 or later. |
| 18844 |
> |
case $CONFIG_FILES in #( |
| 18845 |
> |
*\'*) : |
| 18846 |
> |
eval set x "$CONFIG_FILES" ;; #( |
| 18847 |
> |
*) : |
| 18848 |
> |
set x $CONFIG_FILES ;; #( |
| 18849 |
> |
*) : |
| 18850 |
> |
;; |
| 18851 |
> |
esac |
| 18852 |
|
shift |
| 18853 |
< |
for mf |
| 18853 |
> |
# Used to flag and report bootstrapping failures. |
| 18854 |
> |
am_rc=0 |
| 18855 |
> |
for am_mf |
| 18856 |
|
do |
| 18857 |
|
# Strip MF so we end up with the name of the file. |
| 18858 |
< |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 18859 |
< |
# Check whether this is an Automake generated Makefile or not. |
| 18860 |
< |
# We used to match only the files named 'Makefile.in', but |
| 18861 |
< |
# some people rename them; so instead we look at the file content. |
| 16195 |
< |
# Grep'ing the first line is not enough: some people post-process |
| 16196 |
< |
# each Makefile.in and add a new line on top of each file to say so. |
| 16197 |
< |
# Grep'ing the whole file is not good either: AIX grep has a line |
| 18858 |
> |
am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` |
| 18859 |
> |
# Check whether this is an Automake generated Makefile which includes |
| 18860 |
> |
# dependency-tracking related rules and includes. |
| 18861 |
> |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 18862 |
|
# limit of 2048, but all sed's we know have understand at least 4000. |
| 18863 |
< |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 18864 |
< |
dirpart=`$as_dirname -- "$mf" || |
| 18865 |
< |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18866 |
< |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 18867 |
< |
X"$mf" : 'X\(//\)$' \| \ |
| 18868 |
< |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 18869 |
< |
$as_echo X"$mf" | |
| 18863 |
> |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 18864 |
> |
|| continue |
| 18865 |
> |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 18866 |
> |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18867 |
> |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 18868 |
> |
X"$am_mf" : 'X\(//\)$' \| \ |
| 18869 |
> |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 18870 |
> |
$as_echo X"$am_mf" | |
| 18871 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18872 |
|
s//\1/ |
| 18873 |
|
q |
| 18885 |
|
q |
| 18886 |
|
} |
| 18887 |
|
s/.*/./; q'` |
| 18888 |
< |
else |
| 18889 |
< |
continue |
| 18890 |
< |
fi |
| 18891 |
< |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 18892 |
< |
# from the Makefile without running 'make'. |
| 18893 |
< |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16229 |
< |
test -z "$DEPDIR" && continue |
| 16230 |
< |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16231 |
< |
test -z "am__include" && continue |
| 16232 |
< |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16233 |
< |
# Find all dependency output files, they are included files with |
| 16234 |
< |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16235 |
< |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 16236 |
< |
# expansion. |
| 16237 |
< |
for file in `sed -n " |
| 16238 |
< |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16239 |
< |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 16240 |
< |
# Make sure the directory exists. |
| 16241 |
< |
test -f "$dirpart/$file" && continue |
| 16242 |
< |
fdir=`$as_dirname -- "$file" || |
| 16243 |
< |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16244 |
< |
X"$file" : 'X\(//\)[^/]' \| \ |
| 16245 |
< |
X"$file" : 'X\(//\)$' \| \ |
| 16246 |
< |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 16247 |
< |
$as_echo X"$file" | |
| 16248 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16249 |
< |
s//\1/ |
| 16250 |
< |
q |
| 16251 |
< |
} |
| 16252 |
< |
/^X\(\/\/\)[^/].*/{ |
| 18888 |
> |
am_filepart=`$as_basename -- "$am_mf" || |
| 18889 |
> |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18890 |
> |
X"$am_mf" : 'X\(//\)$' \| \ |
| 18891 |
> |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 18892 |
> |
$as_echo X/"$am_mf" | |
| 18893 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18894 |
|
s//\1/ |
| 18895 |
|
q |
| 18896 |
|
} |
| 18897 |
< |
/^X\(\/\/\)$/{ |
| 18897 |
> |
/^X\/\(\/\/\)$/{ |
| 18898 |
|
s//\1/ |
| 18899 |
|
q |
| 18900 |
|
} |
| 18901 |
< |
/^X\(\/\).*/{ |
| 18901 |
> |
/^X\/\(\/\).*/{ |
| 18902 |
|
s//\1/ |
| 18903 |
|
q |
| 18904 |
|
} |
| 18905 |
|
s/.*/./; q'` |
| 18906 |
< |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 18907 |
< |
# echo "creating $dirpart/$file" |
| 18908 |
< |
echo '# dummy' > "$dirpart/$file" |
| 18909 |
< |
done |
| 18906 |
> |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 18907 |
> |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 18908 |
> |
| $MAKE -f - am--depfiles" >&5 |
| 18909 |
> |
(cd "$am_dirpart" \ |
| 18910 |
> |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 18911 |
> |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 18912 |
> |
ac_status=$? |
| 18913 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18914 |
> |
(exit $ac_status); } || am_rc=$? |
| 18915 |
|
done |
| 18916 |
+ |
if test $am_rc -ne 0; then |
| 18917 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 18918 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 18919 |
+ |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 18920 |
+ |
for automatic dependency tracking. Try re-running configure with the |
| 18921 |
+ |
'--disable-dependency-tracking' option to at least be able to build |
| 18922 |
+ |
the package (albeit without support for automatic dependency tracking). |
| 18923 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
| 18924 |
+ |
fi |
| 18925 |
+ |
{ am_dirpart=; unset am_dirpart;} |
| 18926 |
+ |
{ am_filepart=; unset am_filepart;} |
| 18927 |
+ |
{ am_mf=; unset am_mf;} |
| 18928 |
+ |
{ am_rc=; unset am_rc;} |
| 18929 |
+ |
rm -f conftest-deps.mk |
| 18930 |
|
} |
| 18931 |
|
;; |
| 18932 |
|
"libtool":C) |
| 18933 |
|
|
| 18934 |
< |
# See if we are running on zsh, and set the options which allow our |
| 18934 |
> |
# See if we are running on zsh, and set the options that allow our |
| 18935 |
|
# commands through without removal of \ escapes. |
| 18936 |
< |
if test -n "${ZSH_VERSION+set}" ; then |
| 18936 |
> |
if test -n "${ZSH_VERSION+set}"; then |
| 18937 |
|
setopt NO_GLOB_SUBST |
| 18938 |
|
fi |
| 18939 |
|
|
| 18940 |
< |
cfgfile="${ofile}T" |
| 18940 |
> |
cfgfile=${ofile}T |
| 18941 |
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 18942 |
|
$RM "$cfgfile" |
| 18943 |
|
|
| 18944 |
|
cat <<_LT_EOF >> "$cfgfile" |
| 18945 |
|
#! $SHELL |
| 18946 |
< |
|
| 16287 |
< |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16288 |
< |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16289 |
< |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18946 |
> |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
| 18947 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 18948 |
+ |
|
| 18949 |
+ |
# Provide generalized library-building support services. |
| 18950 |
+ |
# Written by Gordon Matzigkeit, 1996 |
| 18951 |
+ |
|
| 18952 |
+ |
# Copyright (C) 2014 Free Software Foundation, Inc. |
| 18953 |
+ |
# This is free software; see the source for copying conditions. There is NO |
| 18954 |
+ |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 18955 |
+ |
|
| 18956 |
+ |
# GNU Libtool is free software; you can redistribute it and/or modify |
| 18957 |
+ |
# it under the terms of the GNU General Public License as published by |
| 18958 |
+ |
# the Free Software Foundation; either version 2 of of the License, or |
| 18959 |
+ |
# (at your option) any later version. |
| 18960 |
|
# |
| 18961 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 18962 |
< |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 18963 |
< |
# Foundation, Inc. |
| 18964 |
< |
# Written by Gordon Matzigkeit, 1996 |
| 16296 |
< |
# |
| 16297 |
< |
# This file is part of GNU Libtool. |
| 16298 |
< |
# |
| 16299 |
< |
# GNU Libtool is free software; you can redistribute it and/or |
| 16300 |
< |
# modify it under the terms of the GNU General Public License as |
| 16301 |
< |
# published by the Free Software Foundation; either version 2 of |
| 16302 |
< |
# the License, or (at your option) any later version. |
| 16303 |
< |
# |
| 16304 |
< |
# As a special exception to the GNU General Public License, |
| 16305 |
< |
# if you distribute this file as part of a program or library that |
| 16306 |
< |
# is built using GNU Libtool, you may include this file under the |
| 16307 |
< |
# same distribution terms that you use for the rest of that program. |
| 18961 |
> |
# As a special exception to the GNU General Public License, if you |
| 18962 |
> |
# distribute this file as part of a program or library that is built |
| 18963 |
> |
# using GNU Libtool, you may include this file under the same |
| 18964 |
> |
# distribution terms that you use for the rest of that program. |
| 18965 |
|
# |
| 18966 |
< |
# GNU Libtool is distributed in the hope that it will be useful, |
| 18967 |
< |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18966 |
> |
# GNU Libtool is distributed in the hope that it will be useful, but |
| 18967 |
> |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18968 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18969 |
|
# GNU General Public License for more details. |
| 18970 |
|
# |
| 18971 |
|
# You should have received a copy of the GNU General Public License |
| 18972 |
< |
# along with GNU Libtool; see the file COPYING. If not, a copy |
| 16316 |
< |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16317 |
< |
# obtained by writing to the Free Software Foundation, Inc., |
| 16318 |
< |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18972 |
> |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18973 |
|
|
| 18974 |
|
|
| 18975 |
|
# The names of the tagged configurations supported by this script. |
| 18976 |
< |
available_tags="" |
| 18976 |
> |
available_tags='' |
| 18977 |
> |
|
| 18978 |
> |
# Configured defaults for sys_lib_dlsearch_path munging. |
| 18979 |
> |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 18980 |
|
|
| 18981 |
|
# ### BEGIN LIBTOOL CONFIG |
| 18982 |
|
|
| 18996 |
|
# Whether or not to optimize for fast installation. |
| 18997 |
|
fast_install=$enable_fast_install |
| 18998 |
|
|
| 18999 |
+ |
# Shared archive member basename,for filename based shared library versioning on AIX. |
| 19000 |
+ |
shared_archive_member_spec=$shared_archive_member_spec |
| 19001 |
+ |
|
| 19002 |
|
# Shell to use when invoking shell scripts. |
| 19003 |
|
SHELL=$lt_SHELL |
| 19004 |
|
|
| 19116 |
|
# Transform the output of nm in a proper C declaration. |
| 19117 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19118 |
|
|
| 19119 |
+ |
# Transform the output of nm into a list of symbols to manually relocate. |
| 19120 |
+ |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 19121 |
+ |
|
| 19122 |
|
# Transform the output of nm in a C name address pair. |
| 19123 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19124 |
|
|
| 19125 |
|
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 19126 |
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 19127 |
|
|
| 19128 |
+ |
# The name lister interface. |
| 19129 |
+ |
nm_interface=$lt_lt_cv_nm_interface |
| 19130 |
+ |
|
| 19131 |
|
# Specify filename containing input files for \$NM. |
| 19132 |
|
nm_file_list_spec=$lt_nm_file_list_spec |
| 19133 |
|
|
| 19134 |
< |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
| 19134 |
> |
# The root where to search for dependent libraries,and where our libraries should be installed. |
| 19135 |
|
lt_sysroot=$lt_sysroot |
| 19136 |
|
|
| 19137 |
+ |
# Command to truncate a binary pipe. |
| 19138 |
+ |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 19139 |
+ |
|
| 19140 |
|
# The name of the directory that contains temporary libtool files. |
| 19141 |
|
objdir=$objdir |
| 19142 |
|
|
| 19227 |
|
# Compile-time system search path for libraries. |
| 19228 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19229 |
|
|
| 19230 |
< |
# Run-time system search path for libraries. |
| 19231 |
< |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19230 |
> |
# Detected run-time system search path for libraries. |
| 19231 |
> |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 19232 |
> |
|
| 19233 |
> |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 19234 |
> |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 19235 |
|
|
| 19236 |
|
# Whether dlopen is supported. |
| 19237 |
|
dlopen_support=$enable_dlopen |
| 19324 |
|
# Whether we need a single "-rpath" flag with a separated argument. |
| 19325 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 19326 |
|
|
| 19327 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19327 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 19328 |
|
# DIR into the resulting binary. |
| 19329 |
|
hardcode_direct=$hardcode_direct |
| 19330 |
|
|
| 19331 |
< |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 19331 |
> |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 19332 |
|
# DIR into the resulting binary and the resulting library dependency is |
| 19333 |
< |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 19333 |
> |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 19334 |
|
# library is relocated. |
| 19335 |
|
hardcode_direct_absolute=$hardcode_direct_absolute |
| 19336 |
|
|
| 19382 |
|
|
| 19383 |
|
_LT_EOF |
| 19384 |
|
|
| 19385 |
+ |
cat <<'_LT_EOF' >> "$cfgfile" |
| 19386 |
+ |
|
| 19387 |
+ |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 19388 |
+ |
|
| 19389 |
+ |
# func_munge_path_list VARIABLE PATH |
| 19390 |
+ |
# ----------------------------------- |
| 19391 |
+ |
# VARIABLE is name of variable containing _space_ separated list of |
| 19392 |
+ |
# directories to be munged by the contents of PATH, which is string |
| 19393 |
+ |
# having a format: |
| 19394 |
+ |
# "DIR[:DIR]:" |
| 19395 |
+ |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 19396 |
+ |
# ":DIR[:DIR]" |
| 19397 |
+ |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 19398 |
+ |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 19399 |
+ |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 19400 |
+ |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 19401 |
+ |
# "DIR[:DIR]" |
| 19402 |
+ |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 19403 |
+ |
func_munge_path_list () |
| 19404 |
+ |
{ |
| 19405 |
+ |
case x$2 in |
| 19406 |
+ |
x) |
| 19407 |
+ |
;; |
| 19408 |
+ |
*:) |
| 19409 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 19410 |
+ |
;; |
| 19411 |
+ |
x:*) |
| 19412 |
+ |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 19413 |
+ |
;; |
| 19414 |
+ |
*::*) |
| 19415 |
+ |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 19416 |
+ |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 19417 |
+ |
;; |
| 19418 |
+ |
*) |
| 19419 |
+ |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 19420 |
+ |
;; |
| 19421 |
+ |
esac |
| 19422 |
+ |
} |
| 19423 |
+ |
|
| 19424 |
+ |
|
| 19425 |
+ |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 19426 |
+ |
func_cc_basename () |
| 19427 |
+ |
{ |
| 19428 |
+ |
for cc_temp in $*""; do |
| 19429 |
+ |
case $cc_temp in |
| 19430 |
+ |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19431 |
+ |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19432 |
+ |
\-*) ;; |
| 19433 |
+ |
*) break;; |
| 19434 |
+ |
esac |
| 19435 |
+ |
done |
| 19436 |
+ |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 19437 |
+ |
} |
| 19438 |
+ |
|
| 19439 |
+ |
|
| 19440 |
+ |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
| 19441 |
+ |
|
| 19442 |
+ |
_LT_EOF |
| 19443 |
+ |
|
| 19444 |
|
case $host_os in |
| 19445 |
|
aix3*) |
| 19446 |
|
cat <<\_LT_EOF >> "$cfgfile" |
| 19447 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 19448 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 19449 |
|
# vanish in a puff of smoke. |
| 19450 |
< |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 19450 |
> |
if test set != "${COLLECT_NAMES+set}"; then |
| 19451 |
|
COLLECT_NAMES= |
| 19452 |
|
export COLLECT_NAMES |
| 19453 |
|
fi |
| 19456 |
|
esac |
| 19457 |
|
|
| 19458 |
|
|
| 19459 |
< |
ltmain="$ac_aux_dir/ltmain.sh" |
| 19459 |
> |
ltmain=$ac_aux_dir/ltmain.sh |
| 19460 |
|
|
| 19461 |
|
|
| 19462 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
| 19466 |
|
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 19467 |
|
|| (rm -f "$cfgfile"; exit 1) |
| 19468 |
|
|
| 16738 |
– |
if test x"$xsi_shell" = xyes; then |
| 16739 |
– |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 16740 |
– |
func_dirname ()\ |
| 16741 |
– |
{\ |
| 16742 |
– |
\ case ${1} in\ |
| 16743 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16744 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
| 16745 |
– |
\ esac\ |
| 16746 |
– |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16747 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16748 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16749 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16750 |
– |
|
| 16751 |
– |
|
| 16752 |
– |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 16753 |
– |
func_basename ()\ |
| 16754 |
– |
{\ |
| 16755 |
– |
\ func_basename_result="${1##*/}"\ |
| 16756 |
– |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16757 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16758 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16759 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16760 |
– |
|
| 16761 |
– |
|
| 16762 |
– |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 16763 |
– |
func_dirname_and_basename ()\ |
| 16764 |
– |
{\ |
| 16765 |
– |
\ case ${1} in\ |
| 16766 |
– |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16767 |
– |
\ * ) func_dirname_result="${3}" ;;\ |
| 16768 |
– |
\ esac\ |
| 16769 |
– |
\ func_basename_result="${1##*/}"\ |
| 16770 |
– |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16771 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16772 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16773 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16774 |
– |
|
| 16775 |
– |
|
| 16776 |
– |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 16777 |
– |
func_stripname ()\ |
| 16778 |
– |
{\ |
| 16779 |
– |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 16780 |
– |
\ # positional parameters, so assign one to ordinary parameter first.\ |
| 16781 |
– |
\ func_stripname_result=${3}\ |
| 16782 |
– |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 16783 |
– |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 16784 |
– |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16785 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16786 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16787 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16788 |
– |
|
| 16789 |
– |
|
| 16790 |
– |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 16791 |
– |
func_split_long_opt ()\ |
| 16792 |
– |
{\ |
| 16793 |
– |
\ func_split_long_opt_name=${1%%=*}\ |
| 16794 |
– |
\ func_split_long_opt_arg=${1#*=}\ |
| 16795 |
– |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16796 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16797 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16798 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16799 |
– |
|
| 16800 |
– |
|
| 16801 |
– |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 16802 |
– |
func_split_short_opt ()\ |
| 16803 |
– |
{\ |
| 16804 |
– |
\ func_split_short_opt_arg=${1#??}\ |
| 16805 |
– |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 16806 |
– |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16807 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16808 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16809 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16810 |
– |
|
| 16811 |
– |
|
| 16812 |
– |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 16813 |
– |
func_lo2o ()\ |
| 16814 |
– |
{\ |
| 16815 |
– |
\ case ${1} in\ |
| 16816 |
– |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 16817 |
– |
\ *) func_lo2o_result=${1} ;;\ |
| 16818 |
– |
\ esac\ |
| 16819 |
– |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16820 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16821 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16822 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16823 |
– |
|
| 16824 |
– |
|
| 16825 |
– |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 16826 |
– |
func_xform ()\ |
| 16827 |
– |
{\ |
| 16828 |
– |
func_xform_result=${1%.*}.lo\ |
| 16829 |
– |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16830 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16831 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16832 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16833 |
– |
|
| 16834 |
– |
|
| 16835 |
– |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 16836 |
– |
func_arith ()\ |
| 16837 |
– |
{\ |
| 16838 |
– |
func_arith_result=$(( $* ))\ |
| 16839 |
– |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16840 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16841 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16842 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16843 |
– |
|
| 16844 |
– |
|
| 16845 |
– |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 16846 |
– |
func_len ()\ |
| 16847 |
– |
{\ |
| 16848 |
– |
func_len_result=${#1}\ |
| 16849 |
– |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16850 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16851 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16852 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16853 |
– |
|
| 16854 |
– |
fi |
| 16855 |
– |
|
| 16856 |
– |
if test x"$lt_shell_append" = xyes; then |
| 16857 |
– |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 16858 |
– |
func_append ()\ |
| 16859 |
– |
{\ |
| 16860 |
– |
eval "${1}+=\\${2}"\ |
| 16861 |
– |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16862 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16863 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16864 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16865 |
– |
|
| 16866 |
– |
|
| 16867 |
– |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 16868 |
– |
func_append_quoted ()\ |
| 16869 |
– |
{\ |
| 16870 |
– |
\ func_quote_for_eval "${2}"\ |
| 16871 |
– |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 16872 |
– |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16873 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16874 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16875 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16876 |
– |
|
| 16877 |
– |
|
| 16878 |
– |
# Save a `func_append' function call where possible by direct use of '+=' |
| 16879 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 16880 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16881 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16882 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16883 |
– |
else |
| 16884 |
– |
# Save a `func_append' function call even when '+=' is not available |
| 16885 |
– |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 16886 |
– |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16887 |
– |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16888 |
– |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16889 |
– |
fi |
| 16890 |
– |
|
| 16891 |
– |
if test x"$_lt_function_replace_fail" = x":"; then |
| 16892 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 16893 |
– |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 16894 |
– |
fi |
| 16895 |
– |
|
| 16896 |
– |
|
| 19469 |
|
mv -f "$cfgfile" "$ofile" || |
| 19470 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 19471 |
|
chmod +x "$ofile" |
| 19509 |
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 19510 |
|
fi |
| 19511 |
|
|
| 19512 |
+ |
|
| 19513 |
+ |
echo "###############################################################################" |
| 19514 |
+ |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
| 19515 |
+ |
echo |
| 19516 |
+ |
echo "ircd-hybrid will be installed in ${prefix}. To change this, run:" |
| 19517 |
+ |
echo " ./configure --prefix=DIRECTORY" |
| 19518 |
+ |
echo "###############################################################################" |