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

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 2602 by michael, Sat Nov 23 20:01:36 2013 UTC vs.
Revision 9413 by michael, Sun May 31 12:33:17 2020 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 2594 2013-11-21 17:20:41Z michael .
2 > # From configure.ac Id: configure.ac 9331 2020-04-11 12:55:47Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# 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 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 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 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 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.14'
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 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 3050 | Line 3004 | 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: <http://www.gnu.org/software/coreutils/>.
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
# Line 3061 | Line 3015 | END
3015    fi
3016   fi
3017  
3018 +
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3020   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3021      # Check whether --enable-maintainer-mode was given.
# Line 3093 | 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
3103 # If we don't find an include directive, just comment out the code.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3105 $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 4532 | 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 4547 | 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 4667 | 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 4990 | 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 5016 | 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 5027 | 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 5038 | 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 5106 | 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 5143 | 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 5257 | 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 5267 | 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 5319 | 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 5359 | 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 5409 | 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 5442 | 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 5460 | Line 5421 | max_cmd_len=$lt_cv_sys_max_cmd_len
5421   : ${MV="mv -f"}
5422   : ${RM="rm -f"}
5423  
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5464 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5465 # Try some XSI features
5466 xsi_shell=no
5467 ( _lt_dummy="a/b/c"
5468  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5469      = c,a/b,b/c, \
5470    && eval 'test $(( 1 + 1 )) -eq 2 \
5471    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5472  && xsi_shell=yes
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5474 $as_echo "$xsi_shell" >&6; }
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5478 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5479 lt_shell_append=no
5480 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5481    >/dev/null 2>&1 \
5482  && lt_shell_append=yes
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5484 $as_echo "$lt_shell_append" >&6; }
5485
5486
5424   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425    lt_unset=unset
5426   else
# Line 5606 | 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 5740 | 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 5773 | 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.
5777 <  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 5810 | Line 5746 | freebsd* | dragonfly*)
5746    fi
5747    ;;
5748  
5813 gnu*)
5814  lt_cv_deplibs_check_method=pass_all
5815  ;;
5816
5749   haiku*)
5750    lt_cv_deplibs_check_method=pass_all
5751    ;;
# Line 5852 | 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 5874 | 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 5928 | 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 6085 | 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 6098 | 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 6252 | 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 6260 | 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 6273 | 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 6490 | 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 6580 | 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 6613 | 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 6638 | 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 6683 | 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
6688 <  ac_status=$?
6689 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 <  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 6700 | 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 6730 | 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 6750 | 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 6777 | 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 6830 | 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 6842 | 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 6854 | 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 6867 | 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 6887 | 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 6933 | 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 6949 | 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 6970 | 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 6988 | 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 7028 | 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 7046 | 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 7055 | 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 7071 | 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 7182 | 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 7685 | 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 7703 | 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 7742 | 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 7771 | 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 7784 | 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 7817 | 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 8112 | 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 8148 | 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 8180 | 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 8195 | Line 8342 | else
8342   fi
8343  
8344  
8198 test -z "$pic_mode" && pic_mode=default
8199
8345  
8346  
8347  
# Line 8212 | 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 8233 | 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 8286 | 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 8325 | 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 8336 | 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 8352 | 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
8357 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8358 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8359 <    \-*) ;;
8360 <    *) break;;
8361 <  esac
8362 < done
8363 < 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 8375 | 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 8413 | 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 8441 | 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 8479 | 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 8506 | 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 8568 | Line 8758 | 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 8584 | 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 8614 | 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 8632 | 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 8653 | 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 8670 | 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 8740 | 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 8748 | 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 8767 | 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 8776 | 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 8803 | 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 8900 | 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 8929 | 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 8961 | 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 8991 | 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 9023 | 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 9042 | 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 9168 | 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 9181 | 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 9226 | 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 9243 | 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 9251 | 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 9261 | 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 9283 | 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 9313 | 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 9332 | 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 9348 | 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 9358 | 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 9366 | 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 9431 | 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 9475 | 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 9499 | 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 9512 | 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 9527 | 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 9546 | 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 9570 | 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 9578 | 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 9624 | 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 9649 | 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 9712 | 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 9720 | 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 9765 | 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 9773 | 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 9796 | 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 9826 | 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 9844 | 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 9864 | 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 9883 | 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 9942 | 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 9976 | 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 10006 | 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 10025 | 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 10040 | 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 10052 | 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 10063 | 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 10074 | 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 10087 | 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 10119 | 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 10127 | 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].*)
10143 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10144 <             hardcode_libdir_flag_spec='-R$libdir'
10145 <             ;;
10146 <           *)
10147 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10149 <             ;;
10150 <          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 10158 | 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 10195 | 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 10222 | 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 10236 | 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 10288 | 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 10339 | 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 10350 | 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 10376 | 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 10591 | 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 10614 | 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 10649 | 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 10658 | 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 10675 | 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 10690 | 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 10734 | 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 10753 | 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 10766 | 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 10775 | 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 10792 | 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 10811 | 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 10839 | 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 10852 | 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 10866 | 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 10879 | 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 10893 | 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 10912 | 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 10942 | Line 11339 | freebsd* | dragonfly*)
11339    esac
11340    ;;
11341  
10945 gnu*)
10946  version_type=linux # correct to gnu/linux during the next big refactor
10947  need_lib_prefix=no
10948  need_version=no
10949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950  soname_spec='${libname}${release}${shared_ext}$major'
10951  shlibpath_var=LD_LIBRARY_PATH
10952  shlibpath_overrides_runpath=no
10953  hardcode_into_libs=yes
10954  ;;
10955
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 10979 | 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
10989    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377      ;;
11378    hppa*64*)
11379      shrext_cmds='.sl'
# Line 10994 | 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 11004 | 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 11018 | 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 11030 | 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 11038 | 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 11058 | 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 11068 | 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 11118 | 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 11133 | 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 11153 | 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 11162 | 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
11179 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11180 <    *)                          need_version=no  ;;
11181 <  esac
11182 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11184 <  shlibpath_var=LD_LIBRARY_PATH
11185 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11186 <    case $host_os in
11187 <      openbsd2.[89] | openbsd2.[89].*)
11188 <        shlibpath_overrides_runpath=no
11189 <        ;;
11190 <      *)
11191 <        shlibpath_overrides_runpath=yes
11192 <        ;;
11193 <      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 11224 | 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 11235 | 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 11247 | 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 11269 | 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 11304 | 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 11312 | 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 11323 | 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 11433 | 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 11456 | 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 11471 | 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 11481 | 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 11535 | 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 11546 | 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 11588 | 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 11631 | 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 11670 | 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 11709 | 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 11730 | Line 12187 | fi
12187      ;;
12188    esac
12189  
12190 <  if test "x$lt_cv_dlopen" != xno; then
11734 <    enable_dlopen=yes
11735 <  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 11752 | 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 11799 | 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 11831 | 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 11851 | 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 11905 | 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 11937 | 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 11958 | 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 12004 | 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 12032 | 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 12040 | 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 12054 | 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 12065 | 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 12079 | 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 12103 | 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 12131 | 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 12154 | 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 12162 | 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 12184 | 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 12242 | 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 12266 | 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 12309 | 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 12318 | 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 12333 | Line 12802 | _ACEOF
12802   fi
12803   done
12804  
12805 <  LIBS="$lt_save_LIBS"
12805 >  LIBS=$lt_save_LIBS
12806   fi
12807  
12808  
# Line 12386 | 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 12408 | 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 12486 | 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 12540 | 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
12546 <        { $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
12556 < else
12557 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558 <  lt_status=$lt_dlunknown
12559 <  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
12566
13064   #include <stdio.h>
13065 <
12569 < #ifdef RTLD_GLOBAL
12570 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12571 < #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. */
12581 < #ifndef LT_DLLAZY_OR_NOW
12582 < #  ifdef RTLD_LAZY
12583 < #    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
12586 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12587 < #    else
12588 < #      ifdef RTLD_NOW
12589 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12590 < #      else
12591 < #        ifdef DL_NOW
12592 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12593 < #        else
12594 < #          define LT_DLLAZY_OR_NOW      0
12595 < #        endif
12596 < #      endif
12597 < #    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 ()
12609 < {
12610 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611 <  int status = $lt_dlunknown;
12612 <
12613 <  if (self)
12614 <    {
12615 <      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 <        {
12618 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12619 <          else puts (dlerror ());
12620 <        }
12621 <      /* dlclose (self); */
13089 >        puts (dlerror ());
13090      }
13091 <  else
13091 >    dlclose (handle);
13092 >  } else
13093      puts (dlerror ());
12625
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 <
12644 <  fi
12645 < fi
12646 < rm -fr conftest*
12647 <
12648 <          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 12653 | 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 12672 | 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 12685 | 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 12713 | 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 12722 | 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 12731 | 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 12755 | 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  
12764 :
13230  
13231   for ac_header in argz.h
13232   do :
# Line 12798 | 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 12810 | 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 12827 | 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 12838 | 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 12852 | 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 12881 | 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 12905 | 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 12981 | 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 12997 | 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 13010 | 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 13034 | 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 13062 | 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 13075 | 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 13179 | Line 13644 | LIBTOOL="$LIBTOOL --silent"
13644  
13645  
13646    if test "X$CC" != "X"; then
13647 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13648 < $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
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"
13653 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13654         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655   /* end confdefs.h.  */
13656  
# Line 13209 | Line 13674 | 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"
13677 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13678  
13679   $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13680  
13681 <    fi
13682 <  fi
13683 <
13684 <
13685 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
13221 < $as_echo_n "checking whether C compiler accepts ... " >&6; }
13222 < if ${ax_cv_check_cflags__+:} false; then :
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 <
13689 <  ax_check_save_flags=$CFLAGS
13690 <  CFLAGS="$CFLAGS  "
13228 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
# Line 13237 | Line 13699 | main ()
13699   }
13700   _ACEOF
13701   if ac_fn_c_try_compile "$LINENO"; then :
13702 <  ax_cv_check_cflags__=yes
13702 >  ssp_cv_cc=yes
13703   else
13704 <  ax_cv_check_cflags__=no
13704 >  ssp_cv_cc=no
13705   fi
13706   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 <  CFLAGS=$ax_check_save_flags
13246 < fi
13247 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
13248 < $as_echo "$ax_cv_check_cflags__" >&6; }
13249 < if test x"$ax_cv_check_cflags__" = xyes; then :
13250 <  :
13251 < else
13252 <  :
13253 < fi
13707 >         CFLAGS="$ssp_old_cflags"
13708  
13255 if ${CFLAGS+:} false; then :
13256  case " $CFLAGS " in
13257    *"  "*)
13258      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13259  (: CFLAGS already contains ) 2>&5
13260  ac_status=$?
13261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262  test $ac_status = 0; }
13263      ;;
13264    *)
13265      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13266  (: CFLAGS="$CFLAGS ") 2>&5
13267  ac_status=$?
13268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269  test $ac_status = 0; }
13270      CFLAGS="$CFLAGS "
13271      ;;
13272   esac
13273 else
13274  CFLAGS=""
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 < for flag in -fno-strict-aliasing; do
13723 <  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13724 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13282 < $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13283 < if eval \${$as_CACHEVAR+:} false; then :
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 <
13728 <  ax_check_save_flags=$CFLAGS
13729 <  CFLAGS="$CFLAGS  $flag"
13289 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 >  ssp_old_libs="$LIBS"
13728 >     LIBS="$LIBS -lssp"
13729 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730   /* end confdefs.h.  */
13731  
13732   int
# Line 13297 | Line 13737 | main ()
13737    return 0;
13738   }
13739   _ACEOF
13740 < if ac_fn_c_try_compile "$LINENO"; then :
13741 <  eval "$as_CACHEVAR=yes"
13302 < else
13303 <  eval "$as_CACHEVAR=no"
13304 < fi
13305 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 <  CFLAGS=$ax_check_save_flags
13307 < fi
13308 < eval ac_res=\$$as_CACHEVAR
13309 <               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13310 < $as_echo "$ac_res" >&6; }
13311 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13312 <  if ${CFLAGS+:} false; then :
13313 <  case " $CFLAGS " in
13314 <    *" $flag "*)
13315 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13316 <  (: CFLAGS already contains $flag) 2>&5
13317 <  ac_status=$?
13318 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319 <  test $ac_status = 0; }
13320 <      ;;
13321 <    *)
13322 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13323 <  (: CFLAGS="$CFLAGS $flag") 2>&5
13324 <  ac_status=$?
13325 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 <  test $ac_status = 0; }
13327 <      CFLAGS="$CFLAGS $flag"
13328 <      ;;
13329 <   esac
13740 > if ac_fn_c_try_link "$LINENO"; then :
13741 >  ssp_cv_lib=yes
13742   else
13743 <  CFLAGS="$flag"
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  
13334 else
13335  :
13749   fi
13750 <
13751 < done
13752 <
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"
# Line 13521 | Line 13936 | else
13936    as_fn_error $? "socket library not found" "$LINENO" 5
13937   fi
13938  
13524  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13525   #include <sys/socket.h>
13526   #include <netdb.h>
13527
13528 "
13529 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13530
13531 cat >>confdefs.h <<_ACEOF
13532 #define HAVE_STRUCT_SOCKADDR_IN 1
13533 _ACEOF
13534
13535
13536 fi
13537 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13538   #include <sys/socket.h>
13539   #include <netdb.h>
13540
13541 "
13542 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13546 _ACEOF
13547
13548
13549 fi
13550 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13551   #include <sys/socket.h>
13552   #include <netdb.h>
13553
13554 "
13555 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13556
13557 cat >>confdefs.h <<_ACEOF
13558 #define HAVE_STRUCT_ADDRINFO 1
13559 _ACEOF
13560
13561
13562 fi
13563
13564  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13565  <sys/socket.h>
13566 "
13567 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13571 _ACEOF
13572
13573
13574 fi
13575
13576
13577
13578  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13579 "
13580 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13581
13582 $as_echo "#define IPV6 1" >>confdefs.h
13583
13584 fi
13585
13939  
13940  
13941   # Checks for typedefs, structures, and compiler characteristics.
# Line 13833 | Line 14186 | done
14186  
14187  
14188  
13836
13837
13838
13839
14189   # Checks for header files.
14190  
14191  
# Line 13867 | Line 14216 | done
14216  
14217  
14218  
13870
13871
13872
13873
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 13928 | Line 14273 | if test "$ac_res" != no; then :
14273   fi
14274  
14275  
13931 # Check whether --enable-libgeoip was given.
13932 if test "${enable_libgeoip+set}" = set; then :
13933  enableval=$enable_libgeoip;
13934 else
13935  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13936 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13938 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13939 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941 else
13942  ac_func_search_save_LIBS=$LIBS
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h.  */
13945
13946 /* Override any GCC internal prototype to avoid an error.
13947   Use char because int might match the return type of a GCC
13948   builtin and then its argument prototype would still apply.  */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char GeoIP_id_by_ipnum_v6_gl ();
13953 int
13954 main ()
13955 {
13956 return GeoIP_id_by_ipnum_v6_gl ();
13957  ;
13958  return 0;
13959 }
13960 _ACEOF
13961 for ac_lib in '' GeoIP; do
13962  if test -z "$ac_lib"; then
13963    ac_res="none required"
13964  else
13965    ac_res=-l$ac_lib
13966    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13967  fi
13968  if ac_fn_c_try_link "$LINENO"; then :
13969  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext \
13972    conftest$ac_exeext
13973  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13974  break
13975 fi
13976 done
13977 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13978
13979 else
13980  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13981 fi
13982 rm conftest.$ac_ext
13983 LIBS=$ac_func_search_save_LIBS
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13986 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13987 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13988 if test "$ac_res" != no; then :
13989  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13990
13991 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13992
13993 fi
13994
13995 fi
13996
13997
13998 fi
13999
14000
14001
14002 # Check whether --enable-openssl was given.
14003 if test "${enable_openssl+set}" = set; then :
14004  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14005 else
14006   cf_enable_openssl="auto"
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14010 $as_echo_n "checking for OpenSSL... " >&6; }
14011 if test "$cf_enable_openssl" != "no"; then
14012  cf_openssl_basedir=""
14013  if test "$cf_enable_openssl" != "auto" &&
14014     test "$cf_enable_openssl" != "yes"; then
14015          cf_openssl_basedir="${cf_enable_openssl}"
14016  else
14017        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14018                /opt /opt/openssl /usr/local/openssl; do
14019      if test -f "${dirs}/include/openssl/opensslv.h"; then
14020        cf_openssl_basedir="${dirs}"
14021        break
14022      fi
14023    done
14024    unset dirs
14025  fi
14026
14027    if test ! -z "$cf_openssl_basedir"; then
14028    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14029      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14030      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14031    else
14032                  cf_openssl_basedir=""
14033    fi
14034  else
14035                            if test -f "/usr/include/openssl/opensslv.h"; then
14036      cf_openssl_basedir="/usr"
14037    fi
14038  fi
14039
14040      if test ! -z "$cf_openssl_basedir"; then
14041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14042 $as_echo "$cf_openssl_basedir" >&6; }
14043    cf_enable_openssl="yes"
14044  else
14045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14046 $as_echo "not found. Please check your path." >&6; }
14047    cf_enable_openssl="no"
14048  fi
14049  unset cf_openssl_basedir
14050 else
14051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14052 $as_echo "disabled" >&6; }
14053 fi
14054
14055 if test "$cf_enable_openssl" != "no"; then :
14056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14057 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14058  if test "$cross_compiling" = yes; then :
14059  cf_openssl_version_ok=no
14060 else
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h.  */
14063
14064
14065    #include <openssl/opensslv.h>
14066    #include <stdlib.h>
14067 int
14068 main ()
14069 {
14070 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14071  ;
14072  return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_run "$LINENO"; then :
14076  cf_openssl_version_ok=yes
14077 else
14078  cf_openssl_version_ok=no
14079 fi
14080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14081  conftest.$ac_objext conftest.beam conftest.$ac_ext
14082 fi
14083
14084
14085  if test "$cf_openssl_version_ok" = "yes"; then :
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14087 $as_echo "found" >&6; }
14088
14089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14090 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14091 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093 else
14094  ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lcrypto  $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100   Use char because int might match the return type of a GCC
14101   builtin and then its argument prototype would still apply.  */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char RSA_free ();
14106 int
14107 main ()
14108 {
14109 return RSA_free ();
14110  ;
14111  return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115  ac_cv_lib_crypto_RSA_free=yes
14116 else
14117  ac_cv_lib_crypto_RSA_free=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120    conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14124 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14125 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14126  cat >>confdefs.h <<_ACEOF
14127 #define HAVE_LIBCRYPTO 1
14128 _ACEOF
14129
14130  LIBS="-lcrypto $LIBS"
14131
14132 fi
14133
14134    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14136 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14137 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14138  $as_echo_n "(cached) " >&6
14139 else
14140  ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-lssl  $LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146   Use char because int might match the return type of a GCC
14147   builtin and then its argument prototype would still apply.  */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char SSL_connect ();
14152 int
14153 main ()
14154 {
14155 return SSL_connect ();
14156  ;
14157  return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161  ac_cv_lib_ssl_SSL_connect=yes
14162 else
14163  ac_cv_lib_ssl_SSL_connect=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166    conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14170 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14171 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14172  cat >>confdefs.h <<_ACEOF
14173 #define HAVE_LIBSSL 1
14174 _ACEOF
14175
14176  LIBS="-lssl $LIBS"
14177
14178 fi
14179
14180 fi
14181
14182 else
14183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14184 $as_echo "no - OpenSSL support disabled" >&6; }
14185    cf_enable_openssl="no"
14186 fi
14187 fi
14188
14189 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14190  ENABLE_SSL_TRUE=
14191  ENABLE_SSL_FALSE='#'
14192 else
14193  ENABLE_SSL_TRUE='#'
14194  ENABLE_SSL_FALSE=
14195 fi
14196
14197
14198
14199 # Check whether --enable-assert was given.
14200 if test "${enable_assert+set}" = set; then :
14201  enableval=$enable_assert; assert=$enableval
14202 else
14203  assert=no
14204 fi
14205
14206
14207 if test "$assert" = "no"; then :
14208
14209 $as_echo "#define NDEBUG 1" >>confdefs.h
14210
14211 fi
14212
14213
14214 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14215
14216
14217 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14218
14219
14220 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14221
14222
14223 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14224
14225
14226 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14227
14228
14229 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14230
14231
14232 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14233
14234
14235 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14236
14237
14238 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14239
14240
14241 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14242
14243
14244 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14245
14246
14247 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14248
14249
14250 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14251
14252
14253 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14254
14255
14276   # Argument processing.
14277  
14278 <    desired_iopoll_mechanism="none"
14279 <    # Check whether --enable-kqueue was given.
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
# Line 14276 | Line 14297 | if test "${enable_poll+set}" = set; then
14297    enableval=$enable_poll; desired_iopoll_mechanism="poll"
14298   fi
14299  
14279  # Check whether --enable-select was given.
14280 if test "${enable_select+set}" = set; then :
14281  enableval=$enable_select; desired_iopoll_mechanism="select"
14282 fi
14300  
14301 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
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 <      iopoll_mechanism_kqueue=1
14310 >
14311 >  iopoll_mechanism_kqueue=1
14312  
14313   cat >>confdefs.h <<_ACEOF
14314   #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
# Line 14343 | Line 14362 | else
14362   fi
14363   rm -f core conftest.err conftest.$ac_objext \
14364      conftest$ac_exeext conftest.$ac_ext
14365 <      iopoll_mechanism_epoll=2
14365 >
14366 >  iopoll_mechanism_epoll=2
14367  
14368   cat >>confdefs.h <<_ACEOF
14369   #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14370   _ACEOF
14371  
14352  if test "$cross_compiling" = yes; then :
14353  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14355 as_fn_error $? "cannot run test program while cross compiling
14356 See \`config.log' for more details" "$LINENO" 5; }
14357 else
14372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373   /* end confdefs.h.  */
14360
14374   #include <sys/epoll.h>
14362 #include <sys/syscall.h>
14363 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14364 #if !defined(__NR_epoll_create)
14365 #if defined(__ia64__)
14366 #define __NR_epoll_create 1243
14367 #elif defined(__x86_64__)
14368 #define __NR_epoll_create 214
14369 #elif defined(__sparc64__) || defined(__sparc__)
14370 #define __NR_epoll_create 193
14371 #elif defined(__s390__) || defined(__m68k__)
14372 #define __NR_epoll_create 249
14373 #elif defined(__ppc64__) || defined(__ppc__)
14374 #define __NR_epoll_create 236
14375 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14376 #define __NR_epoll_create 224
14377 #elif defined(__alpha__)
14378 #define __NR_epoll_create 407
14379 #elif defined(__sh64__)
14380 #define __NR_epoll_create 282
14381 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14382 #define __NR_epoll_create 254
14383 #else
14384 #error No system call numbers defined for epoll family.
14385 #endif
14386 #endif
14387 _syscall1(int, epoll_create, int, size)
14388 #endif
14389
14375   int
14376   main ()
14377   {
14378 < return epoll_create(256) == -1 ? 1 : 0
14378 > epoll_create1(EPOLL_CLOEXEC);
14379    ;
14380    return 0;
14381   }
14382   _ACEOF
14383 < if ac_fn_c_try_run "$LINENO"; then :
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 *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14389 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 < fi
14388 > rm -f core conftest.err conftest.$ac_objext \
14389 >    conftest$ac_exeext conftest.$ac_ext
14390  
14391 <      iopoll_mechanism_devpoll=3
14391 >  iopoll_mechanism_devpoll=3
14392  
14393   cat >>confdefs.h <<_ACEOF
14394   #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
# Line 14454 | Line 14438 | rm -f core conftest.err conftest.$ac_obj
14438   $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14439  
14440    fi
14441 <      iopoll_mechanism_poll=4
14441 >
14442 >  iopoll_mechanism_poll=4
14443  
14444   cat >>confdefs.h <<_ACEOF
14445   #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
# Line 14508 | Line 14493 | else
14493   fi
14494   rm -f core conftest.err conftest.$ac_objext \
14495      conftest$ac_exeext conftest.$ac_ext
14511      iopoll_mechanism_select=5
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14515 _ACEOF
14516
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14519 /* Define select to an innocuous variant, in case <limits.h> declares select.
14520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14521 #define select innocuous_select
14522
14523 /* System header to define __stub macros and hopefully few prototypes,
14524    which can conflict with char select (); below.
14525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14526    <limits.h> exists even on freestanding compilers.  */
14527
14528 #ifdef __STDC__
14529 # include <limits.h>
14530 #else
14531 # include <assert.h>
14532 #endif
14533
14534 #undef select
14496  
14497 < /* Override any GCC internal prototype to avoid an error.
14498 <   Use char because int might match the return type of a GCC
14538 <   builtin and then its argument prototype would still apply.  */
14539 < #ifdef __cplusplus
14540 < extern "C"
14541 < #endif
14542 < char select ();
14543 < /* The GNU C library defines this for functions which it implements
14544 <    to always fail with ENOSYS.  Some functions are actually named
14545 <    something starting with __ and the normal name is an alias.  */
14546 < #if defined __stub_select || defined __stub___select
14547 < choke me
14548 < #endif
14549 <
14550 < int
14551 < main ()
14552 < {
14553 < return select ();
14554 <  ;
14555 <  return 0;
14556 < }
14557 < _ACEOF
14558 < if ac_fn_c_try_link "$LINENO"; then :
14559 <  is_select_mechanism_available="yes"
14560 < else
14561 <  is_select_mechanism_available="no"
14562 < fi
14563 < rm -f core conftest.err conftest.$ac_objext \
14564 <    conftest$ac_exeext conftest.$ac_ext
14565 <      optimal_iopoll_mechanism="none"
14566 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
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 <      if test "$desired_iopoll_mechanism" = "none" ; then
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; }
# Line 14592 | Line 14525 | $as_echo "none" >&6; }
14525        as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14526      fi
14527    fi
14528 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
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
# Line 14600 | Line 14534 | _ACEOF
14534  
14535  
14536  
14537 <  # Check whether --enable-halfops was given.
14538 < if test "${enable_halfops+set}" = set; then :
14539 <  enableval=$enable_halfops; halfops="$enableval"
14537 >  # Check whether --enable-assert was given.
14538 > if test "${enable_assert+set}" = set; then :
14539 >  enableval=$enable_assert; assert=$enableval
14540   else
14541 <  halfops="no"
14541 >  assert=no
14542   fi
14543  
14610  if test "$halfops" = "yes" ; then
14544  
14545 < $as_echo "#define HALFOPS 1" >>confdefs.h
14545 >  if test "$assert" = "no"; then :
14546  
14547 <  fi
14547 > $as_echo "#define NDEBUG 1" >>confdefs.h
14548 >
14549 > fi
14550  
14551  
14552    # Check whether --enable-debugging was given.
# Line 14621 | Line 14556 | else
14556    debugging="no"
14557   fi
14558  
14559 <  if test "$debugging" = "yes" ; then
14559 >
14560 >  if test "$debugging" = "yes"; then :
14561 >
14562      CFLAGS="-Wall -g -O0"
14563 <  fi
14563 >
14564 > fi
14565  
14566  
14567    # Check whether --enable-warnings was given.
# Line 14633 | Line 14571 | else
14571    warnings="no"
14572   fi
14573  
14574 <  if test "$warnings" = "yes" ; then
14574 >
14575 >  if test "$warnings" = "yes"; then :
14576 >
14577 >
14578 >
14579  
14580  
14581   for flag in -Wall; do
# Line 14668 | Line 14610 | 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 test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14614 <  if ${CFLAGS+:} false; then :
14615 <  case " $CFLAGS " in
14616 <    *" $flag "*)
14617 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
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_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14627 <  (: CFLAGS="$CFLAGS $flag") 2>&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 <      CFLAGS="$CFLAGS $flag"
14633 <      ;;
14634 <   esac
14632 >     ;;
14633 > esac
14634 >
14635   else
14636 <  CFLAGS="$flag"
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
# Line 14699 | Line 14651 | done
14651  
14652  
14653  
14654 < for flag in -Wextra; do
14654 >
14655 >
14656 > for flag in -Wbad-function-cast; do
14657    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14659   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14731 | Line 14685 | fi
14685   eval ac_res=\$$as_CACHEVAR
14686                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14687   $as_echo "$ac_res" >&6; }
14688 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14689 <  if ${CFLAGS+:} false; then :
14690 <  case " $CFLAGS " in
14691 <    *" $flag "*)
14692 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14688 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14689 >
14690 > if ${CFLAGS+:} false; then :
14691 >
14692 >  case " $CFLAGS " in #(
14693 >  *" $flag "*) :
14694 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14695    (: CFLAGS already contains $flag) 2>&5
14696    ac_status=$?
14697    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14698 <  test $ac_status = 0; }
14699 <      ;;
14700 <    *)
14701 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14702 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14698 >  test $ac_status = 0; } ;; #(
14699 >  *) :
14700 >
14701 >     as_fn_append CFLAGS " $flag"
14702 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14703 >  (: CFLAGS="$CFLAGS") 2>&5
14704    ac_status=$?
14705    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14706    test $ac_status = 0; }
14707 <      CFLAGS="$CFLAGS $flag"
14708 <      ;;
14709 <   esac
14707 >     ;;
14708 > esac
14709 >
14710   else
14711 <  CFLAGS="$flag"
14711 >
14712 >  CFLAGS=$flag
14713 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14714 >  (: CFLAGS="$CFLAGS") 2>&5
14715 >  ac_status=$?
14716 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 >  test $ac_status = 0; }
14718 >
14719   fi
14720  
14721   else
# Line 14762 | Line 14726 | done
14726  
14727  
14728  
14729 < for flag in -Wno-unused; do
14729 >
14730 >
14731 > for flag in -Wcast-align; do
14732    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14734   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14794 | Line 14760 | fi
14760   eval ac_res=\$$as_CACHEVAR
14761                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14762   $as_echo "$ac_res" >&6; }
14763 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14764 <  if ${CFLAGS+:} false; then :
14765 <  case " $CFLAGS " in
14766 <    *" $flag "*)
14767 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14763 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14764 >
14765 > if ${CFLAGS+:} false; then :
14766 >
14767 >  case " $CFLAGS " in #(
14768 >  *" $flag "*) :
14769 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14770    (: CFLAGS already contains $flag) 2>&5
14771    ac_status=$?
14772    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773 +  test $ac_status = 0; } ;; #(
14774 +  *) :
14775 +
14776 +     as_fn_append CFLAGS " $flag"
14777 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14778 +  (: CFLAGS="$CFLAGS") 2>&5
14779 +  ac_status=$?
14780 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781    test $ac_status = 0; }
14782 <      ;;
14783 <    *)
14784 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14785 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14782 >     ;;
14783 > esac
14784 >
14785 > else
14786 >
14787 >  CFLAGS=$flag
14788 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14789 >  (: CFLAGS="$CFLAGS") 2>&5
14790    ac_status=$?
14791    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14792    test $ac_status = 0; }
14793 <      CFLAGS="$CFLAGS $flag"
14794 <      ;;
14795 <   esac
14793 >
14794 > fi
14795 >
14796   else
14797 <  CFLAGS="$flag"
14797 >  :
14798 > fi
14799 >
14800 > done
14801 >
14802 >
14803 >
14804 >
14805 >
14806 > for flag in -Wcast-function-type; do
14807 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14808 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14809 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14810 > if eval \${$as_CACHEVAR+:} false; then :
14811 >  $as_echo_n "(cached) " >&6
14812 > else
14813 >
14814 >  ax_check_save_flags=$CFLAGS
14815 >  CFLAGS="$CFLAGS  $flag"
14816 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 > /* end confdefs.h.  */
14818 >
14819 > int
14820 > main ()
14821 > {
14822 >
14823 >  ;
14824 >  return 0;
14825 > }
14826 > _ACEOF
14827 > if ac_fn_c_try_compile "$LINENO"; then :
14828 >  eval "$as_CACHEVAR=yes"
14829 > else
14830 >  eval "$as_CACHEVAR=no"
14831 > fi
14832 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 >  CFLAGS=$ax_check_save_flags
14834 > fi
14835 > eval ac_res=\$$as_CACHEVAR
14836 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14837 > $as_echo "$ac_res" >&6; }
14838 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14839 >
14840 > if ${CFLAGS+:} false; then :
14841 >
14842 >  case " $CFLAGS " in #(
14843 >  *" $flag "*) :
14844 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14845 >  (: CFLAGS already contains $flag) 2>&5
14846 >  ac_status=$?
14847 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 >  test $ac_status = 0; } ;; #(
14849 >  *) :
14850 >
14851 >     as_fn_append CFLAGS " $flag"
14852 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14853 >  (: CFLAGS="$CFLAGS") 2>&5
14854 >  ac_status=$?
14855 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856 >  test $ac_status = 0; }
14857 >     ;;
14858 > esac
14859 >
14860 > else
14861 >
14862 >  CFLAGS=$flag
14863 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14864 >  (: CFLAGS="$CFLAGS") 2>&5
14865 >  ac_status=$?
14866 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 >  test $ac_status = 0; }
14868 >
14869   fi
14870  
14871   else
# Line 14825 | Line 14876 | done
14876  
14877  
14878  
14879 +
14880 +
14881   for flag in -Wcast-qual; do
14882    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14857 | Line 14910 | fi
14910   eval ac_res=\$$as_CACHEVAR
14911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14912   $as_echo "$ac_res" >&6; }
14913 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14914 <  if ${CFLAGS+:} false; then :
14915 <  case " $CFLAGS " in
14916 <    *" $flag "*)
14917 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14913 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14914 >
14915 > if ${CFLAGS+:} false; then :
14916 >
14917 >  case " $CFLAGS " in #(
14918 >  *" $flag "*) :
14919 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14920    (: CFLAGS already contains $flag) 2>&5
14921    ac_status=$?
14922    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14923 +  test $ac_status = 0; } ;; #(
14924 +  *) :
14925 +
14926 +     as_fn_append CFLAGS " $flag"
14927 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14928 +  (: CFLAGS="$CFLAGS") 2>&5
14929 +  ac_status=$?
14930 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14931    test $ac_status = 0; }
14932 <      ;;
14933 <    *)
14934 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14935 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14932 >     ;;
14933 > esac
14934 >
14935 > else
14936 >
14937 >  CFLAGS=$flag
14938 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14939 >  (: CFLAGS="$CFLAGS") 2>&5
14940    ac_status=$?
14941    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14942    test $ac_status = 0; }
14943 <      CFLAGS="$CFLAGS $flag"
14944 <      ;;
14945 <   esac
14943 >
14944 > fi
14945 >
14946   else
14947 <  CFLAGS="$flag"
14947 >  :
14948 > fi
14949 >
14950 > done
14951 >
14952 >
14953 >
14954 >
14955 >
14956 > for flag in -Wclobbered; do
14957 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14958 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14959 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14960 > if eval \${$as_CACHEVAR+:} false; then :
14961 >  $as_echo_n "(cached) " >&6
14962 > else
14963 >
14964 >  ax_check_save_flags=$CFLAGS
14965 >  CFLAGS="$CFLAGS  $flag"
14966 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 > /* end confdefs.h.  */
14968 >
14969 > int
14970 > main ()
14971 > {
14972 >
14973 >  ;
14974 >  return 0;
14975 > }
14976 > _ACEOF
14977 > if ac_fn_c_try_compile "$LINENO"; then :
14978 >  eval "$as_CACHEVAR=yes"
14979 > else
14980 >  eval "$as_CACHEVAR=no"
14981 > fi
14982 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 >  CFLAGS=$ax_check_save_flags
14984 > fi
14985 > eval ac_res=\$$as_CACHEVAR
14986 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14987 > $as_echo "$ac_res" >&6; }
14988 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14989 >
14990 > if ${CFLAGS+:} false; then :
14991 >
14992 >  case " $CFLAGS " in #(
14993 >  *" $flag "*) :
14994 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14995 >  (: CFLAGS already contains $flag) 2>&5
14996 >  ac_status=$?
14997 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 >  test $ac_status = 0; } ;; #(
14999 >  *) :
15000 >
15001 >     as_fn_append CFLAGS " $flag"
15002 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15003 >  (: CFLAGS="$CFLAGS") 2>&5
15004 >  ac_status=$?
15005 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15006 >  test $ac_status = 0; }
15007 >     ;;
15008 > esac
15009 >
15010 > else
15011 >
15012 >  CFLAGS=$flag
15013 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15014 >  (: CFLAGS="$CFLAGS") 2>&5
15015 >  ac_status=$?
15016 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017 >  test $ac_status = 0; }
15018 >
15019   fi
15020  
15021   else
# Line 14888 | Line 15026 | done
15026  
15027  
15028  
15029 < for flag in -Wcast-align; do
15029 >
15030 >
15031 > for flag in -Wduplicated-cond; do
15032    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15034   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14920 | Line 15060 | fi
15060   eval ac_res=\$$as_CACHEVAR
15061                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15062   $as_echo "$ac_res" >&6; }
15063 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15064 <  if ${CFLAGS+:} false; then :
15065 <  case " $CFLAGS " in
15066 <    *" $flag "*)
15067 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15063 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15064 >
15065 > if ${CFLAGS+:} false; then :
15066 >
15067 >  case " $CFLAGS " in #(
15068 >  *" $flag "*) :
15069 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15070    (: CFLAGS already contains $flag) 2>&5
15071    ac_status=$?
15072    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073 +  test $ac_status = 0; } ;; #(
15074 +  *) :
15075 +
15076 +     as_fn_append CFLAGS " $flag"
15077 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15078 +  (: CFLAGS="$CFLAGS") 2>&5
15079 +  ac_status=$?
15080 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15081    test $ac_status = 0; }
15082 <      ;;
15083 <    *)
15084 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15085 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15082 >     ;;
15083 > esac
15084 >
15085 > else
15086 >
15087 >  CFLAGS=$flag
15088 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15089 >  (: CFLAGS="$CFLAGS") 2>&5
15090    ac_status=$?
15091    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15092    test $ac_status = 0; }
15093 <      CFLAGS="$CFLAGS $flag"
15094 <      ;;
15095 <   esac
15093 >
15094 > fi
15095 >
15096   else
15097 <  CFLAGS="$flag"
15097 >  :
15098 > fi
15099 >
15100 > done
15101 >
15102 >
15103 >
15104 >
15105 >
15106 > for flag in -Wempty-body; do
15107 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15108 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15109 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15110 > if eval \${$as_CACHEVAR+:} false; then :
15111 >  $as_echo_n "(cached) " >&6
15112 > else
15113 >
15114 >  ax_check_save_flags=$CFLAGS
15115 >  CFLAGS="$CFLAGS  $flag"
15116 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 > /* end confdefs.h.  */
15118 >
15119 > int
15120 > main ()
15121 > {
15122 >
15123 >  ;
15124 >  return 0;
15125 > }
15126 > _ACEOF
15127 > if ac_fn_c_try_compile "$LINENO"; then :
15128 >  eval "$as_CACHEVAR=yes"
15129 > else
15130 >  eval "$as_CACHEVAR=no"
15131 > fi
15132 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133 >  CFLAGS=$ax_check_save_flags
15134 > fi
15135 > eval ac_res=\$$as_CACHEVAR
15136 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15137 > $as_echo "$ac_res" >&6; }
15138 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15139 >
15140 > if ${CFLAGS+:} false; then :
15141 >
15142 >  case " $CFLAGS " in #(
15143 >  *" $flag "*) :
15144 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15145 >  (: CFLAGS already contains $flag) 2>&5
15146 >  ac_status=$?
15147 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15148 >  test $ac_status = 0; } ;; #(
15149 >  *) :
15150 >
15151 >     as_fn_append CFLAGS " $flag"
15152 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15153 >  (: CFLAGS="$CFLAGS") 2>&5
15154 >  ac_status=$?
15155 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 >  test $ac_status = 0; }
15157 >     ;;
15158 > esac
15159 >
15160 > else
15161 >
15162 >  CFLAGS=$flag
15163 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15164 >  (: CFLAGS="$CFLAGS") 2>&5
15165 >  ac_status=$?
15166 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 >  test $ac_status = 0; }
15168 >
15169   fi
15170  
15171   else
# Line 14951 | Line 15176 | done
15176  
15177  
15178  
15179 < for flag in -Wbad-function-cast; do
15179 >
15180 >
15181 > for flag in -Wignored-qualifiers; do
15182    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15184   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14983 | Line 15210 | fi
15210   eval ac_res=\$$as_CACHEVAR
15211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15212   $as_echo "$ac_res" >&6; }
15213 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15214 <  if ${CFLAGS+:} false; then :
15215 <  case " $CFLAGS " in
15216 <    *" $flag "*)
15217 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15213 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15214 >
15215 > if ${CFLAGS+:} false; then :
15216 >
15217 >  case " $CFLAGS " in #(
15218 >  *" $flag "*) :
15219 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15220    (: CFLAGS already contains $flag) 2>&5
15221    ac_status=$?
15222    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15223 +  test $ac_status = 0; } ;; #(
15224 +  *) :
15225 +
15226 +     as_fn_append CFLAGS " $flag"
15227 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15228 +  (: CFLAGS="$CFLAGS") 2>&5
15229 +  ac_status=$?
15230 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15231    test $ac_status = 0; }
15232 <      ;;
15233 <    *)
15234 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15235 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15232 >     ;;
15233 > esac
15234 >
15235 > else
15236 >
15237 >  CFLAGS=$flag
15238 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15239 >  (: CFLAGS="$CFLAGS") 2>&5
15240    ac_status=$?
15241    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15242    test $ac_status = 0; }
15243 <      CFLAGS="$CFLAGS $flag"
15244 <      ;;
15245 <   esac
15243 >
15244 > fi
15245 >
15246 > else
15247 >  :
15248 > fi
15249 >
15250 > done
15251 >
15252 >
15253 >
15254 >
15255 >
15256 > for flag in -Wlogical-op; do
15257 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15258 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15259 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15260 > if eval \${$as_CACHEVAR+:} false; then :
15261 >  $as_echo_n "(cached) " >&6
15262 > else
15263 >
15264 >  ax_check_save_flags=$CFLAGS
15265 >  CFLAGS="$CFLAGS  $flag"
15266 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 > /* end confdefs.h.  */
15268 >
15269 > int
15270 > main ()
15271 > {
15272 >
15273 >  ;
15274 >  return 0;
15275 > }
15276 > _ACEOF
15277 > if ac_fn_c_try_compile "$LINENO"; then :
15278 >  eval "$as_CACHEVAR=yes"
15279 > else
15280 >  eval "$as_CACHEVAR=no"
15281 > fi
15282 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 >  CFLAGS=$ax_check_save_flags
15284 > fi
15285 > eval ac_res=\$$as_CACHEVAR
15286 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15287 > $as_echo "$ac_res" >&6; }
15288 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15289 >
15290 > if ${CFLAGS+:} false; then :
15291 >
15292 >  case " $CFLAGS " in #(
15293 >  *" $flag "*) :
15294 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15295 >  (: CFLAGS already contains $flag) 2>&5
15296 >  ac_status=$?
15297 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15298 >  test $ac_status = 0; } ;; #(
15299 >  *) :
15300 >
15301 >     as_fn_append CFLAGS " $flag"
15302 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15303 >  (: CFLAGS="$CFLAGS") 2>&5
15304 >  ac_status=$?
15305 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15306 >  test $ac_status = 0; }
15307 >     ;;
15308 > esac
15309 >
15310   else
15311 <  CFLAGS="$flag"
15311 >
15312 >  CFLAGS=$flag
15313 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15314 >  (: CFLAGS="$CFLAGS") 2>&5
15315 >  ac_status=$?
15316 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317 >  test $ac_status = 0; }
15318 >
15319   fi
15320  
15321   else
# Line 15014 | Line 15326 | done
15326  
15327  
15328  
15329 +
15330 +
15331   for flag in -Wmissing-declarations; do
15332    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15046 | Line 15360 | fi
15360   eval ac_res=\$$as_CACHEVAR
15361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15362   $as_echo "$ac_res" >&6; }
15363 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15364 <  if ${CFLAGS+:} false; then :
15365 <  case " $CFLAGS " in
15366 <    *" $flag "*)
15367 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15363 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15364 >
15365 > if ${CFLAGS+:} false; then :
15366 >
15367 >  case " $CFLAGS " in #(
15368 >  *" $flag "*) :
15369 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15370    (: CFLAGS already contains $flag) 2>&5
15371    ac_status=$?
15372    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15373 +  test $ac_status = 0; } ;; #(
15374 +  *) :
15375 +
15376 +     as_fn_append CFLAGS " $flag"
15377 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15378 +  (: CFLAGS="$CFLAGS") 2>&5
15379 +  ac_status=$?
15380 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15381    test $ac_status = 0; }
15382 <      ;;
15383 <    *)
15384 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15385 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15382 >     ;;
15383 > esac
15384 >
15385 > else
15386 >
15387 >  CFLAGS=$flag
15388 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15389 >  (: CFLAGS="$CFLAGS") 2>&5
15390    ac_status=$?
15391    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15392    test $ac_status = 0; }
15393 <      CFLAGS="$CFLAGS $flag"
15394 <      ;;
15395 <   esac
15393 >
15394 > fi
15395 >
15396 > else
15397 >  :
15398 > fi
15399 >
15400 > done
15401 >
15402 >
15403 >
15404 >
15405 >
15406 > for flag in -Wmissing-field-initializers; do
15407 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15408 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15409 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15410 > if eval \${$as_CACHEVAR+:} false; then :
15411 >  $as_echo_n "(cached) " >&6
15412 > else
15413 >
15414 >  ax_check_save_flags=$CFLAGS
15415 >  CFLAGS="$CFLAGS  $flag"
15416 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 > /* end confdefs.h.  */
15418 >
15419 > int
15420 > main ()
15421 > {
15422 >
15423 >  ;
15424 >  return 0;
15425 > }
15426 > _ACEOF
15427 > if ac_fn_c_try_compile "$LINENO"; then :
15428 >  eval "$as_CACHEVAR=yes"
15429 > else
15430 >  eval "$as_CACHEVAR=no"
15431 > fi
15432 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 >  CFLAGS=$ax_check_save_flags
15434 > fi
15435 > eval ac_res=\$$as_CACHEVAR
15436 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15437 > $as_echo "$ac_res" >&6; }
15438 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15439 >
15440 > if ${CFLAGS+:} false; then :
15441 >
15442 >  case " $CFLAGS " in #(
15443 >  *" $flag "*) :
15444 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15445 >  (: CFLAGS already contains $flag) 2>&5
15446 >  ac_status=$?
15447 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15448 >  test $ac_status = 0; } ;; #(
15449 >  *) :
15450 >
15451 >     as_fn_append CFLAGS " $flag"
15452 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15453 >  (: CFLAGS="$CFLAGS") 2>&5
15454 >  ac_status=$?
15455 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15456 >  test $ac_status = 0; }
15457 >     ;;
15458 > esac
15459 >
15460   else
15461 <  CFLAGS="$flag"
15461 >
15462 >  CFLAGS=$flag
15463 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15464 >  (: CFLAGS="$CFLAGS") 2>&5
15465 >  ac_status=$?
15466 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467 >  test $ac_status = 0; }
15468 >
15469   fi
15470  
15471   else
# Line 15077 | Line 15476 | done
15476  
15477  
15478  
15479 < for flag in -Wmissing-prototypes; do
15479 >
15480 >
15481 > for flag in -Wmissing-include-dirs; do
15482    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15484   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15109 | Line 15510 | fi
15510   eval ac_res=\$$as_CACHEVAR
15511                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15512   $as_echo "$ac_res" >&6; }
15513 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15514 <  if ${CFLAGS+:} false; then :
15515 <  case " $CFLAGS " in
15516 <    *" $flag "*)
15517 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15513 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15514 >
15515 > if ${CFLAGS+:} false; then :
15516 >
15517 >  case " $CFLAGS " in #(
15518 >  *" $flag "*) :
15519 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15520    (: CFLAGS already contains $flag) 2>&5
15521    ac_status=$?
15522    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15523 +  test $ac_status = 0; } ;; #(
15524 +  *) :
15525 +
15526 +     as_fn_append CFLAGS " $flag"
15527 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15528 +  (: CFLAGS="$CFLAGS") 2>&5
15529 +  ac_status=$?
15530 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531    test $ac_status = 0; }
15532 <      ;;
15533 <    *)
15534 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15535 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15532 >     ;;
15533 > esac
15534 >
15535 > else
15536 >
15537 >  CFLAGS=$flag
15538 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15539 >  (: CFLAGS="$CFLAGS") 2>&5
15540    ac_status=$?
15541    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542    test $ac_status = 0; }
15543 <      CFLAGS="$CFLAGS $flag"
15544 <      ;;
15545 <   esac
15543 >
15544 > fi
15545 >
15546 > else
15547 >  :
15548 > fi
15549 >
15550 > done
15551 >
15552 >
15553 >
15554 >
15555 >
15556 > for flag in -Wmissing-parameter-type; do
15557 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15558 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15559 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15560 > if eval \${$as_CACHEVAR+:} false; then :
15561 >  $as_echo_n "(cached) " >&6
15562 > else
15563 >
15564 >  ax_check_save_flags=$CFLAGS
15565 >  CFLAGS="$CFLAGS  $flag"
15566 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 > /* end confdefs.h.  */
15568 >
15569 > int
15570 > main ()
15571 > {
15572 >
15573 >  ;
15574 >  return 0;
15575 > }
15576 > _ACEOF
15577 > if ac_fn_c_try_compile "$LINENO"; then :
15578 >  eval "$as_CACHEVAR=yes"
15579 > else
15580 >  eval "$as_CACHEVAR=no"
15581 > fi
15582 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 >  CFLAGS=$ax_check_save_flags
15584 > fi
15585 > eval ac_res=\$$as_CACHEVAR
15586 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15587 > $as_echo "$ac_res" >&6; }
15588 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15589 >
15590 > if ${CFLAGS+:} false; then :
15591 >
15592 >  case " $CFLAGS " in #(
15593 >  *" $flag "*) :
15594 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15595 >  (: CFLAGS already contains $flag) 2>&5
15596 >  ac_status=$?
15597 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15598 >  test $ac_status = 0; } ;; #(
15599 >  *) :
15600 >
15601 >     as_fn_append CFLAGS " $flag"
15602 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15603 >  (: CFLAGS="$CFLAGS") 2>&5
15604 >  ac_status=$?
15605 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15606 >  test $ac_status = 0; }
15607 >     ;;
15608 > esac
15609 >
15610 > else
15611 >
15612 >  CFLAGS=$flag
15613 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15614 >  (: CFLAGS="$CFLAGS") 2>&5
15615 >  ac_status=$?
15616 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15617 >  test $ac_status = 0; }
15618 >
15619 > fi
15620 >
15621 > else
15622 >  :
15623 > fi
15624 >
15625 > done
15626 >
15627 >
15628 >
15629 >
15630 >
15631 > for flag in -Wmissing-prototypes; do
15632 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15633 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15634 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15635 > if eval \${$as_CACHEVAR+:} false; then :
15636 >  $as_echo_n "(cached) " >&6
15637 > else
15638 >
15639 >  ax_check_save_flags=$CFLAGS
15640 >  CFLAGS="$CFLAGS  $flag"
15641 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 > /* end confdefs.h.  */
15643 >
15644 > int
15645 > main ()
15646 > {
15647 >
15648 >  ;
15649 >  return 0;
15650 > }
15651 > _ACEOF
15652 > if ac_fn_c_try_compile "$LINENO"; then :
15653 >  eval "$as_CACHEVAR=yes"
15654 > else
15655 >  eval "$as_CACHEVAR=no"
15656 > fi
15657 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 >  CFLAGS=$ax_check_save_flags
15659 > fi
15660 > eval ac_res=\$$as_CACHEVAR
15661 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15662 > $as_echo "$ac_res" >&6; }
15663 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15664 >
15665 > if ${CFLAGS+:} false; then :
15666 >
15667 >  case " $CFLAGS " in #(
15668 >  *" $flag "*) :
15669 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15670 >  (: CFLAGS already contains $flag) 2>&5
15671 >  ac_status=$?
15672 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673 >  test $ac_status = 0; } ;; #(
15674 >  *) :
15675 >
15676 >     as_fn_append CFLAGS " $flag"
15677 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15678 >  (: CFLAGS="$CFLAGS") 2>&5
15679 >  ac_status=$?
15680 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15681 >  test $ac_status = 0; }
15682 >     ;;
15683 > esac
15684 >
15685   else
15686 <  CFLAGS="$flag"
15686 >
15687 >  CFLAGS=$flag
15688 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15689 >  (: CFLAGS="$CFLAGS") 2>&5
15690 >  ac_status=$?
15691 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15692 >  test $ac_status = 0; }
15693 >
15694   fi
15695  
15696   else
# Line 15140 | Line 15701 | done
15701  
15702  
15703  
15704 +
15705 +
15706   for flag in -Wnested-externs; do
15707    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15172 | Line 15735 | fi
15735   eval ac_res=\$$as_CACHEVAR
15736                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15737   $as_echo "$ac_res" >&6; }
15738 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15739 <  if ${CFLAGS+:} false; then :
15740 <  case " $CFLAGS " in
15741 <    *" $flag "*)
15742 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15738 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15739 >
15740 > if ${CFLAGS+:} false; then :
15741 >
15742 >  case " $CFLAGS " in #(
15743 >  *" $flag "*) :
15744 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15745    (: CFLAGS already contains $flag) 2>&5
15746    ac_status=$?
15747    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 +  test $ac_status = 0; } ;; #(
15749 +  *) :
15750 +
15751 +     as_fn_append CFLAGS " $flag"
15752 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15753 +  (: CFLAGS="$CFLAGS") 2>&5
15754 +  ac_status=$?
15755 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756    test $ac_status = 0; }
15757 <      ;;
15758 <    *)
15759 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15760 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15757 >     ;;
15758 > esac
15759 >
15760 > else
15761 >
15762 >  CFLAGS=$flag
15763 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15764 >  (: CFLAGS="$CFLAGS") 2>&5
15765    ac_status=$?
15766    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15767    test $ac_status = 0; }
15768 <      CFLAGS="$CFLAGS $flag"
15769 <      ;;
15770 <   esac
15768 >
15769 > fi
15770 >
15771 > else
15772 >  :
15773 > fi
15774 >
15775 > done
15776 >
15777 >
15778 >
15779 >
15780 >
15781 > for flag in -Wold-style-declaration; do
15782 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15783 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15784 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15785 > if eval \${$as_CACHEVAR+:} false; then :
15786 >  $as_echo_n "(cached) " >&6
15787 > else
15788 >
15789 >  ax_check_save_flags=$CFLAGS
15790 >  CFLAGS="$CFLAGS  $flag"
15791 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 > /* end confdefs.h.  */
15793 >
15794 > int
15795 > main ()
15796 > {
15797 >
15798 >  ;
15799 >  return 0;
15800 > }
15801 > _ACEOF
15802 > if ac_fn_c_try_compile "$LINENO"; then :
15803 >  eval "$as_CACHEVAR=yes"
15804 > else
15805 >  eval "$as_CACHEVAR=no"
15806 > fi
15807 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 >  CFLAGS=$ax_check_save_flags
15809 > fi
15810 > eval ac_res=\$$as_CACHEVAR
15811 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15812 > $as_echo "$ac_res" >&6; }
15813 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15814 >
15815 > if ${CFLAGS+:} false; then :
15816 >
15817 >  case " $CFLAGS " in #(
15818 >  *" $flag "*) :
15819 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15820 >  (: CFLAGS already contains $flag) 2>&5
15821 >  ac_status=$?
15822 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823 >  test $ac_status = 0; } ;; #(
15824 >  *) :
15825 >
15826 >     as_fn_append CFLAGS " $flag"
15827 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15828 >  (: CFLAGS="$CFLAGS") 2>&5
15829 >  ac_status=$?
15830 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 >  test $ac_status = 0; }
15832 >     ;;
15833 > esac
15834 >
15835   else
15836 <  CFLAGS="$flag"
15836 >
15837 >  CFLAGS=$flag
15838 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15839 >  (: CFLAGS="$CFLAGS") 2>&5
15840 >  ac_status=$?
15841 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842 >  test $ac_status = 0; }
15843 >
15844   fi
15845  
15846   else
# Line 15203 | Line 15851 | done
15851  
15852  
15853  
15854 < for flag in -Wredundant-decls; do
15854 >
15855 >
15856 > for flag in -Woverride-init; do
15857    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15859   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15235 | Line 15885 | fi
15885   eval ac_res=\$$as_CACHEVAR
15886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15887   $as_echo "$ac_res" >&6; }
15888 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15889 <  if ${CFLAGS+:} false; then :
15890 <  case " $CFLAGS " in
15891 <    *" $flag "*)
15892 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15888 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15889 >
15890 > if ${CFLAGS+:} false; then :
15891 >
15892 >  case " $CFLAGS " in #(
15893 >  *" $flag "*) :
15894 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15895    (: CFLAGS already contains $flag) 2>&5
15896    ac_status=$?
15897    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15898 +  test $ac_status = 0; } ;; #(
15899 +  *) :
15900 +
15901 +     as_fn_append CFLAGS " $flag"
15902 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15903 +  (: CFLAGS="$CFLAGS") 2>&5
15904 +  ac_status=$?
15905 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906    test $ac_status = 0; }
15907 <      ;;
15908 <    *)
15909 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15910 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15907 >     ;;
15908 > esac
15909 >
15910 > else
15911 >
15912 >  CFLAGS=$flag
15913 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15914 >  (: CFLAGS="$CFLAGS") 2>&5
15915    ac_status=$?
15916    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15917    test $ac_status = 0; }
15918 <      CFLAGS="$CFLAGS $flag"
15919 <      ;;
15920 <   esac
15918 >
15919 > fi
15920 >
15921 > else
15922 >  :
15923 > fi
15924 >
15925 > done
15926 >
15927 >
15928 >
15929 >
15930 >
15931 > for flag in -Wpointer-arith; do
15932 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15933 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15934 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15935 > if eval \${$as_CACHEVAR+:} false; then :
15936 >  $as_echo_n "(cached) " >&6
15937 > else
15938 >
15939 >  ax_check_save_flags=$CFLAGS
15940 >  CFLAGS="$CFLAGS  $flag"
15941 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 > /* end confdefs.h.  */
15943 >
15944 > int
15945 > main ()
15946 > {
15947 >
15948 >  ;
15949 >  return 0;
15950 > }
15951 > _ACEOF
15952 > if ac_fn_c_try_compile "$LINENO"; then :
15953 >  eval "$as_CACHEVAR=yes"
15954 > else
15955 >  eval "$as_CACHEVAR=no"
15956 > fi
15957 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 >  CFLAGS=$ax_check_save_flags
15959 > fi
15960 > eval ac_res=\$$as_CACHEVAR
15961 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15962 > $as_echo "$ac_res" >&6; }
15963 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15964 >
15965 > if ${CFLAGS+:} false; then :
15966 >
15967 >  case " $CFLAGS " in #(
15968 >  *" $flag "*) :
15969 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15970 >  (: CFLAGS already contains $flag) 2>&5
15971 >  ac_status=$?
15972 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15973 >  test $ac_status = 0; } ;; #(
15974 >  *) :
15975 >
15976 >     as_fn_append CFLAGS " $flag"
15977 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15978 >  (: CFLAGS="$CFLAGS") 2>&5
15979 >  ac_status=$?
15980 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 >  test $ac_status = 0; }
15982 >     ;;
15983 > esac
15984 >
15985 > else
15986 >
15987 >  CFLAGS=$flag
15988 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15989 >  (: CFLAGS="$CFLAGS") 2>&5
15990 >  ac_status=$?
15991 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15992 >  test $ac_status = 0; }
15993 >
15994 > fi
15995 >
15996   else
15997 <  CFLAGS="$flag"
15997 >  :
15998 > fi
15999 >
16000 > done
16001 >
16002 >
16003 >
16004 >
16005 >
16006 > for flag in -Wredundant-decls; do
16007 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16008 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16009 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16010 > if eval \${$as_CACHEVAR+:} false; then :
16011 >  $as_echo_n "(cached) " >&6
16012 > else
16013 >
16014 >  ax_check_save_flags=$CFLAGS
16015 >  CFLAGS="$CFLAGS  $flag"
16016 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 > /* end confdefs.h.  */
16018 >
16019 > int
16020 > main ()
16021 > {
16022 >
16023 >  ;
16024 >  return 0;
16025 > }
16026 > _ACEOF
16027 > if ac_fn_c_try_compile "$LINENO"; then :
16028 >  eval "$as_CACHEVAR=yes"
16029 > else
16030 >  eval "$as_CACHEVAR=no"
16031 > fi
16032 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033 >  CFLAGS=$ax_check_save_flags
16034 > fi
16035 > eval ac_res=\$$as_CACHEVAR
16036 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16037 > $as_echo "$ac_res" >&6; }
16038 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16039 >
16040 > if ${CFLAGS+:} false; then :
16041 >
16042 >  case " $CFLAGS " in #(
16043 >  *" $flag "*) :
16044 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16045 >  (: CFLAGS already contains $flag) 2>&5
16046 >  ac_status=$?
16047 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16048 >  test $ac_status = 0; } ;; #(
16049 >  *) :
16050 >
16051 >     as_fn_append CFLAGS " $flag"
16052 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16053 >  (: CFLAGS="$CFLAGS") 2>&5
16054 >  ac_status=$?
16055 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16056 >  test $ac_status = 0; }
16057 >     ;;
16058 > esac
16059 >
16060 > else
16061 >
16062 >  CFLAGS=$flag
16063 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16064 >  (: CFLAGS="$CFLAGS") 2>&5
16065 >  ac_status=$?
16066 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16067 >  test $ac_status = 0; }
16068 >
16069   fi
16070  
16071   else
# Line 15266 | Line 16076 | done
16076  
16077  
16078  
16079 +
16080 +
16081   for flag in -Wshadow; do
16082    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15298 | Line 16110 | fi
16110   eval ac_res=\$$as_CACHEVAR
16111                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16112   $as_echo "$ac_res" >&6; }
16113 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16114 <  if ${CFLAGS+:} false; then :
16115 <  case " $CFLAGS " in
16116 <    *" $flag "*)
16117 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16113 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16114 >
16115 > if ${CFLAGS+:} false; then :
16116 >
16117 >  case " $CFLAGS " in #(
16118 >  *" $flag "*) :
16119 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16120    (: CFLAGS already contains $flag) 2>&5
16121    ac_status=$?
16122    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16123 +  test $ac_status = 0; } ;; #(
16124 +  *) :
16125 +
16126 +     as_fn_append CFLAGS " $flag"
16127 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16128 +  (: CFLAGS="$CFLAGS") 2>&5
16129 +  ac_status=$?
16130 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16131    test $ac_status = 0; }
16132 <      ;;
16133 <    *)
16134 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16135 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16132 >     ;;
16133 > esac
16134 >
16135 > else
16136 >
16137 >  CFLAGS=$flag
16138 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16139 >  (: CFLAGS="$CFLAGS") 2>&5
16140    ac_status=$?
16141    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16142    test $ac_status = 0; }
16143 <      CFLAGS="$CFLAGS $flag"
16144 <      ;;
16145 <   esac
16143 >
16144 > fi
16145 >
16146 > else
16147 >  :
16148 > fi
16149 >
16150 > done
16151 >
16152 >
16153 >
16154 >
16155 >
16156 > for flag in -Wshift-negative-value; do
16157 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16158 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16159 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16160 > if eval \${$as_CACHEVAR+:} false; then :
16161 >  $as_echo_n "(cached) " >&6
16162 > else
16163 >
16164 >  ax_check_save_flags=$CFLAGS
16165 >  CFLAGS="$CFLAGS  $flag"
16166 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 > /* end confdefs.h.  */
16168 >
16169 > int
16170 > main ()
16171 > {
16172 >
16173 >  ;
16174 >  return 0;
16175 > }
16176 > _ACEOF
16177 > if ac_fn_c_try_compile "$LINENO"; then :
16178 >  eval "$as_CACHEVAR=yes"
16179 > else
16180 >  eval "$as_CACHEVAR=no"
16181 > fi
16182 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 >  CFLAGS=$ax_check_save_flags
16184 > fi
16185 > eval ac_res=\$$as_CACHEVAR
16186 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16187 > $as_echo "$ac_res" >&6; }
16188 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16189 >
16190 > if ${CFLAGS+:} false; then :
16191 >
16192 >  case " $CFLAGS " in #(
16193 >  *" $flag "*) :
16194 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16195 >  (: CFLAGS already contains $flag) 2>&5
16196 >  ac_status=$?
16197 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 >  test $ac_status = 0; } ;; #(
16199 >  *) :
16200 >
16201 >     as_fn_append CFLAGS " $flag"
16202 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16203 >  (: CFLAGS="$CFLAGS") 2>&5
16204 >  ac_status=$?
16205 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16206 >  test $ac_status = 0; }
16207 >     ;;
16208 > esac
16209 >
16210   else
16211 <  CFLAGS="$flag"
16211 >
16212 >  CFLAGS=$flag
16213 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16214 >  (: CFLAGS="$CFLAGS") 2>&5
16215 >  ac_status=$?
16216 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16217 >  test $ac_status = 0; }
16218 >
16219   fi
16220  
16221   else
# Line 15329 | Line 16226 | done
16226  
16227  
16228  
16229 < for flag in -Wwrite-strings; do
16229 >
16230 >
16231 > for flag in -Wsign-compare; do
16232    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16234   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15361 | Line 16260 | fi
16260   eval ac_res=\$$as_CACHEVAR
16261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16262   $as_echo "$ac_res" >&6; }
16263 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16264 <  if ${CFLAGS+:} false; then :
16265 <  case " $CFLAGS " in
16266 <    *" $flag "*)
16267 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16263 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16264 >
16265 > if ${CFLAGS+:} false; then :
16266 >
16267 >  case " $CFLAGS " in #(
16268 >  *" $flag "*) :
16269 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16270    (: CFLAGS already contains $flag) 2>&5
16271    ac_status=$?
16272    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273 +  test $ac_status = 0; } ;; #(
16274 +  *) :
16275 +
16276 +     as_fn_append CFLAGS " $flag"
16277 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16278 +  (: CFLAGS="$CFLAGS") 2>&5
16279 +  ac_status=$?
16280 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16281    test $ac_status = 0; }
16282 <      ;;
16283 <    *)
16284 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16285 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16282 >     ;;
16283 > esac
16284 >
16285 > else
16286 >
16287 >  CFLAGS=$flag
16288 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16289 >  (: CFLAGS="$CFLAGS") 2>&5
16290    ac_status=$?
16291    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292    test $ac_status = 0; }
16293 <      CFLAGS="$CFLAGS $flag"
16294 <      ;;
16295 <   esac
16293 >
16294 > fi
16295 >
16296 > else
16297 >  :
16298 > fi
16299 >
16300 > done
16301 >
16302 >
16303 >
16304 >
16305 >
16306 > for flag in -Wtype-limits; do
16307 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16308 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16309 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16310 > if eval \${$as_CACHEVAR+:} false; then :
16311 >  $as_echo_n "(cached) " >&6
16312 > else
16313 >
16314 >  ax_check_save_flags=$CFLAGS
16315 >  CFLAGS="$CFLAGS  $flag"
16316 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 > /* end confdefs.h.  */
16318 >
16319 > int
16320 > main ()
16321 > {
16322 >
16323 >  ;
16324 >  return 0;
16325 > }
16326 > _ACEOF
16327 > if ac_fn_c_try_compile "$LINENO"; then :
16328 >  eval "$as_CACHEVAR=yes"
16329 > else
16330 >  eval "$as_CACHEVAR=no"
16331 > fi
16332 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 >  CFLAGS=$ax_check_save_flags
16334 > fi
16335 > eval ac_res=\$$as_CACHEVAR
16336 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16337 > $as_echo "$ac_res" >&6; }
16338 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16339 >
16340 > if ${CFLAGS+:} false; then :
16341 >
16342 >  case " $CFLAGS " in #(
16343 >  *" $flag "*) :
16344 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16345 >  (: CFLAGS already contains $flag) 2>&5
16346 >  ac_status=$?
16347 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16348 >  test $ac_status = 0; } ;; #(
16349 >  *) :
16350 >
16351 >     as_fn_append CFLAGS " $flag"
16352 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16353 >  (: CFLAGS="$CFLAGS") 2>&5
16354 >  ac_status=$?
16355 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16356 >  test $ac_status = 0; }
16357 >     ;;
16358 > esac
16359 >
16360   else
16361 <  CFLAGS="$flag"
16361 >
16362 >  CFLAGS=$flag
16363 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16364 >  (: CFLAGS="$CFLAGS") 2>&5
16365 >  ac_status=$?
16366 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 >  test $ac_status = 0; }
16368 >
16369   fi
16370  
16371   else
# Line 15392 | Line 16376 | done
16376  
16377  
16378  
16379 +
16380 +
16381   for flag in -Wundef; do
16382    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15424 | Line 16410 | fi
16410   eval ac_res=\$$as_CACHEVAR
16411                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16412   $as_echo "$ac_res" >&6; }
16413 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16414 <  if ${CFLAGS+:} false; then :
16415 <  case " $CFLAGS " in
16416 <    *" $flag "*)
16417 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16413 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16414 >
16415 > if ${CFLAGS+:} false; then :
16416 >
16417 >  case " $CFLAGS " in #(
16418 >  *" $flag "*) :
16419 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16420    (: CFLAGS already contains $flag) 2>&5
16421    ac_status=$?
16422    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16423 +  test $ac_status = 0; } ;; #(
16424 +  *) :
16425 +
16426 +     as_fn_append CFLAGS " $flag"
16427 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16428 +  (: CFLAGS="$CFLAGS") 2>&5
16429 +  ac_status=$?
16430 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16431    test $ac_status = 0; }
16432 <      ;;
16433 <    *)
16434 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16435 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16432 >     ;;
16433 > esac
16434 >
16435 > else
16436 >
16437 >  CFLAGS=$flag
16438 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16439 >  (: CFLAGS="$CFLAGS") 2>&5
16440    ac_status=$?
16441    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16442    test $ac_status = 0; }
16443 <      CFLAGS="$CFLAGS $flag"
16444 <      ;;
16445 <   esac
16443 >
16444 > fi
16445 >
16446 > else
16447 >  :
16448 > fi
16449 >
16450 > done
16451 >
16452 >
16453 >
16454 >
16455 >
16456 > for flag in -Wuninitialized; do
16457 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16458 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16459 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16460 > if eval \${$as_CACHEVAR+:} false; then :
16461 >  $as_echo_n "(cached) " >&6
16462 > else
16463 >
16464 >  ax_check_save_flags=$CFLAGS
16465 >  CFLAGS="$CFLAGS  $flag"
16466 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 > /* end confdefs.h.  */
16468 >
16469 > int
16470 > main ()
16471 > {
16472 >
16473 >  ;
16474 >  return 0;
16475 > }
16476 > _ACEOF
16477 > if ac_fn_c_try_compile "$LINENO"; then :
16478 >  eval "$as_CACHEVAR=yes"
16479 > else
16480 >  eval "$as_CACHEVAR=no"
16481 > fi
16482 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 >  CFLAGS=$ax_check_save_flags
16484 > fi
16485 > eval ac_res=\$$as_CACHEVAR
16486 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16487 > $as_echo "$ac_res" >&6; }
16488 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16489 >
16490 > if ${CFLAGS+:} false; then :
16491 >
16492 >  case " $CFLAGS " in #(
16493 >  *" $flag "*) :
16494 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16495 >  (: CFLAGS already contains $flag) 2>&5
16496 >  ac_status=$?
16497 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16498 >  test $ac_status = 0; } ;; #(
16499 >  *) :
16500 >
16501 >     as_fn_append CFLAGS " $flag"
16502 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16503 >  (: CFLAGS="$CFLAGS") 2>&5
16504 >  ac_status=$?
16505 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16506 >  test $ac_status = 0; }
16507 >     ;;
16508 > esac
16509 >
16510 > else
16511 >
16512 >  CFLAGS=$flag
16513 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16514 >  (: CFLAGS="$CFLAGS") 2>&5
16515 >  ac_status=$?
16516 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16517 >  test $ac_status = 0; }
16518 >
16519 > fi
16520 >
16521   else
16522 <  CFLAGS="$flag"
16522 >  :
16523 > fi
16524 >
16525 > done
16526 >
16527 >
16528 >
16529 >
16530 >
16531 > for flag in -Wwrite-strings; do
16532 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16533 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16534 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16535 > if eval \${$as_CACHEVAR+:} false; then :
16536 >  $as_echo_n "(cached) " >&6
16537 > else
16538 >
16539 >  ax_check_save_flags=$CFLAGS
16540 >  CFLAGS="$CFLAGS  $flag"
16541 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 > /* end confdefs.h.  */
16543 >
16544 > int
16545 > main ()
16546 > {
16547 >
16548 >  ;
16549 >  return 0;
16550 > }
16551 > _ACEOF
16552 > if ac_fn_c_try_compile "$LINENO"; then :
16553 >  eval "$as_CACHEVAR=yes"
16554 > else
16555 >  eval "$as_CACHEVAR=no"
16556 > fi
16557 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 >  CFLAGS=$ax_check_save_flags
16559 > fi
16560 > eval ac_res=\$$as_CACHEVAR
16561 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16562 > $as_echo "$ac_res" >&6; }
16563 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16564 >
16565 > if ${CFLAGS+:} false; then :
16566 >
16567 >  case " $CFLAGS " in #(
16568 >  *" $flag "*) :
16569 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16570 >  (: CFLAGS already contains $flag) 2>&5
16571 >  ac_status=$?
16572 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16573 >  test $ac_status = 0; } ;; #(
16574 >  *) :
16575 >
16576 >     as_fn_append CFLAGS " $flag"
16577 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16578 >  (: CFLAGS="$CFLAGS") 2>&5
16579 >  ac_status=$?
16580 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 >  test $ac_status = 0; }
16582 >     ;;
16583 > esac
16584 >
16585 > else
16586 >
16587 >  CFLAGS=$flag
16588 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16589 >  (: CFLAGS="$CFLAGS") 2>&5
16590 >  ac_status=$?
16591 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16592 >  test $ac_status = 0; }
16593 >
16594   fi
16595  
16596   else
# Line 15453 | Line 16599 | fi
16599  
16600   done
16601  
16602 +
16603 + fi
16604 +
16605 +
16606 +  # Check whether --enable-efence was given.
16607 + if test "${enable_efence+set}" = set; then :
16608 +  enableval=$enable_efence; efence="$enableval"
16609 + else
16610 +  efence="no"
16611 + fi
16612 +
16613 +
16614 +  if test "$efence" = "yes"; then :
16615 +
16616 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16617 + $as_echo_n "checking for library containing EF_Print... " >&6; }
16618 + if ${ac_cv_search_EF_Print+:} false; then :
16619 +  $as_echo_n "(cached) " >&6
16620 + else
16621 +  ac_func_search_save_LIBS=$LIBS
16622 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 + /* end confdefs.h.  */
16624 +
16625 + /* Override any GCC internal prototype to avoid an error.
16626 +   Use char because int might match the return type of a GCC
16627 +   builtin and then its argument prototype would still apply.  */
16628 + #ifdef __cplusplus
16629 + extern "C"
16630 + #endif
16631 + char EF_Print ();
16632 + int
16633 + main ()
16634 + {
16635 + return EF_Print ();
16636 +  ;
16637 +  return 0;
16638 + }
16639 + _ACEOF
16640 + for ac_lib in '' efence; do
16641 +  if test -z "$ac_lib"; then
16642 +    ac_res="none required"
16643 +  else
16644 +    ac_res=-l$ac_lib
16645 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16646 +  fi
16647 +  if ac_fn_c_try_link "$LINENO"; then :
16648 +  ac_cv_search_EF_Print=$ac_res
16649 + fi
16650 + rm -f core conftest.err conftest.$ac_objext \
16651 +    conftest$ac_exeext
16652 +  if ${ac_cv_search_EF_Print+:} false; then :
16653 +  break
16654 + fi
16655 + done
16656 + if ${ac_cv_search_EF_Print+:} false; then :
16657 +
16658 + else
16659 +  ac_cv_search_EF_Print=no
16660 + fi
16661 + rm conftest.$ac_ext
16662 + LIBS=$ac_func_search_save_LIBS
16663 + fi
16664 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16665 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16666 + ac_res=$ac_cv_search_EF_Print
16667 + if test "$ac_res" != no; then :
16668 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16669 +
16670 + else
16671 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16672 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16673 + as_fn_error $? "Electric Fence 'efence' library not found
16674 + See \`config.log' for more details" "$LINENO" 5; }
16675 + fi
16676 +
16677 +
16678 + fi
16679 +
16680 +
16681 +
16682 +
16683 + # Check whether --with-tls was given.
16684 + if test "${with_tls+set}" = set; then :
16685 +  withval=$with_tls; with_tls=$withval
16686 + else
16687 +  with_tls=auto
16688 + fi
16689 +
16690 +
16691 + if test "$with_tls" = "openssl" ||
16692 +   test "$with_tls" = "auto"; then
16693 +    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16694 + if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16695 +
16696 +      if test "$cross_compiling" = yes; then :
16697 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16698 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16699 + as_fn_error $? "cannot run test program while cross compiling
16700 + See \`config.log' for more details" "$LINENO" 5; }
16701 + else
16702 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 + /* end confdefs.h.  */
16704 +
16705 +
16706 +          #include <openssl/opensslv.h>
16707 +          #include <stdlib.h>
16708 + int
16709 + main ()
16710 + {
16711 +
16712 +          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16713 +  ;
16714 +  return 0;
16715 + }
16716 + _ACEOF
16717 + if ac_fn_c_try_run "$LINENO"; then :
16718 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16719 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16720 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16721 +  $as_echo_n "(cached) " >&6
16722 + else
16723 +  ac_check_lib_save_LIBS=$LIBS
16724 + LIBS="-lcrypto  $LIBS"
16725 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 + /* end confdefs.h.  */
16727 +
16728 + /* Override any GCC internal prototype to avoid an error.
16729 +   Use char because int might match the return type of a GCC
16730 +   builtin and then its argument prototype would still apply.  */
16731 + #ifdef __cplusplus
16732 + extern "C"
16733 + #endif
16734 + char RSA_free ();
16735 + int
16736 + main ()
16737 + {
16738 + return RSA_free ();
16739 +  ;
16740 +  return 0;
16741 + }
16742 + _ACEOF
16743 + if ac_fn_c_try_link "$LINENO"; then :
16744 +  ac_cv_lib_crypto_RSA_free=yes
16745 + else
16746 +  ac_cv_lib_crypto_RSA_free=no
16747 + fi
16748 + rm -f core conftest.err conftest.$ac_objext \
16749 +    conftest$ac_exeext conftest.$ac_ext
16750 + LIBS=$ac_check_lib_save_LIBS
16751 + fi
16752 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16753 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16754 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16755 +  cat >>confdefs.h <<_ACEOF
16756 + #define HAVE_LIBCRYPTO 1
16757 + _ACEOF
16758 +
16759 +  LIBS="-lcrypto $LIBS"
16760 +
16761 + fi
16762 +
16763 + fi
16764 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16765 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16766 + fi
16767 +
16768 + fi
16769 +
16770 +
16771 +
16772 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16773 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16774 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16775 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16776 +  $as_echo_n "(cached) " >&6
16777 + else
16778 +  ac_check_lib_save_LIBS=$LIBS
16779 + LIBS="-lssl  $LIBS"
16780 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 + /* end confdefs.h.  */
16782 +
16783 + /* Override any GCC internal prototype to avoid an error.
16784 +   Use char because int might match the return type of a GCC
16785 +   builtin and then its argument prototype would still apply.  */
16786 + #ifdef __cplusplus
16787 + extern "C"
16788 + #endif
16789 + char SSL_connect ();
16790 + int
16791 + main ()
16792 + {
16793 + return SSL_connect ();
16794 +  ;
16795 +  return 0;
16796 + }
16797 + _ACEOF
16798 + if ac_fn_c_try_link "$LINENO"; then :
16799 +  ac_cv_lib_ssl_SSL_connect=yes
16800 + else
16801 +  ac_cv_lib_ssl_SSL_connect=no
16802 + fi
16803 + rm -f core conftest.err conftest.$ac_objext \
16804 +    conftest$ac_exeext conftest.$ac_ext
16805 + LIBS=$ac_check_lib_save_LIBS
16806 + fi
16807 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16808 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16809 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16810 +  cat >>confdefs.h <<_ACEOF
16811 + #define HAVE_LIBSSL 1
16812 + _ACEOF
16813 +
16814 +  LIBS="-lssl $LIBS"
16815 +
16816 + fi
16817 +
16818 + fi
16819 +
16820 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16821 + $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16822 +    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16823 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16824 + $as_echo "found" >&6; }
16825 + else
16826 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16827 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16828 + fi
16829 +
16830 + fi
16831 +
16832 + if test "$with_tls" = "gnutls" ||
16833 +   test "$with_tls" = "auto"; then
16834 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16835 +
16836 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16837 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16838 +
16839 +      if test "$cross_compiling" = yes; then :
16840 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16841 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16842 + as_fn_error $? "cannot run test program while cross compiling
16843 + See \`config.log' for more details" "$LINENO" 5; }
16844 + else
16845 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 + /* end confdefs.h.  */
16847 +
16848 +
16849 +          #include <gnutls/gnutls.h>
16850 +          #include <stdlib.h>
16851 + int
16852 + main ()
16853 + {
16854 +
16855 +          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16856 +  ;
16857 +  return 0;
16858 + }
16859 + _ACEOF
16860 + if ac_fn_c_try_run "$LINENO"; then :
16861 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16862 + $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16863 + if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16864 +  $as_echo_n "(cached) " >&6
16865 + else
16866 +  ac_check_lib_save_LIBS=$LIBS
16867 + LIBS="-lgnutls  $LIBS"
16868 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 + /* end confdefs.h.  */
16870 +
16871 + /* Override any GCC internal prototype to avoid an error.
16872 +   Use char because int might match the return type of a GCC
16873 +   builtin and then its argument prototype would still apply.  */
16874 + #ifdef __cplusplus
16875 + extern "C"
16876 + #endif
16877 + char gnutls_init ();
16878 + int
16879 + main ()
16880 + {
16881 + return gnutls_init ();
16882 +  ;
16883 +  return 0;
16884 + }
16885 + _ACEOF
16886 + if ac_fn_c_try_link "$LINENO"; then :
16887 +  ac_cv_lib_gnutls_gnutls_init=yes
16888 + else
16889 +  ac_cv_lib_gnutls_gnutls_init=no
16890 + fi
16891 + rm -f core conftest.err conftest.$ac_objext \
16892 +    conftest$ac_exeext conftest.$ac_ext
16893 + LIBS=$ac_check_lib_save_LIBS
16894 + fi
16895 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16896 + $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16897 + if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16898 +  cat >>confdefs.h <<_ACEOF
16899 + #define HAVE_LIBGNUTLS 1
16900 + _ACEOF
16901 +
16902 +  LIBS="-lgnutls $LIBS"
16903 +
16904 + fi
16905 +
16906 + fi
16907 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16908 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16909 + fi
16910 +
16911 + fi
16912 +
16913 +
16914 +
16915 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16916 + $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16917 +    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16918 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16919 + $as_echo "found" >&6; }
16920 + else
16921 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16922 + $as_echo "no - GnuTLS support disabled" >&6; }
16923 + fi
16924 +
16925 +  fi
16926 + fi
16927 +
16928 + if test "$with_tls" = "wolfssl" ||
16929 +   test "$with_tls" = "auto"; then
16930 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
16931 +     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
16932 +
16933 +    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16934 + if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
16935 +
16936 +      if test "$cross_compiling" = yes; then :
16937 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16938 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16939 + as_fn_error $? "cannot run test program while cross compiling
16940 + See \`config.log' for more details" "$LINENO" 5; }
16941 + else
16942 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 + /* end confdefs.h.  */
16944 +
16945 +
16946 +          #include <wolfssl/version.h>
16947 +          #include <stdlib.h>
16948 + int
16949 + main ()
16950 + {
16951 +
16952 +          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
16953 +  ;
16954 +  return 0;
16955 + }
16956 + _ACEOF
16957 + if ac_fn_c_try_run "$LINENO"; then :
16958 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
16959 + $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
16960 + if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
16961 +  $as_echo_n "(cached) " >&6
16962 + else
16963 +  ac_check_lib_save_LIBS=$LIBS
16964 + LIBS="-lwolfssl  $LIBS"
16965 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 + /* end confdefs.h.  */
16967 +
16968 + /* Override any GCC internal prototype to avoid an error.
16969 +   Use char because int might match the return type of a GCC
16970 +   builtin and then its argument prototype would still apply.  */
16971 + #ifdef __cplusplus
16972 + extern "C"
16973 + #endif
16974 + char wolfSSL_X509_digest ();
16975 + int
16976 + main ()
16977 + {
16978 + return wolfSSL_X509_digest ();
16979 +  ;
16980 +  return 0;
16981 + }
16982 + _ACEOF
16983 + if ac_fn_c_try_link "$LINENO"; then :
16984 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
16985 + else
16986 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
16987 + fi
16988 + rm -f core conftest.err conftest.$ac_objext \
16989 +    conftest$ac_exeext conftest.$ac_ext
16990 + LIBS=$ac_check_lib_save_LIBS
16991 + fi
16992 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
16993 + $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
16994 + if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
16995 +  cat >>confdefs.h <<_ACEOF
16996 + #define HAVE_LIBWOLFSSL 1
16997 + _ACEOF
16998 +
16999 +  LIBS="-lwolfssl $LIBS"
17000 +
17001 + fi
17002 +
17003 + fi
17004 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17005 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
17006 + fi
17007 +
17008 + fi
17009 +
17010 +
17011 +
17012 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17013 + $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17014 +    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17015 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17016 + $as_echo "found" >&6; }
17017 + else
17018 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17019 + $as_echo "no - wolfSSL support disabled" >&6; }
17020 + fi
17021 +
17022    fi
17023 + fi
17024 +
17025 +
17026 +
17027 + # Disable -Wformat-truncation
17028 +
17029 +
17030 +
17031 +
17032 + for flag in -Wno-format-truncation; do
17033 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17034 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17035 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17036 + if eval \${$as_CACHEVAR+:} false; then :
17037 +  $as_echo_n "(cached) " >&6
17038 + else
17039 +
17040 +  ax_check_save_flags=$CFLAGS
17041 +  CFLAGS="$CFLAGS  $flag"
17042 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 + /* end confdefs.h.  */
17044 +
17045 + int
17046 + main ()
17047 + {
17048 +
17049 +  ;
17050 +  return 0;
17051 + }
17052 + _ACEOF
17053 + if ac_fn_c_try_compile "$LINENO"; then :
17054 +  eval "$as_CACHEVAR=yes"
17055 + else
17056 +  eval "$as_CACHEVAR=no"
17057 + fi
17058 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 +  CFLAGS=$ax_check_save_flags
17060 + fi
17061 + eval ac_res=\$$as_CACHEVAR
17062 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17063 + $as_echo "$ac_res" >&6; }
17064 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17065 +
17066 + if ${CFLAGS+:} false; then :
17067 +
17068 +  case " $CFLAGS " in #(
17069 +  *" $flag "*) :
17070 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17071 +  (: CFLAGS already contains $flag) 2>&5
17072 +  ac_status=$?
17073 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17074 +  test $ac_status = 0; } ;; #(
17075 +  *) :
17076 +
17077 +     as_fn_append CFLAGS " $flag"
17078 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17079 +  (: CFLAGS="$CFLAGS") 2>&5
17080 +  ac_status=$?
17081 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 +  test $ac_status = 0; }
17083 +     ;;
17084 + esac
17085 +
17086 + else
17087 +
17088 +  CFLAGS=$flag
17089 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17090 +  (: CFLAGS="$CFLAGS") 2>&5
17091 +  ac_status=$?
17092 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 +  test $ac_status = 0; }
17094 +
17095 + fi
17096 +
17097 + else
17098 +  :
17099 + fi
17100 +
17101 + done
17102  
17103  
17104  
# Line 15542 | Line 17187 | _ACEOF
17187    test "$exec_prefix_NONE" && exec_prefix=NONE
17188  
17189  
17190 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17190 > ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile"
17191  
17192  
17193   cat >confcache <<\_ACEOF
# Line 15708 | Line 17353 | LT_CONFIG_H=config.h
17353  
17354  
17355  
15711 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15712  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714 fi
17356  
17357   : "${CONFIG_STATUS=./config.status}"
17358   ac_write_fail=0
# Line 16294 | Line 17935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17935   #
17936   # INIT-COMMANDS
17937   #
17938 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17938 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17939  
17940  
17941   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 16310 | Line 17951 | enable_static='`$ECHO "$enable_static" |
17951   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17952   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17953   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17954 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17955   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17956   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17957   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 16359 | Line 18001 | compiler='`$ECHO "$compiler" | $SED "$de
18001   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18002   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18003   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18004 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18005   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18006   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18007 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18008   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18009   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18010 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18011   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18012   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18013   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 16427 | Line 18072 | finish_cmds='`$ECHO "$finish_cmds" | $SE
18072   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18073   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18074   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18075 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18075 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18076 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18077   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18078   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18079   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 16478 | Line 18124 | CFLAGS \
18124   compiler \
18125   lt_cv_sys_global_symbol_pipe \
18126   lt_cv_sys_global_symbol_to_cdecl \
18127 + lt_cv_sys_global_symbol_to_import \
18128   lt_cv_sys_global_symbol_to_c_name_address \
18129   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18130 + lt_cv_nm_interface \
18131   nm_file_list_spec \
18132 + lt_cv_truncate_bin \
18133   lt_prog_compiler_no_builtin_flag \
18134   lt_prog_compiler_pic \
18135   lt_prog_compiler_wl \
# Line 16515 | Line 18164 | old_striplib \
18164   striplib; do
18165      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18166      *[\\\\\\\`\\"\\\$]*)
18167 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18167 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18168        ;;
18169      *)
18170        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16542 | Line 18191 | postinstall_cmds \
18191   postuninstall_cmds \
18192   finish_cmds \
18193   sys_lib_search_path_spec \
18194 < sys_lib_dlsearch_path_spec; do
18194 > configure_time_dlsearch_path \
18195 > configure_time_lt_sys_library_path; do
18196      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18197      *[\\\\\\\`\\"\\\$]*)
18198 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18198 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18199        ;;
18200      *)
18201        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16554 | Line 18204 | sys_lib_dlsearch_path_spec; do
18204   done
18205  
18206   ac_aux_dir='$ac_aux_dir'
16557 xsi_shell='$xsi_shell'
16558 lt_shell_append='$lt_shell_append'
18207  
18208 < # See if we are running on zsh, and set the options which allow our
18208 > # See if we are running on zsh, and set the options that allow our
18209   # commands through without removal of \ escapes INIT.
18210 < if test -n "\${ZSH_VERSION+set}" ; then
18210 > if test -n "\${ZSH_VERSION+set}"; then
18211     setopt NO_GLOB_SUBST
18212   fi
18213  
18214  
18215      PACKAGE='$PACKAGE'
18216      VERSION='$VERSION'
16569    TIMESTAMP='$TIMESTAMP'
18217      RM='$RM'
18218      ofile='$ofile'
18219  
# Line 16589 | Line 18236 | do
18236      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18237      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18238      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18239 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18240      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18241      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18242      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 17191 | Line 18839 | $as_echo "$as_me: executing $ac_file com
18839    # Older Autoconf quotes --file arguments for eval, but not when files
18840    # are listed without --file.  Let's play safe and only enable the eval
18841    # if we detect the quoting.
18842 <  case $CONFIG_FILES in
18843 <  *\'*) eval set x "$CONFIG_FILES" ;;
18844 <  *)   set x $CONFIG_FILES ;;
18845 <  esac
18842 >  # TODO: see whether this extra hack can be removed once we start
18843 >  # requiring Autoconf 2.70 or later.
18844 >  case $CONFIG_FILES in #(
18845 >  *\'*) :
18846 >    eval set x "$CONFIG_FILES" ;; #(
18847 >  *) :
18848 >    set x $CONFIG_FILES ;; #(
18849 >  *) :
18850 >     ;;
18851 > esac
18852    shift
18853 <  for mf
18853 >  # Used to flag and report bootstrapping failures.
18854 >  am_rc=0
18855 >  for am_mf
18856    do
18857      # Strip MF so we end up with the name of the file.
18858 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18859 <    # Check whether this is an Automake generated Makefile or not.
18860 <    # We used to match only the files named 'Makefile.in', but
18861 <    # some people rename them; so instead we look at the file content.
17206 <    # Grep'ing the first line is not enough: some people post-process
17207 <    # each Makefile.in and add a new line on top of each file to say so.
17208 <    # Grep'ing the whole file is not good either: AIX grep has a line
18858 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18859 >    # Check whether this is an Automake generated Makefile which includes
18860 >    # dependency-tracking related rules and includes.
18861 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18862      # limit of 2048, but all sed's we know have understand at least 4000.
18863 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18864 <      dirpart=`$as_dirname -- "$mf" ||
18865 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18866 <         X"$mf" : 'X\(//\)[^/]' \| \
18867 <         X"$mf" : 'X\(//\)$' \| \
18868 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18869 < $as_echo X"$mf" |
18863 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18864 >      || continue
18865 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18866 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18868 >         X"$am_mf" : 'X\(//\)$' \| \
18869 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18870 > $as_echo X"$am_mf" |
18871      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18872              s//\1/
18873              q
# Line 17231 | Line 18885 | $as_echo X"$mf" |
18885              q
18886            }
18887            s/.*/./; q'`
18888 <    else
18889 <      continue
18890 <    fi
18891 <    # Extract the definition of DEPDIR, am__include, and am__quote
18892 <    # from the Makefile without running 'make'.
18893 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17240 <    test -z "$DEPDIR" && continue
17241 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17242 <    test -z "$am__include" && continue
17243 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17244 <    # Find all dependency output files, they are included files with
17245 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17246 <    # simplest approach to changing $(DEPDIR) to its actual value in the
17247 <    # expansion.
17248 <    for file in `sed -n "
17249 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17250 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17251 <      # Make sure the directory exists.
17252 <      test -f "$dirpart/$file" && continue
17253 <      fdir=`$as_dirname -- "$file" ||
17254 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17255 <         X"$file" : 'X\(//\)[^/]' \| \
17256 <         X"$file" : 'X\(//\)$' \| \
17257 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17258 < $as_echo X"$file" |
17259 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17260 <            s//\1/
17261 <            q
17262 <          }
17263 <          /^X\(\/\/\)[^/].*/{
18888 >    am_filepart=`$as_basename -- "$am_mf" ||
18889 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18890 >         X"$am_mf" : 'X\(//\)$' \| \
18891 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18892 > $as_echo X/"$am_mf" |
18893 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18894              s//\1/
18895              q
18896            }
18897 <          /^X\(\/\/\)$/{
18897 >          /^X\/\(\/\/\)$/{
18898              s//\1/
18899              q
18900            }
18901 <          /^X\(\/\).*/{
18901 >          /^X\/\(\/\).*/{
18902              s//\1/
18903              q
18904            }
18905            s/.*/./; q'`
18906 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18907 <      # echo "creating $dirpart/$file"
18908 <      echo '# dummy' > "$dirpart/$file"
18909 <    done
18906 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18907 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18908 >        | $MAKE -f - am--depfiles" >&5
18909 >   (cd "$am_dirpart" \
18910 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18911 >        | $MAKE -f - am--depfiles) >&5 2>&5
18912 >   ac_status=$?
18913 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 >   (exit $ac_status); } || am_rc=$?
18915    done
18916 +  if test $am_rc -ne 0; then
18917 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18918 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18919 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18920 +    for automatic dependency tracking.  Try re-running configure with the
18921 +    '--disable-dependency-tracking' option to at least be able to build
18922 +    the package (albeit without support for automatic dependency tracking).
18923 + See \`config.log' for more details" "$LINENO" 5; }
18924 +  fi
18925 +  { am_dirpart=; unset am_dirpart;}
18926 +  { am_filepart=; unset am_filepart;}
18927 +  { am_mf=; unset am_mf;}
18928 +  { am_rc=; unset am_rc;}
18929 +  rm -f conftest-deps.mk
18930   }
18931   ;;
18932      "libtool":C)
18933  
18934 <    # See if we are running on zsh, and set the options which allow our
18934 >    # See if we are running on zsh, and set the options that allow our
18935      # commands through without removal of \ escapes.
18936 <    if test -n "${ZSH_VERSION+set}" ; then
18936 >    if test -n "${ZSH_VERSION+set}"; then
18937        setopt NO_GLOB_SUBST
18938      fi
18939  
18940 <    cfgfile="${ofile}T"
18940 >    cfgfile=${ofile}T
18941      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18942      $RM "$cfgfile"
18943  
18944      cat <<_LT_EOF >> "$cfgfile"
18945   #! $SHELL
18946 <
17298 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17299 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17300 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18946 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18947   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18948 +
18949 + # Provide generalized library-building support services.
18950 + # Written by Gordon Matzigkeit, 1996
18951 +
18952 + # Copyright (C) 2014 Free Software Foundation, Inc.
18953 + # This is free software; see the source for copying conditions.  There is NO
18954 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18955 +
18956 + # GNU Libtool is free software; you can redistribute it and/or modify
18957 + # it under the terms of the GNU General Public License as published by
18958 + # the Free Software Foundation; either version 2 of of the License, or
18959 + # (at your option) any later version.
18960   #
18961 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18962 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18963 < #                 Foundation, Inc.
18964 < #   Written by Gordon Matzigkeit, 1996
17307 < #
17308 < #   This file is part of GNU Libtool.
17309 < #
17310 < # GNU Libtool is free software; you can redistribute it and/or
17311 < # modify it under the terms of the GNU General Public License as
17312 < # published by the Free Software Foundation; either version 2 of
17313 < # the License, or (at your option) any later version.
17314 < #
17315 < # As a special exception to the GNU General Public License,
17316 < # if you distribute this file as part of a program or library that
17317 < # is built using GNU Libtool, you may include this file under the
17318 < # same distribution terms that you use for the rest of that program.
18961 > # As a special exception to the GNU General Public License, if you
18962 > # distribute this file as part of a program or library that is built
18963 > # using GNU Libtool, you may include this file under the  same
18964 > # distribution terms that you use for the rest of that program.
18965   #
18966 < # GNU Libtool is distributed in the hope that it will be useful,
18967 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18966 > # GNU Libtool is distributed in the hope that it will be useful, but
18967 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18968   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18969   # GNU General Public License for more details.
18970   #
18971   # You should have received a copy of the GNU General Public License
18972 < # along with GNU Libtool; see the file COPYING.  If not, a copy
17327 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17328 < # obtained by writing to the Free Software Foundation, Inc.,
17329 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18972 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18973  
18974  
18975   # The names of the tagged configurations supported by this script.
18976 < available_tags=""
18976 > available_tags=''
18977 >
18978 > # Configured defaults for sys_lib_dlsearch_path munging.
18979 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18980  
18981   # ### BEGIN LIBTOOL CONFIG
18982  
# Line 17350 | Line 18996 | pic_mode=$pic_mode
18996   # Whether or not to optimize for fast installation.
18997   fast_install=$enable_fast_install
18998  
18999 + # Shared archive member basename,for filename based shared library versioning on AIX.
19000 + shared_archive_member_spec=$shared_archive_member_spec
19001 +
19002   # Shell to use when invoking shell scripts.
19003   SHELL=$lt_SHELL
19004  
# Line 17467 | Line 19116 | global_symbol_pipe=$lt_lt_cv_sys_global_
19116   # Transform the output of nm in a proper C declaration.
19117   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19118  
19119 + # Transform the output of nm into a list of symbols to manually relocate.
19120 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19121 +
19122   # Transform the output of nm in a C name address pair.
19123   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19124  
19125   # Transform the output of nm in a C name address pair when lib prefix is needed.
19126   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19127  
19128 + # The name lister interface.
19129 + nm_interface=$lt_lt_cv_nm_interface
19130 +
19131   # Specify filename containing input files for \$NM.
19132   nm_file_list_spec=$lt_nm_file_list_spec
19133  
19134 < # The root where to search for dependent libraries,and in which our libraries should be installed.
19134 > # The root where to search for dependent libraries,and where our libraries should be installed.
19135   lt_sysroot=$lt_sysroot
19136  
19137 + # Command to truncate a binary pipe.
19138 + lt_truncate_bin=$lt_lt_cv_truncate_bin
19139 +
19140   # The name of the directory that contains temporary libtool files.
19141   objdir=$objdir
19142  
# Line 17569 | Line 19227 | hardcode_into_libs=$hardcode_into_libs
19227   # Compile-time system search path for libraries.
19228   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19229  
19230 < # Run-time system search path for libraries.
19231 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19230 > # Detected run-time system search path for libraries.
19231 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19232 >
19233 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19234 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19235  
19236   # Whether dlopen is supported.
19237   dlopen_support=$enable_dlopen
# Line 17663 | Line 19324 | hardcode_libdir_flag_spec=$lt_hardcode_l
19324   # Whether we need a single "-rpath" flag with a separated argument.
19325   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19326  
19327 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19327 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19328   # DIR into the resulting binary.
19329   hardcode_direct=$hardcode_direct
19330  
19331 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19331 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19332   # DIR into the resulting binary and the resulting library dependency is
19333 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19333 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19334   # library is relocated.
19335   hardcode_direct_absolute=$hardcode_direct_absolute
19336  
# Line 17721 | Line 19382 | hardcode_action=$hardcode_action
19382  
19383   _LT_EOF
19384  
19385 +    cat <<'_LT_EOF' >> "$cfgfile"
19386 +
19387 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19388 +
19389 + # func_munge_path_list VARIABLE PATH
19390 + # -----------------------------------
19391 + # VARIABLE is name of variable containing _space_ separated list of
19392 + # directories to be munged by the contents of PATH, which is string
19393 + # having a format:
19394 + # "DIR[:DIR]:"
19395 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19396 + # ":DIR[:DIR]"
19397 + #       string "DIR[ DIR]" will be appended to VARIABLE
19398 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19399 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19400 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19401 + # "DIR[:DIR]"
19402 + #       VARIABLE will be replaced by "DIR[ DIR]"
19403 + func_munge_path_list ()
19404 + {
19405 +    case x$2 in
19406 +    x)
19407 +        ;;
19408 +    *:)
19409 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19410 +        ;;
19411 +    x:*)
19412 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19413 +        ;;
19414 +    *::*)
19415 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19416 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19417 +        ;;
19418 +    *)
19419 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19420 +        ;;
19421 +    esac
19422 + }
19423 +
19424 +
19425 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19426 + func_cc_basename ()
19427 + {
19428 +    for cc_temp in $*""; do
19429 +      case $cc_temp in
19430 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19431 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19432 +        \-*) ;;
19433 +        *) break;;
19434 +      esac
19435 +    done
19436 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19437 + }
19438 +
19439 +
19440 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19441 +
19442 + _LT_EOF
19443 +
19444    case $host_os in
19445    aix3*)
19446      cat <<\_LT_EOF >> "$cfgfile"
19447   # AIX sometimes has problems with the GCC collect2 program.  For some
19448   # reason, if we set the COLLECT_NAMES environment variable, the problems
19449   # vanish in a puff of smoke.
19450 < if test "X${COLLECT_NAMES+set}" != Xset; then
19450 > if test set != "${COLLECT_NAMES+set}"; then
19451    COLLECT_NAMES=
19452    export COLLECT_NAMES
19453   fi
# Line 17736 | Line 19456 | _LT_EOF
19456    esac
19457  
19458  
19459 < ltmain="$ac_aux_dir/ltmain.sh"
19459 > ltmain=$ac_aux_dir/ltmain.sh
19460  
19461  
19462    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 17746 | Line 19466 | ltmain="$ac_aux_dir/ltmain.sh"
19466    sed '$q' "$ltmain" >> "$cfgfile" \
19467       || (rm -f "$cfgfile"; exit 1)
19468  
17749  if test x"$xsi_shell" = xyes; then
17750  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17751 func_dirname ()\
17752 {\
17753 \    case ${1} in\
17754 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17755 \      *  ) func_dirname_result="${3}" ;;\
17756 \    esac\
17757 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17758  && mv -f "$cfgfile.tmp" "$cfgfile" \
17759    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17760 test 0 -eq $? || _lt_function_replace_fail=:
17761
17762
17763  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17764 func_basename ()\
17765 {\
17766 \    func_basename_result="${1##*/}"\
17767 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17768  && mv -f "$cfgfile.tmp" "$cfgfile" \
17769    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17770 test 0 -eq $? || _lt_function_replace_fail=:
17771
17772
17773  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17774 func_dirname_and_basename ()\
17775 {\
17776 \    case ${1} in\
17777 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17778 \      *  ) func_dirname_result="${3}" ;;\
17779 \    esac\
17780 \    func_basename_result="${1##*/}"\
17781 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17782  && mv -f "$cfgfile.tmp" "$cfgfile" \
17783    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17784 test 0 -eq $? || _lt_function_replace_fail=:
17785
17786
17787  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17788 func_stripname ()\
17789 {\
17790 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17791 \    # positional parameters, so assign one to ordinary parameter first.\
17792 \    func_stripname_result=${3}\
17793 \    func_stripname_result=${func_stripname_result#"${1}"}\
17794 \    func_stripname_result=${func_stripname_result%"${2}"}\
17795 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17796  && mv -f "$cfgfile.tmp" "$cfgfile" \
17797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17798 test 0 -eq $? || _lt_function_replace_fail=:
17799
17800
17801  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17802 func_split_long_opt ()\
17803 {\
17804 \    func_split_long_opt_name=${1%%=*}\
17805 \    func_split_long_opt_arg=${1#*=}\
17806 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17807  && mv -f "$cfgfile.tmp" "$cfgfile" \
17808    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17809 test 0 -eq $? || _lt_function_replace_fail=:
17810
17811
17812  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17813 func_split_short_opt ()\
17814 {\
17815 \    func_split_short_opt_arg=${1#??}\
17816 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17817 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17818  && mv -f "$cfgfile.tmp" "$cfgfile" \
17819    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17820 test 0 -eq $? || _lt_function_replace_fail=:
17821
17822
17823  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17824 func_lo2o ()\
17825 {\
17826 \    case ${1} in\
17827 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17828 \      *)    func_lo2o_result=${1} ;;\
17829 \    esac\
17830 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17831  && mv -f "$cfgfile.tmp" "$cfgfile" \
17832    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17833 test 0 -eq $? || _lt_function_replace_fail=:
17834
17835
17836  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17837 func_xform ()\
17838 {\
17839    func_xform_result=${1%.*}.lo\
17840 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17841  && mv -f "$cfgfile.tmp" "$cfgfile" \
17842    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17843 test 0 -eq $? || _lt_function_replace_fail=:
17844
17845
17846  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17847 func_arith ()\
17848 {\
17849    func_arith_result=$(( $* ))\
17850 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17851  && mv -f "$cfgfile.tmp" "$cfgfile" \
17852    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17853 test 0 -eq $? || _lt_function_replace_fail=:
17854
17855
17856  sed -e '/^func_len ()$/,/^} # func_len /c\
17857 func_len ()\
17858 {\
17859    func_len_result=${#1}\
17860 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17861  && mv -f "$cfgfile.tmp" "$cfgfile" \
17862    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17863 test 0 -eq $? || _lt_function_replace_fail=:
17864
17865 fi
17866
17867 if test x"$lt_shell_append" = xyes; then
17868  sed -e '/^func_append ()$/,/^} # func_append /c\
17869 func_append ()\
17870 {\
17871    eval "${1}+=\\${2}"\
17872 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17873  && mv -f "$cfgfile.tmp" "$cfgfile" \
17874    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17875 test 0 -eq $? || _lt_function_replace_fail=:
17876
17877
17878  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17879 func_append_quoted ()\
17880 {\
17881 \    func_quote_for_eval "${2}"\
17882 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17883 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17884  && mv -f "$cfgfile.tmp" "$cfgfile" \
17885    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17886 test 0 -eq $? || _lt_function_replace_fail=:
17887
17888
17889  # Save a `func_append' function call where possible by direct use of '+='
17890  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17891    && mv -f "$cfgfile.tmp" "$cfgfile" \
17892      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17893  test 0 -eq $? || _lt_function_replace_fail=:
17894 else
17895  # Save a `func_append' function call even when '+=' is not available
17896  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17897    && mv -f "$cfgfile.tmp" "$cfgfile" \
17898      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17899  test 0 -eq $? || _lt_function_replace_fail=:
17900 fi
17901
17902 if test x"$_lt_function_replace_fail" = x":"; then
17903  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17904 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17905 fi
17906
17907
19469     mv -f "$cfgfile" "$ofile" ||
19470      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19471    chmod +x "$ofile"
# Line 17948 | Line 19509 | if test -n "$ac_unrecognized_opts" && te
19509   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19510   fi
19511  
19512 +
19513 + echo "###############################################################################"
19514 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19515 + echo
19516 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19517 + echo "   ./configure --prefix=DIRECTORY"
19518 + echo "###############################################################################"

Diff Legend

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