ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
(Generate patch)

Comparing:
ircd-hybrid/trunk/configure (file contents), Revision 2064 by michael, Thu May 16 09:56:02 2013 UTC vs.
ircd-hybrid/branches/8.2.x/configure (file contents), Revision 9986 by michael, Tue Jun 15 17:53:30 2021 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 2030 2013-05-14 18:24:55Z 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 TRUNK.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.39.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
# Line 593 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='TRUNK'
597 < PACKAGE_STRING='ircd-hybrid TRUNK'
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  
# Line 648 | Line 648 | DATADIR
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
# Line 669 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
# Line 710 | Line 709 | am__nodep
709   AMDEPBACKSLASH
710   AMDEP_FALSE
711   AMDEP_TRUE
713 am__quote
712   am__include
713   DEPDIR
714   OBJEXT
# Line 769 | Line 767 | infodir
767   docdir
768   oldincludedir
769   includedir
770 + runstatedir
771   localstatedir
772   sharedstatedir
773   sysconfdir
# Line 787 | Line 786 | PACKAGE_VERSION
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
# Line 798 | Line 798 | 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
# Line 805 | Line 806 | with_included_ltdl
806   with_ltdl_include
807   with_ltdl_lib
808   enable_ltdl_install
808 enable_libGeoIP
809 enable_openssl
810 enable_assert
809   enable_kqueue
810   enable_epoll
811   enable_devpoll
812   enable_poll
813 < enable_select
816 < 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
# Line 827 | Line 826 | LIBS
826   CPPFLAGS
827   YACC
828   YFLAGS
829 + LT_SYS_LIBRARY_PATH
830   CPP'
831  
832  
# Line 866 | Line 866 | datadir='${datarootdir}'
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}'
# Line 1118 | Line 1119 | do
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=* \
# Line 1255 | Line 1265 | fi
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.
# Line 1368 | Line 1378 | if test "$ac_init_help" = "long"; then
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 TRUNK 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  
# Line 1408 | Line 1418 | Fine tuning of the installation director
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]
# Line 1438 | Line 1449 | fi
1449  
1450   if test -n "$ac_init_help"; then
1451    case $ac_init_help in
1452 <     short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1452 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.39:";;
1453     esac
1454    cat <<\_ACEOF
1455  
# Line 1461 | Line 1472 | Optional Features:
1472                            optimize for fast installation [default=yes]
1473    --disable-libtool-lock  avoid locking (might break parallel builds)
1474    --enable-ltdl-install   install libltdl
1464  --disable-libgeoip      Disable GeoIP support
1465  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1466  --disable-openssl            Disable OpenSSL support.
1467  --enable-assert         Enable assert() statements
1475    --enable-kqueue         Force kqueue usage.
1476    --enable-epoll          Force epoll usage.
1477    --enable-devpoll        Force devpoll usage.
1478    --enable-poll           Force poll usage.
1479 <  --enable-select         Force select usage.
1473 <  --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-tls              Enables TLS with specified library. Options:
1500 +                          'openssl', 'wolfssl', 'gnutls' or 'none'
1501  
1502   Some influential environment variables:
1503    CC          C compiler command
# Line 1500 | Line 1513 | Some influential environment variables:
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
# Line 1568 | Line 1583 | fi
1583   test -n "$ac_init_help" && exit $ac_status
1584   if $ac_init_version; then
1585    cat <<\_ACEOF
1586 < ircd-hybrid configure TRUNK
1586 > ircd-hybrid configure 8.2.39
1587   generated by GNU Autoconf 2.69
1588  
1589   Copyright (C) 2012 Free Software Foundation, Inc.
# Line 1943 | Line 1958 | $as_echo "$ac_res" >&6; }
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
# Line 2094 | Line 2052 | cat >config.log <<_ACEOF
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 TRUNK, 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 $@
# Line 2374 | Line 2332 | $as_echo "$as_me: creating cache $cache_
2332    >$cache_file
2333   fi
2334  
2377 as_fn_append ac_func_list " strtok_r"
2378 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"
2382 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"
2387 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
# Line 2453 | Line 2407 | ac_link='$CC -o conftest$ac_exeext $CFLA
2407   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408  
2409  
2410 < am__api_version='1.13'
2410 > am__api_version='1.16'
2411  
2412   ac_aux_dir=
2413   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2654 | Line 2608 | test "$program_suffix" != NONE &&
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
# Line 2674 | Line 2628 | else
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'" ;;
# Line 2968 | Line 2922 | fi
2922  
2923   # Define the identity of the package.
2924   PACKAGE='ircd-hybrid'
2925 < VERSION='TRUNK'
2925 > VERSION='8.2.39'
2926  
2927  
2928   cat >>confdefs.h <<_ACEOF
# Line 2998 | Line 2952 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2952  
2953   # For better backward compatibility.  To be removed once Automake 1.9.x
2954   # dies out for good.  For more background, see:
2955 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
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.  The system "awk" is bad on
2960 < # some platforms.
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}'
# Line 3019 | Line 2973 | am__tar='$${TAR-tar} chof - "$$tardir"'
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; }
# Line 3042 | Line 3038 | fi
3038    MAINT=$MAINTAINER_MODE_TRUE
3039  
3040  
3041 +
3042   ac_config_headers="$ac_config_headers config.h"
3043  
3044  
# Line 3051 | Line 3048 | DEPDIR="${am__leading_dot}deps"
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
3061 # If we don't find an include directive, just comment out the code.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3063 $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 :
# Line 3899 | Line 3896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
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
# Line 4431 | Line 4487 | esac
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  
# Line 4446 | Line 4502 | macro_revision='1.3337'
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 ||
# Line 4566 | Line 4622 | func_echo_all ()
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
# Line 4889 | Line 4945 | test -z "$GREP" && GREP=grep
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` ;;
# Line 4915 | Line 4971 | $as_echo_n "checking for ld used by $CC.
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.
# Line 4926 | Line 4982 | $as_echo_n "checking for ld used by $CC.
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
# Line 4937 | Line 4993 | if ${lt_cv_path_LD+:} false; then :
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; }
# Line 5005 | Line 5061 | if ${lt_cv_path_NM+:} false; then :
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
# Line 5042 | Line 5103 | else
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 :
# Line 5156 | Line 5217 | esac
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=:
# Line 5166 | Line 5227 | fi
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
# Line 5218 | Line 5279 | if ${lt_cv_sys_max_cmd_len+:} false; the
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*)
# Line 5258 | Line 5319 | else
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`
# Line 5308 | Line 5369 | else
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
# Line 5341 | Line 5403 | else
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
# Line 5359 | Line 5421 | max_cmd_len=$lt_cv_sys_max_cmd_len
5421   : ${MV="mv -f"}
5422   : ${RM="rm -f"}
5423  
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5363 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5364 # Try some XSI features
5365 xsi_shell=no
5366 ( _lt_dummy="a/b/c"
5367  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5368      = c,a/b,b/c, \
5369    && eval 'test $(( 1 + 1 )) -eq 2 \
5370    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5371  && xsi_shell=yes
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5373 $as_echo "$xsi_shell" >&6; }
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5377 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5378 lt_shell_append=no
5379 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5380    >/dev/null 2>&1 \
5381  && lt_shell_append=yes
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5383 $as_echo "$lt_shell_append" >&6; }
5384
5385
5424   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425    lt_unset=unset
5426   else
# Line 5505 | Line 5543 | esac
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
# Line 5639 | Line 5677 | lt_cv_deplibs_check_method='unknown'
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]*)
# Line 5672 | Line 5710 | mingw* | pw32*)
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.
5676 <  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
# Line 5709 | Line 5746 | freebsd* | dragonfly*)
5746    fi
5747    ;;
5748  
5712 gnu*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5749   haiku*)
5750    lt_cv_deplibs_check_method=pass_all
5751    ;;
# Line 5751 | Line 5784 | irix5* | irix6* | nonstopux*)
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
# Line 5773 | Line 5806 | newos6*)
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)$'
# Line 5827 | Line 5860 | sysv4 | sysv4.3*)
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
# Line 5984 | Line 6020 | else
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
# Line 5997 | Line 6033 | cygwin* | mingw* | pw32* | cegcc*)
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  
# Line 6114 | Line 6150 | esac
6150   fi
6151  
6152   : ${AR=ar}
6153 < : ${AR_FLAGS=cru}
6153 > : ${AR_FLAGS=cr}
6154  
6155  
6156  
# Line 6151 | Line 6187 | if ac_fn_c_try_compile "$LINENO"; then :
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
# Line 6159 | Line 6195 | if ac_fn_c_try_compile "$LINENO"; then :
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
# Line 6172 | Line 6208 | 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
# Line 6389 | Line 6425 | old_postuninstall_cmds=
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    *)
# Line 6479 | Line 6515 | cygwin* | mingw* | pw32* | cegcc*)
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    ;;
# Line 6512 | Line 6548 | case `$NM -V 2>&1` in
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=
# Line 6537 | Line 6603 | for ac_symprfx in "" "_"; do
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'"
# Line 6582 | Line 6651 | _LT_EOF
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
6587 <  ac_status=$?
6588 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 <  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"
# Line 6599 | Line 6665 | _LT_EOF
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
# Line 6629 | Line 6695 | lt__PROGRAM__LTX_preloaded_symbols[] =
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   };
# Line 6649 | Line 6715 | _LT_EOF
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
# Line 6676 | Line 6742 | _LT_EOF
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=
# Line 6729 | Line 6795 | fi
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  
# Line 6741 | Line 6817 | fi
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     ;; #(
# Line 6753 | Line 6829 | case ${with_sysroot} in #(
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
# Line 6766 | Line 6842 | $as_echo "${lt_sysroot:-no}" >&6; }
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
# Line 6786 | Line 6943 | ia64-*-hpux*)
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"
# Line 6832 | Line 6990 | ia64-*-hpux*)
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
# Line 6848 | Line 7047 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
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*)
# Line 6869 | Line 7078 | s390*-*linux*|s390*-*tpf*|sparc*-*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*)
# Line 6887 | Line 7099 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
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; }
# Line 6927 | Line 7139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
# Line 6945 | Line 7158 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
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*)
# Line 6954 | Line 7167 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
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        *)
# Line 6970 | Line 7183 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
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.
# Line 7081 | Line 7294 | else
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  
# Line 7584 | Line 7797 | if ${lt_cv_apple_cc_single_mod+:} false;
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
# Line 7602 | Line 7815 | else
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
# Line 7641 | Line 7854 | else
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
# Line 7658 | Line 7871 | int forced_loaded() { return 2;}
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
# Line 7670 | Line 7883 | _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
# Line 7683 | Line 7896 | fi
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=
# Line 7716 | Line 7929 | $as_echo "$lt_cv_ld_force_load" >&6; }
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'
# Line 8011 | Line 8259 | if test "${enable_static+set}" = set; th
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
# Line 8047 | Line 8295 | if test "${enable_shared+set}" = set; th
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
# Line 8079 | Line 8327 | if test "${with_pic+set}" = set; then :
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
# Line 8094 | Line 8342 | else
8342   fi
8343  
8344  
8097 test -z "$pic_mode" && pic_mode=default
8098
8345  
8346  
8347  
# Line 8111 | Line 8357 | if test "${enable_fast_install+set}" = s
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
# Line 8132 | Line 8378 | fi
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'
# Line 8185 | Line 8483 | test -z "$LN_S" && LN_S="ln -s"
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  
# Line 8224 | Line 8522 | aix3*)
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
# Line 8235 | Line 8533 | esac
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
# Line 8251 | Line 8549 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
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
8256 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258 <    \-*) ;;
8259 <    *) break;;
8260 <  esac
8261 < done
8262 < 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
# Line 8274 | Line 8565 | if ${lt_cv_path_MAGIC_CMD+:} false; then
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              :
# Line 8312 | Line 8603 | _LT_EOF
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; }
# Line 8340 | Line 8631 | if ${lt_cv_path_MAGIC_CMD+:} false; then
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              :
# Line 8378 | Line 8669 | _LT_EOF
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; }
# Line 8405 | Line 8696 | esac
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'
# Line 8459 | Line 8750 | _lt_linker_boilerplate=`cat conftest.err
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' ;;
# Line 8479 | Line 8774 | else
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
# Line 8509 | Line 8804 | fi
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      :
# Line 8527 | Line 8822 | lt_prog_compiler_pic=
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*)
# Line 8548 | Line 8844 | lt_prog_compiler_static=
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
# Line 8565 | Line 8861 | lt_prog_compiler_static=
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*)
# Line 8635 | Line 8936 | lt_prog_compiler_static=
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
# Line 8643 | Line 8944 | lt_prog_compiler_static=
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*)
# Line 8662 | Line 8982 | lt_prog_compiler_static=
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*)
# Line 8671 | Line 8991 | lt_prog_compiler_static=
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*)
# Line 8698 | Line 9024 | lt_prog_compiler_static=
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)
# Line 8795 | Line 9127 | lt_prog_compiler_static=
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
# Line 8824 | Line 9156 | lt_prog_compiler_static=
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      ;;
# Line 8856 | Line 9188 | else
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
# Line 8886 | Line 9218 | fi
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" ;;
# Line 8918 | Line 9250 | if ${lt_cv_prog_compiler_static_works+:}
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
# Line 8937 | Line 9269 | else
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=
# Line 9063 | Line 9395 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
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; }
# Line 9076 | Line 9408 | $as_echo_n "checking if we can lock with
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
# Line 9121 | Line 9453 | $as_echo_n "checking whether the $compil
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
# Line 9138 | Line 9470 | $as_echo_n "checking whether the $compil
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      ;;
# Line 9146 | Line 9478 | $as_echo_n "checking whether the $compil
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
# Line 9156 | Line 9491 | $as_echo_n "checking whether the $compil
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
# Line 9178 | Line 9513 | $as_echo_n "checking whether the $compil
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 ...
# Line 9208 | Line 9543 | $as_echo_n "checking whether the $compil
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  
# Line 9227 | Line 9562 | _LT_EOF
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)
# Line 9243 | Line 9578 | _LT_EOF
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
# Line 9253 | Line 9588 | _LT_EOF
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
# Line 9261 | Line 9596 | _LT_EOF
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' ;;
# Line 9326 | Line 9689 | _LT_EOF
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
# Line 9370 | Line 9738 | _LT_EOF
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  
# Line 9394 | Line 9762 | _LT_EOF
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
# Line 9407 | Line 9775 | _LT_EOF
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
# Line 9422 | Line 9790 | _LT_EOF
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
# Line 9441 | Line 9809 | _LT_EOF
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=
# Line 9465 | Line 9833 | _LT_EOF
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
# Line 9473 | Line 9841 | _LT_EOF
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  
# Line 9519 | Line 9910 | _LT_EOF
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
# Line 9544 | Line 9943 | _LT_EOF
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 :
# Line 9607 | Line 10013 | fi
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
# Line 9615 | Line 10021 | 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 :
# Line 9660 | Line 10066 | fi
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
# Line 9668 | Line 10074 | 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        ;;
# Line 9691 | Line 10109 | fi
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)
# Line 9721 | Line 10139 | fi
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
# Line 9739 | Line 10158 | fi
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
# Line 9759 | Line 10178 | fi
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.
# Line 9778 | Line 10197 | fi
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
# Line 9837 | Line 10256 | fi
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
# Line 9871 | Line 10290 | fi
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  
# Line 9901 | Line 10320 | if ${lt_cv_prog_compiler__b+:} false; th
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
# Line 9920 | Line 10339 | else
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
# Line 9935 | Line 10354 | 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
# Line 9947 | Line 10366 | fi
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.
# Line 9958 | Line 10377 | fi
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.
# Line 9969 | Line 10388 | $as_echo_n "checking whether the $host_o
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; }
# Line 9982 | Line 10401 | else
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
# Line 10014 | Line 10444 | $as_echo "$lt_cv_irix_exported_symbol" >
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        ;;
# Line 10022 | Line 10452 | $as_echo "$lt_cv_irix_exported_symbol" >
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].*)
10038 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 <             hardcode_libdir_flag_spec='-R$libdir'
10040 <             ;;
10041 <           *)
10042 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044 <             ;;
10045 <          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
# Line 10053 | Line 10475 | $as_echo "$lt_cv_irix_exported_symbol" >
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'
# Line 10090 | Line 10532 | $as_echo "$lt_cv_irix_exported_symbol" >
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
# Line 10117 | Line 10559 | $as_echo "$lt_cv_irix_exported_symbol" >
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
# Line 10131 | Line 10573 | $as_echo "$lt_cv_irix_exported_symbol" >
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
# Line 10183 | Line 10625 | $as_echo "$lt_cv_irix_exported_symbol" >
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  
# Line 10234 | Line 10676 | $as_echo "$lt_cv_irix_exported_symbol" >
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
# Line 10245 | Line 10687 | $as_echo "$lt_cv_irix_exported_symbol" >
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  
# Line 10271 | Line 10713 | x|xyes)
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.
# Line 10486 | Line 10928 | esac
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
# Line 10509 | Line 10951 | if test "$GCC" = yes; then
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          }
# Line 10544 | Line 10993 | BEGIN {RS=" "; FS="/|\n";} {
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
# Line 10553 | Line 11002 | fi
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=
# Line 10570 | Line 11019 | hardcode_into_libs=no
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]*)
# Line 10585 | Line 11036 | 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    ;;
# Line 10629 | Line 11130 | amigaos*)
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    ;;
# Line 10648 | Line 11149 | beos*)
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"
# Line 10661 | Line 11162 | bsdi[45]*)
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  
# Line 10670 | Line 11171 | cygwin* | mingw* | pw32* | cegcc*)
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~
# Line 10687 | Line 11188 | cygwin* | mingw* | pw32* | cegcc*)
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'
# Line 10706 | Line 11207 | cygwin* | mingw* | pw32* | cegcc*)
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*)
# Line 10734 | Line 11235 | cygwin* | mingw* | pw32* | cegcc*)
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'`
# Line 10747 | Line 11248 | cygwin* | mingw* | pw32* | cegcc*)
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'
# Line 10761 | Line 11262 | cygwin* | mingw* | pw32* | cegcc*)
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
# Line 10774 | Line 11275 | darwin* | rhapsody*)
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`'
# Line 10788 | Line 11289 | dgux*)
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  
# Line 10807 | Line 11308 | freebsd* | dragonfly*)
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
# Line 10837 | Line 11339 | freebsd* | dragonfly*)
11339    esac
11340    ;;
11341  
10840 gnu*)
10841  version_type=linux # correct to gnu/linux during the next big refactor
10842  need_lib_prefix=no
10843  need_version=no
10844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10845  soname_spec='${libname}${release}${shared_ext}$major'
10846  shlibpath_var=LD_LIBRARY_PATH
10847  shlibpath_overrides_runpath=no
10848  hardcode_into_libs=yes
10849  ;;
10850
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    ;;
# Line 10874 | Line 11365 | hpux9* | hpux10* | hpux11*)
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
10884    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377      ;;
11378    hppa*64*)
11379      shrext_cmds='.sl'
# Line 10889 | Line 11381 | hpux9* | hpux10* | hpux11*)
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      ;;
# Line 10899 | Line 11391 | hpux9* | hpux10* | hpux11*)
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, ...
# Line 10913 | Line 11405 | interix[3-9]*)
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
# Line 10925 | Line 11417 | irix5* | irix6* | nonstopux*)
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
# Line 10933 | Line 11425 | irix5* | irix6* | nonstopux*)
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=
# Line 10953 | Line 11445 | irix5* | irix6* | nonstopux*)
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  
# Line 10963 | Line 11455 | linux*oldld* | linux*aout* | linux*coff*
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
# Line 11013 | Line 11525 | fi
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"
# Line 11028 | Line 11545 | fi
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
# Line 11048 | Line 11577 | netbsd*)
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    ;;
# Line 11057 | Line 11586 | newsos6)
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
11074 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11075 <    *)                          need_version=no  ;;
11076 <  esac
11077 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 <  shlibpath_var=LD_LIBRARY_PATH
11080 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081 <    case $host_os in
11082 <      openbsd2.[89] | openbsd2.[89].*)
11083 <        shlibpath_overrides_runpath=no
11084 <        ;;
11085 <      *)
11086 <        shlibpath_overrides_runpath=yes
11087 <        ;;
11088 <      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*)
# Line 11119 | Line 11658 | solaris*)
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
# Line 11130 | Line 11669 | solaris*)
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
# Line 11142 | Line 11681 | sunos4*)
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)
# Line 11164 | Line 11703 | sysv4 | sysv4.3*)
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'
# Line 11199 | Line 11738 | tpf*)
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
# Line 11207 | Line 11746 | tpf*)
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  
# Line 11218 | Line 11757 | uts4*)
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  
# Line 11328 | Line 11882 | $as_echo_n "checking how to hardcode lib
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
# Line 11351 | Line 11905 | fi
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
# Line 11366 | Line 11920 | 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
# Line 11376 | Line 11930 | else
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 :
# Line 11430 | Line 11984 | fi
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  
# Line 11441 | Line 11995 | fi
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; }
# Line 11483 | Line 12045 | fi
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; }
# Line 11526 | Line 12088 | fi
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; }
# Line 11565 | Line 12127 | fi
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; }
# Line 11604 | Line 12166 | fi
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  
# Line 11625 | Line 12187 | fi
12187      ;;
12188    esac
12189  
12190 <  if test "x$lt_cv_dlopen" != xno; then
11629 <    enable_dlopen=yes
11630 <  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
# Line 11647 | Line 12209 | $as_echo_n "checking whether a program c
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
# Line 11694 | Line 12256 | else
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  
# Line 11726 | Line 12288 | _LT_EOF
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
# Line 11746 | Line 12308 | fi
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
# Line 11800 | Line 12362 | else
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  
# Line 11832 | Line 12394 | _LT_EOF
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
# Line 11853 | Line 12415 | fi
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  
# Line 11899 | Line 12461 | else
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
# Line 11927 | Line 12489 | fi
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
# Line 11935 | Line 12497 | $as_echo "$can_build_shared" >&6; }
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'
# Line 11949 | Line 12511 | $as_echo_n "checking whether to build sh
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
# Line 11960 | Line 12526 | $as_echo "$enable_shared" >&6; }
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  
# Line 11974 | Line 12540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
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  
# Line 11998 | Line 12564 | CC="$lt_save_CC"
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
# Line 12026 | Line 12592 | cat >>confdefs.h <<_ACEOF
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; }
# Line 12049 | Line 12622 | $as_echo_n "checking for the default lib
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; }
# Line 12057 | Line 12630 | if test -n "$lt_cv_sys_dlsearch_path"; t
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  
# Line 12079 | Line 12652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
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
# Line 12137 | Line 12711 | if test "$ac_res" != no; then :
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
# Line 12161 | Line 12735 | if ac_fn_c_try_link "$LINENO"; then :
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
# Line 12204 | Line 12778 | if test "x$ac_cv_lib_svld_dlopen" = xyes
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  
# Line 12213 | Line 12787 | rm -f core conftest.err conftest.$ac_obj
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 :
# Line 12228 | Line 12802 | _ACEOF
12802   fi
12803   done
12804  
12805 <  LIBS="$lt_save_LIBS"
12805 >  LIBS=$lt_save_LIBS
12806   fi
12807  
12808  
# Line 12281 | Line 12855 | if test "x$ac_cv_lib_dld_shl_load" = xye
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
# Line 12303 | Line 12877 | 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 :
# Line 12381 | Line 12955 | fi
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'
# Line 12435 | Line 13010 | $as_echo "$lt_cv_sys_symbol_underscore"
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
12441 <        { $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
12451 < else
12452 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12453 <  lt_status=$lt_dlunknown
12454 <  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
12461
13064   #include <stdio.h>
13065 <
12464 < #ifdef RTLD_GLOBAL
12465 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12466 < #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. */
12476 < #ifndef LT_DLLAZY_OR_NOW
12477 < #  ifdef RTLD_LAZY
12478 < #    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
12481 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12482 < #    else
12483 < #      ifdef RTLD_NOW
12484 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12485 < #      else
12486 < #        ifdef DL_NOW
12487 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12488 < #        else
12489 < #          define LT_DLLAZY_OR_NOW      0
12490 < #        endif
12491 < #      endif
12492 < #    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 ()
12504 < {
12505 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506 <  int status = $lt_dlunknown;
12507 <
12508 <  if (self)
12509 <    {
12510 <      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 <        {
12513 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12514 <          else puts (dlerror ());
12515 <        }
12516 <      /* dlclose (self); */
13089 >        puts (dlerror ());
13090      }
13091 <  else
13091 >    dlclose (handle);
13092 >  } else
13093      puts (dlerror ());
12520
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 <
12539 <  fi
12540 < fi
12541 < rm -fr conftest*
12542 <
12543 <          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
# Line 12548 | Line 13116 | $as_echo "$libltdl_cv_need_uscore" >&6;
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  
# Line 12567 | Line 13135 | else
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]*)
# Line 12580 | Line 13148 | else
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
# Line 12608 | Line 13179 | else
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*)
# Line 12617 | Line 13188 | else
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)
# Line 12626 | Line 13197 | else
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*)
# Line 12650 | Line 13221 | else
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  
12659 :
13230  
13231   for ac_header in argz.h
13232   do :
# Line 12693 | Line 13263 | $as_echo "#define __error_t_defined 1" >
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 :
# Line 12705 | Line 13275 | if eval test \"x\$"$as_ac_var"\" = x"yes
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 :
# Line 12722 | Line 13292 | else
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/'
# Line 12733 | Line 13303 | else
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
# Line 12747 | Line 13317 | else
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
# Line 12776 | Line 13346 | else
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  
# Line 12800 | Line 13370 | if test "${with_included_ltdl+set}" = se
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
# Line 12876 | Line 13446 | fi
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
# Line 12892 | Line 13462 | fi
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
# Line 12905 | Line 13475 | case ,$with_included_ltdl,$with_ltdl_inc
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          ;;
# Line 12929 | Line 13499 | $as_echo "#define HAVE_LTDL 1" >>confdef
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
# Line 12957 | Line 13527 | if test "${enable_ltdl_install+set}" = s
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
# Line 12970 | Line 13540 | 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
# Line 13072 | Line 13642 | LIBTOOL="$LIBTOOL --silent"
13642  
13643   # Checks for libraries.
13644  
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  
# Line 13254 | Line 13936 | else
13936    as_fn_error $? "socket library not found" "$LINENO" 5
13937   fi
13938  
13257  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13258   #include <sys/socket.h>
13259   #include <netdb.h>
13260
13261 "
13262 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_STRUCT_SOCKADDR_IN 1
13266 _ACEOF
13267
13268
13269 fi
13270 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13271   #include <sys/socket.h>
13272   #include <netdb.h>
13273
13274 "
13275 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13279 _ACEOF
13280
13281
13282 fi
13283 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13284   #include <sys/socket.h>
13285   #include <netdb.h>
13286
13287 "
13288 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13289
13290 cat >>confdefs.h <<_ACEOF
13291 #define HAVE_STRUCT_ADDRINFO 1
13292 _ACEOF
13293
13294
13295 fi
13296
13297  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13298  <sys/socket.h>
13299 "
13300 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13304 _ACEOF
13305
13306
13307 fi
13308
13309
13310
13311  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13312 "
13313 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13314
13315 $as_echo "#define IPV6 1" >>confdefs.h
13316
13317 fi
13318
13939  
13940  
13941   # Checks for typedefs, structures, and compiler characteristics.
# Line 13566 | Line 14186 | done
14186  
14187  
14188  
13569
13570
13571
13572
14189   # Checks for header files.
14190  
14191  
# Line 13600 | Line 14216 | done
14216  
14217  
14218  
13603
13604
13605
13606
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 :
# Line 13661 | Line 14273 | if test "$ac_res" != no; then :
14273   fi
14274  
14275  
14276 < # Check whether --enable-libGeoIP was given.
14277 < if test "${enable_libGeoIP+set}" = set; then :
14278 <  enableval=$enable_libGeoIP;
14279 < else
14280 <  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14281 < if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14282 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14283 < $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14284 < if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14285 <  $as_echo_n "(cached) " >&6
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
14338 >   builtin and then its argument prototype would still apply.  */
14339 > #ifdef __cplusplus
14340 > extern "C"
14341 > #endif
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 kevent ();
14354 >  ;
14355 >  return 0;
14356 > }
14357 > _ACEOF
14358 > if ac_fn_c_try_link "$LINENO"; then :
14359 >  is_kqueue_mechanism_available="yes"
14360   else
14361 <  ac_func_search_save_LIBS=$LIBS
14362 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 >  is_kqueue_mechanism_available="no"
14362 > fi
14363 > rm -f core conftest.err conftest.$ac_objext \
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 +  is_epoll_mechanism_available="no"
14387 + fi
14388 + rm -f core conftest.err conftest.$ac_objext \
14389 +    conftest$ac_exeext conftest.$ac_ext
14390 +
14391 +  iopoll_mechanism_devpoll=3
14392 +
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 +  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
# Line 13682 | Line 14470 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14470   #ifdef __cplusplus
14471   extern "C"
14472   #endif
14473 < char GeoIP_id_by_ipnum_v6_gl ();
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 GeoIP_id_by_ipnum_v6_gl ();
14484 > return poll ();
14485    ;
14486    return 0;
14487   }
14488   _ACEOF
14489 < for ac_lib in '' GeoIP; do
14490 <  if test -z "$ac_lib"; then
14491 <    ac_res="none required"
14489 > if ac_fn_c_try_link "$LINENO"; then :
14490 >  is_poll_mechanism_available="yes"
14491 > else
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 >  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 "$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 >      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 <    ac_res=-l$ac_lib
14518 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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 <  if ac_fn_c_try_link "$LINENO"; then :
14529 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
14528 >
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 >  assert=no
14542   fi
14543 < rm -f core conftest.err conftest.$ac_objext \
14544 <    conftest$ac_exeext
14545 <  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14546 <  break
14543 >
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 -Werror=unknown-warning-option; 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
13710 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14651  
14652 +
14653 +
14654 +
14655 +
14656 +
14657 + for flag in -Wall; do
14658 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14659 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14660 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14661 + if eval \${$as_CACHEVAR+:} false; then :
14662 +  $as_echo_n "(cached) " >&6
14663 + else
14664 +
14665 +  ax_check_save_flags=$CFLAGS
14666 +  CFLAGS="$CFLAGS  $flag"
14667 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 + /* end confdefs.h.  */
14669 +
14670 + int
14671 + main ()
14672 + {
14673 +
14674 +  ;
14675 +  return 0;
14676 + }
14677 + _ACEOF
14678 + if ac_fn_c_try_compile "$LINENO"; then :
14679 +  eval "$as_CACHEVAR=yes"
14680   else
14681 <  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14681 >  eval "$as_CACHEVAR=no"
14682   fi
14683 < rm conftest.$ac_ext
14684 < LIBS=$ac_func_search_save_LIBS
14683 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 >  CFLAGS=$ax_check_save_flags
14685   fi
14686 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
14687 < $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
14688 < ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
14689 < if test "$ac_res" != no; then :
14690 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14686 > eval ac_res=\$$as_CACHEVAR
14687 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14688 > $as_echo "$ac_res" >&6; }
14689 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14690 >
14691 > if ${CFLAGS+:} false; then :
14692 >
14693 >  case " $CFLAGS " in #(
14694 >  *" $flag "*) :
14695 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14696 >  (: CFLAGS already contains $flag) 2>&5
14697 >  ac_status=$?
14698 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 >  test $ac_status = 0; } ;; #(
14700 >  *) :
14701 >
14702 >     as_fn_append CFLAGS " $flag"
14703 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14704 >  (: CFLAGS="$CFLAGS") 2>&5
14705 >  ac_status=$?
14706 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14707 >  test $ac_status = 0; }
14708 >     ;;
14709 > esac
14710  
14711 < $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14711 > else
14712 >
14713 >  CFLAGS=$flag
14714 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14715 >  (: CFLAGS="$CFLAGS") 2>&5
14716 >  ac_status=$?
14717 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 >  test $ac_status = 0; }
14719  
14720   fi
14721  
14722 + else
14723 +  :
14724   fi
14725  
14726 + done
14727 +
14728 +
14729 +
14730 +
14731 +
14732 + for flag in -Wbad-function-cast; do
14733 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14734 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14735 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14736 + if eval \${$as_CACHEVAR+:} false; then :
14737 +  $as_echo_n "(cached) " >&6
14738 + else
14739 +
14740 +  ax_check_save_flags=$CFLAGS
14741 +  CFLAGS="$CFLAGS  $flag"
14742 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 + /* end confdefs.h.  */
14744 +
14745 + int
14746 + main ()
14747 + {
14748  
14749 +  ;
14750 +  return 0;
14751 + }
14752 + _ACEOF
14753 + if ac_fn_c_try_compile "$LINENO"; then :
14754 +  eval "$as_CACHEVAR=yes"
14755 + else
14756 +  eval "$as_CACHEVAR=no"
14757 + fi
14758 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 +  CFLAGS=$ax_check_save_flags
14760   fi
14761 + eval ac_res=\$$as_CACHEVAR
14762 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14763 + $as_echo "$ac_res" >&6; }
14764 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14765 +
14766 + if ${CFLAGS+:} false; then :
14767 +
14768 +  case " $CFLAGS " in #(
14769 +  *" $flag "*) :
14770 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14771 +  (: CFLAGS already contains $flag) 2>&5
14772 +  ac_status=$?
14773 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14774 +  test $ac_status = 0; } ;; #(
14775 +  *) :
14776  
14777 +     as_fn_append CFLAGS " $flag"
14778 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14779 +  (: CFLAGS="$CFLAGS") 2>&5
14780 +  ac_status=$?
14781 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14782 +  test $ac_status = 0; }
14783 +     ;;
14784 + esac
14785  
13734 # Check whether --enable-openssl was given.
13735 if test "${enable_openssl+set}" = set; then :
13736  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14786   else
14787 <   cf_enable_openssl="auto"
14787 >
14788 >  CFLAGS=$flag
14789 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14790 >  (: CFLAGS="$CFLAGS") 2>&5
14791 >  ac_status=$?
14792 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793 >  test $ac_status = 0; }
14794 >
14795   fi
14796  
14797 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14798 < $as_echo_n "checking for OpenSSL... " >&6; }
14799 < if test "$cf_enable_openssl" != "no"; then
13744 <  cf_openssl_basedir=""
13745 <  if test "$cf_enable_openssl" != "auto" &&
13746 <     test "$cf_enable_openssl" != "yes"; then
13747 <          cf_openssl_basedir="${cf_enable_openssl}"
13748 <  else
13749 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13750 <                /opt /opt/openssl /usr/local/openssl; do
13751 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
13752 <        cf_openssl_basedir="${dirs}"
13753 <        break
13754 <      fi
13755 <    done
13756 <    unset dirs
13757 <  fi
14797 > else
14798 >  :
14799 > fi
14800  
14801 <    if test ! -z "$cf_openssl_basedir"; then
13760 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13761 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13762 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13763 <    else
13764 <                  cf_openssl_basedir=""
13765 <    fi
13766 <  else
13767 <                            if test -f "/usr/include/openssl/opensslv.h"; then
13768 <      cf_openssl_basedir="/usr"
13769 <    fi
13770 <  fi
14801 > done
14802  
14803 <      if test ! -z "$cf_openssl_basedir"; then
14804 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14805 < $as_echo "$cf_openssl_basedir" >&6; }
14806 <    cf_enable_openssl="yes"
14807 <  else
14808 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14809 < $as_echo "not found. Please check your path." >&6; }
14810 <    cf_enable_openssl="no"
14811 <  fi
14812 <  unset cf_openssl_basedir
14803 >
14804 >
14805 >
14806 >
14807 > for flag in -Wcast-align; do
14808 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14809 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14810 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14811 > if eval \${$as_CACHEVAR+:} false; then :
14812 >  $as_echo_n "(cached) " >&6
14813 > else
14814 >
14815 >  ax_check_save_flags=$CFLAGS
14816 >  CFLAGS="$CFLAGS  $flag"
14817 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 > /* end confdefs.h.  */
14819 >
14820 > int
14821 > main ()
14822 > {
14823 >
14824 >  ;
14825 >  return 0;
14826 > }
14827 > _ACEOF
14828 > if ac_fn_c_try_compile "$LINENO"; then :
14829 >  eval "$as_CACHEVAR=yes"
14830   else
14831 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14832 < $as_echo "disabled" >&6; }
14831 >  eval "$as_CACHEVAR=no"
14832 > fi
14833 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 >  CFLAGS=$ax_check_save_flags
14835 > fi
14836 > eval ac_res=\$$as_CACHEVAR
14837 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14838 > $as_echo "$ac_res" >&6; }
14839 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14840 >
14841 > if ${CFLAGS+:} false; then :
14842 >
14843 >  case " $CFLAGS " in #(
14844 >  *" $flag "*) :
14845 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14846 >  (: CFLAGS already contains $flag) 2>&5
14847 >  ac_status=$?
14848 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 >  test $ac_status = 0; } ;; #(
14850 >  *) :
14851 >
14852 >     as_fn_append CFLAGS " $flag"
14853 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14854 >  (: CFLAGS="$CFLAGS") 2>&5
14855 >  ac_status=$?
14856 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14857 >  test $ac_status = 0; }
14858 >     ;;
14859 > esac
14860 >
14861 > else
14862 >
14863 >  CFLAGS=$flag
14864 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14865 >  (: CFLAGS="$CFLAGS") 2>&5
14866 >  ac_status=$?
14867 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14868 >  test $ac_status = 0; }
14869 >
14870   fi
14871  
13787 if test "$cf_enable_openssl" != "no"; then :
13788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5
13789 $as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; }
13790  if test "$cross_compiling" = yes; then :
13791  cf_openssl_version_ok=no
14872   else
14873 +  :
14874 + fi
14875 +
14876 + done
14877 +
14878 +
14879 +
14880 +
14881 +
14882 + for flag in -Wcast-function-type; do
14883 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14884 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14885 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14886 + if eval \${$as_CACHEVAR+:} false; then :
14887 +  $as_echo_n "(cached) " >&6
14888 + else
14889 +
14890 +  ax_check_save_flags=$CFLAGS
14891 +  CFLAGS="$CFLAGS  $flag"
14892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893   /* end confdefs.h.  */
14894  
14895 + int
14896 + main ()
14897 + {
14898 +
14899 +  ;
14900 +  return 0;
14901 + }
14902 + _ACEOF
14903 + if ac_fn_c_try_compile "$LINENO"; then :
14904 +  eval "$as_CACHEVAR=yes"
14905 + else
14906 +  eval "$as_CACHEVAR=no"
14907 + fi
14908 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 +  CFLAGS=$ax_check_save_flags
14910 + fi
14911 + eval ac_res=\$$as_CACHEVAR
14912 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14913 + $as_echo "$ac_res" >&6; }
14914 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14915 +
14916 + if ${CFLAGS+:} false; then :
14917 +
14918 +  case " $CFLAGS " in #(
14919 +  *" $flag "*) :
14920 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14921 +  (: CFLAGS already contains $flag) 2>&5
14922 +  ac_status=$?
14923 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14924 +  test $ac_status = 0; } ;; #(
14925 +  *) :
14926 +
14927 +     as_fn_append CFLAGS " $flag"
14928 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14929 +  (: CFLAGS="$CFLAGS") 2>&5
14930 +  ac_status=$?
14931 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14932 +  test $ac_status = 0; }
14933 +     ;;
14934 + esac
14935 +
14936 + else
14937 +
14938 +  CFLAGS=$flag
14939 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14940 +  (: CFLAGS="$CFLAGS") 2>&5
14941 +  ac_status=$?
14942 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14943 +  test $ac_status = 0; }
14944 +
14945 + fi
14946 +
14947 + else
14948 +  :
14949 + fi
14950 +
14951 + done
14952 +
14953 +
14954 +
14955 +
14956 +
14957 + for flag in -Wcast-qual; do
14958 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14959 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14960 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14961 + if eval \${$as_CACHEVAR+:} false; then :
14962 +  $as_echo_n "(cached) " >&6
14963 + else
14964 +
14965 +  ax_check_save_flags=$CFLAGS
14966 +  CFLAGS="$CFLAGS  $flag"
14967 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 + /* end confdefs.h.  */
14969  
13797    #include <openssl/opensslv.h>
13798    #include <stdlib.h>
14970   int
14971   main ()
14972   {
14973 < exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f));
14973 >
14974    ;
14975    return 0;
14976   }
14977   _ACEOF
14978 < if ac_fn_c_try_run "$LINENO"; then :
14979 <  cf_openssl_version_ok=yes
14978 > if ac_fn_c_try_compile "$LINENO"; then :
14979 >  eval "$as_CACHEVAR=yes"
14980   else
14981 <  cf_openssl_version_ok=no
14981 >  eval "$as_CACHEVAR=no"
14982   fi
14983 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14984 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14983 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 >  CFLAGS=$ax_check_save_flags
14985   fi
14986 + eval ac_res=\$$as_CACHEVAR
14987 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14988 + $as_echo "$ac_res" >&6; }
14989 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14990  
14991 + if ${CFLAGS+:} false; then :
14992  
14993 <  if test "$cf_openssl_version_ok" = "yes"; then :
14994 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14995 < $as_echo "found" >&6; }
14993 >  case " $CFLAGS " in #(
14994 >  *" $flag "*) :
14995 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14996 >  (: CFLAGS already contains $flag) 2>&5
14997 >  ac_status=$?
14998 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14999 >  test $ac_status = 0; } ;; #(
15000 >  *) :
15001  
15002 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15003 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15004 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15002 >     as_fn_append CFLAGS " $flag"
15003 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15004 >  (: CFLAGS="$CFLAGS") 2>&5
15005 >  ac_status=$?
15006 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 >  test $ac_status = 0; }
15008 >     ;;
15009 > esac
15010 >
15011 > else
15012 >
15013 >  CFLAGS=$flag
15014 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15015 >  (: CFLAGS="$CFLAGS") 2>&5
15016 >  ac_status=$?
15017 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 >  test $ac_status = 0; }
15019 >
15020 > fi
15021 >
15022 > else
15023 >  :
15024 > fi
15025 >
15026 > done
15027 >
15028 >
15029 >
15030 >
15031 >
15032 > for flag in -Wclobbered; do
15033 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15034 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15035 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15036 > if eval \${$as_CACHEVAR+:} false; then :
15037    $as_echo_n "(cached) " >&6
15038   else
15039 <  ac_check_lib_save_LIBS=$LIBS
15040 < LIBS="-lcrypto  $LIBS"
15041 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 >
15040 >  ax_check_save_flags=$CFLAGS
15041 >  CFLAGS="$CFLAGS  $flag"
15042 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043   /* end confdefs.h.  */
15044  
13831 /* Override any GCC internal prototype to avoid an error.
13832   Use char because int might match the return type of a GCC
13833   builtin and then its argument prototype would still apply.  */
13834 #ifdef __cplusplus
13835 extern "C"
13836 #endif
13837 char RSA_free ();
15045   int
15046   main ()
15047   {
15048 < return RSA_free ();
15048 >
15049    ;
15050    return 0;
15051   }
15052   _ACEOF
15053 < if ac_fn_c_try_link "$LINENO"; then :
15054 <  ac_cv_lib_crypto_RSA_free=yes
15053 > if ac_fn_c_try_compile "$LINENO"; then :
15054 >  eval "$as_CACHEVAR=yes"
15055   else
15056 <  ac_cv_lib_crypto_RSA_free=no
15056 >  eval "$as_CACHEVAR=no"
15057   fi
15058 < rm -f core conftest.err conftest.$ac_objext \
15059 <    conftest$ac_exeext conftest.$ac_ext
13853 < LIBS=$ac_check_lib_save_LIBS
15058 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 >  CFLAGS=$ax_check_save_flags
15060   fi
15061 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15062 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15063 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15064 <  cat >>confdefs.h <<_ACEOF
15065 < #define HAVE_LIBCRYPTO 1
15061 > eval ac_res=\$$as_CACHEVAR
15062 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15063 > $as_echo "$ac_res" >&6; }
15064 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15065 >
15066 > if ${CFLAGS+:} false; then :
15067 >
15068 >  case " $CFLAGS " in #(
15069 >  *" $flag "*) :
15070 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15071 >  (: CFLAGS already contains $flag) 2>&5
15072 >  ac_status=$?
15073 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15074 >  test $ac_status = 0; } ;; #(
15075 >  *) :
15076 >
15077 >     as_fn_append CFLAGS " $flag"
15078 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15079 >  (: CFLAGS="$CFLAGS") 2>&5
15080 >  ac_status=$?
15081 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082 >  test $ac_status = 0; }
15083 >     ;;
15084 > esac
15085 >
15086 > else
15087 >
15088 >  CFLAGS=$flag
15089 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15090 >  (: CFLAGS="$CFLAGS") 2>&5
15091 >  ac_status=$?
15092 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093 >  test $ac_status = 0; }
15094 >
15095 > fi
15096 >
15097 > else
15098 >  :
15099 > fi
15100 >
15101 > done
15102 >
15103 >
15104 >
15105 >
15106 >
15107 > for flag in -Wduplicated-cond; do
15108 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15109 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15110 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15111 > if eval \${$as_CACHEVAR+:} false; then :
15112 >  $as_echo_n "(cached) " >&6
15113 > else
15114 >
15115 >  ax_check_save_flags=$CFLAGS
15116 >  CFLAGS="$CFLAGS  $flag"
15117 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 > /* end confdefs.h.  */
15119 >
15120 > int
15121 > main ()
15122 > {
15123 >
15124 >  ;
15125 >  return 0;
15126 > }
15127   _ACEOF
15128 + if ac_fn_c_try_compile "$LINENO"; then :
15129 +  eval "$as_CACHEVAR=yes"
15130 + else
15131 +  eval "$as_CACHEVAR=no"
15132 + fi
15133 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 +  CFLAGS=$ax_check_save_flags
15135 + fi
15136 + eval ac_res=\$$as_CACHEVAR
15137 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15138 + $as_echo "$ac_res" >&6; }
15139 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15140  
15141 <  LIBS="-lcrypto $LIBS"
15141 > if ${CFLAGS+:} false; then :
15142 >
15143 >  case " $CFLAGS " in #(
15144 >  *" $flag "*) :
15145 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15146 >  (: CFLAGS already contains $flag) 2>&5
15147 >  ac_status=$?
15148 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 >  test $ac_status = 0; } ;; #(
15150 >  *) :
15151 >
15152 >     as_fn_append CFLAGS " $flag"
15153 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15154 >  (: CFLAGS="$CFLAGS") 2>&5
15155 >  ac_status=$?
15156 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 >  test $ac_status = 0; }
15158 >     ;;
15159 > esac
15160 >
15161 > else
15162 >
15163 >  CFLAGS=$flag
15164 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15165 >  (: CFLAGS="$CFLAGS") 2>&5
15166 >  ac_status=$?
15167 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168 >  test $ac_status = 0; }
15169  
15170   fi
15171  
15172 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15173 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15174 < $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15175 < if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15172 > else
15173 >  :
15174 > fi
15175 >
15176 > done
15177 >
15178 >
15179 >
15180 >
15181 >
15182 > for flag in -Wempty-body; do
15183 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15184 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15185 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15186 > if eval \${$as_CACHEVAR+:} false; then :
15187    $as_echo_n "(cached) " >&6
15188   else
15189 <  ac_check_lib_save_LIBS=$LIBS
15190 < LIBS="-lssl  $LIBS"
15191 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 >
15190 >  ax_check_save_flags=$CFLAGS
15191 >  CFLAGS="$CFLAGS  $flag"
15192 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193   /* end confdefs.h.  */
15194  
13877 /* Override any GCC internal prototype to avoid an error.
13878   Use char because int might match the return type of a GCC
13879   builtin and then its argument prototype would still apply.  */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 char SSL_connect ();
15195   int
15196   main ()
15197   {
15198 < return SSL_connect ();
15198 >
15199    ;
15200    return 0;
15201   }
15202   _ACEOF
15203 < if ac_fn_c_try_link "$LINENO"; then :
15204 <  ac_cv_lib_ssl_SSL_connect=yes
15203 > if ac_fn_c_try_compile "$LINENO"; then :
15204 >  eval "$as_CACHEVAR=yes"
15205   else
15206 <  ac_cv_lib_ssl_SSL_connect=no
15206 >  eval "$as_CACHEVAR=no"
15207   fi
15208 < rm -f core conftest.err conftest.$ac_objext \
15209 <    conftest$ac_exeext conftest.$ac_ext
13899 < LIBS=$ac_check_lib_save_LIBS
15208 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 >  CFLAGS=$ax_check_save_flags
15210   fi
15211 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15212 < $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15213 < if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15214 <  cat >>confdefs.h <<_ACEOF
15215 < #define HAVE_LIBSSL 1
15211 > eval ac_res=\$$as_CACHEVAR
15212 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15213 > $as_echo "$ac_res" >&6; }
15214 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15215 >
15216 > if ${CFLAGS+:} false; then :
15217 >
15218 >  case " $CFLAGS " in #(
15219 >  *" $flag "*) :
15220 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15221 >  (: CFLAGS already contains $flag) 2>&5
15222 >  ac_status=$?
15223 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15224 >  test $ac_status = 0; } ;; #(
15225 >  *) :
15226 >
15227 >     as_fn_append CFLAGS " $flag"
15228 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15229 >  (: CFLAGS="$CFLAGS") 2>&5
15230 >  ac_status=$?
15231 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15232 >  test $ac_status = 0; }
15233 >     ;;
15234 > esac
15235 >
15236 > else
15237 >
15238 >  CFLAGS=$flag
15239 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15240 >  (: CFLAGS="$CFLAGS") 2>&5
15241 >  ac_status=$?
15242 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 >  test $ac_status = 0; }
15244 >
15245 > fi
15246 >
15247 > else
15248 >  :
15249 > fi
15250 >
15251 > done
15252 >
15253 >
15254 >
15255 >
15256 >
15257 > for flag in -Wignored-qualifiers; do
15258 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15259 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15260 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15261 > if eval \${$as_CACHEVAR+:} false; then :
15262 >  $as_echo_n "(cached) " >&6
15263 > else
15264 >
15265 >  ax_check_save_flags=$CFLAGS
15266 >  CFLAGS="$CFLAGS  $flag"
15267 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 > /* end confdefs.h.  */
15269 >
15270 > int
15271 > main ()
15272 > {
15273 >
15274 >  ;
15275 >  return 0;
15276 > }
15277   _ACEOF
15278 + if ac_fn_c_try_compile "$LINENO"; then :
15279 +  eval "$as_CACHEVAR=yes"
15280 + else
15281 +  eval "$as_CACHEVAR=no"
15282 + fi
15283 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 +  CFLAGS=$ax_check_save_flags
15285 + fi
15286 + eval ac_res=\$$as_CACHEVAR
15287 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15288 + $as_echo "$ac_res" >&6; }
15289 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15290  
15291 <  LIBS="-lssl $LIBS"
15291 > if ${CFLAGS+:} false; then :
15292 >
15293 >  case " $CFLAGS " in #(
15294 >  *" $flag "*) :
15295 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15296 >  (: CFLAGS already contains $flag) 2>&5
15297 >  ac_status=$?
15298 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 >  test $ac_status = 0; } ;; #(
15300 >  *) :
15301 >
15302 >     as_fn_append CFLAGS " $flag"
15303 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15304 >  (: CFLAGS="$CFLAGS") 2>&5
15305 >  ac_status=$?
15306 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 >  test $ac_status = 0; }
15308 >     ;;
15309 > esac
15310 >
15311 > else
15312 >
15313 >  CFLAGS=$flag
15314 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15315 >  (: CFLAGS="$CFLAGS") 2>&5
15316 >  ac_status=$?
15317 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15318 >  test $ac_status = 0; }
15319  
15320   fi
15321  
15322 + else
15323 +  :
15324   fi
15325  
15326 + done
15327 +
15328 +
15329 +
15330 +
15331 +
15332 + for flag in -Wlogical-op; do
15333 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15334 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15335 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15336 + if eval \${$as_CACHEVAR+:} false; then :
15337 +  $as_echo_n "(cached) " >&6
15338   else
15339 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15340 < $as_echo "no - OpenSSL support disabled" >&6; }
15341 <    cf_enable_openssl="no"
15339 >
15340 >  ax_check_save_flags=$CFLAGS
15341 >  CFLAGS="$CFLAGS  $flag"
15342 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 > /* end confdefs.h.  */
15344 >
15345 > int
15346 > main ()
15347 > {
15348 >
15349 >  ;
15350 >  return 0;
15351 > }
15352 > _ACEOF
15353 > if ac_fn_c_try_compile "$LINENO"; then :
15354 >  eval "$as_CACHEVAR=yes"
15355 > else
15356 >  eval "$as_CACHEVAR=no"
15357   fi
15358 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 +  CFLAGS=$ax_check_save_flags
15360   fi
15361 + eval ac_res=\$$as_CACHEVAR
15362 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15363 + $as_echo "$ac_res" >&6; }
15364 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15365 +
15366 + if ${CFLAGS+:} false; then :
15367 +
15368 +  case " $CFLAGS " in #(
15369 +  *" $flag "*) :
15370 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15371 +  (: CFLAGS already contains $flag) 2>&5
15372 +  ac_status=$?
15373 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15374 +  test $ac_status = 0; } ;; #(
15375 +  *) :
15376 +
15377 +     as_fn_append CFLAGS " $flag"
15378 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15379 +  (: CFLAGS="$CFLAGS") 2>&5
15380 +  ac_status=$?
15381 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15382 +  test $ac_status = 0; }
15383 +     ;;
15384 + esac
15385  
13921 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13922  ENABLE_SSL_TRUE=
13923  ENABLE_SSL_FALSE='#'
15386   else
15387 <  ENABLE_SSL_TRUE='#'
15388 <  ENABLE_SSL_FALSE=
15387 >
15388 >  CFLAGS=$flag
15389 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15390 >  (: CFLAGS="$CFLAGS") 2>&5
15391 >  ac_status=$?
15392 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15393 >  test $ac_status = 0; }
15394 >
15395   fi
15396  
15397 + else
15398 +  :
15399 + fi
15400  
15401 + done
15402  
15403 < # Check whether --enable-assert was given.
15404 < if test "${enable_assert+set}" = set; then :
15405 <  enableval=$enable_assert; assert=$enableval
15403 >
15404 >
15405 >
15406 >
15407 > for flag in -Wmissing-declarations; do
15408 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15409 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15410 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15411 > if eval \${$as_CACHEVAR+:} false; then :
15412 >  $as_echo_n "(cached) " >&6
15413   else
15414 <  assert=no
15414 >
15415 >  ax_check_save_flags=$CFLAGS
15416 >  CFLAGS="$CFLAGS  $flag"
15417 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 > /* end confdefs.h.  */
15419 >
15420 > int
15421 > main ()
15422 > {
15423 >
15424 >  ;
15425 >  return 0;
15426 > }
15427 > _ACEOF
15428 > if ac_fn_c_try_compile "$LINENO"; then :
15429 >  eval "$as_CACHEVAR=yes"
15430 > else
15431 >  eval "$as_CACHEVAR=no"
15432   fi
15433 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 +  CFLAGS=$ax_check_save_flags
15435 + fi
15436 + eval ac_res=\$$as_CACHEVAR
15437 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15438 + $as_echo "$ac_res" >&6; }
15439 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15440  
15441 + if ${CFLAGS+:} false; then :
15442  
15443 < if test "$assert" = "no"; then :
15443 >  case " $CFLAGS " in #(
15444 >  *" $flag "*) :
15445 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15446 >  (: CFLAGS already contains $flag) 2>&5
15447 >  ac_status=$?
15448 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15449 >  test $ac_status = 0; } ;; #(
15450 >  *) :
15451  
15452 < $as_echo "#define NDEBUG 1" >>confdefs.h
15452 >     as_fn_append CFLAGS " $flag"
15453 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15454 >  (: CFLAGS="$CFLAGS") 2>&5
15455 >  ac_status=$?
15456 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15457 >  test $ac_status = 0; }
15458 >     ;;
15459 > esac
15460 >
15461 > else
15462 >
15463 >  CFLAGS=$flag
15464 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15465 >  (: CFLAGS="$CFLAGS") 2>&5
15466 >  ac_status=$?
15467 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15468 >  test $ac_status = 0; }
15469  
15470   fi
15471  
15472 + else
15473 +  :
15474 + fi
15475  
15476 < $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
15476 > done
15477  
15478  
13949 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
15479  
15480  
13952 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
15481  
15482 + for flag in -Wmissing-field-initializers; do
15483 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15484 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15485 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15486 + if eval \${$as_CACHEVAR+:} false; then :
15487 +  $as_echo_n "(cached) " >&6
15488 + else
15489  
15490 < $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
15490 >  ax_check_save_flags=$CFLAGS
15491 >  CFLAGS="$CFLAGS  $flag"
15492 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 > /* end confdefs.h.  */
15494  
15495 + int
15496 + main ()
15497 + {
15498  
15499 < $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
15499 >  ;
15500 >  return 0;
15501 > }
15502 > _ACEOF
15503 > if ac_fn_c_try_compile "$LINENO"; then :
15504 >  eval "$as_CACHEVAR=yes"
15505 > else
15506 >  eval "$as_CACHEVAR=no"
15507 > fi
15508 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 >  CFLAGS=$ax_check_save_flags
15510 > fi
15511 > eval ac_res=\$$as_CACHEVAR
15512 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15513 > $as_echo "$ac_res" >&6; }
15514 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15515  
15516 + if ${CFLAGS+:} false; then :
15517  
15518 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
15518 >  case " $CFLAGS " in #(
15519 >  *" $flag "*) :
15520 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15521 >  (: CFLAGS already contains $flag) 2>&5
15522 >  ac_status=$?
15523 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15524 >  test $ac_status = 0; } ;; #(
15525 >  *) :
15526  
15527 +     as_fn_append CFLAGS " $flag"
15528 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15529 +  (: CFLAGS="$CFLAGS") 2>&5
15530 +  ac_status=$?
15531 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15532 +  test $ac_status = 0; }
15533 +     ;;
15534 + esac
15535  
15536 < $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
15536 > else
15537  
15538 +  CFLAGS=$flag
15539 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15540 +  (: CFLAGS="$CFLAGS") 2>&5
15541 +  ac_status=$?
15542 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15543 +  test $ac_status = 0; }
15544  
15545 < $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
15545 > fi
15546  
15547 + else
15548 +  :
15549 + fi
15550  
15551 < $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
15551 > done
15552  
15553  
13973 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
15554  
15555  
13976 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
15556  
15557 + for flag in -Wmissing-include-dirs; do
15558 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15559 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15560 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15561 + if eval \${$as_CACHEVAR+:} false; then :
15562 +  $as_echo_n "(cached) " >&6
15563 + else
15564  
15565 < $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
15565 >  ax_check_save_flags=$CFLAGS
15566 >  CFLAGS="$CFLAGS  $flag"
15567 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 > /* end confdefs.h.  */
15569  
15570 + int
15571 + main ()
15572 + {
15573  
15574 < $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
15574 >  ;
15575 >  return 0;
15576 > }
15577 > _ACEOF
15578 > if ac_fn_c_try_compile "$LINENO"; then :
15579 >  eval "$as_CACHEVAR=yes"
15580 > else
15581 >  eval "$as_CACHEVAR=no"
15582 > fi
15583 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 >  CFLAGS=$ax_check_save_flags
15585 > fi
15586 > eval ac_res=\$$as_CACHEVAR
15587 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15588 > $as_echo "$ac_res" >&6; }
15589 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15590  
15591 + if ${CFLAGS+:} false; then :
15592  
15593 < $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
15593 >  case " $CFLAGS " in #(
15594 >  *" $flag "*) :
15595 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15596 >  (: CFLAGS already contains $flag) 2>&5
15597 >  ac_status=$?
15598 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599 >  test $ac_status = 0; } ;; #(
15600 >  *) :
15601  
15602 +     as_fn_append CFLAGS " $flag"
15603 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15604 +  (: CFLAGS="$CFLAGS") 2>&5
15605 +  ac_status=$?
15606 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 +  test $ac_status = 0; }
15608 +     ;;
15609 + esac
15610  
15611 < # Argument processing.
15611 > else
15612 >
15613 >  CFLAGS=$flag
15614 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15615 >  (: CFLAGS="$CFLAGS") 2>&5
15616 >  ac_status=$?
15617 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 >  test $ac_status = 0; }
15619  
13990    desired_iopoll_mechanism="none"
13991    # Check whether --enable-kqueue was given.
13992 if test "${enable_kqueue+set}" = set; then :
13993  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15620   fi
15621  
15622 <  # Check whether --enable-epoll was given.
15623 < if test "${enable_epoll+set}" = set; then :
13998 <  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15622 > else
15623 >  :
15624   fi
15625  
15626 <  # Check whether --enable-devpoll was given.
15627 < if test "${enable_devpoll+set}" = set; then :
15628 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15626 > done
15627 >
15628 >
15629 >
15630 >
15631 >
15632 > for flag in -Wmissing-parameter-type; do
15633 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15634 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15635 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15636 > if eval \${$as_CACHEVAR+:} false; then :
15637 >  $as_echo_n "(cached) " >&6
15638 > else
15639 >
15640 >  ax_check_save_flags=$CFLAGS
15641 >  CFLAGS="$CFLAGS  $flag"
15642 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 > /* end confdefs.h.  */
15644 >
15645 > int
15646 > main ()
15647 > {
15648 >
15649 >  ;
15650 >  return 0;
15651 > }
15652 > _ACEOF
15653 > if ac_fn_c_try_compile "$LINENO"; then :
15654 >  eval "$as_CACHEVAR=yes"
15655 > else
15656 >  eval "$as_CACHEVAR=no"
15657   fi
15658 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659 +  CFLAGS=$ax_check_save_flags
15660 + fi
15661 + eval ac_res=\$$as_CACHEVAR
15662 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15663 + $as_echo "$ac_res" >&6; }
15664 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15665 +
15666 + if ${CFLAGS+:} false; then :
15667 +
15668 +  case " $CFLAGS " in #(
15669 +  *" $flag "*) :
15670 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15671 +  (: CFLAGS already contains $flag) 2>&5
15672 +  ac_status=$?
15673 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15674 +  test $ac_status = 0; } ;; #(
15675 +  *) :
15676 +
15677 +     as_fn_append CFLAGS " $flag"
15678 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15679 +  (: CFLAGS="$CFLAGS") 2>&5
15680 +  ac_status=$?
15681 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15682 +  test $ac_status = 0; }
15683 +     ;;
15684 + esac
15685 +
15686 + else
15687 +
15688 +  CFLAGS=$flag
15689 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15690 +  (: CFLAGS="$CFLAGS") 2>&5
15691 +  ac_status=$?
15692 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 +  test $ac_status = 0; }
15694  
14006  # Check whether --enable-poll was given.
14007 if test "${enable_poll+set}" = set; then :
14008  enableval=$enable_poll; desired_iopoll_mechanism="poll"
15695   fi
15696  
15697 <  # Check whether --enable-select was given.
15698 < if test "${enable_select+set}" = set; then :
14013 <  enableval=$enable_select; desired_iopoll_mechanism="select"
15697 > else
15698 >  :
15699   fi
15700  
15701 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14017 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14018 <  iopoll_mechanism_none=0
15701 > done
15702  
15703 < cat >>confdefs.h <<_ACEOF
15704 < #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
15703 >
15704 >
15705 >
15706 >
15707 > for flag in -Wmissing-prototypes; do
15708 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15709 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15710 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15711 > if eval \${$as_CACHEVAR+:} false; then :
15712 >  $as_echo_n "(cached) " >&6
15713 > else
15714 >
15715 >  ax_check_save_flags=$CFLAGS
15716 >  CFLAGS="$CFLAGS  $flag"
15717 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 > /* end confdefs.h.  */
15719 >
15720 > int
15721 > main ()
15722 > {
15723 >
15724 >  ;
15725 >  return 0;
15726 > }
15727   _ACEOF
15728 + if ac_fn_c_try_compile "$LINENO"; then :
15729 +  eval "$as_CACHEVAR=yes"
15730 + else
15731 +  eval "$as_CACHEVAR=no"
15732 + fi
15733 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734 +  CFLAGS=$ax_check_save_flags
15735 + fi
15736 + eval ac_res=\$$as_CACHEVAR
15737 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15738 + $as_echo "$ac_res" >&6; }
15739 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15740  
15741 <      iopoll_mechanism_kqueue=1
15741 > if ${CFLAGS+:} false; then :
15742  
15743 < cat >>confdefs.h <<_ACEOF
15744 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
15743 >  case " $CFLAGS " in #(
15744 >  *" $flag "*) :
15745 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15746 >  (: CFLAGS already contains $flag) 2>&5
15747 >  ac_status=$?
15748 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15749 >  test $ac_status = 0; } ;; #(
15750 >  *) :
15751 >
15752 >     as_fn_append CFLAGS " $flag"
15753 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15754 >  (: CFLAGS="$CFLAGS") 2>&5
15755 >  ac_status=$?
15756 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 >  test $ac_status = 0; }
15758 >     ;;
15759 > esac
15760 >
15761 > else
15762 >
15763 >  CFLAGS=$flag
15764 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15765 >  (: CFLAGS="$CFLAGS") 2>&5
15766 >  ac_status=$?
15767 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 >  test $ac_status = 0; }
15769 >
15770 > fi
15771 >
15772 > else
15773 >  :
15774 > fi
15775 >
15776 > done
15777 >
15778 >
15779 >
15780 >
15781 >
15782 > for flag in -Wnested-externs; do
15783 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15784 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15785 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15786 > if eval \${$as_CACHEVAR+:} false; then :
15787 >  $as_echo_n "(cached) " >&6
15788 > else
15789 >
15790 >  ax_check_save_flags=$CFLAGS
15791 >  CFLAGS="$CFLAGS  $flag"
15792 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 > /* end confdefs.h.  */
15794 >
15795 > int
15796 > main ()
15797 > {
15798 >
15799 >  ;
15800 >  return 0;
15801 > }
15802   _ACEOF
15803 + if ac_fn_c_try_compile "$LINENO"; then :
15804 +  eval "$as_CACHEVAR=yes"
15805 + else
15806 +  eval "$as_CACHEVAR=no"
15807 + fi
15808 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 +  CFLAGS=$ax_check_save_flags
15810 + fi
15811 + eval ac_res=\$$as_CACHEVAR
15812 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15813 + $as_echo "$ac_res" >&6; }
15814 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15815 +
15816 + if ${CFLAGS+:} false; then :
15817 +
15818 +  case " $CFLAGS " in #(
15819 +  *" $flag "*) :
15820 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15821 +  (: CFLAGS already contains $flag) 2>&5
15822 +  ac_status=$?
15823 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15824 +  test $ac_status = 0; } ;; #(
15825 +  *) :
15826 +
15827 +     as_fn_append CFLAGS " $flag"
15828 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15829 +  (: CFLAGS="$CFLAGS") 2>&5
15830 +  ac_status=$?
15831 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832 +  test $ac_status = 0; }
15833 +     ;;
15834 + esac
15835 +
15836 + else
15837 +
15838 +  CFLAGS=$flag
15839 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15840 +  (: CFLAGS="$CFLAGS") 2>&5
15841 +  ac_status=$?
15842 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843 +  test $ac_status = 0; }
15844 +
15845 + fi
15846 +
15847 + else
15848 +  :
15849 + fi
15850 +
15851 + done
15852 +
15853  
15854 +
15855 +
15856 +
15857 + for flag in -Wold-style-declaration; do
15858 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15859 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15860 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15861 + if eval \${$as_CACHEVAR+:} false; then :
15862 +  $as_echo_n "(cached) " >&6
15863 + else
15864 +
15865 +  ax_check_save_flags=$CFLAGS
15866 +  CFLAGS="$CFLAGS  $flag"
15867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868   /* end confdefs.h.  */
14032 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14034 #define kevent innocuous_kevent
15869  
15870 < /* System header to define __stub macros and hopefully few prototypes,
15871 <    which can conflict with char kevent (); below.
15872 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14039 <    <limits.h> exists even on freestanding compilers.  */
15870 > int
15871 > main ()
15872 > {
15873  
15874 < #ifdef __STDC__
15875 < # include <limits.h>
15876 < #else
15877 < # include <assert.h>
15878 < #endif
15874 >  ;
15875 >  return 0;
15876 > }
15877 > _ACEOF
15878 > if ac_fn_c_try_compile "$LINENO"; then :
15879 >  eval "$as_CACHEVAR=yes"
15880 > else
15881 >  eval "$as_CACHEVAR=no"
15882 > fi
15883 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 >  CFLAGS=$ax_check_save_flags
15885 > fi
15886 > eval ac_res=\$$as_CACHEVAR
15887 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15888 > $as_echo "$ac_res" >&6; }
15889 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15890  
15891 < #undef kevent
15891 > if ${CFLAGS+:} false; then :
15892  
15893 < /* Override any GCC internal prototype to avoid an error.
15894 <   Use char because int might match the return type of a GCC
15895 <   builtin and then its argument prototype would still apply.  */
15896 < #ifdef __cplusplus
15897 < extern "C"
15898 < #endif
15899 < char kevent ();
15900 < /* The GNU C library defines this for functions which it implements
15901 <    to always fail with ENOSYS.  Some functions are actually named
15902 <    something starting with __ and the normal name is an alias.  */
15903 < #if defined __stub_kevent || defined __stub___kevent
15904 < choke me
15905 < #endif
15893 >  case " $CFLAGS " in #(
15894 >  *" $flag "*) :
15895 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15896 >  (: CFLAGS already contains $flag) 2>&5
15897 >  ac_status=$?
15898 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 >  test $ac_status = 0; } ;; #(
15900 >  *) :
15901 >
15902 >     as_fn_append CFLAGS " $flag"
15903 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15904 >  (: CFLAGS="$CFLAGS") 2>&5
15905 >  ac_status=$?
15906 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 >  test $ac_status = 0; }
15908 >     ;;
15909 > esac
15910 >
15911 > else
15912 >
15913 >  CFLAGS=$flag
15914 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15915 >  (: CFLAGS="$CFLAGS") 2>&5
15916 >  ac_status=$?
15917 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15918 >  test $ac_status = 0; }
15919 >
15920 > fi
15921 >
15922 > else
15923 >  :
15924 > fi
15925 >
15926 > done
15927 >
15928 >
15929 >
15930 >
15931 >
15932 > for flag in -Woverride-init; do
15933 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15934 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15935 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15936 > if eval \${$as_CACHEVAR+:} false; then :
15937 >  $as_echo_n "(cached) " >&6
15938 > else
15939 >
15940 >  ax_check_save_flags=$CFLAGS
15941 >  CFLAGS="$CFLAGS  $flag"
15942 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 > /* end confdefs.h.  */
15944  
15945   int
15946   main ()
15947   {
15948 < return kevent ();
15948 >
15949    ;
15950    return 0;
15951   }
15952   _ACEOF
15953 < if ac_fn_c_try_link "$LINENO"; then :
15954 <  is_kqueue_mechanism_available="yes"
15953 > if ac_fn_c_try_compile "$LINENO"; then :
15954 >  eval "$as_CACHEVAR=yes"
15955   else
15956 <  is_kqueue_mechanism_available="no"
15956 >  eval "$as_CACHEVAR=no"
15957   fi
15958 < rm -f core conftest.err conftest.$ac_objext \
15959 <    conftest$ac_exeext conftest.$ac_ext
15960 <      iopoll_mechanism_epoll=2
15958 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15959 >  CFLAGS=$ax_check_save_flags
15960 > fi
15961 > eval ac_res=\$$as_CACHEVAR
15962 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15963 > $as_echo "$ac_res" >&6; }
15964 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15965  
15966 < cat >>confdefs.h <<_ACEOF
15967 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
15966 > if ${CFLAGS+:} false; then :
15967 >
15968 >  case " $CFLAGS " in #(
15969 >  *" $flag "*) :
15970 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15971 >  (: CFLAGS already contains $flag) 2>&5
15972 >  ac_status=$?
15973 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15974 >  test $ac_status = 0; } ;; #(
15975 >  *) :
15976 >
15977 >     as_fn_append CFLAGS " $flag"
15978 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15979 >  (: CFLAGS="$CFLAGS") 2>&5
15980 >  ac_status=$?
15981 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982 >  test $ac_status = 0; }
15983 >     ;;
15984 > esac
15985 >
15986 > else
15987 >
15988 >  CFLAGS=$flag
15989 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15990 >  (: CFLAGS="$CFLAGS") 2>&5
15991 >  ac_status=$?
15992 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15993 >  test $ac_status = 0; }
15994 >
15995 > fi
15996 >
15997 > else
15998 >  :
15999 > fi
16000 >
16001 > done
16002 >
16003 >
16004 >
16005 >
16006 >
16007 > for flag in -Wpointer-arith; do
16008 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16009 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16010 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16011 > if eval \${$as_CACHEVAR+:} false; then :
16012 >  $as_echo_n "(cached) " >&6
16013 > else
16014 >
16015 >  ax_check_save_flags=$CFLAGS
16016 >  CFLAGS="$CFLAGS  $flag"
16017 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 > /* end confdefs.h.  */
16019 >
16020 > int
16021 > main ()
16022 > {
16023 >
16024 >  ;
16025 >  return 0;
16026 > }
16027   _ACEOF
16028 + if ac_fn_c_try_compile "$LINENO"; then :
16029 +  eval "$as_CACHEVAR=yes"
16030 + else
16031 +  eval "$as_CACHEVAR=no"
16032 + fi
16033 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 +  CFLAGS=$ax_check_save_flags
16035 + fi
16036 + eval ac_res=\$$as_CACHEVAR
16037 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16038 + $as_echo "$ac_res" >&6; }
16039 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16040  
16041 <  if test "$cross_compiling" = yes; then :
16042 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16043 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16044 < as_fn_error $? "cannot run test program while cross compiling
16045 < See \`config.log' for more details" "$LINENO" 5; }
16041 > if ${CFLAGS+:} false; then :
16042 >
16043 >  case " $CFLAGS " in #(
16044 >  *" $flag "*) :
16045 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16046 >  (: CFLAGS already contains $flag) 2>&5
16047 >  ac_status=$?
16048 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16049 >  test $ac_status = 0; } ;; #(
16050 >  *) :
16051 >
16052 >     as_fn_append CFLAGS " $flag"
16053 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16054 >  (: CFLAGS="$CFLAGS") 2>&5
16055 >  ac_status=$?
16056 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057 >  test $ac_status = 0; }
16058 >     ;;
16059 > esac
16060 >
16061 > else
16062 >
16063 >  CFLAGS=$flag
16064 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16065 >  (: CFLAGS="$CFLAGS") 2>&5
16066 >  ac_status=$?
16067 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 >  test $ac_status = 0; }
16069 >
16070 > fi
16071 >
16072 > else
16073 >  :
16074 > fi
16075 >
16076 > done
16077 >
16078 >
16079 >
16080 >
16081 >
16082 > for flag in -Wredundant-decls; do
16083 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16084 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16085 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16086 > if eval \${$as_CACHEVAR+:} false; then :
16087 >  $as_echo_n "(cached) " >&6
16088   else
16089 +
16090 +  ax_check_save_flags=$CFLAGS
16091 +  CFLAGS="$CFLAGS  $flag"
16092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093   /* end confdefs.h.  */
16094  
16095 < #include <sys/epoll.h>
16096 < #include <sys/syscall.h>
16097 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
16098 < #if !defined(__NR_epoll_create)
16099 < #if defined(__ia64__)
16100 < #define __NR_epoll_create 1243
16101 < #elif defined(__x86_64__)
16102 < #define __NR_epoll_create 214
16103 < #elif defined(__sparc64__) || defined(__sparc__)
16104 < #define __NR_epoll_create 193
16105 < #elif defined(__s390__) || defined(__m68k__)
16106 < #define __NR_epoll_create 249
16107 < #elif defined(__ppc64__) || defined(__ppc__)
16108 < #define __NR_epoll_create 236
16109 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
16110 < #define __NR_epoll_create 224
16111 < #elif defined(__alpha__)
16112 < #define __NR_epoll_create 407
16113 < #elif defined(__sh64__)
16114 < #define __NR_epoll_create 282
16115 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
16116 < #define __NR_epoll_create 254
16117 < #else
16118 < #error No system call numbers defined for epoll family.
16119 < #endif
16120 < #endif
16121 < _syscall1(int, epoll_create, int, size)
16122 < #endif
16095 > int
16096 > main ()
16097 > {
16098 >
16099 >  ;
16100 >  return 0;
16101 > }
16102 > _ACEOF
16103 > if ac_fn_c_try_compile "$LINENO"; then :
16104 >  eval "$as_CACHEVAR=yes"
16105 > else
16106 >  eval "$as_CACHEVAR=no"
16107 > fi
16108 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 >  CFLAGS=$ax_check_save_flags
16110 > fi
16111 > eval ac_res=\$$as_CACHEVAR
16112 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16113 > $as_echo "$ac_res" >&6; }
16114 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16115 >
16116 > if ${CFLAGS+:} false; then :
16117 >
16118 >  case " $CFLAGS " in #(
16119 >  *" $flag "*) :
16120 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16121 >  (: CFLAGS already contains $flag) 2>&5
16122 >  ac_status=$?
16123 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16124 >  test $ac_status = 0; } ;; #(
16125 >  *) :
16126 >
16127 >     as_fn_append CFLAGS " $flag"
16128 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16129 >  (: CFLAGS="$CFLAGS") 2>&5
16130 >  ac_status=$?
16131 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16132 >  test $ac_status = 0; }
16133 >     ;;
16134 > esac
16135 >
16136 > else
16137 >
16138 >  CFLAGS=$flag
16139 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16140 >  (: CFLAGS="$CFLAGS") 2>&5
16141 >  ac_status=$?
16142 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16143 >  test $ac_status = 0; }
16144 >
16145 > fi
16146 >
16147 > else
16148 >  :
16149 > fi
16150 >
16151 > done
16152 >
16153 >
16154 >
16155 >
16156 >
16157 > for flag in -Wshadow; do
16158 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16159 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16160 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16161 > if eval \${$as_CACHEVAR+:} false; then :
16162 >  $as_echo_n "(cached) " >&6
16163 > else
16164 >
16165 >  ax_check_save_flags=$CFLAGS
16166 >  CFLAGS="$CFLAGS  $flag"
16167 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 > /* end confdefs.h.  */
16169  
16170   int
16171   main ()
16172   {
16173 < return epoll_create(256) == -1 ? 1 : 0
16173 >
16174    ;
16175    return 0;
16176   }
16177   _ACEOF
16178 < if ac_fn_c_try_run "$LINENO"; then :
16179 <  is_epoll_mechanism_available="yes"
16178 > if ac_fn_c_try_compile "$LINENO"; then :
16179 >  eval "$as_CACHEVAR=yes"
16180   else
16181 <  is_epoll_mechanism_available="no"
16181 >  eval "$as_CACHEVAR=no"
16182   fi
16183 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16184 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16183 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 >  CFLAGS=$ax_check_save_flags
16185   fi
16186 + eval ac_res=\$$as_CACHEVAR
16187 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16188 + $as_echo "$ac_res" >&6; }
16189 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16190  
16191 <      iopoll_mechanism_devpoll=3
16191 > if ${CFLAGS+:} false; then :
16192  
16193 < cat >>confdefs.h <<_ACEOF
16194 < #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
16193 >  case " $CFLAGS " in #(
16194 >  *" $flag "*) :
16195 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16196 >  (: CFLAGS already contains $flag) 2>&5
16197 >  ac_status=$?
16198 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16199 >  test $ac_status = 0; } ;; #(
16200 >  *) :
16201 >
16202 >     as_fn_append CFLAGS " $flag"
16203 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16204 >  (: CFLAGS="$CFLAGS") 2>&5
16205 >  ac_status=$?
16206 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 >  test $ac_status = 0; }
16208 >     ;;
16209 > esac
16210 >
16211 > else
16212 >
16213 >  CFLAGS=$flag
16214 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16215 >  (: CFLAGS="$CFLAGS") 2>&5
16216 >  ac_status=$?
16217 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16218 >  test $ac_status = 0; }
16219 >
16220 > fi
16221 >
16222 > else
16223 >  :
16224 > fi
16225 >
16226 > done
16227 >
16228 >
16229 >
16230 >
16231 >
16232 > for flag in -Wshift-negative-value; do
16233 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16234 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16235 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16236 > if eval \${$as_CACHEVAR+:} false; then :
16237 >  $as_echo_n "(cached) " >&6
16238 > else
16239 >
16240 >  ax_check_save_flags=$CFLAGS
16241 >  CFLAGS="$CFLAGS  $flag"
16242 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 > /* end confdefs.h.  */
16244 >
16245 > int
16246 > main ()
16247 > {
16248 >
16249 >  ;
16250 >  return 0;
16251 > }
16252   _ACEOF
16253 + if ac_fn_c_try_compile "$LINENO"; then :
16254 +  eval "$as_CACHEVAR=yes"
16255 + else
16256 +  eval "$as_CACHEVAR=no"
16257 + fi
16258 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 +  CFLAGS=$ax_check_save_flags
16260 + fi
16261 + eval ac_res=\$$as_CACHEVAR
16262 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16263 + $as_echo "$ac_res" >&6; }
16264 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16265 +
16266 + if ${CFLAGS+:} false; then :
16267  
16268 +  case " $CFLAGS " in #(
16269 +  *" $flag "*) :
16270 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16271 +  (: CFLAGS already contains $flag) 2>&5
16272 +  ac_status=$?
16273 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274 +  test $ac_status = 0; } ;; #(
16275 +  *) :
16276 +
16277 +     as_fn_append CFLAGS " $flag"
16278 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16279 +  (: CFLAGS="$CFLAGS") 2>&5
16280 +  ac_status=$?
16281 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16282 +  test $ac_status = 0; }
16283 +     ;;
16284 + esac
16285 +
16286 + else
16287 +
16288 +  CFLAGS=$flag
16289 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16290 +  (: CFLAGS="$CFLAGS") 2>&5
16291 +  ac_status=$?
16292 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 +  test $ac_status = 0; }
16294 +
16295 + fi
16296 +
16297 + else
16298 +  :
16299 + fi
16300 +
16301 + done
16302 +
16303 +
16304 +
16305 +
16306 +
16307 + for flag in -Wsign-compare; do
16308 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16309 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16310 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16311 + if eval \${$as_CACHEVAR+:} false; then :
16312 +  $as_echo_n "(cached) " >&6
16313 + else
16314 +
16315 +  ax_check_save_flags=$CFLAGS
16316 +  CFLAGS="$CFLAGS  $flag"
16317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318   /* end confdefs.h.  */
16319 < #include <devpoll.h>
16319 >
16320   int
16321   main ()
16322   {
# Line 14154 | Line 16326 | main ()
16326   }
16327   _ACEOF
16328   if ac_fn_c_try_compile "$LINENO"; then :
16329 <  is_devpoll_mechanism_available="yes"
16329 >  eval "$as_CACHEVAR=yes"
16330   else
16331 <  is_devpoll_mechanism_available="no"
16331 >  eval "$as_CACHEVAR=no"
16332   fi
16333   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16334 >  CFLAGS=$ax_check_save_flags
16335 > fi
16336 > eval ac_res=\$$as_CACHEVAR
16337 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16338 > $as_echo "$ac_res" >&6; }
16339 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16340  
16341 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
16341 > if ${CFLAGS+:} false; then :
16342  
16343 <  fi
16343 >  case " $CFLAGS " in #(
16344 >  *" $flag "*) :
16345 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16346 >  (: CFLAGS already contains $flag) 2>&5
16347 >  ac_status=$?
16348 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16349 >  test $ac_status = 0; } ;; #(
16350 >  *) :
16351 >
16352 >     as_fn_append CFLAGS " $flag"
16353 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16354 >  (: CFLAGS="$CFLAGS") 2>&5
16355 >  ac_status=$?
16356 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16357 >  test $ac_status = 0; }
16358 >     ;;
16359 > esac
16360 >
16361 > else
16362 >
16363 >  CFLAGS=$flag
16364 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16365 >  (: CFLAGS="$CFLAGS") 2>&5
16366 >  ac_status=$?
16367 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16368 >  test $ac_status = 0; }
16369 >
16370 > fi
16371 >
16372 > else
16373 >  :
16374 > fi
16375 >
16376 > done
16377 >
16378 >
16379 >
16380 >
16381 >
16382 > for flag in -Wtype-limits; do
16383 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16384 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16385 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16386 > if eval \${$as_CACHEVAR+:} false; then :
16387 >  $as_echo_n "(cached) " >&6
16388 > else
16389 >
16390 >  ax_check_save_flags=$CFLAGS
16391 >  CFLAGS="$CFLAGS  $flag"
16392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393   /* end confdefs.h.  */
16394 < #include <sys/devpoll.h>
16394 >
16395   int
16396   main ()
16397   {
# Line 14176 | Line 16401 | main ()
16401   }
16402   _ACEOF
16403   if ac_fn_c_try_compile "$LINENO"; then :
16404 <  is_devpoll_mechanism_available="yes"
16404 >  eval "$as_CACHEVAR=yes"
16405   else
16406 <  is_devpoll_mechanism_available="no"
16406 >  eval "$as_CACHEVAR=no"
16407   fi
16408   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16409 >  CFLAGS=$ax_check_save_flags
16410 > fi
16411 > eval ac_res=\$$as_CACHEVAR
16412 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16413 > $as_echo "$ac_res" >&6; }
16414 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16415  
16416 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16416 > if ${CFLAGS+:} false; then :
16417  
16418 <  fi
16419 <      iopoll_mechanism_poll=4
16418 >  case " $CFLAGS " in #(
16419 >  *" $flag "*) :
16420 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16421 >  (: CFLAGS already contains $flag) 2>&5
16422 >  ac_status=$?
16423 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16424 >  test $ac_status = 0; } ;; #(
16425 >  *) :
16426  
16427 < cat >>confdefs.h <<_ACEOF
16428 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
16427 >     as_fn_append CFLAGS " $flag"
16428 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16429 >  (: CFLAGS="$CFLAGS") 2>&5
16430 >  ac_status=$?
16431 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16432 >  test $ac_status = 0; }
16433 >     ;;
16434 > esac
16435 >
16436 > else
16437 >
16438 >  CFLAGS=$flag
16439 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16440 >  (: CFLAGS="$CFLAGS") 2>&5
16441 >  ac_status=$?
16442 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16443 >  test $ac_status = 0; }
16444 >
16445 > fi
16446 >
16447 > else
16448 >  :
16449 > fi
16450 >
16451 > done
16452 >
16453 >
16454 >
16455 >
16456 >
16457 > for flag in -Wundef; do
16458 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16459 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16460 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16461 > if eval \${$as_CACHEVAR+:} false; then :
16462 >  $as_echo_n "(cached) " >&6
16463 > else
16464 >
16465 >  ax_check_save_flags=$CFLAGS
16466 >  CFLAGS="$CFLAGS  $flag"
16467 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 > /* end confdefs.h.  */
16469 >
16470 > int
16471 > main ()
16472 > {
16473 >
16474 >  ;
16475 >  return 0;
16476 > }
16477   _ACEOF
16478 + if ac_fn_c_try_compile "$LINENO"; then :
16479 +  eval "$as_CACHEVAR=yes"
16480 + else
16481 +  eval "$as_CACHEVAR=no"
16482 + fi
16483 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484 +  CFLAGS=$ax_check_save_flags
16485 + fi
16486 + eval ac_res=\$$as_CACHEVAR
16487 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16488 + $as_echo "$ac_res" >&6; }
16489 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16490 +
16491 + if ${CFLAGS+:} false; then :
16492 +
16493 +  case " $CFLAGS " in #(
16494 +  *" $flag "*) :
16495 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16496 +  (: CFLAGS already contains $flag) 2>&5
16497 +  ac_status=$?
16498 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 +  test $ac_status = 0; } ;; #(
16500 +  *) :
16501 +
16502 +     as_fn_append CFLAGS " $flag"
16503 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16504 +  (: CFLAGS="$CFLAGS") 2>&5
16505 +  ac_status=$?
16506 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16507 +  test $ac_status = 0; }
16508 +     ;;
16509 + esac
16510 +
16511 + else
16512 +
16513 +  CFLAGS=$flag
16514 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16515 +  (: CFLAGS="$CFLAGS") 2>&5
16516 +  ac_status=$?
16517 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16518 +  test $ac_status = 0; }
16519 +
16520 + fi
16521 +
16522 + else
16523 +  :
16524 + fi
16525 +
16526 + done
16527 +
16528 +
16529  
16530 +
16531 +
16532 + for flag in -Wuninitialized; do
16533 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16534 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16535 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16536 + if eval \${$as_CACHEVAR+:} false; then :
16537 +  $as_echo_n "(cached) " >&6
16538 + else
16539 +
16540 +  ax_check_save_flags=$CFLAGS
16541 +  CFLAGS="$CFLAGS  $flag"
16542    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543   /* end confdefs.h.  */
14197 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14199 #define poll innocuous_poll
16544  
16545 < /* System header to define __stub macros and hopefully few prototypes,
16546 <    which can conflict with char poll (); below.
16547 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14204 <    <limits.h> exists even on freestanding compilers.  */
16545 > int
16546 > main ()
16547 > {
16548  
16549 < #ifdef __STDC__
16550 < # include <limits.h>
16551 < #else
16552 < # include <assert.h>
16553 < #endif
16549 >  ;
16550 >  return 0;
16551 > }
16552 > _ACEOF
16553 > if ac_fn_c_try_compile "$LINENO"; then :
16554 >  eval "$as_CACHEVAR=yes"
16555 > else
16556 >  eval "$as_CACHEVAR=no"
16557 > fi
16558 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 >  CFLAGS=$ax_check_save_flags
16560 > fi
16561 > eval ac_res=\$$as_CACHEVAR
16562 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16563 > $as_echo "$ac_res" >&6; }
16564 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16565 >
16566 > if ${CFLAGS+:} false; then :
16567 >
16568 >  case " $CFLAGS " in #(
16569 >  *" $flag "*) :
16570 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16571 >  (: CFLAGS already contains $flag) 2>&5
16572 >  ac_status=$?
16573 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16574 >  test $ac_status = 0; } ;; #(
16575 >  *) :
16576 >
16577 >     as_fn_append CFLAGS " $flag"
16578 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16579 >  (: CFLAGS="$CFLAGS") 2>&5
16580 >  ac_status=$?
16581 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16582 >  test $ac_status = 0; }
16583 >     ;;
16584 > esac
16585 >
16586 > else
16587 >
16588 >  CFLAGS=$flag
16589 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16590 >  (: CFLAGS="$CFLAGS") 2>&5
16591 >  ac_status=$?
16592 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16593 >  test $ac_status = 0; }
16594 >
16595 > fi
16596 >
16597 > else
16598 >  :
16599 > fi
16600 >
16601 > done
16602 >
16603 >
16604 >
16605 >
16606 >
16607 > for flag in -Wwrite-strings; do
16608 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16609 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16610 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16611 > if eval \${$as_CACHEVAR+:} false; then :
16612 >  $as_echo_n "(cached) " >&6
16613 > else
16614 >
16615 >  ax_check_save_flags=$CFLAGS
16616 >  CFLAGS="$CFLAGS  $flag"
16617 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 > /* end confdefs.h.  */
16619 >
16620 > int
16621 > main ()
16622 > {
16623 >
16624 >  ;
16625 >  return 0;
16626 > }
16627 > _ACEOF
16628 > if ac_fn_c_try_compile "$LINENO"; then :
16629 >  eval "$as_CACHEVAR=yes"
16630 > else
16631 >  eval "$as_CACHEVAR=no"
16632 > fi
16633 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 >  CFLAGS=$ax_check_save_flags
16635 > fi
16636 > eval ac_res=\$$as_CACHEVAR
16637 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16638 > $as_echo "$ac_res" >&6; }
16639 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16640 >
16641 > if ${CFLAGS+:} false; then :
16642 >
16643 >  case " $CFLAGS " in #(
16644 >  *" $flag "*) :
16645 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16646 >  (: CFLAGS already contains $flag) 2>&5
16647 >  ac_status=$?
16648 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16649 >  test $ac_status = 0; } ;; #(
16650 >  *) :
16651 >
16652 >     as_fn_append CFLAGS " $flag"
16653 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16654 >  (: CFLAGS="$CFLAGS") 2>&5
16655 >  ac_status=$?
16656 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 >  test $ac_status = 0; }
16658 >     ;;
16659 > esac
16660 >
16661 > else
16662 >
16663 >  CFLAGS=$flag
16664 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16665 >  (: CFLAGS="$CFLAGS") 2>&5
16666 >  ac_status=$?
16667 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668 >  test $ac_status = 0; }
16669 >
16670 > fi
16671 >
16672 > else
16673 >  :
16674 > fi
16675 >
16676 > done
16677 >
16678 >
16679 > fi
16680 >
16681 >
16682 >  # Check whether --enable-efence was given.
16683 > if test "${enable_efence+set}" = set; then :
16684 >  enableval=$enable_efence; efence="$enableval"
16685 > else
16686 >  efence="no"
16687 > fi
16688  
16689 < #undef poll
16689 >
16690 >  if test "$efence" = "yes"; then :
16691 >
16692 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16693 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16694 > if ${ac_cv_search_EF_Print+:} false; then :
16695 >  $as_echo_n "(cached) " >&6
16696 > else
16697 >  ac_func_search_save_LIBS=$LIBS
16698 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 > /* end confdefs.h.  */
16700  
16701   /* Override any GCC internal prototype to avoid an error.
16702     Use char because int might match the return type of a GCC
# Line 14217 | Line 16704 | _ACEOF
16704   #ifdef __cplusplus
16705   extern "C"
16706   #endif
16707 < char poll ();
16708 < /* The GNU C library defines this for functions which it implements
16709 <    to always fail with ENOSYS.  Some functions are actually named
16710 <    something starting with __ and the normal name is an alias.  */
16711 < #if defined __stub_poll || defined __stub___poll
16712 < choke me
16713 < #endif
16707 > char EF_Print ();
16708 > int
16709 > main ()
16710 > {
16711 > return EF_Print ();
16712 >  ;
16713 >  return 0;
16714 > }
16715 > _ACEOF
16716 > for ac_lib in '' efence; do
16717 >  if test -z "$ac_lib"; then
16718 >    ac_res="none required"
16719 >  else
16720 >    ac_res=-l$ac_lib
16721 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16722 >  fi
16723 >  if ac_fn_c_try_link "$LINENO"; then :
16724 >  ac_cv_search_EF_Print=$ac_res
16725 > fi
16726 > rm -f core conftest.err conftest.$ac_objext \
16727 >    conftest$ac_exeext
16728 >  if ${ac_cv_search_EF_Print+:} false; then :
16729 >  break
16730 > fi
16731 > done
16732 > if ${ac_cv_search_EF_Print+:} false; then :
16733 >
16734 > else
16735 >  ac_cv_search_EF_Print=no
16736 > fi
16737 > rm conftest.$ac_ext
16738 > LIBS=$ac_func_search_save_LIBS
16739 > fi
16740 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16741 > $as_echo "$ac_cv_search_EF_Print" >&6; }
16742 > ac_res=$ac_cv_search_EF_Print
16743 > if test "$ac_res" != no; then :
16744 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16745 >
16746 > else
16747 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16748 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16749 > as_fn_error $? "Electric Fence 'efence' library not found
16750 > See \`config.log' for more details" "$LINENO" 5; }
16751 > fi
16752 >
16753 >
16754 > fi
16755 >
16756 >
16757 >
16758 >
16759 > # Check whether --with-tls was given.
16760 > if test "${with_tls+set}" = set; then :
16761 >  withval=$with_tls; with_tls=$withval
16762 > else
16763 >  with_tls=auto
16764 > fi
16765 >
16766 >
16767 > if test "$with_tls" = "openssl" ||
16768 >   test "$with_tls" = "auto"; then
16769 >    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16770 > if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16771 >
16772 >      if test "$cross_compiling" = yes; then :
16773 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16774 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16775 > as_fn_error $? "cannot run test program while cross compiling
16776 > See \`config.log' for more details" "$LINENO" 5; }
16777 > else
16778 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 > /* end confdefs.h.  */
16780 >
16781  
16782 +          #include <openssl/opensslv.h>
16783 +          #include <stdlib.h>
16784   int
16785   main ()
16786   {
16787 < return poll ();
16787 >
16788 >          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16789 >  ;
16790 >  return 0;
16791 > }
16792 > _ACEOF
16793 > if ac_fn_c_try_run "$LINENO"; then :
16794 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16795 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16796 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16797 >  $as_echo_n "(cached) " >&6
16798 > else
16799 >  ac_check_lib_save_LIBS=$LIBS
16800 > LIBS="-lcrypto  $LIBS"
16801 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 > /* end confdefs.h.  */
16803 >
16804 > /* Override any GCC internal prototype to avoid an error.
16805 >   Use char because int might match the return type of a GCC
16806 >   builtin and then its argument prototype would still apply.  */
16807 > #ifdef __cplusplus
16808 > extern "C"
16809 > #endif
16810 > char RSA_free ();
16811 > int
16812 > main ()
16813 > {
16814 > return RSA_free ();
16815    ;
16816    return 0;
16817   }
16818   _ACEOF
16819   if ac_fn_c_try_link "$LINENO"; then :
16820 <  is_poll_mechanism_available="yes"
16820 >  ac_cv_lib_crypto_RSA_free=yes
16821   else
16822 <  is_poll_mechanism_available="no"
16822 >  ac_cv_lib_crypto_RSA_free=no
16823   fi
16824   rm -f core conftest.err conftest.$ac_objext \
16825      conftest$ac_exeext conftest.$ac_ext
16826 <      iopoll_mechanism_select=5
16826 > LIBS=$ac_check_lib_save_LIBS
16827 > fi
16828 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16829 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16830 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16831 >  cat >>confdefs.h <<_ACEOF
16832 > #define HAVE_LIBCRYPTO 1
16833 > _ACEOF
16834  
16835 < cat >>confdefs.h <<_ACEOF
16836 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16835 >  LIBS="-lcrypto $LIBS"
16836 >
16837 > fi
16838 >
16839 > fi
16840 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16841 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16842 > fi
16843 >
16844 > fi
16845 >
16846 >
16847 >
16848 >    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16849 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16850 > $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16851 > if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16852 >  $as_echo_n "(cached) " >&6
16853 > else
16854 >  ac_check_lib_save_LIBS=$LIBS
16855 > LIBS="-lssl  $LIBS"
16856 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 > /* end confdefs.h.  */
16858 >
16859 > /* Override any GCC internal prototype to avoid an error.
16860 >   Use char because int might match the return type of a GCC
16861 >   builtin and then its argument prototype would still apply.  */
16862 > #ifdef __cplusplus
16863 > extern "C"
16864 > #endif
16865 > char SSL_connect ();
16866 > int
16867 > main ()
16868 > {
16869 > return SSL_connect ();
16870 >  ;
16871 >  return 0;
16872 > }
16873   _ACEOF
16874 + if ac_fn_c_try_link "$LINENO"; then :
16875 +  ac_cv_lib_ssl_SSL_connect=yes
16876 + else
16877 +  ac_cv_lib_ssl_SSL_connect=no
16878 + fi
16879 + rm -f core conftest.err conftest.$ac_objext \
16880 +    conftest$ac_exeext conftest.$ac_ext
16881 + LIBS=$ac_check_lib_save_LIBS
16882 + fi
16883 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16884 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16885 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16886 +  cat >>confdefs.h <<_ACEOF
16887 + #define HAVE_LIBSSL 1
16888 + _ACEOF
16889 +
16890 +  LIBS="-lssl $LIBS"
16891 +
16892 + fi
16893 +
16894 + fi
16895  
16896 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16897 + $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16898 +    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16899 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16900 + $as_echo "found" >&6; }
16901 + else
16902 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16903 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16904 + fi
16905 +
16906 + fi
16907 +
16908 + if test "$with_tls" = "gnutls" ||
16909 +   test "$with_tls" = "auto"; then
16910 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16911 +
16912 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16913 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16914 +
16915 +      if test "$cross_compiling" = yes; then :
16916 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16917 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16918 + as_fn_error $? "cannot run test program while cross compiling
16919 + See \`config.log' for more details" "$LINENO" 5; }
16920 + else
16921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922   /* end confdefs.h.  */
14251 /* Define select to an innocuous variant, in case <limits.h> declares select.
14252   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14253 #define select innocuous_select
16923  
14255 /* System header to define __stub macros and hopefully few prototypes,
14256    which can conflict with char select (); below.
14257    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14258    <limits.h> exists even on freestanding compilers.  */
16924  
16925 < #ifdef __STDC__
16926 < # include <limits.h>
16927 < #else
16928 < # include <assert.h>
16929 < #endif
16925 >          #include <gnutls/gnutls.h>
16926 >          #include <stdlib.h>
16927 > int
16928 > main ()
16929 > {
16930  
16931 < #undef select
16931 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16932 >  ;
16933 >  return 0;
16934 > }
16935 > _ACEOF
16936 > if ac_fn_c_try_run "$LINENO"; then :
16937 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16938 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16939 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16940 >  $as_echo_n "(cached) " >&6
16941 > else
16942 >  ac_check_lib_save_LIBS=$LIBS
16943 > LIBS="-lgnutls  $LIBS"
16944 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 > /* end confdefs.h.  */
16946  
16947   /* Override any GCC internal prototype to avoid an error.
16948     Use char because int might match the return type of a GCC
# Line 14271 | Line 16950 | _ACEOF
16950   #ifdef __cplusplus
16951   extern "C"
16952   #endif
16953 < char select ();
14275 < /* The GNU C library defines this for functions which it implements
14276 <    to always fail with ENOSYS.  Some functions are actually named
14277 <    something starting with __ and the normal name is an alias.  */
14278 < #if defined __stub_select || defined __stub___select
14279 < choke me
14280 < #endif
14281 <
16953 > char gnutls_init ();
16954   int
16955   main ()
16956   {
16957 < return select ();
16957 > return gnutls_init ();
16958    ;
16959    return 0;
16960   }
16961   _ACEOF
16962   if ac_fn_c_try_link "$LINENO"; then :
16963 <  is_select_mechanism_available="yes"
16963 >  ac_cv_lib_gnutls_gnutls_init=yes
16964   else
16965 <  is_select_mechanism_available="no"
16965 >  ac_cv_lib_gnutls_gnutls_init=no
16966   fi
16967   rm -f core conftest.err conftest.$ac_objext \
16968      conftest$ac_exeext conftest.$ac_ext
16969 <      optimal_iopoll_mechanism="none"
16970 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
16971 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16972 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16973 <      optimal_iopoll_mechanism="$mechanism"
16974 <      break
16975 <    fi
16976 <  done
16977 <      if test "$desired_iopoll_mechanism" = "none" ; then
16978 <    if test "$optimal_iopoll_mechanism" = "none" ; then
16979 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16980 < $as_echo "none" >&6; }
16981 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
16982 <    else
16983 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
16984 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
16985 < $as_echo "$selected_iopoll_mechanism" >&6; }
16986 <    fi
16987 <  else
16988 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
16989 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
16990 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
16991 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
16992 < $as_echo "$selected_iopoll_mechanism" >&6; }
16993 <    else
16994 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16995 < $as_echo "none" >&6; }
16996 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
16997 <    fi
16969 > LIBS=$ac_check_lib_save_LIBS
16970 > fi
16971 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16972 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16973 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16974 >  cat >>confdefs.h <<_ACEOF
16975 > #define HAVE_LIBGNUTLS 1
16976 > _ACEOF
16977 >
16978 >  LIBS="-lgnutls $LIBS"
16979 >
16980 > fi
16981 >
16982 > fi
16983 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16984 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16985 > fi
16986 >
16987 > fi
16988 >
16989 >
16990 >
16991 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16992 > $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16993 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16994 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16995 > $as_echo "found" >&6; }
16996 > else
16997 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16998 > $as_echo "no - GnuTLS support disabled" >&6; }
16999 > fi
17000 >
17001    fi
17002 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
17002 > fi
17003  
17004 < cat >>confdefs.h <<_ACEOF
17005 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
17006 < _ACEOF
17004 > if test "$with_tls" = "wolfssl" ||
17005 >   test "$with_tls" = "auto"; then
17006 >  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
17007 >     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
17008 >
17009 >    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
17010 > if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
17011 >
17012 >      if test "$cross_compiling" = yes; then :
17013 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17014 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17015 > as_fn_error $? "cannot run test program while cross compiling
17016 > See \`config.log' for more details" "$LINENO" 5; }
17017 > else
17018 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 > /* end confdefs.h.  */
17020  
17021  
17022 +          #include <wolfssl/version.h>
17023 +          #include <stdlib.h>
17024 + int
17025 + main ()
17026 + {
17027  
17028 <  # Check whether --enable-halfops was given.
17029 < if test "${enable_halfops+set}" = set; then :
17030 <  enableval=$enable_halfops; halfops="$enableval"
17028 >          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
17029 >  ;
17030 >  return 0;
17031 > }
17032 > _ACEOF
17033 > if ac_fn_c_try_run "$LINENO"; then :
17034 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
17035 > $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
17036 > if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
17037 >  $as_echo_n "(cached) " >&6
17038 > else
17039 >  ac_check_lib_save_LIBS=$LIBS
17040 > LIBS="-lwolfssl  $LIBS"
17041 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 > /* end confdefs.h.  */
17043 >
17044 > /* Override any GCC internal prototype to avoid an error.
17045 >   Use char because int might match the return type of a GCC
17046 >   builtin and then its argument prototype would still apply.  */
17047 > #ifdef __cplusplus
17048 > extern "C"
17049 > #endif
17050 > char wolfSSL_X509_digest ();
17051 > int
17052 > main ()
17053 > {
17054 > return wolfSSL_X509_digest ();
17055 >  ;
17056 >  return 0;
17057 > }
17058 > _ACEOF
17059 > if ac_fn_c_try_link "$LINENO"; then :
17060 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
17061   else
17062 <  halfops="no"
17062 >  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
17063 > fi
17064 > rm -f core conftest.err conftest.$ac_objext \
17065 >    conftest$ac_exeext conftest.$ac_ext
17066 > LIBS=$ac_check_lib_save_LIBS
17067   fi
17068 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
17069 + $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
17070 + if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
17071 +  cat >>confdefs.h <<_ACEOF
17072 + #define HAVE_LIBWOLFSSL 1
17073 + _ACEOF
17074  
17075 <  if test "$halfops" = "yes" ; then
17075 >  LIBS="-lwolfssl $LIBS"
17076  
17077 < $as_echo "#define HALFOPS 1" >>confdefs.h
17077 > fi
17078  
17079 <  fi
17079 > fi
17080 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17081 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
17082 > fi
17083  
17084 + fi
17085  
17086 <  # Check whether --enable-debugging was given.
17087 < if test "${enable_debugging+set}" = set; then :
17088 <  enableval=$enable_debugging; debugging="$enableval"
17086 >
17087 >
17088 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17089 > $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17090 >    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17091 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17092 > $as_echo "found" >&6; }
17093   else
17094 <  debugging="no"
17094 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17095 > $as_echo "no - wolfSSL support disabled" >&6; }
17096   fi
17097  
14356  if test "$debugging" = "yes" ; then
14357    CFLAGS="-Wall -g -O0"
17098    fi
17099 + fi
17100  
17101  
17102 <  # Check whether --enable-warnings was given.
17103 < if test "${enable_warnings+set}" = set; then :
17104 <  enableval=$enable_warnings; warnings="$enableval"
17102 >
17103 > # Disable -Wformat-truncation
17104 >
17105 >
17106 >
17107 >
17108 > for flag in -Wno-format-truncation; do
17109 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17110 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17111 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17112 > if eval \${$as_CACHEVAR+:} false; then :
17113 >  $as_echo_n "(cached) " >&6
17114   else
17115 <  warnings="no"
17115 >
17116 >  ax_check_save_flags=$CFLAGS
17117 >  CFLAGS="$CFLAGS  $flag"
17118 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 > /* end confdefs.h.  */
17120 >
17121 > int
17122 > main ()
17123 > {
17124 >
17125 >  ;
17126 >  return 0;
17127 > }
17128 > _ACEOF
17129 > if ac_fn_c_try_compile "$LINENO"; then :
17130 >  eval "$as_CACHEVAR=yes"
17131 > else
17132 >  eval "$as_CACHEVAR=no"
17133 > fi
17134 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 >  CFLAGS=$ax_check_save_flags
17136   fi
17137 + eval ac_res=\$$as_CACHEVAR
17138 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17139 + $as_echo "$ac_res" >&6; }
17140 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17141  
17142 <  if test "$warnings" = "yes" ; then
17143 <    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
17144 <  fi
17142 > if ${CFLAGS+:} false; then :
17143 >
17144 >  case " $CFLAGS " in #(
17145 >  *" $flag "*) :
17146 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17147 >  (: CFLAGS already contains $flag) 2>&5
17148 >  ac_status=$?
17149 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17150 >  test $ac_status = 0; } ;; #(
17151 >  *) :
17152 >
17153 >     as_fn_append CFLAGS " $flag"
17154 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17155 >  (: CFLAGS="$CFLAGS") 2>&5
17156 >  ac_status=$?
17157 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158 >  test $ac_status = 0; }
17159 >     ;;
17160 > esac
17161 >
17162 > else
17163 >
17164 >  CFLAGS=$flag
17165 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17166 >  (: CFLAGS="$CFLAGS") 2>&5
17167 >  ac_status=$?
17168 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 >  test $ac_status = 0; }
17170 >
17171 > fi
17172 >
17173 > else
17174 >  :
17175 > fi
17176 >
17177 > done
17178  
17179  
17180  
# Line 14456 | Line 17263 | _ACEOF
17263    test "$exec_prefix_NONE" && exec_prefix=NONE
17264  
17265  
17266 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17266 > 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"
17267  
17268  
17269   cat >confcache <<\_ACEOF
# Line 14622 | Line 17429 | LT_CONFIG_H=config.h
17429  
17430  
17431  
14625 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14626  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14628 fi
17432  
17433   : "${CONFIG_STATUS=./config.status}"
17434   ac_write_fail=0
# Line 15023 | Line 17826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17826   # report actual input values of CONFIG_FILES etc. instead of their
17827   # values after options handling.
17828   ac_log="
17829 < This file was extended by ircd-hybrid $as_me TRUNK, which was
17829 > This file was extended by ircd-hybrid $as_me 8.2.39, which was
17830   generated by GNU Autoconf 2.69.  Invocation command line was
17831  
17832    CONFIG_FILES    = $CONFIG_FILES
# Line 15089 | Line 17892 | _ACEOF
17892   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17893   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17894   ac_cs_version="\\
17895 < ircd-hybrid config.status TRUNK
17895 > ircd-hybrid config.status 8.2.39
17896   configured by $0, generated by GNU Autoconf 2.69,
17897    with options \\"\$ac_cs_config\\"
17898  
# Line 15208 | Line 18011 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
18011   #
18012   # INIT-COMMANDS
18013   #
18014 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18014 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18015  
18016  
18017   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 15224 | Line 18027 | enable_static='`$ECHO "$enable_static" |
18027   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18028   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18029   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18030 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18031   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18032   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18033   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15273 | Line 18077 | compiler='`$ECHO "$compiler" | $SED "$de
18077   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18078   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18079   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18080 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18081   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18082   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"`'
18083 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18084   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18085   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18086 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18087   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18088   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18089   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15341 | Line 18148 | finish_cmds='`$ECHO "$finish_cmds" | $SE
18148   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18149   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18150   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18151 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18151 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18152 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18153   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18154   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18155   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15392 | Line 18200 | CFLAGS \
18200   compiler \
18201   lt_cv_sys_global_symbol_pipe \
18202   lt_cv_sys_global_symbol_to_cdecl \
18203 + lt_cv_sys_global_symbol_to_import \
18204   lt_cv_sys_global_symbol_to_c_name_address \
18205   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18206 + lt_cv_nm_interface \
18207   nm_file_list_spec \
18208 + lt_cv_truncate_bin \
18209   lt_prog_compiler_no_builtin_flag \
18210   lt_prog_compiler_pic \
18211   lt_prog_compiler_wl \
# Line 15429 | Line 18240 | old_striplib \
18240   striplib; do
18241      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18242      *[\\\\\\\`\\"\\\$]*)
18243 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18243 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18244        ;;
18245      *)
18246        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15456 | Line 18267 | postinstall_cmds \
18267   postuninstall_cmds \
18268   finish_cmds \
18269   sys_lib_search_path_spec \
18270 < sys_lib_dlsearch_path_spec; do
18270 > configure_time_dlsearch_path \
18271 > configure_time_lt_sys_library_path; do
18272      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18273      *[\\\\\\\`\\"\\\$]*)
18274 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18274 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18275        ;;
18276      *)
18277        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15468 | Line 18280 | sys_lib_dlsearch_path_spec; do
18280   done
18281  
18282   ac_aux_dir='$ac_aux_dir'
15471 xsi_shell='$xsi_shell'
15472 lt_shell_append='$lt_shell_append'
18283  
18284 < # See if we are running on zsh, and set the options which allow our
18284 > # See if we are running on zsh, and set the options that allow our
18285   # commands through without removal of \ escapes INIT.
18286 < if test -n "\${ZSH_VERSION+set}" ; then
18286 > if test -n "\${ZSH_VERSION+set}"; then
18287     setopt NO_GLOB_SUBST
18288   fi
18289  
18290  
18291      PACKAGE='$PACKAGE'
18292      VERSION='$VERSION'
15483    TIMESTAMP='$TIMESTAMP'
18293      RM='$RM'
18294      ofile='$ofile'
18295  
# Line 15503 | Line 18312 | do
18312      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18313      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18314      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18315 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18316      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18317      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18318      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 16105 | Line 18915 | $as_echo "$as_me: executing $ac_file com
18915    # Older Autoconf quotes --file arguments for eval, but not when files
18916    # are listed without --file.  Let's play safe and only enable the eval
18917    # if we detect the quoting.
18918 <  case $CONFIG_FILES in
18919 <  *\'*) eval set x "$CONFIG_FILES" ;;
18920 <  *)   set x $CONFIG_FILES ;;
18921 <  esac
18918 >  # TODO: see whether this extra hack can be removed once we start
18919 >  # requiring Autoconf 2.70 or later.
18920 >  case $CONFIG_FILES in #(
18921 >  *\'*) :
18922 >    eval set x "$CONFIG_FILES" ;; #(
18923 >  *) :
18924 >    set x $CONFIG_FILES ;; #(
18925 >  *) :
18926 >     ;;
18927 > esac
18928    shift
18929 <  for mf
18929 >  # Used to flag and report bootstrapping failures.
18930 >  am_rc=0
18931 >  for am_mf
18932    do
18933      # Strip MF so we end up with the name of the file.
18934 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18935 <    # Check whether this is an Automake generated Makefile or not.
18936 <    # We used to match only the files named 'Makefile.in', but
18937 <    # some people rename them; so instead we look at the file content.
16120 <    # Grep'ing the first line is not enough: some people post-process
16121 <    # each Makefile.in and add a new line on top of each file to say so.
16122 <    # Grep'ing the whole file is not good either: AIX grep has a line
18934 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18935 >    # Check whether this is an Automake generated Makefile which includes
18936 >    # dependency-tracking related rules and includes.
18937 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18938      # limit of 2048, but all sed's we know have understand at least 4000.
18939 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18940 <      dirpart=`$as_dirname -- "$mf" ||
18941 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18942 <         X"$mf" : 'X\(//\)[^/]' \| \
18943 <         X"$mf" : 'X\(//\)$' \| \
18944 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18945 < $as_echo X"$mf" |
18939 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18940 >      || continue
18941 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18942 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18943 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18944 >         X"$am_mf" : 'X\(//\)$' \| \
18945 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18946 > $as_echo X"$am_mf" |
18947      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18948              s//\1/
18949              q
# Line 16145 | Line 18961 | $as_echo X"$mf" |
18961              q
18962            }
18963            s/.*/./; q'`
18964 <    else
18965 <      continue
18966 <    fi
18967 <    # Extract the definition of DEPDIR, am__include, and am__quote
18968 <    # from the Makefile without running 'make'.
18969 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16154 <    test -z "$DEPDIR" && continue
16155 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16156 <    test -z "$am__include" && continue
16157 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16158 <    # Find all dependency output files, they are included files with
16159 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16160 <    # simplest approach to changing $(DEPDIR) to its actual value in the
16161 <    # expansion.
16162 <    for file in `sed -n "
16163 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16164 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16165 <      # Make sure the directory exists.
16166 <      test -f "$dirpart/$file" && continue
16167 <      fdir=`$as_dirname -- "$file" ||
16168 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16169 <         X"$file" : 'X\(//\)[^/]' \| \
16170 <         X"$file" : 'X\(//\)$' \| \
16171 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16172 < $as_echo X"$file" |
16173 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16174 <            s//\1/
16175 <            q
16176 <          }
16177 <          /^X\(\/\/\)[^/].*/{
18964 >    am_filepart=`$as_basename -- "$am_mf" ||
18965 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18966 >         X"$am_mf" : 'X\(//\)$' \| \
18967 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18968 > $as_echo X/"$am_mf" |
18969 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18970              s//\1/
18971              q
18972            }
18973 <          /^X\(\/\/\)$/{
18973 >          /^X\/\(\/\/\)$/{
18974              s//\1/
18975              q
18976            }
18977 <          /^X\(\/\).*/{
18977 >          /^X\/\(\/\).*/{
18978              s//\1/
18979              q
18980            }
18981            s/.*/./; q'`
18982 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18983 <      # echo "creating $dirpart/$file"
18984 <      echo '# dummy' > "$dirpart/$file"
18985 <    done
18982 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18983 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18984 >        | $MAKE -f - am--depfiles" >&5
18985 >   (cd "$am_dirpart" \
18986 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18987 >        | $MAKE -f - am--depfiles) >&5 2>&5
18988 >   ac_status=$?
18989 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 >   (exit $ac_status); } || am_rc=$?
18991    done
18992 +  if test $am_rc -ne 0; then
18993 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18994 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18995 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18996 +    for automatic dependency tracking.  Try re-running configure with the
18997 +    '--disable-dependency-tracking' option to at least be able to build
18998 +    the package (albeit without support for automatic dependency tracking).
18999 + See \`config.log' for more details" "$LINENO" 5; }
19000 +  fi
19001 +  { am_dirpart=; unset am_dirpart;}
19002 +  { am_filepart=; unset am_filepart;}
19003 +  { am_mf=; unset am_mf;}
19004 +  { am_rc=; unset am_rc;}
19005 +  rm -f conftest-deps.mk
19006   }
19007   ;;
19008      "libtool":C)
19009  
19010 <    # See if we are running on zsh, and set the options which allow our
19010 >    # See if we are running on zsh, and set the options that allow our
19011      # commands through without removal of \ escapes.
19012 <    if test -n "${ZSH_VERSION+set}" ; then
19012 >    if test -n "${ZSH_VERSION+set}"; then
19013        setopt NO_GLOB_SUBST
19014      fi
19015  
19016 <    cfgfile="${ofile}T"
19016 >    cfgfile=${ofile}T
19017      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19018      $RM "$cfgfile"
19019  
19020      cat <<_LT_EOF >> "$cfgfile"
19021   #! $SHELL
19022 <
16212 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16213 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16214 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19022 > # Generated automatically by $as_me ($PACKAGE) $VERSION
19023   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19024 +
19025 + # Provide generalized library-building support services.
19026 + # Written by Gordon Matzigkeit, 1996
19027 +
19028 + # Copyright (C) 2014 Free Software Foundation, Inc.
19029 + # This is free software; see the source for copying conditions.  There is NO
19030 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19031 +
19032 + # GNU Libtool is free software; you can redistribute it and/or modify
19033 + # it under the terms of the GNU General Public License as published by
19034 + # the Free Software Foundation; either version 2 of of the License, or
19035 + # (at your option) any later version.
19036   #
19037 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19038 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19039 < #                 Foundation, Inc.
19040 < #   Written by Gordon Matzigkeit, 1996
16221 < #
16222 < #   This file is part of GNU Libtool.
16223 < #
16224 < # GNU Libtool is free software; you can redistribute it and/or
16225 < # modify it under the terms of the GNU General Public License as
16226 < # published by the Free Software Foundation; either version 2 of
16227 < # the License, or (at your option) any later version.
16228 < #
16229 < # As a special exception to the GNU General Public License,
16230 < # if you distribute this file as part of a program or library that
16231 < # is built using GNU Libtool, you may include this file under the
16232 < # same distribution terms that you use for the rest of that program.
19037 > # As a special exception to the GNU General Public License, if you
19038 > # distribute this file as part of a program or library that is built
19039 > # using GNU Libtool, you may include this file under the  same
19040 > # distribution terms that you use for the rest of that program.
19041   #
19042 < # GNU Libtool is distributed in the hope that it will be useful,
19043 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
19042 > # GNU Libtool is distributed in the hope that it will be useful, but
19043 > # WITHOUT ANY WARRANTY; without even the implied warranty of
19044   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19045   # GNU General Public License for more details.
19046   #
19047   # You should have received a copy of the GNU General Public License
19048 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16241 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16242 < # obtained by writing to the Free Software Foundation, Inc.,
16243 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19048 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19049  
19050  
19051   # The names of the tagged configurations supported by this script.
19052 < available_tags=""
19052 > available_tags=''
19053 >
19054 > # Configured defaults for sys_lib_dlsearch_path munging.
19055 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19056  
19057   # ### BEGIN LIBTOOL CONFIG
19058  
# Line 16264 | Line 19072 | pic_mode=$pic_mode
19072   # Whether or not to optimize for fast installation.
19073   fast_install=$enable_fast_install
19074  
19075 + # Shared archive member basename,for filename based shared library versioning on AIX.
19076 + shared_archive_member_spec=$shared_archive_member_spec
19077 +
19078   # Shell to use when invoking shell scripts.
19079   SHELL=$lt_SHELL
19080  
# Line 16381 | Line 19192 | global_symbol_pipe=$lt_lt_cv_sys_global_
19192   # Transform the output of nm in a proper C declaration.
19193   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19194  
19195 + # Transform the output of nm into a list of symbols to manually relocate.
19196 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19197 +
19198   # Transform the output of nm in a C name address pair.
19199   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19200  
19201   # Transform the output of nm in a C name address pair when lib prefix is needed.
19202   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19203  
19204 + # The name lister interface.
19205 + nm_interface=$lt_lt_cv_nm_interface
19206 +
19207   # Specify filename containing input files for \$NM.
19208   nm_file_list_spec=$lt_nm_file_list_spec
19209  
19210 < # The root where to search for dependent libraries,and in which our libraries should be installed.
19210 > # The root where to search for dependent libraries,and where our libraries should be installed.
19211   lt_sysroot=$lt_sysroot
19212  
19213 + # Command to truncate a binary pipe.
19214 + lt_truncate_bin=$lt_lt_cv_truncate_bin
19215 +
19216   # The name of the directory that contains temporary libtool files.
19217   objdir=$objdir
19218  
# Line 16483 | Line 19303 | hardcode_into_libs=$hardcode_into_libs
19303   # Compile-time system search path for libraries.
19304   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19305  
19306 < # Run-time system search path for libraries.
19307 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19306 > # Detected run-time system search path for libraries.
19307 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19308 >
19309 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19310 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19311  
19312   # Whether dlopen is supported.
19313   dlopen_support=$enable_dlopen
# Line 16577 | Line 19400 | hardcode_libdir_flag_spec=$lt_hardcode_l
19400   # Whether we need a single "-rpath" flag with a separated argument.
19401   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19402  
19403 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19403 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19404   # DIR into the resulting binary.
19405   hardcode_direct=$hardcode_direct
19406  
19407 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19407 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19408   # DIR into the resulting binary and the resulting library dependency is
19409 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19409 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19410   # library is relocated.
19411   hardcode_direct_absolute=$hardcode_direct_absolute
19412  
# Line 16635 | Line 19458 | hardcode_action=$hardcode_action
19458  
19459   _LT_EOF
19460  
19461 +    cat <<'_LT_EOF' >> "$cfgfile"
19462 +
19463 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19464 +
19465 + # func_munge_path_list VARIABLE PATH
19466 + # -----------------------------------
19467 + # VARIABLE is name of variable containing _space_ separated list of
19468 + # directories to be munged by the contents of PATH, which is string
19469 + # having a format:
19470 + # "DIR[:DIR]:"
19471 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19472 + # ":DIR[:DIR]"
19473 + #       string "DIR[ DIR]" will be appended to VARIABLE
19474 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19475 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19476 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19477 + # "DIR[:DIR]"
19478 + #       VARIABLE will be replaced by "DIR[ DIR]"
19479 + func_munge_path_list ()
19480 + {
19481 +    case x$2 in
19482 +    x)
19483 +        ;;
19484 +    *:)
19485 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19486 +        ;;
19487 +    x:*)
19488 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19489 +        ;;
19490 +    *::*)
19491 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19492 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19493 +        ;;
19494 +    *)
19495 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19496 +        ;;
19497 +    esac
19498 + }
19499 +
19500 +
19501 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19502 + func_cc_basename ()
19503 + {
19504 +    for cc_temp in $*""; do
19505 +      case $cc_temp in
19506 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19507 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19508 +        \-*) ;;
19509 +        *) break;;
19510 +      esac
19511 +    done
19512 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19513 + }
19514 +
19515 +
19516 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19517 +
19518 + _LT_EOF
19519 +
19520    case $host_os in
19521    aix3*)
19522      cat <<\_LT_EOF >> "$cfgfile"
19523   # AIX sometimes has problems with the GCC collect2 program.  For some
19524   # reason, if we set the COLLECT_NAMES environment variable, the problems
19525   # vanish in a puff of smoke.
19526 < if test "X${COLLECT_NAMES+set}" != Xset; then
19526 > if test set != "${COLLECT_NAMES+set}"; then
19527    COLLECT_NAMES=
19528    export COLLECT_NAMES
19529   fi
# Line 16650 | Line 19532 | _LT_EOF
19532    esac
19533  
19534  
19535 < ltmain="$ac_aux_dir/ltmain.sh"
19535 > ltmain=$ac_aux_dir/ltmain.sh
19536  
19537  
19538    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16660 | Line 19542 | ltmain="$ac_aux_dir/ltmain.sh"
19542    sed '$q' "$ltmain" >> "$cfgfile" \
19543       || (rm -f "$cfgfile"; exit 1)
19544  
16663  if test x"$xsi_shell" = xyes; then
16664  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16665 func_dirname ()\
16666 {\
16667 \    case ${1} in\
16668 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16669 \      *  ) func_dirname_result="${3}" ;;\
16670 \    esac\
16671 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16672  && mv -f "$cfgfile.tmp" "$cfgfile" \
16673    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16674 test 0 -eq $? || _lt_function_replace_fail=:
16675
16676
16677  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16678 func_basename ()\
16679 {\
16680 \    func_basename_result="${1##*/}"\
16681 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16682  && mv -f "$cfgfile.tmp" "$cfgfile" \
16683    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16684 test 0 -eq $? || _lt_function_replace_fail=:
16685
16686
16687  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16688 func_dirname_and_basename ()\
16689 {\
16690 \    case ${1} in\
16691 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16692 \      *  ) func_dirname_result="${3}" ;;\
16693 \    esac\
16694 \    func_basename_result="${1##*/}"\
16695 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16696  && mv -f "$cfgfile.tmp" "$cfgfile" \
16697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698 test 0 -eq $? || _lt_function_replace_fail=:
16699
16700
16701  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16702 func_stripname ()\
16703 {\
16704 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16705 \    # positional parameters, so assign one to ordinary parameter first.\
16706 \    func_stripname_result=${3}\
16707 \    func_stripname_result=${func_stripname_result#"${1}"}\
16708 \    func_stripname_result=${func_stripname_result%"${2}"}\
16709 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16710  && mv -f "$cfgfile.tmp" "$cfgfile" \
16711    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16712 test 0 -eq $? || _lt_function_replace_fail=:
16713
16714
16715  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16716 func_split_long_opt ()\
16717 {\
16718 \    func_split_long_opt_name=${1%%=*}\
16719 \    func_split_long_opt_arg=${1#*=}\
16720 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16721  && mv -f "$cfgfile.tmp" "$cfgfile" \
16722    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16723 test 0 -eq $? || _lt_function_replace_fail=:
16724
16725
16726  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16727 func_split_short_opt ()\
16728 {\
16729 \    func_split_short_opt_arg=${1#??}\
16730 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16731 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16732  && mv -f "$cfgfile.tmp" "$cfgfile" \
16733    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16734 test 0 -eq $? || _lt_function_replace_fail=:
16735
16736
16737  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16738 func_lo2o ()\
16739 {\
16740 \    case ${1} in\
16741 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16742 \      *)    func_lo2o_result=${1} ;;\
16743 \    esac\
16744 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16745  && mv -f "$cfgfile.tmp" "$cfgfile" \
16746    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747 test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16751 func_xform ()\
16752 {\
16753    func_xform_result=${1%.*}.lo\
16754 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16755  && mv -f "$cfgfile.tmp" "$cfgfile" \
16756    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757 test 0 -eq $? || _lt_function_replace_fail=:
16758
16759
16760  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16761 func_arith ()\
16762 {\
16763    func_arith_result=$(( $* ))\
16764 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16765  && mv -f "$cfgfile.tmp" "$cfgfile" \
16766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16767 test 0 -eq $? || _lt_function_replace_fail=:
16768
16769
16770  sed -e '/^func_len ()$/,/^} # func_len /c\
16771 func_len ()\
16772 {\
16773    func_len_result=${#1}\
16774 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16775  && mv -f "$cfgfile.tmp" "$cfgfile" \
16776    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16777 test 0 -eq $? || _lt_function_replace_fail=:
16778
16779 fi
16780
16781 if test x"$lt_shell_append" = xyes; then
16782  sed -e '/^func_append ()$/,/^} # func_append /c\
16783 func_append ()\
16784 {\
16785    eval "${1}+=\\${2}"\
16786 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16787  && mv -f "$cfgfile.tmp" "$cfgfile" \
16788    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16789 test 0 -eq $? || _lt_function_replace_fail=:
16790
16791
16792  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16793 func_append_quoted ()\
16794 {\
16795 \    func_quote_for_eval "${2}"\
16796 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16797 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16798  && mv -f "$cfgfile.tmp" "$cfgfile" \
16799    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16800 test 0 -eq $? || _lt_function_replace_fail=:
16801
16802
16803  # Save a `func_append' function call where possible by direct use of '+='
16804  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16805    && mv -f "$cfgfile.tmp" "$cfgfile" \
16806      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16807  test 0 -eq $? || _lt_function_replace_fail=:
16808 else
16809  # Save a `func_append' function call even when '+=' is not available
16810  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16811    && mv -f "$cfgfile.tmp" "$cfgfile" \
16812      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813  test 0 -eq $? || _lt_function_replace_fail=:
16814 fi
16815
16816 if test x"$_lt_function_replace_fail" = x":"; then
16817  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16818 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16819 fi
16820
16821
19545     mv -f "$cfgfile" "$ofile" ||
19546      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19547    chmod +x "$ofile"
# Line 16862 | Line 19585 | if test -n "$ac_unrecognized_opts" && te
19585   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19586   fi
19587  
19588 +
19589 + echo "###############################################################################"
19590 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19591 + echo
19592 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19593 + echo "   ./configure --prefix=DIRECTORY"
19594 + echo "###############################################################################"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)