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 3724 by michael, Sat May 31 16:27:09 2014 UTC vs.
Revision 9184 by michael, Mon Jan 20 16:51:45 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 9175 2020-01-19 12:39:07Z 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
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 826 | Line 826 | LIBS
826   CPPFLAGS
827   YACC
828   YFLAGS
829 + LT_SYS_LIBRARY_PATH
830   CPP'
831  
832  
# Line 865 | 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 1117 | 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 1254 | 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 1407 | 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 1460 | 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
1463 –  --disable-libgeoip      Disable GeoIP support
1464 –  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1465 –  --disable-openssl            Disable OpenSSL support.
1466 –  --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.
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 1498 | 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 1941 | Line 1958 | $as_echo "$ac_res" >&6; }
1958  
1959   } # ac_fn_c_check_type
1960  
1944 – # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 – # ----------------------------------------------------
1946 – # Tries to find if the field MEMBER exists in type AGGR, after including
1947 – # INCLUDES, setting cache variable VAR accordingly.
1948 – ac_fn_c_check_member ()
1949 – {
1950 –  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 – $as_echo_n "checking for $2.$3... " >&6; }
1953 – if eval \${$4+:} false; then :
1954 –  $as_echo_n "(cached) " >&6
1955 – else
1956 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 – /* end confdefs.h.  */
1958 – $5
1959 – int
1960 – main ()
1961 – {
1962 – static $2 ac_aggr;
1963 – if (ac_aggr.$3)
1964 – return 0;
1965 –  ;
1966 –  return 0;
1967 – }
1968 – _ACEOF
1969 – if ac_fn_c_try_compile "$LINENO"; then :
1970 –  eval "$4=yes"
1971 – else
1972 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 – /* end confdefs.h.  */
1974 – $5
1975 – int
1976 – main ()
1977 – {
1978 – static $2 ac_aggr;
1979 – if (sizeof ac_aggr.$3)
1980 – return 0;
1981 –  ;
1982 –  return 0;
1983 – }
1984 – _ACEOF
1985 – if ac_fn_c_try_compile "$LINENO"; then :
1986 –  eval "$4=yes"
1987 – else
1988 –  eval "$4=no"
1989 – fi
1990 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 – fi
1992 – rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 – fi
1994 – eval ac_res=\$$4
1995 –               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 – $as_echo "$ac_res" >&6; }
1997 –  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 –
1999 – } # ac_fn_c_check_member
2000 –
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 2372 | Line 2332 | $as_echo "$as_me: creating cache $cache_
2332    >$cache_file
2333   fi
2334  
2335 + as_fn_append ac_func_list " accept4"
2336   as_fn_append ac_func_list " strtok_r"
2376 – as_fn_append ac_func_list " usleep"
2337   as_fn_append ac_func_list " strlcat"
2338   as_fn_append ac_func_list " strlcpy"
2339   as_fn_append ac_header_list " crypt.h"
2380 – as_fn_append ac_header_list " sys/resource.h"
2340   as_fn_append ac_header_list " sys/param.h"
2341   as_fn_append ac_header_list " types.h"
2342   as_fn_append ac_header_list " socket.h"
2343   as_fn_append ac_header_list " sys/wait.h"
2385 – as_fn_append ac_header_list " wait.h"
2344   # Check that the precious variables saved in the cache have kept the same
2345   # value.
2346   ac_cache_corrupted=false
# Line 2451 | Line 2409 | ac_link='$CC -o conftest$ac_exeext $CFLA
2409   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410  
2411  
2412 < am__api_version='1.14'
2412 > am__api_version='1.16'
2413  
2414   ac_aux_dir=
2415   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2652 | Line 2610 | test "$program_suffix" != NONE &&
2610   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612  
2613 < # expand $ac_aux_dir to an absolute path
2614 < am_aux_dir=`cd $ac_aux_dir && pwd`
2613 > # Expand $ac_aux_dir to an absolute path.
2614 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615  
2616   if test x"${MISSING+set}" != xset; then
2617    case $am_aux_dir in
# Line 2672 | Line 2630 | else
2630   $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631   fi
2632  
2633 < if test x"${install_sh}" != xset; then
2633 > if test x"${install_sh+set}" != xset; then
2634    case $am_aux_dir in
2635    *\ * | *\     *)
2636      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2996 | Line 2954 | MAKEINFO=${MAKEINFO-"${am_missing_run}ma
2954  
2955   # For better backward compatibility.  To be removed once Automake 1.9.x
2956   # dies out for good.  For more background, see:
2957 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958 < # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2957 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2959   mkdir_p='$(MKDIR_P)'
2960  
2961 < # We need awk for the "check" target.  The system "awk" is bad on
2962 < # some platforms.
2961 > # We need awk for the "check" target (and possibly the TAP driver).  The
2962 > # system "awk" is bad on some platforms.
2963   # Always define AMTAR for backward compatibility.  Yes, it's still used
2964   # in the wild :-(  We should find a proper way to deprecate it ...
2965   AMTAR='$${TAR-tar}'
# Line 3048 | Line 3006 | END
3006   Aborting the configuration process, to ensure you take notice of the issue.
3007  
3008   You can download and install GNU coreutils to get an 'rm' implementation
3009 < that behaves properly: <http://www.gnu.org/software/coreutils/>.
3009 > that behaves properly: <https://www.gnu.org/software/coreutils/>.
3010  
3011   If you want to complete the configuration process using your problematic
3012   'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
# Line 3059 | Line 3017 | END
3017    fi
3018   fi
3019  
3020 +
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3022   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3023      # Check whether --enable-maintainer-mode was given.
# Line 3091 | Line 3050 | DEPDIR="${am__leading_dot}deps"
3050  
3051   ac_config_commands="$ac_config_commands depfiles"
3052  
3053 <
3054 < am_make=${MAKE-make}
3055 < cat > confinc << 'END'
3053 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3054 > $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3055 > cat > confinc.mk << 'END'
3056   am__doit:
3057 <        @echo this is the am__doit target
3057 >        @echo this is the am__doit target >confinc.out
3058   .PHONY: am__doit
3059   END
3101 – # If we don't find an include directive, just comment out the code.
3102 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3103 – $as_echo_n "checking for style of include used by $am_make... " >&6; }
3060   am__include="#"
3061   am__quote=
3062 < _am_result=none
3063 < # First try GNU make style include.
3064 < echo "include confinc" > confmf
3065 < # Ignore all kinds of additional output from 'make'.
3066 < case `$am_make -s -f confmf 2> /dev/null` in #(
3067 < *the\ am__doit\ target*)
3068 <  am__include=include
3069 <  am__quote=
3070 <  _am_result=GNU
3071 <  ;;
3072 < esac
3073 < # Now try BSD make style include.
3074 < if test "$am__include" = "#"; then
3075 <   echo '.include "confinc"' > confmf
3076 <   case `$am_make -s -f confmf 2> /dev/null` in #(
3077 <   *the\ am__doit\ target*)
3078 <     am__include=.include
3079 <     am__quote="\""
3080 <     _am_result=BSD
3062 > # BSD make does it like this.
3063 > echo '.include "confinc.mk" # ignored' > confmf.BSD
3064 > # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3065 > echo 'include confinc.mk # ignored' > confmf.GNU
3066 > _am_result=no
3067 > for s in GNU BSD; do
3068 >  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3069 >   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3070 >   ac_status=$?
3071 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 >   (exit $ac_status); }
3073 >  case $?:`cat confinc.out 2>/dev/null` in #(
3074 >  '0:this is the am__doit target') :
3075 >    case $s in #(
3076 >  BSD) :
3077 >    am__include='.include' am__quote='"' ;; #(
3078 >  *) :
3079 >    am__include='include' am__quote='' ;;
3080 > esac ;; #(
3081 >  *) :
3082       ;;
3083 <   esac
3084 < fi
3085 <
3086 <
3087 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3088 < $as_echo "$_am_result" >&6; }
3089 < rm -f confinc confmf
3083 > esac
3084 >  if test "$am__include" != "#"; then
3085 >    _am_result="yes ($s style)"
3086 >    break
3087 >  fi
3088 > done
3089 > rm -f confinc.* confmf.*
3090 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3091 > $as_echo "${_am_result}" >&6; }
3092  
3093   # Check whether --enable-dependency-tracking was given.
3094   if test "${enable_dependency_tracking+set}" = set; then :
# Line 4530 | Line 4489 | esac
4489  
4490  
4491  
4492 < macro_version='2.4.2'
4493 < macro_revision='1.3337'
4492 > macro_version='2.4.6'
4493 > macro_revision='2.4.6'
4494  
4495  
4496  
# Line 4545 | Line 4504 | macro_revision='1.3337'
4504  
4505  
4506  
4507 < ltmain="$ac_aux_dir/ltmain.sh"
4507 > ltmain=$ac_aux_dir/ltmain.sh
4508  
4509   # Make sure we can run config.sub.
4510   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4665 | Line 4624 | func_echo_all ()
4624      $ECHO ""
4625   }
4626  
4627 < case "$ECHO" in
4627 > case $ECHO in
4628    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4629   $as_echo "printf" >&6; } ;;
4630    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4988 | Line 4947 | test -z "$GREP" && GREP=grep
4947  
4948   # Check whether --with-gnu-ld was given.
4949   if test "${with_gnu_ld+set}" = set; then :
4950 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4950 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4951   else
4952    with_gnu_ld=no
4953   fi
4954  
4955   ac_prog=ld
4956 < if test "$GCC" = yes; then
4956 > if test yes = "$GCC"; then
4957    # Check if gcc -print-prog-name=ld gives a path.
4958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4959   $as_echo_n "checking for ld used by $CC... " >&6; }
4960    case $host in
4961    *-*-mingw*)
4962 <    # gcc leaves a trailing carriage return which upsets mingw
4962 >    # gcc leaves a trailing carriage return, which upsets mingw
4963      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4964    *)
4965      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 5014 | Line 4973 | $as_echo_n "checking for ld used by $CC.
4973        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4974          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4975        done
4976 <      test -z "$LD" && LD="$ac_prog"
4976 >      test -z "$LD" && LD=$ac_prog
4977        ;;
4978    "")
4979      # If it fails, then pretend we aren't using GCC.
# Line 5025 | Line 4984 | $as_echo_n "checking for ld used by $CC.
4984      with_gnu_ld=unknown
4985      ;;
4986    esac
4987 < elif test "$with_gnu_ld" = yes; then
4987 > elif test yes = "$with_gnu_ld"; then
4988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4989   $as_echo_n "checking for GNU ld... " >&6; }
4990   else
# Line 5036 | Line 4995 | if ${lt_cv_path_LD+:} false; then :
4995    $as_echo_n "(cached) " >&6
4996   else
4997    if test -z "$LD"; then
4998 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4998 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4999    for ac_dir in $PATH; do
5000 <    IFS="$lt_save_ifs"
5000 >    IFS=$lt_save_ifs
5001      test -z "$ac_dir" && ac_dir=.
5002      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5003 <      lt_cv_path_LD="$ac_dir/$ac_prog"
5003 >      lt_cv_path_LD=$ac_dir/$ac_prog
5004        # Check to see if the program is GNU ld.  I'd rather use --version,
5005        # but apparently some variants of GNU ld only accept -v.
5006        # Break only if it was the GNU/non-GNU ld that we prefer.
5007        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5008        *GNU* | *'with BFD'*)
5009 <        test "$with_gnu_ld" != no && break
5009 >        test no != "$with_gnu_ld" && break
5010          ;;
5011        *)
5012 <        test "$with_gnu_ld" != yes && break
5012 >        test yes != "$with_gnu_ld" && break
5013          ;;
5014        esac
5015      fi
5016    done
5017 <  IFS="$lt_save_ifs"
5017 >  IFS=$lt_save_ifs
5018   else
5019 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5019 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5020   fi
5021   fi
5022  
5023 < LD="$lt_cv_path_LD"
5023 > LD=$lt_cv_path_LD
5024   if test -n "$LD"; then
5025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5026   $as_echo "$LD" >&6; }
# Line 5104 | Line 5063 | if ${lt_cv_path_NM+:} false; then :
5063   else
5064    if test -n "$NM"; then
5065    # Let the user override the test.
5066 <  lt_cv_path_NM="$NM"
5066 >  lt_cv_path_NM=$NM
5067   else
5068 <  lt_nm_to_check="${ac_tool_prefix}nm"
5068 >  lt_nm_to_check=${ac_tool_prefix}nm
5069    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5070      lt_nm_to_check="$lt_nm_to_check nm"
5071    fi
5072    for lt_tmp_nm in $lt_nm_to_check; do
5073 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5074      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5075 <      IFS="$lt_save_ifs"
5075 >      IFS=$lt_save_ifs
5076        test -z "$ac_dir" && ac_dir=.
5077 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5078 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5077 >      tmp_nm=$ac_dir/$lt_tmp_nm
5078 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5079          # Check to see if the nm accepts a BSD-compat flag.
5080 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5080 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5081          #   nm: unknown option "B" ignored
5082          # Tru64's nm complains that /dev/null is an invalid object file
5083 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5084 <        */dev/null* | *'Invalid file or object type'*)
5083 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5084 >        case $build_os in
5085 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5086 >        *) lt_bad_file=/dev/null ;;
5087 >        esac
5088 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5089 >        *$lt_bad_file* | *'Invalid file or object type'*)
5090            lt_cv_path_NM="$tmp_nm -B"
5091 <          break
5091 >          break 2
5092            ;;
5093          *)
5094            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5095            */dev/null*)
5096              lt_cv_path_NM="$tmp_nm -p"
5097 <            break
5097 >            break 2
5098              ;;
5099            *)
5100              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5141 | Line 5105 | else
5105          esac
5106        fi
5107      done
5108 <    IFS="$lt_save_ifs"
5108 >    IFS=$lt_save_ifs
5109    done
5110    : ${lt_cv_path_NM=no}
5111   fi
5112   fi
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114   $as_echo "$lt_cv_path_NM" >&6; }
5115 < if test "$lt_cv_path_NM" != "no"; then
5116 <  NM="$lt_cv_path_NM"
5115 > if test no != "$lt_cv_path_NM"; then
5116 >  NM=$lt_cv_path_NM
5117   else
5118    # Didn't find any BSD compatible name lister, look for dumpbin.
5119    if test -n "$DUMPBIN"; then :
# Line 5255 | Line 5219 | esac
5219    fi
5220   fi
5221  
5222 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5222 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5223      *COFF*)
5224 <      DUMPBIN="$DUMPBIN -symbols"
5224 >      DUMPBIN="$DUMPBIN -symbols -headers"
5225        ;;
5226      *)
5227        DUMPBIN=:
# Line 5265 | Line 5229 | fi
5229      esac
5230    fi
5231  
5232 <  if test "$DUMPBIN" != ":"; then
5233 <    NM="$DUMPBIN"
5232 >  if test : != "$DUMPBIN"; then
5233 >    NM=$DUMPBIN
5234    fi
5235   fi
5236   test -z "$NM" && NM=nm
# Line 5317 | Line 5281 | if ${lt_cv_sys_max_cmd_len+:} false; the
5281    $as_echo_n "(cached) " >&6
5282   else
5283      i=0
5284 <  teststring="ABCD"
5284 >  teststring=ABCD
5285  
5286    case $build_os in
5287    msdosdjgpp*)
# Line 5357 | Line 5321 | else
5321      lt_cv_sys_max_cmd_len=8192;
5322      ;;
5323  
5324 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5325      # This has been around since 386BSD, at least.  Likely further.
5326      if test -x /sbin/sysctl; then
5327        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5407 | Line 5371 | else
5371      ;;
5372    *)
5373      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5374 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5374 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5375 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5376        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5377        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5378      else
5379        # Make teststring a little bigger before we do anything with it.
5380        # a 1K string should be a reasonable start.
5381 <      for i in 1 2 3 4 5 6 7 8 ; do
5381 >      for i in 1 2 3 4 5 6 7 8; do
5382          teststring=$teststring$teststring
5383        done
5384        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5385        # If test is not a shell built-in, we'll probably end up computing a
5386        # maximum length that is only half of the actual maximum length, but
5387        # we can't tell.
5388 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5388 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5389                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5390 <              test $i != 17 # 1/2 MB should be enough
5390 >              test 17 != "$i" # 1/2 MB should be enough
5391        do
5392          i=`expr $i + 1`
5393          teststring=$teststring$teststring
# Line 5440 | Line 5405 | else
5405  
5406   fi
5407  
5408 < if test -n $lt_cv_sys_max_cmd_len ; then
5408 > if test -n "$lt_cv_sys_max_cmd_len"; then
5409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5410   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5411   else
# Line 5458 | Line 5423 | max_cmd_len=$lt_cv_sys_max_cmd_len
5423   : ${MV="mv -f"}
5424   : ${RM="rm -f"}
5425  
5461 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5462 – $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5463 – # Try some XSI features
5464 – xsi_shell=no
5465 – ( _lt_dummy="a/b/c"
5466 –  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 –      = c,a/b,b/c, \
5468 –    && eval 'test $(( 1 + 1 )) -eq 2 \
5469 –    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 –  && xsi_shell=yes
5471 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5472 – $as_echo "$xsi_shell" >&6; }
5473 –
5474 –
5475 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5476 – $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5477 – lt_shell_append=no
5478 – ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5479 –    >/dev/null 2>&1 \
5480 –  && lt_shell_append=yes
5481 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5482 – $as_echo "$lt_shell_append" >&6; }
5483 –
5484 –
5426   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427    lt_unset=unset
5428   else
# Line 5604 | Line 5545 | esac
5545   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5546   case $host_os in
5547    cygwin* | mingw* | pw32* | cegcc*)
5548 <    if test "$GCC" != yes; then
5548 >    if test yes != "$GCC"; then
5549        reload_cmds=false
5550      fi
5551      ;;
5552    darwin*)
5553 <    if test "$GCC" = yes; then
5554 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5553 >    if test yes = "$GCC"; then
5554 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5555      else
5556        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557      fi
# Line 5738 | Line 5679 | lt_cv_deplibs_check_method='unknown'
5679   # Need to set the preceding variable on all platforms that support
5680   # interlibrary dependencies.
5681   # 'none' -- dependencies not supported.
5682 < # `unknown' -- same as none, but documents that we really don't know.
5682 > # 'unknown' -- same as none, but documents that we really don't know.
5683   # 'pass_all' -- all dependencies passed with no checks.
5684   # 'test_compile' -- check by making test program.
5685   # 'file_magic [[regex]]' -- check by looking for files in library path
5686 < # which responds to the $file_magic_cmd with a given extended regex.
5687 < # If you have `file' or equivalent on your system and you're not sure
5688 < # whether `pass_all' will *always* work, you probably want this one.
5686 > # that responds to the $file_magic_cmd with a given extended regex.
5687 > # If you have 'file' or equivalent on your system and you're not sure
5688 > # whether 'pass_all' will *always* work, you probably want this one.
5689  
5690   case $host_os in
5691   aix[4-9]*)
# Line 5771 | Line 5712 | mingw* | pw32*)
5712    # Base MSYS/MinGW do not provide the 'file' command needed by
5713    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5714    # unless we find 'file', for example because we are cross-compiling.
5715 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5715 >  if ( file / ) >/dev/null 2>&1; then
5716      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717      lt_cv_file_magic_cmd='func_win32_libid'
5718    else
# Line 5808 | Line 5748 | freebsd* | dragonfly*)
5748    fi
5749    ;;
5750  
5811 – gnu*)
5812 –  lt_cv_deplibs_check_method=pass_all
5813 –  ;;
5814 –
5751   haiku*)
5752    lt_cv_deplibs_check_method=pass_all
5753    ;;
# Line 5850 | Line 5786 | irix5* | irix6* | nonstopux*)
5786    ;;
5787  
5788   # This must be glibc/ELF.
5789 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5789 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5790    lt_cv_deplibs_check_method=pass_all
5791    ;;
5792  
5793 < netbsd*)
5793 > netbsd* | netbsdelf*-gnu)
5794    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796    else
# Line 5872 | Line 5808 | newos6*)
5808    lt_cv_deplibs_check_method=pass_all
5809    ;;
5810  
5811 < openbsd*)
5812 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5811 > openbsd* | bitrig*)
5812 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5813      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814    else
5815      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5926 | Line 5862 | sysv4 | sysv4.3*)
5862   tpf*)
5863    lt_cv_deplibs_check_method=pass_all
5864    ;;
5865 + os2*)
5866 +  lt_cv_deplibs_check_method=pass_all
5867 +  ;;
5868   esac
5869  
5870   fi
# Line 6083 | Line 6022 | else
6022  
6023   case $host_os in
6024   cygwin* | mingw* | pw32* | cegcc*)
6025 <  # two different shell functions defined in ltmain.sh
6026 <  # decide which to use based on capabilities of $DLLTOOL
6025 >  # two different shell functions defined in ltmain.sh;
6026 >  # decide which one to use based on capabilities of $DLLTOOL
6027    case `$DLLTOOL --help 2>&1` in
6028    *--identify-strict*)
6029      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 6096 | Line 6035 | cygwin* | mingw* | pw32* | cegcc*)
6035    ;;
6036   *)
6037    # fallback: assume linklib IS sharedlib
6038 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6038 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6039    ;;
6040   esac
6041  
# Line 6250 | Line 6189 | if ac_fn_c_try_compile "$LINENO"; then :
6189    ac_status=$?
6190    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191    test $ac_status = 0; }
6192 <      if test "$ac_status" -eq 0; then
6192 >      if test 0 -eq "$ac_status"; then
6193          # Ensure the archiver fails upon bogus file names.
6194          rm -f conftest.$ac_objext libconftest.a
6195          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6258 | Line 6197 | if ac_fn_c_try_compile "$LINENO"; then :
6197    ac_status=$?
6198    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199    test $ac_status = 0; }
6200 <        if test "$ac_status" -ne 0; then
6200 >        if test 0 -ne "$ac_status"; then
6201            lt_cv_ar_at_file=@
6202          fi
6203        fi
# Line 6271 | Line 6210 | fi
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6211   $as_echo "$lt_cv_ar_at_file" >&6; }
6212  
6213 < if test "x$lt_cv_ar_at_file" = xno; then
6213 > if test no = "$lt_cv_ar_at_file"; then
6214    archiver_list_spec=
6215   else
6216    archiver_list_spec=$lt_cv_ar_at_file
# Line 6488 | Line 6427 | old_postuninstall_cmds=
6427  
6428   if test -n "$RANLIB"; then
6429    case $host_os in
6430 <  openbsd*)
6430 >  bitrig* | openbsd*)
6431      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6432      ;;
6433    *)
# Line 6578 | Line 6517 | cygwin* | mingw* | pw32* | cegcc*)
6517    symcode='[ABCDGISTW]'
6518    ;;
6519   hpux*)
6520 <  if test "$host_cpu" = ia64; then
6520 >  if test ia64 = "$host_cpu"; then
6521      symcode='[ABCDEGRST]'
6522    fi
6523    ;;
# Line 6611 | Line 6550 | case `$NM -V 2>&1` in
6550    symcode='[ABCDGIRSTW]' ;;
6551   esac
6552  
6553 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6554 +  # Gets list of data symbols to import.
6555 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6556 +  # Adjust the below global symbol transforms to fixup imported variables.
6557 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6558 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6559 +  lt_c_name_lib_hook="\
6560 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6561 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6562 + else
6563 +  # Disable hooks by default.
6564 +  lt_cv_sys_global_symbol_to_import=
6565 +  lt_cdecl_hook=
6566 +  lt_c_name_hook=
6567 +  lt_c_name_lib_hook=
6568 + fi
6569 +
6570   # Transform an extracted symbol line into a proper C declaration.
6571   # Some systems (esp. on ia64) link data and code symbols differently,
6572   # so use this general approach.
6573 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6573 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6574 > $lt_cdecl_hook\
6575 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6576 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6577  
6578   # Transform an extracted symbol line into symbol name and symbol address
6579 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6580 < 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'"
6579 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6580 > $lt_c_name_hook\
6581 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6582 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6583 >
6584 > # Transform an extracted symbol line into symbol name with lib prefix and
6585 > # symbol address.
6586 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6587 > $lt_c_name_lib_hook\
6588 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6589 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6590 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6591  
6592   # Handle CRLF in mingw tool chain
6593   opt_cr=
# Line 6636 | Line 6605 | for ac_symprfx in "" "_"; do
6605  
6606    # Write the raw and C identifiers.
6607    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6608 <    # Fake it for dumpbin and say T for any non-static function
6609 <    # and D for any global variable.
6608 >    # Fake it for dumpbin and say T for any non-static function,
6609 >    # D for any global variable and I for any imported variable.
6610      # Also find C++ and __fastcall symbols from MSVC++,
6611      # which start with @ or ?.
6612      lt_cv_sys_global_symbol_pipe="$AWK '"\
6613   "     {last_section=section; section=\$ 3};"\
6614   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6615   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6616 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6617 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6618 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6619   "     \$ 0!~/External *\|/{next};"\
6620   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6621   "     {if(hide[section]) next};"\
6622 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6623 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6624 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6625 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6622 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6623 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6624 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6625 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6626   "     ' prfx=^$ac_symprfx"
6627    else
6628      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6681 | Line 6653 | _LT_EOF
6653    test $ac_status = 0; }; then
6654      # Now try to grab the symbols.
6655      nlist=conftest.nm
6656 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6657 <  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6686 <  ac_status=$?
6687 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 <  test $ac_status = 0; } && test -s "$nlist"; then
6656 >    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6657 >    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6658        # Try sorting and uniquifying the output.
6659        if sort "$nlist" | uniq > "$nlist"T; then
6660          mv -f "$nlist"T "$nlist"
# Line 6698 | Line 6667 | _LT_EOF
6667          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6668            cat <<_LT_EOF > conftest.$ac_ext
6669   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6670 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6671 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6670 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6671 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6672     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6673   # define LT_DLSYM_CONST
6674 < #elif defined(__osf__)
6674 > #elif defined __osf__
6675   /* This system does not cope well with relocations in const data.  */
6676   # define LT_DLSYM_CONST
6677   #else
# Line 6728 | Line 6697 | lt__PROGRAM__LTX_preloaded_symbols[] =
6697   {
6698    { "@PROGRAM@", (void *) 0 },
6699   _LT_EOF
6700 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6700 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6701            cat <<\_LT_EOF >> conftest.$ac_ext
6702    {0, (void *) 0}
6703   };
# Line 6748 | Line 6717 | _LT_EOF
6717            mv conftest.$ac_objext conftstm.$ac_objext
6718            lt_globsym_save_LIBS=$LIBS
6719            lt_globsym_save_CFLAGS=$CFLAGS
6720 <          LIBS="conftstm.$ac_objext"
6720 >          LIBS=conftstm.$ac_objext
6721            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6722            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6723    (eval $ac_link) 2>&5
6724    ac_status=$?
6725    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6726 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6727              pipe_works=yes
6728            fi
6729            LIBS=$lt_globsym_save_LIBS
# Line 6775 | Line 6744 | _LT_EOF
6744    rm -rf conftest* conftst*
6745  
6746    # Do not use the global_symbol_pipe unless it works.
6747 <  if test "$pipe_works" = yes; then
6747 >  if test yes = "$pipe_works"; then
6748      break
6749    else
6750      lt_cv_sys_global_symbol_pipe=
# Line 6828 | Line 6797 | fi
6797  
6798  
6799  
6800 +
6801 +
6802 +
6803 +
6804 +
6805 +
6806 +
6807 +
6808 +
6809 +
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6811   $as_echo_n "checking for sysroot... " >&6; }
6812  
# Line 6840 | Line 6819 | fi
6819  
6820  
6821   lt_sysroot=
6822 < case ${with_sysroot} in #(
6822 > case $with_sysroot in #(
6823   yes)
6824 <   if test "$GCC" = yes; then
6824 >   if test yes = "$GCC"; then
6825       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6826     fi
6827     ;; #(
# Line 6852 | Line 6831 | case ${with_sysroot} in #(
6831   no|'')
6832     ;; #(
6833   *)
6834 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6835 < $as_echo "${with_sysroot}" >&6; }
6834 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6835 > $as_echo "$with_sysroot" >&6; }
6836     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6837     ;;
6838   esac
# Line 6865 | Line 6844 | $as_echo "${lt_sysroot:-no}" >&6; }
6844  
6845  
6846  
6847 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6848 + $as_echo_n "checking for a working dd... " >&6; }
6849 + if ${ac_cv_path_lt_DD+:} false; then :
6850 +  $as_echo_n "(cached) " >&6
6851 + else
6852 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6853 + cat conftest.i conftest.i >conftest2.i
6854 + : ${lt_DD:=$DD}
6855 + if test -z "$lt_DD"; then
6856 +  ac_path_lt_DD_found=false
6857 +  # Loop through the user's path and test for each of PROGNAME-LIST
6858 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 + for as_dir in $PATH
6860 + do
6861 +  IFS=$as_save_IFS
6862 +  test -z "$as_dir" && as_dir=.
6863 +    for ac_prog in dd; do
6864 +    for ac_exec_ext in '' $ac_executable_extensions; do
6865 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6866 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6867 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6868 +  cmp -s conftest.i conftest.out \
6869 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6870 + fi
6871 +      $ac_path_lt_DD_found && break 3
6872 +    done
6873 +  done
6874 +  done
6875 + IFS=$as_save_IFS
6876 +  if test -z "$ac_cv_path_lt_DD"; then
6877 +    :
6878 +  fi
6879 + else
6880 +  ac_cv_path_lt_DD=$lt_DD
6881 + fi
6882 +
6883 + rm -f conftest.i conftest2.i conftest.out
6884 + fi
6885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6886 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6887 +
6888 +
6889 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6890 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6891 + if ${lt_cv_truncate_bin+:} false; then :
6892 +  $as_echo_n "(cached) " >&6
6893 + else
6894 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6895 + cat conftest.i conftest.i >conftest2.i
6896 + lt_cv_truncate_bin=
6897 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6898 +  cmp -s conftest.i conftest.out \
6899 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6900 + fi
6901 + rm -f conftest.i conftest2.i conftest.out
6902 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6903 + fi
6904 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6905 + $as_echo "$lt_cv_truncate_bin" >&6; }
6906 +
6907 +
6908 +
6909 +
6910 +
6911 +
6912 +
6913 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6914 + func_cc_basename ()
6915 + {
6916 +    for cc_temp in $*""; do
6917 +      case $cc_temp in
6918 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6919 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6920 +        \-*) ;;
6921 +        *) break;;
6922 +      esac
6923 +    done
6924 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6925 + }
6926 +
6927   # Check whether --enable-libtool-lock was given.
6928   if test "${enable_libtool_lock+set}" = set; then :
6929    enableval=$enable_libtool_lock;
6930   fi
6931  
6932 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6932 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6933  
6934   # Some flags need to be propagated to the compiler or linker for good
6935   # libtool support.
6936   case $host in
6937   ia64-*-hpux*)
6938 <  # Find out which ABI we are using.
6938 >  # Find out what ABI is being produced by ac_compile, and set mode
6939 >  # options accordingly.
6940    echo 'int i;' > conftest.$ac_ext
6941    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942    (eval $ac_compile) 2>&5
# Line 6885 | Line 6945 | ia64-*-hpux*)
6945    test $ac_status = 0; }; then
6946      case `/usr/bin/file conftest.$ac_objext` in
6947        *ELF-32*)
6948 <        HPUX_IA64_MODE="32"
6948 >        HPUX_IA64_MODE=32
6949          ;;
6950        *ELF-64*)
6951 <        HPUX_IA64_MODE="64"
6951 >        HPUX_IA64_MODE=64
6952          ;;
6953      esac
6954    fi
6955    rm -rf conftest*
6956    ;;
6957   *-*-irix6*)
6958 <  # Find out which ABI we are using.
6958 >  # Find out what ABI is being produced by ac_compile, and set linker
6959 >  # options accordingly.
6960    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6961    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6962    (eval $ac_compile) 2>&5
6963    ac_status=$?
6964    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965    test $ac_status = 0; }; then
6966 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6966 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6967        case `/usr/bin/file conftest.$ac_objext` in
6968          *32-bit*)
6969            LD="${LD-ld} -melf32bsmip"
# Line 6931 | Line 6992 | ia64-*-hpux*)
6992    rm -rf conftest*
6993    ;;
6994  
6995 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995 > mips64*-*linux*)
6996 >  # Find out what ABI is being produced by ac_compile, and set linker
6997 >  # options accordingly.
6998 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6999 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 >  (eval $ac_compile) 2>&5
7001 >  ac_status=$?
7002 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 >  test $ac_status = 0; }; then
7004 >    emul=elf
7005 >    case `/usr/bin/file conftest.$ac_objext` in
7006 >      *32-bit*)
7007 >        emul="${emul}32"
7008 >        ;;
7009 >      *64-bit*)
7010 >        emul="${emul}64"
7011 >        ;;
7012 >    esac
7013 >    case `/usr/bin/file conftest.$ac_objext` in
7014 >      *MSB*)
7015 >        emul="${emul}btsmip"
7016 >        ;;
7017 >      *LSB*)
7018 >        emul="${emul}ltsmip"
7019 >        ;;
7020 >    esac
7021 >    case `/usr/bin/file conftest.$ac_objext` in
7022 >      *N32*)
7023 >        emul="${emul}n32"
7024 >        ;;
7025 >    esac
7026 >    LD="${LD-ld} -m $emul"
7027 >  fi
7028 >  rm -rf conftest*
7029 >  ;;
7030 >
7031 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7032   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7033 <  # Find out which ABI we are using.
7033 >  # Find out what ABI is being produced by ac_compile, and set linker
7034 >  # options accordingly.  Note that the listed cases only cover the
7035 >  # situations where additional linker options are needed (such as when
7036 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7037 >  # vice versa); the common cases where no linker options are needed do
7038 >  # not appear in the list.
7039    echo 'int i;' > conftest.$ac_ext
7040    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7041    (eval $ac_compile) 2>&5
# Line 6947 | Line 7049 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7049              LD="${LD-ld} -m elf_i386_fbsd"
7050              ;;
7051            x86_64-*linux*)
7052 <            LD="${LD-ld} -m elf_i386"
7052 >            case `/usr/bin/file conftest.o` in
7053 >              *x86-64*)
7054 >                LD="${LD-ld} -m elf32_x86_64"
7055 >                ;;
7056 >              *)
7057 >                LD="${LD-ld} -m elf_i386"
7058 >                ;;
7059 >            esac
7060 >            ;;
7061 >          powerpc64le-*linux*)
7062 >            LD="${LD-ld} -m elf32lppclinux"
7063              ;;
7064 <          ppc64-*linux*|powerpc64-*linux*)
7064 >          powerpc64-*linux*)
7065              LD="${LD-ld} -m elf32ppclinux"
7066              ;;
7067            s390x-*linux*)
# Line 6968 | Line 7080 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7080            x86_64-*linux*)
7081              LD="${LD-ld} -m elf_x86_64"
7082              ;;
7083 <          ppc*-*linux*|powerpc*-*linux*)
7083 >          powerpcle-*linux*)
7084 >            LD="${LD-ld} -m elf64lppc"
7085 >            ;;
7086 >          powerpc-*linux*)
7087              LD="${LD-ld} -m elf64ppc"
7088              ;;
7089            s390*-*linux*|s390*-*tpf*)
# Line 6986 | Line 7101 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7101  
7102   *-*-sco3.2v5*)
7103    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7104 <  SAVE_CFLAGS="$CFLAGS"
7104 >  SAVE_CFLAGS=$CFLAGS
7105    CFLAGS="$CFLAGS -belf"
7106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7107   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 7026 | Line 7141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141   fi
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7143   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7144 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7144 >  if test yes != "$lt_cv_cc_needs_belf"; then
7145      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7146 <    CFLAGS="$SAVE_CFLAGS"
7146 >    CFLAGS=$SAVE_CFLAGS
7147    fi
7148    ;;
7149   *-*solaris*)
7150 <  # Find out which ABI we are using.
7150 >  # Find out what ABI is being produced by ac_compile, and set linker
7151 >  # options accordingly.
7152    echo 'int i;' > conftest.$ac_ext
7153    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154    (eval $ac_compile) 2>&5
# Line 7044 | Line 7160 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7160        case $lt_cv_prog_gnu_ld in
7161        yes*)
7162          case $host in
7163 <        i?86-*-solaris*)
7163 >        i?86-*-solaris*|x86_64-*-solaris*)
7164            LD="${LD-ld} -m elf_x86_64"
7165            ;;
7166          sparc*-*-solaris*)
# Line 7053 | Line 7169 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7169          esac
7170          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7171          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7172 <          LD="${LD-ld}_sol2"
7172 >          LD=${LD-ld}_sol2
7173          fi
7174          ;;
7175        *)
# Line 7069 | Line 7185 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7185    ;;
7186   esac
7187  
7188 < need_locks="$enable_libtool_lock"
7188 > need_locks=$enable_libtool_lock
7189  
7190   if test -n "$ac_tool_prefix"; then
7191    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7180 | Line 7296 | else
7296   fi
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7298   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7299 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7299 > if test yes != "$lt_cv_path_mainfest_tool"; then
7300    MANIFEST_TOOL=:
7301   fi
7302  
# Line 7683 | Line 7799 | if ${lt_cv_apple_cc_single_mod+:} false;
7799    $as_echo_n "(cached) " >&6
7800   else
7801    lt_cv_apple_cc_single_mod=no
7802 <      if test -z "${LT_MULTI_MODULE}"; then
7802 >      if test -z "$LT_MULTI_MODULE"; then
7803          # By default we will add the -single_module flag. You can override
7804          # by either setting the environment variable LT_MULTI_MODULE
7805          # non-empty at configure time, or by adding -multi_module to the
# Line 7701 | Line 7817 | else
7817            cat conftest.err >&5
7818          # Otherwise, if the output was created with a 0 exit code from
7819          # the compiler, it worked.
7820 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7820 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7821            lt_cv_apple_cc_single_mod=yes
7822          else
7823            cat conftest.err >&5
# Line 7740 | Line 7856 | else
7856   fi
7857   rm -f core conftest.err conftest.$ac_objext \
7858      conftest$ac_exeext conftest.$ac_ext
7859 <        LDFLAGS="$save_LDFLAGS"
7859 >        LDFLAGS=$save_LDFLAGS
7860  
7861   fi
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7769 | Line 7885 | _LT_EOF
7885        _lt_result=$?
7886        if test -s conftest.err && $GREP force_load conftest.err; then
7887          cat conftest.err >&5
7888 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7888 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7889          lt_cv_ld_force_load=yes
7890        else
7891          cat conftest.err >&5
# Line 7782 | Line 7898 | fi
7898   $as_echo "$lt_cv_ld_force_load" >&6; }
7899      case $host_os in
7900      rhapsody* | darwin1.[012])
7901 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7901 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7902      darwin1.*)
7903 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7903 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7904      darwin*) # darwin 5.x on
7905        # if running on 10.5 or later, the deployment target defaults
7906        # to the OS version, if on x86, and 10.4, the deployment
7907        # target defaults to 10.4. Don't you love it?
7908        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7909          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7910 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911 <        10.[012]*)
7912 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7910 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7911 >        10.[012][,.]*)
7912 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7913          10.*)
7914 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7914 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7915        esac
7916      ;;
7917    esac
7918 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7918 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7919        _lt_dar_single_mod='$single_module'
7920      fi
7921 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7922 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7921 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7922 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7923      else
7924 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7924 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7925      fi
7926 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7926 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7927        _lt_dsymutil='~$DSYMUTIL $lib || :'
7928      else
7929        _lt_dsymutil=
# Line 7815 | Line 7931 | $as_echo "$lt_cv_ld_force_load" >&6; }
7931      ;;
7932    esac
7933  
7934 + # func_munge_path_list VARIABLE PATH
7935 + # -----------------------------------
7936 + # VARIABLE is name of variable containing _space_ separated list of
7937 + # directories to be munged by the contents of PATH, which is string
7938 + # having a format:
7939 + # "DIR[:DIR]:"
7940 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7941 + # ":DIR[:DIR]"
7942 + #       string "DIR[ DIR]" will be appended to VARIABLE
7943 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7944 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7945 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7946 + # "DIR[:DIR]"
7947 + #       VARIABLE will be replaced by "DIR[ DIR]"
7948 + func_munge_path_list ()
7949 + {
7950 +    case x$2 in
7951 +    x)
7952 +        ;;
7953 +    *:)
7954 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7955 +        ;;
7956 +    x:*)
7957 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7958 +        ;;
7959 +    *::*)
7960 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7961 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7962 +        ;;
7963 +    *)
7964 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7965 +        ;;
7966 +    esac
7967 + }
7968 +
7969   ac_ext=c
7970   ac_cpp='$CPP $CPPFLAGS'
7971   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8110 | Line 8261 | if test "${enable_static+set}" = set; th
8261      *)
8262       enable_static=no
8263        # Look at the argument we got.  We use all the common list separators.
8264 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8264 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8265        for pkg in $enableval; do
8266 <        IFS="$lt_save_ifs"
8266 >        IFS=$lt_save_ifs
8267          if test "X$pkg" = "X$p"; then
8268            enable_static=yes
8269          fi
8270        done
8271 <      IFS="$lt_save_ifs"
8271 >      IFS=$lt_save_ifs
8272        ;;
8273      esac
8274   else
# Line 8146 | Line 8297 | if test "${enable_shared+set}" = set; th
8297      *)
8298        enable_shared=no
8299        # Look at the argument we got.  We use all the common list separators.
8300 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8301        for pkg in $enableval; do
8302 <        IFS="$lt_save_ifs"
8302 >        IFS=$lt_save_ifs
8303          if test "X$pkg" = "X$p"; then
8304            enable_shared=yes
8305          fi
8306        done
8307 <      IFS="$lt_save_ifs"
8307 >      IFS=$lt_save_ifs
8308        ;;
8309      esac
8310   else
# Line 8178 | Line 8329 | if test "${with_pic+set}" = set; then :
8329      *)
8330        pic_mode=default
8331        # Look at the argument we got.  We use all the common list separators.
8332 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8333        for lt_pkg in $withval; do
8334 <        IFS="$lt_save_ifs"
8334 >        IFS=$lt_save_ifs
8335          if test "X$lt_pkg" = "X$lt_p"; then
8336            pic_mode=yes
8337          fi
8338        done
8339 <      IFS="$lt_save_ifs"
8339 >      IFS=$lt_save_ifs
8340        ;;
8341      esac
8342   else
# Line 8193 | Line 8344 | else
8344   fi
8345  
8346  
8196 – test -z "$pic_mode" && pic_mode=default
8197 –
8347  
8348  
8349  
# Line 8210 | Line 8359 | if test "${enable_fast_install+set}" = s
8359      *)
8360        enable_fast_install=no
8361        # Look at the argument we got.  We use all the common list separators.
8362 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8362 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8363        for pkg in $enableval; do
8364 <        IFS="$lt_save_ifs"
8364 >        IFS=$lt_save_ifs
8365          if test "X$pkg" = "X$p"; then
8366            enable_fast_install=yes
8367          fi
8368        done
8369 <      IFS="$lt_save_ifs"
8369 >      IFS=$lt_save_ifs
8370        ;;
8371      esac
8372   else
# Line 8231 | Line 8380 | fi
8380  
8381  
8382  
8383 +  shared_archive_member_spec=
8384 + case $host,$enable_shared in
8385 + power*-*-aix[5-9]*,yes)
8386 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8387 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8388 +
8389 + # Check whether --with-aix-soname was given.
8390 + if test "${with_aix_soname+set}" = set; then :
8391 +  withval=$with_aix_soname; case $withval in
8392 +    aix|svr4|both)
8393 +      ;;
8394 +    *)
8395 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8396 +      ;;
8397 +    esac
8398 +    lt_cv_with_aix_soname=$with_aix_soname
8399 + else
8400 +  if ${lt_cv_with_aix_soname+:} false; then :
8401 +  $as_echo_n "(cached) " >&6
8402 + else
8403 +  lt_cv_with_aix_soname=aix
8404 + fi
8405 +
8406 +    with_aix_soname=$lt_cv_with_aix_soname
8407 + fi
8408 +
8409 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8410 + $as_echo "$with_aix_soname" >&6; }
8411 +  if test aix != "$with_aix_soname"; then
8412 +    # For the AIX way of multilib, we name the shared archive member
8413 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8414 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8415 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8416 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8417 +    if test 64 = "${OBJECT_MODE-32}"; then
8418 +      shared_archive_member_spec=shr_64
8419 +    else
8420 +      shared_archive_member_spec=shr
8421 +    fi
8422 +  fi
8423 +  ;;
8424 + *)
8425 +  with_aix_soname=aix
8426 +  ;;
8427 + esac
8428 +
8429 +
8430 +
8431 +
8432 +
8433 +
8434 +
8435  
8436  
8437  
8438   # This can be used to rebuild libtool when needed
8439 < LIBTOOL_DEPS="$ltmain"
8439 > LIBTOOL_DEPS=$ltmain
8440  
8441   # Always use our own libtool.
8442   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8284 | Line 8485 | test -z "$LN_S" && LN_S="ln -s"
8485  
8486  
8487  
8488 < if test -n "${ZSH_VERSION+set}" ; then
8488 > if test -n "${ZSH_VERSION+set}"; then
8489     setopt NO_GLOB_SUBST
8490   fi
8491  
# Line 8323 | Line 8524 | aix3*)
8524    # AIX sometimes has problems with the GCC collect2 program.  For some
8525    # reason, if we set the COLLECT_NAMES environment variable, the problems
8526    # vanish in a puff of smoke.
8527 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8527 >  if test set != "${COLLECT_NAMES+set}"; then
8528      COLLECT_NAMES=
8529      export COLLECT_NAMES
8530    fi
# Line 8334 | Line 8535 | esac
8535   ofile=libtool
8536   can_build_shared=yes
8537  
8538 < # All known linkers require a `.a' archive for static linking (except MSVC,
8538 > # All known linkers require a '.a' archive for static linking (except MSVC,
8539   # which needs '.lib').
8540   libext=a
8541  
8542 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8542 > with_gnu_ld=$lt_cv_prog_gnu_ld
8543  
8544 < old_CC="$CC"
8545 < old_CFLAGS="$CFLAGS"
8544 > old_CC=$CC
8545 > old_CFLAGS=$CFLAGS
8546  
8547   # Set sane defaults for various variables
8548   test -z "$CC" && CC=cc
# Line 8350 | Line 8551 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8551   test -z "$LD" && LD=ld
8552   test -z "$ac_objext" && ac_objext=o
8553  
8554 < for cc_temp in $compiler""; do
8555 <  case $cc_temp in
8355 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8356 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 <    \-*) ;;
8358 <    *) break;;
8359 <  esac
8360 < done
8361 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8554 > func_cc_basename $compiler
8555 > cc_basename=$func_cc_basename_result
8556  
8557  
8558   # Only perform the check for file, if the check method requires it
# Line 8373 | Line 8567 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8567   else
8568    case $MAGIC_CMD in
8569   [\\/*] |  ?:[\\/]*)
8570 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8570 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8571    ;;
8572   *)
8573 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8574 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8573 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8574 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8575    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8576    for ac_dir in $ac_dummy; do
8577 <    IFS="$lt_save_ifs"
8577 >    IFS=$lt_save_ifs
8578      test -z "$ac_dir" && ac_dir=.
8579 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8580 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8579 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8580 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8581        if test -n "$file_magic_test_file"; then
8582          case $deplibs_check_method in
8583          "file_magic "*)
8584            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8585 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8586            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8587              $EGREP "$file_magic_regex" > /dev/null; then
8588              :
# Line 8411 | Line 8605 | _LT_EOF
8605        break
8606      fi
8607    done
8608 <  IFS="$lt_save_ifs"
8609 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8608 >  IFS=$lt_save_ifs
8609 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8610    ;;
8611   esac
8612   fi
8613  
8614 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8615   if test -n "$MAGIC_CMD"; then
8616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8617   $as_echo "$MAGIC_CMD" >&6; }
# Line 8439 | Line 8633 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8633   else
8634    case $MAGIC_CMD in
8635   [\\/*] |  ?:[\\/]*)
8636 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8636 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8637    ;;
8638   *)
8639 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8640 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8639 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8640 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8641    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642    for ac_dir in $ac_dummy; do
8643 <    IFS="$lt_save_ifs"
8643 >    IFS=$lt_save_ifs
8644      test -z "$ac_dir" && ac_dir=.
8645 <    if test -f $ac_dir/file; then
8646 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8645 >    if test -f "$ac_dir/file"; then
8646 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8647        if test -n "$file_magic_test_file"; then
8648          case $deplibs_check_method in
8649          "file_magic "*)
8650            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8651 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8652            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653              $EGREP "$file_magic_regex" > /dev/null; then
8654              :
# Line 8477 | Line 8671 | _LT_EOF
8671        break
8672      fi
8673    done
8674 <  IFS="$lt_save_ifs"
8675 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8674 >  IFS=$lt_save_ifs
8675 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8676    ;;
8677   esac
8678   fi
8679  
8680 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8680 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8681   if test -n "$MAGIC_CMD"; then
8682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683   $as_echo "$MAGIC_CMD" >&6; }
# Line 8504 | Line 8698 | esac
8698  
8699   # Use C for the default configuration in the libtool script
8700  
8701 < lt_save_CC="$CC"
8701 > lt_save_CC=$CC
8702   ac_ext=c
8703   ac_cpp='$CPP $CPPFLAGS'
8704   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8566 | Line 8760 | if test -n "$compiler"; then
8760  
8761   lt_prog_compiler_no_builtin_flag=
8762  
8763 < if test "$GCC" = yes; then
8763 > if test yes = "$GCC"; then
8764    case $cc_basename in
8765    nvcc*)
8766      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8582 | Line 8776 | else
8776    lt_cv_prog_compiler_rtti_exceptions=no
8777     ac_outfile=conftest.$ac_objext
8778     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8779 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8779 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8780     # Insert the option either (1) after the last *FLAGS variable, or
8781     # (2) before a word containing "conftest.", or (3) at the end.
8782     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8612 | Line 8806 | fi
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8807   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8808  
8809 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8809 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8810      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8811   else
8812      :
# Line 8630 | Line 8824 | lt_prog_compiler_pic=
8824   lt_prog_compiler_static=
8825  
8826  
8827 <  if test "$GCC" = yes; then
8827 >  if test yes = "$GCC"; then
8828      lt_prog_compiler_wl='-Wl,'
8829      lt_prog_compiler_static='-static'
8830  
8831      case $host_os in
8832        aix*)
8833        # All AIX code is PIC.
8834 <      if test "$host_cpu" = ia64; then
8834 >      if test ia64 = "$host_cpu"; then
8835          # AIX 5 now supports IA64 processor
8836          lt_prog_compiler_static='-Bstatic'
8837        fi
8838 +      lt_prog_compiler_pic='-fPIC'
8839        ;;
8840  
8841      amigaos*)
# Line 8651 | Line 8846 | lt_prog_compiler_static=
8846          ;;
8847        m68k)
8848              # FIXME: we need at least 68020 code to build shared libraries, but
8849 <            # adding the `-m68020' flag to GCC prevents building anything better,
8850 <            # like `-m68040'.
8849 >            # adding the '-m68020' flag to GCC prevents building anything better,
8850 >            # like '-m68040'.
8851              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8852          ;;
8853        esac
# Line 8668 | Line 8863 | lt_prog_compiler_static=
8863        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8864        # (--disable-auto-import) libraries
8865        lt_prog_compiler_pic='-DDLL_EXPORT'
8866 +      case $host_os in
8867 +      os2*)
8868 +        lt_prog_compiler_static='$wl-static'
8869 +        ;;
8870 +      esac
8871        ;;
8872  
8873      darwin* | rhapsody*)
# Line 8738 | Line 8938 | lt_prog_compiler_static=
8938      case $host_os in
8939      aix*)
8940        lt_prog_compiler_wl='-Wl,'
8941 <      if test "$host_cpu" = ia64; then
8941 >      if test ia64 = "$host_cpu"; then
8942          # AIX 5 now supports IA64 processor
8943          lt_prog_compiler_static='-Bstatic'
8944        else
# Line 8746 | Line 8946 | lt_prog_compiler_static=
8946        fi
8947        ;;
8948  
8949 +    darwin* | rhapsody*)
8950 +      # PIC is the default on this platform
8951 +      # Common symbols not allowed in MH_DYLIB files
8952 +      lt_prog_compiler_pic='-fno-common'
8953 +      case $cc_basename in
8954 +      nagfor*)
8955 +        # NAG Fortran compiler
8956 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8957 +        lt_prog_compiler_pic='-PIC'
8958 +        lt_prog_compiler_static='-Bstatic'
8959 +        ;;
8960 +      esac
8961 +      ;;
8962 +
8963      mingw* | cygwin* | pw32* | os2* | cegcc*)
8964        # This hack is so that the source file can tell whether it is being
8965        # built for inclusion in a dll (and should export symbols for example).
8966        lt_prog_compiler_pic='-DDLL_EXPORT'
8967 +      case $host_os in
8968 +      os2*)
8969 +        lt_prog_compiler_static='$wl-static'
8970 +        ;;
8971 +      esac
8972        ;;
8973  
8974      hpux9* | hpux10* | hpux11*)
# Line 8765 | Line 8984 | lt_prog_compiler_static=
8984          ;;
8985        esac
8986        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8987 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8987 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8988        ;;
8989  
8990      irix5* | irix6* | nonstopux*)
# Line 8774 | Line 8993 | lt_prog_compiler_static=
8993        lt_prog_compiler_static='-non_shared'
8994        ;;
8995  
8996 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8996 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8997        case $cc_basename in
8998 <      # old Intel for x86_64 which still supported -KPIC.
8998 >      # old Intel for x86_64, which still supported -KPIC.
8999        ecc*)
9000          lt_prog_compiler_wl='-Wl,'
9001          lt_prog_compiler_pic='-KPIC'
9002          lt_prog_compiler_static='-static'
9003          ;;
9004 +      # flang / f18. f95 an alias for gfortran or flang on Debian
9005 +      flang* | f18* | f95*)
9006 +        lt_prog_compiler_wl='-Wl,'
9007 +        lt_prog_compiler_pic='-fPIC'
9008 +        lt_prog_compiler_static='-static'
9009 +        ;;
9010        # icc used to be incompatible with GCC.
9011        # ICC 10 doesn't accept -KPIC any more.
9012        icc* | ifort*)
# Line 8801 | Line 9026 | lt_prog_compiler_static=
9026          lt_prog_compiler_pic='-PIC'
9027          lt_prog_compiler_static='-Bstatic'
9028          ;;
9029 +      tcc*)
9030 +        # Fabrice Bellard et al's Tiny C Compiler
9031 +        lt_prog_compiler_wl='-Wl,'
9032 +        lt_prog_compiler_pic='-fPIC'
9033 +        lt_prog_compiler_static='-static'
9034 +        ;;
9035        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9036          # Portland Group compilers (*not* the Pentium gcc compiler,
9037          # which looks to be a dead project)
# Line 8898 | Line 9129 | lt_prog_compiler_static=
9129        ;;
9130  
9131      sysv4*MP*)
9132 <      if test -d /usr/nec ;then
9132 >      if test -d /usr/nec; then
9133          lt_prog_compiler_pic='-Kconform_pic'
9134          lt_prog_compiler_static='-Bstatic'
9135        fi
# Line 8927 | Line 9158 | lt_prog_compiler_static=
9158    fi
9159  
9160   case $host_os in
9161 <  # For platforms which do not support PIC, -DPIC is meaningless:
9161 >  # For platforms that do not support PIC, -DPIC is meaningless:
9162    *djgpp*)
9163      lt_prog_compiler_pic=
9164      ;;
# Line 8959 | Line 9190 | else
9190    lt_cv_prog_compiler_pic_works=no
9191     ac_outfile=conftest.$ac_objext
9192     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9193 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9193 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9194     # Insert the option either (1) after the last *FLAGS variable, or
9195     # (2) before a word containing "conftest.", or (3) at the end.
9196     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8989 | Line 9220 | fi
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9221   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9222  
9223 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9223 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9224      case $lt_prog_compiler_pic in
9225       "" | " "*) ;;
9226       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 9021 | Line 9252 | if ${lt_cv_prog_compiler_static_works+:}
9252    $as_echo_n "(cached) " >&6
9253   else
9254    lt_cv_prog_compiler_static_works=no
9255 <   save_LDFLAGS="$LDFLAGS"
9255 >   save_LDFLAGS=$LDFLAGS
9256     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9257     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9258     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9040 | Line 9271 | else
9271       fi
9272     fi
9273     $RM -r conftest*
9274 <   LDFLAGS="$save_LDFLAGS"
9274 >   LDFLAGS=$save_LDFLAGS
9275  
9276   fi
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9278   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9279  
9280 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9280 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9281      :
9282   else
9283      lt_prog_compiler_static=
# Line 9166 | Line 9397 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9397  
9398  
9399  
9400 < hard_links="nottested"
9401 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9400 > hard_links=nottested
9401 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9402    # do not overwrite the value of need_locks provided by the user
9403    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9404   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9179 | Line 9410 | $as_echo_n "checking if we can lock with
9410    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9412   $as_echo "$hard_links" >&6; }
9413 <  if test "$hard_links" = no; then
9414 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9415 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9413 >  if test no = "$hard_links"; then
9414 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9415 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9416      need_locks=warn
9417    fi
9418   else
# Line 9224 | Line 9455 | $as_echo_n "checking whether the $compil
9455    # included in the symbol list
9456    include_expsyms=
9457    # exclude_expsyms can be an extended regexp of symbols to exclude
9458 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9459 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9460 <  # as well as any symbol that contains `d'.
9458 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9459 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9460 >  # as well as any symbol that contains 'd'.
9461    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9462    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9463    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9241 | Line 9472 | $as_echo_n "checking whether the $compil
9472      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9473      # When not using gcc, we currently assume that we are using
9474      # Microsoft Visual C++.
9475 <    if test "$GCC" != yes; then
9475 >    if test yes != "$GCC"; then
9476        with_gnu_ld=no
9477      fi
9478      ;;
# Line 9249 | Line 9480 | $as_echo_n "checking whether the $compil
9480      # we just hope/assume this is gcc and not c89 (= MSVC++)
9481      with_gnu_ld=yes
9482      ;;
9483 <  openbsd*)
9483 >  openbsd* | bitrig*)
9484      with_gnu_ld=no
9485      ;;
9486 +  linux* | k*bsd*-gnu | gnu*)
9487 +    link_all_deplibs=no
9488 +    ;;
9489    esac
9490  
9491    ld_shlibs=yes
# Line 9259 | Line 9493 | $as_echo_n "checking whether the $compil
9493    # On some targets, GNU ld is compatible enough with the native linker
9494    # that we're better off using the native interface for both.
9495    lt_use_gnu_ld_interface=no
9496 <  if test "$with_gnu_ld" = yes; then
9496 >  if test yes = "$with_gnu_ld"; then
9497      case $host_os in
9498        aix*)
9499          # The AIX port of GNU ld has always aspired to compatibility
# Line 9281 | Line 9515 | $as_echo_n "checking whether the $compil
9515      esac
9516    fi
9517  
9518 <  if test "$lt_use_gnu_ld_interface" = yes; then
9518 >  if test yes = "$lt_use_gnu_ld_interface"; then
9519      # If archive_cmds runs LD, not CC, wlarc should be empty
9520 <    wlarc='${wl}'
9520 >    wlarc='$wl'
9521  
9522      # Set some defaults for GNU ld with shared library support. These
9523      # are reset later if shared libraries are not supported. Putting them
9524      # here allows them to be overridden if necessary.
9525      runpath_var=LD_RUN_PATH
9526 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9526 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9527 >    export_dynamic_flag_spec='$wl--export-dynamic'
9528      # ancient GNU ld didn't support --whole-archive et. al.
9529      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9530 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9530 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9531      else
9532        whole_archive_flag_spec=
9533      fi
9534      supports_anon_versioning=no
9535 <    case `$LD -v 2>&1` in
9535 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9536        *GNU\ gold*) supports_anon_versioning=yes ;;
9537        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9538        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9311 | Line 9545 | $as_echo_n "checking whether the $compil
9545      case $host_os in
9546      aix[3-9]*)
9547        # On AIX/PPC, the GNU linker is very broken
9548 <      if test "$host_cpu" != ia64; then
9548 >      if test ia64 != "$host_cpu"; then
9549          ld_shlibs=no
9550          cat <<_LT_EOF 1>&2
9551  
# Line 9330 | Line 9564 | _LT_EOF
9564        case $host_cpu in
9565        powerpc)
9566              # see comment about AmigaOS4 .so support
9567 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9568              archive_expsym_cmds=''
9569          ;;
9570        m68k)
# Line 9346 | Line 9580 | _LT_EOF
9580          allow_undefined_flag=unsupported
9581          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9582          # support --undefined.  This deserves some investigation.  FIXME
9583 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584        else
9585          ld_shlibs=no
9586        fi
# Line 9356 | Line 9590 | _LT_EOF
9590        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9591        # as there is no search path for DLLs.
9592        hardcode_libdir_flag_spec='-L$libdir'
9593 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9593 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9594        allow_undefined_flag=unsupported
9595        always_export_symbols=no
9596        enable_shared_with_static_runtimes=yes
# Line 9364 | Line 9598 | _LT_EOF
9598        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9599  
9600        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9601 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9602 <        # If the export-symbols file already is a .def file (1st line
9603 <        # is EXPORTS), use it as is; otherwise, prepend...
9604 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9605 <          cp $export_symbols $output_objdir/$soname.def;
9606 <        else
9607 <          echo EXPORTS > $output_objdir/$soname.def;
9608 <          cat $export_symbols >> $output_objdir/$soname.def;
9609 <        fi~
9610 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9602 >        # If the export-symbols file already is a .def file, use it as
9603 >        # is; otherwise, prepend EXPORTS...
9604 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9605 >          cp $export_symbols $output_objdir/$soname.def;
9606 >        else
9607 >          echo EXPORTS > $output_objdir/$soname.def;
9608 >          cat $export_symbols >> $output_objdir/$soname.def;
9609 >        fi~
9610 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9611        else
9612          ld_shlibs=no
9613        fi
9614        ;;
9615  
9616      haiku*)
9617 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9618        link_all_deplibs=yes
9619        ;;
9620  
9621 +    os2*)
9622 +      hardcode_libdir_flag_spec='-L$libdir'
9623 +      hardcode_minus_L=yes
9624 +      allow_undefined_flag=unsupported
9625 +      shrext_cmds=.dll
9626 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9627 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9628 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9629 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9630 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9631 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9632 +        emximp -o $lib $output_objdir/$libname.def'
9633 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9634 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9635 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9636 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9637 +        prefix_cmds="$SED"~
9638 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9639 +          prefix_cmds="$prefix_cmds -e 1d";
9640 +        fi~
9641 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9642 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9643 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9644 +        emximp -o $lib $output_objdir/$libname.def'
9645 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9646 +      enable_shared_with_static_runtimes=yes
9647 +      ;;
9648 +
9649      interix[3-9]*)
9650        hardcode_direct=no
9651        hardcode_shlibpath_var=no
9652 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 <      export_dynamic_flag_spec='${wl}-E'
9652 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9653 >      export_dynamic_flag_spec='$wl-E'
9654        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9655        # Instead, shared libraries are loaded at an image base (0x10000000 by
9656        # default) and relocated if they conflict, which is a slow very memory
9657        # consuming and fragmenting process.  To avoid this, we pick a random,
9658        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9659        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9660 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9661 <      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 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9661 >      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'
9662        ;;
9663  
9664      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9665        tmp_diet=no
9666 <      if test "$host_os" = linux-dietlibc; then
9666 >      if test linux-dietlibc = "$host_os"; then
9667          case $cc_basename in
9668            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9669          esac
9670        fi
9671        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9672 <         && test "$tmp_diet" = no
9672 >         && test no = "$tmp_diet"
9673        then
9674          tmp_addflag=' $pic_flag'
9675          tmp_sharedflag='-shared'
9676          case $cc_basename,$host_cpu in
9677          pgcc*)                          # Portland Group C compiler
9678 <          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'
9678 >          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'
9679            tmp_addflag=' $pic_flag'
9680            ;;
9681          pgf77* | pgf90* | pgf95* | pgfortran*)
9682                                          # Portland Group f77 and f90 compilers
9683 <          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'
9683 >          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'
9684            tmp_addflag=' $pic_flag -Mnomain' ;;
9685          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9686            tmp_addflag=' -i_dynamic' ;;
# Line 9429 | Line 9691 | _LT_EOF
9691          lf95*)                          # Lahey Fortran 8.1
9692            whole_archive_flag_spec=
9693            tmp_sharedflag='--shared' ;;
9694 +        nagfor*)                        # NAGFOR 5.3
9695 +          tmp_sharedflag='-Wl,-shared' ;;
9696          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9697            tmp_sharedflag='-qmkshrobj'
9698            tmp_addflag= ;;
9699          nvcc*)  # Cuda Compiler Driver 2.2
9700 <          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'
9700 >          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'
9701            compiler_needs_object=yes
9702            ;;
9703          esac
9704          case `$CC -V 2>&1 | sed 5q` in
9705          *Sun\ C*)                       # Sun C 5.9
9706 <          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'
9706 >          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'
9707            compiler_needs_object=yes
9708            tmp_sharedflag='-G' ;;
9709          *Sun\ F*)                       # Sun Fortran 8.3
9710            tmp_sharedflag='-G' ;;
9711          esac
9712 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9713  
9714 <        if test "x$supports_anon_versioning" = xyes; then
9714 >        if test yes = "$supports_anon_versioning"; then
9715            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9716 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9717 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9718 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9716 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9717 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9718 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9719          fi
9720  
9721          case $cc_basename in
9722 +        tcc*)
9723 +          export_dynamic_flag_spec='-rdynamic'
9724 +          ;;
9725          xlf* | bgf* | bgxlf* | mpixlf*)
9726            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9727            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9728 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9729            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9730 <          if test "x$supports_anon_versioning" = xyes; then
9730 >          if test yes = "$supports_anon_versioning"; then
9731              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9732 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9733 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9734 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9732 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9733 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9734 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9735            fi
9736            ;;
9737          esac
# Line 9473 | Line 9740 | _LT_EOF
9740        fi
9741        ;;
9742  
9743 <    netbsd*)
9743 >    netbsd* | netbsdelf*-gnu)
9744        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9745          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9746          wlarc=
9747        else
9748 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 <        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 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9749 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9750        fi
9751        ;;
9752  
# Line 9497 | Line 9764 | _LT_EOF
9764  
9765   _LT_EOF
9766        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9767 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 <        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 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9768 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9769        else
9770          ld_shlibs=no
9771        fi
# Line 9510 | Line 9777 | _LT_EOF
9777          ld_shlibs=no
9778          cat <<_LT_EOF 1>&2
9779  
9780 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9780 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9781   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9782   *** is disabling shared libraries support.  We urge you to upgrade GNU
9783   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9525 | Line 9792 | _LT_EOF
9792            # DT_RUNPATH tag from executables and libraries.  But doing so
9793            # requires that you compile everything twice, which is a pain.
9794            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9795 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9795 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9796 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9797 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9798            else
9799              ld_shlibs=no
9800            fi
# Line 9544 | Line 9811 | _LT_EOF
9811  
9812      *)
9813        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 <        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 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9815 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9816        else
9817          ld_shlibs=no
9818        fi
9819        ;;
9820      esac
9821  
9822 <    if test "$ld_shlibs" = no; then
9822 >    if test no = "$ld_shlibs"; then
9823        runpath_var=
9824        hardcode_libdir_flag_spec=
9825        export_dynamic_flag_spec=
# Line 9568 | Line 9835 | _LT_EOF
9835        # Note: this linker hardcodes the directories in LIBPATH if there
9836        # are no directories specified by -L.
9837        hardcode_minus_L=yes
9838 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9838 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9839          # Neither direct hardcoding nor static linking is supported with a
9840          # broken collect2.
9841          hardcode_direct=unsupported
# Line 9576 | Line 9843 | _LT_EOF
9843        ;;
9844  
9845      aix[4-9]*)
9846 <      if test "$host_cpu" = ia64; then
9846 >      if test ia64 = "$host_cpu"; then
9847          # On IA64, the linker does run time linking by default, so we don't
9848          # have to do anything special.
9849          aix_use_runtimelinking=no
9850          exp_sym_flag='-Bexport'
9851 <        no_entry_flag=""
9851 >        no_entry_flag=
9852        else
9853          # If we're using GNU nm, then we don't want the "-C" option.
9854 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9855 <        # Also, AIX nm treats weak defined symbols like other global
9856 <        # defined symbols, whereas GNU nm marks them as "W".
9854 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9855 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9856 >        # weak defined symbols like other global defined symbols, whereas
9857 >        # GNU nm marks them as "W".
9858 >        # While the 'weak' keyword is ignored in the Export File, we need
9859 >        # it in the Import File for the 'aix-soname' feature, so we have
9860 >        # to replace the "-B" option with "-P" for AIX nm.
9861          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9862 <          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'
9862 >          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'
9863          else
9864 <          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'
9864 >          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'
9865          fi
9866          aix_use_runtimelinking=no
9867  
9868          # Test if we are trying to use run time linking or normal
9869          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9870 <        # need to do runtime linking.
9870 >        # have runtime linking enabled, and use it for executables.
9871 >        # For shared libraries, we enable/disable runtime linking
9872 >        # depending on the kind of the shared library created -
9873 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9874 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9875 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9876 >        #            lib.a           static archive
9877 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9878 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9879 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9880 >        #            lib.a(lib.so.V) shared, rtl:no
9881 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9882 >        #            lib.a           static archive
9883          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9884            for ld_flag in $LDFLAGS; do
9885 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9885 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9886              aix_use_runtimelinking=yes
9887              break
9888            fi
9889            done
9890 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9891 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9892 +            # so we don't have lib.a shared libs to link our executables.
9893 +            # We have to force runtime linking in this case.
9894 +            aix_use_runtimelinking=yes
9895 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9896 +          fi
9897            ;;
9898          esac
9899  
# Line 9622 | Line 9912 | _LT_EOF
9912        hardcode_direct_absolute=yes
9913        hardcode_libdir_separator=':'
9914        link_all_deplibs=yes
9915 <      file_list_spec='${wl}-f,'
9915 >      file_list_spec='$wl-f,'
9916 >      case $with_aix_soname,$aix_use_runtimelinking in
9917 >      aix,*) ;; # traditional, no import file
9918 >      svr4,* | *,yes) # use import file
9919 >        # The Import File defines what to hardcode.
9920 >        hardcode_direct=no
9921 >        hardcode_direct_absolute=no
9922 >        ;;
9923 >      esac
9924  
9925 <      if test "$GCC" = yes; then
9925 >      if test yes = "$GCC"; then
9926          case $host_os in aix4.[012]|aix4.[012].*)
9927          # We only want to do this on AIX 4.2 and lower, the check
9928          # below for broken collect2 doesn't work under 4.3+
9929 <          collect2name=`${CC} -print-prog-name=collect2`
9929 >          collect2name=`$CC -print-prog-name=collect2`
9930            if test -f "$collect2name" &&
9931             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9932            then
# Line 9647 | Line 9945 | _LT_EOF
9945            ;;
9946          esac
9947          shared_flag='-shared'
9948 <        if test "$aix_use_runtimelinking" = yes; then
9949 <          shared_flag="$shared_flag "'${wl}-G'
9948 >        if test yes = "$aix_use_runtimelinking"; then
9949 >          shared_flag="$shared_flag "'$wl-G'
9950          fi
9951 +        # Need to ensure runtime linking is disabled for the traditional
9952 +        # shared library, or the linker may eventually find shared libraries
9953 +        # /with/ Import File - we do not want to mix them.
9954 +        shared_flag_aix='-shared'
9955 +        shared_flag_svr4='-shared $wl-G'
9956        else
9957          # not using gcc
9958 <        if test "$host_cpu" = ia64; then
9958 >        if test ia64 = "$host_cpu"; then
9959          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9960          # chokes on -Wl,-G. The following line is correct:
9961            shared_flag='-G'
9962          else
9963 <          if test "$aix_use_runtimelinking" = yes; then
9964 <            shared_flag='${wl}-G'
9963 >          if test yes = "$aix_use_runtimelinking"; then
9964 >            shared_flag='$wl-G'
9965            else
9966 <            shared_flag='${wl}-bM:SRE'
9966 >            shared_flag='$wl-bM:SRE'
9967            fi
9968 +          shared_flag_aix='$wl-bM:SRE'
9969 +          shared_flag_svr4='$wl-G'
9970          fi
9971        fi
9972  
9973 <      export_dynamic_flag_spec='${wl}-bexpall'
9973 >      export_dynamic_flag_spec='$wl-bexpall'
9974        # It seems that -bexpall does not export symbols beginning with
9975        # underscore (_), so it is better to generate a list of symbols to export.
9976        always_export_symbols=yes
9977 <      if test "$aix_use_runtimelinking" = yes; then
9977 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9978          # Warning - without using the other runtime loading flags (-brtl),
9979          # -berok will link without error, but may produce a broken library.
9980          allow_undefined_flag='-berok'
9981          # Determine the default libpath from the value encoded in an
9982          # empty executable.
9983 <        if test "${lt_cv_aix_libpath+set}" = set; then
9983 >        if test set = "${lt_cv_aix_libpath+set}"; then
9984    aix_libpath=$lt_cv_aix_libpath
9985   else
9986    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9710 | Line 10015 | fi
10015   rm -f core conftest.err conftest.$ac_objext \
10016      conftest$ac_exeext conftest.$ac_ext
10017    if test -z "$lt_cv_aix_libpath_"; then
10018 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10018 >    lt_cv_aix_libpath_=/usr/lib:/lib
10019    fi
10020  
10021   fi
# Line 9718 | Line 10023 | fi
10023    aix_libpath=$lt_cv_aix_libpath_
10024   fi
10025  
10026 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10027 <        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"
10026 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10027 >        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
10028        else
10029 <        if test "$host_cpu" = ia64; then
10030 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10029 >        if test ia64 = "$host_cpu"; then
10030 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10031            allow_undefined_flag="-z nodefs"
10032 <          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"
10032 >          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"
10033          else
10034           # Determine the default libpath from the value encoded in an
10035           # empty executable.
10036 <         if test "${lt_cv_aix_libpath+set}" = set; then
10036 >         if test set = "${lt_cv_aix_libpath+set}"; then
10037    aix_libpath=$lt_cv_aix_libpath
10038   else
10039    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9763 | Line 10068 | fi
10068   rm -f core conftest.err conftest.$ac_objext \
10069      conftest$ac_exeext conftest.$ac_ext
10070    if test -z "$lt_cv_aix_libpath_"; then
10071 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10071 >    lt_cv_aix_libpath_=/usr/lib:/lib
10072    fi
10073  
10074   fi
# Line 9771 | Line 10076 | fi
10076    aix_libpath=$lt_cv_aix_libpath_
10077   fi
10078  
10079 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10080            # Warning - without using the other run time loading flags,
10081            # -berok will link without error, but may produce a broken library.
10082 <          no_undefined_flag=' ${wl}-bernotok'
10083 <          allow_undefined_flag=' ${wl}-berok'
10084 <          if test "$with_gnu_ld" = yes; then
10082 >          no_undefined_flag=' $wl-bernotok'
10083 >          allow_undefined_flag=' $wl-berok'
10084 >          if test yes = "$with_gnu_ld"; then
10085              # We only use this code for GNU lds that support --whole-archive.
10086 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10086 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10087            else
10088              # Exported symbols can be pulled into shared objects from archives
10089              whole_archive_flag_spec='$convenience'
10090            fi
10091            archive_cmds_need_lc=yes
10092 <          # This is similar to how AIX traditionally builds its shared libraries.
10093 <          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'
10092 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10093 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10094 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10095 >          if test svr4 != "$with_aix_soname"; then
10096 >            # This is similar to how AIX traditionally builds its shared libraries.
10097 >            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'
10098 >          fi
10099 >          if test aix != "$with_aix_soname"; then
10100 >            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'
10101 >          else
10102 >            # used by -dlpreopen to get the symbols
10103 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10104 >          fi
10105 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10106          fi
10107        fi
10108        ;;
# Line 9794 | Line 10111 | fi
10111        case $host_cpu in
10112        powerpc)
10113              # see comment about AmigaOS4 .so support
10114 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10115              archive_expsym_cmds=''
10116          ;;
10117        m68k)
# Line 9824 | Line 10141 | fi
10141          # Tell ltmain to make .lib files, not .a files.
10142          libext=lib
10143          # Tell ltmain to make .dll files, not .so files.
10144 <        shrext_cmds=".dll"
10144 >        shrext_cmds=.dll
10145          # FIXME: Setting linknames here is a bad hack.
10146 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10147 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10148 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10149 <          else
10150 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10151 <          fi~
10152 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10153 <          linknames='
10146 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10147 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10148 >            cp "$export_symbols" "$output_objdir/$soname.def";
10149 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10150 >          else
10151 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10152 >          fi~
10153 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10154 >          linknames='
10155          # The linker will not automatically build a static lib if we build a DLL.
10156          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10157          enable_shared_with_static_runtimes=yes
# Line 9842 | Line 10160 | fi
10160          # Don't use ranlib
10161          old_postinstall_cmds='chmod 644 $oldlib'
10162          postlink_cmds='lt_outputfile="@OUTPUT@"~
10163 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10164 <          case $lt_outputfile in
10165 <            *.exe|*.EXE) ;;
10166 <            *)
10167 <              lt_outputfile="$lt_outputfile.exe"
10168 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10169 <              ;;
10170 <          esac~
10171 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10172 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10173 <            $RM "$lt_outputfile.manifest";
10174 <          fi'
10163 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10164 >          case $lt_outputfile in
10165 >            *.exe|*.EXE) ;;
10166 >            *)
10167 >              lt_outputfile=$lt_outputfile.exe
10168 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10169 >              ;;
10170 >          esac~
10171 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10172 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10173 >            $RM "$lt_outputfile.manifest";
10174 >          fi'
10175          ;;
10176        *)
10177          # Assume MSVC wrapper
# Line 9862 | Line 10180 | fi
10180          # Tell ltmain to make .lib files, not .a files.
10181          libext=lib
10182          # Tell ltmain to make .dll files, not .so files.
10183 <        shrext_cmds=".dll"
10183 >        shrext_cmds=.dll
10184          # FIXME: Setting linknames here is a bad hack.
10185          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10186          # The linker will automatically build a .lib file if we build a DLL.
# Line 9881 | Line 10199 | fi
10199    hardcode_direct=no
10200    hardcode_automatic=yes
10201    hardcode_shlibpath_var=unsupported
10202 <  if test "$lt_cv_ld_force_load" = "yes"; then
10203 <    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 >  if test yes = "$lt_cv_ld_force_load"; then
10203 >    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\"`'
10204  
10205    else
10206      whole_archive_flag_spec=''
10207    fi
10208    link_all_deplibs=yes
10209 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10209 >  allow_undefined_flag=$_lt_dar_allow_undefined
10210    case $cc_basename in
10211 <     ifort*) _lt_dar_can_shared=yes ;;
10211 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10212       *) _lt_dar_can_shared=$GCC ;;
10213    esac
10214 <  if test "$_lt_dar_can_shared" = "yes"; then
10214 >  if test yes = "$_lt_dar_can_shared"; then
10215      output_verbose_link_cmd=func_echo_all
10216 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10217 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10218 <    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}"
10219 <    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}"
10216 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10217 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10218 >    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"
10219 >    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"
10220  
10221    else
10222    ld_shlibs=no
# Line 9940 | Line 10258 | fi
10258        ;;
10259  
10260      hpux9*)
10261 <      if test "$GCC" = yes; then
10262 <        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'
10261 >      if test yes = "$GCC"; then
10262 >        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'
10263        else
10264 <        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'
10264 >        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'
10265        fi
10266 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10266 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10267        hardcode_libdir_separator=:
10268        hardcode_direct=yes
10269  
10270        # hardcode_minus_L: Not really in the search PATH,
10271        # but as the default location of the library.
10272        hardcode_minus_L=yes
10273 <      export_dynamic_flag_spec='${wl}-E'
10273 >      export_dynamic_flag_spec='$wl-E'
10274        ;;
10275  
10276      hpux10*)
10277 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10278 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10277 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10278 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10279        else
10280          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10281        fi
10282 <      if test "$with_gnu_ld" = no; then
10283 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10282 >      if test no = "$with_gnu_ld"; then
10283 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10284          hardcode_libdir_separator=:
10285          hardcode_direct=yes
10286          hardcode_direct_absolute=yes
10287 <        export_dynamic_flag_spec='${wl}-E'
10287 >        export_dynamic_flag_spec='$wl-E'
10288          # hardcode_minus_L: Not really in the search PATH,
10289          # but as the default location of the library.
10290          hardcode_minus_L=yes
# Line 9974 | Line 10292 | fi
10292        ;;
10293  
10294      hpux11*)
10295 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10295 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10296          case $host_cpu in
10297          hppa*64*)
10298 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10299            ;;
10300          ia64*)
10301 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10301 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10302            ;;
10303          *)
10304 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10305            ;;
10306          esac
10307        else
10308          case $host_cpu in
10309          hppa*64*)
10310 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10311            ;;
10312          ia64*)
10313 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10313 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10314            ;;
10315          *)
10316  
# Line 10004 | Line 10322 | if ${lt_cv_prog_compiler__b+:} false; th
10322    $as_echo_n "(cached) " >&6
10323   else
10324    lt_cv_prog_compiler__b=no
10325 <   save_LDFLAGS="$LDFLAGS"
10325 >   save_LDFLAGS=$LDFLAGS
10326     LDFLAGS="$LDFLAGS -b"
10327     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10328     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 10023 | Line 10341 | else
10341       fi
10342     fi
10343     $RM -r conftest*
10344 <   LDFLAGS="$save_LDFLAGS"
10344 >   LDFLAGS=$save_LDFLAGS
10345  
10346   fi
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10348   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10349  
10350 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10351 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10350 > if test yes = "$lt_cv_prog_compiler__b"; then
10351 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10352   else
10353      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10354   fi
# Line 10038 | Line 10356 | fi
10356            ;;
10357          esac
10358        fi
10359 <      if test "$with_gnu_ld" = no; then
10360 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10359 >      if test no = "$with_gnu_ld"; then
10360 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10361          hardcode_libdir_separator=:
10362  
10363          case $host_cpu in
# Line 10050 | Line 10368 | fi
10368          *)
10369            hardcode_direct=yes
10370            hardcode_direct_absolute=yes
10371 <          export_dynamic_flag_spec='${wl}-E'
10371 >          export_dynamic_flag_spec='$wl-E'
10372  
10373            # hardcode_minus_L: Not really in the search PATH,
10374            # but as the default location of the library.
# Line 10061 | Line 10379 | fi
10379        ;;
10380  
10381      irix5* | irix6* | nonstopux*)
10382 <      if test "$GCC" = yes; then
10383 <        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 >      if test yes = "$GCC"; then
10383 >        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'
10384          # Try to use the -exported_symbol ld option, if it does not
10385          # work, assume that -exports_file does not work either and
10386          # implicitly export all symbols.
# Line 10072 | Line 10390 | $as_echo_n "checking whether the $host_o
10390   if ${lt_cv_irix_exported_symbol+:} false; then :
10391    $as_echo_n "(cached) " >&6
10392   else
10393 <  save_LDFLAGS="$LDFLAGS"
10394 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10393 >  save_LDFLAGS=$LDFLAGS
10394 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10395             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396   /* end confdefs.h.  */
10397   int foo (void) { return 0; }
# Line 10085 | Line 10403 | else
10403   fi
10404   rm -f core conftest.err conftest.$ac_objext \
10405      conftest$ac_exeext conftest.$ac_ext
10406 <           LDFLAGS="$save_LDFLAGS"
10406 >           LDFLAGS=$save_LDFLAGS
10407   fi
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10409   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10410 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10411 <          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 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10411 >          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'
10412          fi
10413 +        link_all_deplibs=no
10414        else
10415 <        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'
10416 <        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 >        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'
10416 >        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'
10417        fi
10418        archive_cmds_need_lc='no'
10419 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10419 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420        hardcode_libdir_separator=:
10421        inherit_rpath=yes
10422        link_all_deplibs=yes
10423        ;;
10424  
10425 <    netbsd*)
10425 >    linux*)
10426 >      case $cc_basename in
10427 >      tcc*)
10428 >        # Fabrice Bellard et al's Tiny C Compiler
10429 >        ld_shlibs=yes
10430 >        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10431 >        ;;
10432 >      esac
10433 >      ;;
10434 >
10435 >    netbsd* | netbsdelf*-gnu)
10436        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10437          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10438        else
# Line 10117 | Line 10446 | $as_echo "$lt_cv_irix_exported_symbol" >
10446      newsos6)
10447        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10448        hardcode_direct=yes
10449 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10449 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10450        hardcode_libdir_separator=:
10451        hardcode_shlibpath_var=no
10452        ;;
# Line 10125 | Line 10454 | $as_echo "$lt_cv_irix_exported_symbol" >
10454      *nto* | *qnx*)
10455        ;;
10456  
10457 <    openbsd*)
10457 >    openbsd* | bitrig*)
10458        if test -f /usr/libexec/ld.so; then
10459          hardcode_direct=yes
10460          hardcode_shlibpath_var=no
10461          hardcode_direct_absolute=yes
10462 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10462 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10463            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10464 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10465 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10466 <          export_dynamic_flag_spec='${wl}-E'
10464 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10465 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10466 >          export_dynamic_flag_spec='$wl-E'
10467          else
10468 <          case $host_os in
10469 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10141 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142 <             hardcode_libdir_flag_spec='-R$libdir'
10143 <             ;;
10144 <           *)
10145 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 <             ;;
10148 <          esac
10468 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10469 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10470          fi
10471        else
10472          ld_shlibs=no
# Line 10156 | Line 10477 | $as_echo "$lt_cv_irix_exported_symbol" >
10477        hardcode_libdir_flag_spec='-L$libdir'
10478        hardcode_minus_L=yes
10479        allow_undefined_flag=unsupported
10480 <      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'
10481 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10480 >      shrext_cmds=.dll
10481 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10482 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10483 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10484 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10485 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10486 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10487 >        emximp -o $lib $output_objdir/$libname.def'
10488 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10489 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10490 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10491 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10492 >        prefix_cmds="$SED"~
10493 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10494 >          prefix_cmds="$prefix_cmds -e 1d";
10495 >        fi~
10496 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10497 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10498 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10499 >        emximp -o $lib $output_objdir/$libname.def'
10500 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10501 >      enable_shared_with_static_runtimes=yes
10502        ;;
10503  
10504      osf3*)
10505 <      if test "$GCC" = yes; then
10506 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10507 <        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'
10505 >      if test yes = "$GCC"; then
10506 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10507 >        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'
10508        else
10509          allow_undefined_flag=' -expect_unresolved \*'
10510 <        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'
10510 >        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'
10511        fi
10512        archive_cmds_need_lc='no'
10513 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10513 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10514        hardcode_libdir_separator=:
10515        ;;
10516  
10517      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10518 <      if test "$GCC" = yes; then
10519 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10520 <        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'
10521 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10518 >      if test yes = "$GCC"; then
10519 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10520 >        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'
10521 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10522        else
10523          allow_undefined_flag=' -expect_unresolved \*'
10524 <        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'
10524 >        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'
10525          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~
10526 <        $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'
10526 >          $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'
10527  
10528          # Both c and cxx compiler support -rpath directly
10529          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10193 | Line 10534 | $as_echo "$lt_cv_irix_exported_symbol" >
10534  
10535      solaris*)
10536        no_undefined_flag=' -z defs'
10537 <      if test "$GCC" = yes; then
10538 <        wlarc='${wl}'
10539 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10537 >      if test yes = "$GCC"; then
10538 >        wlarc='$wl'
10539 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10540          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10541 <          $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'
10541 >          $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'
10542        else
10543          case `$CC -V 2>&1` in
10544          *"Compilers 5.0"*)
10545            wlarc=''
10546 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10548 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10548 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10549            ;;
10550          *)
10551 <          wlarc='${wl}'
10552 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10551 >          wlarc='$wl'
10552 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10553            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10554 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10554 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10555            ;;
10556          esac
10557        fi
# Line 10220 | Line 10561 | $as_echo "$lt_cv_irix_exported_symbol" >
10561        solaris2.[0-5] | solaris2.[0-5].*) ;;
10562        *)
10563          # The compiler driver will combine and reorder linker options,
10564 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10564 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10565          # but is careful enough not to reorder.
10566          # Supported since Solaris 2.6 (maybe 2.5.1?)
10567 <        if test "$GCC" = yes; then
10568 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10567 >        if test yes = "$GCC"; then
10568 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10569          else
10570            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10571          fi
# Line 10234 | Line 10575 | $as_echo "$lt_cv_irix_exported_symbol" >
10575        ;;
10576  
10577      sunos4*)
10578 <      if test "x$host_vendor" = xsequent; then
10578 >      if test sequent = "$host_vendor"; then
10579          # Use $CC to link under sequent, because it throws in some extra .o
10580          # files that make .init and .fini sections work.
10581 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10581 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10582        else
10583          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10584        fi
# Line 10286 | Line 10627 | $as_echo "$lt_cv_irix_exported_symbol" >
10627        ;;
10628  
10629      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10630 <      no_undefined_flag='${wl}-z,text'
10630 >      no_undefined_flag='$wl-z,text'
10631        archive_cmds_need_lc=no
10632        hardcode_shlibpath_var=no
10633        runpath_var='LD_RUN_PATH'
10634  
10635 <      if test "$GCC" = yes; then
10636 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 >      if test yes = "$GCC"; then
10636 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638        else
10639 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641        fi
10642        ;;
10643  
10644      sysv5* | sco3.2v5* | sco5v6*)
10645 <      # Note: We can NOT use -z defs as we might desire, because we do not
10645 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10646        # link with -lc, and that would cause any symbols used from libc to
10647        # always be unresolved, which means just about no library would
10648        # ever link correctly.  If we're not using GNU ld we use -z text
10649        # though, which does catch some bad symbols but isn't as heavy-handed
10650        # as -z defs.
10651 <      no_undefined_flag='${wl}-z,text'
10652 <      allow_undefined_flag='${wl}-z,nodefs'
10651 >      no_undefined_flag='$wl-z,text'
10652 >      allow_undefined_flag='$wl-z,nodefs'
10653        archive_cmds_need_lc=no
10654        hardcode_shlibpath_var=no
10655 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10655 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10656        hardcode_libdir_separator=':'
10657        link_all_deplibs=yes
10658 <      export_dynamic_flag_spec='${wl}-Bexport'
10658 >      export_dynamic_flag_spec='$wl-Bexport'
10659        runpath_var='LD_RUN_PATH'
10660  
10661 <      if test "$GCC" = yes; then
10662 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 >      if test yes = "$GCC"; then
10662 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664        else
10665 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667        fi
10668        ;;
10669  
# Line 10337 | Line 10678 | $as_echo "$lt_cv_irix_exported_symbol" >
10678        ;;
10679      esac
10680  
10681 <    if test x$host_vendor = xsni; then
10681 >    if test sni = "$host_vendor"; then
10682        case $host in
10683        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10684 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10684 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10685          ;;
10686        esac
10687      fi
# Line 10348 | Line 10689 | $as_echo "$lt_cv_irix_exported_symbol" >
10689  
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10691   $as_echo "$ld_shlibs" >&6; }
10692 < test "$ld_shlibs" = no && can_build_shared=no
10692 > test no = "$ld_shlibs" && can_build_shared=no
10693  
10694   with_gnu_ld=$with_gnu_ld
10695  
# Line 10374 | Line 10715 | x|xyes)
10715    # Assume -lc should be added
10716    archive_cmds_need_lc=yes
10717  
10718 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10718 >  if test yes,yes = "$GCC,$enable_shared"; then
10719      case $archive_cmds in
10720      *'~'*)
10721        # FIXME: we may have to deal with multi-command sequences.
# Line 10589 | Line 10930 | esac
10930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10931   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10932  
10933 < if test "$GCC" = yes; then
10933 > if test yes = "$GCC"; then
10934    case $host_os in
10935 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10936 <    *) lt_awk_arg="/^libraries:/" ;;
10935 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10936 >    *) lt_awk_arg='/^libraries:/' ;;
10937    esac
10938    case $host_os in
10939 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10940 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10939 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10940 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10941    esac
10942    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10943    case $lt_search_path_spec in
# Line 10612 | Line 10953 | if test "$GCC" = yes; then
10953      ;;
10954    esac
10955    # Ok, now we have the path, separated by spaces, we can step through it
10956 <  # and add multilib dir if necessary.
10956 >  # and add multilib dir if necessary...
10957    lt_tmp_lt_search_path_spec=
10958 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10958 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10959 >  # ...but if some path component already ends with the multilib dir we assume
10960 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10961 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10962 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10963 >    lt_multi_os_dir=
10964 >    ;;
10965 >  esac
10966    for lt_sys_path in $lt_search_path_spec; do
10967 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10968 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10969 <    else
10967 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10968 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10969 >    elif test -n "$lt_multi_os_dir"; then
10970        test -d "$lt_sys_path" && \
10971          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10972      fi
10973    done
10974    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10975 < BEGIN {RS=" "; FS="/|\n";} {
10976 <  lt_foo="";
10977 <  lt_count=0;
10975 > BEGIN {RS = " "; FS = "/|\n";} {
10976 >  lt_foo = "";
10977 >  lt_count = 0;
10978    for (lt_i = NF; lt_i > 0; lt_i--) {
10979      if ($lt_i != "" && $lt_i != ".") {
10980        if ($lt_i == "..") {
10981          lt_count++;
10982        } else {
10983          if (lt_count == 0) {
10984 <          lt_foo="/" $lt_i lt_foo;
10984 >          lt_foo = "/" $lt_i lt_foo;
10985          } else {
10986            lt_count--;
10987          }
# Line 10647 | Line 10995 | BEGIN {RS=" "; FS="/|\n";} {
10995    # for these hosts.
10996    case $host_os in
10997      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10998 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10998 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10999    esac
11000    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11001   else
# Line 10656 | Line 11004 | fi
11004   library_names_spec=
11005   libname_spec='lib$name'
11006   soname_spec=
11007 < shrext_cmds=".so"
11007 > shrext_cmds=.so
11008   postinstall_cmds=
11009   postuninstall_cmds=
11010   finish_cmds=
# Line 10673 | Line 11021 | hardcode_into_libs=no
11021   # flags to be left without arguments
11022   need_version=unknown
11023  
11024 +
11025 +
11026   case $host_os in
11027   aix3*)
11028    version_type=linux # correct to gnu/linux during the next big refactor
11029 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11029 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11030    shlibpath_var=LIBPATH
11031  
11032    # AIX 3 has no versioning support, so we append a major version to the name.
11033 <  soname_spec='${libname}${release}${shared_ext}$major'
11033 >  soname_spec='$libname$release$shared_ext$major'
11034    ;;
11035  
11036   aix[4-9]*)
# Line 10688 | Line 11038 | aix[4-9]*)
11038    need_lib_prefix=no
11039    need_version=no
11040    hardcode_into_libs=yes
11041 <  if test "$host_cpu" = ia64; then
11041 >  if test ia64 = "$host_cpu"; then
11042      # AIX 5 supports IA64
11043 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11043 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11044      shlibpath_var=LD_LIBRARY_PATH
11045    else
11046      # With GCC up to 2.95.x, collect2 would create an import file
11047      # for dependence libraries.  The import file would start with
11048 <    # the line `#! .'.  This would cause the generated library to
11049 <    # depend on `.', always an invalid library.  This was fixed in
11048 >    # the line '#! .'.  This would cause the generated library to
11049 >    # depend on '.', always an invalid library.  This was fixed in
11050      # development snapshots of GCC prior to 3.0.
11051      case $host_os in
11052        aix4 | aix4.[01] | aix4.[01].*)
11053        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11054             echo ' yes '
11055 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11055 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11056          :
11057        else
11058          can_build_shared=no
11059        fi
11060        ;;
11061      esac
11062 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11062 >    # Using Import Files as archive members, it is possible to support
11063 >    # filename-based versioning of shared library archives on AIX. While
11064 >    # this would work for both with and without runtime linking, it will
11065 >    # prevent static linking of such archives. So we do filename-based
11066 >    # shared library versioning with .so extension only, which is used
11067 >    # when both runtime linking and shared linking is enabled.
11068 >    # Unfortunately, runtime linking may impact performance, so we do
11069 >    # not want this to be the default eventually. Also, we use the
11070 >    # versioned .so libs for executables only if there is the -brtl
11071 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11072 >    # To allow for filename-based versioning support, we need to create
11073 >    # libNAME.so.V as an archive file, containing:
11074 >    # *) an Import File, referring to the versioned filename of the
11075 >    #    archive as well as the shared archive member, telling the
11076 >    #    bitwidth (32 or 64) of that shared object, and providing the
11077 >    #    list of exported symbols of that shared object, eventually
11078 >    #    decorated with the 'weak' keyword
11079 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11080 >    #    it being seen by the linker.
11081 >    # At run time we better use the real file rather than another symlink,
11082 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11083 >
11084 >    case $with_aix_soname,$aix_use_runtimelinking in
11085 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11086      # soname into executable. Probably we can add versioning support to
11087      # collect2, so additional links can be useful in future.
11088 <    if test "$aix_use_runtimelinking" = yes; then
11088 >    aix,yes) # traditional libtool
11089 >      dynamic_linker='AIX unversionable lib.so'
11090        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11091        # instead of lib<name>.a to let people know that these are not
11092        # typical AIX shared libraries.
11093 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 <    else
11093 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11094 >      ;;
11095 >    aix,no) # traditional AIX only
11096 >      dynamic_linker='AIX lib.a(lib.so.V)'
11097        # We preserve .a as extension for shared libraries through AIX4.2
11098        # and later when we are not doing run time linking.
11099 <      library_names_spec='${libname}${release}.a $libname.a'
11100 <      soname_spec='${libname}${release}${shared_ext}$major'
11101 <    fi
11099 >      library_names_spec='$libname$release.a $libname.a'
11100 >      soname_spec='$libname$release$shared_ext$major'
11101 >      ;;
11102 >    svr4,*) # full svr4 only
11103 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11104 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11105 >      # We do not specify a path in Import Files, so LIBPATH fires.
11106 >      shlibpath_overrides_runpath=yes
11107 >      ;;
11108 >    *,yes) # both, prefer svr4
11109 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11110 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11111 >      # unpreferred sharedlib libNAME.a needs extra handling
11112 >      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"'
11113 >      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"'
11114 >      # We do not specify a path in Import Files, so LIBPATH fires.
11115 >      shlibpath_overrides_runpath=yes
11116 >      ;;
11117 >    *,no) # both, prefer aix
11118 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11119 >      library_names_spec='$libname$release.a $libname.a'
11120 >      soname_spec='$libname$release$shared_ext$major'
11121 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11122 >      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)'
11123 >      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"'
11124 >      ;;
11125 >    esac
11126      shlibpath_var=LIBPATH
11127    fi
11128    ;;
# Line 10732 | Line 11132 | amigaos*)
11132    powerpc)
11133      # Since July 2007 AmigaOS4 officially supports .so libraries.
11134      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11135 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136      ;;
11137    m68k)
11138      library_names_spec='$libname.ixlibrary $libname.a'
11139      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11140 <    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'
11140 >    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'
11141      ;;
11142    esac
11143    ;;
11144  
11145   beos*)
11146 <  library_names_spec='${libname}${shared_ext}'
11146 >  library_names_spec='$libname$shared_ext'
11147    dynamic_linker="$host_os ld.so"
11148    shlibpath_var=LIBRARY_PATH
11149    ;;
# Line 10751 | Line 11151 | beos*)
11151   bsdi[45]*)
11152    version_type=linux # correct to gnu/linux during the next big refactor
11153    need_version=no
11154 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 <  soname_spec='${libname}${release}${shared_ext}$major'
11154 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 >  soname_spec='$libname$release$shared_ext$major'
11156    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11157    shlibpath_var=LD_LIBRARY_PATH
11158    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10764 | Line 11164 | bsdi[45]*)
11164  
11165   cygwin* | mingw* | pw32* | cegcc*)
11166    version_type=windows
11167 <  shrext_cmds=".dll"
11167 >  shrext_cmds=.dll
11168    need_version=no
11169    need_lib_prefix=no
11170  
# Line 10773 | Line 11173 | cygwin* | mingw* | pw32* | cegcc*)
11173      # gcc
11174      library_names_spec='$libname.dll.a'
11175      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11176 <    postinstall_cmds='base_file=`basename \${file}`~
11177 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11176 >    postinstall_cmds='base_file=`basename \$file`~
11177 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11178        dldir=$destdir/`dirname \$dlpath`~
11179        test -d \$dldir || mkdir -p \$dldir~
11180        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10790 | Line 11190 | cygwin* | mingw* | pw32* | cegcc*)
11190      case $host_os in
11191      cygwin*)
11192        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11193 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11194  
11195        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11196        ;;
11197      mingw* | cegcc*)
11198        # MinGW DLLs use traditional 'lib' prefix
11199 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11199 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11200        ;;
11201      pw32*)
11202        # pw32 DLLs use 'pw' prefix rather than 'lib'
11203 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11203 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11204        ;;
11205      esac
11206      dynamic_linker='Win32 ld.exe'
# Line 10809 | Line 11209 | cygwin* | mingw* | pw32* | cegcc*)
11209    *,cl*)
11210      # Native MSVC
11211      libname_spec='$name'
11212 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213 <    library_names_spec='${libname}.dll.lib'
11212 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11213 >    library_names_spec='$libname.dll.lib'
11214  
11215      case $build_os in
11216      mingw*)
# Line 10837 | Line 11237 | cygwin* | mingw* | pw32* | cegcc*)
11237        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11238        ;;
11239      *)
11240 <      sys_lib_search_path_spec="$LIB"
11240 >      sys_lib_search_path_spec=$LIB
11241        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11242          # It is most probably a Windows format PATH.
11243          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10850 | Line 11250 | cygwin* | mingw* | pw32* | cegcc*)
11250      esac
11251  
11252      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11253 <    postinstall_cmds='base_file=`basename \${file}`~
11254 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11253 >    postinstall_cmds='base_file=`basename \$file`~
11254 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11255        dldir=$destdir/`dirname \$dlpath`~
11256        test -d \$dldir || mkdir -p \$dldir~
11257        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10864 | Line 11264 | cygwin* | mingw* | pw32* | cegcc*)
11264  
11265    *)
11266      # Assume MSVC wrapper
11267 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11267 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11268      dynamic_linker='Win32 ld.exe'
11269      ;;
11270    esac
# Line 10877 | Line 11277 | darwin* | rhapsody*)
11277    version_type=darwin
11278    need_lib_prefix=no
11279    need_version=no
11280 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11281 <  soname_spec='${libname}${release}${major}$shared_ext'
11280 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11281 >  soname_spec='$libname$release$major$shared_ext'
11282    shlibpath_overrides_runpath=yes
11283    shlibpath_var=DYLD_LIBRARY_PATH
11284    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10891 | Line 11291 | dgux*)
11291    version_type=linux # correct to gnu/linux during the next big refactor
11292    need_lib_prefix=no
11293    need_version=no
11294 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11295 <  soname_spec='${libname}${release}${shared_ext}$major'
11294 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295 >  soname_spec='$libname$release$shared_ext$major'
11296    shlibpath_var=LD_LIBRARY_PATH
11297    ;;
11298  
# Line 10910 | Line 11310 | freebsd* | dragonfly*)
11310    version_type=freebsd-$objformat
11311    case $version_type in
11312      freebsd-elf*)
11313 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11313 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314 >      soname_spec='$libname$release$shared_ext$major'
11315        need_version=no
11316        need_lib_prefix=no
11317        ;;
11318      freebsd-*)
11319 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11319 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11320        need_version=yes
11321        ;;
11322    esac
# Line 10940 | Line 11341 | freebsd* | dragonfly*)
11341    esac
11342    ;;
11343  
10943 – gnu*)
10944 –  version_type=linux # correct to gnu/linux during the next big refactor
10945 –  need_lib_prefix=no
10946 –  need_version=no
10947 –  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 –  soname_spec='${libname}${release}${shared_ext}$major'
10949 –  shlibpath_var=LD_LIBRARY_PATH
10950 –  shlibpath_overrides_runpath=no
10951 –  hardcode_into_libs=yes
10952 –  ;;
10953 –
11344   haiku*)
11345    version_type=linux # correct to gnu/linux during the next big refactor
11346    need_lib_prefix=no
11347    need_version=no
11348    dynamic_linker="$host_os runtime_loader"
11349 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11350 <  soname_spec='${libname}${release}${shared_ext}$major'
11349 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11350 >  soname_spec='$libname$release$shared_ext$major'
11351    shlibpath_var=LIBRARY_PATH
11352 <  shlibpath_overrides_runpath=yes
11352 >  shlibpath_overrides_runpath=no
11353    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11354    hardcode_into_libs=yes
11355    ;;
# Line 10977 | Line 11367 | hpux9* | hpux10* | hpux11*)
11367      dynamic_linker="$host_os dld.so"
11368      shlibpath_var=LD_LIBRARY_PATH
11369      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 <    soname_spec='${libname}${release}${shared_ext}$major'
11372 <    if test "X$HPUX_IA64_MODE" = X32; then
11370 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11371 >    soname_spec='$libname$release$shared_ext$major'
11372 >    if test 32 = "$HPUX_IA64_MODE"; then
11373        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11374 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11375      else
11376        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11377 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11378      fi
10987 –    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379      ;;
11380    hppa*64*)
11381      shrext_cmds='.sl'
# Line 10992 | Line 11383 | hpux9* | hpux10* | hpux11*)
11383      dynamic_linker="$host_os dld.sl"
11384      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11385      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11386 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 <    soname_spec='${libname}${release}${shared_ext}$major'
11386 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387 >    soname_spec='$libname$release$shared_ext$major'
11388      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11389      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11390      ;;
# Line 11002 | Line 11393 | hpux9* | hpux10* | hpux11*)
11393      dynamic_linker="$host_os dld.sl"
11394      shlibpath_var=SHLIB_PATH
11395      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11396 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 <    soname_spec='${libname}${release}${shared_ext}$major'
11396 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397 >    soname_spec='$libname$release$shared_ext$major'
11398      ;;
11399    esac
11400    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 11016 | Line 11407 | interix[3-9]*)
11407    version_type=linux # correct to gnu/linux during the next big refactor
11408    need_lib_prefix=no
11409    need_version=no
11410 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11411 <  soname_spec='${libname}${release}${shared_ext}$major'
11410 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 >  soname_spec='$libname$release$shared_ext$major'
11412    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11413    shlibpath_var=LD_LIBRARY_PATH
11414    shlibpath_overrides_runpath=no
# Line 11028 | Line 11419 | irix5* | irix6* | nonstopux*)
11419    case $host_os in
11420      nonstopux*) version_type=nonstopux ;;
11421      *)
11422 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11422 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11423                  version_type=linux # correct to gnu/linux during the next big refactor
11424          else
11425                  version_type=irix
# Line 11036 | Line 11427 | irix5* | irix6* | nonstopux*)
11427    esac
11428    need_lib_prefix=no
11429    need_version=no
11430 <  soname_spec='${libname}${release}${shared_ext}$major'
11431 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11430 >  soname_spec='$libname$release$shared_ext$major'
11431 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11432    case $host_os in
11433    irix5* | nonstopux*)
11434      libsuff= shlibsuff=
# Line 11056 | Line 11447 | irix5* | irix6* | nonstopux*)
11447    esac
11448    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11449    shlibpath_overrides_runpath=no
11450 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11451 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11450 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11451 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11452    hardcode_into_libs=yes
11453    ;;
11454  
# Line 11066 | Line 11457 | linux*oldld* | linux*aout* | linux*coff*
11457    dynamic_linker=no
11458    ;;
11459  
11460 + linux*android*)
11461 +  version_type=none # Android doesn't support versioned libraries.
11462 +  need_lib_prefix=no
11463 +  need_version=no
11464 +  library_names_spec='$libname$release$shared_ext'
11465 +  soname_spec='$libname$release$shared_ext'
11466 +  finish_cmds=
11467 +  shlibpath_var=LD_LIBRARY_PATH
11468 +  shlibpath_overrides_runpath=yes
11469 +
11470 +  # This implies no fast_install, which is unacceptable.
11471 +  # Some rework will be needed to allow for fast_install
11472 +  # before this can be enabled.
11473 +  hardcode_into_libs=yes
11474 +
11475 +  dynamic_linker='Android linker'
11476 +  # Don't embed -rpath directories since the linker doesn't support them.
11477 +  hardcode_libdir_flag_spec='-L$libdir'
11478 +  ;;
11479 +
11480   # This must be glibc/ELF.
11481 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11481 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11482    version_type=linux # correct to gnu/linux during the next big refactor
11483    need_lib_prefix=no
11484    need_version=no
11485 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 <  soname_spec='${libname}${release}${shared_ext}$major'
11485 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 >  soname_spec='$libname$release$shared_ext$major'
11487    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11488    shlibpath_var=LD_LIBRARY_PATH
11489    shlibpath_overrides_runpath=no
# Line 11116 | Line 11527 | fi
11527    # before this can be enabled.
11528    hardcode_into_libs=yes
11529  
11530 <  # Append ld.so.conf contents to the search path
11530 >  # Ideally, we could use ldconfig to report *all* directores which are
11531 >  # searched for libraries, however this is still not possible.  Aside from not
11532 >  # being certain /sbin/ldconfig is available, command
11533 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11534 >  # even though it is searched at run-time.  Try to do the best guess by
11535 >  # appending ld.so.conf contents (and includes) to the search path.
11536    if test -f /etc/ld.so.conf; then
11537      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' ' '`
11538      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 11131 | Line 11547 | fi
11547    dynamic_linker='GNU/Linux ld.so'
11548    ;;
11549  
11550 + netbsdelf*-gnu)
11551 +  version_type=linux
11552 +  need_lib_prefix=no
11553 +  need_version=no
11554 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11555 +  soname_spec='${libname}${release}${shared_ext}$major'
11556 +  shlibpath_var=LD_LIBRARY_PATH
11557 +  shlibpath_overrides_runpath=no
11558 +  hardcode_into_libs=yes
11559 +  dynamic_linker='NetBSD ld.elf_so'
11560 +  ;;
11561 +
11562   netbsd*)
11563    version_type=sunos
11564    need_lib_prefix=no
11565    need_version=no
11566    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11567 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11568      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569      dynamic_linker='NetBSD (a.out) ld.so'
11570    else
11571 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11572 <    soname_spec='${libname}${release}${shared_ext}$major'
11571 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572 >    soname_spec='$libname$release$shared_ext$major'
11573      dynamic_linker='NetBSD ld.elf_so'
11574    fi
11575    shlibpath_var=LD_LIBRARY_PATH
# Line 11151 | Line 11579 | netbsd*)
11579  
11580   newsos6)
11581    version_type=linux # correct to gnu/linux during the next big refactor
11582 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583    shlibpath_var=LD_LIBRARY_PATH
11584    shlibpath_overrides_runpath=yes
11585    ;;
# Line 11160 | Line 11588 | newsos6)
11588    version_type=qnx
11589    need_lib_prefix=no
11590    need_version=no
11591 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 <  soname_spec='${libname}${release}${shared_ext}$major'
11591 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592 >  soname_spec='$libname$release$shared_ext$major'
11593    shlibpath_var=LD_LIBRARY_PATH
11594    shlibpath_overrides_runpath=no
11595    hardcode_into_libs=yes
11596    dynamic_linker='ldqnx.so'
11597    ;;
11598  
11599 < openbsd*)
11599 > openbsd* | bitrig*)
11600    version_type=sunos
11601 <  sys_lib_dlsearch_path_spec="/usr/lib"
11601 >  sys_lib_dlsearch_path_spec=/usr/lib
11602    need_lib_prefix=no
11603 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11604 <  case $host_os in
11177 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11178 <    *)                          need_version=no  ;;
11179 <  esac
11180 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 <  shlibpath_var=LD_LIBRARY_PATH
11183 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11184 <    case $host_os in
11185 <      openbsd2.[89] | openbsd2.[89].*)
11186 <        shlibpath_overrides_runpath=no
11187 <        ;;
11188 <      *)
11189 <        shlibpath_overrides_runpath=yes
11190 <        ;;
11191 <      esac
11603 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11604 >    need_version=no
11605    else
11606 <    shlibpath_overrides_runpath=yes
11606 >    need_version=yes
11607    fi
11608 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11609 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11610 +  shlibpath_var=LD_LIBRARY_PATH
11611 +  shlibpath_overrides_runpath=yes
11612    ;;
11613  
11614   os2*)
11615    libname_spec='$name'
11616 <  shrext_cmds=".dll"
11616 >  version_type=windows
11617 >  shrext_cmds=.dll
11618 >  need_version=no
11619    need_lib_prefix=no
11620 <  library_names_spec='$libname${shared_ext} $libname.a'
11620 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11621 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11622 >    v=$($ECHO $release$versuffix | tr -d .-);
11623 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11624 >    $ECHO $n$v`$shared_ext'
11625 >  library_names_spec='${libname}_dll.$libext'
11626    dynamic_linker='OS/2 ld.exe'
11627 <  shlibpath_var=LIBPATH
11627 >  shlibpath_var=BEGINLIBPATH
11628 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11629 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630 >  postinstall_cmds='base_file=`basename \$file`~
11631 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11632 >    dldir=$destdir/`dirname \$dlpath`~
11633 >    test -d \$dldir || mkdir -p \$dldir~
11634 >    $install_prog $dir/$dlname \$dldir/$dlname~
11635 >    chmod a+x \$dldir/$dlname~
11636 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11637 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11638 >    fi'
11639 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11640 >    dlpath=$dir/\$dldll~
11641 >    $RM \$dlpath'
11642    ;;
11643  
11644   osf3* | osf4* | osf5*)
11645    version_type=osf
11646    need_lib_prefix=no
11647    need_version=no
11648 <  soname_spec='${libname}${release}${shared_ext}$major'
11649 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 >  soname_spec='$libname$release$shared_ext$major'
11649 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650    shlibpath_var=LD_LIBRARY_PATH
11651    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11652 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11652 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11653    ;;
11654  
11655   rdos*)
# Line 11222 | Line 11660 | solaris*)
11660    version_type=linux # correct to gnu/linux during the next big refactor
11661    need_lib_prefix=no
11662    need_version=no
11663 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 <  soname_spec='${libname}${release}${shared_ext}$major'
11663 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 >  soname_spec='$libname$release$shared_ext$major'
11665    shlibpath_var=LD_LIBRARY_PATH
11666    shlibpath_overrides_runpath=yes
11667    hardcode_into_libs=yes
# Line 11233 | Line 11671 | solaris*)
11671  
11672   sunos4*)
11673    version_type=sunos
11674 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11674 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11675    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11676    shlibpath_var=LD_LIBRARY_PATH
11677    shlibpath_overrides_runpath=yes
11678 <  if test "$with_gnu_ld" = yes; then
11678 >  if test yes = "$with_gnu_ld"; then
11679      need_lib_prefix=no
11680    fi
11681    need_version=yes
# Line 11245 | Line 11683 | sunos4*)
11683  
11684   sysv4 | sysv4.3*)
11685    version_type=linux # correct to gnu/linux during the next big refactor
11686 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687 <  soname_spec='${libname}${release}${shared_ext}$major'
11686 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 >  soname_spec='$libname$release$shared_ext$major'
11688    shlibpath_var=LD_LIBRARY_PATH
11689    case $host_vendor in
11690      sni)
# Line 11267 | Line 11705 | sysv4 | sysv4.3*)
11705    ;;
11706  
11707   sysv4*MP*)
11708 <  if test -d /usr/nec ;then
11708 >  if test -d /usr/nec; then
11709      version_type=linux # correct to gnu/linux during the next big refactor
11710 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11711 <    soname_spec='$libname${shared_ext}.$major'
11710 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11711 >    soname_spec='$libname$shared_ext.$major'
11712      shlibpath_var=LD_LIBRARY_PATH
11713    fi
11714    ;;
11715  
11716   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717 <  version_type=freebsd-elf
11717 >  version_type=sco
11718    need_lib_prefix=no
11719    need_version=no
11720 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11721 <  soname_spec='${libname}${release}${shared_ext}$major'
11720 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11721 >  soname_spec='$libname$release$shared_ext$major'
11722    shlibpath_var=LD_LIBRARY_PATH
11723    shlibpath_overrides_runpath=yes
11724    hardcode_into_libs=yes
11725 <  if test "$with_gnu_ld" = yes; then
11725 >  if test yes = "$with_gnu_ld"; then
11726      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11727    else
11728      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11302 | Line 11740 | tpf*)
11740    version_type=linux # correct to gnu/linux during the next big refactor
11741    need_lib_prefix=no
11742    need_version=no
11743 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744    shlibpath_var=LD_LIBRARY_PATH
11745    shlibpath_overrides_runpath=no
11746    hardcode_into_libs=yes
# Line 11310 | Line 11748 | tpf*)
11748  
11749   uts4*)
11750    version_type=linux # correct to gnu/linux during the next big refactor
11751 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 <  soname_spec='${libname}${release}${shared_ext}$major'
11751 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11752 >  soname_spec='$libname$release$shared_ext$major'
11753    shlibpath_var=LD_LIBRARY_PATH
11754    ;;
11755  
# Line 11321 | Line 11759 | uts4*)
11759   esac
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11761   $as_echo "$dynamic_linker" >&6; }
11762 < test "$dynamic_linker" = no && can_build_shared=no
11762 > test no = "$dynamic_linker" && can_build_shared=no
11763  
11764   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11765 < if test "$GCC" = yes; then
11765 > if test yes = "$GCC"; then
11766    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11767   fi
11768  
11769 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11770 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11769 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11770 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11771   fi
11772 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11773 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11772 >
11773 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11774 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11775   fi
11776  
11777 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11778 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11779 +
11780 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11781 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11782 +
11783 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11784 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11785 +
11786 +
11787 +
11788 +
11789 +
11790 +
11791  
11792  
11793  
# Line 11431 | Line 11884 | $as_echo_n "checking how to hardcode lib
11884   hardcode_action=
11885   if test -n "$hardcode_libdir_flag_spec" ||
11886     test -n "$runpath_var" ||
11887 <   test "X$hardcode_automatic" = "Xyes" ; then
11887 >   test yes = "$hardcode_automatic"; then
11888  
11889    # We can hardcode non-existent directories.
11890 <  if test "$hardcode_direct" != no &&
11890 >  if test no != "$hardcode_direct" &&
11891       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11892       # have to relink, otherwise we might link with an installed library
11893       # when we should be linking with a yet-to-be-installed one
11894 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11895 <     test "$hardcode_minus_L" != no; then
11894 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11895 >     test no != "$hardcode_minus_L"; then
11896      # Linking always hardcodes the temporary library directory.
11897      hardcode_action=relink
11898    else
# Line 11454 | Line 11907 | fi
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11908   $as_echo "$hardcode_action" >&6; }
11909  
11910 < if test "$hardcode_action" = relink ||
11911 <   test "$inherit_rpath" = yes; then
11910 > if test relink = "$hardcode_action" ||
11911 >   test yes = "$inherit_rpath"; then
11912    # Fast installation is not supported
11913    enable_fast_install=no
11914 < elif test "$shlibpath_overrides_runpath" = yes ||
11915 <     test "$enable_shared" = no; then
11914 > elif test yes = "$shlibpath_overrides_runpath" ||
11915 >     test no = "$enable_shared"; then
11916    # Fast installation is not necessary
11917    enable_fast_install=needless
11918   fi
# Line 11469 | Line 11922 | fi
11922  
11923  
11924  
11925 <  if test "x$enable_dlopen" != xyes; then
11925 >  if test yes != "$enable_dlopen"; then
11926    enable_dlopen=unknown
11927    enable_dlopen_self=unknown
11928    enable_dlopen_self_static=unknown
# Line 11479 | Line 11932 | else
11932  
11933    case $host_os in
11934    beos*)
11935 <    lt_cv_dlopen="load_add_on"
11935 >    lt_cv_dlopen=load_add_on
11936      lt_cv_dlopen_libs=
11937      lt_cv_dlopen_self=yes
11938      ;;
11939  
11940    mingw* | pw32* | cegcc*)
11941 <    lt_cv_dlopen="LoadLibrary"
11941 >    lt_cv_dlopen=LoadLibrary
11942      lt_cv_dlopen_libs=
11943      ;;
11944  
11945    cygwin*)
11946 <    lt_cv_dlopen="dlopen"
11946 >    lt_cv_dlopen=dlopen
11947      lt_cv_dlopen_libs=
11948      ;;
11949  
11950    darwin*)
11951 <  # if libdl is installed we need to link against it
11951 >    # if libdl is installed we need to link against it
11952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11953   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11954   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11533 | Line 11986 | fi
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11987   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11988   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11989 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11989 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11990   else
11991  
11992 <    lt_cv_dlopen="dyld"
11992 >    lt_cv_dlopen=dyld
11993      lt_cv_dlopen_libs=
11994      lt_cv_dlopen_self=yes
11995  
# Line 11544 | Line 11997 | fi
11997  
11998      ;;
11999  
12000 +  tpf*)
12001 +    # Don't try to run any link tests for TPF.  We know it's impossible
12002 +    # because TPF is a cross-compiler, and we know how we open DSOs.
12003 +    lt_cv_dlopen=dlopen
12004 +    lt_cv_dlopen_libs=
12005 +    lt_cv_dlopen_self=no
12006 +    ;;
12007 +
12008    *)
12009      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12010   if test "x$ac_cv_func_shl_load" = xyes; then :
12011 <  lt_cv_dlopen="shl_load"
12011 >  lt_cv_dlopen=shl_load
12012   else
12013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12014   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11586 | Line 12047 | fi
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12048   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12049   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12050 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12050 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12051   else
12052    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12053   if test "x$ac_cv_func_dlopen" = xyes; then :
12054 <  lt_cv_dlopen="dlopen"
12054 >  lt_cv_dlopen=dlopen
12055   else
12056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12057   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11629 | Line 12090 | fi
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12091   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12092   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12093 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12093 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12094   else
12095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12096   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11668 | Line 12129 | fi
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12130   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12131   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12132 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12132 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12133   else
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12135   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11707 | Line 12168 | fi
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12169   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12170   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12171 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12171 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12172   fi
12173  
12174  
# Line 11728 | Line 12189 | fi
12189      ;;
12190    esac
12191  
12192 <  if test "x$lt_cv_dlopen" != xno; then
11732 <    enable_dlopen=yes
11733 <  else
12192 >  if test no = "$lt_cv_dlopen"; then
12193      enable_dlopen=no
12194 +  else
12195 +    enable_dlopen=yes
12196    fi
12197  
12198    case $lt_cv_dlopen in
12199    dlopen)
12200 <    save_CPPFLAGS="$CPPFLAGS"
12201 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12200 >    save_CPPFLAGS=$CPPFLAGS
12201 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12202  
12203 <    save_LDFLAGS="$LDFLAGS"
12203 >    save_LDFLAGS=$LDFLAGS
12204      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12205  
12206 <    save_LIBS="$LIBS"
12206 >    save_LIBS=$LIBS
12207      LIBS="$lt_cv_dlopen_libs $LIBS"
12208  
12209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11750 | Line 12211 | $as_echo_n "checking whether a program c
12211   if ${lt_cv_dlopen_self+:} false; then :
12212    $as_echo_n "(cached) " >&6
12213   else
12214 <          if test "$cross_compiling" = yes; then :
12214 >          if test yes = "$cross_compiling"; then :
12215    lt_cv_dlopen_self=cross
12216   else
12217    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11797 | Line 12258 | else
12258   #  endif
12259   #endif
12260  
12261 < /* When -fvisbility=hidden is used, assume the code has been annotated
12261 > /* When -fvisibility=hidden is used, assume the code has been annotated
12262     correspondingly for the symbols needed.  */
12263 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12263 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12264   int fnord () __attribute__((visibility("default")));
12265   #endif
12266  
# Line 11829 | Line 12290 | _LT_EOF
12290    (eval $ac_link) 2>&5
12291    ac_status=$?
12292    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12293 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12294      (./conftest; exit; ) >&5 2>/dev/null
12295      lt_status=$?
12296      case x$lt_status in
# Line 11849 | Line 12310 | fi
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12311   $as_echo "$lt_cv_dlopen_self" >&6; }
12312  
12313 <    if test "x$lt_cv_dlopen_self" = xyes; then
12313 >    if test yes = "$lt_cv_dlopen_self"; then
12314        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12315        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12316   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12317   if ${lt_cv_dlopen_self_static+:} false; then :
12318    $as_echo_n "(cached) " >&6
12319   else
12320 <          if test "$cross_compiling" = yes; then :
12320 >          if test yes = "$cross_compiling"; then :
12321    lt_cv_dlopen_self_static=cross
12322   else
12323    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11903 | Line 12364 | else
12364   #  endif
12365   #endif
12366  
12367 < /* When -fvisbility=hidden is used, assume the code has been annotated
12367 > /* When -fvisibility=hidden is used, assume the code has been annotated
12368     correspondingly for the symbols needed.  */
12369 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12369 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12370   int fnord () __attribute__((visibility("default")));
12371   #endif
12372  
# Line 11935 | Line 12396 | _LT_EOF
12396    (eval $ac_link) 2>&5
12397    ac_status=$?
12398    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12399 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12400      (./conftest; exit; ) >&5 2>/dev/null
12401      lt_status=$?
12402      case x$lt_status in
# Line 11956 | Line 12417 | fi
12417   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12418      fi
12419  
12420 <    CPPFLAGS="$save_CPPFLAGS"
12421 <    LDFLAGS="$save_LDFLAGS"
12422 <    LIBS="$save_LIBS"
12420 >    CPPFLAGS=$save_CPPFLAGS
12421 >    LDFLAGS=$save_LDFLAGS
12422 >    LIBS=$save_LIBS
12423      ;;
12424    esac
12425  
# Line 12002 | Line 12463 | else
12463   # FIXME - insert some real tests, host_os isn't really good enough
12464    case $host_os in
12465    darwin*)
12466 <    if test -n "$STRIP" ; then
12466 >    if test -n "$STRIP"; then
12467        striplib="$STRIP -x"
12468        old_striplib="$STRIP -S"
12469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 12030 | Line 12491 | fi
12491  
12492  
12493  
12494 <  # Report which library types will actually be built
12494 >  # Report what library types will actually be built
12495    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12496   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 12038 | Line 12499 | $as_echo "$can_build_shared" >&6; }
12499  
12500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12501   $as_echo_n "checking whether to build shared libraries... " >&6; }
12502 <  test "$can_build_shared" = "no" && enable_shared=no
12502 >  test no = "$can_build_shared" && enable_shared=no
12503  
12504    # On AIX, shared libraries and static libraries use the same namespace, and
12505    # are all built from PIC.
12506    case $host_os in
12507    aix3*)
12508 <    test "$enable_shared" = yes && enable_static=no
12508 >    test yes = "$enable_shared" && enable_static=no
12509      if test -n "$RANLIB"; then
12510        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12511        postinstall_cmds='$RANLIB $lib'
# Line 12052 | Line 12513 | $as_echo_n "checking whether to build sh
12513      ;;
12514  
12515    aix[4-9]*)
12516 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12517 <      test "$enable_shared" = yes && enable_static=no
12516 >    if test ia64 != "$host_cpu"; then
12517 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12518 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12519 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12520 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12521 >      esac
12522      fi
12523      ;;
12524    esac
# Line 12063 | Line 12528 | $as_echo "$enable_shared" >&6; }
12528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12529   $as_echo_n "checking whether to build static libraries... " >&6; }
12530    # Make sure either enable_shared or enable_static is yes.
12531 <  test "$enable_shared" = yes || enable_static=yes
12531 >  test yes = "$enable_shared" || enable_static=yes
12532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12533   $as_echo "$enable_static" >&6; }
12534  
# Line 12077 | Line 12542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12542   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12543   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12544  
12545 < CC="$lt_save_CC"
12545 > CC=$lt_save_CC
12546  
12547  
12548  
# Line 12101 | Line 12566 | CC="$lt_save_CC"
12566   # Only expand once:
12567  
12568  
12569 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12570 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12569 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12570 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12571   if ${libltdl_cv_shlibext+:} false; then :
12572    $as_echo_n "(cached) " >&6
12573   else
# Line 12129 | Line 12594 | cat >>confdefs.h <<_ACEOF
12594   _ACEOF
12595  
12596   fi
12597 + if test -n "$shared_archive_member_spec"; then
12598  
12599 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12600 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12599 > cat >>confdefs.h <<_ACEOF
12600 > #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12601 > _ACEOF
12602 >
12603 > fi
12604 >
12605 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12606 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12607   if ${lt_cv_module_path_var+:} false; then :
12608    $as_echo_n "(cached) " >&6
12609   else
12610 <  lt_cv_module_path_var="$shlibpath_var"
12610 >  lt_cv_module_path_var=$shlibpath_var
12611   fi
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12613   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12152 | Line 12624 | $as_echo_n "checking for the default lib
12624   if ${lt_cv_sys_dlsearch_path+:} false; then :
12625    $as_echo_n "(cached) " >&6
12626   else
12627 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12627 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12628   fi
12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12630   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12160 | Line 12632 | if test -n "$lt_cv_sys_dlsearch_path"; t
12632    sys_dlsearch_path=
12633    for dir in $lt_cv_sys_dlsearch_path; do
12634      if test -z "$sys_dlsearch_path"; then
12635 <      sys_dlsearch_path="$dir"
12635 >      sys_dlsearch_path=$dir
12636      else
12637 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12637 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12638      fi
12639    done
12640  
# Line 12182 | Line 12654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12654   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656  
12657 + lt_dlload_save_LIBS=$LIBS
12658  
12659   LIBADD_DLOPEN=
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12240 | Line 12713 | if test "$ac_res" != no; then :
12713  
12714   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12715  
12716 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12717 <          LIBADD_DLOPEN="-ldl"
12716 >        if test "$ac_cv_search_dlopen" != "none required"; then
12717 >          LIBADD_DLOPEN=-ldl
12718          fi
12719 <        libltdl_cv_lib_dl_dlopen="yes"
12719 >        libltdl_cv_lib_dl_dlopen=yes
12720          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12721   else
12722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12264 | Line 12737 | if ac_fn_c_try_link "$LINENO"; then :
12737  
12738   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12739  
12740 <            libltdl_cv_func_dlopen="yes"
12740 >            libltdl_cv_func_dlopen=yes
12741              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12742   else
12743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12307 | Line 12780 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12780  
12781   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12782  
12783 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12783 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12784                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12785   fi
12786  
# Line 12316 | Line 12789 | rm -f core conftest.err conftest.$ac_obj
12789      conftest$ac_exeext conftest.$ac_ext
12790   fi
12791  
12792 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12792 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12793   then
12794 <  lt_save_LIBS="$LIBS"
12794 >  lt_save_LIBS=$LIBS
12795    LIBS="$LIBS $LIBADD_DLOPEN"
12796    for ac_func in dlerror
12797   do :
# Line 12331 | Line 12804 | _ACEOF
12804   fi
12805   done
12806  
12807 <  LIBS="$lt_save_LIBS"
12807 >  LIBS=$lt_save_LIBS
12808   fi
12809  
12810  
# Line 12384 | Line 12857 | if test "x$ac_cv_lib_dld_shl_load" = xye
12857   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12858  
12859              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12860 <            LIBADD_SHL_LOAD="-ldld"
12860 >            LIBADD_SHL_LOAD=-ldld
12861   fi
12862  
12863   fi
# Line 12406 | Line 12879 | fi
12879   beos*)
12880    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12881    ;;
12882 < cygwin* | mingw* | os2* | pw32*)
12882 > cygwin* | mingw* | pw32*)
12883    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12884   "
12885   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12484 | Line 12957 | fi
12957   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12958  
12959  
12960 + LIBS=$lt_dlload_save_LIBS
12961   ac_ext=c
12962   ac_cpp='$CPP $CPPFLAGS'
12963   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12538 | Line 13012 | $as_echo "$lt_cv_sys_symbol_underscore"
13012    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13013  
13014  
13015 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13016 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
13017 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12544 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13015 > if test yes = "$lt_cv_sys_symbol_underscore"; then
13016 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
13017 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13018   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13019   if ${libltdl_cv_need_uscore+:} false; then :
13020    $as_echo_n "(cached) " >&6
13021   else
13022    libltdl_cv_need_uscore=unknown
13023 <          save_LIBS="$LIBS"
13024 <          LIBS="$LIBS $LIBADD_DLOPEN"
13025 <          if test "$cross_compiling" = yes; then :
13026 <  libltdl_cv_need_uscore=cross
12554 < else
12555 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 <  lt_status=$lt_dlunknown
12557 <  cat > conftest.$ac_ext <<_LT_EOF
13023 >      dlsym_uscore_save_LIBS=$LIBS
13024 >      LIBS="$LIBS $LIBADD_DLOPEN"
13025 >      libname=conftmod # stay within 8.3 filename limits!
13026 >      cat >$libname.$ac_ext <<_LT_EOF
13027   #line $LINENO "configure"
13028   #include "confdefs.h"
13029 + /* When -fvisibility=hidden is used, assume the code has been annotated
13030 +   correspondingly for the symbols needed.  */
13031 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13032 + int fnord () __attribute__((visibility("default")));
13033 + #endif
13034 + int fnord () { return 42; }
13035 + _LT_EOF
13036  
13037 +      # ltfn_module_cmds module_cmds
13038 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13039 +      # $module_cmds or $archive_cmds type content.
13040 +      ltfn_module_cmds ()
13041 +      {( # subshell avoids polluting parent global environment
13042 +          module_cmds_save_ifs=$IFS; IFS='~'
13043 +          for cmd in $1; do
13044 +            IFS=$module_cmds_save_ifs
13045 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13046 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13047 +            major=; versuffix=; verstring=; deplibs=
13048 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13049 +            eval $cmd
13050 +          done
13051 +          IFS=$module_cmds_save_ifs
13052 +      )}
13053 +
13054 +      # Compile a loadable module using libtool macro expansion results.
13055 +      $CC $pic_flag -c $libname.$ac_ext
13056 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13057 +
13058 +      # Try to fetch fnord with dlsym().
13059 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13060 +      cat >conftest.$ac_ext <<_LT_EOF
13061 + #line $LINENO "configure"
13062 + #include "confdefs.h"
13063   #if HAVE_DLFCN_H
13064   #include <dlfcn.h>
13065   #endif
12564 –
13066   #include <stdio.h>
13067 <
12567 < #ifdef RTLD_GLOBAL
12568 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12569 < #else
13067 > #ifndef RTLD_GLOBAL
13068   #  ifdef DL_GLOBAL
13069 < #    define LT_DLGLOBAL         DL_GLOBAL
13069 > #    define RTLD_GLOBAL DL_GLOBAL
13070   #  else
13071 < #    define LT_DLGLOBAL         0
13071 > #    define RTLD_GLOBAL 0
13072   #  endif
13073   #endif
13074 <
13075 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13076 <   find out it does not work in some platform. */
12579 < #ifndef LT_DLLAZY_OR_NOW
12580 < #  ifdef RTLD_LAZY
12581 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13074 > #ifndef RTLD_NOW
13075 > #  ifdef DL_NOW
13076 > #    define RTLD_NOW DL_NOW
13077   #  else
13078 < #    ifdef DL_LAZY
12584 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12585 < #    else
12586 < #      ifdef RTLD_NOW
12587 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12588 < #      else
12589 < #        ifdef DL_NOW
12590 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12591 < #        else
12592 < #          define LT_DLLAZY_OR_NOW      0
12593 < #        endif
12594 < #      endif
12595 < #    endif
13078 > #    define RTLD_NOW 0
13079   #  endif
13080   #endif
13081 <
13082 < /* When -fvisbility=hidden is used, assume the code has been annotated
13083 <   correspondingly for the symbols needed.  */
13084 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13085 < int fnord () __attribute__((visibility("default")));
13086 < #endif
13087 <
13088 < int fnord () { return 42; }
13089 < int main ()
12607 < {
12608 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 <  int status = $lt_dlunknown;
12610 <
12611 <  if (self)
12612 <    {
12613 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13081 > int main () {
13082 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13083 >  int status = $libltdl_dlunknown;
13084 >  if (handle) {
13085 >    if (dlsym (handle, "fnord"))
13086 >      status = $libltdl_dlnouscore;
13087 >    else {
13088 >      if (dlsym (handle, "_fnord"))
13089 >        status = $libltdl_dluscore;
13090        else
13091 <        {
12616 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12617 <          else puts (dlerror ());
12618 <        }
12619 <      /* dlclose (self); */
13091 >        puts (dlerror ());
13092      }
13093 <  else
13093 >    dlclose (handle);
13094 >  } else
13095      puts (dlerror ());
12623 –
13096    return status;
13097   }
13098   _LT_EOF
13099 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13099 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13100    (eval $ac_link) 2>&5
13101    ac_status=$?
13102    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13103 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13104 <    (./conftest; exit; ) >&5 2>/dev/null
13105 <    lt_status=$?
13106 <    case x$lt_status in
13107 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13108 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13109 <      x$lt_dlunknown|x*)  ;;
13110 <    esac
13111 <  else :
13112 <    # compilation failed
13113 <
12642 <  fi
12643 < fi
12644 < rm -fr conftest*
12645 <
12646 <          LIBS="$save_LIBS"
13103 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13104 >        (./conftest; exit; ) >&5 2>/dev/null
13105 >        libltdl_status=$?
13106 >        case x$libltdl_status in
13107 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13108 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13109 >          x*) libltdl_cv_need_uscore=unknown ;;
13110 >        esac
13111 >      fi
13112 >      rm -rf conftest* $libname*
13113 >      LIBS=$dlsym_uscore_save_LIBS
13114  
13115   fi
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12651 | Line 13118 | $as_echo "$libltdl_cv_need_uscore" >&6;
13118    fi
13119   fi
13120  
13121 < if test x"$libltdl_cv_need_uscore" = xyes; then
13121 > if test yes = "$libltdl_cv_need_uscore"; then
13122  
13123   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13124  
# Line 12670 | Line 13137 | else
13137    case $host_os in
13138    aix3*|aix4.1.*|aix4.2.*)
13139      # Unknown whether this is true for these versions of AIX, but
13140 <    # we want this `case' here to explicitly catch those versions.
13140 >    # we want this 'case' here to explicitly catch those versions.
13141      lt_cv_sys_dlopen_deplibs=unknown
13142      ;;
13143    aix[4-9]*)
# Line 12683 | Line 13150 | else
13150        ;;
13151      esac
13152      ;;
13153 +  bitrig*)
13154 +    lt_cv_sys_dlopen_deplibs=yes
13155 +    ;;
13156    darwin*)
13157      # Assuming the user has installed a libdl from somewhere, this is true
13158      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12711 | Line 13181 | else
13181      # at 6.2 and later dlopen does load deplibs.
13182      lt_cv_sys_dlopen_deplibs=yes
13183      ;;
13184 <  netbsd*)
13184 >  netbsd* | netbsdelf*-gnu)
13185      lt_cv_sys_dlopen_deplibs=yes
13186      ;;
13187    openbsd*)
# Line 12720 | Line 13190 | else
13190    osf[1234]*)
13191      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13192      # it did *not* use an RPATH in a shared library to find objects the
13193 <    # library depends on, so we explicitly say `no'.
13193 >    # library depends on, so we explicitly say 'no'.
13194      lt_cv_sys_dlopen_deplibs=no
13195      ;;
13196    osf5.0|osf5.0a|osf5.1)
# Line 12729 | Line 13199 | else
13199      # that the library depends on, but there's no easy way to know if that
13200      # patch is installed.  Since this is the case, all we can really
13201      # say is unknown -- it depends on the patch being installed.  If
13202 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13202 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13203      lt_cv_sys_dlopen_deplibs=unknown
13204      ;;
13205    osf*)
13206      # the two cases above should catch all versions of osf <= 5.1.  Read
13207      # the comments above for what we know about them.
13208      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13209 <    # is used to find them so we can finally say `yes'.
13209 >    # is used to find them so we can finally say 'yes'.
13210      lt_cv_sys_dlopen_deplibs=yes
13211      ;;
13212    qnx*)
# Line 12753 | Line 13223 | else
13223   fi
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13225   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13226 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13226 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13227  
13228   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13229  
13230   fi
13231  
12762 – :
13232  
13233   for ac_header in argz.h
13234   do :
# Line 12796 | Line 13265 | $as_echo "#define __error_t_defined 1" >
13265   fi
13266  
13267  
13268 < ARGZ_H=
13268 > LT_ARGZ_H=
13269   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13270          argz_next argz_stringify
13271   do :
# Line 12808 | Line 13277 | if eval test \"x\$"$as_ac_var"\" = x"yes
13277   _ACEOF
13278  
13279   else
13280 <  ARGZ_H=argz.h;
13280 >  LT_ARGZ_H=lt__argz.h;
13281  
13282 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13282 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13283  
13284   fi
13285   done
13286  
13287  
13288 < if test -z "$ARGZ_H"; then :
13288 > if test -z "$LT_ARGZ_H"; then :
13289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13290   $as_echo_n "checking if argz actually works... " >&6; }
13291   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12825 | Line 13294 | else
13294    case $host_os in #(
13295           *cygwin*)
13296             lt_cv_sys_argz_works=no
13297 <           if test "$cross_compiling" != no; then
13297 >           if test no != "$cross_compiling"; then
13298               lt_cv_sys_argz_works="guessing no"
13299             else
13300               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12836 | Line 13305 | else
13305               lt_os_major=${2-0}
13306               lt_os_minor=${3-0}
13307               lt_os_micro=${4-0}
13308 <             if test "$lt_os_major" -gt 1 \
13309 <                || { test "$lt_os_major" -eq 1 \
13310 <                  && { test "$lt_os_minor" -gt 5 \
13311 <                    || { test "$lt_os_minor" -eq 5 \
13312 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13308 >             if test 1 -lt "$lt_os_major" \
13309 >                || { test 1 -eq "$lt_os_major" \
13310 >                  && { test 5 -lt "$lt_os_minor" \
13311 >                    || { test 5 -eq "$lt_os_minor" \
13312 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13313                 lt_cv_sys_argz_works=yes
13314               fi
13315             fi
# Line 12850 | Line 13319 | else
13319   fi
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13321   $as_echo "$lt_cv_sys_argz_works" >&6; }
13322 <     if test "$lt_cv_sys_argz_works" = yes; then :
13322 >     if test yes = "$lt_cv_sys_argz_works"; then :
13323  
13324   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13325  
13326   else
13327 <  ARGZ_H=argz.h
13327 >  LT_ARGZ_H=lt__argz.h
13328  
13329  
13330 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13330 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13331  
13332   fi
13333   fi
# Line 12879 | Line 13348 | else
13348   fi
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13350   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13351 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13351 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13352  
13353   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13354  
# Line 12903 | Line 13372 | if test "${with_included_ltdl+set}" = se
13372   fi
13373  
13374  
13375 < if test "x$with_included_ltdl" != xyes; then
13375 > if test yes != "$with_included_ltdl"; then
13376    # We are not being forced to use the included libltdl sources, so
13377    # decide whether there is a useful installed version we can use.
13378    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12979 | Line 13448 | fi
13448   if test -n "$with_ltdl_include"; then
13449    if test -f "$with_ltdl_include/ltdl.h"; then :
13450    else
13451 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13451 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13452    fi
13453   else
13454    with_ltdl_include=no
# Line 12995 | Line 13464 | fi
13464   if test -n "$with_ltdl_lib"; then
13465    if test -f "$with_ltdl_lib/libltdl.la"; then :
13466    else
13467 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13467 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13468    fi
13469   else
13470    with_ltdl_lib=no
# Line 13008 | Line 13477 | case ,$with_included_ltdl,$with_ltdl_inc
13477    "") enable_ltdl_convenience=yes
13478        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13479   esac
13480 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13480 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13481   LTDLDEPS=$LIBLTDL
13482 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13482 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13483  
13484  
13485  
13486  
13487  
13488   # For backwards non-gettext consistent compatibility...
13489 < INCLTDL="$LTDLINCL"
13489 > INCLTDL=$LTDLINCL
13490  
13491  
13492          ;;
# Line 13032 | Line 13501 | $as_echo "#define HAVE_LTDL 1" >>confdef
13501          LTDLINCL=
13502          ;;
13503    ,no*,no,*)
13504 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13504 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13505          ;;
13506    *)    with_included_ltdl=no
13507          LIBLTDL="-L$with_ltdl_lib -lltdl"
13508          LTDLDEPS=
13509 <        LTDLINCL="-I$with_ltdl_include"
13509 >        LTDLINCL=-I$with_ltdl_include
13510          ;;
13511   esac
13512 < INCLTDL="$LTDLINCL"
13512 > INCLTDL=$LTDLINCL
13513  
13514   # Report our decision...
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 13060 | Line 13529 | if test "${enable_ltdl_install+set}" = s
13529   fi
13530  
13531  
13532 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13532 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13533    *yes*) ;;
13534    *) enable_ltdl_convenience=yes ;;
13535   esac
13536  
13537 < if test x"${enable_ltdl_install-no}" != xno; then
13537 > if test no != "${enable_ltdl_install-no}"; then
13538    INSTALL_LTDL_TRUE=
13539    INSTALL_LTDL_FALSE='#'
13540   else
# Line 13073 | Line 13542 | else
13542    INSTALL_LTDL_FALSE=
13543   fi
13544  
13545 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13545 >  if test no != "${enable_ltdl_convenience-no}"; then
13546    CONVENIENCE_LTDL_TRUE=
13547    CONVENIENCE_LTDL_FALSE='#'
13548   else
# Line 13177 | Line 13646 | LIBTOOL="$LIBTOOL --silent"
13646  
13647  
13648    if test "X$CC" != "X"; then
13649 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13650 < $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13649 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13650 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13651   if ${ssp_cv_cc+:} false; then :
13652    $as_echo_n "(cached) " >&6
13653   else
13654    ssp_old_cflags="$CFLAGS"
13655 <       CFLAGS="$CFLAGS -fstack-protector"
13655 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13656         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657   /* end confdefs.h.  */
13658  
# Line 13207 | Line 13676 | fi
13676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13677   $as_echo "$ssp_cv_cc" >&6; }
13678      if test $ssp_cv_cc = yes; then
13679 <      CFLAGS="$CFLAGS -fstack-protector"
13679 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13680  
13681   $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13682  
13683 <    fi
13684 <  fi
13685 <
13686 <
13687 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
13219 < $as_echo_n "checking whether C compiler accepts ... " >&6; }
13220 < if ${ax_cv_check_cflags__+:} false; then :
13683 >    else
13684 >      unset ssp_cv_cc
13685 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13686 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13687 > if ${ssp_cv_cc+:} false; then :
13688    $as_echo_n "(cached) " >&6
13689   else
13690 <
13691 <  ax_check_save_flags=$CFLAGS
13692 <  CFLAGS="$CFLAGS  "
13226 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 >  ssp_old_cflags="$CFLAGS"
13691 >         CFLAGS="$CFLAGS -fstack-protector"
13692 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693   /* end confdefs.h.  */
13694  
13695   int
# Line 13235 | Line 13701 | main ()
13701   }
13702   _ACEOF
13703   if ac_fn_c_try_compile "$LINENO"; then :
13704 <  ax_cv_check_cflags__=yes
13704 >  ssp_cv_cc=yes
13705   else
13706 <  ax_cv_check_cflags__=no
13706 >  ssp_cv_cc=no
13707   fi
13708   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 <  CFLAGS=$ax_check_save_flags
13244 < fi
13245 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
13246 < $as_echo "$ax_cv_check_cflags__" >&6; }
13247 < if test x"$ax_cv_check_cflags__" = xyes; then :
13248 <  :
13249 < else
13250 <  :
13251 < fi
13709 >         CFLAGS="$ssp_old_cflags"
13710  
13253 – if ${CFLAGS+:} false; then :
13254 –  case " $CFLAGS " in
13255 –    *"  "*)
13256 –      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13257 –  (: CFLAGS already contains ) 2>&5
13258 –  ac_status=$?
13259 –  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 –  test $ac_status = 0; }
13261 –      ;;
13262 –    *)
13263 –      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13264 –  (: CFLAGS="$CFLAGS ") 2>&5
13265 –  ac_status=$?
13266 –  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 –  test $ac_status = 0; }
13268 –      CFLAGS="$CFLAGS "
13269 –      ;;
13270 –   esac
13271 – else
13272 –  CFLAGS=""
13711   fi
13712 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13713 + $as_echo "$ssp_cv_cc" >&6; }
13714 +      if test $ssp_cv_cc = yes; then
13715 +        CFLAGS="$CFLAGS -fstack-protector"
13716  
13717 + $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13718  
13719 +      fi
13720 +    fi
13721 +  fi
13722  
13723 < for flag in -fno-strict-aliasing; do
13724 <  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13725 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13726 < $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13281 < if eval \${$as_CACHEVAR+:} false; then :
13723 >
13724 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13725 > $as_echo_n "checking whether libssp exists... " >&6; }
13726 > if ${ssp_cv_lib+:} false; then :
13727    $as_echo_n "(cached) " >&6
13728   else
13729 <
13730 <  ax_check_save_flags=$CFLAGS
13731 <  CFLAGS="$CFLAGS  $flag"
13287 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 >  ssp_old_libs="$LIBS"
13730 >     LIBS="$LIBS -lssp"
13731 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732   /* end confdefs.h.  */
13733  
13734   int
# Line 13295 | Line 13739 | main ()
13739    return 0;
13740   }
13741   _ACEOF
13742 < if ac_fn_c_try_compile "$LINENO"; then :
13743 <  eval "$as_CACHEVAR=yes"
13300 < else
13301 <  eval "$as_CACHEVAR=no"
13302 < fi
13303 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 <  CFLAGS=$ax_check_save_flags
13305 < fi
13306 < eval ac_res=\$$as_CACHEVAR
13307 <               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13308 < $as_echo "$ac_res" >&6; }
13309 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13310 <  if ${CFLAGS+:} false; then :
13311 <  case " $CFLAGS " in
13312 <    *" $flag "*)
13313 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13314 <  (: CFLAGS already contains $flag) 2>&5
13315 <  ac_status=$?
13316 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13317 <  test $ac_status = 0; }
13318 <      ;;
13319 <    *)
13320 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13321 <  (: CFLAGS="$CFLAGS $flag") 2>&5
13322 <  ac_status=$?
13323 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13324 <  test $ac_status = 0; }
13325 <      CFLAGS="$CFLAGS $flag"
13326 <      ;;
13327 <   esac
13742 > if ac_fn_c_try_link "$LINENO"; then :
13743 >  ssp_cv_lib=yes
13744   else
13745 <  CFLAGS="$flag"
13745 >  ssp_cv_lib=no
13746   fi
13747 + rm -f core conftest.err conftest.$ac_objext \
13748 +    conftest$ac_exeext conftest.$ac_ext
13749 +     LIBS="$ssp_old_libs"
13750  
13332 – else
13333 –  :
13751   fi
13752 <
13753 < done
13754 <
13752 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13753 > $as_echo "$ssp_cv_lib" >&6; }
13754 >  if test $ssp_cv_lib = yes; then
13755 >    LIBS="$LIBS -lssp"
13756 >  fi
13757  
13758  
13759    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
# Line 13519 | Line 13938 | else
13938    as_fn_error $? "socket library not found" "$LINENO" 5
13939   fi
13940  
13522 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13523 –   #include <sys/socket.h>
13524 –   #include <netdb.h>
13525 –
13526 – "
13527 – if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13528 –
13529 – cat >>confdefs.h <<_ACEOF
13530 – #define HAVE_STRUCT_SOCKADDR_IN 1
13531 – _ACEOF
13532 –
13533 –
13534 – fi
13535 – ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13536 –   #include <sys/socket.h>
13537 –   #include <netdb.h>
13538 –
13539 – "
13540 – if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13541 –
13542 – cat >>confdefs.h <<_ACEOF
13543 – #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13544 – _ACEOF
13545 –
13546 –
13547 – fi
13548 – ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13549 –   #include <sys/socket.h>
13550 –   #include <netdb.h>
13551 –
13552 – "
13553 – if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13554 –
13555 – cat >>confdefs.h <<_ACEOF
13556 – #define HAVE_STRUCT_ADDRINFO 1
13557 – _ACEOF
13558 –
13559 –
13560 – fi
13561 –
13562 –  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13563 –  <sys/socket.h>
13564 – "
13565 – if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13566 –
13567 – cat >>confdefs.h <<_ACEOF
13568 – #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13569 – _ACEOF
13570 –
13571 –
13572 – fi
13573 –
13574 –
13575 –
13576 –  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13577 – "
13578 – if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13579 –
13580 – $as_echo "#define IPV6 1" >>confdefs.h
13581 –
13582 – fi
13583 –
13941  
13942  
13943   # Checks for typedefs, structures, and compiler characteristics.
# Line 13865 | Line 14222 | done
14222  
14223  
14224  
13868 –
13869 –
13870 –
13871 –
14225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14226   $as_echo_n "checking for library containing crypt... " >&6; }
14227   if ${ac_cv_search_crypt+:} false; then :
# Line 13926 | Line 14279 | if test "$ac_res" != no; then :
14279   fi
14280  
14281  
13929 – # Check whether --enable-libgeoip was given.
13930 – if test "${enable_libgeoip+set}" = set; then :
13931 –  enableval=$enable_libgeoip;
13932 – else
13933 –  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13934 – if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13935 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13936 – $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13937 – if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13938 –  $as_echo_n "(cached) " >&6
13939 – else
13940 –  ac_func_search_save_LIBS=$LIBS
13941 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 – /* end confdefs.h.  */
13943 –
13944 – /* Override any GCC internal prototype to avoid an error.
13945 –   Use char because int might match the return type of a GCC
13946 –   builtin and then its argument prototype would still apply.  */
13947 – #ifdef __cplusplus
13948 – extern "C"
13949 – #endif
13950 – char GeoIP_id_by_ipnum_v6_gl ();
13951 – int
13952 – main ()
13953 – {
13954 – return GeoIP_id_by_ipnum_v6_gl ();
13955 –  ;
13956 –  return 0;
13957 – }
13958 – _ACEOF
13959 – for ac_lib in '' GeoIP; do
13960 –  if test -z "$ac_lib"; then
13961 –    ac_res="none required"
13962 –  else
13963 –    ac_res=-l$ac_lib
13964 –    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13965 –  fi
13966 –  if ac_fn_c_try_link "$LINENO"; then :
13967 –  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13968 – fi
13969 – rm -f core conftest.err conftest.$ac_objext \
13970 –    conftest$ac_exeext
13971 –  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13972 –  break
13973 – fi
13974 – done
13975 – if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13976 –
13977 – else
13978 –  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13979 – fi
13980 – rm conftest.$ac_ext
13981 – LIBS=$ac_func_search_save_LIBS
13982 – fi
13983 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13984 – $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13985 – ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13986 – if test "$ac_res" != no; then :
13987 –  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13988 –
13989 – $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13990 –
13991 – fi
13992 –
13993 – fi
13994 –
13995 –
13996 – fi
13997 –
13998 –
13999 –
14000 – # Check whether --enable-openssl was given.
14001 – if test "${enable_openssl+set}" = set; then :
14002 –  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14003 – else
14004 –   cf_enable_openssl="auto"
14005 – fi
14006 –
14007 – { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14008 – $as_echo_n "checking for OpenSSL... " >&6; }
14009 – if test "$cf_enable_openssl" != "no"; then
14010 –  cf_openssl_basedir=""
14011 –  if test "$cf_enable_openssl" != "auto" &&
14012 –     test "$cf_enable_openssl" != "yes"; then
14013 –          cf_openssl_basedir="${cf_enable_openssl}"
14014 –  else
14015 –        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14016 –                /opt /opt/openssl /usr/local/openssl; do
14017 –      if test -f "${dirs}/include/openssl/opensslv.h"; then
14018 –        cf_openssl_basedir="${dirs}"
14019 –        break
14020 –      fi
14021 –    done
14022 –    unset dirs
14023 –  fi
14024 –
14025 –    if test ! -z "$cf_openssl_basedir"; then
14026 –    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14027 –      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14028 –      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14029 –    else
14030 –                  cf_openssl_basedir=""
14031 –    fi
14032 –  else
14033 –                            if test -f "/usr/include/openssl/opensslv.h"; then
14034 –      cf_openssl_basedir="/usr"
14035 –    fi
14036 –  fi
14037 –
14038 –      if test ! -z "$cf_openssl_basedir"; then
14039 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14040 – $as_echo "$cf_openssl_basedir" >&6; }
14041 –    cf_enable_openssl="yes"
14042 –  else
14043 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14044 – $as_echo "not found. Please check your path." >&6; }
14045 –    cf_enable_openssl="no"
14046 –  fi
14047 –  unset cf_openssl_basedir
14048 – else
14049 –    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14050 – $as_echo "disabled" >&6; }
14051 – fi
14052 –
14053 – if test "$cf_enable_openssl" != "no"; then :
14054 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14055 – $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14056 –  if test "$cross_compiling" = yes; then :
14057 –  cf_openssl_version_ok=no
14058 – else
14059 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 – /* end confdefs.h.  */
14061 –
14062 –
14063 –    #include <openssl/opensslv.h>
14064 –    #include <stdlib.h>
14065 – int
14066 – main ()
14067 – {
14068 – exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14069 –  ;
14070 –  return 0;
14071 – }
14072 – _ACEOF
14073 – if ac_fn_c_try_run "$LINENO"; then :
14074 –  cf_openssl_version_ok=yes
14075 – else
14076 –  cf_openssl_version_ok=no
14077 – fi
14078 – rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14079 –  conftest.$ac_objext conftest.beam conftest.$ac_ext
14080 – fi
14081 –
14082 –
14083 –  if test "$cf_openssl_version_ok" = "yes"; then :
14084 –  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14085 – $as_echo "found" >&6; }
14086 –
14087 –    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14088 – $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14089 – if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14090 –  $as_echo_n "(cached) " >&6
14091 – else
14092 –  ac_check_lib_save_LIBS=$LIBS
14093 – LIBS="-lcrypto  $LIBS"
14094 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 – /* end confdefs.h.  */
14096 –
14097 – /* Override any GCC internal prototype to avoid an error.
14098 –   Use char because int might match the return type of a GCC
14099 –   builtin and then its argument prototype would still apply.  */
14100 – #ifdef __cplusplus
14101 – extern "C"
14102 – #endif
14103 – char RSA_free ();
14104 – int
14105 – main ()
14106 – {
14107 – return RSA_free ();
14108 –  ;
14109 –  return 0;
14110 – }
14111 – _ACEOF
14112 – if ac_fn_c_try_link "$LINENO"; then :
14113 –  ac_cv_lib_crypto_RSA_free=yes
14114 – else
14115 –  ac_cv_lib_crypto_RSA_free=no
14116 – fi
14117 – rm -f core conftest.err conftest.$ac_objext \
14118 –    conftest$ac_exeext conftest.$ac_ext
14119 – LIBS=$ac_check_lib_save_LIBS
14120 – fi
14121 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14122 – $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14123 – if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14124 –  cat >>confdefs.h <<_ACEOF
14125 – #define HAVE_LIBCRYPTO 1
14126 – _ACEOF
14127 –
14128 –  LIBS="-lcrypto $LIBS"
14129 –
14130 – fi
14131 –
14132 –    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14133 –  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14134 – $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14135 – if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14136 –  $as_echo_n "(cached) " >&6
14137 – else
14138 –  ac_check_lib_save_LIBS=$LIBS
14139 – LIBS="-lssl  $LIBS"
14140 – cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 – /* end confdefs.h.  */
14142 –
14143 – /* Override any GCC internal prototype to avoid an error.
14144 –   Use char because int might match the return type of a GCC
14145 –   builtin and then its argument prototype would still apply.  */
14146 – #ifdef __cplusplus
14147 – extern "C"
14148 – #endif
14149 – char SSL_connect ();
14150 – int
14151 – main ()
14152 – {
14153 – return SSL_connect ();
14154 –  ;
14155 –  return 0;
14156 – }
14157 – _ACEOF
14158 – if ac_fn_c_try_link "$LINENO"; then :
14159 –  ac_cv_lib_ssl_SSL_connect=yes
14160 – else
14161 –  ac_cv_lib_ssl_SSL_connect=no
14162 – fi
14163 – rm -f core conftest.err conftest.$ac_objext \
14164 –    conftest$ac_exeext conftest.$ac_ext
14165 – LIBS=$ac_check_lib_save_LIBS
14166 – fi
14167 – { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14168 – $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14169 – if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14170 –  cat >>confdefs.h <<_ACEOF
14171 – #define HAVE_LIBSSL 1
14172 – _ACEOF
14173 –
14174 –  LIBS="-lssl $LIBS"
14175 –
14176 – fi
14177 –
14178 – fi
14179 –
14180 – else
14181 –  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14182 – $as_echo "no - OpenSSL support disabled" >&6; }
14183 –    cf_enable_openssl="no"
14184 – fi
14185 – fi
14186 –
14187 – if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14188 –  ENABLE_SSL_TRUE=
14189 –  ENABLE_SSL_FALSE='#'
14190 – else
14191 –  ENABLE_SSL_TRUE='#'
14192 –  ENABLE_SSL_FALSE=
14193 – fi
14194 –
14195 –
14196 –
14197 – # Check whether --enable-assert was given.
14198 – if test "${enable_assert+set}" = set; then :
14199 –  enableval=$enable_assert; assert=$enableval
14200 – else
14201 –  assert=no
14202 – fi
14203 –
14204 –
14205 – if test "$assert" = "no"; then :
14206 –
14207 – $as_echo "#define NDEBUG 1" >>confdefs.h
14208 –
14209 – fi
14210 –
14211 –
14212 – $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14213 –
14214 –
14215 – $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14216 –
14217 –
14218 – $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14219 –
14220 –
14221 – $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14222 –
14223 –
14224 – $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14225 –
14226 –
14227 – $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14228 –
14229 –
14230 – $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14231 –
14232 –
14233 – $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14234 –
14235 –
14236 – $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14237 –
14238 –
14239 – $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14240 –
14241 –
14242 – $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14243 –
14244 –
14245 – $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14246 –
14247 –
14248 – $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14249 –
14250 –
14251 – $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14252 –
14253 –
14282   # Argument processing.
14283  
14284 <    desired_iopoll_mechanism="none"
14285 <    # Check whether --enable-kqueue was given.
14284 >  desired_iopoll_mechanism="none"
14285 >
14286 >  # Check whether --enable-kqueue was given.
14287   if test "${enable_kqueue+set}" = set; then :
14288    enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14289   fi
# Line 14274 | Line 14303 | if test "${enable_poll+set}" = set; then
14303    enableval=$enable_poll; desired_iopoll_mechanism="poll"
14304   fi
14305  
14277 –  # Check whether --enable-select was given.
14278 – if test "${enable_select+set}" = set; then :
14279 –  enableval=$enable_select; desired_iopoll_mechanism="select"
14280 – fi
14306  
14307 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14307 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14308   $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14309 +
14310    iopoll_mechanism_none=0
14311  
14312   cat >>confdefs.h <<_ACEOF
14313   #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14314   _ACEOF
14315  
14316 <      iopoll_mechanism_kqueue=1
14316 >
14317 >  iopoll_mechanism_kqueue=1
14318  
14319   cat >>confdefs.h <<_ACEOF
14320   #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
# Line 14341 | Line 14368 | else
14368   fi
14369   rm -f core conftest.err conftest.$ac_objext \
14370      conftest$ac_exeext conftest.$ac_ext
14371 <      iopoll_mechanism_epoll=2
14371 >
14372 >  iopoll_mechanism_epoll=2
14373  
14374   cat >>confdefs.h <<_ACEOF
14375   #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14376   _ACEOF
14377  
14350 –  if test "$cross_compiling" = yes; then :
14351 –  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14352 – $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14353 – as_fn_error $? "cannot run test program while cross compiling
14354 – See \`config.log' for more details" "$LINENO" 5; }
14355 – else
14378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379   /* end confdefs.h.  */
14358 –
14380   #include <sys/epoll.h>
14360 – #include <sys/syscall.h>
14361 – #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14362 – #if !defined(__NR_epoll_create)
14363 – #if defined(__ia64__)
14364 – #define __NR_epoll_create 1243
14365 – #elif defined(__x86_64__)
14366 – #define __NR_epoll_create 214
14367 – #elif defined(__sparc64__) || defined(__sparc__)
14368 – #define __NR_epoll_create 193
14369 – #elif defined(__s390__) || defined(__m68k__)
14370 – #define __NR_epoll_create 249
14371 – #elif defined(__ppc64__) || defined(__ppc__)
14372 – #define __NR_epoll_create 236
14373 – #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14374 – #define __NR_epoll_create 224
14375 – #elif defined(__alpha__)
14376 – #define __NR_epoll_create 407
14377 – #elif defined(__sh64__)
14378 – #define __NR_epoll_create 282
14379 – #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14380 – #define __NR_epoll_create 254
14381 – #else
14382 – #error No system call numbers defined for epoll family.
14383 – #endif
14384 – #endif
14385 – _syscall1(int, epoll_create, int, size)
14386 – #endif
14387 –
14381   int
14382   main ()
14383   {
14384 < return epoll_create(256) == -1 ? 1 : 0
14384 > epoll_create1(EPOLL_CLOEXEC);
14385    ;
14386    return 0;
14387   }
14388   _ACEOF
14389 < if ac_fn_c_try_run "$LINENO"; then :
14389 > if ac_fn_c_try_link "$LINENO"; then :
14390    is_epoll_mechanism_available="yes"
14391   else
14392    is_epoll_mechanism_available="no"
14393   fi
14394 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14395 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 < fi
14394 > rm -f core conftest.err conftest.$ac_objext \
14395 >    conftest$ac_exeext conftest.$ac_ext
14396  
14397 <      iopoll_mechanism_devpoll=3
14397 >  iopoll_mechanism_devpoll=3
14398  
14399   cat >>confdefs.h <<_ACEOF
14400   #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
# Line 14452 | Line 14444 | rm -f core conftest.err conftest.$ac_obj
14444   $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14445  
14446    fi
14447 <      iopoll_mechanism_poll=4
14447 >
14448 >  iopoll_mechanism_poll=4
14449  
14450   cat >>confdefs.h <<_ACEOF
14451   #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
# Line 14506 | Line 14499 | else
14499   fi
14500   rm -f core conftest.err conftest.$ac_objext \
14501      conftest$ac_exeext conftest.$ac_ext
14509 –      iopoll_mechanism_select=5
14510 –
14511 – cat >>confdefs.h <<_ACEOF
14512 – #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14513 – _ACEOF
14514 –
14515 –  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 – /* end confdefs.h.  */
14517 – /* Define select to an innocuous variant, in case <limits.h> declares select.
14518 –   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14519 – #define select innocuous_select
14520 –
14521 – /* System header to define __stub macros and hopefully few prototypes,
14522 –    which can conflict with char select (); below.
14523 –    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14524 –    <limits.h> exists even on freestanding compilers.  */
14525 –
14526 – #ifdef __STDC__
14527 – # include <limits.h>
14528 – #else
14529 – # include <assert.h>
14530 – #endif
14531 –
14532 – #undef select
14502  
14503 < /* Override any GCC internal prototype to avoid an error.
14504 <   Use char because int might match the return type of a GCC
14536 <   builtin and then its argument prototype would still apply.  */
14537 < #ifdef __cplusplus
14538 < extern "C"
14539 < #endif
14540 < char select ();
14541 < /* The GNU C library defines this for functions which it implements
14542 <    to always fail with ENOSYS.  Some functions are actually named
14543 <    something starting with __ and the normal name is an alias.  */
14544 < #if defined __stub_select || defined __stub___select
14545 < choke me
14546 < #endif
14547 <
14548 < int
14549 < main ()
14550 < {
14551 < return select ();
14552 <  ;
14553 <  return 0;
14554 < }
14555 < _ACEOF
14556 < if ac_fn_c_try_link "$LINENO"; then :
14557 <  is_select_mechanism_available="yes"
14558 < else
14559 <  is_select_mechanism_available="no"
14560 < fi
14561 < rm -f core conftest.err conftest.$ac_objext \
14562 <    conftest$ac_exeext conftest.$ac_ext
14563 <      optimal_iopoll_mechanism="none"
14564 <  for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14503 >  optimal_iopoll_mechanism="none"
14504 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14505      eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14506      if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14507        optimal_iopoll_mechanism="$mechanism"
14508        break
14509      fi
14510    done
14511 <      if test "$desired_iopoll_mechanism" = "none" ; then
14511 >
14512 >  if test "$desired_iopoll_mechanism" = "none" ; then
14513      if test "$optimal_iopoll_mechanism" = "none" ; then
14514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14515   $as_echo "none" >&6; }
# Line 14590 | Line 14531 | $as_echo "none" >&6; }
14531        as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14532      fi
14533    fi
14534 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14534 >
14535 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14536  
14537   cat >>confdefs.h <<_ACEOF
14538   #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
# Line 14598 | Line 14540 | _ACEOF
14540  
14541  
14542  
14543 +  # Check whether --enable-assert was given.
14544 + if test "${enable_assert+set}" = set; then :
14545 +  enableval=$enable_assert; assert=$enableval
14546 + else
14547 +  assert=no
14548 + fi
14549 +
14550 +
14551 +  if test "$assert" = "no"; then :
14552 +
14553 + $as_echo "#define NDEBUG 1" >>confdefs.h
14554 +
14555 + fi
14556 +
14557 +
14558    # Check whether --enable-debugging was given.
14559   if test "${enable_debugging+set}" = set; then :
14560    enableval=$enable_debugging; debugging="$enableval"
# Line 14605 | Line 14562 | else
14562    debugging="no"
14563   fi
14564  
14565 <  if test "$debugging" = "yes" ; then
14565 >
14566 >  if test "$debugging" = "yes"; then :
14567 >
14568      CFLAGS="-Wall -g -O0"
14569 <  fi
14569 >
14570 > fi
14571  
14572  
14573    # Check whether --enable-warnings was given.
# Line 14617 | Line 14577 | else
14577    warnings="no"
14578   fi
14579  
14580 <  if test "$warnings" = "yes" ; then
14580 >
14581 >  if test "$warnings" = "yes"; then :
14582 >
14583 >
14584 >
14585  
14586  
14587   for flag in -Wall; do
# Line 14652 | Line 14616 | fi
14616   eval ac_res=\$$as_CACHEVAR
14617                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14618   $as_echo "$ac_res" >&6; }
14619 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14620 <  if ${CFLAGS+:} false; then :
14621 <  case " $CFLAGS " in
14622 <    *" $flag "*)
14623 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14619 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14620 >
14621 > if ${CFLAGS+:} false; then :
14622 >
14623 >  case " $CFLAGS " in #(
14624 >  *" $flag "*) :
14625 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14626    (: CFLAGS already contains $flag) 2>&5
14627    ac_status=$?
14628    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629 <  test $ac_status = 0; }
14630 <      ;;
14631 <    *)
14632 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14633 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14629 >  test $ac_status = 0; } ;; #(
14630 >  *) :
14631 >
14632 >     as_fn_append CFLAGS " $flag"
14633 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14634 >  (: CFLAGS="$CFLAGS") 2>&5
14635    ac_status=$?
14636    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14637    test $ac_status = 0; }
14638 <      CFLAGS="$CFLAGS $flag"
14639 <      ;;
14640 <   esac
14638 >     ;;
14639 > esac
14640 >
14641   else
14642 <  CFLAGS="$flag"
14642 >
14643 >  CFLAGS=$flag
14644 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14645 >  (: CFLAGS="$CFLAGS") 2>&5
14646 >  ac_status=$?
14647 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14648 >  test $ac_status = 0; }
14649 >
14650   fi
14651  
14652   else
# Line 14683 | Line 14657 | done
14657  
14658  
14659  
14660 < for flag in -Wextra; do
14660 >
14661 >
14662 > for flag in -Wbad-function-cast; do
14663    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14665   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14715 | Line 14691 | fi
14691   eval ac_res=\$$as_CACHEVAR
14692                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14693   $as_echo "$ac_res" >&6; }
14694 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14695 <  if ${CFLAGS+:} false; then :
14696 <  case " $CFLAGS " in
14697 <    *" $flag "*)
14698 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14694 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14695 >
14696 > if ${CFLAGS+:} false; then :
14697 >
14698 >  case " $CFLAGS " in #(
14699 >  *" $flag "*) :
14700 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14701    (: CFLAGS already contains $flag) 2>&5
14702    ac_status=$?
14703    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 <  test $ac_status = 0; }
14705 <      ;;
14706 <    *)
14707 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14708 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14704 >  test $ac_status = 0; } ;; #(
14705 >  *) :
14706 >
14707 >     as_fn_append CFLAGS " $flag"
14708 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14709 >  (: CFLAGS="$CFLAGS") 2>&5
14710    ac_status=$?
14711    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712    test $ac_status = 0; }
14713 <      CFLAGS="$CFLAGS $flag"
14714 <      ;;
14715 <   esac
14713 >     ;;
14714 > esac
14715 >
14716   else
14717 <  CFLAGS="$flag"
14717 >
14718 >  CFLAGS=$flag
14719 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14720 >  (: CFLAGS="$CFLAGS") 2>&5
14721 >  ac_status=$?
14722 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14723 >  test $ac_status = 0; }
14724 >
14725   fi
14726  
14727   else
# Line 14746 | Line 14732 | done
14732  
14733  
14734  
14735 < for flag in -Wno-unused; do
14735 >
14736 >
14737 > for flag in -Wcast-align; do
14738    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14740   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14778 | Line 14766 | fi
14766   eval ac_res=\$$as_CACHEVAR
14767                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14768   $as_echo "$ac_res" >&6; }
14769 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14770 <  if ${CFLAGS+:} false; then :
14771 <  case " $CFLAGS " in
14772 <    *" $flag "*)
14773 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14769 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14770 >
14771 > if ${CFLAGS+:} false; then :
14772 >
14773 >  case " $CFLAGS " in #(
14774 >  *" $flag "*) :
14775 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14776    (: CFLAGS already contains $flag) 2>&5
14777    ac_status=$?
14778    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14779 +  test $ac_status = 0; } ;; #(
14780 +  *) :
14781 +
14782 +     as_fn_append CFLAGS " $flag"
14783 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14784 +  (: CFLAGS="$CFLAGS") 2>&5
14785 +  ac_status=$?
14786 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787    test $ac_status = 0; }
14788 <      ;;
14789 <    *)
14790 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14791 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14788 >     ;;
14789 > esac
14790 >
14791 > else
14792 >
14793 >  CFLAGS=$flag
14794 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14795 >  (: CFLAGS="$CFLAGS") 2>&5
14796    ac_status=$?
14797    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798    test $ac_status = 0; }
14799 <      CFLAGS="$CFLAGS $flag"
14800 <      ;;
14801 <   esac
14799 >
14800 > fi
14801 >
14802   else
14803 <  CFLAGS="$flag"
14803 >  :
14804 > fi
14805 >
14806 > done
14807 >
14808 >
14809 >
14810 >
14811 >
14812 > for flag in -Wcast-function-type; do
14813 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14814 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14815 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14816 > if eval \${$as_CACHEVAR+:} false; then :
14817 >  $as_echo_n "(cached) " >&6
14818 > else
14819 >
14820 >  ax_check_save_flags=$CFLAGS
14821 >  CFLAGS="$CFLAGS  $flag"
14822 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 > /* end confdefs.h.  */
14824 >
14825 > int
14826 > main ()
14827 > {
14828 >
14829 >  ;
14830 >  return 0;
14831 > }
14832 > _ACEOF
14833 > if ac_fn_c_try_compile "$LINENO"; then :
14834 >  eval "$as_CACHEVAR=yes"
14835 > else
14836 >  eval "$as_CACHEVAR=no"
14837 > fi
14838 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 >  CFLAGS=$ax_check_save_flags
14840 > fi
14841 > eval ac_res=\$$as_CACHEVAR
14842 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14843 > $as_echo "$ac_res" >&6; }
14844 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14845 >
14846 > if ${CFLAGS+:} false; then :
14847 >
14848 >  case " $CFLAGS " in #(
14849 >  *" $flag "*) :
14850 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14851 >  (: CFLAGS already contains $flag) 2>&5
14852 >  ac_status=$?
14853 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14854 >  test $ac_status = 0; } ;; #(
14855 >  *) :
14856 >
14857 >     as_fn_append CFLAGS " $flag"
14858 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14859 >  (: CFLAGS="$CFLAGS") 2>&5
14860 >  ac_status=$?
14861 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14862 >  test $ac_status = 0; }
14863 >     ;;
14864 > esac
14865 >
14866 > else
14867 >
14868 >  CFLAGS=$flag
14869 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14870 >  (: CFLAGS="$CFLAGS") 2>&5
14871 >  ac_status=$?
14872 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14873 >  test $ac_status = 0; }
14874 >
14875   fi
14876  
14877   else
# Line 14809 | Line 14882 | done
14882  
14883  
14884  
14885 +
14886 +
14887   for flag in -Wcast-qual; do
14888    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14841 | Line 14916 | fi
14916   eval ac_res=\$$as_CACHEVAR
14917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14918   $as_echo "$ac_res" >&6; }
14919 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14920 <  if ${CFLAGS+:} false; then :
14921 <  case " $CFLAGS " in
14922 <    *" $flag "*)
14923 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14919 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14920 >
14921 > if ${CFLAGS+:} false; then :
14922 >
14923 >  case " $CFLAGS " in #(
14924 >  *" $flag "*) :
14925 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14926    (: CFLAGS already contains $flag) 2>&5
14927    ac_status=$?
14928    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14929 +  test $ac_status = 0; } ;; #(
14930 +  *) :
14931 +
14932 +     as_fn_append CFLAGS " $flag"
14933 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14934 +  (: CFLAGS="$CFLAGS") 2>&5
14935 +  ac_status=$?
14936 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937    test $ac_status = 0; }
14938 <      ;;
14939 <    *)
14940 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14941 <  (: CFLAGS="$CFLAGS $flag") 2>&5
14938 >     ;;
14939 > esac
14940 >
14941 > else
14942 >
14943 >  CFLAGS=$flag
14944 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14945 >  (: CFLAGS="$CFLAGS") 2>&5
14946    ac_status=$?
14947    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14948    test $ac_status = 0; }
14949 <      CFLAGS="$CFLAGS $flag"
14950 <      ;;
14951 <   esac
14949 >
14950 > fi
14951 >
14952 > else
14953 >  :
14954 > fi
14955 >
14956 > done
14957 >
14958 >
14959 >
14960 >
14961 >
14962 > for flag in -Wclobbered; do
14963 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14964 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14965 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14966 > if eval \${$as_CACHEVAR+:} false; then :
14967 >  $as_echo_n "(cached) " >&6
14968 > else
14969 >
14970 >  ax_check_save_flags=$CFLAGS
14971 >  CFLAGS="$CFLAGS  $flag"
14972 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 > /* end confdefs.h.  */
14974 >
14975 > int
14976 > main ()
14977 > {
14978 >
14979 >  ;
14980 >  return 0;
14981 > }
14982 > _ACEOF
14983 > if ac_fn_c_try_compile "$LINENO"; then :
14984 >  eval "$as_CACHEVAR=yes"
14985 > else
14986 >  eval "$as_CACHEVAR=no"
14987 > fi
14988 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 >  CFLAGS=$ax_check_save_flags
14990 > fi
14991 > eval ac_res=\$$as_CACHEVAR
14992 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14993 > $as_echo "$ac_res" >&6; }
14994 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14995 >
14996 > if ${CFLAGS+:} false; then :
14997 >
14998 >  case " $CFLAGS " in #(
14999 >  *" $flag "*) :
15000 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15001 >  (: CFLAGS already contains $flag) 2>&5
15002 >  ac_status=$?
15003 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15004 >  test $ac_status = 0; } ;; #(
15005 >  *) :
15006 >
15007 >     as_fn_append CFLAGS " $flag"
15008 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15009 >  (: CFLAGS="$CFLAGS") 2>&5
15010 >  ac_status=$?
15011 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 >  test $ac_status = 0; }
15013 >     ;;
15014 > esac
15015 >
15016   else
15017 <  CFLAGS="$flag"
15017 >
15018 >  CFLAGS=$flag
15019 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15020 >  (: CFLAGS="$CFLAGS") 2>&5
15021 >  ac_status=$?
15022 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15023 >  test $ac_status = 0; }
15024 >
15025   fi
15026  
15027   else
# Line 14872 | Line 15032 | done
15032  
15033  
15034  
15035 < for flag in -Wcast-align; do
15035 >
15036 >
15037 > for flag in -Wduplicated-cond; do
15038    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15040   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14904 | Line 15066 | fi
15066   eval ac_res=\$$as_CACHEVAR
15067                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15068   $as_echo "$ac_res" >&6; }
15069 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15070 <  if ${CFLAGS+:} false; then :
15071 <  case " $CFLAGS " in
15072 <    *" $flag "*)
15073 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15069 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15070 >
15071 > if ${CFLAGS+:} false; then :
15072 >
15073 >  case " $CFLAGS " in #(
15074 >  *" $flag "*) :
15075 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15076    (: CFLAGS already contains $flag) 2>&5
15077    ac_status=$?
15078    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15079 +  test $ac_status = 0; } ;; #(
15080 +  *) :
15081 +
15082 +     as_fn_append CFLAGS " $flag"
15083 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15084 +  (: CFLAGS="$CFLAGS") 2>&5
15085 +  ac_status=$?
15086 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087    test $ac_status = 0; }
15088 <      ;;
15089 <    *)
15090 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15091 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15088 >     ;;
15089 > esac
15090 >
15091 > else
15092 >
15093 >  CFLAGS=$flag
15094 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15095 >  (: CFLAGS="$CFLAGS") 2>&5
15096    ac_status=$?
15097    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15098    test $ac_status = 0; }
15099 <      CFLAGS="$CFLAGS $flag"
15100 <      ;;
15101 <   esac
15099 >
15100 > fi
15101 >
15102   else
15103 <  CFLAGS="$flag"
15103 >  :
15104 > fi
15105 >
15106 > done
15107 >
15108 >
15109 >
15110 >
15111 >
15112 > for flag in -Wempty-body; do
15113 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15114 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15115 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15116 > if eval \${$as_CACHEVAR+:} false; then :
15117 >  $as_echo_n "(cached) " >&6
15118 > else
15119 >
15120 >  ax_check_save_flags=$CFLAGS
15121 >  CFLAGS="$CFLAGS  $flag"
15122 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 > /* end confdefs.h.  */
15124 >
15125 > int
15126 > main ()
15127 > {
15128 >
15129 >  ;
15130 >  return 0;
15131 > }
15132 > _ACEOF
15133 > if ac_fn_c_try_compile "$LINENO"; then :
15134 >  eval "$as_CACHEVAR=yes"
15135 > else
15136 >  eval "$as_CACHEVAR=no"
15137 > fi
15138 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139 >  CFLAGS=$ax_check_save_flags
15140 > fi
15141 > eval ac_res=\$$as_CACHEVAR
15142 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15143 > $as_echo "$ac_res" >&6; }
15144 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15145 >
15146 > if ${CFLAGS+:} false; then :
15147 >
15148 >  case " $CFLAGS " in #(
15149 >  *" $flag "*) :
15150 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15151 >  (: CFLAGS already contains $flag) 2>&5
15152 >  ac_status=$?
15153 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15154 >  test $ac_status = 0; } ;; #(
15155 >  *) :
15156 >
15157 >     as_fn_append CFLAGS " $flag"
15158 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15159 >  (: CFLAGS="$CFLAGS") 2>&5
15160 >  ac_status=$?
15161 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15162 >  test $ac_status = 0; }
15163 >     ;;
15164 > esac
15165 >
15166 > else
15167 >
15168 >  CFLAGS=$flag
15169 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15170 >  (: CFLAGS="$CFLAGS") 2>&5
15171 >  ac_status=$?
15172 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15173 >  test $ac_status = 0; }
15174 >
15175   fi
15176  
15177   else
# Line 14935 | Line 15182 | done
15182  
15183  
15184  
15185 < for flag in -Wbad-function-cast; do
15185 >
15186 >
15187 > for flag in -Wignored-qualifiers; do
15188    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15190   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14967 | Line 15216 | fi
15216   eval ac_res=\$$as_CACHEVAR
15217                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15218   $as_echo "$ac_res" >&6; }
15219 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15220 <  if ${CFLAGS+:} false; then :
15221 <  case " $CFLAGS " in
15222 <    *" $flag "*)
15223 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15219 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15220 >
15221 > if ${CFLAGS+:} false; then :
15222 >
15223 >  case " $CFLAGS " in #(
15224 >  *" $flag "*) :
15225 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15226    (: CFLAGS already contains $flag) 2>&5
15227    ac_status=$?
15228    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15229 +  test $ac_status = 0; } ;; #(
15230 +  *) :
15231 +
15232 +     as_fn_append CFLAGS " $flag"
15233 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15234 +  (: CFLAGS="$CFLAGS") 2>&5
15235 +  ac_status=$?
15236 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15237    test $ac_status = 0; }
15238 <      ;;
15239 <    *)
15240 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15241 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15238 >     ;;
15239 > esac
15240 >
15241 > else
15242 >
15243 >  CFLAGS=$flag
15244 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15245 >  (: CFLAGS="$CFLAGS") 2>&5
15246    ac_status=$?
15247    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248    test $ac_status = 0; }
15249 <      CFLAGS="$CFLAGS $flag"
15250 <      ;;
15251 <   esac
15249 >
15250 > fi
15251 >
15252 > else
15253 >  :
15254 > fi
15255 >
15256 > done
15257 >
15258 >
15259 >
15260 >
15261 >
15262 > for flag in -Wlogical-op; do
15263 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15264 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15265 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15266 > if eval \${$as_CACHEVAR+:} false; then :
15267 >  $as_echo_n "(cached) " >&6
15268 > else
15269 >
15270 >  ax_check_save_flags=$CFLAGS
15271 >  CFLAGS="$CFLAGS  $flag"
15272 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 > /* end confdefs.h.  */
15274 >
15275 > int
15276 > main ()
15277 > {
15278 >
15279 >  ;
15280 >  return 0;
15281 > }
15282 > _ACEOF
15283 > if ac_fn_c_try_compile "$LINENO"; then :
15284 >  eval "$as_CACHEVAR=yes"
15285 > else
15286 >  eval "$as_CACHEVAR=no"
15287 > fi
15288 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 >  CFLAGS=$ax_check_save_flags
15290 > fi
15291 > eval ac_res=\$$as_CACHEVAR
15292 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15293 > $as_echo "$ac_res" >&6; }
15294 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15295 >
15296 > if ${CFLAGS+:} false; then :
15297 >
15298 >  case " $CFLAGS " in #(
15299 >  *" $flag "*) :
15300 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15301 >  (: CFLAGS already contains $flag) 2>&5
15302 >  ac_status=$?
15303 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 >  test $ac_status = 0; } ;; #(
15305 >  *) :
15306 >
15307 >     as_fn_append CFLAGS " $flag"
15308 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15309 >  (: CFLAGS="$CFLAGS") 2>&5
15310 >  ac_status=$?
15311 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 >  test $ac_status = 0; }
15313 >     ;;
15314 > esac
15315 >
15316   else
15317 <  CFLAGS="$flag"
15317 >
15318 >  CFLAGS=$flag
15319 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15320 >  (: CFLAGS="$CFLAGS") 2>&5
15321 >  ac_status=$?
15322 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323 >  test $ac_status = 0; }
15324 >
15325   fi
15326  
15327   else
# Line 14998 | Line 15332 | done
15332  
15333  
15334  
15335 +
15336 +
15337   for flag in -Wmissing-declarations; do
15338    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15030 | Line 15366 | fi
15366   eval ac_res=\$$as_CACHEVAR
15367                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15368   $as_echo "$ac_res" >&6; }
15369 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15370 <  if ${CFLAGS+:} false; then :
15371 <  case " $CFLAGS " in
15372 <    *" $flag "*)
15373 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15369 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15370 >
15371 > if ${CFLAGS+:} false; then :
15372 >
15373 >  case " $CFLAGS " in #(
15374 >  *" $flag "*) :
15375 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15376    (: CFLAGS already contains $flag) 2>&5
15377    ac_status=$?
15378    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 +  test $ac_status = 0; } ;; #(
15380 +  *) :
15381 +
15382 +     as_fn_append CFLAGS " $flag"
15383 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15384 +  (: CFLAGS="$CFLAGS") 2>&5
15385 +  ac_status=$?
15386 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15387    test $ac_status = 0; }
15388 <      ;;
15389 <    *)
15390 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15391 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15388 >     ;;
15389 > esac
15390 >
15391 > else
15392 >
15393 >  CFLAGS=$flag
15394 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15395 >  (: CFLAGS="$CFLAGS") 2>&5
15396    ac_status=$?
15397    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15398    test $ac_status = 0; }
15399 <      CFLAGS="$CFLAGS $flag"
15400 <      ;;
15401 <   esac
15399 >
15400 > fi
15401 >
15402 > else
15403 >  :
15404 > fi
15405 >
15406 > done
15407 >
15408 >
15409 >
15410 >
15411 >
15412 > for flag in -Wmissing-field-initializers; do
15413 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15414 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15415 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15416 > if eval \${$as_CACHEVAR+:} false; then :
15417 >  $as_echo_n "(cached) " >&6
15418 > else
15419 >
15420 >  ax_check_save_flags=$CFLAGS
15421 >  CFLAGS="$CFLAGS  $flag"
15422 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 > /* end confdefs.h.  */
15424 >
15425 > int
15426 > main ()
15427 > {
15428 >
15429 >  ;
15430 >  return 0;
15431 > }
15432 > _ACEOF
15433 > if ac_fn_c_try_compile "$LINENO"; then :
15434 >  eval "$as_CACHEVAR=yes"
15435 > else
15436 >  eval "$as_CACHEVAR=no"
15437 > fi
15438 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 >  CFLAGS=$ax_check_save_flags
15440 > fi
15441 > eval ac_res=\$$as_CACHEVAR
15442 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15443 > $as_echo "$ac_res" >&6; }
15444 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15445 >
15446 > if ${CFLAGS+:} false; then :
15447 >
15448 >  case " $CFLAGS " in #(
15449 >  *" $flag "*) :
15450 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15451 >  (: CFLAGS already contains $flag) 2>&5
15452 >  ac_status=$?
15453 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15454 >  test $ac_status = 0; } ;; #(
15455 >  *) :
15456 >
15457 >     as_fn_append CFLAGS " $flag"
15458 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15459 >  (: CFLAGS="$CFLAGS") 2>&5
15460 >  ac_status=$?
15461 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15462 >  test $ac_status = 0; }
15463 >     ;;
15464 > esac
15465 >
15466   else
15467 <  CFLAGS="$flag"
15467 >
15468 >  CFLAGS=$flag
15469 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15470 >  (: CFLAGS="$CFLAGS") 2>&5
15471 >  ac_status=$?
15472 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15473 >  test $ac_status = 0; }
15474 >
15475   fi
15476  
15477   else
# Line 15061 | Line 15482 | done
15482  
15483  
15484  
15485 < for flag in -Wmissing-prototypes; do
15485 >
15486 >
15487 > for flag in -Wmissing-include-dirs; do
15488    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15490   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15093 | Line 15516 | fi
15516   eval ac_res=\$$as_CACHEVAR
15517                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15518   $as_echo "$ac_res" >&6; }
15519 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15520 <  if ${CFLAGS+:} false; then :
15521 <  case " $CFLAGS " in
15522 <    *" $flag "*)
15523 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15519 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15520 >
15521 > if ${CFLAGS+:} false; then :
15522 >
15523 >  case " $CFLAGS " in #(
15524 >  *" $flag "*) :
15525 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15526    (: CFLAGS already contains $flag) 2>&5
15527    ac_status=$?
15528    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15529 +  test $ac_status = 0; } ;; #(
15530 +  *) :
15531 +
15532 +     as_fn_append CFLAGS " $flag"
15533 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15534 +  (: CFLAGS="$CFLAGS") 2>&5
15535 +  ac_status=$?
15536 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537    test $ac_status = 0; }
15538 <      ;;
15539 <    *)
15540 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15541 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15538 >     ;;
15539 > esac
15540 >
15541 > else
15542 >
15543 >  CFLAGS=$flag
15544 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15545 >  (: CFLAGS="$CFLAGS") 2>&5
15546    ac_status=$?
15547    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15548    test $ac_status = 0; }
15549 <      CFLAGS="$CFLAGS $flag"
15550 <      ;;
15551 <   esac
15549 >
15550 > fi
15551 >
15552   else
15553 <  CFLAGS="$flag"
15553 >  :
15554 > fi
15555 >
15556 > done
15557 >
15558 >
15559 >
15560 >
15561 >
15562 > for flag in -Wmissing-parameter-type; do
15563 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15564 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15565 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15566 > if eval \${$as_CACHEVAR+:} false; then :
15567 >  $as_echo_n "(cached) " >&6
15568 > else
15569 >
15570 >  ax_check_save_flags=$CFLAGS
15571 >  CFLAGS="$CFLAGS  $flag"
15572 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 > /* end confdefs.h.  */
15574 >
15575 > int
15576 > main ()
15577 > {
15578 >
15579 >  ;
15580 >  return 0;
15581 > }
15582 > _ACEOF
15583 > if ac_fn_c_try_compile "$LINENO"; then :
15584 >  eval "$as_CACHEVAR=yes"
15585 > else
15586 >  eval "$as_CACHEVAR=no"
15587 > fi
15588 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589 >  CFLAGS=$ax_check_save_flags
15590 > fi
15591 > eval ac_res=\$$as_CACHEVAR
15592 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593 > $as_echo "$ac_res" >&6; }
15594 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15595 >
15596 > if ${CFLAGS+:} false; then :
15597 >
15598 >  case " $CFLAGS " in #(
15599 >  *" $flag "*) :
15600 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15601 >  (: CFLAGS already contains $flag) 2>&5
15602 >  ac_status=$?
15603 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15604 >  test $ac_status = 0; } ;; #(
15605 >  *) :
15606 >
15607 >     as_fn_append CFLAGS " $flag"
15608 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15609 >  (: CFLAGS="$CFLAGS") 2>&5
15610 >  ac_status=$?
15611 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15612 >  test $ac_status = 0; }
15613 >     ;;
15614 > esac
15615 >
15616 > else
15617 >
15618 >  CFLAGS=$flag
15619 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15620 >  (: CFLAGS="$CFLAGS") 2>&5
15621 >  ac_status=$?
15622 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15623 >  test $ac_status = 0; }
15624 >
15625   fi
15626  
15627   else
# Line 15124 | Line 15632 | done
15632  
15633  
15634  
15635 +
15636 +
15637 + for flag in -Wmissing-prototypes; do
15638 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15639 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15640 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15641 + if eval \${$as_CACHEVAR+:} false; then :
15642 +  $as_echo_n "(cached) " >&6
15643 + else
15644 +
15645 +  ax_check_save_flags=$CFLAGS
15646 +  CFLAGS="$CFLAGS  $flag"
15647 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 + /* end confdefs.h.  */
15649 +
15650 + int
15651 + main ()
15652 + {
15653 +
15654 +  ;
15655 +  return 0;
15656 + }
15657 + _ACEOF
15658 + if ac_fn_c_try_compile "$LINENO"; then :
15659 +  eval "$as_CACHEVAR=yes"
15660 + else
15661 +  eval "$as_CACHEVAR=no"
15662 + fi
15663 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 +  CFLAGS=$ax_check_save_flags
15665 + fi
15666 + eval ac_res=\$$as_CACHEVAR
15667 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15668 + $as_echo "$ac_res" >&6; }
15669 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15670 +
15671 + if ${CFLAGS+:} false; then :
15672 +
15673 +  case " $CFLAGS " in #(
15674 +  *" $flag "*) :
15675 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15676 +  (: CFLAGS already contains $flag) 2>&5
15677 +  ac_status=$?
15678 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15679 +  test $ac_status = 0; } ;; #(
15680 +  *) :
15681 +
15682 +     as_fn_append CFLAGS " $flag"
15683 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15684 +  (: CFLAGS="$CFLAGS") 2>&5
15685 +  ac_status=$?
15686 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15687 +  test $ac_status = 0; }
15688 +     ;;
15689 + esac
15690 +
15691 + else
15692 +
15693 +  CFLAGS=$flag
15694 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15695 +  (: CFLAGS="$CFLAGS") 2>&5
15696 +  ac_status=$?
15697 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15698 +  test $ac_status = 0; }
15699 +
15700 + fi
15701 +
15702 + else
15703 +  :
15704 + fi
15705 +
15706 + done
15707 +
15708 +
15709 +
15710 +
15711 +
15712   for flag in -Wnested-externs; do
15713    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15156 | Line 15741 | fi
15741   eval ac_res=\$$as_CACHEVAR
15742                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15743   $as_echo "$ac_res" >&6; }
15744 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15745 <  if ${CFLAGS+:} false; then :
15746 <  case " $CFLAGS " in
15747 <    *" $flag "*)
15748 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15744 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15745 >
15746 > if ${CFLAGS+:} false; then :
15747 >
15748 >  case " $CFLAGS " in #(
15749 >  *" $flag "*) :
15750 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15751    (: CFLAGS already contains $flag) 2>&5
15752    ac_status=$?
15753    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15754 +  test $ac_status = 0; } ;; #(
15755 +  *) :
15756 +
15757 +     as_fn_append CFLAGS " $flag"
15758 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15759 +  (: CFLAGS="$CFLAGS") 2>&5
15760 +  ac_status=$?
15761 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762    test $ac_status = 0; }
15763 <      ;;
15764 <    *)
15765 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15766 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15763 >     ;;
15764 > esac
15765 >
15766 > else
15767 >
15768 >  CFLAGS=$flag
15769 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15770 >  (: CFLAGS="$CFLAGS") 2>&5
15771    ac_status=$?
15772    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773    test $ac_status = 0; }
15774 <      CFLAGS="$CFLAGS $flag"
15775 <      ;;
15776 <   esac
15774 >
15775 > fi
15776 >
15777 > else
15778 >  :
15779 > fi
15780 >
15781 > done
15782 >
15783 >
15784 >
15785 >
15786 >
15787 > for flag in -Wold-style-declaration; do
15788 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15789 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15790 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15791 > if eval \${$as_CACHEVAR+:} false; then :
15792 >  $as_echo_n "(cached) " >&6
15793 > else
15794 >
15795 >  ax_check_save_flags=$CFLAGS
15796 >  CFLAGS="$CFLAGS  $flag"
15797 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 > /* end confdefs.h.  */
15799 >
15800 > int
15801 > main ()
15802 > {
15803 >
15804 >  ;
15805 >  return 0;
15806 > }
15807 > _ACEOF
15808 > if ac_fn_c_try_compile "$LINENO"; then :
15809 >  eval "$as_CACHEVAR=yes"
15810 > else
15811 >  eval "$as_CACHEVAR=no"
15812 > fi
15813 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 >  CFLAGS=$ax_check_save_flags
15815 > fi
15816 > eval ac_res=\$$as_CACHEVAR
15817 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15818 > $as_echo "$ac_res" >&6; }
15819 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15820 >
15821 > if ${CFLAGS+:} false; then :
15822 >
15823 >  case " $CFLAGS " in #(
15824 >  *" $flag "*) :
15825 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15826 >  (: CFLAGS already contains $flag) 2>&5
15827 >  ac_status=$?
15828 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15829 >  test $ac_status = 0; } ;; #(
15830 >  *) :
15831 >
15832 >     as_fn_append CFLAGS " $flag"
15833 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15834 >  (: CFLAGS="$CFLAGS") 2>&5
15835 >  ac_status=$?
15836 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15837 >  test $ac_status = 0; }
15838 >     ;;
15839 > esac
15840 >
15841   else
15842 <  CFLAGS="$flag"
15842 >
15843 >  CFLAGS=$flag
15844 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15845 >  (: CFLAGS="$CFLAGS") 2>&5
15846 >  ac_status=$?
15847 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15848 >  test $ac_status = 0; }
15849 >
15850   fi
15851  
15852   else
# Line 15187 | Line 15857 | done
15857  
15858  
15859  
15860 < for flag in -Wredundant-decls; do
15860 >
15861 >
15862 > for flag in -Woverride-init; do
15863    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15865   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15219 | Line 15891 | fi
15891   eval ac_res=\$$as_CACHEVAR
15892                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15893   $as_echo "$ac_res" >&6; }
15894 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15895 <  if ${CFLAGS+:} false; then :
15896 <  case " $CFLAGS " in
15897 <    *" $flag "*)
15898 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15894 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15895 >
15896 > if ${CFLAGS+:} false; then :
15897 >
15898 >  case " $CFLAGS " in #(
15899 >  *" $flag "*) :
15900 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15901    (: CFLAGS already contains $flag) 2>&5
15902    ac_status=$?
15903    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 +  test $ac_status = 0; } ;; #(
15905 +  *) :
15906 +
15907 +     as_fn_append CFLAGS " $flag"
15908 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15909 +  (: CFLAGS="$CFLAGS") 2>&5
15910 +  ac_status=$?
15911 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15912    test $ac_status = 0; }
15913 <      ;;
15914 <    *)
15915 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15916 <  (: CFLAGS="$CFLAGS $flag") 2>&5
15913 >     ;;
15914 > esac
15915 >
15916 > else
15917 >
15918 >  CFLAGS=$flag
15919 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15920 >  (: CFLAGS="$CFLAGS") 2>&5
15921    ac_status=$?
15922    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923    test $ac_status = 0; }
15924 <      CFLAGS="$CFLAGS $flag"
15925 <      ;;
15926 <   esac
15924 >
15925 > fi
15926 >
15927 > else
15928 >  :
15929 > fi
15930 >
15931 > done
15932 >
15933 >
15934 >
15935 >
15936 >
15937 > for flag in -Wpointer-arith; do
15938 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15939 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15940 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15941 > if eval \${$as_CACHEVAR+:} false; then :
15942 >  $as_echo_n "(cached) " >&6
15943 > else
15944 >
15945 >  ax_check_save_flags=$CFLAGS
15946 >  CFLAGS="$CFLAGS  $flag"
15947 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 > /* end confdefs.h.  */
15949 >
15950 > int
15951 > main ()
15952 > {
15953 >
15954 >  ;
15955 >  return 0;
15956 > }
15957 > _ACEOF
15958 > if ac_fn_c_try_compile "$LINENO"; then :
15959 >  eval "$as_CACHEVAR=yes"
15960 > else
15961 >  eval "$as_CACHEVAR=no"
15962 > fi
15963 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964 >  CFLAGS=$ax_check_save_flags
15965 > fi
15966 > eval ac_res=\$$as_CACHEVAR
15967 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15968 > $as_echo "$ac_res" >&6; }
15969 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15970 >
15971 > if ${CFLAGS+:} false; then :
15972 >
15973 >  case " $CFLAGS " in #(
15974 >  *" $flag "*) :
15975 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15976 >  (: CFLAGS already contains $flag) 2>&5
15977 >  ac_status=$?
15978 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15979 >  test $ac_status = 0; } ;; #(
15980 >  *) :
15981 >
15982 >     as_fn_append CFLAGS " $flag"
15983 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15984 >  (: CFLAGS="$CFLAGS") 2>&5
15985 >  ac_status=$?
15986 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15987 >  test $ac_status = 0; }
15988 >     ;;
15989 > esac
15990 >
15991   else
15992 <  CFLAGS="$flag"
15992 >
15993 >  CFLAGS=$flag
15994 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15995 >  (: CFLAGS="$CFLAGS") 2>&5
15996 >  ac_status=$?
15997 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15998 >  test $ac_status = 0; }
15999 >
16000   fi
16001  
16002   else
# Line 15250 | Line 16007 | done
16007  
16008  
16009  
16010 +
16011 +
16012 + for flag in -Wredundant-decls; do
16013 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16014 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16015 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16016 + if eval \${$as_CACHEVAR+:} false; then :
16017 +  $as_echo_n "(cached) " >&6
16018 + else
16019 +
16020 +  ax_check_save_flags=$CFLAGS
16021 +  CFLAGS="$CFLAGS  $flag"
16022 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 + /* end confdefs.h.  */
16024 +
16025 + int
16026 + main ()
16027 + {
16028 +
16029 +  ;
16030 +  return 0;
16031 + }
16032 + _ACEOF
16033 + if ac_fn_c_try_compile "$LINENO"; then :
16034 +  eval "$as_CACHEVAR=yes"
16035 + else
16036 +  eval "$as_CACHEVAR=no"
16037 + fi
16038 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039 +  CFLAGS=$ax_check_save_flags
16040 + fi
16041 + eval ac_res=\$$as_CACHEVAR
16042 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16043 + $as_echo "$ac_res" >&6; }
16044 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16045 +
16046 + if ${CFLAGS+:} false; then :
16047 +
16048 +  case " $CFLAGS " in #(
16049 +  *" $flag "*) :
16050 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16051 +  (: CFLAGS already contains $flag) 2>&5
16052 +  ac_status=$?
16053 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16054 +  test $ac_status = 0; } ;; #(
16055 +  *) :
16056 +
16057 +     as_fn_append CFLAGS " $flag"
16058 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16059 +  (: CFLAGS="$CFLAGS") 2>&5
16060 +  ac_status=$?
16061 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16062 +  test $ac_status = 0; }
16063 +     ;;
16064 + esac
16065 +
16066 + else
16067 +
16068 +  CFLAGS=$flag
16069 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16070 +  (: CFLAGS="$CFLAGS") 2>&5
16071 +  ac_status=$?
16072 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073 +  test $ac_status = 0; }
16074 +
16075 + fi
16076 +
16077 + else
16078 +  :
16079 + fi
16080 +
16081 + done
16082 +
16083 +
16084 +
16085 +
16086 +
16087   for flag in -Wshadow; do
16088    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15282 | Line 16116 | fi
16116   eval ac_res=\$$as_CACHEVAR
16117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16118   $as_echo "$ac_res" >&6; }
16119 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16120 <  if ${CFLAGS+:} false; then :
16121 <  case " $CFLAGS " in
16122 <    *" $flag "*)
16123 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16119 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16120 >
16121 > if ${CFLAGS+:} false; then :
16122 >
16123 >  case " $CFLAGS " in #(
16124 >  *" $flag "*) :
16125 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16126    (: CFLAGS already contains $flag) 2>&5
16127    ac_status=$?
16128    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16129 +  test $ac_status = 0; } ;; #(
16130 +  *) :
16131 +
16132 +     as_fn_append CFLAGS " $flag"
16133 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16134 +  (: CFLAGS="$CFLAGS") 2>&5
16135 +  ac_status=$?
16136 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16137    test $ac_status = 0; }
16138 <      ;;
16139 <    *)
16140 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16141 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16138 >     ;;
16139 > esac
16140 >
16141 > else
16142 >
16143 >  CFLAGS=$flag
16144 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16145 >  (: CFLAGS="$CFLAGS") 2>&5
16146    ac_status=$?
16147    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16148    test $ac_status = 0; }
16149 <      CFLAGS="$CFLAGS $flag"
16150 <      ;;
16151 <   esac
16149 >
16150 > fi
16151 >
16152   else
16153 <  CFLAGS="$flag"
16153 >  :
16154 > fi
16155 >
16156 > done
16157 >
16158 >
16159 >
16160 >
16161 >
16162 > for flag in -Wshift-negative-value; do
16163 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16164 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16165 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16166 > if eval \${$as_CACHEVAR+:} false; then :
16167 >  $as_echo_n "(cached) " >&6
16168 > else
16169 >
16170 >  ax_check_save_flags=$CFLAGS
16171 >  CFLAGS="$CFLAGS  $flag"
16172 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 > /* end confdefs.h.  */
16174 >
16175 > int
16176 > main ()
16177 > {
16178 >
16179 >  ;
16180 >  return 0;
16181 > }
16182 > _ACEOF
16183 > if ac_fn_c_try_compile "$LINENO"; then :
16184 >  eval "$as_CACHEVAR=yes"
16185 > else
16186 >  eval "$as_CACHEVAR=no"
16187 > fi
16188 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 >  CFLAGS=$ax_check_save_flags
16190 > fi
16191 > eval ac_res=\$$as_CACHEVAR
16192 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16193 > $as_echo "$ac_res" >&6; }
16194 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16195 >
16196 > if ${CFLAGS+:} false; then :
16197 >
16198 >  case " $CFLAGS " in #(
16199 >  *" $flag "*) :
16200 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16201 >  (: CFLAGS already contains $flag) 2>&5
16202 >  ac_status=$?
16203 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16204 >  test $ac_status = 0; } ;; #(
16205 >  *) :
16206 >
16207 >     as_fn_append CFLAGS " $flag"
16208 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16209 >  (: CFLAGS="$CFLAGS") 2>&5
16210 >  ac_status=$?
16211 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212 >  test $ac_status = 0; }
16213 >     ;;
16214 > esac
16215 >
16216 > else
16217 >
16218 >  CFLAGS=$flag
16219 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16220 >  (: CFLAGS="$CFLAGS") 2>&5
16221 >  ac_status=$?
16222 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 >  test $ac_status = 0; }
16224 >
16225   fi
16226  
16227   else
# Line 15313 | Line 16232 | done
16232  
16233  
16234  
16235 < for flag in -Wwrite-strings; do
16235 >
16236 >
16237 > for flag in -Wsign-compare; do
16238    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16240   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15345 | Line 16266 | fi
16266   eval ac_res=\$$as_CACHEVAR
16267                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16268   $as_echo "$ac_res" >&6; }
16269 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16270 <  if ${CFLAGS+:} false; then :
16271 <  case " $CFLAGS " in
16272 <    *" $flag "*)
16273 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16269 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16270 >
16271 > if ${CFLAGS+:} false; then :
16272 >
16273 >  case " $CFLAGS " in #(
16274 >  *" $flag "*) :
16275 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16276    (: CFLAGS already contains $flag) 2>&5
16277    ac_status=$?
16278    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 +  test $ac_status = 0; } ;; #(
16280 +  *) :
16281 +
16282 +     as_fn_append CFLAGS " $flag"
16283 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16284 +  (: CFLAGS="$CFLAGS") 2>&5
16285 +  ac_status=$?
16286 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16287    test $ac_status = 0; }
16288 <      ;;
16289 <    *)
16290 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16291 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16288 >     ;;
16289 > esac
16290 >
16291 > else
16292 >
16293 >  CFLAGS=$flag
16294 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16295 >  (: CFLAGS="$CFLAGS") 2>&5
16296    ac_status=$?
16297    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16298    test $ac_status = 0; }
16299 <      CFLAGS="$CFLAGS $flag"
16300 <      ;;
16301 <   esac
16299 >
16300 > fi
16301 >
16302   else
16303 <  CFLAGS="$flag"
16303 >  :
16304 > fi
16305 >
16306 > done
16307 >
16308 >
16309 >
16310 >
16311 >
16312 > for flag in -Wtype-limits; do
16313 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16314 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16315 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16316 > if eval \${$as_CACHEVAR+:} false; then :
16317 >  $as_echo_n "(cached) " >&6
16318 > else
16319 >
16320 >  ax_check_save_flags=$CFLAGS
16321 >  CFLAGS="$CFLAGS  $flag"
16322 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 > /* end confdefs.h.  */
16324 >
16325 > int
16326 > main ()
16327 > {
16328 >
16329 >  ;
16330 >  return 0;
16331 > }
16332 > _ACEOF
16333 > if ac_fn_c_try_compile "$LINENO"; then :
16334 >  eval "$as_CACHEVAR=yes"
16335 > else
16336 >  eval "$as_CACHEVAR=no"
16337 > fi
16338 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 >  CFLAGS=$ax_check_save_flags
16340 > fi
16341 > eval ac_res=\$$as_CACHEVAR
16342 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16343 > $as_echo "$ac_res" >&6; }
16344 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16345 >
16346 > if ${CFLAGS+:} false; then :
16347 >
16348 >  case " $CFLAGS " in #(
16349 >  *" $flag "*) :
16350 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16351 >  (: CFLAGS already contains $flag) 2>&5
16352 >  ac_status=$?
16353 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16354 >  test $ac_status = 0; } ;; #(
16355 >  *) :
16356 >
16357 >     as_fn_append CFLAGS " $flag"
16358 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16359 >  (: CFLAGS="$CFLAGS") 2>&5
16360 >  ac_status=$?
16361 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 >  test $ac_status = 0; }
16363 >     ;;
16364 > esac
16365 >
16366 > else
16367 >
16368 >  CFLAGS=$flag
16369 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16370 >  (: CFLAGS="$CFLAGS") 2>&5
16371 >  ac_status=$?
16372 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16373 >  test $ac_status = 0; }
16374 >
16375   fi
16376  
16377   else
# Line 15376 | Line 16382 | done
16382  
16383  
16384  
16385 +
16386 +
16387   for flag in -Wundef; do
16388    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15408 | Line 16416 | fi
16416   eval ac_res=\$$as_CACHEVAR
16417                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16418   $as_echo "$ac_res" >&6; }
16419 < if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16420 <  if ${CFLAGS+:} false; then :
16421 <  case " $CFLAGS " in
16422 <    *" $flag "*)
16423 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16419 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16420 >
16421 > if ${CFLAGS+:} false; then :
16422 >
16423 >  case " $CFLAGS " in #(
16424 >  *" $flag "*) :
16425 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16426    (: CFLAGS already contains $flag) 2>&5
16427    ac_status=$?
16428    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16429 +  test $ac_status = 0; } ;; #(
16430 +  *) :
16431 +
16432 +     as_fn_append CFLAGS " $flag"
16433 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16434 +  (: CFLAGS="$CFLAGS") 2>&5
16435 +  ac_status=$?
16436 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16437    test $ac_status = 0; }
16438 <      ;;
16439 <    *)
16440 <      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16441 <  (: CFLAGS="$CFLAGS $flag") 2>&5
16438 >     ;;
16439 > esac
16440 >
16441 > else
16442 >
16443 >  CFLAGS=$flag
16444 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16445 >  (: CFLAGS="$CFLAGS") 2>&5
16446    ac_status=$?
16447    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448    test $ac_status = 0; }
16449 <      CFLAGS="$CFLAGS $flag"
16450 <      ;;
16451 <   esac
16449 >
16450 > fi
16451 >
16452 > else
16453 >  :
16454 > fi
16455 >
16456 > done
16457 >
16458 >
16459 >
16460 >
16461 >
16462 > for flag in -Wuninitialized; do
16463 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16464 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16465 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16466 > if eval \${$as_CACHEVAR+:} false; then :
16467 >  $as_echo_n "(cached) " >&6
16468 > else
16469 >
16470 >  ax_check_save_flags=$CFLAGS
16471 >  CFLAGS="$CFLAGS  $flag"
16472 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 > /* end confdefs.h.  */
16474 >
16475 > int
16476 > main ()
16477 > {
16478 >
16479 >  ;
16480 >  return 0;
16481 > }
16482 > _ACEOF
16483 > if ac_fn_c_try_compile "$LINENO"; then :
16484 >  eval "$as_CACHEVAR=yes"
16485 > else
16486 >  eval "$as_CACHEVAR=no"
16487 > fi
16488 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489 >  CFLAGS=$ax_check_save_flags
16490 > fi
16491 > eval ac_res=\$$as_CACHEVAR
16492 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16493 > $as_echo "$ac_res" >&6; }
16494 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16495 >
16496 > if ${CFLAGS+:} false; then :
16497 >
16498 >  case " $CFLAGS " in #(
16499 >  *" $flag "*) :
16500 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16501 >  (: CFLAGS already contains $flag) 2>&5
16502 >  ac_status=$?
16503 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16504 >  test $ac_status = 0; } ;; #(
16505 >  *) :
16506 >
16507 >     as_fn_append CFLAGS " $flag"
16508 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16509 >  (: CFLAGS="$CFLAGS") 2>&5
16510 >  ac_status=$?
16511 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16512 >  test $ac_status = 0; }
16513 >     ;;
16514 > esac
16515 >
16516   else
16517 <  CFLAGS="$flag"
16517 >
16518 >  CFLAGS=$flag
16519 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16520 >  (: CFLAGS="$CFLAGS") 2>&5
16521 >  ac_status=$?
16522 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16523 >  test $ac_status = 0; }
16524 >
16525   fi
16526  
16527   else
# Line 15437 | Line 16530 | fi
16530  
16531   done
16532  
16533 +
16534 +
16535 +
16536 +
16537 + for flag in -Wwrite-strings; do
16538 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16539 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16540 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16541 + if eval \${$as_CACHEVAR+:} false; then :
16542 +  $as_echo_n "(cached) " >&6
16543 + else
16544 +
16545 +  ax_check_save_flags=$CFLAGS
16546 +  CFLAGS="$CFLAGS  $flag"
16547 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 + /* end confdefs.h.  */
16549 +
16550 + int
16551 + main ()
16552 + {
16553 +
16554 +  ;
16555 +  return 0;
16556 + }
16557 + _ACEOF
16558 + if ac_fn_c_try_compile "$LINENO"; then :
16559 +  eval "$as_CACHEVAR=yes"
16560 + else
16561 +  eval "$as_CACHEVAR=no"
16562 + fi
16563 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 +  CFLAGS=$ax_check_save_flags
16565 + fi
16566 + eval ac_res=\$$as_CACHEVAR
16567 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16568 + $as_echo "$ac_res" >&6; }
16569 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16570 +
16571 + if ${CFLAGS+:} false; then :
16572 +
16573 +  case " $CFLAGS " in #(
16574 +  *" $flag "*) :
16575 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16576 +  (: CFLAGS already contains $flag) 2>&5
16577 +  ac_status=$?
16578 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16579 +  test $ac_status = 0; } ;; #(
16580 +  *) :
16581 +
16582 +     as_fn_append CFLAGS " $flag"
16583 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16584 +  (: CFLAGS="$CFLAGS") 2>&5
16585 +  ac_status=$?
16586 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587 +  test $ac_status = 0; }
16588 +     ;;
16589 + esac
16590 +
16591 + else
16592 +
16593 +  CFLAGS=$flag
16594 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16595 +  (: CFLAGS="$CFLAGS") 2>&5
16596 +  ac_status=$?
16597 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 +  test $ac_status = 0; }
16599 +
16600 + fi
16601 +
16602 + else
16603 +  :
16604 + fi
16605 +
16606 + done
16607 +
16608 +
16609 + fi
16610 +
16611 +
16612 +  # Check whether --enable-efence was given.
16613 + if test "${enable_efence+set}" = set; then :
16614 +  enableval=$enable_efence; efence="$enableval"
16615 + else
16616 +  efence="no"
16617 + fi
16618 +
16619 +
16620 +  if test "$efence" = "yes"; then :
16621 +
16622 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16623 + $as_echo_n "checking for library containing EF_Print... " >&6; }
16624 + if ${ac_cv_search_EF_Print+:} false; then :
16625 +  $as_echo_n "(cached) " >&6
16626 + else
16627 +  ac_func_search_save_LIBS=$LIBS
16628 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 + /* end confdefs.h.  */
16630 +
16631 + /* Override any GCC internal prototype to avoid an error.
16632 +   Use char because int might match the return type of a GCC
16633 +   builtin and then its argument prototype would still apply.  */
16634 + #ifdef __cplusplus
16635 + extern "C"
16636 + #endif
16637 + char EF_Print ();
16638 + int
16639 + main ()
16640 + {
16641 + return EF_Print ();
16642 +  ;
16643 +  return 0;
16644 + }
16645 + _ACEOF
16646 + for ac_lib in '' efence; do
16647 +  if test -z "$ac_lib"; then
16648 +    ac_res="none required"
16649 +  else
16650 +    ac_res=-l$ac_lib
16651 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16652    fi
16653 +  if ac_fn_c_try_link "$LINENO"; then :
16654 +  ac_cv_search_EF_Print=$ac_res
16655 + fi
16656 + rm -f core conftest.err conftest.$ac_objext \
16657 +    conftest$ac_exeext
16658 +  if ${ac_cv_search_EF_Print+:} false; then :
16659 +  break
16660 + fi
16661 + done
16662 + if ${ac_cv_search_EF_Print+:} false; then :
16663 +
16664 + else
16665 +  ac_cv_search_EF_Print=no
16666 + fi
16667 + rm conftest.$ac_ext
16668 + LIBS=$ac_func_search_save_LIBS
16669 + fi
16670 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16671 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16672 + ac_res=$ac_cv_search_EF_Print
16673 + if test "$ac_res" != no; then :
16674 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16675 +
16676 + else
16677 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16678 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16679 + as_fn_error $? "Electric Fence 'efence' library not found
16680 + See \`config.log' for more details" "$LINENO" 5; }
16681 + fi
16682 +
16683 +
16684 + fi
16685 +
16686 +
16687 +
16688 +
16689 + # Check whether --with-tls was given.
16690 + if test "${with_tls+set}" = set; then :
16691 +  withval=$with_tls; with_tls=$withval
16692 + else
16693 +  with_tls=auto
16694 + fi
16695 +
16696 +
16697 + if test "$with_tls" = "openssl" ||
16698 +   test "$with_tls" = "auto"; then
16699 +    ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
16700 + if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
16701 +
16702 +      if test "$cross_compiling" = yes; then :
16703 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16704 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16705 + as_fn_error $? "cannot run test program while cross compiling
16706 + See \`config.log' for more details" "$LINENO" 5; }
16707 + else
16708 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 + /* end confdefs.h.  */
16710 +
16711 +
16712 +          #include <openssl/opensslv.h>
16713 +          #include <stdlib.h>
16714 + int
16715 + main ()
16716 + {
16717 +
16718 +          exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
16719 +  ;
16720 +  return 0;
16721 + }
16722 + _ACEOF
16723 + if ac_fn_c_try_run "$LINENO"; then :
16724 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16725 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16726 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16727 +  $as_echo_n "(cached) " >&6
16728 + else
16729 +  ac_check_lib_save_LIBS=$LIBS
16730 + LIBS="-lcrypto  $LIBS"
16731 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 + /* end confdefs.h.  */
16733 +
16734 + /* Override any GCC internal prototype to avoid an error.
16735 +   Use char because int might match the return type of a GCC
16736 +   builtin and then its argument prototype would still apply.  */
16737 + #ifdef __cplusplus
16738 + extern "C"
16739 + #endif
16740 + char RSA_free ();
16741 + int
16742 + main ()
16743 + {
16744 + return RSA_free ();
16745 +  ;
16746 +  return 0;
16747 + }
16748 + _ACEOF
16749 + if ac_fn_c_try_link "$LINENO"; then :
16750 +  ac_cv_lib_crypto_RSA_free=yes
16751 + else
16752 +  ac_cv_lib_crypto_RSA_free=no
16753 + fi
16754 + rm -f core conftest.err conftest.$ac_objext \
16755 +    conftest$ac_exeext conftest.$ac_ext
16756 + LIBS=$ac_check_lib_save_LIBS
16757 + fi
16758 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16759 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16760 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16761 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16762 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16763 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16764 +  $as_echo_n "(cached) " >&6
16765 + else
16766 +  ac_check_lib_save_LIBS=$LIBS
16767 + LIBS="-lssl  $LIBS"
16768 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 + /* end confdefs.h.  */
16770 +
16771 + /* Override any GCC internal prototype to avoid an error.
16772 +   Use char because int might match the return type of a GCC
16773 +   builtin and then its argument prototype would still apply.  */
16774 + #ifdef __cplusplus
16775 + extern "C"
16776 + #endif
16777 + char SSL_connect ();
16778 + int
16779 + main ()
16780 + {
16781 + return SSL_connect ();
16782 +  ;
16783 +  return 0;
16784 + }
16785 + _ACEOF
16786 + if ac_fn_c_try_link "$LINENO"; then :
16787 +  ac_cv_lib_ssl_SSL_connect=yes
16788 + else
16789 +  ac_cv_lib_ssl_SSL_connect=no
16790 + fi
16791 + rm -f core conftest.err conftest.$ac_objext \
16792 +    conftest$ac_exeext conftest.$ac_ext
16793 + LIBS=$ac_check_lib_save_LIBS
16794 + fi
16795 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16796 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16797 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16798 +  cat >>confdefs.h <<_ACEOF
16799 + #define HAVE_LIBSSL 1
16800 + _ACEOF
16801 +
16802 +  LIBS="-lssl $LIBS"
16803 +
16804 + fi
16805 +
16806 + fi
16807 +
16808 + fi
16809 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16810 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16811 + fi
16812 +
16813 + fi
16814 +
16815 +
16816 +
16817 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
16818 + $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
16819 +    if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
16820 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16821 + $as_echo "found" >&6; }
16822 + else
16823 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16824 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16825 + fi
16826 +
16827 + fi
16828 +
16829 + if test "$with_tls" = "gnutls" ||
16830 +   test "$with_tls" = "auto"; then
16831 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes"; then
16832 +
16833 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16834 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16835 +
16836 +      if test "$cross_compiling" = yes; then :
16837 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16838 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839 + as_fn_error $? "cannot run test program while cross compiling
16840 + See \`config.log' for more details" "$LINENO" 5; }
16841 + else
16842 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 + /* end confdefs.h.  */
16844 +
16845 +
16846 +          #include <gnutls/gnutls.h>
16847 +          #include <stdlib.h>
16848 + int
16849 + main ()
16850 + {
16851 +
16852 +          exit(!(GNUTLS_VERSION_NUMBER >= 0x030605));
16853 +  ;
16854 +  return 0;
16855 + }
16856 + _ACEOF
16857 + if ac_fn_c_try_run "$LINENO"; then :
16858 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16859 + $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16860 + if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16861 +  $as_echo_n "(cached) " >&6
16862 + else
16863 +  ac_check_lib_save_LIBS=$LIBS
16864 + LIBS="-lgnutls  $LIBS"
16865 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 + /* end confdefs.h.  */
16867 +
16868 + /* Override any GCC internal prototype to avoid an error.
16869 +   Use char because int might match the return type of a GCC
16870 +   builtin and then its argument prototype would still apply.  */
16871 + #ifdef __cplusplus
16872 + extern "C"
16873 + #endif
16874 + char gnutls_init ();
16875 + int
16876 + main ()
16877 + {
16878 + return gnutls_init ();
16879 +  ;
16880 +  return 0;
16881 + }
16882 + _ACEOF
16883 + if ac_fn_c_try_link "$LINENO"; then :
16884 +  ac_cv_lib_gnutls_gnutls_init=yes
16885 + else
16886 +  ac_cv_lib_gnutls_gnutls_init=no
16887 + fi
16888 + rm -f core conftest.err conftest.$ac_objext \
16889 +    conftest$ac_exeext conftest.$ac_ext
16890 + LIBS=$ac_check_lib_save_LIBS
16891 + fi
16892 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16893 + $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16894 + if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16895 +  cat >>confdefs.h <<_ACEOF
16896 + #define HAVE_LIBGNUTLS 1
16897 + _ACEOF
16898 +
16899 +  LIBS="-lgnutls $LIBS"
16900 +
16901 + fi
16902 +
16903 + fi
16904 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16905 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16906 + fi
16907 +
16908 + fi
16909 +
16910 +
16911 +
16912 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.6.5 and above" >&5
16913 + $as_echo_n "checking for GnuTLS 3.6.5 and above... " >&6; }
16914 +    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16915 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16916 + $as_echo "found" >&6; }
16917 + else
16918 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16919 + $as_echo "no - GnuTLS support disabled" >&6; }
16920 + fi
16921 +
16922 +  fi
16923 + fi
16924 +
16925 + if test "$with_tls" = "wolfssl" ||
16926 +   test "$with_tls" = "auto"; then
16927 +  if test "$ac_cv_lib_ssl_SSL_connect" != "yes" &&
16928 +     test "$ac_cv_lib_gnutls_gnutls_init" != "yes"; then
16929 +
16930 +    ac_fn_c_check_header_mongrel "$LINENO" "wolfssl/ssl.h" "ac_cv_header_wolfssl_ssl_h" "$ac_includes_default"
16931 + if test "x$ac_cv_header_wolfssl_ssl_h" = xyes; then :
16932 +
16933 +      if test "$cross_compiling" = yes; then :
16934 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16935 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936 + as_fn_error $? "cannot run test program while cross compiling
16937 + See \`config.log' for more details" "$LINENO" 5; }
16938 + else
16939 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 + /* end confdefs.h.  */
16941 +
16942 +
16943 +          #include <wolfssl/version.h>
16944 +          #include <stdlib.h>
16945 + int
16946 + main ()
16947 + {
16948 +
16949 +          exit(!(LIBWOLFSSL_VERSION_HEX >= 0x04003000));
16950 +  ;
16951 +  return 0;
16952 + }
16953 + _ACEOF
16954 + if ac_fn_c_try_run "$LINENO"; then :
16955 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_X509_digest in -lwolfssl" >&5
16956 + $as_echo_n "checking for wolfSSL_X509_digest in -lwolfssl... " >&6; }
16957 + if ${ac_cv_lib_wolfssl_wolfSSL_X509_digest+:} false; then :
16958 +  $as_echo_n "(cached) " >&6
16959 + else
16960 +  ac_check_lib_save_LIBS=$LIBS
16961 + LIBS="-lwolfssl  $LIBS"
16962 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 + /* end confdefs.h.  */
16964 +
16965 + /* Override any GCC internal prototype to avoid an error.
16966 +   Use char because int might match the return type of a GCC
16967 +   builtin and then its argument prototype would still apply.  */
16968 + #ifdef __cplusplus
16969 + extern "C"
16970 + #endif
16971 + char wolfSSL_X509_digest ();
16972 + int
16973 + main ()
16974 + {
16975 + return wolfSSL_X509_digest ();
16976 +  ;
16977 +  return 0;
16978 + }
16979 + _ACEOF
16980 + if ac_fn_c_try_link "$LINENO"; then :
16981 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=yes
16982 + else
16983 +  ac_cv_lib_wolfssl_wolfSSL_X509_digest=no
16984 + fi
16985 + rm -f core conftest.err conftest.$ac_objext \
16986 +    conftest$ac_exeext conftest.$ac_ext
16987 + LIBS=$ac_check_lib_save_LIBS
16988 + fi
16989 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&5
16990 + $as_echo "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" >&6; }
16991 + if test "x$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = xyes; then :
16992 +  cat >>confdefs.h <<_ACEOF
16993 + #define HAVE_LIBWOLFSSL 1
16994 + _ACEOF
16995 +
16996 +  LIBS="-lwolfssl $LIBS"
16997 +
16998 + fi
16999 +
17000 + fi
17001 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17002 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
17003 + fi
17004 +
17005 + fi
17006 +
17007 +
17008 +
17009 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer" >&5
17010 + $as_echo_n "checking for wolfSSL 4.3.0 and above built with extended/full OpenSSL compatibility layer... " >&6; }
17011 +    if test "$ac_cv_lib_wolfssl_wolfSSL_X509_digest" = "yes"; then :
17012 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17013 + $as_echo "found" >&6; }
17014 + else
17015 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - wolfSSL support disabled" >&5
17016 + $as_echo "no - wolfSSL support disabled" >&6; }
17017 + fi
17018 +
17019 +  fi
17020 + fi
17021 +
17022 +
17023 +
17024 + # Disable -Wformat-truncation
17025 +
17026 +
17027 +
17028 +
17029 + for flag in -Wno-format-truncation; do
17030 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17031 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17032 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17033 + if eval \${$as_CACHEVAR+:} false; then :
17034 +  $as_echo_n "(cached) " >&6
17035 + else
17036 +
17037 +  ax_check_save_flags=$CFLAGS
17038 +  CFLAGS="$CFLAGS  $flag"
17039 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 + /* end confdefs.h.  */
17041 +
17042 + int
17043 + main ()
17044 + {
17045 +
17046 +  ;
17047 +  return 0;
17048 + }
17049 + _ACEOF
17050 + if ac_fn_c_try_compile "$LINENO"; then :
17051 +  eval "$as_CACHEVAR=yes"
17052 + else
17053 +  eval "$as_CACHEVAR=no"
17054 + fi
17055 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 +  CFLAGS=$ax_check_save_flags
17057 + fi
17058 + eval ac_res=\$$as_CACHEVAR
17059 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17060 + $as_echo "$ac_res" >&6; }
17061 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17062 +
17063 + if ${CFLAGS+:} false; then :
17064 +
17065 +  case " $CFLAGS " in #(
17066 +  *" $flag "*) :
17067 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17068 +  (: CFLAGS already contains $flag) 2>&5
17069 +  ac_status=$?
17070 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17071 +  test $ac_status = 0; } ;; #(
17072 +  *) :
17073 +
17074 +     as_fn_append CFLAGS " $flag"
17075 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17076 +  (: CFLAGS="$CFLAGS") 2>&5
17077 +  ac_status=$?
17078 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17079 +  test $ac_status = 0; }
17080 +     ;;
17081 + esac
17082 +
17083 + else
17084 +
17085 +  CFLAGS=$flag
17086 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17087 +  (: CFLAGS="$CFLAGS") 2>&5
17088 +  ac_status=$?
17089 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 +  test $ac_status = 0; }
17091 +
17092 + fi
17093 +
17094 + else
17095 +  :
17096 + fi
17097 +
17098 + done
17099  
17100  
17101  
# Line 15526 | Line 17184 | _ACEOF
17184    test "$exec_prefix_NONE" && exec_prefix=NONE
17185  
17186  
17187 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
17187 > 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"
17188  
17189  
17190   cat >confcache <<\_ACEOF
# Line 15692 | Line 17350 | LT_CONFIG_H=config.h
17350  
17351  
17352  
15695 – if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15696 –  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15697 – Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 – fi
17353  
17354   : "${CONFIG_STATUS=./config.status}"
17355   ac_write_fail=0
# Line 16278 | Line 17932 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17932   #
17933   # INIT-COMMANDS
17934   #
17935 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17935 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17936  
17937  
17938   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 16294 | Line 17948 | enable_static='`$ECHO "$enable_static" |
17948   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17949   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17950   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17951 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17952   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17953   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17954   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 16343 | Line 17998 | compiler='`$ECHO "$compiler" | $SED "$de
17998   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17999   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18000   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18001 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18002   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18003   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"`'
18004 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18005   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18006   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18007 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18008   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18009   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18010   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 16411 | Line 18069 | finish_cmds='`$ECHO "$finish_cmds" | $SE
18069   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18070   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18071   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18072 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18072 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18073 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18074   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18075   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18076   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 16462 | Line 18121 | CFLAGS \
18121   compiler \
18122   lt_cv_sys_global_symbol_pipe \
18123   lt_cv_sys_global_symbol_to_cdecl \
18124 + lt_cv_sys_global_symbol_to_import \
18125   lt_cv_sys_global_symbol_to_c_name_address \
18126   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18127 + lt_cv_nm_interface \
18128   nm_file_list_spec \
18129 + lt_cv_truncate_bin \
18130   lt_prog_compiler_no_builtin_flag \
18131   lt_prog_compiler_pic \
18132   lt_prog_compiler_wl \
# Line 16499 | Line 18161 | old_striplib \
18161   striplib; do
18162      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18163      *[\\\\\\\`\\"\\\$]*)
18164 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18164 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18165        ;;
18166      *)
18167        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16526 | Line 18188 | postinstall_cmds \
18188   postuninstall_cmds \
18189   finish_cmds \
18190   sys_lib_search_path_spec \
18191 < sys_lib_dlsearch_path_spec; do
18191 > configure_time_dlsearch_path \
18192 > configure_time_lt_sys_library_path; do
18193      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18194      *[\\\\\\\`\\"\\\$]*)
18195 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18195 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18196        ;;
18197      *)
18198        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16538 | Line 18201 | sys_lib_dlsearch_path_spec; do
18201   done
18202  
18203   ac_aux_dir='$ac_aux_dir'
16541 – xsi_shell='$xsi_shell'
16542 – lt_shell_append='$lt_shell_append'
18204  
18205 < # See if we are running on zsh, and set the options which allow our
18205 > # See if we are running on zsh, and set the options that allow our
18206   # commands through without removal of \ escapes INIT.
18207 < if test -n "\${ZSH_VERSION+set}" ; then
18207 > if test -n "\${ZSH_VERSION+set}"; then
18208     setopt NO_GLOB_SUBST
18209   fi
18210  
18211  
18212      PACKAGE='$PACKAGE'
18213      VERSION='$VERSION'
16553 –    TIMESTAMP='$TIMESTAMP'
18214      RM='$RM'
18215      ofile='$ofile'
18216  
# Line 16573 | Line 18233 | do
18233      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18234      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18235      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18236 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18237      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18238      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18239      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 17175 | Line 18836 | $as_echo "$as_me: executing $ac_file com
18836    # Older Autoconf quotes --file arguments for eval, but not when files
18837    # are listed without --file.  Let's play safe and only enable the eval
18838    # if we detect the quoting.
18839 <  case $CONFIG_FILES in
18840 <  *\'*) eval set x "$CONFIG_FILES" ;;
18841 <  *)   set x $CONFIG_FILES ;;
18842 <  esac
18839 >  # TODO: see whether this extra hack can be removed once we start
18840 >  # requiring Autoconf 2.70 or later.
18841 >  case $CONFIG_FILES in #(
18842 >  *\'*) :
18843 >    eval set x "$CONFIG_FILES" ;; #(
18844 >  *) :
18845 >    set x $CONFIG_FILES ;; #(
18846 >  *) :
18847 >     ;;
18848 > esac
18849    shift
18850 <  for mf
18850 >  # Used to flag and report bootstrapping failures.
18851 >  am_rc=0
18852 >  for am_mf
18853    do
18854      # Strip MF so we end up with the name of the file.
18855 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18856 <    # Check whether this is an Automake generated Makefile or not.
18857 <    # We used to match only the files named 'Makefile.in', but
18858 <    # some people rename them; so instead we look at the file content.
17190 <    # Grep'ing the first line is not enough: some people post-process
17191 <    # each Makefile.in and add a new line on top of each file to say so.
17192 <    # Grep'ing the whole file is not good either: AIX grep has a line
18855 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18856 >    # Check whether this is an Automake generated Makefile which includes
18857 >    # dependency-tracking related rules and includes.
18858 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18859      # limit of 2048, but all sed's we know have understand at least 4000.
18860 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18861 <      dirpart=`$as_dirname -- "$mf" ||
18862 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863 <         X"$mf" : 'X\(//\)[^/]' \| \
18864 <         X"$mf" : 'X\(//\)$' \| \
18865 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18866 < $as_echo X"$mf" |
18860 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18861 >      || continue
18862 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18863 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18864 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18865 >         X"$am_mf" : 'X\(//\)$' \| \
18866 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18867 > $as_echo X"$am_mf" |
18868      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18869              s//\1/
18870              q
# Line 17215 | Line 18882 | $as_echo X"$mf" |
18882              q
18883            }
18884            s/.*/./; q'`
18885 <    else
18886 <      continue
18887 <    fi
18888 <    # Extract the definition of DEPDIR, am__include, and am__quote
18889 <    # from the Makefile without running 'make'.
18890 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17224 <    test -z "$DEPDIR" && continue
17225 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17226 <    test -z "$am__include" && continue
17227 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17228 <    # Find all dependency output files, they are included files with
17229 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17230 <    # simplest approach to changing $(DEPDIR) to its actual value in the
17231 <    # expansion.
17232 <    for file in `sed -n "
17233 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17234 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17235 <      # Make sure the directory exists.
17236 <      test -f "$dirpart/$file" && continue
17237 <      fdir=`$as_dirname -- "$file" ||
17238 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 <         X"$file" : 'X\(//\)[^/]' \| \
17240 <         X"$file" : 'X\(//\)$' \| \
17241 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17242 < $as_echo X"$file" |
17243 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 <            s//\1/
17245 <            q
17246 <          }
17247 <          /^X\(\/\/\)[^/].*/{
18885 >    am_filepart=`$as_basename -- "$am_mf" ||
18886 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18887 >         X"$am_mf" : 'X\(//\)$' \| \
18888 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18889 > $as_echo X/"$am_mf" |
18890 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18891              s//\1/
18892              q
18893            }
18894 <          /^X\(\/\/\)$/{
18894 >          /^X\/\(\/\/\)$/{
18895              s//\1/
18896              q
18897            }
18898 <          /^X\(\/\).*/{
18898 >          /^X\/\(\/\).*/{
18899              s//\1/
18900              q
18901            }
18902            s/.*/./; q'`
18903 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18904 <      # echo "creating $dirpart/$file"
18905 <      echo '# dummy' > "$dirpart/$file"
18906 <    done
18903 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18904 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18905 >        | $MAKE -f - am--depfiles" >&5
18906 >   (cd "$am_dirpart" \
18907 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18908 >        | $MAKE -f - am--depfiles) >&5 2>&5
18909 >   ac_status=$?
18910 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 >   (exit $ac_status); } || am_rc=$?
18912    done
18913 +  if test $am_rc -ne 0; then
18914 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18915 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18916 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18917 +    for automatic dependency tracking.  Try re-running configure with the
18918 +    '--disable-dependency-tracking' option to at least be able to build
18919 +    the package (albeit without support for automatic dependency tracking).
18920 + See \`config.log' for more details" "$LINENO" 5; }
18921 +  fi
18922 +  { am_dirpart=; unset am_dirpart;}
18923 +  { am_filepart=; unset am_filepart;}
18924 +  { am_mf=; unset am_mf;}
18925 +  { am_rc=; unset am_rc;}
18926 +  rm -f conftest-deps.mk
18927   }
18928   ;;
18929      "libtool":C)
18930  
18931 <    # See if we are running on zsh, and set the options which allow our
18931 >    # See if we are running on zsh, and set the options that allow our
18932      # commands through without removal of \ escapes.
18933 <    if test -n "${ZSH_VERSION+set}" ; then
18933 >    if test -n "${ZSH_VERSION+set}"; then
18934        setopt NO_GLOB_SUBST
18935      fi
18936  
18937 <    cfgfile="${ofile}T"
18937 >    cfgfile=${ofile}T
18938      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18939      $RM "$cfgfile"
18940  
18941      cat <<_LT_EOF >> "$cfgfile"
18942   #! $SHELL
18943 <
17282 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17283 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17284 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18943 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18944   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18945 +
18946 + # Provide generalized library-building support services.
18947 + # Written by Gordon Matzigkeit, 1996
18948 +
18949 + # Copyright (C) 2014 Free Software Foundation, Inc.
18950 + # This is free software; see the source for copying conditions.  There is NO
18951 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18952 +
18953 + # GNU Libtool is free software; you can redistribute it and/or modify
18954 + # it under the terms of the GNU General Public License as published by
18955 + # the Free Software Foundation; either version 2 of of the License, or
18956 + # (at your option) any later version.
18957   #
18958 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18959 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18960 < #                 Foundation, Inc.
18961 < #   Written by Gordon Matzigkeit, 1996
17291 < #
17292 < #   This file is part of GNU Libtool.
17293 < #
17294 < # GNU Libtool is free software; you can redistribute it and/or
17295 < # modify it under the terms of the GNU General Public License as
17296 < # published by the Free Software Foundation; either version 2 of
17297 < # the License, or (at your option) any later version.
17298 < #
17299 < # As a special exception to the GNU General Public License,
17300 < # if you distribute this file as part of a program or library that
17301 < # is built using GNU Libtool, you may include this file under the
17302 < # same distribution terms that you use for the rest of that program.
18958 > # As a special exception to the GNU General Public License, if you
18959 > # distribute this file as part of a program or library that is built
18960 > # using GNU Libtool, you may include this file under the  same
18961 > # distribution terms that you use for the rest of that program.
18962   #
18963 < # GNU Libtool is distributed in the hope that it will be useful,
18964 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18963 > # GNU Libtool is distributed in the hope that it will be useful, but
18964 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18965   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18966   # GNU General Public License for more details.
18967   #
18968   # You should have received a copy of the GNU General Public License
18969 < # along with GNU Libtool; see the file COPYING.  If not, a copy
17311 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17312 < # obtained by writing to the Free Software Foundation, Inc.,
17313 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18969 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18970  
18971  
18972   # The names of the tagged configurations supported by this script.
18973 < available_tags=""
18973 > available_tags=''
18974 >
18975 > # Configured defaults for sys_lib_dlsearch_path munging.
18976 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18977  
18978   # ### BEGIN LIBTOOL CONFIG
18979  
# Line 17334 | Line 18993 | pic_mode=$pic_mode
18993   # Whether or not to optimize for fast installation.
18994   fast_install=$enable_fast_install
18995  
18996 + # Shared archive member basename,for filename based shared library versioning on AIX.
18997 + shared_archive_member_spec=$shared_archive_member_spec
18998 +
18999   # Shell to use when invoking shell scripts.
19000   SHELL=$lt_SHELL
19001  
# Line 17451 | Line 19113 | global_symbol_pipe=$lt_lt_cv_sys_global_
19113   # Transform the output of nm in a proper C declaration.
19114   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19115  
19116 + # Transform the output of nm into a list of symbols to manually relocate.
19117 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19118 +
19119   # Transform the output of nm in a C name address pair.
19120   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19121  
19122   # Transform the output of nm in a C name address pair when lib prefix is needed.
19123   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19124  
19125 + # The name lister interface.
19126 + nm_interface=$lt_lt_cv_nm_interface
19127 +
19128   # Specify filename containing input files for \$NM.
19129   nm_file_list_spec=$lt_nm_file_list_spec
19130  
19131 < # The root where to search for dependent libraries,and in which our libraries should be installed.
19131 > # The root where to search for dependent libraries,and where our libraries should be installed.
19132   lt_sysroot=$lt_sysroot
19133  
19134 + # Command to truncate a binary pipe.
19135 + lt_truncate_bin=$lt_lt_cv_truncate_bin
19136 +
19137   # The name of the directory that contains temporary libtool files.
19138   objdir=$objdir
19139  
# Line 17553 | Line 19224 | hardcode_into_libs=$hardcode_into_libs
19224   # Compile-time system search path for libraries.
19225   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19226  
19227 < # Run-time system search path for libraries.
19228 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227 > # Detected run-time system search path for libraries.
19228 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19229 >
19230 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19231 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19232  
19233   # Whether dlopen is supported.
19234   dlopen_support=$enable_dlopen
# Line 17647 | Line 19321 | hardcode_libdir_flag_spec=$lt_hardcode_l
19321   # Whether we need a single "-rpath" flag with a separated argument.
19322   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19323  
19324 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19324 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19325   # DIR into the resulting binary.
19326   hardcode_direct=$hardcode_direct
19327  
19328 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19328 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19329   # DIR into the resulting binary and the resulting library dependency is
19330 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19330 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19331   # library is relocated.
19332   hardcode_direct_absolute=$hardcode_direct_absolute
19333  
# Line 17705 | Line 19379 | hardcode_action=$hardcode_action
19379  
19380   _LT_EOF
19381  
19382 +    cat <<'_LT_EOF' >> "$cfgfile"
19383 +
19384 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19385 +
19386 + # func_munge_path_list VARIABLE PATH
19387 + # -----------------------------------
19388 + # VARIABLE is name of variable containing _space_ separated list of
19389 + # directories to be munged by the contents of PATH, which is string
19390 + # having a format:
19391 + # "DIR[:DIR]:"
19392 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19393 + # ":DIR[:DIR]"
19394 + #       string "DIR[ DIR]" will be appended to VARIABLE
19395 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19396 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19397 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19398 + # "DIR[:DIR]"
19399 + #       VARIABLE will be replaced by "DIR[ DIR]"
19400 + func_munge_path_list ()
19401 + {
19402 +    case x$2 in
19403 +    x)
19404 +        ;;
19405 +    *:)
19406 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19407 +        ;;
19408 +    x:*)
19409 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19410 +        ;;
19411 +    *::*)
19412 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19413 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19414 +        ;;
19415 +    *)
19416 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19417 +        ;;
19418 +    esac
19419 + }
19420 +
19421 +
19422 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19423 + func_cc_basename ()
19424 + {
19425 +    for cc_temp in $*""; do
19426 +      case $cc_temp in
19427 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19428 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19429 +        \-*) ;;
19430 +        *) break;;
19431 +      esac
19432 +    done
19433 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19434 + }
19435 +
19436 +
19437 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19438 +
19439 + _LT_EOF
19440 +
19441    case $host_os in
19442    aix3*)
19443      cat <<\_LT_EOF >> "$cfgfile"
19444   # AIX sometimes has problems with the GCC collect2 program.  For some
19445   # reason, if we set the COLLECT_NAMES environment variable, the problems
19446   # vanish in a puff of smoke.
19447 < if test "X${COLLECT_NAMES+set}" != Xset; then
19447 > if test set != "${COLLECT_NAMES+set}"; then
19448    COLLECT_NAMES=
19449    export COLLECT_NAMES
19450   fi
# Line 17720 | Line 19453 | _LT_EOF
19453    esac
19454  
19455  
19456 < ltmain="$ac_aux_dir/ltmain.sh"
19456 > ltmain=$ac_aux_dir/ltmain.sh
19457  
19458  
19459    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 17730 | Line 19463 | ltmain="$ac_aux_dir/ltmain.sh"
19463    sed '$q' "$ltmain" >> "$cfgfile" \
19464       || (rm -f "$cfgfile"; exit 1)
19465  
17733 –  if test x"$xsi_shell" = xyes; then
17734 –  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17735 – func_dirname ()\
17736 – {\
17737 – \    case ${1} in\
17738 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17739 – \      *  ) func_dirname_result="${3}" ;;\
17740 – \    esac\
17741 – } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17742 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17743 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17744 – test 0 -eq $? || _lt_function_replace_fail=:
17745 –
17746 –
17747 –  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17748 – func_basename ()\
17749 – {\
17750 – \    func_basename_result="${1##*/}"\
17751 – } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17752 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17753 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17754 – test 0 -eq $? || _lt_function_replace_fail=:
17755 –
17756 –
17757 –  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17758 – func_dirname_and_basename ()\
17759 – {\
17760 – \    case ${1} in\
17761 – \      */*) func_dirname_result="${1%/*}${2}" ;;\
17762 – \      *  ) func_dirname_result="${3}" ;;\
17763 – \    esac\
17764 – \    func_basename_result="${1##*/}"\
17765 – } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17766 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17767 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17768 – test 0 -eq $? || _lt_function_replace_fail=:
17769 –
17770 –
17771 –  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17772 – func_stripname ()\
17773 – {\
17774 – \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17775 – \    # positional parameters, so assign one to ordinary parameter first.\
17776 – \    func_stripname_result=${3}\
17777 – \    func_stripname_result=${func_stripname_result#"${1}"}\
17778 – \    func_stripname_result=${func_stripname_result%"${2}"}\
17779 – } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17780 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17781 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17782 – test 0 -eq $? || _lt_function_replace_fail=:
17783 –
17784 –
17785 –  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17786 – func_split_long_opt ()\
17787 – {\
17788 – \    func_split_long_opt_name=${1%%=*}\
17789 – \    func_split_long_opt_arg=${1#*=}\
17790 – } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17791 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17792 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17793 – test 0 -eq $? || _lt_function_replace_fail=:
17794 –
17795 –
17796 –  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17797 – func_split_short_opt ()\
17798 – {\
17799 – \    func_split_short_opt_arg=${1#??}\
17800 – \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17801 – } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17802 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17803 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17804 – test 0 -eq $? || _lt_function_replace_fail=:
17805 –
17806 –
17807 –  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17808 – func_lo2o ()\
17809 – {\
17810 – \    case ${1} in\
17811 – \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17812 – \      *)    func_lo2o_result=${1} ;;\
17813 – \    esac\
17814 – } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17815 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17816 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17817 – test 0 -eq $? || _lt_function_replace_fail=:
17818 –
17819 –
17820 –  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17821 – func_xform ()\
17822 – {\
17823 –    func_xform_result=${1%.*}.lo\
17824 – } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17825 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17826 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17827 – test 0 -eq $? || _lt_function_replace_fail=:
17828 –
17829 –
17830 –  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17831 – func_arith ()\
17832 – {\
17833 –    func_arith_result=$(( $* ))\
17834 – } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17835 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17836 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17837 – test 0 -eq $? || _lt_function_replace_fail=:
17838 –
17839 –
17840 –  sed -e '/^func_len ()$/,/^} # func_len /c\
17841 – func_len ()\
17842 – {\
17843 –    func_len_result=${#1}\
17844 – } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17845 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17846 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17847 – test 0 -eq $? || _lt_function_replace_fail=:
17848 –
17849 – fi
17850 –
17851 – if test x"$lt_shell_append" = xyes; then
17852 –  sed -e '/^func_append ()$/,/^} # func_append /c\
17853 – func_append ()\
17854 – {\
17855 –    eval "${1}+=\\${2}"\
17856 – } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17857 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17858 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859 – test 0 -eq $? || _lt_function_replace_fail=:
17860 –
17861 –
17862 –  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17863 – func_append_quoted ()\
17864 – {\
17865 – \    func_quote_for_eval "${2}"\
17866 – \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17867 – } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17868 –  && mv -f "$cfgfile.tmp" "$cfgfile" \
17869 –    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17870 – test 0 -eq $? || _lt_function_replace_fail=:
17871 –
17872 –
17873 –  # Save a `func_append' function call where possible by direct use of '+='
17874 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17875 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
17876 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17877 –  test 0 -eq $? || _lt_function_replace_fail=:
17878 – else
17879 –  # Save a `func_append' function call even when '+=' is not available
17880 –  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17881 –    && mv -f "$cfgfile.tmp" "$cfgfile" \
17882 –      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17883 –  test 0 -eq $? || _lt_function_replace_fail=:
17884 – fi
17885 –
17886 – if test x"$_lt_function_replace_fail" = x":"; then
17887 –  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17888 – $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17889 – fi
17890 –
17891 –
19466     mv -f "$cfgfile" "$ofile" ||
19467      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19468    chmod +x "$ofile"
# Line 17932 | Line 19506 | if test -n "$ac_unrecognized_opts" && te
19506   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19507   fi
19508  
19509 +
19510 + echo "###############################################################################"
19511 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19512 + echo
19513 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19514 + echo "   ./configure --prefix=DIRECTORY"
19515 + echo "###############################################################################"

Diff Legend

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