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

Comparing:
ircd-hybrid-8/configure (file contents), Revision 1252 by michael, Fri Oct 21 20:24:08 2011 UTC vs.
ircd-hybrid/trunk/configure (file contents), Revision 4906 by michael, Sat Nov 22 21:40:31 2014 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 1245 2011-09-30 14:58:29Z michael .
2 > # From configure.ac Id: configure.ac 4901 2014-11-22 18:31:53Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.1.
5   #
6   # Report bugs to <bugs@ircd-hybrid.org>.
7   #
8   #
9 < # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 < # Foundation, Inc.
9 > # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10   #
11   #
12   # This configure script is free software; the Free Software Foundation
# Line 137 | Line 135 | export LANGUAGE
135   # CDPATH.
136   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137  
138 + # Use a proper internal environment variable to ensure we don't fall
139 +  # into an infinite loop, continuously re-executing ourselves.
140 +  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 +    _as_can_reexec=no; export _as_can_reexec;
142 +    # We cannot yet assume a decent shell, so we have to provide a
143 + # neutralization value for shells without unset; and this also
144 + # works around shells that cannot unset nonexistent variables.
145 + # Preserve -v and -x to the replacement shell.
146 + BASH_ENV=/dev/null
147 + ENV=/dev/null
148 + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 + case $- in # ((((
150 +  *v*x* | *x*v* ) as_opts=-vx ;;
151 +  *v* ) as_opts=-v ;;
152 +  *x* ) as_opts=-x ;;
153 +  * ) as_opts= ;;
154 + esac
155 + exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 + # Admittedly, this is quite paranoid, since all the known shells bail
157 + # out after a failed `exec'.
158 + $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 + as_fn_exit 255
160 +  fi
161 +  # We don't want this to propagate to other subprocesses.
162 +          { _as_can_reexec=; unset _as_can_reexec;}
163   if test "x$CONFIG_SHELL" = x; then
164    as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165    emulate sh
# Line 170 | Line 193 | if ( set x; as_fn_ret_success y && test
193   else
194    exitcode=1; echo positional parameters were not saved.
195   fi
196 < test x\$exitcode = x0 || exit 1"
196 > test x\$exitcode = x0 || exit 1
197 > test -x / || exit 1"
198    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
# Line 223 | Line 247 | IFS=$as_save_IFS
247  
248  
249        if test "x$CONFIG_SHELL" != x; then :
250 <  # We cannot yet assume a decent shell, so we have to provide a
251 <        # neutralization value for shells without unset; and this also
252 <        # works around shells that cannot unset nonexistent variables.
253 <        # Preserve -v and -x to the replacement shell.
254 <        BASH_ENV=/dev/null
255 <        ENV=/dev/null
256 <        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 <        export CONFIG_SHELL
258 <        case $- in # ((((
259 <          *v*x* | *x*v* ) as_opts=-vx ;;
260 <          *v* ) as_opts=-v ;;
261 <          *x* ) as_opts=-x ;;
262 <          * ) as_opts= ;;
263 <        esac
264 <        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
250 >  export CONFIG_SHELL
251 >             # We cannot yet assume a decent shell, so we have to provide a
252 > # neutralization value for shells without unset; and this also
253 > # works around shells that cannot unset nonexistent variables.
254 > # Preserve -v and -x to the replacement shell.
255 > BASH_ENV=/dev/null
256 > ENV=/dev/null
257 > (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 > case $- in # ((((
259 >  *v*x* | *x*v* ) as_opts=-vx ;;
260 >  *v* ) as_opts=-v ;;
261 >  *x* ) as_opts=-x ;;
262 >  * ) as_opts= ;;
263 > esac
264 > exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 > # Admittedly, this is quite paranoid, since all the known shells bail
266 > # out after a failed `exec'.
267 > $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 > exit 255
269   fi
270  
271      if test x$as_have_required = xno; then :
# Line 340 | Line 368 | $as_echo X"$as_dir" |
368  
369  
370   } # as_fn_mkdir_p
371 +
372 + # as_fn_executable_p FILE
373 + # -----------------------
374 + # Test if FILE is an executable regular file.
375 + as_fn_executable_p ()
376 + {
377 +  test -f "$1" && test -x "$1"
378 + } # as_fn_executable_p
379   # as_fn_append VAR VALUE
380   # ----------------------
381   # Append the text in VALUE to the end of the definition contained in VAR. Take
# Line 461 | Line 497 | as_cr_alnum=$as_cr_Letters$as_cr_digits
497    chmod +x "$as_me.lineno" ||
498      { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499  
500 +  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 +  # already done that, so ensure we don't try to do so again and fall
502 +  # in an infinite loop.  This has already happened in practice.
503 +  _as_can_reexec=no; export _as_can_reexec
504    # Don't try to exec as it changes $[0], causing all sort of problems
505    # (the dirname of $[0] is not the place where we might find the
506    # original and so on.  Autoconf is especially sensitive to this).
# Line 495 | Line 535 | if (echo >conf$$.file) 2>/dev/null; then
535      # ... but there are two gotchas:
536      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 <    # In both cases, we have to default to `cp -p'.
538 >    # In both cases, we have to default to `cp -pR'.
539      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 <      as_ln_s='cp -p'
540 >      as_ln_s='cp -pR'
541    elif ln conf$$.file conf$$ 2>/dev/null; then
542      as_ln_s=ln
543    else
544 <    as_ln_s='cp -p'
544 >    as_ln_s='cp -pR'
545    fi
546   else
547 <  as_ln_s='cp -p'
547 >  as_ln_s='cp -pR'
548   fi
549   rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550   rmdir conf$$.dir 2>/dev/null
# Line 516 | Line 556 | else
556    as_mkdir_p=false
557   fi
558  
559 < if test -x / >/dev/null 2>&1; then
560 <  as_test_x='test -x'
521 < else
522 <  if ls -dL / >/dev/null 2>&1; then
523 <    as_ls_L_option=L
524 <  else
525 <    as_ls_L_option=
526 <  fi
527 <  as_test_x='
528 <    eval sh -c '\''
529 <      if test -d "$1"; then
530 <        test -d "$1/.";
531 <      else
532 <        case $1 in #(
533 <        -*)set "./$1";;
534 <        esac;
535 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 <        ???[sx]*):;;*)false;;esac;fi
537 <    '\'' sh
538 <  '
539 < fi
540 < as_executable_p=$as_test_x
559 > as_test_x='test -x'
560 > as_executable_p=as_fn_executable_p
561  
562   # Sed expression to map a string onto a valid CPP name.
563   as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Line 573 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='8beta1'
597 < PACKAGE_STRING='ircd-hybrid 8beta1'
596 > PACKAGE_VERSION='8.2.1'
597 > PACKAGE_STRING='ircd-hybrid 8.2.1'
598   PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
# Line 628 | Line 648 | DATADIR
648   LIBDIR
649   SYSCONFDIR
650   PREFIX
631 EFNET_FALSE
632 EFNET_TRUE
651   ENABLE_SSL_FALSE
652   ENABLE_SSL_TRUE
635 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
653   LTDLOPEN
654   LT_CONFIG_H
655   CONVENIENCE_LTDL_FALSE
# Line 690 | Line 706 | YACC
706   am__fastdepCC_FALSE
707   am__fastdepCC_TRUE
708   CCDEPMODE
709 + am__nodep
710   AMDEPBACKSLASH
711   AMDEP_FALSE
712   AMDEP_TRUE
# Line 706 | Line 723 | CC
723   MAINT
724   MAINTAINER_MODE_FALSE
725   MAINTAINER_MODE_TRUE
726 + AM_BACKSLASH
727 + AM_DEFAULT_VERBOSITY
728 + AM_DEFAULT_V
729 + AM_V
730   am__untar
731   am__tar
732   AMTAR
# Line 770 | Line 791 | SHELL'
791   ac_subst_files=''
792   ac_user_opts='
793   enable_option_checking
794 + enable_silent_rules
795   enable_maintainer_mode
796   enable_dependency_tracking
797   enable_static
# Line 783 | Line 805 | with_included_ltdl
805   with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
808 < with_zlib_path
787 < enable_zlib
788 < with_libpcre_path
789 < enable_libpcre
790 < enable_openssl
808 > enable_libgeoip
809   enable_assert
792 enable_small_net
810   enable_kqueue
811   enable_epoll
812   enable_devpoll
796 enable_rtsigio
813   enable_poll
798 enable_select
799 with_nicklen
800 with_topiclen
801 with_syslog_facility
802 enable_efnet
803 enable_halfops
814   enable_debugging
815   enable_warnings
816 < enable_syslog
816 > enable_openssl
817   '
818        ac_precious_vars='build_alias
819   host_alias
# Line 1271 | Line 1281 | target=$target_alias
1281   if test "x$host_alias" != x; then
1282    if test "x$build_alias" = x; then
1283      cross_compiling=maybe
1274    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1275    If a cross compiler is detected then cross compile mode will be used" >&2
1284    elif test "x$build_alias" != "x$host_alias"; then
1285      cross_compiling=yes
1286    fi
# Line 1358 | Line 1366 | if test "$ac_init_help" = "long"; then
1366    # Omit some internal or obsolete options to make the list less imposing.
1367    # This message is too long to be a string in the A/UX 3.1 sh.
1368    cat <<_ACEOF
1369 < \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1369 > \`configure' configures ircd-hybrid 8.2.1 to adapt to many kinds of systems.
1370  
1371   Usage: $0 [OPTION]... [VAR=VALUE]...
1372  
# Line 1428 | Line 1436 | fi
1436  
1437   if test -n "$ac_init_help"; then
1438    case $ac_init_help in
1439 <     short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1439 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.1:";;
1440     esac
1441    cat <<\_ACEOF
1442  
# Line 1436 | Line 1444 | Optional Features:
1444    --disable-option-checking  ignore unrecognized --enable/--with options
1445    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447 <  --enable-maintainer-mode  enable make rules and dependencies not useful
1448 <                          (and sometimes confusing) to the casual installer
1449 <  --disable-dependency-tracking  speeds up one-time build
1450 <  --enable-dependency-tracking   do not reject slow dependency extractors
1447 >  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448 >  --disable-silent-rules  verbose build output (undo: "make V=0")
1449 >  --enable-maintainer-mode
1450 >                          enable make rules and dependencies not useful (and
1451 >                          sometimes confusing) to the casual installer
1452 >  --enable-dependency-tracking
1453 >                          do not reject slow dependency extractors
1454 >  --disable-dependency-tracking
1455 >                          speeds up one-time build
1456    --enable-static[=PKGS]  build static libraries [default=no]
1457    --enable-shared[=PKGS]  build shared libraries [default=yes]
1458    --enable-fast-install[=PKGS]
1459                            optimize for fast installation [default=yes]
1460    --disable-libtool-lock  avoid locking (might break parallel builds)
1461    --enable-ltdl-install   install libltdl
1462 <  --disable-zlib          Disable ziplinks support
1450 <  --disable-libpcre       Disable PCRE support
1451 <  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1452 <  --disable-openssl            Disable OpenSSL support.
1462 >  --disable-libgeoip      Disable GeoIP support
1463    --enable-assert         Enable assert() statements
1454  --enable-small-net      Enable small network support.
1464    --enable-kqueue         Force kqueue usage.
1465    --enable-epoll          Force epoll usage.
1466    --enable-devpoll        Force devpoll usage.
1458  --enable-rtsigio        Force rtsigio usage.
1467    --enable-poll           Force poll usage.
1460  --enable-select         Force select usage.
1461  --enable-efnet          For IRCDs running on EFnet.
1462  --enable-halfops        Enable halfops support.
1468    --enable-debugging      Enable debugging.
1469    --enable-warnings       Enable compiler warnings.
1470 <  --enable-syslog="EVENTS"
1471 <                          Enable syslog for events: users oper (space
1467 <                          separated in quotes; default: disabled).
1470 >  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1471 >  --disable-openssl            Disable LibreSSL/OpenSSL support.
1472  
1473   Optional Packages:
1474    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476 <  --with-pic              try to use only PIC/non-PIC objects [default=use
1476 >  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1477                            both]
1478    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479 <  --with-sysroot=DIR Search for dependent libraries within DIR
1480 <                        (or the compiler's sysroot if not specified).
1479 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1480 >                          compiler's sysroot if not specified).
1481    --with-included-ltdl    use the GNU ltdl sources included here
1482    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1483    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1480  --with-zlib-path=DIR    Path to libz.so for ziplinks support.
1481  --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1482  --with-nicklen=<value>  Set nickname length (default 9).
1483  --with-topiclen=<value> Set topic length (default 160).
1484  --with-syslog-facility=LOG
1485                          Define the syslog facility to use (default:
1486                          LOG_LOCAL4)
1484  
1485   Some influential environment variables:
1486    CC          C compiler command
# Line 1567 | Line 1564 | fi
1564   test -n "$ac_init_help" && exit $ac_status
1565   if $ac_init_version; then
1566    cat <<\_ACEOF
1567 < ircd-hybrid configure 8beta1
1568 < generated by GNU Autoconf 2.68
1567 > ircd-hybrid configure 8.2.1
1568 > generated by GNU Autoconf 2.69
1569  
1570 < Copyright (C) 2010 Free Software Foundation, Inc.
1570 > Copyright (C) 2012 Free Software Foundation, Inc.
1571   This configure script is free software; the Free Software Foundation
1572   gives unlimited permission to copy, distribute and modify it.
1573   _ACEOF
# Line 1646 | Line 1643 | $as_echo "$ac_try_echo"; } >&5
1643           test ! -s conftest.err
1644         } && test -s conftest$ac_exeext && {
1645           test "$cross_compiling" = yes ||
1646 <         $as_test_x conftest$ac_exeext
1646 >         test -x conftest$ac_exeext
1647         }; then :
1648    ac_retval=0
1649   else
# Line 1942 | Line 1939 | $as_echo "$ac_res" >&6; }
1939  
1940   } # ac_fn_c_check_type
1941  
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956 else
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966  ;
1967  return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971  eval "$4=yes"
1972 else
1973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982  ;
1983  return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987  eval "$4=yes"
1988 else
1989  eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
1942   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943   # -------------------------------------------------------
1944   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2093 | Line 2033 | cat >config.log <<_ACEOF
2033   This file contains any messages produced by compilers while
2034   running configure, to aid debugging if configure makes a mistake.
2035  
2036 < It was created by ircd-hybrid $as_me 8beta1, which was
2037 < generated by GNU Autoconf 2.68.  Invocation command line was
2036 > It was created by ircd-hybrid $as_me 8.2.1, which was
2037 > generated by GNU Autoconf 2.69.  Invocation command line was
2038  
2039    $ $0 $@
2040  
# Line 2373 | Line 2313 | $as_echo "$as_me: creating cache $cache_
2313    >$cache_file
2314   fi
2315  
2376 as_fn_append ac_func_list " mmap"
2316   as_fn_append ac_func_list " strtok_r"
2317   as_fn_append ac_func_list " usleep"
2318   as_fn_append ac_func_list " strlcat"
2319   as_fn_append ac_func_list " strlcpy"
2381 as_fn_append ac_func_list " socketpair"
2320   as_fn_append ac_header_list " crypt.h"
2383 as_fn_append ac_header_list " inttypes.h"
2384 as_fn_append ac_header_list " stdint.h"
2321   as_fn_append ac_header_list " sys/resource.h"
2322   as_fn_append ac_header_list " sys/param.h"
2387 as_fn_append ac_header_list " errno.h"
2388 as_fn_append ac_header_list " sys/syslog.h"
2323   as_fn_append ac_header_list " types.h"
2324   as_fn_append ac_header_list " socket.h"
2325   as_fn_append ac_header_list " sys/wait.h"
2326   as_fn_append ac_header_list " wait.h"
2393 as_fn_append ac_header_list " link.h"
2327   # Check that the precious variables saved in the cache have kept the same
2328   # value.
2329   ac_cache_corrupted=false
# Line 2459 | Line 2392 | ac_link='$CC -o conftest$ac_exeext $CFLA
2392   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393  
2394  
2395 < am__api_version='1.11'
2395 > am__api_version='1.14'
2396  
2397   ac_aux_dir=
2398   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2527 | Line 2460 | case $as_dir/ in #((
2460      # by default.
2461      for ac_prog in ginstall scoinst install; do
2462        for ac_exec_ext in '' $ac_executable_extensions; do
2463 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2463 >        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2464            if test $ac_prog = install &&
2465              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466              # AIX install.  It has an incompatible calling convention.
# Line 2585 | Line 2518 | test -z "$INSTALL_DATA" && INSTALL_DATA=
2518  
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520   $as_echo_n "checking whether build environment is sane... " >&6; }
2588 # Just in case
2589 sleep 1
2590 echo timestamp > conftest.file
2521   # Reject unsafe characters in $srcdir or the absolute working directory
2522   # name.  Accept space and tab only in the latter.
2523   am_lf='
# Line 2598 | Line 2528 | case `pwd` in
2528   esac
2529   case $srcdir in
2530    *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2531 <    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2531 >    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2532   esac
2533  
2534 < # Do `set' in a subshell so we don't clobber the current shell's
2534 > # Do 'set' in a subshell so we don't clobber the current shell's
2535   # arguments.  Must try -L first in case configure is actually a
2536   # symlink; some systems play weird games with the mod time of symlinks
2537   # (eg FreeBSD returns the mod time of the symlink's containing
2538   # directory).
2539   if (
2540 <   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2541 <   if test "$*" = "X"; then
2542 <      # -L didn't work.
2543 <      set X `ls -t "$srcdir/configure" conftest.file`
2544 <   fi
2545 <   rm -f conftest.file
2546 <   if test "$*" != "X $srcdir/configure conftest.file" \
2547 <      && test "$*" != "X conftest.file $srcdir/configure"; then
2548 <
2549 <      # If neither matched, then we have a broken ls.  This can happen
2620 <      # if, for instance, CONFIG_SHELL is bash and it inherits a
2621 <      # broken ls alias from the environment.  This has actually
2622 <      # happened.  Such a system could not be considered "sane".
2623 <      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2624 < alias in your environment" "$LINENO" 5
2625 <   fi
2540 >   am_has_slept=no
2541 >   for am_try in 1 2; do
2542 >     echo "timestamp, slept: $am_has_slept" > conftest.file
2543 >     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544 >     if test "$*" = "X"; then
2545 >        # -L didn't work.
2546 >        set X `ls -t "$srcdir/configure" conftest.file`
2547 >     fi
2548 >     if test "$*" != "X $srcdir/configure conftest.file" \
2549 >        && test "$*" != "X conftest.file $srcdir/configure"; then
2550  
2551 +        # If neither matched, then we have a broken ls.  This can happen
2552 +        # if, for instance, CONFIG_SHELL is bash and it inherits a
2553 +        # broken ls alias from the environment.  This has actually
2554 +        # happened.  Such a system could not be considered "sane".
2555 +        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2556 +  alias in your environment" "$LINENO" 5
2557 +     fi
2558 +     if test "$2" = conftest.file || test $am_try -eq 2; then
2559 +       break
2560 +     fi
2561 +     # Just in case.
2562 +     sleep 1
2563 +     am_has_slept=yes
2564 +   done
2565     test "$2" = conftest.file
2566     )
2567   then
# Line 2635 | Line 2573 | Check your system clock" "$LINENO" 5
2573   fi
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575   $as_echo "yes" >&6; }
2576 + # If we didn't sleep, we still need to ensure time stamps of config.status and
2577 + # generated files are strictly newer.
2578 + am_sleep_pid=
2579 + if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2580 +  ( sleep 1 ) &
2581 +  am_sleep_pid=$!
2582 + fi
2583 +
2584 + rm -f conftest.file
2585 +
2586   test "$program_prefix" != NONE &&
2587    program_transform_name="s&^&$program_prefix&;$program_transform_name"
2588   # Use a double $ so make ignores it.
# Line 2657 | Line 2605 | if test x"${MISSING+set}" != xset; then
2605    esac
2606   fi
2607   # Use eval to expand $SHELL
2608 < if eval "$MISSING --run true"; then
2609 <  am_missing_run="$MISSING --run "
2608 > if eval "$MISSING --is-lightweight"; then
2609 >  am_missing_run="$MISSING "
2610   else
2611    am_missing_run=
2612 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2613 < $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2612 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2613 > $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2614   fi
2615  
2616   if test x"${install_sh}" != xset; then
# Line 2674 | Line 2622 | if test x"${install_sh}" != xset; then
2622    esac
2623   fi
2624  
2625 < # Installed binaries are usually stripped using `strip' when the user
2626 < # run `make install-strip'.  However `strip' might not be the right
2625 > # Installed binaries are usually stripped using 'strip' when the user
2626 > # run "make install-strip".  However 'strip' might not be the right
2627   # tool to use in cross-compilation environments, therefore Automake
2628 < # will honor the `STRIP' environment variable to overrule this program.
2628 > # will honor the 'STRIP' environment variable to overrule this program.
2629   if test "$cross_compiling" != no; then
2630    if test -n "$ac_tool_prefix"; then
2631    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
# Line 2696 | Line 2644 | do
2644    IFS=$as_save_IFS
2645    test -z "$as_dir" && as_dir=.
2646      for ac_exec_ext in '' $ac_executable_extensions; do
2647 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2649      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650      break 2
# Line 2736 | Line 2684 | do
2684    IFS=$as_save_IFS
2685    test -z "$as_dir" && as_dir=.
2686      for ac_exec_ext in '' $ac_executable_extensions; do
2687 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688      ac_cv_prog_ac_ct_STRIP="strip"
2689      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690      break 2
# Line 2787 | Line 2735 | do
2735    test -z "$as_dir" && as_dir=.
2736      for ac_prog in mkdir gmkdir; do
2737           for ac_exec_ext in '' $ac_executable_extensions; do
2738 <           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2738 >           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2739             case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2740               'mkdir (GNU coreutils) '* | \
2741               'mkdir (coreutils) '* | \
# Line 2816 | Line 2764 | fi
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2765   $as_echo "$MKDIR_P" >&6; }
2766  
2819 mkdir_p="$MKDIR_P"
2820 case $mkdir_p in
2821  [\\/$]* | ?:[\\/]*) ;;
2822  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2823 esac
2824
2767   for ac_prog in gawk mawk nawk awk
2768   do
2769    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 2840 | Line 2782 | do
2782    IFS=$as_save_IFS
2783    test -z "$as_dir" && as_dir=.
2784      for ac_exec_ext in '' $ac_executable_extensions; do
2785 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786      ac_cv_prog_AWK="$ac_prog"
2787      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788      break 2
# Line 2904 | Line 2846 | else
2846   fi
2847   rmdir .tst 2>/dev/null
2848  
2849 + # Check whether --enable-silent-rules was given.
2850 + if test "${enable_silent_rules+set}" = set; then :
2851 +  enableval=$enable_silent_rules;
2852 + fi
2853 +
2854 + case $enable_silent_rules in # (((
2855 +  yes) AM_DEFAULT_VERBOSITY=0;;
2856 +   no) AM_DEFAULT_VERBOSITY=1;;
2857 +    *) AM_DEFAULT_VERBOSITY=1;;
2858 + esac
2859 + am_make=${MAKE-make}
2860 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2861 + $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2862 + if ${am_cv_make_support_nested_variables+:} false; then :
2863 +  $as_echo_n "(cached) " >&6
2864 + else
2865 +  if $as_echo 'TRUE=$(BAR$(V))
2866 + BAR0=false
2867 + BAR1=true
2868 + V=1
2869 + am__doit:
2870 +        @$(TRUE)
2871 + .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2872 +  am_cv_make_support_nested_variables=yes
2873 + else
2874 +  am_cv_make_support_nested_variables=no
2875 + fi
2876 + fi
2877 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2878 + $as_echo "$am_cv_make_support_nested_variables" >&6; }
2879 + if test $am_cv_make_support_nested_variables = yes; then
2880 +    AM_V='$(V)'
2881 +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 + else
2883 +  AM_V=$AM_DEFAULT_VERBOSITY
2884 +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2885 + fi
2886 + AM_BACKSLASH='\'
2887 +
2888   if test "`cd $srcdir && pwd`" != "`pwd`"; then
2889    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2890    # is not polluted with repeated "-I."
# Line 2926 | Line 2907 | fi
2907  
2908   # Define the identity of the package.
2909   PACKAGE='ircd-hybrid'
2910 < VERSION='8beta1'
2910 > VERSION='8.2.1'
2911  
2912  
2913   cat >>confdefs.h <<_ACEOF
# Line 2954 | Line 2935 | AUTOHEADER=${AUTOHEADER-"${am_missing_ru
2935  
2936   MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937  
2938 + # For better backward compatibility.  To be removed once Automake 1.9.x
2939 + # dies out for good.  For more background, see:
2940 + # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2941 + # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2942 + mkdir_p='$(MKDIR_P)'
2943 +
2944   # We need awk for the "check" target.  The system "awk" is bad on
2945   # some platforms.
2946 < # Always define AMTAR for backward compatibility.
2946 > # Always define AMTAR for backward compatibility.  Yes, it's still used
2947 > # in the wild :-(  We should find a proper way to deprecate it ...
2948 > AMTAR='$${TAR-tar}'
2949 >
2950 >
2951 > # We'll loop over all known methods to create a tar archive until one works.
2952 > _am_tools='gnutar  pax cpio none'
2953 >
2954 > am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2955  
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2956  
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2957  
2958  
2959  
2960  
2961 + # POSIX will say in a future version that running "rm -f" with no argument
2962 + # is OK; and we want to be able to make that assumption in our Makefile
2963 + # recipes.  So use an aggressive probe to check that the usage we want is
2964 + # actually supported "in the wild" to an acceptable degree.
2965 + # See automake bug#10828.
2966 + # To make any issue more visible, cause the running configure to be aborted
2967 + # by default if the 'rm' program in use doesn't match our expectations; the
2968 + # user can still override this though.
2969 + if rm -f && rm -fr && rm -rf; then : OK; else
2970 +  cat >&2 <<'END'
2971 + Oops!
2972  
2973 + Your 'rm' program seems unable to run without file operands specified
2974 + on the command line, even when the '-f' option is present.  This is contrary
2975 + to the behaviour of most rm programs out there, and not conforming with
2976 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977 +
2978 + Please tell bug-automake@gnu.org about your system, including the value
2979 + of your $PATH and any error possibly output before this message.  This
2980 + can help us improve future automake versions.
2981 +
2982 + END
2983 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2984 +    echo 'Configuration will proceed anyway, since you have set the' >&2
2985 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2986 +    echo >&2
2987 +  else
2988 +    cat >&2 <<'END'
2989 + Aborting the configuration process, to ensure you take notice of the issue.
2990 +
2991 + You can download and install GNU coreutils to get an 'rm' implementation
2992 + that behaves properly: <http://www.gnu.org/software/coreutils/>.
2993 +
2994 + If you want to complete the configuration process using your problematic
2995 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2996 + to "yes", and re-run configure.
2997 +
2998 + END
2999 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3000 +  fi
3001 + fi
3002  
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3004   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Line 2989 | Line 3022 | fi
3022    MAINT=$MAINTAINER_MODE_TRUE
3023  
3024  
3025 +
3026   ac_config_headers="$ac_config_headers config.h"
3027  
3028  
# Line 3013 | Line 3047 | am__quote=
3047   _am_result=none
3048   # First try GNU make style include.
3049   echo "include confinc" > confmf
3050 < # Ignore all kinds of additional output from `make'.
3050 > # Ignore all kinds of additional output from 'make'.
3051   case `$am_make -s -f confmf 2> /dev/null` in #(
3052   *the\ am__doit\ target*)
3053    am__include=include
# Line 3046 | Line 3080 | fi
3080   if test "x$enable_dependency_tracking" != xno; then
3081    am_depcomp="$ac_aux_dir/depcomp"
3082    AMDEPBACKSLASH='\'
3083 +  am__nodep='_no'
3084   fi
3085   if test "x$enable_dependency_tracking" != xno; then
3086    AMDEP_TRUE=
# Line 3078 | Line 3113 | do
3113    IFS=$as_save_IFS
3114    test -z "$as_dir" && as_dir=.
3115      for ac_exec_ext in '' $ac_executable_extensions; do
3116 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117      ac_cv_prog_CC="${ac_tool_prefix}gcc"
3118      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119      break 2
# Line 3118 | Line 3153 | do
3153    IFS=$as_save_IFS
3154    test -z "$as_dir" && as_dir=.
3155      for ac_exec_ext in '' $ac_executable_extensions; do
3156 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157      ac_cv_prog_ac_ct_CC="gcc"
3158      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159      break 2
# Line 3171 | Line 3206 | do
3206    IFS=$as_save_IFS
3207    test -z "$as_dir" && as_dir=.
3208      for ac_exec_ext in '' $ac_executable_extensions; do
3209 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210      ac_cv_prog_CC="${ac_tool_prefix}cc"
3211      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212      break 2
# Line 3212 | Line 3247 | do
3247    IFS=$as_save_IFS
3248    test -z "$as_dir" && as_dir=.
3249      for ac_exec_ext in '' $ac_executable_extensions; do
3250 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252         ac_prog_rejected=yes
3253         continue
# Line 3270 | Line 3305 | do
3305    IFS=$as_save_IFS
3306    test -z "$as_dir" && as_dir=.
3307      for ac_exec_ext in '' $ac_executable_extensions; do
3308 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3310      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311      break 2
# Line 3314 | Line 3349 | do
3349    IFS=$as_save_IFS
3350    test -z "$as_dir" && as_dir=.
3351      for ac_exec_ext in '' $ac_executable_extensions; do
3352 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353      ac_cv_prog_ac_ct_CC="$ac_prog"
3354      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355      break 2
# Line 3760 | Line 3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_
3795   /* end confdefs.h.  */
3796   #include <stdarg.h>
3797   #include <stdio.h>
3798 < #include <sys/types.h>
3764 < #include <sys/stat.h>
3798 > struct stat;
3799   /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3800   struct buf { int x; };
3801   FILE * (*rcsopen) (struct buf *, struct stat *, int);
# Line 3846 | Line 3880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3880   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882  
3883 + ac_ext=c
3884 + ac_cpp='$CPP $CPPFLAGS'
3885 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3889 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3890 + if ${am_cv_prog_cc_c_o+:} false; then :
3891 +  $as_echo_n "(cached) " >&6
3892 + else
3893 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 + /* end confdefs.h.  */
3895 +
3896 + int
3897 + main ()
3898 + {
3899 +
3900 +  ;
3901 +  return 0;
3902 + }
3903 + _ACEOF
3904 +  # Make sure it works both with $CC and with simple cc.
3905 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3906 +  # compilers refuse to overwrite an existing .o file with -o,
3907 +  # though they will create one.
3908 +  am_cv_prog_cc_c_o=yes
3909 +  for am_i in 1 2; do
3910 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3911 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3912 +   ac_status=$?
3913 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 +   (exit $ac_status); } \
3915 +         && test -f conftest2.$ac_objext; then
3916 +      : OK
3917 +    else
3918 +      am_cv_prog_cc_c_o=no
3919 +      break
3920 +    fi
3921 +  done
3922 +  rm -f core conftest*
3923 +  unset am_i
3924 + fi
3925 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3926 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3927 + if test "$am_cv_prog_cc_c_o" != yes; then
3928 +   # Losing compiler, so override with the script.
3929 +   # FIXME: It is wrong to rewrite CC.
3930 +   # But if we don't then we get into trouble of one sort or another.
3931 +   # A longer-term fix would be to have automake use am__CC in this case,
3932 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3933 +   CC="$am_aux_dir/compile $CC"
3934 + fi
3935 + ac_ext=c
3936 + ac_cpp='$CPP $CPPFLAGS'
3937 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 +
3941 +
3942   depcc="$CC"   am_compiler_list=
3943  
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 3857 | Line 3950 | else
3950    # We make a subdir and do the tests there.  Otherwise we can end up
3951    # making bogus files that we don't know about and never remove.  For
3952    # instance it was reported that on HP-UX the gcc test will end up
3953 <  # making a dummy file named `D' -- because `-MD' means `put the output
3954 <  # in D'.
3953 >  # making a dummy file named 'D' -- because '-MD' means "put the output
3954 >  # in D".
3955 >  rm -rf conftest.dir
3956    mkdir conftest.dir
3957    # Copy depcomp to subdir because otherwise we won't find it if we're
3958    # using a relative directory.
# Line 3892 | Line 3986 | else
3986      : > sub/conftest.c
3987      for i in 1 2 3 4 5 6; do
3988        echo '#include "conftst'$i'.h"' >> sub/conftest.c
3989 <      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3990 <      # Solaris 8's {/usr,}/bin/sh.
3991 <      touch sub/conftst$i.h
3989 >      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3990 >      # Solaris 10 /bin/sh.
3991 >      echo '/* dummy */' > sub/conftst$i.h
3992      done
3993      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3994  
3995 <    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3995 >    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3996      # mode.  It turns out that the SunPro C++ compiler does not properly
3997 <    # handle `-M -o', and we need to detect this.  Also, some Intel
3998 <    # versions had trouble with output in subdirs
3997 >    # handle '-M -o', and we need to detect this.  Also, some Intel
3998 >    # versions had trouble with output in subdirs.
3999      am__obj=sub/conftest.${OBJEXT-o}
4000      am__minus_obj="-o $am__obj"
4001      case $depmode in
# Line 3910 | Line 4004 | else
4004        test "$am__universal" = false || continue
4005        ;;
4006      nosideeffect)
4007 <      # after this tag, mechanisms are not by side-effect, so they'll
4008 <      # only be used when explicitly requested
4007 >      # After this tag, mechanisms are not by side-effect, so they'll
4008 >      # only be used when explicitly requested.
4009        if test "x$enable_dependency_tracking" = xyes; then
4010          continue
4011        else
4012          break
4013        fi
4014        ;;
4015 <    msvisualcpp | msvcmsys)
4016 <      # This compiler won't grok `-c -o', but also, the minuso test has
4015 >    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4016 >      # This compiler won't grok '-c -o', but also, the minuso test has
4017        # not run yet.  These depmodes are late enough in the game, and
4018        # so weak that their functioning should not be impacted.
4019        am__obj=conftest.${OBJEXT-o}
# Line 4119 | Line 4213 | main ()
4213    return 0;
4214   }
4215   _ACEOF
4216 < for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4216 > for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4217   do
4218    CC="$ac_save_CC $ac_arg"
4219    if ac_fn_c_try_compile "$LINENO"; then :
# Line 4151 | Line 4245 | fi
4245  
4246  
4247   if test "$ac_cv_prog_cc_c99" = "no"; then :
4248 <  as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4248 >  as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4249   fi
4250   for ac_prog in 'bison -y' byacc
4251   do
# Line 4171 | Line 4265 | do
4265    IFS=$as_save_IFS
4266    test -z "$as_dir" && as_dir=.
4267      for ac_exec_ext in '' $ac_executable_extensions; do
4268 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269      ac_cv_prog_YACC="$ac_prog"
4270      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271      break 2
# Line 4215 | Line 4309 | do
4309    IFS=$as_save_IFS
4310    test -z "$as_dir" && as_dir=.
4311      for ac_exec_ext in '' $ac_executable_extensions; do
4312 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313      ac_cv_prog_LEX="$ac_prog"
4314      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315      break 2
# Line 4247 | Line 4341 | a { ECHO; }
4341   b { REJECT; }
4342   c { yymore (); }
4343   d { yyless (1); }
4344 < e { yyless (input () != 0); }
4344 > e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4345 >    yyless ((input () != 0)); }
4346   f { unput (yytext[0]); }
4347   . { BEGIN INITIAL; }
4348   %%
# Line 4376 | Line 4471 | esac
4471  
4472  
4473  
4474 < macro_version='2.4'
4475 < macro_revision='1.3293'
4474 > macro_version='2.4.2.458.26-92994'
4475 > macro_revision='2.4.3'
4476  
4477  
4478  
# Line 4391 | Line 4486 | macro_revision='1.3293'
4486  
4487  
4488  
4489 < ltmain="$ac_aux_dir/ltmain.sh"
4489 > ltmain=$ac_aux_dir/ltmain.sh
4490  
4491   # Make sure we can run config.sub.
4492   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4511 | Line 4606 | func_echo_all ()
4606      $ECHO ""
4607   }
4608  
4609 < case "$ECHO" in
4609 > case $ECHO in
4610    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4611   $as_echo "printf" >&6; } ;;
4612    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4555 | Line 4650 | do
4650      for ac_prog in sed gsed; do
4651      for ac_exec_ext in '' $ac_executable_extensions; do
4652        ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 <      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4653 >      as_fn_executable_p "$ac_path_SED" || continue
4654   # Check for GNU ac_path_SED and select it if it is found.
4655    # Check for GNU $ac_path_SED
4656   case `"$ac_path_SED" --version 2>&1` in
# Line 4631 | Line 4726 | do
4726      for ac_prog in grep ggrep; do
4727      for ac_exec_ext in '' $ac_executable_extensions; do
4728        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4729 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4729 >      as_fn_executable_p "$ac_path_GREP" || continue
4730   # Check for GNU ac_path_GREP and select it if it is found.
4731    # Check for GNU $ac_path_GREP
4732   case `"$ac_path_GREP" --version 2>&1` in
# Line 4697 | Line 4792 | do
4792      for ac_prog in egrep; do
4793      for ac_exec_ext in '' $ac_executable_extensions; do
4794        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4795 >      as_fn_executable_p "$ac_path_EGREP" || continue
4796   # Check for GNU ac_path_EGREP and select it if it is found.
4797    # Check for GNU $ac_path_EGREP
4798   case `"$ac_path_EGREP" --version 2>&1` in
# Line 4764 | Line 4859 | do
4859      for ac_prog in fgrep; do
4860      for ac_exec_ext in '' $ac_executable_extensions; do
4861        ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4862 <      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4862 >      as_fn_executable_p "$ac_path_FGREP" || continue
4863   # Check for GNU ac_path_FGREP and select it if it is found.
4864    # Check for GNU $ac_path_FGREP
4865   case `"$ac_path_FGREP" --version 2>&1` in
# Line 4834 | Line 4929 | test -z "$GREP" && GREP=grep
4929  
4930   # Check whether --with-gnu-ld was given.
4931   if test "${with_gnu_ld+set}" = set; then :
4932 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4932 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4933   else
4934    with_gnu_ld=no
4935   fi
4936  
4937   ac_prog=ld
4938 < if test "$GCC" = yes; then
4938 > if test yes = "$GCC"; then
4939    # Check if gcc -print-prog-name=ld gives a path.
4940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4941   $as_echo_n "checking for ld used by $CC... " >&6; }
4942    case $host in
4943    *-*-mingw*)
4944 <    # gcc leaves a trailing carriage return which upsets mingw
4944 >    # gcc leaves a trailing carriage return, which upsets mingw
4945      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4946    *)
4947      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4860 | Line 4955 | $as_echo_n "checking for ld used by $CC.
4955        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4956          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4957        done
4958 <      test -z "$LD" && LD="$ac_prog"
4958 >      test -z "$LD" && LD=$ac_prog
4959        ;;
4960    "")
4961      # If it fails, then pretend we aren't using GCC.
# Line 4871 | Line 4966 | $as_echo_n "checking for ld used by $CC.
4966      with_gnu_ld=unknown
4967      ;;
4968    esac
4969 < elif test "$with_gnu_ld" = yes; then
4969 > elif test yes = "$with_gnu_ld"; then
4970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4971   $as_echo_n "checking for GNU ld... " >&6; }
4972   else
# Line 4882 | Line 4977 | if ${lt_cv_path_LD+:} false; then :
4977    $as_echo_n "(cached) " >&6
4978   else
4979    if test -z "$LD"; then
4980 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4980 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4981    for ac_dir in $PATH; do
4982 <    IFS="$lt_save_ifs"
4982 >    IFS=$lt_save_ifs
4983      test -z "$ac_dir" && ac_dir=.
4984      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4985 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4985 >      lt_cv_path_LD=$ac_dir/$ac_prog
4986        # Check to see if the program is GNU ld.  I'd rather use --version,
4987        # but apparently some variants of GNU ld only accept -v.
4988        # Break only if it was the GNU/non-GNU ld that we prefer.
4989        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4990        *GNU* | *'with BFD'*)
4991 <        test "$with_gnu_ld" != no && break
4991 >        test no != "$with_gnu_ld" && break
4992          ;;
4993        *)
4994 <        test "$with_gnu_ld" != yes && break
4994 >        test yes != "$with_gnu_ld" && break
4995          ;;
4996        esac
4997      fi
4998    done
4999 <  IFS="$lt_save_ifs"
4999 >  IFS=$lt_save_ifs
5000   else
5001 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5001 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5002   fi
5003   fi
5004  
5005 < LD="$lt_cv_path_LD"
5005 > LD=$lt_cv_path_LD
5006   if test -n "$LD"; then
5007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5008   $as_echo "$LD" >&6; }
# Line 4950 | Line 5045 | if ${lt_cv_path_NM+:} false; then :
5045   else
5046    if test -n "$NM"; then
5047    # Let the user override the test.
5048 <  lt_cv_path_NM="$NM"
5048 >  lt_cv_path_NM=$NM
5049   else
5050 <  lt_nm_to_check="${ac_tool_prefix}nm"
5050 >  lt_nm_to_check=${ac_tool_prefix}nm
5051    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052      lt_nm_to_check="$lt_nm_to_check nm"
5053    fi
5054    for lt_tmp_nm in $lt_nm_to_check; do
5055 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5055 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5056      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 <      IFS="$lt_save_ifs"
5057 >      IFS=$lt_save_ifs
5058        test -z "$ac_dir" && ac_dir=.
5059 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5060 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5059 >      tmp_nm=$ac_dir/$lt_tmp_nm
5060 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5061          # Check to see if the nm accepts a BSD-compat flag.
5062 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5062 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5063          #   nm: unknown option "B" ignored
5064          # Tru64's nm complains that /dev/null is an invalid object file
5065 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 <        */dev/null* | *'Invalid file or object type'*)
5065 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5066 >        case $build_os in
5067 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5068 >        *) lt_bad_file=/dev/null ;;
5069 >        esac
5070 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5071 >        *$lt_bad_file* | *'Invalid file or object type'*)
5072            lt_cv_path_NM="$tmp_nm -B"
5073 <          break
5073 >          break 2
5074            ;;
5075          *)
5076            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077            */dev/null*)
5078              lt_cv_path_NM="$tmp_nm -p"
5079 <            break
5079 >            break 2
5080              ;;
5081            *)
5082              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 4987 | Line 5087 | else
5087          esac
5088        fi
5089      done
5090 <    IFS="$lt_save_ifs"
5090 >    IFS=$lt_save_ifs
5091    done
5092    : ${lt_cv_path_NM=no}
5093   fi
5094   fi
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096   $as_echo "$lt_cv_path_NM" >&6; }
5097 < if test "$lt_cv_path_NM" != "no"; then
5098 <  NM="$lt_cv_path_NM"
5097 > if test no != "$lt_cv_path_NM"; then
5098 >  NM=$lt_cv_path_NM
5099   else
5100    # Didn't find any BSD compatible name lister, look for dumpbin.
5101    if test -n "$DUMPBIN"; then :
# Line 5020 | Line 5120 | do
5120    IFS=$as_save_IFS
5121    test -z "$as_dir" && as_dir=.
5122      for ac_exec_ext in '' $ac_executable_extensions; do
5123 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124      ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126      break 2
# Line 5064 | Line 5164 | do
5164    IFS=$as_save_IFS
5165    test -z "$as_dir" && as_dir=.
5166      for ac_exec_ext in '' $ac_executable_extensions; do
5167 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168      ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170      break 2
# Line 5101 | Line 5201 | esac
5201    fi
5202   fi
5203  
5204 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5204 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5205      *COFF*)
5206 <      DUMPBIN="$DUMPBIN -symbols"
5206 >      DUMPBIN="$DUMPBIN -symbols -headers"
5207        ;;
5208      *)
5209        DUMPBIN=:
# Line 5111 | Line 5211 | fi
5211      esac
5212    fi
5213  
5214 <  if test "$DUMPBIN" != ":"; then
5215 <    NM="$DUMPBIN"
5214 >  if test : != "$DUMPBIN"; then
5215 >    NM=$DUMPBIN
5216    fi
5217   fi
5218   test -z "$NM" && NM=nm
# Line 5163 | Line 5263 | if ${lt_cv_sys_max_cmd_len+:} false; the
5263    $as_echo_n "(cached) " >&6
5264   else
5265      i=0
5266 <  teststring="ABCD"
5266 >  teststring=ABCD
5267  
5268    case $build_os in
5269    msdosdjgpp*)
# Line 5203 | Line 5303 | else
5303      lt_cv_sys_max_cmd_len=8192;
5304      ;;
5305  
5306 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5306 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5307      # This has been around since 386BSD, at least.  Likely further.
5308      if test -x /sbin/sysctl; then
5309        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5222 | Line 5322 | else
5322      lt_cv_sys_max_cmd_len=196608
5323      ;;
5324  
5325 +  os2*)
5326 +    # The test takes a long time on OS/2.
5327 +    lt_cv_sys_max_cmd_len=8192
5328 +    ;;
5329 +
5330    osf*)
5331      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5332      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
# Line 5248 | Line 5353 | else
5353      ;;
5354    *)
5355      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5356 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5356 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5357 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5358        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5359        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5360      else
5361        # Make teststring a little bigger before we do anything with it.
5362        # a 1K string should be a reasonable start.
5363 <      for i in 1 2 3 4 5 6 7 8 ; do
5363 >      for i in 1 2 3 4 5 6 7 8; do
5364          teststring=$teststring$teststring
5365        done
5366        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5367        # If test is not a shell built-in, we'll probably end up computing a
5368        # maximum length that is only half of the actual maximum length, but
5369        # we can't tell.
5370 <      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5370 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5371                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5372 <              test $i != 17 # 1/2 MB should be enough
5372 >              test 17 != "$i" # 1/2 MB should be enough
5373        do
5374          i=`expr $i + 1`
5375          teststring=$teststring$teststring
# Line 5281 | Line 5387 | else
5387  
5388   fi
5389  
5390 < if test -n $lt_cv_sys_max_cmd_len ; then
5390 > if test -n "$lt_cv_sys_max_cmd_len"; then
5391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5392   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5393   else
# Line 5299 | Line 5405 | max_cmd_len=$lt_cv_sys_max_cmd_len
5405   : ${MV="mv -f"}
5406   : ${RM="rm -f"}
5407  
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5303 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5304 # Try some XSI features
5305 xsi_shell=no
5306 ( _lt_dummy="a/b/c"
5307  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5308      = c,a/b,b/c, \
5309    && eval 'test $(( 1 + 1 )) -eq 2 \
5310    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5311  && xsi_shell=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5313 $as_echo "$xsi_shell" >&6; }
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5317 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5318 lt_shell_append=no
5319 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5320    >/dev/null 2>&1 \
5321  && lt_shell_append=yes
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5323 $as_echo "$lt_shell_append" >&6; }
5324
5325
5408   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5409    lt_unset=unset
5410   else
# Line 5445 | Line 5527 | esac
5527   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5528   case $host_os in
5529    cygwin* | mingw* | pw32* | cegcc*)
5530 <    if test "$GCC" != yes; then
5530 >    if test yes != "$GCC"; then
5531        reload_cmds=false
5532      fi
5533      ;;
5534    darwin*)
5535 <    if test "$GCC" = yes; then
5536 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5535 >    if test yes = "$GCC"; then
5536 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5537      else
5538        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5539      fi
# Line 5483 | Line 5565 | do
5565    IFS=$as_save_IFS
5566    test -z "$as_dir" && as_dir=.
5567      for ac_exec_ext in '' $ac_executable_extensions; do
5568 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5570      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571      break 2
# Line 5523 | Line 5605 | do
5605    IFS=$as_save_IFS
5606    test -z "$as_dir" && as_dir=.
5607      for ac_exec_ext in '' $ac_executable_extensions; do
5608 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609      ac_cv_prog_ac_ct_OBJDUMP="objdump"
5610      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611      break 2
# Line 5579 | Line 5661 | lt_cv_deplibs_check_method='unknown'
5661   # Need to set the preceding variable on all platforms that support
5662   # interlibrary dependencies.
5663   # 'none' -- dependencies not supported.
5664 < # `unknown' -- same as none, but documents that we really don't know.
5664 > # 'unknown' -- same as none, but documents that we really don't know.
5665   # 'pass_all' -- all dependencies passed with no checks.
5666   # 'test_compile' -- check by making test program.
5667   # 'file_magic [[regex]]' -- check by looking for files in library path
5668 < # which responds to the $file_magic_cmd with a given extended regex.
5669 < # If you have `file' or equivalent on your system and you're not sure
5670 < # whether `pass_all' will *always* work, you probably want this one.
5668 > # that responds to the $file_magic_cmd with a given extended regex.
5669 > # If you have 'file' or equivalent on your system and you're not sure
5670 > # whether 'pass_all' will *always* work, you probably want this one.
5671  
5672   case $host_os in
5673   aix[4-9]*)
# Line 5612 | Line 5694 | mingw* | pw32*)
5694    # Base MSYS/MinGW do not provide the 'file' command needed by
5695    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5696    # unless we find 'file', for example because we are cross-compiling.
5697 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5697 >  if ( file / ) >/dev/null 2>&1; then
5698      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5699      lt_cv_file_magic_cmd='func_win32_libid'
5700    else
# Line 5649 | Line 5730 | freebsd* | dragonfly*)
5730    fi
5731    ;;
5732  
5652 gnu*)
5653  lt_cv_deplibs_check_method=pass_all
5654  ;;
5655
5733   haiku*)
5734    lt_cv_deplibs_check_method=pass_all
5735    ;;
# Line 5690 | Line 5767 | irix5* | irix6* | nonstopux*)
5767    lt_cv_deplibs_check_method=pass_all
5768    ;;
5769  
5770 < # This must be Linux ELF.
5771 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5770 > # This must be glibc/ELF.
5771 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5772    lt_cv_deplibs_check_method=pass_all
5773    ;;
5774  
# Line 5713 | Line 5790 | newos6*)
5790    lt_cv_deplibs_check_method=pass_all
5791    ;;
5792  
5793 < openbsd*)
5794 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5793 > openbsd* | bitrig*)
5794 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5795      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5796    else
5797      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5829 | Line 5906 | do
5906    IFS=$as_save_IFS
5907    test -z "$as_dir" && as_dir=.
5908      for ac_exec_ext in '' $ac_executable_extensions; do
5909 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5911      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912      break 2
# Line 5869 | Line 5946 | do
5946    IFS=$as_save_IFS
5947    test -z "$as_dir" && as_dir=.
5948      for ac_exec_ext in '' $ac_executable_extensions; do
5949 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950      ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5951      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952      break 2
# Line 5924 | Line 6001 | else
6001  
6002   case $host_os in
6003   cygwin* | mingw* | pw32* | cegcc*)
6004 <  # two different shell functions defined in ltmain.sh
6005 <  # decide which to use based on capabilities of $DLLTOOL
6004 >  # two different shell functions defined in ltmain.sh;
6005 >  # decide which one to use based on capabilities of $DLLTOOL
6006    case `$DLLTOOL --help 2>&1` in
6007    *--identify-strict*)
6008      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 5937 | Line 6014 | cygwin* | mingw* | pw32* | cegcc*)
6014    ;;
6015   *)
6016    # fallback: assume linklib IS sharedlib
6017 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6017 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6018    ;;
6019   esac
6020  
# Line 5972 | Line 6049 | do
6049    IFS=$as_save_IFS
6050    test -z "$as_dir" && as_dir=.
6051      for ac_exec_ext in '' $ac_executable_extensions; do
6052 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053      ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6054      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055      break 2
# Line 6016 | Line 6093 | do
6093    IFS=$as_save_IFS
6094    test -z "$as_dir" && as_dir=.
6095      for ac_exec_ext in '' $ac_executable_extensions; do
6096 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097      ac_cv_prog_ac_ct_AR="$ac_prog"
6098      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099      break 2
# Line 6091 | Line 6168 | if ac_fn_c_try_compile "$LINENO"; then :
6168    ac_status=$?
6169    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170    test $ac_status = 0; }
6171 <      if test "$ac_status" -eq 0; then
6171 >      if test 0 -eq "$ac_status"; then
6172          # Ensure the archiver fails upon bogus file names.
6173          rm -f conftest.$ac_objext libconftest.a
6174          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6099 | Line 6176 | if ac_fn_c_try_compile "$LINENO"; then :
6176    ac_status=$?
6177    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178    test $ac_status = 0; }
6179 <        if test "$ac_status" -ne 0; then
6179 >        if test 0 -ne "$ac_status"; then
6180            lt_cv_ar_at_file=@
6181          fi
6182        fi
# Line 6112 | Line 6189 | fi
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6190   $as_echo "$lt_cv_ar_at_file" >&6; }
6191  
6192 < if test "x$lt_cv_ar_at_file" = xno; then
6192 > if test no = "$lt_cv_ar_at_file"; then
6193    archiver_list_spec=
6194   else
6195    archiver_list_spec=$lt_cv_ar_at_file
# Line 6141 | Line 6218 | do
6218    IFS=$as_save_IFS
6219    test -z "$as_dir" && as_dir=.
6220      for ac_exec_ext in '' $ac_executable_extensions; do
6221 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6223      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224      break 2
# Line 6181 | Line 6258 | do
6258    IFS=$as_save_IFS
6259    test -z "$as_dir" && as_dir=.
6260      for ac_exec_ext in '' $ac_executable_extensions; do
6261 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262      ac_cv_prog_ac_ct_STRIP="strip"
6263      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264      break 2
# Line 6240 | Line 6317 | do
6317    IFS=$as_save_IFS
6318    test -z "$as_dir" && as_dir=.
6319      for ac_exec_ext in '' $ac_executable_extensions; do
6320 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6322      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323      break 2
# Line 6280 | Line 6357 | do
6357    IFS=$as_save_IFS
6358    test -z "$as_dir" && as_dir=.
6359      for ac_exec_ext in '' $ac_executable_extensions; do
6360 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361      ac_cv_prog_ac_ct_RANLIB="ranlib"
6362      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363      break 2
# Line 6329 | Line 6406 | old_postuninstall_cmds=
6406  
6407   if test -n "$RANLIB"; then
6408    case $host_os in
6409 <  openbsd*)
6410 <    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6409 >  bitrig* | openbsd*)
6410 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6411      ;;
6412    *)
6413 <    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6413 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6414      ;;
6415    esac
6416 <  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6416 >  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6417   fi
6418  
6419   case $host_os in
# Line 6419 | Line 6496 | cygwin* | mingw* | pw32* | cegcc*)
6496    symcode='[ABCDGISTW]'
6497    ;;
6498   hpux*)
6499 <  if test "$host_cpu" = ia64; then
6499 >  if test ia64 = "$host_cpu"; then
6500      symcode='[ABCDEGRST]'
6501    fi
6502    ;;
# Line 6452 | Line 6529 | case `$NM -V 2>&1` in
6529    symcode='[ABCDGIRSTW]' ;;
6530   esac
6531  
6532 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6533 +  # Gets list of data symbols to import.
6534 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6535 +  # Adjust the below global symbol transforms to fixup imported variables.
6536 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6537 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6538 +  lt_c_name_lib_hook="\
6539 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6540 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6541 + else
6542 +  # Disable hooks by default.
6543 +  lt_cv_sys_global_symbol_to_import=
6544 +  lt_cdecl_hook=
6545 +  lt_c_name_hook=
6546 +  lt_c_name_lib_hook=
6547 + fi
6548 +
6549   # Transform an extracted symbol line into a proper C declaration.
6550   # Some systems (esp. on ia64) link data and code symbols differently,
6551   # so use this general approach.
6552 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6552 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6553 > $lt_cdecl_hook\
6554 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6555 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6556  
6557   # Transform an extracted symbol line into symbol name and symbol address
6558 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6559 < 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'"
6558 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6559 > $lt_c_name_hook\
6560 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6561 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6562 >
6563 > # Transform an extracted symbol line into symbol name with lib prefix and
6564 > # symbol address.
6565 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6566 > $lt_c_name_lib_hook\
6567 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6568 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6569 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6570  
6571   # Handle CRLF in mingw tool chain
6572   opt_cr=
# Line 6477 | Line 6584 | for ac_symprfx in "" "_"; do
6584  
6585    # Write the raw and C identifiers.
6586    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587 <    # Fake it for dumpbin and say T for any non-static function
6588 <    # and D for any global variable.
6587 >    # Fake it for dumpbin and say T for any non-static function,
6588 >    # D for any global variable and I for any imported variable.
6589      # Also find C++ and __fastcall symbols from MSVC++,
6590      # which start with @ or ?.
6591      lt_cv_sys_global_symbol_pipe="$AWK '"\
6592   "     {last_section=section; section=\$ 3};"\
6593 + "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6594   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6595 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6596 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6597 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6598   "     \$ 0!~/External *\|/{next};"\
6599   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6600   "     {if(hide[section]) next};"\
6601 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6602 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6603 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6604 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6601 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6602 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6603 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6604 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6605   "     ' prfx=^$ac_symprfx"
6606    else
6607      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6538 | Line 6649 | _LT_EOF
6649          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6650            cat <<_LT_EOF > conftest.$ac_ext
6651   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6652 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6653 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6652 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6653 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6654     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6655   # define LT_DLSYM_CONST
6656 < #elif defined(__osf__)
6656 > #elif defined __osf__
6657   /* This system does not cope well with relocations in const data.  */
6658   # define LT_DLSYM_CONST
6659   #else
# Line 6568 | Line 6679 | lt__PROGRAM__LTX_preloaded_symbols[] =
6679   {
6680    { "@PROGRAM@", (void *) 0 },
6681   _LT_EOF
6682 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6682 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6683            cat <<\_LT_EOF >> conftest.$ac_ext
6684    {0, (void *) 0}
6685   };
# Line 6588 | Line 6699 | _LT_EOF
6699            mv conftest.$ac_objext conftstm.$ac_objext
6700            lt_globsym_save_LIBS=$LIBS
6701            lt_globsym_save_CFLAGS=$CFLAGS
6702 <          LIBS="conftstm.$ac_objext"
6702 >          LIBS=conftstm.$ac_objext
6703            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6704            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6705    (eval $ac_link) 2>&5
6706    ac_status=$?
6707    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6708 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6709              pipe_works=yes
6710            fi
6711            LIBS=$lt_globsym_save_LIBS
# Line 6615 | Line 6726 | _LT_EOF
6726    rm -rf conftest* conftst*
6727  
6728    # Do not use the global_symbol_pipe unless it works.
6729 <  if test "$pipe_works" = yes; then
6729 >  if test yes = "$pipe_works"; then
6730      break
6731    else
6732      lt_cv_sys_global_symbol_pipe=
# Line 6668 | Line 6779 | fi
6779  
6780  
6781  
6782 +
6783 +
6784 +
6785 +
6786 +
6787 +
6788 +
6789 +
6790 +
6791 +
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6793   $as_echo_n "checking for sysroot... " >&6; }
6794  
# Line 6680 | Line 6801 | fi
6801  
6802  
6803   lt_sysroot=
6804 < case ${with_sysroot} in #(
6804 > case $with_sysroot in #(
6805   yes)
6806 <   if test "$GCC" = yes; then
6806 >   if test yes = "$GCC"; then
6807       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6808     fi
6809     ;; #(
# Line 6692 | Line 6813 | case ${with_sysroot} in #(
6813   no|'')
6814     ;; #(
6815   *)
6816 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6817 < $as_echo "${with_sysroot}" >&6; }
6816 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6817 > $as_echo "$with_sysroot" >&6; }
6818     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6819     ;;
6820   esac
# Line 6705 | Line 6826 | $as_echo "${lt_sysroot:-no}" >&6; }
6826  
6827  
6828  
6829 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6830 + $as_echo_n "checking for a working dd... " >&6; }
6831 + if ${ac_cv_path_lt_DD+:} false; then :
6832 +  $as_echo_n "(cached) " >&6
6833 + else
6834 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6835 + cat conftest.i conftest.i >conftest2.i
6836 + : ${lt_DD:=$DD}
6837 + if test -z "$lt_DD"; then
6838 +  ac_path_lt_DD_found=false
6839 +  # Loop through the user's path and test for each of PROGNAME-LIST
6840 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 + for as_dir in $PATH
6842 + do
6843 +  IFS=$as_save_IFS
6844 +  test -z "$as_dir" && as_dir=.
6845 +    for ac_prog in dd; do
6846 +    for ac_exec_ext in '' $ac_executable_extensions; do
6847 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6848 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6849 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6850 +  cmp -s conftest.i conftest.out \
6851 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6852 + fi
6853 +      $ac_path_lt_DD_found && break 3
6854 +    done
6855 +  done
6856 +  done
6857 + IFS=$as_save_IFS
6858 +  if test -z "$ac_cv_path_lt_DD"; then
6859 +    :
6860 +  fi
6861 + else
6862 +  ac_cv_path_lt_DD=$lt_DD
6863 + fi
6864 +
6865 + rm -f conftest.i conftest2.i conftest.out
6866 + fi
6867 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6868 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6869 +
6870 +
6871 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6872 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6873 + if ${lt_cv_truncate_bin+:} false; then :
6874 +  $as_echo_n "(cached) " >&6
6875 + else
6876 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6877 + cat conftest.i conftest.i >conftest2.i
6878 + lt_cv_truncate_bin=
6879 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6880 +  cmp -s conftest.i conftest.out \
6881 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6882 + fi
6883 + rm -f conftest.i conftest2.i conftest.out
6884 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6885 + fi
6886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6887 + $as_echo "$lt_cv_truncate_bin" >&6; }
6888 +
6889 +
6890 +
6891 +
6892 +
6893 +
6894   # Check whether --enable-libtool-lock was given.
6895   if test "${enable_libtool_lock+set}" = set; then :
6896    enableval=$enable_libtool_lock;
6897   fi
6898  
6899 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6899 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6900  
6901   # Some flags need to be propagated to the compiler or linker for good
6902   # libtool support.
6903   case $host in
6904   ia64-*-hpux*)
6905 <  # Find out which ABI we are using.
6905 >  # Find out what ABI is being produced by ac_compile, and set mode
6906 >  # options accordingly.
6907    echo 'int i;' > conftest.$ac_ext
6908    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6909    (eval $ac_compile) 2>&5
# Line 6725 | Line 6912 | ia64-*-hpux*)
6912    test $ac_status = 0; }; then
6913      case `/usr/bin/file conftest.$ac_objext` in
6914        *ELF-32*)
6915 <        HPUX_IA64_MODE="32"
6915 >        HPUX_IA64_MODE=32
6916          ;;
6917        *ELF-64*)
6918 <        HPUX_IA64_MODE="64"
6918 >        HPUX_IA64_MODE=64
6919          ;;
6920      esac
6921    fi
6922    rm -rf conftest*
6923    ;;
6924   *-*-irix6*)
6925 <  # Find out which ABI we are using.
6925 >  # Find out what ABI is being produced by ac_compile, and set linker
6926 >  # options accordingly.
6927    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6928    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929    (eval $ac_compile) 2>&5
6930    ac_status=$?
6931    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932    test $ac_status = 0; }; then
6933 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6933 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6934        case `/usr/bin/file conftest.$ac_objext` in
6935          *32-bit*)
6936            LD="${LD-ld} -melf32bsmip"
# Line 6771 | Line 6959 | ia64-*-hpux*)
6959    rm -rf conftest*
6960    ;;
6961  
6962 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6962 > mips64*-*linux*)
6963 >  # Find out what ABI is being produced by ac_compile, and set linker
6964 >  # options accordingly.
6965 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6966 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6967 >  (eval $ac_compile) 2>&5
6968 >  ac_status=$?
6969 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 >  test $ac_status = 0; }; then
6971 >    emul=elf
6972 >    case `/usr/bin/file conftest.$ac_objext` in
6973 >      *32-bit*)
6974 >        emul="${emul}32"
6975 >        ;;
6976 >      *64-bit*)
6977 >        emul="${emul}64"
6978 >        ;;
6979 >    esac
6980 >    case `/usr/bin/file conftest.$ac_objext` in
6981 >      *MSB*)
6982 >        emul="${emul}btsmip"
6983 >        ;;
6984 >      *LSB*)
6985 >        emul="${emul}ltsmip"
6986 >        ;;
6987 >    esac
6988 >    case `/usr/bin/file conftest.$ac_objext` in
6989 >      *N32*)
6990 >        emul="${emul}n32"
6991 >        ;;
6992 >    esac
6993 >    LD="${LD-ld} -m $emul"
6994 >  fi
6995 >  rm -rf conftest*
6996 >  ;;
6997 >
6998 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6999   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7000 <  # Find out which ABI we are using.
7000 >  # Find out what ABI is being produced by ac_compile, and set linker
7001 >  # options accordingly.  Note that the listed cases only cover the
7002 >  # situations where additional linker options are needed (such as when
7003 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7004 >  # vice versa); the common cases where no linker options are needed do
7005 >  # not appear in the list.
7006    echo 'int i;' > conftest.$ac_ext
7007    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008    (eval $ac_compile) 2>&5
# Line 6787 | Line 7016 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7016              LD="${LD-ld} -m elf_i386_fbsd"
7017              ;;
7018            x86_64-*linux*)
7019 <            LD="${LD-ld} -m elf_i386"
7019 >            case `/usr/bin/file conftest.o` in
7020 >              *x86-64*)
7021 >                LD="${LD-ld} -m elf32_x86_64"
7022 >                ;;
7023 >              *)
7024 >                LD="${LD-ld} -m elf_i386"
7025 >                ;;
7026 >            esac
7027              ;;
7028 <          ppc64-*linux*|powerpc64-*linux*)
7028 >          powerpc64le-*linux*)
7029 >            LD="${LD-ld} -m elf32lppclinux"
7030 >            ;;
7031 >          powerpc64-*linux*)
7032              LD="${LD-ld} -m elf32ppclinux"
7033              ;;
7034            s390x-*linux*)
# Line 6808 | Line 7047 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7047            x86_64-*linux*)
7048              LD="${LD-ld} -m elf_x86_64"
7049              ;;
7050 <          ppc*-*linux*|powerpc*-*linux*)
7050 >          powerpcle-*linux*)
7051 >            LD="${LD-ld} -m elf64lppc"
7052 >            ;;
7053 >          powerpc-*linux*)
7054              LD="${LD-ld} -m elf64ppc"
7055              ;;
7056            s390*-*linux*|s390*-*tpf*)
# Line 6826 | Line 7068 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7068  
7069   *-*-sco3.2v5*)
7070    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7071 <  SAVE_CFLAGS="$CFLAGS"
7071 >  SAVE_CFLAGS=$CFLAGS
7072    CFLAGS="$CFLAGS -belf"
7073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7074   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6866 | Line 7108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108   fi
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7110   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7111 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7111 >  if test yes != "$lt_cv_cc_needs_belf"; then
7112      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7113 <    CFLAGS="$SAVE_CFLAGS"
7113 >    CFLAGS=$SAVE_CFLAGS
7114    fi
7115    ;;
7116 < sparc*-*solaris*)
7117 <  # Find out which ABI we are using.
7116 > *-*solaris*)
7117 >  # Find out what ABI is being produced by ac_compile, and set linker
7118 >  # options accordingly.
7119    echo 'int i;' > conftest.$ac_ext
7120    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7121    (eval $ac_compile) 2>&5
# Line 6882 | Line 7125 | sparc*-*solaris*)
7125      case `/usr/bin/file conftest.o` in
7126      *64-bit*)
7127        case $lt_cv_prog_gnu_ld in
7128 <      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7128 >      yes*)
7129 >        case $host in
7130 >        i?86-*-solaris*|x86_64-*-solaris*)
7131 >          LD="${LD-ld} -m elf_x86_64"
7132 >          ;;
7133 >        sparc*-*-solaris*)
7134 >          LD="${LD-ld} -m elf64_sparc"
7135 >          ;;
7136 >        esac
7137 >        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7138 >        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7139 >          LD=${LD-ld}_sol2
7140 >        fi
7141 >        ;;
7142        *)
7143          if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7144            LD="${LD-ld} -64"
# Line 6896 | Line 7152 | sparc*-*solaris*)
7152    ;;
7153   esac
7154  
7155 < need_locks="$enable_libtool_lock"
7155 > need_locks=$enable_libtool_lock
7156  
7157   if test -n "$ac_tool_prefix"; then
7158    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 6915 | Line 7171 | do
7171    IFS=$as_save_IFS
7172    test -z "$as_dir" && as_dir=.
7173      for ac_exec_ext in '' $ac_executable_extensions; do
7174 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175      ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7176      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177      break 2
# Line 6955 | Line 7211 | do
7211    IFS=$as_save_IFS
7212    test -z "$as_dir" && as_dir=.
7213      for ac_exec_ext in '' $ac_executable_extensions; do
7214 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215      ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7216      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217      break 2
# Line 7007 | Line 7263 | else
7263   fi
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7265   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7266 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7266 > if test yes != "$lt_cv_path_mainfest_tool"; then
7267    MANIFEST_TOOL=:
7268   fi
7269  
# Line 7035 | Line 7291 | do
7291    IFS=$as_save_IFS
7292    test -z "$as_dir" && as_dir=.
7293      for ac_exec_ext in '' $ac_executable_extensions; do
7294 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295      ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7296      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297      break 2
# Line 7075 | Line 7331 | do
7331    IFS=$as_save_IFS
7332    test -z "$as_dir" && as_dir=.
7333      for ac_exec_ext in '' $ac_executable_extensions; do
7334 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335      ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7336      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337      break 2
# Line 7127 | Line 7383 | do
7383    IFS=$as_save_IFS
7384    test -z "$as_dir" && as_dir=.
7385      for ac_exec_ext in '' $ac_executable_extensions; do
7386 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387      ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7388      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389      break 2
# Line 7167 | Line 7423 | do
7423    IFS=$as_save_IFS
7424    test -z "$as_dir" && as_dir=.
7425      for ac_exec_ext in '' $ac_executable_extensions; do
7426 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427      ac_cv_prog_ac_ct_NMEDIT="nmedit"
7428      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429      break 2
# Line 7219 | Line 7475 | do
7475    IFS=$as_save_IFS
7476    test -z "$as_dir" && as_dir=.
7477      for ac_exec_ext in '' $ac_executable_extensions; do
7478 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479      ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7480      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481      break 2
# Line 7259 | Line 7515 | do
7515    IFS=$as_save_IFS
7516    test -z "$as_dir" && as_dir=.
7517      for ac_exec_ext in '' $ac_executable_extensions; do
7518 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519      ac_cv_prog_ac_ct_LIPO="lipo"
7520      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521      break 2
# Line 7311 | Line 7567 | do
7567    IFS=$as_save_IFS
7568    test -z "$as_dir" && as_dir=.
7569      for ac_exec_ext in '' $ac_executable_extensions; do
7570 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571      ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7572      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573      break 2
# Line 7351 | Line 7607 | do
7607    IFS=$as_save_IFS
7608    test -z "$as_dir" && as_dir=.
7609      for ac_exec_ext in '' $ac_executable_extensions; do
7610 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611      ac_cv_prog_ac_ct_OTOOL="otool"
7612      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613      break 2
# Line 7403 | Line 7659 | do
7659    IFS=$as_save_IFS
7660    test -z "$as_dir" && as_dir=.
7661      for ac_exec_ext in '' $ac_executable_extensions; do
7662 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663      ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7664      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665      break 2
# Line 7443 | Line 7699 | do
7699    IFS=$as_save_IFS
7700    test -z "$as_dir" && as_dir=.
7701      for ac_exec_ext in '' $ac_executable_extensions; do
7702 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703      ac_cv_prog_ac_ct_OTOOL64="otool64"
7704      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705      break 2
# Line 7510 | Line 7766 | if ${lt_cv_apple_cc_single_mod+:} false;
7766    $as_echo_n "(cached) " >&6
7767   else
7768    lt_cv_apple_cc_single_mod=no
7769 <      if test -z "${LT_MULTI_MODULE}"; then
7769 >      if test -z "$LT_MULTI_MODULE"; then
7770          # By default we will add the -single_module flag. You can override
7771          # by either setting the environment variable LT_MULTI_MODULE
7772          # non-empty at configure time, or by adding -multi_module to the
# Line 7522 | Line 7778 | else
7778          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7779            -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7780          _lt_result=$?
7781 <        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7781 >        # If there is a non-empty error log, and "single_module"
7782 >        # appears in it, assume the flag caused a linker warning
7783 >        if test -s conftest.err && $GREP single_module conftest.err; then
7784 >          cat conftest.err >&5
7785 >        # Otherwise, if the output was created with a 0 exit code from
7786 >        # the compiler, it worked.
7787 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7788            lt_cv_apple_cc_single_mod=yes
7789          else
7790            cat conftest.err >&5
# Line 7533 | Line 7795 | else
7795   fi
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7797   $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7798 +
7799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7800   $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7801   if ${lt_cv_ld_exported_symbols_list+:} false; then :
# Line 7560 | Line 7823 | else
7823   fi
7824   rm -f core conftest.err conftest.$ac_objext \
7825      conftest$ac_exeext conftest.$ac_ext
7826 <        LDFLAGS="$save_LDFLAGS"
7826 >        LDFLAGS=$save_LDFLAGS
7827  
7828   fi
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7830   $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7831 +
7832      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7833   $as_echo_n "checking for -force_load linker flag... " >&6; }
7834   if ${lt_cv_ld_force_load+:} false; then :
# Line 7586 | Line 7850 | _LT_EOF
7850        echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7851        $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7852        _lt_result=$?
7853 <      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7853 >      if test -s conftest.err && $GREP force_load conftest.err; then
7854 >        cat conftest.err >&5
7855 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7856          lt_cv_ld_force_load=yes
7857        else
7858          cat conftest.err >&5
# Line 7599 | Line 7865 | fi
7865   $as_echo "$lt_cv_ld_force_load" >&6; }
7866      case $host_os in
7867      rhapsody* | darwin1.[012])
7868 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7868 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7869      darwin1.*)
7870 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7870 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7871      darwin*) # darwin 5.x on
7872        # if running on 10.5 or later, the deployment target defaults
7873        # to the OS version, if on x86, and 10.4, the deployment
7874        # target defaults to 10.4. Don't you love it?
7875        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7876          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7877 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7878 <        10.[012]*)
7879 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7877 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7878 >        10.[012][,.]*)
7879 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7880          10.*)
7881 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7881 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7882        esac
7883      ;;
7884    esac
7885 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7885 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7886        _lt_dar_single_mod='$single_module'
7887      fi
7888 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7889 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7888 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7889 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7890      else
7891 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7891 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7892      fi
7893 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7893 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7894        _lt_dsymutil='~$DSYMUTIL $lib || :'
7895      else
7896        _lt_dsymutil=
# Line 7927 | Line 8193 | if test "${enable_static+set}" = set; th
8193      *)
8194       enable_static=no
8195        # Look at the argument we got.  We use all the common list separators.
8196 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8196 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8197        for pkg in $enableval; do
8198 <        IFS="$lt_save_ifs"
8198 >        IFS=$lt_save_ifs
8199          if test "X$pkg" = "X$p"; then
8200            enable_static=yes
8201          fi
8202        done
8203 <      IFS="$lt_save_ifs"
8203 >      IFS=$lt_save_ifs
8204        ;;
8205      esac
8206   else
# Line 7963 | Line 8229 | if test "${enable_shared+set}" = set; th
8229      *)
8230        enable_shared=no
8231        # Look at the argument we got.  We use all the common list separators.
8232 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8232 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8233        for pkg in $enableval; do
8234 <        IFS="$lt_save_ifs"
8234 >        IFS=$lt_save_ifs
8235          if test "X$pkg" = "X$p"; then
8236            enable_shared=yes
8237          fi
8238        done
8239 <      IFS="$lt_save_ifs"
8239 >      IFS=$lt_save_ifs
8240        ;;
8241      esac
8242   else
# Line 7989 | Line 8255 | fi
8255  
8256   # Check whether --with-pic was given.
8257   if test "${with_pic+set}" = set; then :
8258 <  withval=$with_pic; pic_mode="$withval"
8258 >  withval=$with_pic; lt_p=${PACKAGE-default}
8259 >    case $withval in
8260 >    yes|no) pic_mode=$withval ;;
8261 >    *)
8262 >      pic_mode=default
8263 >      # Look at the argument we got.  We use all the common list separators.
8264 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8265 >      for lt_pkg in $withval; do
8266 >        IFS=$lt_save_ifs
8267 >        if test "X$lt_pkg" = "X$lt_p"; then
8268 >          pic_mode=yes
8269 >        fi
8270 >      done
8271 >      IFS=$lt_save_ifs
8272 >      ;;
8273 >    esac
8274   else
8275    pic_mode=default
8276   fi
8277  
8278  
7998 test -z "$pic_mode" && pic_mode=default
7999
8279  
8280  
8281  
# Line 8012 | Line 8291 | if test "${enable_fast_install+set}" = s
8291      *)
8292        enable_fast_install=no
8293        # Look at the argument we got.  We use all the common list separators.
8294 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8294 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8295        for pkg in $enableval; do
8296 <        IFS="$lt_save_ifs"
8296 >        IFS=$lt_save_ifs
8297          if test "X$pkg" = "X$p"; then
8298            enable_fast_install=yes
8299          fi
8300        done
8301 <      IFS="$lt_save_ifs"
8301 >      IFS=$lt_save_ifs
8302        ;;
8303      esac
8304   else
# Line 8037 | Line 8316 | fi
8316  
8317  
8318   # This can be used to rebuild libtool when needed
8319 < LIBTOOL_DEPS="$ltmain"
8319 > LIBTOOL_DEPS=$ltmain
8320  
8321   # Always use our own libtool.
8322   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8067 | Line 8346 | LIBTOOL='$(SHELL) $(top_builddir)/libtoo
8346  
8347  
8348  
8349 +
8350 +
8351 +
8352 +
8353   test -z "$LN_S" && LN_S="ln -s"
8354  
8355  
# Line 8082 | Line 8365 | test -z "$LN_S" && LN_S="ln -s"
8365  
8366  
8367  
8368 < if test -n "${ZSH_VERSION+set}" ; then
8368 > if test -n "${ZSH_VERSION+set}"; then
8369     setopt NO_GLOB_SUBST
8370   fi
8371  
# Line 8121 | Line 8404 | aix3*)
8404    # AIX sometimes has problems with the GCC collect2 program.  For some
8405    # reason, if we set the COLLECT_NAMES environment variable, the problems
8406    # vanish in a puff of smoke.
8407 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8407 >  if test set != "${COLLECT_NAMES+set}"; then
8408      COLLECT_NAMES=
8409      export COLLECT_NAMES
8410    fi
# Line 8132 | Line 8415 | esac
8415   ofile=libtool
8416   can_build_shared=yes
8417  
8418 < # All known linkers require a `.a' archive for static linking (except MSVC,
8418 > # All known linkers require a '.a' archive for static linking (except MSVC,
8419   # which needs '.lib').
8420   libext=a
8421  
8422 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8422 > with_gnu_ld=$lt_cv_prog_gnu_ld
8423  
8424 < old_CC="$CC"
8425 < old_CFLAGS="$CFLAGS"
8424 > old_CC=$CC
8425 > old_CFLAGS=$CFLAGS
8426  
8427   # Set sane defaults for various variables
8428   test -z "$CC" && CC=cc
# Line 8171 | Line 8454 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8454   else
8455    case $MAGIC_CMD in
8456   [\\/*] |  ?:[\\/]*)
8457 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8457 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8458    ;;
8459   *)
8460 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8461 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8461 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8462    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8463    for ac_dir in $ac_dummy; do
8464 <    IFS="$lt_save_ifs"
8464 >    IFS=$lt_save_ifs
8465      test -z "$ac_dir" && ac_dir=.
8466 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8467 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8466 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8467 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8468        if test -n "$file_magic_test_file"; then
8469          case $deplibs_check_method in
8470          "file_magic "*)
8471            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8472 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8473            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8474              $EGREP "$file_magic_regex" > /dev/null; then
8475              :
# Line 8209 | Line 8492 | _LT_EOF
8492        break
8493      fi
8494    done
8495 <  IFS="$lt_save_ifs"
8496 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8495 >  IFS=$lt_save_ifs
8496 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8497    ;;
8498   esac
8499   fi
8500  
8501 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8501 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8502   if test -n "$MAGIC_CMD"; then
8503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8504   $as_echo "$MAGIC_CMD" >&6; }
# Line 8237 | Line 8520 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8520   else
8521    case $MAGIC_CMD in
8522   [\\/*] |  ?:[\\/]*)
8523 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8523 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8524    ;;
8525   *)
8526 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8527 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8527 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8528    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8529    for ac_dir in $ac_dummy; do
8530 <    IFS="$lt_save_ifs"
8530 >    IFS=$lt_save_ifs
8531      test -z "$ac_dir" && ac_dir=.
8532 <    if test -f $ac_dir/file; then
8533 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8532 >    if test -f "$ac_dir/file"; then
8533 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8534        if test -n "$file_magic_test_file"; then
8535          case $deplibs_check_method in
8536          "file_magic "*)
8537            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8538 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8539            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8540              $EGREP "$file_magic_regex" > /dev/null; then
8541              :
# Line 8275 | Line 8558 | _LT_EOF
8558        break
8559      fi
8560    done
8561 <  IFS="$lt_save_ifs"
8562 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8561 >  IFS=$lt_save_ifs
8562 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8563    ;;
8564   esac
8565   fi
8566  
8567 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8567 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8568   if test -n "$MAGIC_CMD"; then
8569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8570   $as_echo "$MAGIC_CMD" >&6; }
# Line 8302 | Line 8585 | esac
8585  
8586   # Use C for the default configuration in the libtool script
8587  
8588 < lt_save_CC="$CC"
8588 > lt_save_CC=$CC
8589   ac_ext=c
8590   ac_cpp='$CPP $CPPFLAGS'
8591   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8356 | Line 8639 | _lt_linker_boilerplate=`cat conftest.err
8639   $RM -r conftest*
8640  
8641  
8642 + ## CAVEAT EMPTOR:
8643 + ## There is no encapsulation within the following macros, do not change
8644 + ## the running order or otherwise move them around unless you know exactly
8645 + ## what you are doing...
8646   if test -n "$compiler"; then
8647  
8648   lt_prog_compiler_no_builtin_flag=
8649  
8650 < if test "$GCC" = yes; then
8650 > if test yes = "$GCC"; then
8651    case $cc_basename in
8652    nvcc*)
8653      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8376 | Line 8663 | else
8663    lt_cv_prog_compiler_rtti_exceptions=no
8664     ac_outfile=conftest.$ac_objext
8665     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8666 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8666 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8667     # Insert the option either (1) after the last *FLAGS variable, or
8668     # (2) before a word containing "conftest.", or (3) at the end.
8669     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8406 | Line 8693 | fi
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8694   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8695  
8696 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8696 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8697      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8698   else
8699      :
# Line 8424 | Line 8711 | lt_prog_compiler_pic=
8711   lt_prog_compiler_static=
8712  
8713  
8714 <  if test "$GCC" = yes; then
8714 >  if test yes = "$GCC"; then
8715      lt_prog_compiler_wl='-Wl,'
8716      lt_prog_compiler_static='-static'
8717  
8718      case $host_os in
8719        aix*)
8720        # All AIX code is PIC.
8721 <      if test "$host_cpu" = ia64; then
8721 >      if test ia64 = "$host_cpu"; then
8722          # AIX 5 now supports IA64 processor
8723          lt_prog_compiler_static='-Bstatic'
8724        fi
8725 +      lt_prog_compiler_pic='-fPIC'
8726        ;;
8727  
8728      amigaos*)
# Line 8445 | Line 8733 | lt_prog_compiler_static=
8733          ;;
8734        m68k)
8735              # FIXME: we need at least 68020 code to build shared libraries, but
8736 <            # adding the `-m68020' flag to GCC prevents building anything better,
8737 <            # like `-m68040'.
8736 >            # adding the '-m68020' flag to GCC prevents building anything better,
8737 >            # like '-m68040'.
8738              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739          ;;
8740        esac
# Line 8522 | Line 8810 | lt_prog_compiler_static=
8810      case $cc_basename in
8811      nvcc*) # Cuda Compiler Driver 2.2
8812        lt_prog_compiler_wl='-Xlinker '
8813 <      lt_prog_compiler_pic='-Xcompiler -fPIC'
8813 >      if test -n "$lt_prog_compiler_pic"; then
8814 >        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8815 >      fi
8816        ;;
8817      esac
8818    else
# Line 8530 | Line 8820 | lt_prog_compiler_static=
8820      case $host_os in
8821      aix*)
8822        lt_prog_compiler_wl='-Wl,'
8823 <      if test "$host_cpu" = ia64; then
8823 >      if test ia64 = "$host_cpu"; then
8824          # AIX 5 now supports IA64 processor
8825          lt_prog_compiler_static='-Bstatic'
8826        else
# Line 8538 | Line 8828 | lt_prog_compiler_static=
8828        fi
8829        ;;
8830  
8831 +    darwin* | rhapsody*)
8832 +      # PIC is the default on this platform
8833 +      # Common symbols not allowed in MH_DYLIB files
8834 +      lt_prog_compiler_pic='-fno-common'
8835 +      case $cc_basename in
8836 +      nagfor*)
8837 +        # NAG Fortran compiler
8838 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8839 +        lt_prog_compiler_pic='-PIC'
8840 +        lt_prog_compiler_static='-Bstatic'
8841 +        ;;
8842 +      esac
8843 +      ;;
8844 +
8845      mingw* | cygwin* | pw32* | os2* | cegcc*)
8846        # This hack is so that the source file can tell whether it is being
8847        # built for inclusion in a dll (and should export symbols for example).
# Line 8557 | Line 8861 | lt_prog_compiler_static=
8861          ;;
8862        esac
8863        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8864 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8864 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8865        ;;
8866  
8867      irix5* | irix6* | nonstopux*)
# Line 8566 | Line 8870 | lt_prog_compiler_static=
8870        lt_prog_compiler_static='-non_shared'
8871        ;;
8872  
8873 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8873 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8874        case $cc_basename in
8875 <      # old Intel for x86_64 which still supported -KPIC.
8875 >      # old Intel for x86_64, which still supported -KPIC.
8876        ecc*)
8877          lt_prog_compiler_wl='-Wl,'
8878          lt_prog_compiler_pic='-KPIC'
# Line 8593 | Line 8897 | lt_prog_compiler_static=
8897          lt_prog_compiler_pic='-PIC'
8898          lt_prog_compiler_static='-Bstatic'
8899          ;;
8900 +      tcc*)
8901 +        # Fabrice Bellard et al's Tiny C Compiler
8902 +        lt_prog_compiler_wl='-Wl,'
8903 +        lt_prog_compiler_pic='-fPIC'
8904 +        lt_prog_compiler_static='-static'
8905 +        ;;
8906        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8907          # Portland Group compilers (*not* the Pentium gcc compiler,
8908          # which looks to be a dead project)
# Line 8613 | Line 8923 | lt_prog_compiler_static=
8923          ;;
8924        *)
8925          case `$CC -V 2>&1 | sed 5q` in
8926 <        *Sun\ F* | *Sun*Fortran*)
8926 >        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8927            # Sun Fortran 8.3 passes all unrecognized flags to the linker
8928            lt_prog_compiler_pic='-KPIC'
8929            lt_prog_compiler_static='-Bstatic'
8930            lt_prog_compiler_wl=''
8931            ;;
8932 +        *Sun\ F* | *Sun*Fortran*)
8933 +          lt_prog_compiler_pic='-KPIC'
8934 +          lt_prog_compiler_static='-Bstatic'
8935 +          lt_prog_compiler_wl='-Qoption ld '
8936 +          ;;
8937          *Sun\ C*)
8938            # Sun C 5.9
8939            lt_prog_compiler_pic='-KPIC'
8940            lt_prog_compiler_static='-Bstatic'
8941            lt_prog_compiler_wl='-Wl,'
8942            ;;
8943 +        *Intel*\ [CF]*Compiler*)
8944 +          lt_prog_compiler_wl='-Wl,'
8945 +          lt_prog_compiler_pic='-fPIC'
8946 +          lt_prog_compiler_static='-static'
8947 +          ;;
8948 +        *Portland\ Group*)
8949 +          lt_prog_compiler_wl='-Wl,'
8950 +          lt_prog_compiler_pic='-fpic'
8951 +          lt_prog_compiler_static='-Bstatic'
8952 +          ;;
8953          esac
8954          ;;
8955        esac
# Line 8675 | Line 9000 | lt_prog_compiler_static=
9000        ;;
9001  
9002      sysv4*MP*)
9003 <      if test -d /usr/nec ;then
9003 >      if test -d /usr/nec; then
9004          lt_prog_compiler_pic='-Kconform_pic'
9005          lt_prog_compiler_static='-Bstatic'
9006        fi
# Line 8704 | Line 9029 | lt_prog_compiler_static=
9029    fi
9030  
9031   case $host_os in
9032 <  # For platforms which do not support PIC, -DPIC is meaningless:
9032 >  # For platforms that do not support PIC, -DPIC is meaningless:
9033    *djgpp*)
9034      lt_prog_compiler_pic=
9035      ;;
# Line 8736 | Line 9061 | else
9061    lt_cv_prog_compiler_pic_works=no
9062     ac_outfile=conftest.$ac_objext
9063     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9064 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9065     # Insert the option either (1) after the last *FLAGS variable, or
9066     # (2) before a word containing "conftest.", or (3) at the end.
9067     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8766 | Line 9091 | fi
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9092   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9093  
9094 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9094 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9095      case $lt_prog_compiler_pic in
9096       "" | " "*) ;;
9097       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8798 | Line 9123 | if ${lt_cv_prog_compiler_static_works+:}
9123    $as_echo_n "(cached) " >&6
9124   else
9125    lt_cv_prog_compiler_static_works=no
9126 <   save_LDFLAGS="$LDFLAGS"
9126 >   save_LDFLAGS=$LDFLAGS
9127     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9128     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9129     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8817 | Line 9142 | else
9142       fi
9143     fi
9144     $RM -r conftest*
9145 <   LDFLAGS="$save_LDFLAGS"
9145 >   LDFLAGS=$save_LDFLAGS
9146  
9147   fi
9148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9149   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9150  
9151 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9151 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9152      :
9153   else
9154      lt_prog_compiler_static=
# Line 8943 | Line 9268 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9268  
9269  
9270  
9271 < hard_links="nottested"
9272 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9271 > hard_links=nottested
9272 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9273    # do not overwrite the value of need_locks provided by the user
9274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9275   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 8956 | Line 9281 | $as_echo_n "checking if we can lock with
9281    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9283   $as_echo "$hard_links" >&6; }
9284 <  if test "$hard_links" = no; then
9285 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9286 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9284 >  if test no = "$hard_links"; then
9285 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9286 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9287      need_locks=warn
9288    fi
9289   else
# Line 8986 | Line 9311 | $as_echo_n "checking whether the $compil
9311    hardcode_direct=no
9312    hardcode_direct_absolute=no
9313    hardcode_libdir_flag_spec=
8989  hardcode_libdir_flag_spec_ld=
9314    hardcode_libdir_separator=
9315    hardcode_minus_L=no
9316    hardcode_shlibpath_var=unsupported
# Line 9002 | Line 9326 | $as_echo_n "checking whether the $compil
9326    # included in the symbol list
9327    include_expsyms=
9328    # exclude_expsyms can be an extended regexp of symbols to exclude
9329 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9330 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9331 <  # as well as any symbol that contains `d'.
9329 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9330 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9331 >  # as well as any symbol that contains 'd'.
9332    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9333    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9334    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9019 | Line 9343 | $as_echo_n "checking whether the $compil
9343      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344      # When not using gcc, we currently assume that we are using
9345      # Microsoft Visual C++.
9346 <    if test "$GCC" != yes; then
9346 >    if test yes != "$GCC"; then
9347        with_gnu_ld=no
9348      fi
9349      ;;
# Line 9027 | Line 9351 | $as_echo_n "checking whether the $compil
9351      # we just hope/assume this is gcc and not c89 (= MSVC++)
9352      with_gnu_ld=yes
9353      ;;
9354 <  openbsd*)
9354 >  openbsd* | bitrig*)
9355      with_gnu_ld=no
9356      ;;
9357    esac
# Line 9037 | Line 9361 | $as_echo_n "checking whether the $compil
9361    # On some targets, GNU ld is compatible enough with the native linker
9362    # that we're better off using the native interface for both.
9363    lt_use_gnu_ld_interface=no
9364 <  if test "$with_gnu_ld" = yes; then
9364 >  if test yes = "$with_gnu_ld"; then
9365      case $host_os in
9366        aix*)
9367          # The AIX port of GNU ld has always aspired to compatibility
# Line 9059 | Line 9383 | $as_echo_n "checking whether the $compil
9383      esac
9384    fi
9385  
9386 <  if test "$lt_use_gnu_ld_interface" = yes; then
9386 >  if test yes = "$lt_use_gnu_ld_interface"; then
9387      # If archive_cmds runs LD, not CC, wlarc should be empty
9388 <    wlarc='${wl}'
9388 >    wlarc='$wl'
9389  
9390      # Set some defaults for GNU ld with shared library support. These
9391      # are reset later if shared libraries are not supported. Putting them
9392      # here allows them to be overridden if necessary.
9393      runpath_var=LD_RUN_PATH
9394 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9394 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9395 >    export_dynamic_flag_spec='$wl--export-dynamic'
9396      # ancient GNU ld didn't support --whole-archive et. al.
9397      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9398 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9398 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9399      else
9400        whole_archive_flag_spec=
9401      fi
9402      supports_anon_versioning=no
9403 <    case `$LD -v 2>&1` in
9403 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9404        *GNU\ gold*) supports_anon_versioning=yes ;;
9405        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9406        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9089 | Line 9413 | $as_echo_n "checking whether the $compil
9413      case $host_os in
9414      aix[3-9]*)
9415        # On AIX/PPC, the GNU linker is very broken
9416 <      if test "$host_cpu" != ia64; then
9416 >      if test ia64 != "$host_cpu"; then
9417          ld_shlibs=no
9418          cat <<_LT_EOF 1>&2
9419  
# Line 9108 | Line 9432 | _LT_EOF
9432        case $host_cpu in
9433        powerpc)
9434              # see comment about AmigaOS4 .so support
9435 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9436              archive_expsym_cmds=''
9437          ;;
9438        m68k)
# Line 9124 | Line 9448 | _LT_EOF
9448          allow_undefined_flag=unsupported
9449          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9450          # support --undefined.  This deserves some investigation.  FIXME
9451 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9452        else
9453          ld_shlibs=no
9454        fi
# Line 9134 | Line 9458 | _LT_EOF
9458        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9459        # as there is no search path for DLLs.
9460        hardcode_libdir_flag_spec='-L$libdir'
9461 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9461 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9462        allow_undefined_flag=unsupported
9463        always_export_symbols=no
9464        enable_shared_with_static_runtimes=yes
# Line 9142 | Line 9466 | _LT_EOF
9466        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9467  
9468        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9469 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470 <        # If the export-symbols file already is a .def file (1st line
9471 <        # is EXPORTS), use it as is; otherwise, prepend...
9472 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9473 <          cp $export_symbols $output_objdir/$soname.def;
9474 <        else
9475 <          echo EXPORTS > $output_objdir/$soname.def;
9476 <          cat $export_symbols >> $output_objdir/$soname.def;
9477 <        fi~
9478 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9469 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470 >        # If the export-symbols file already is a .def file, use it as
9471 >        # is; otherwise, prepend EXPORTS...
9472 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9473 >          cp $export_symbols $output_objdir/$soname.def;
9474 >        else
9475 >          echo EXPORTS > $output_objdir/$soname.def;
9476 >          cat $export_symbols >> $output_objdir/$soname.def;
9477 >        fi~
9478 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9479        else
9480          ld_shlibs=no
9481        fi
9482        ;;
9483  
9484      haiku*)
9485 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9486        link_all_deplibs=yes
9487        ;;
9488  
9489      interix[3-9]*)
9490        hardcode_direct=no
9491        hardcode_shlibpath_var=no
9492 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9493 <      export_dynamic_flag_spec='${wl}-E'
9492 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9493 >      export_dynamic_flag_spec='$wl-E'
9494        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9495        # Instead, shared libraries are loaded at an image base (0x10000000 by
9496        # default) and relocated if they conflict, which is a slow very memory
9497        # consuming and fragmenting process.  To avoid this, we pick a random,
9498        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9499        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9500 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9501 <      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'
9500 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9501 >      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'
9502        ;;
9503  
9504      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9505        tmp_diet=no
9506 <      if test "$host_os" = linux-dietlibc; then
9506 >      if test linux-dietlibc = "$host_os"; then
9507          case $cc_basename in
9508            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9509          esac
9510        fi
9511        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9512 <         && test "$tmp_diet" = no
9512 >         && test no = "$tmp_diet"
9513        then
9514          tmp_addflag=' $pic_flag'
9515          tmp_sharedflag='-shared'
9516          case $cc_basename,$host_cpu in
9517          pgcc*)                          # Portland Group C compiler
9518 <          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'
9518 >          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'
9519            tmp_addflag=' $pic_flag'
9520            ;;
9521          pgf77* | pgf90* | pgf95* | pgfortran*)
9522                                          # Portland Group f77 and f90 compilers
9523 <          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'
9523 >          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'
9524            tmp_addflag=' $pic_flag -Mnomain' ;;
9525          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9526            tmp_addflag=' -i_dynamic' ;;
# Line 9207 | Line 9531 | _LT_EOF
9531          lf95*)                          # Lahey Fortran 8.1
9532            whole_archive_flag_spec=
9533            tmp_sharedflag='--shared' ;;
9534 +        nagfor*)                        # NAGFOR 5.3
9535 +          tmp_sharedflag='-Wl,-shared' ;;
9536          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9537            tmp_sharedflag='-qmkshrobj'
9538            tmp_addflag= ;;
9539          nvcc*)  # Cuda Compiler Driver 2.2
9540 <          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'
9540 >          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'
9541            compiler_needs_object=yes
9542            ;;
9543          esac
9544          case `$CC -V 2>&1 | sed 5q` in
9545          *Sun\ C*)                       # Sun C 5.9
9546 <          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'
9546 >          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'
9547            compiler_needs_object=yes
9548            tmp_sharedflag='-G' ;;
9549          *Sun\ F*)                       # Sun Fortran 8.3
9550            tmp_sharedflag='-G' ;;
9551          esac
9552 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9553  
9554 <        if test "x$supports_anon_versioning" = xyes; then
9554 >        if test yes = "$supports_anon_versioning"; then
9555            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9556 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9558 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9556 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9558 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9559          fi
9560  
9561          case $cc_basename in
9562          xlf* | bgf* | bgxlf* | mpixlf*)
9563            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9564            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9565 <          hardcode_libdir_flag_spec=
9240 <          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9565 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9566            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9567 <          if test "x$supports_anon_versioning" = xyes; then
9567 >          if test yes = "$supports_anon_versioning"; then
9568              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9569 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9570 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9571 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9569 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9570 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9571 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9572            fi
9573            ;;
9574          esac
# Line 9257 | Line 9582 | _LT_EOF
9582          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9583          wlarc=
9584        else
9585 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9586 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9587        fi
9588        ;;
9589  
# Line 9276 | Line 9601 | _LT_EOF
9601  
9602   _LT_EOF
9603        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9604 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9605 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9605 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9606        else
9607          ld_shlibs=no
9608        fi
# Line 9289 | Line 9614 | _LT_EOF
9614          ld_shlibs=no
9615          cat <<_LT_EOF 1>&2
9616  
9617 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9617 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9618   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9619   *** is disabling shared libraries support.  We urge you to upgrade GNU
9620   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9304 | Line 9629 | _LT_EOF
9629            # DT_RUNPATH tag from executables and libraries.  But doing so
9630            # requires that you compile everything twice, which is a pain.
9631            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9632 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9632 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9633 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9634 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9635            else
9636              ld_shlibs=no
9637            fi
# Line 9323 | Line 9648 | _LT_EOF
9648  
9649      *)
9650        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9651 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9652 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9653        else
9654          ld_shlibs=no
9655        fi
9656        ;;
9657      esac
9658  
9659 <    if test "$ld_shlibs" = no; then
9659 >    if test no = "$ld_shlibs"; then
9660        runpath_var=
9661        hardcode_libdir_flag_spec=
9662        export_dynamic_flag_spec=
# Line 9347 | Line 9672 | _LT_EOF
9672        # Note: this linker hardcodes the directories in LIBPATH if there
9673        # are no directories specified by -L.
9674        hardcode_minus_L=yes
9675 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9675 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9676          # Neither direct hardcoding nor static linking is supported with a
9677          # broken collect2.
9678          hardcode_direct=unsupported
# Line 9355 | Line 9680 | _LT_EOF
9680        ;;
9681  
9682      aix[4-9]*)
9683 <      if test "$host_cpu" = ia64; then
9683 >      if test ia64 = "$host_cpu"; then
9684          # On IA64, the linker does run time linking by default, so we don't
9685          # have to do anything special.
9686          aix_use_runtimelinking=no
9687          exp_sym_flag='-Bexport'
9688 <        no_entry_flag=""
9688 >        no_entry_flag=
9689        else
9690          # If we're using GNU nm, then we don't want the "-C" option.
9691          # -C means demangle to AIX nm, but means don't demangle with GNU nm
# Line 9378 | Line 9703 | _LT_EOF
9703          # need to do runtime linking.
9704          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9705            for ld_flag in $LDFLAGS; do
9706 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9706 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9707              aix_use_runtimelinking=yes
9708              break
9709            fi
# Line 9401 | Line 9726 | _LT_EOF
9726        hardcode_direct_absolute=yes
9727        hardcode_libdir_separator=':'
9728        link_all_deplibs=yes
9729 <      file_list_spec='${wl}-f,'
9729 >      file_list_spec='$wl-f,'
9730  
9731 <      if test "$GCC" = yes; then
9731 >      if test yes = "$GCC"; then
9732          case $host_os in aix4.[012]|aix4.[012].*)
9733          # We only want to do this on AIX 4.2 and lower, the check
9734          # below for broken collect2 doesn't work under 4.3+
9735 <          collect2name=`${CC} -print-prog-name=collect2`
9735 >          collect2name=`$CC -print-prog-name=collect2`
9736            if test -f "$collect2name" &&
9737             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9738            then
# Line 9426 | Line 9751 | _LT_EOF
9751            ;;
9752          esac
9753          shared_flag='-shared'
9754 <        if test "$aix_use_runtimelinking" = yes; then
9755 <          shared_flag="$shared_flag "'${wl}-G'
9754 >        if test yes = "$aix_use_runtimelinking"; then
9755 >          shared_flag="$shared_flag "'$wl-G'
9756          fi
9757        else
9758          # not using gcc
9759 <        if test "$host_cpu" = ia64; then
9759 >        if test ia64 = "$host_cpu"; then
9760          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9761          # chokes on -Wl,-G. The following line is correct:
9762            shared_flag='-G'
9763          else
9764 <          if test "$aix_use_runtimelinking" = yes; then
9765 <            shared_flag='${wl}-G'
9764 >          if test yes = "$aix_use_runtimelinking"; then
9765 >            shared_flag='$wl-G'
9766            else
9767 <            shared_flag='${wl}-bM:SRE'
9767 >            shared_flag='$wl-bM:SRE'
9768            fi
9769          fi
9770        fi
9771  
9772 <      export_dynamic_flag_spec='${wl}-bexpall'
9772 >      export_dynamic_flag_spec='$wl-bexpall'
9773        # It seems that -bexpall does not export symbols beginning with
9774        # underscore (_), so it is better to generate a list of symbols to export.
9775        always_export_symbols=yes
9776 <      if test "$aix_use_runtimelinking" = yes; then
9776 >      if test yes = "$aix_use_runtimelinking"; then
9777          # Warning - without using the other runtime loading flags (-brtl),
9778          # -berok will link without error, but may produce a broken library.
9779          allow_undefined_flag='-berok'
9780          # Determine the default libpath from the value encoded in an
9781          # empty executable.
9782 <        if test "${lt_cv_aix_libpath+set}" = set; then
9782 >        if test set = "${lt_cv_aix_libpath+set}"; then
9783    aix_libpath=$lt_cv_aix_libpath
9784   else
9785    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9489 | Line 9814 | fi
9814   rm -f core conftest.err conftest.$ac_objext \
9815      conftest$ac_exeext conftest.$ac_ext
9816    if test -z "$lt_cv_aix_libpath_"; then
9817 <    lt_cv_aix_libpath_="/usr/lib:/lib"
9817 >    lt_cv_aix_libpath_=/usr/lib:/lib
9818    fi
9819  
9820   fi
# Line 9497 | Line 9822 | fi
9822    aix_libpath=$lt_cv_aix_libpath_
9823   fi
9824  
9825 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9826 <        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"
9825 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9826 >        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
9827        else
9828 <        if test "$host_cpu" = ia64; then
9829 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9828 >        if test ia64 = "$host_cpu"; then
9829 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9830            allow_undefined_flag="-z nodefs"
9831 <          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"
9831 >          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"
9832          else
9833           # Determine the default libpath from the value encoded in an
9834           # empty executable.
9835 <         if test "${lt_cv_aix_libpath+set}" = set; then
9835 >         if test set = "${lt_cv_aix_libpath+set}"; then
9836    aix_libpath=$lt_cv_aix_libpath
9837   else
9838    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9542 | Line 9867 | fi
9867   rm -f core conftest.err conftest.$ac_objext \
9868      conftest$ac_exeext conftest.$ac_ext
9869    if test -z "$lt_cv_aix_libpath_"; then
9870 <    lt_cv_aix_libpath_="/usr/lib:/lib"
9870 >    lt_cv_aix_libpath_=/usr/lib:/lib
9871    fi
9872  
9873   fi
# Line 9550 | Line 9875 | fi
9875    aix_libpath=$lt_cv_aix_libpath_
9876   fi
9877  
9878 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9878 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9879            # Warning - without using the other run time loading flags,
9880            # -berok will link without error, but may produce a broken library.
9881 <          no_undefined_flag=' ${wl}-bernotok'
9882 <          allow_undefined_flag=' ${wl}-berok'
9883 <          if test "$with_gnu_ld" = yes; then
9881 >          no_undefined_flag=' $wl-bernotok'
9882 >          allow_undefined_flag=' $wl-berok'
9883 >          if test yes = "$with_gnu_ld"; then
9884              # We only use this code for GNU lds that support --whole-archive.
9885 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9885 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9886            else
9887              # Exported symbols can be pulled into shared objects from archives
9888              whole_archive_flag_spec='$convenience'
9889            fi
9890            archive_cmds_need_lc=yes
9891            # This is similar to how AIX traditionally builds its shared libraries.
9892 <          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'
9892 >          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'
9893          fi
9894        fi
9895        ;;
# Line 9573 | Line 9898 | fi
9898        case $host_cpu in
9899        powerpc)
9900              # see comment about AmigaOS4 .so support
9901 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902              archive_expsym_cmds=''
9903          ;;
9904        m68k)
# Line 9603 | Line 9928 | fi
9928          # Tell ltmain to make .lib files, not .a files.
9929          libext=lib
9930          # Tell ltmain to make .dll files, not .so files.
9931 <        shrext_cmds=".dll"
9931 >        shrext_cmds=.dll
9932          # FIXME: Setting linknames here is a bad hack.
9933 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9934 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9935 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9936 <          else
9937 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9938 <          fi~
9939 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9940 <          linknames='
9933 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9934 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9935 >            cp "$export_symbols" "$output_objdir/$soname.def";
9936 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9937 >          else
9938 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9939 >          fi~
9940 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9941 >          linknames='
9942          # The linker will not automatically build a static lib if we build a DLL.
9943          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9944          enable_shared_with_static_runtimes=yes
9945 +        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9946          export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9947          # Don't use ranlib
9948          old_postinstall_cmds='chmod 644 $oldlib'
9949          postlink_cmds='lt_outputfile="@OUTPUT@"~
9950 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 <          case $lt_outputfile in
9952 <            *.exe|*.EXE) ;;
9953 <            *)
9954 <              lt_outputfile="$lt_outputfile.exe"
9955 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
9956 <              ;;
9957 <          esac~
9958 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9959 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 <            $RM "$lt_outputfile.manifest";
9961 <          fi'
9950 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 >          case $lt_outputfile in
9952 >            *.exe|*.EXE) ;;
9953 >            *)
9954 >              lt_outputfile=$lt_outputfile.exe
9955 >              lt_tool_outputfile=$lt_tool_outputfile.exe
9956 >              ;;
9957 >          esac~
9958 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9959 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 >            $RM "$lt_outputfile.manifest";
9961 >          fi'
9962          ;;
9963        *)
9964          # Assume MSVC wrapper
# Line 9640 | Line 9967 | fi
9967          # Tell ltmain to make .lib files, not .a files.
9968          libext=lib
9969          # Tell ltmain to make .dll files, not .so files.
9970 <        shrext_cmds=".dll"
9970 >        shrext_cmds=.dll
9971          # FIXME: Setting linknames here is a bad hack.
9972          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9973          # The linker will automatically build a .lib file if we build a DLL.
# Line 9659 | Line 9986 | fi
9986    hardcode_direct=no
9987    hardcode_automatic=yes
9988    hardcode_shlibpath_var=unsupported
9989 <  if test "$lt_cv_ld_force_load" = "yes"; then
9990 <    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\"`'
9989 >  if test yes = "$lt_cv_ld_force_load"; then
9990 >    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\"`'
9991 >
9992    else
9993      whole_archive_flag_spec=''
9994    fi
9995    link_all_deplibs=yes
9996 <  allow_undefined_flag="$_lt_dar_allow_undefined"
9996 >  allow_undefined_flag=$_lt_dar_allow_undefined
9997    case $cc_basename in
9998 <     ifort*) _lt_dar_can_shared=yes ;;
9998 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9999       *) _lt_dar_can_shared=$GCC ;;
10000    esac
10001 <  if test "$_lt_dar_can_shared" = "yes"; then
10001 >  if test yes = "$_lt_dar_can_shared"; then
10002      output_verbose_link_cmd=func_echo_all
10003 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10004 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10005 <    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}"
10006 <    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}"
10003 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10004 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10005 >    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"
10006 >    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"
10007  
10008    else
10009    ld_shlibs=no
# Line 9689 | Line 10017 | fi
10017        hardcode_shlibpath_var=no
10018        ;;
10019  
9692    freebsd1*)
9693      ld_shlibs=no
9694      ;;
9695
10020      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021      # support.  Future versions do this automatically, but an explicit c++rt0.o
10022      # does not break anything, and helps significantly (at the cost of a little
# Line 9705 | Line 10029 | fi
10029        ;;
10030  
10031      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10032 <    freebsd2*)
10032 >    freebsd2.*)
10033        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034        hardcode_direct=yes
10035        hardcode_minus_L=yes
# Line 9721 | Line 10045 | fi
10045        ;;
10046  
10047      hpux9*)
10048 <      if test "$GCC" = yes; then
10049 <        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'
10048 >      if test yes = "$GCC"; then
10049 >        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'
10050        else
10051 <        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'
10051 >        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'
10052        fi
10053 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10053 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10054        hardcode_libdir_separator=:
10055        hardcode_direct=yes
10056  
10057        # hardcode_minus_L: Not really in the search PATH,
10058        # but as the default location of the library.
10059        hardcode_minus_L=yes
10060 <      export_dynamic_flag_spec='${wl}-E'
10060 >      export_dynamic_flag_spec='$wl-E'
10061        ;;
10062  
10063      hpux10*)
10064 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10065 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10064 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10065 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066        else
10067          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068        fi
10069 <      if test "$with_gnu_ld" = no; then
10070 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9747 <        hardcode_libdir_flag_spec_ld='+b $libdir'
10069 >      if test no = "$with_gnu_ld"; then
10070 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10071          hardcode_libdir_separator=:
10072          hardcode_direct=yes
10073          hardcode_direct_absolute=yes
10074 <        export_dynamic_flag_spec='${wl}-E'
10074 >        export_dynamic_flag_spec='$wl-E'
10075          # hardcode_minus_L: Not really in the search PATH,
10076          # but as the default location of the library.
10077          hardcode_minus_L=yes
# Line 9756 | Line 10079 | fi
10079        ;;
10080  
10081      hpux11*)
10082 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10082 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10083          case $host_cpu in
10084          hppa*64*)
10085 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10086            ;;
10087          ia64*)
10088 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10089            ;;
10090          *)
10091 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10091 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10092            ;;
10093          esac
10094        else
10095          case $host_cpu in
10096          hppa*64*)
10097 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10098            ;;
10099          ia64*)
10100 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10100 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101            ;;
10102          *)
10103  
# Line 9786 | Line 10109 | if ${lt_cv_prog_compiler__b+:} false; th
10109    $as_echo_n "(cached) " >&6
10110   else
10111    lt_cv_prog_compiler__b=no
10112 <   save_LDFLAGS="$LDFLAGS"
10112 >   save_LDFLAGS=$LDFLAGS
10113     LDFLAGS="$LDFLAGS -b"
10114     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10115     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9805 | Line 10128 | else
10128       fi
10129     fi
10130     $RM -r conftest*
10131 <   LDFLAGS="$save_LDFLAGS"
10131 >   LDFLAGS=$save_LDFLAGS
10132  
10133   fi
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10136  
10137 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10138 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10137 > if test yes = "$lt_cv_prog_compiler__b"; then
10138 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10139   else
10140      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141   fi
# Line 9820 | Line 10143 | fi
10143            ;;
10144          esac
10145        fi
10146 <      if test "$with_gnu_ld" = no; then
10147 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10146 >      if test no = "$with_gnu_ld"; then
10147 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10148          hardcode_libdir_separator=:
10149  
10150          case $host_cpu in
# Line 9832 | Line 10155 | fi
10155          *)
10156            hardcode_direct=yes
10157            hardcode_direct_absolute=yes
10158 <          export_dynamic_flag_spec='${wl}-E'
10158 >          export_dynamic_flag_spec='$wl-E'
10159  
10160            # hardcode_minus_L: Not really in the search PATH,
10161            # but as the default location of the library.
# Line 9843 | Line 10166 | fi
10166        ;;
10167  
10168      irix5* | irix6* | nonstopux*)
10169 <      if test "$GCC" = yes; then
10170 <        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'
10169 >      if test yes = "$GCC"; then
10170 >        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'
10171          # Try to use the -exported_symbol ld option, if it does not
10172          # work, assume that -exports_file does not work either and
10173          # implicitly export all symbols.
# Line 9854 | Line 10177 | $as_echo_n "checking whether the $host_o
10177   if ${lt_cv_irix_exported_symbol+:} false; then :
10178    $as_echo_n "(cached) " >&6
10179   else
10180 <  save_LDFLAGS="$LDFLAGS"
10181 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10180 >  save_LDFLAGS=$LDFLAGS
10181 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10182             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183   /* end confdefs.h.  */
10184   int foo (void) { return 0; }
# Line 9867 | Line 10190 | else
10190   fi
10191   rm -f core conftest.err conftest.$ac_objext \
10192      conftest$ac_exeext conftest.$ac_ext
10193 <           LDFLAGS="$save_LDFLAGS"
10193 >           LDFLAGS=$save_LDFLAGS
10194   fi
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10196   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10197 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10198 <          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'
10197 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10198 >          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'
10199          fi
10200        else
10201 <        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'
10202 <        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'
10201 >        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'
10202 >        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'
10203        fi
10204        archive_cmds_need_lc='no'
10205 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10206        hardcode_libdir_separator=:
10207        inherit_rpath=yes
10208        link_all_deplibs=yes
# Line 9899 | Line 10222 | $as_echo "$lt_cv_irix_exported_symbol" >
10222      newsos6)
10223        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224        hardcode_direct=yes
10225 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10225 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10226        hardcode_libdir_separator=:
10227        hardcode_shlibpath_var=no
10228        ;;
# Line 9907 | Line 10230 | $as_echo "$lt_cv_irix_exported_symbol" >
10230      *nto* | *qnx*)
10231        ;;
10232  
10233 <    openbsd*)
10233 >    openbsd* | bitrig*)
10234        if test -f /usr/libexec/ld.so; then
10235          hardcode_direct=yes
10236          hardcode_shlibpath_var=no
10237          hardcode_direct_absolute=yes
10238 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10238 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10239            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10241 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10242 <          export_dynamic_flag_spec='${wl}-E'
10240 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10241 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10242 >          export_dynamic_flag_spec='$wl-E'
10243          else
10244 <          case $host_os in
10245 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9923 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924 <             hardcode_libdir_flag_spec='-R$libdir'
9925 <             ;;
9926 <           *)
9927 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 <             ;;
9930 <          esac
10244 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10246          fi
10247        else
10248          ld_shlibs=no
# Line 9943 | Line 10258 | $as_echo "$lt_cv_irix_exported_symbol" >
10258        ;;
10259  
10260      osf3*)
10261 <      if test "$GCC" = yes; then
10262 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263 <        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'
10261 >      if test yes = "$GCC"; then
10262 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10263 >        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'
10264        else
10265          allow_undefined_flag=' -expect_unresolved \*'
10266 <        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'
10266 >        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'
10267        fi
10268        archive_cmds_need_lc='no'
10269 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10270        hardcode_libdir_separator=:
10271        ;;
10272  
10273      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10274 <      if test "$GCC" = yes; then
10275 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276 <        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'
10277 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10274 >      if test yes = "$GCC"; then
10275 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10276 >        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'
10277 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10278        else
10279          allow_undefined_flag=' -expect_unresolved \*'
10280 <        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'
10280 >        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'
10281          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~
10282 <        $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'
10282 >          $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'
10283  
10284          # Both c and cxx compiler support -rpath directly
10285          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 9975 | Line 10290 | $as_echo "$lt_cv_irix_exported_symbol" >
10290  
10291      solaris*)
10292        no_undefined_flag=' -z defs'
10293 <      if test "$GCC" = yes; then
10294 <        wlarc='${wl}'
10295 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 >      if test yes = "$GCC"; then
10294 >        wlarc='$wl'
10295 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10296          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 <          $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'
10297 >          $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'
10298        else
10299          case `$CC -V 2>&1` in
10300          *"Compilers 5.0"*)
10301            wlarc=''
10302 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10304 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305            ;;
10306          *)
10307 <          wlarc='${wl}'
10308 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 >          wlarc='$wl'
10308 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311            ;;
10312          esac
10313        fi
# Line 10002 | Line 10317 | $as_echo "$lt_cv_irix_exported_symbol" >
10317        solaris2.[0-5] | solaris2.[0-5].*) ;;
10318        *)
10319          # The compiler driver will combine and reorder linker options,
10320 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10320 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10321          # but is careful enough not to reorder.
10322          # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 <        if test "$GCC" = yes; then
10324 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10323 >        if test yes = "$GCC"; then
10324 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10325          else
10326            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327          fi
# Line 10016 | Line 10331 | $as_echo "$lt_cv_irix_exported_symbol" >
10331        ;;
10332  
10333      sunos4*)
10334 <      if test "x$host_vendor" = xsequent; then
10334 >      if test sequent = "$host_vendor"; then
10335          # Use $CC to link under sequent, because it throws in some extra .o
10336          # files that make .init and .fini sections work.
10337 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338        else
10339          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340        fi
# Line 10068 | Line 10383 | $as_echo "$lt_cv_irix_exported_symbol" >
10383        ;;
10384  
10385      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386 <      no_undefined_flag='${wl}-z,text'
10386 >      no_undefined_flag='$wl-z,text'
10387        archive_cmds_need_lc=no
10388        hardcode_shlibpath_var=no
10389        runpath_var='LD_RUN_PATH'
10390  
10391 <      if test "$GCC" = yes; then
10392 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 >      if test yes = "$GCC"; then
10392 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394        else
10395 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397        fi
10398        ;;
10399  
10400      sysv5* | sco3.2v5* | sco5v6*)
10401 <      # Note: We can NOT use -z defs as we might desire, because we do not
10401 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10402        # link with -lc, and that would cause any symbols used from libc to
10403        # always be unresolved, which means just about no library would
10404        # ever link correctly.  If we're not using GNU ld we use -z text
10405        # though, which does catch some bad symbols but isn't as heavy-handed
10406        # as -z defs.
10407 <      no_undefined_flag='${wl}-z,text'
10408 <      allow_undefined_flag='${wl}-z,nodefs'
10407 >      no_undefined_flag='$wl-z,text'
10408 >      allow_undefined_flag='$wl-z,nodefs'
10409        archive_cmds_need_lc=no
10410        hardcode_shlibpath_var=no
10411 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10412        hardcode_libdir_separator=':'
10413        link_all_deplibs=yes
10414 <      export_dynamic_flag_spec='${wl}-Bexport'
10414 >      export_dynamic_flag_spec='$wl-Bexport'
10415        runpath_var='LD_RUN_PATH'
10416  
10417 <      if test "$GCC" = yes; then
10418 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 >      if test yes = "$GCC"; then
10418 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420        else
10421 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423        fi
10424        ;;
10425  
# Line 10119 | Line 10434 | $as_echo "$lt_cv_irix_exported_symbol" >
10434        ;;
10435      esac
10436  
10437 <    if test x$host_vendor = xsni; then
10437 >    if test sni = "$host_vendor"; then
10438        case $host in
10439        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10440 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10441          ;;
10442        esac
10443      fi
# Line 10130 | Line 10445 | $as_echo "$lt_cv_irix_exported_symbol" >
10445  
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447   $as_echo "$ld_shlibs" >&6; }
10448 < test "$ld_shlibs" = no && can_build_shared=no
10448 > test no = "$ld_shlibs" && can_build_shared=no
10449  
10450   with_gnu_ld=$with_gnu_ld
10451  
# Line 10156 | Line 10471 | x|xyes)
10471    # Assume -lc should be added
10472    archive_cmds_need_lc=yes
10473  
10474 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10474 >  if test yes,yes = "$GCC,$enable_shared"; then
10475      case $archive_cmds in
10476      *'~'*)
10477        # FIXME: we may have to deal with multi-command sequences.
# Line 10368 | Line 10683 | esac
10683  
10684  
10685  
10371
10372
10373
10374
10375
10686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688  
10689 < if test "$GCC" = yes; then
10689 > if test yes = "$GCC"; then
10690    case $host_os in
10691 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692 <    *) lt_awk_arg="/^libraries:/" ;;
10691 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10692 >    *) lt_awk_arg='/^libraries:/' ;;
10693    esac
10694    case $host_os in
10695 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10695 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10696 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10697    esac
10698    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699    case $lt_search_path_spec in
# Line 10399 | Line 10709 | if test "$GCC" = yes; then
10709      ;;
10710    esac
10711    # Ok, now we have the path, separated by spaces, we can step through it
10712 <  # and add multilib dir if necessary.
10712 >  # and add multilib dir if necessary...
10713    lt_tmp_lt_search_path_spec=
10714 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 >  # ...but if some path component already ends with the multilib dir we assume
10716 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10717 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10718 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10719 >    lt_multi_os_dir=
10720 >    ;;
10721 >  esac
10722    for lt_sys_path in $lt_search_path_spec; do
10723 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10724 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10725 <    else
10723 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10724 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10725 >    elif test -n "$lt_multi_os_dir"; then
10726        test -d "$lt_sys_path" && \
10727          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10728      fi
10729    done
10730    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10731 < BEGIN {RS=" "; FS="/|\n";} {
10732 <  lt_foo="";
10733 <  lt_count=0;
10731 > BEGIN {RS = " "; FS = "/|\n";} {
10732 >  lt_foo = "";
10733 >  lt_count = 0;
10734    for (lt_i = NF; lt_i > 0; lt_i--) {
10735      if ($lt_i != "" && $lt_i != ".") {
10736        if ($lt_i == "..") {
10737          lt_count++;
10738        } else {
10739          if (lt_count == 0) {
10740 <          lt_foo="/" $lt_i lt_foo;
10740 >          lt_foo = "/" $lt_i lt_foo;
10741          } else {
10742            lt_count--;
10743          }
# Line 10434 | Line 10751 | BEGIN {RS=" "; FS="/|\n";} {
10751    # for these hosts.
10752    case $host_os in
10753      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10754 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10754 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10755    esac
10756    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10757   else
# Line 10443 | Line 10760 | fi
10760   library_names_spec=
10761   libname_spec='lib$name'
10762   soname_spec=
10763 < shrext_cmds=".so"
10763 > shrext_cmds=.so
10764   postinstall_cmds=
10765   postuninstall_cmds=
10766   finish_cmds=
# Line 10462 | Line 10779 | need_version=unknown
10779  
10780   case $host_os in
10781   aix3*)
10782 <  version_type=linux
10783 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10782 >  version_type=linux # correct to gnu/linux during the next big refactor
10783 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10784    shlibpath_var=LIBPATH
10785  
10786    # AIX 3 has no versioning support, so we append a major version to the name.
10787 <  soname_spec='${libname}${release}${shared_ext}$major'
10787 >  soname_spec='$libname$release$shared_ext$major'
10788    ;;
10789  
10790   aix[4-9]*)
10791 <  version_type=linux
10791 >  version_type=linux # correct to gnu/linux during the next big refactor
10792    need_lib_prefix=no
10793    need_version=no
10794    hardcode_into_libs=yes
10795 <  if test "$host_cpu" = ia64; then
10795 >  if test ia64 = "$host_cpu"; then
10796      # AIX 5 supports IA64
10797 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10797 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10798      shlibpath_var=LD_LIBRARY_PATH
10799    else
10800      # With GCC up to 2.95.x, collect2 would create an import file
10801      # for dependence libraries.  The import file would start with
10802 <    # the line `#! .'.  This would cause the generated library to
10803 <    # depend on `.', always an invalid library.  This was fixed in
10802 >    # the line '#! .'.  This would cause the generated library to
10803 >    # depend on '.', always an invalid library.  This was fixed in
10804      # development snapshots of GCC prior to 3.0.
10805      case $host_os in
10806        aix4 | aix4.[01] | aix4.[01].*)
10807        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10808             echo ' yes '
10809 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10809 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10810          :
10811        else
10812          can_build_shared=no
10813        fi
10814        ;;
10815      esac
10816 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10816 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10817      # soname into executable. Probably we can add versioning support to
10818      # collect2, so additional links can be useful in future.
10819 <    if test "$aix_use_runtimelinking" = yes; then
10819 >    if test yes = "$aix_use_runtimelinking"; then
10820        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10821        # instead of lib<name>.a to let people know that these are not
10822        # typical AIX shared libraries.
10823 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10824      else
10825        # We preserve .a as extension for shared libraries through AIX4.2
10826        # and later when we are not doing run time linking.
10827 <      library_names_spec='${libname}${release}.a $libname.a'
10828 <      soname_spec='${libname}${release}${shared_ext}$major'
10827 >      library_names_spec='$libname$release.a $libname.a'
10828 >      soname_spec='$libname$release$shared_ext$major'
10829      fi
10830      shlibpath_var=LIBPATH
10831    fi
# Line 10519 | Line 10836 | amigaos*)
10836    powerpc)
10837      # Since July 2007 AmigaOS4 officially supports .so libraries.
10838      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10839 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840      ;;
10841    m68k)
10842      library_names_spec='$libname.ixlibrary $libname.a'
10843      # Create ${libname}_ixlibrary.a entries in /sys/libs.
10844 <    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'
10844 >    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'
10845      ;;
10846    esac
10847    ;;
10848  
10849   beos*)
10850 <  library_names_spec='${libname}${shared_ext}'
10850 >  library_names_spec='$libname$shared_ext'
10851    dynamic_linker="$host_os ld.so"
10852    shlibpath_var=LIBRARY_PATH
10853    ;;
10854  
10855   bsdi[45]*)
10856 <  version_type=linux
10856 >  version_type=linux # correct to gnu/linux during the next big refactor
10857    need_version=no
10858 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 <  soname_spec='${libname}${release}${shared_ext}$major'
10858 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 >  soname_spec='$libname$release$shared_ext$major'
10860    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10861    shlibpath_var=LD_LIBRARY_PATH
10862    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10551 | Line 10868 | bsdi[45]*)
10868  
10869   cygwin* | mingw* | pw32* | cegcc*)
10870    version_type=windows
10871 <  shrext_cmds=".dll"
10871 >  shrext_cmds=.dll
10872    need_version=no
10873    need_lib_prefix=no
10874  
# Line 10560 | Line 10877 | cygwin* | mingw* | pw32* | cegcc*)
10877      # gcc
10878      library_names_spec='$libname.dll.a'
10879      # DLL is installed to $(libdir)/../bin by postinstall_cmds
10880 <    postinstall_cmds='base_file=`basename \${file}`~
10881 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10880 >    postinstall_cmds='base_file=`basename \$file`~
10881 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10882        dldir=$destdir/`dirname \$dlpath`~
10883        test -d \$dldir || mkdir -p \$dldir~
10884        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10577 | Line 10894 | cygwin* | mingw* | pw32* | cegcc*)
10894      case $host_os in
10895      cygwin*)
10896        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10897 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10898  
10899        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10900        ;;
10901      mingw* | cegcc*)
10902        # MinGW DLLs use traditional 'lib' prefix
10903 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10904        ;;
10905      pw32*)
10906        # pw32 DLLs use 'pw' prefix rather than 'lib'
10907 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10907 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10908        ;;
10909      esac
10910      dynamic_linker='Win32 ld.exe'
# Line 10596 | Line 10913 | cygwin* | mingw* | pw32* | cegcc*)
10913    *,cl*)
10914      # Native MSVC
10915      libname_spec='$name'
10916 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10917 <    library_names_spec='${libname}.dll.lib'
10916 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10917 >    library_names_spec='$libname.dll.lib'
10918  
10919      case $build_os in
10920      mingw*)
# Line 10624 | Line 10941 | cygwin* | mingw* | pw32* | cegcc*)
10941        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10942        ;;
10943      *)
10944 <      sys_lib_search_path_spec="$LIB"
10944 >      sys_lib_search_path_spec=$LIB
10945        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10946          # It is most probably a Windows format PATH.
10947          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10637 | Line 10954 | cygwin* | mingw* | pw32* | cegcc*)
10954      esac
10955  
10956      # DLL is installed to $(libdir)/../bin by postinstall_cmds
10957 <    postinstall_cmds='base_file=`basename \${file}`~
10958 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10957 >    postinstall_cmds='base_file=`basename \$file`~
10958 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10959        dldir=$destdir/`dirname \$dlpath`~
10960        test -d \$dldir || mkdir -p \$dldir~
10961        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10651 | Line 10968 | cygwin* | mingw* | pw32* | cegcc*)
10968  
10969    *)
10970      # Assume MSVC wrapper
10971 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10971 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10972      dynamic_linker='Win32 ld.exe'
10973      ;;
10974    esac
# Line 10664 | Line 10981 | darwin* | rhapsody*)
10981    version_type=darwin
10982    need_lib_prefix=no
10983    need_version=no
10984 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10985 <  soname_spec='${libname}${release}${major}$shared_ext'
10984 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10985 >  soname_spec='$libname$release$major$shared_ext'
10986    shlibpath_overrides_runpath=yes
10987    shlibpath_var=DYLD_LIBRARY_PATH
10988    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10675 | Line 10992 | darwin* | rhapsody*)
10992    ;;
10993  
10994   dgux*)
10995 <  version_type=linux
10995 >  version_type=linux # correct to gnu/linux during the next big refactor
10996    need_lib_prefix=no
10997    need_version=no
10998 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10999 <  soname_spec='${libname}${release}${shared_ext}$major'
10998 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999 >  soname_spec='$libname$release$shared_ext$major'
11000    shlibpath_var=LD_LIBRARY_PATH
11001    ;;
11002  
10686 freebsd1*)
10687  dynamic_linker=no
10688  ;;
10689
11003   freebsd* | dragonfly*)
11004    # DragonFly does not have aout.  When/if they implement a new
11005    # versioning mechanism, adjust this.
# Line 10694 | Line 11007 | freebsd* | dragonfly*)
11007      objformat=`/usr/bin/objformat`
11008    else
11009      case $host_os in
11010 <    freebsd[123]*) objformat=aout ;;
11010 >    freebsd[23].*) objformat=aout ;;
11011      *) objformat=elf ;;
11012      esac
11013    fi
11014    version_type=freebsd-$objformat
11015    case $version_type in
11016      freebsd-elf*)
11017 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11018        need_version=no
11019        need_lib_prefix=no
11020        ;;
11021      freebsd-*)
11022 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11022 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11023        need_version=yes
11024        ;;
11025    esac
11026    shlibpath_var=LD_LIBRARY_PATH
11027    case $host_os in
11028 <  freebsd2*)
11028 >  freebsd2.*)
11029      shlibpath_overrides_runpath=yes
11030      ;;
11031    freebsd3.[01]* | freebsdelf3.[01]*)
# Line 10731 | Line 11044 | freebsd* | dragonfly*)
11044    esac
11045    ;;
11046  
10734 gnu*)
10735  version_type=linux
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  shlibpath_var=LD_LIBRARY_PATH
10741  hardcode_into_libs=yes
10742  ;;
10743
11047   haiku*)
11048 <  version_type=linux
11048 >  version_type=linux # correct to gnu/linux during the next big refactor
11049    need_lib_prefix=no
11050    need_version=no
11051    dynamic_linker="$host_os runtime_loader"
11052 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11053 <  soname_spec='${libname}${release}${shared_ext}$major'
11052 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 >  soname_spec='$libname$release$shared_ext$major'
11054    shlibpath_var=LIBRARY_PATH
11055 <  shlibpath_overrides_runpath=yes
11055 >  shlibpath_overrides_runpath=no
11056    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11057    hardcode_into_libs=yes
11058    ;;
# Line 10767 | Line 11070 | hpux9* | hpux10* | hpux11*)
11070      dynamic_linker="$host_os dld.so"
11071      shlibpath_var=LD_LIBRARY_PATH
11072      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11073 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 <    soname_spec='${libname}${release}${shared_ext}$major'
11075 <    if test "X$HPUX_IA64_MODE" = X32; then
11073 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11074 >    soname_spec='$libname$release$shared_ext$major'
11075 >    if test 32 = "$HPUX_IA64_MODE"; then
11076        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11077      else
11078        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
# Line 10782 | Line 11085 | hpux9* | hpux10* | hpux11*)
11085      dynamic_linker="$host_os dld.sl"
11086      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11087      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11088 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 <    soname_spec='${libname}${release}${shared_ext}$major'
11088 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 >    soname_spec='$libname$release$shared_ext$major'
11090      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11091      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092      ;;
# Line 10792 | Line 11095 | hpux9* | hpux10* | hpux11*)
11095      dynamic_linker="$host_os dld.sl"
11096      shlibpath_var=SHLIB_PATH
11097      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11098 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 <    soname_spec='${libname}${release}${shared_ext}$major'
11098 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 >    soname_spec='$libname$release$shared_ext$major'
11100      ;;
11101    esac
11102    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10803 | Line 11106 | hpux9* | hpux10* | hpux11*)
11106    ;;
11107  
11108   interix[3-9]*)
11109 <  version_type=linux
11109 >  version_type=linux # correct to gnu/linux during the next big refactor
11110    need_lib_prefix=no
11111    need_version=no
11112 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11113 <  soname_spec='${libname}${release}${shared_ext}$major'
11112 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 >  soname_spec='$libname$release$shared_ext$major'
11114    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11115    shlibpath_var=LD_LIBRARY_PATH
11116    shlibpath_overrides_runpath=no
# Line 10818 | Line 11121 | irix5* | irix6* | nonstopux*)
11121    case $host_os in
11122      nonstopux*) version_type=nonstopux ;;
11123      *)
11124 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11125 <                version_type=linux
11124 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11125 >                version_type=linux # correct to gnu/linux during the next big refactor
11126          else
11127                  version_type=irix
11128          fi ;;
11129    esac
11130    need_lib_prefix=no
11131    need_version=no
11132 <  soname_spec='${libname}${release}${shared_ext}$major'
11133 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11132 >  soname_spec='$libname$release$shared_ext$major'
11133 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11134    case $host_os in
11135    irix5* | nonstopux*)
11136      libsuff= shlibsuff=
# Line 10846 | Line 11149 | irix5* | irix6* | nonstopux*)
11149    esac
11150    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11151    shlibpath_overrides_runpath=no
11152 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11153 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11152 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11153 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11154    hardcode_into_libs=yes
11155    ;;
11156  
# Line 10856 | Line 11159 | linux*oldld* | linux*aout* | linux*coff*
11159    dynamic_linker=no
11160    ;;
11161  
11162 < # This must be Linux ELF.
11163 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11164 <  version_type=linux
11162 > linux*android*)
11163 >  version_type=none # Android doesn't support versioned libraries.
11164 >  need_lib_prefix=no
11165 >  need_version=no
11166 >  library_names_spec='$libname$release$shared_ext'
11167 >  soname_spec='$libname$release$shared_ext'
11168 >  finish_cmds=
11169 >  shlibpath_var=LD_LIBRARY_PATH
11170 >  shlibpath_overrides_runpath=yes
11171 >
11172 >  # This implies no fast_install, which is unacceptable.
11173 >  # Some rework will be needed to allow for fast_install
11174 >  # before this can be enabled.
11175 >  hardcode_into_libs=yes
11176 >
11177 >  dynamic_linker='Android linker'
11178 >  # Don't embed -rpath directories since the linker doesn't support them.
11179 >  hardcode_libdir_flag_spec='-L$libdir'
11180 >  ;;
11181 >
11182 > # This must be glibc/ELF.
11183 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11184 >  version_type=linux # correct to gnu/linux during the next big refactor
11185    need_lib_prefix=no
11186    need_version=no
11187 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 <  soname_spec='${libname}${release}${shared_ext}$major'
11187 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 >  soname_spec='$libname$release$shared_ext$major'
11189    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11190    shlibpath_var=LD_LIBRARY_PATH
11191    shlibpath_overrides_runpath=no
# Line 10926 | Line 11249 | netbsd*)
11249    need_lib_prefix=no
11250    need_version=no
11251    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11252 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11253      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11254      dynamic_linker='NetBSD (a.out) ld.so'
11255    else
11256 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11257 <    soname_spec='${libname}${release}${shared_ext}$major'
11256 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11257 >    soname_spec='$libname$release$shared_ext$major'
11258      dynamic_linker='NetBSD ld.elf_so'
11259    fi
11260    shlibpath_var=LD_LIBRARY_PATH
# Line 10940 | Line 11263 | netbsd*)
11263    ;;
11264  
11265   newsos6)
11266 <  version_type=linux
11267 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 >  version_type=linux # correct to gnu/linux during the next big refactor
11267 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268    shlibpath_var=LD_LIBRARY_PATH
11269    shlibpath_overrides_runpath=yes
11270    ;;
# Line 10950 | Line 11273 | newsos6)
11273    version_type=qnx
11274    need_lib_prefix=no
11275    need_version=no
11276 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277 <  soname_spec='${libname}${release}${shared_ext}$major'
11276 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 >  soname_spec='$libname$release$shared_ext$major'
11278    shlibpath_var=LD_LIBRARY_PATH
11279    shlibpath_overrides_runpath=no
11280    hardcode_into_libs=yes
11281    dynamic_linker='ldqnx.so'
11282    ;;
11283  
11284 < openbsd*)
11284 > openbsd* | bitrig*)
11285    version_type=sunos
11286 <  sys_lib_dlsearch_path_spec="/usr/lib"
11286 >  sys_lib_dlsearch_path_spec=/usr/lib
11287    need_lib_prefix=no
11288 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11289 <  case $host_os in
10967 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10968 <    *)                          need_version=no  ;;
10969 <  esac
10970 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10972 <  shlibpath_var=LD_LIBRARY_PATH
10973 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10974 <    case $host_os in
10975 <      openbsd2.[89] | openbsd2.[89].*)
10976 <        shlibpath_overrides_runpath=no
10977 <        ;;
10978 <      *)
10979 <        shlibpath_overrides_runpath=yes
10980 <        ;;
10981 <      esac
11288 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11289 >    need_version=no
11290    else
11291 <    shlibpath_overrides_runpath=yes
11291 >    need_version=yes
11292    fi
11293 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11294 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11295 +  shlibpath_var=LD_LIBRARY_PATH
11296 +  shlibpath_overrides_runpath=yes
11297    ;;
11298  
11299   os2*)
11300    libname_spec='$name'
11301 <  shrext_cmds=".dll"
11301 >  shrext_cmds=.dll
11302    need_lib_prefix=no
11303 <  library_names_spec='$libname${shared_ext} $libname.a'
11303 >  library_names_spec='$libname$shared_ext $libname.a'
11304    dynamic_linker='OS/2 ld.exe'
11305    shlibpath_var=LIBPATH
11306    ;;
# Line 10997 | Line 11309 | osf3* | osf4* | osf5*)
11309    version_type=osf
11310    need_lib_prefix=no
11311    need_version=no
11312 <  soname_spec='${libname}${release}${shared_ext}$major'
11313 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 >  soname_spec='$libname$release$shared_ext$major'
11313 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314    shlibpath_var=LD_LIBRARY_PATH
11315    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11316 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11316 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11317    ;;
11318  
11319   rdos*)
# Line 11009 | Line 11321 | rdos*)
11321    ;;
11322  
11323   solaris*)
11324 <  version_type=linux
11324 >  version_type=linux # correct to gnu/linux during the next big refactor
11325    need_lib_prefix=no
11326    need_version=no
11327 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 <  soname_spec='${libname}${release}${shared_ext}$major'
11327 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328 >  soname_spec='$libname$release$shared_ext$major'
11329    shlibpath_var=LD_LIBRARY_PATH
11330    shlibpath_overrides_runpath=yes
11331    hardcode_into_libs=yes
# Line 11023 | Line 11335 | solaris*)
11335  
11336   sunos4*)
11337    version_type=sunos
11338 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11338 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11339    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11340    shlibpath_var=LD_LIBRARY_PATH
11341    shlibpath_overrides_runpath=yes
11342 <  if test "$with_gnu_ld" = yes; then
11342 >  if test yes = "$with_gnu_ld"; then
11343      need_lib_prefix=no
11344    fi
11345    need_version=yes
11346    ;;
11347  
11348   sysv4 | sysv4.3*)
11349 <  version_type=linux
11350 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 <  soname_spec='${libname}${release}${shared_ext}$major'
11349 >  version_type=linux # correct to gnu/linux during the next big refactor
11350 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351 >  soname_spec='$libname$release$shared_ext$major'
11352    shlibpath_var=LD_LIBRARY_PATH
11353    case $host_vendor in
11354      sni)
# Line 11057 | Line 11369 | sysv4 | sysv4.3*)
11369    ;;
11370  
11371   sysv4*MP*)
11372 <  if test -d /usr/nec ;then
11373 <    version_type=linux
11374 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11375 <    soname_spec='$libname${shared_ext}.$major'
11372 >  if test -d /usr/nec; then
11373 >    version_type=linux # correct to gnu/linux during the next big refactor
11374 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11375 >    soname_spec='$libname$shared_ext.$major'
11376      shlibpath_var=LD_LIBRARY_PATH
11377    fi
11378    ;;
# Line 11069 | Line 11381 | sysv5* | sco3.2v5* | sco5v6* | unixware*
11381    version_type=freebsd-elf
11382    need_lib_prefix=no
11383    need_version=no
11384 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11385 <  soname_spec='${libname}${release}${shared_ext}$major'
11384 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11385 >  soname_spec='$libname$release$shared_ext$major'
11386    shlibpath_var=LD_LIBRARY_PATH
11387    shlibpath_overrides_runpath=yes
11388    hardcode_into_libs=yes
11389 <  if test "$with_gnu_ld" = yes; then
11389 >  if test yes = "$with_gnu_ld"; then
11390      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11391    else
11392      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11089 | Line 11401 | sysv5* | sco3.2v5* | sco5v6* | unixware*
11401  
11402   tpf*)
11403    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11404 <  version_type=linux
11404 >  version_type=linux # correct to gnu/linux during the next big refactor
11405    need_lib_prefix=no
11406    need_version=no
11407 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408    shlibpath_var=LD_LIBRARY_PATH
11409    shlibpath_overrides_runpath=no
11410    hardcode_into_libs=yes
11411    ;;
11412  
11413   uts4*)
11414 <  version_type=linux
11415 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416 <  soname_spec='${libname}${release}${shared_ext}$major'
11414 >  version_type=linux # correct to gnu/linux during the next big refactor
11415 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416 >  soname_spec='$libname$release$shared_ext$major'
11417    shlibpath_var=LD_LIBRARY_PATH
11418    ;;
11419  
# Line 11111 | Line 11423 | uts4*)
11423   esac
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11425   $as_echo "$dynamic_linker" >&6; }
11426 < test "$dynamic_linker" = no && can_build_shared=no
11426 > test no = "$dynamic_linker" && can_build_shared=no
11427  
11428   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11429 < if test "$GCC" = yes; then
11429 > if test yes = "$GCC"; then
11430    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11431   fi
11432  
11433 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11434 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11433 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11434 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11435   fi
11436 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11437 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11436 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11437 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11438   fi
11439  
11440  
# Line 11221 | Line 11533 | $as_echo_n "checking how to hardcode lib
11533   hardcode_action=
11534   if test -n "$hardcode_libdir_flag_spec" ||
11535     test -n "$runpath_var" ||
11536 <   test "X$hardcode_automatic" = "Xyes" ; then
11536 >   test yes = "$hardcode_automatic"; then
11537  
11538    # We can hardcode non-existent directories.
11539 <  if test "$hardcode_direct" != no &&
11539 >  if test no != "$hardcode_direct" &&
11540       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11541       # have to relink, otherwise we might link with an installed library
11542       # when we should be linking with a yet-to-be-installed one
11543 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11544 <     test "$hardcode_minus_L" != no; then
11543 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11544 >     test no != "$hardcode_minus_L"; then
11545      # Linking always hardcodes the temporary library directory.
11546      hardcode_action=relink
11547    else
# Line 11244 | Line 11556 | fi
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11557   $as_echo "$hardcode_action" >&6; }
11558  
11559 < if test "$hardcode_action" = relink ||
11560 <   test "$inherit_rpath" = yes; then
11559 > if test relink = "$hardcode_action" ||
11560 >   test yes = "$inherit_rpath"; then
11561    # Fast installation is not supported
11562    enable_fast_install=no
11563 < elif test "$shlibpath_overrides_runpath" = yes ||
11564 <     test "$enable_shared" = no; then
11563 > elif test yes = "$shlibpath_overrides_runpath" ||
11564 >     test no = "$enable_shared"; then
11565    # Fast installation is not necessary
11566    enable_fast_install=needless
11567   fi
# Line 11259 | Line 11571 | fi
11571  
11572  
11573  
11574 <  if test "x$enable_dlopen" != xyes; then
11574 >  if test yes != "$enable_dlopen"; then
11575    enable_dlopen=unknown
11576    enable_dlopen_self=unknown
11577    enable_dlopen_self_static=unknown
# Line 11269 | Line 11581 | else
11581  
11582    case $host_os in
11583    beos*)
11584 <    lt_cv_dlopen="load_add_on"
11584 >    lt_cv_dlopen=load_add_on
11585      lt_cv_dlopen_libs=
11586      lt_cv_dlopen_self=yes
11587      ;;
11588  
11589    mingw* | pw32* | cegcc*)
11590 <    lt_cv_dlopen="LoadLibrary"
11590 >    lt_cv_dlopen=LoadLibrary
11591      lt_cv_dlopen_libs=
11592      ;;
11593  
11594    cygwin*)
11595 <    lt_cv_dlopen="dlopen"
11595 >    lt_cv_dlopen=dlopen
11596      lt_cv_dlopen_libs=
11597      ;;
11598  
11599    darwin*)
11600 <  # if libdl is installed we need to link against it
11600 >    # if libdl is installed we need to link against it
11601      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11602   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11603   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11323 | Line 11635 | fi
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11636   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11637   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11638 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11638 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11639   else
11640  
11641 <    lt_cv_dlopen="dyld"
11641 >    lt_cv_dlopen=dyld
11642      lt_cv_dlopen_libs=
11643      lt_cv_dlopen_self=yes
11644  
# Line 11334 | Line 11646 | fi
11646  
11647      ;;
11648  
11649 +  tpf*)
11650 +    # Don't try to run any link tests for TPF.  We know it's impossible
11651 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11652 +    lt_cv_dlopen=dlopen
11653 +    lt_cv_dlopen_libs=
11654 +    lt_cv_dlopen_self=no
11655 +    ;;
11656 +
11657    *)
11658      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11659   if test "x$ac_cv_func_shl_load" = xyes; then :
11660 <  lt_cv_dlopen="shl_load"
11660 >  lt_cv_dlopen=shl_load
11661   else
11662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11663   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11376 | Line 11696 | fi
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11697   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11698   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11699 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11699 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11700   else
11701    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11702   if test "x$ac_cv_func_dlopen" = xyes; then :
11703 <  lt_cv_dlopen="dlopen"
11703 >  lt_cv_dlopen=dlopen
11704   else
11705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11706   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11419 | Line 11739 | fi
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11740   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11741   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11742 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11742 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11743   else
11744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11745   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11458 | Line 11778 | fi
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11779   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11780   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11781 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11781 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11782   else
11783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11784   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11497 | Line 11817 | fi
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11818   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11819   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11820 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11820 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11821   fi
11822  
11823  
# Line 11518 | Line 11838 | fi
11838      ;;
11839    esac
11840  
11841 <  if test "x$lt_cv_dlopen" != xno; then
11522 <    enable_dlopen=yes
11523 <  else
11841 >  if test no = "$lt_cv_dlopen"; then
11842      enable_dlopen=no
11843 +  else
11844 +    enable_dlopen=yes
11845    fi
11846  
11847    case $lt_cv_dlopen in
11848    dlopen)
11849 <    save_CPPFLAGS="$CPPFLAGS"
11850 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11849 >    save_CPPFLAGS=$CPPFLAGS
11850 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11851  
11852 <    save_LDFLAGS="$LDFLAGS"
11852 >    save_LDFLAGS=$LDFLAGS
11853      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11854  
11855 <    save_LIBS="$LIBS"
11855 >    save_LIBS=$LIBS
11856      LIBS="$lt_cv_dlopen_libs $LIBS"
11857  
11858      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11540 | Line 11860 | $as_echo_n "checking whether a program c
11860   if ${lt_cv_dlopen_self+:} false; then :
11861    $as_echo_n "(cached) " >&6
11862   else
11863 <          if test "$cross_compiling" = yes; then :
11863 >          if test yes = "$cross_compiling"; then :
11864    lt_cv_dlopen_self=cross
11865   else
11866    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11589 | Line 11909 | else
11909  
11910   /* When -fvisbility=hidden is used, assume the code has been annotated
11911     correspondingly for the symbols needed.  */
11912 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11912 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11913   int fnord () __attribute__((visibility("default")));
11914   #endif
11915  
# Line 11619 | Line 11939 | _LT_EOF
11939    (eval $ac_link) 2>&5
11940    ac_status=$?
11941    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11942 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11942 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11943      (./conftest; exit; ) >&5 2>/dev/null
11944      lt_status=$?
11945      case x$lt_status in
# Line 11639 | Line 11959 | fi
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11960   $as_echo "$lt_cv_dlopen_self" >&6; }
11961  
11962 <    if test "x$lt_cv_dlopen_self" = xyes; then
11962 >    if test yes = "$lt_cv_dlopen_self"; then
11963        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11965   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11966   if ${lt_cv_dlopen_self_static+:} false; then :
11967    $as_echo_n "(cached) " >&6
11968   else
11969 <          if test "$cross_compiling" = yes; then :
11969 >          if test yes = "$cross_compiling"; then :
11970    lt_cv_dlopen_self_static=cross
11971   else
11972    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11695 | Line 12015 | else
12015  
12016   /* When -fvisbility=hidden is used, assume the code has been annotated
12017     correspondingly for the symbols needed.  */
12018 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12018 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019   int fnord () __attribute__((visibility("default")));
12020   #endif
12021  
# Line 11725 | Line 12045 | _LT_EOF
12045    (eval $ac_link) 2>&5
12046    ac_status=$?
12047    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12048 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12049      (./conftest; exit; ) >&5 2>/dev/null
12050      lt_status=$?
12051      case x$lt_status in
# Line 11746 | Line 12066 | fi
12066   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12067      fi
12068  
12069 <    CPPFLAGS="$save_CPPFLAGS"
12070 <    LDFLAGS="$save_LDFLAGS"
12071 <    LIBS="$save_LIBS"
12069 >    CPPFLAGS=$save_CPPFLAGS
12070 >    LDFLAGS=$save_LDFLAGS
12071 >    LIBS=$save_LIBS
12072      ;;
12073    esac
12074  
# Line 11792 | Line 12112 | else
12112   # FIXME - insert some real tests, host_os isn't really good enough
12113    case $host_os in
12114    darwin*)
12115 <    if test -n "$STRIP" ; then
12115 >    if test -n "$STRIP"; then
12116        striplib="$STRIP -x"
12117        old_striplib="$STRIP -S"
12118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11820 | Line 12140 | fi
12140  
12141  
12142  
12143 <  # Report which library types will actually be built
12143 >  # Report what library types will actually be built
12144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12145   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11828 | Line 12148 | $as_echo "$can_build_shared" >&6; }
12148  
12149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12150   $as_echo_n "checking whether to build shared libraries... " >&6; }
12151 <  test "$can_build_shared" = "no" && enable_shared=no
12151 >  test no = "$can_build_shared" && enable_shared=no
12152  
12153    # On AIX, shared libraries and static libraries use the same namespace, and
12154    # are all built from PIC.
12155    case $host_os in
12156    aix3*)
12157 <    test "$enable_shared" = yes && enable_static=no
12157 >    test yes = "$enable_shared" && enable_static=no
12158      if test -n "$RANLIB"; then
12159        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12160        postinstall_cmds='$RANLIB $lib'
# Line 11842 | Line 12162 | $as_echo_n "checking whether to build sh
12162      ;;
12163  
12164    aix[4-9]*)
12165 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12166 <      test "$enable_shared" = yes && enable_static=no
12165 >    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
12166 >      test yes = "$enable_shared" && enable_static=no
12167      fi
12168      ;;
12169    esac
# Line 11853 | Line 12173 | $as_echo "$enable_shared" >&6; }
12173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12174   $as_echo_n "checking whether to build static libraries... " >&6; }
12175    # Make sure either enable_shared or enable_static is yes.
12176 <  test "$enable_shared" = yes || enable_static=yes
12176 >  test yes = "$enable_shared" || enable_static=yes
12177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12178   $as_echo "$enable_static" >&6; }
12179  
# Line 11867 | Line 12187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12187   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12189  
12190 < CC="$lt_save_CC"
12190 > CC=$lt_save_CC
12191 >
12192 >
12193  
12194  
12195  
# Line 11889 | Line 12211 | CC="$lt_save_CC"
12211   # Only expand once:
12212  
12213  
12214 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12215 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12214 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12215 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12216   if ${libltdl_cv_shlibext+:} false; then :
12217    $as_echo_n "(cached) " >&6
12218   else
12219  
12220   module=yes
12221   eval libltdl_cv_shlibext=$shrext_cmds
12222 + module=no
12223 + eval libltdl_cv_shrext=$shrext_cmds
12224  
12225   fi
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
# Line 11908 | Line 12232 | cat >>confdefs.h <<_ACEOF
12232   _ACEOF
12233  
12234   fi
12235 + if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12236 +
12237 + cat >>confdefs.h <<_ACEOF
12238 + #define LT_SHARED_EXT "$libltdl_cv_shrext"
12239 + _ACEOF
12240 +
12241 + fi
12242  
12243 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12244 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12243 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12244 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12245   if ${lt_cv_module_path_var+:} false; then :
12246    $as_echo_n "(cached) " >&6
12247   else
12248 <  lt_cv_module_path_var="$shlibpath_var"
12248 >  lt_cv_module_path_var=$shlibpath_var
12249   fi
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12251   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 11931 | Line 12262 | $as_echo_n "checking for the default lib
12262   if ${lt_cv_sys_dlsearch_path+:} false; then :
12263    $as_echo_n "(cached) " >&6
12264   else
12265 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12265 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12266   fi
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12268   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 11939 | Line 12270 | if test -n "$lt_cv_sys_dlsearch_path"; t
12270    sys_dlsearch_path=
12271    for dir in $lt_cv_sys_dlsearch_path; do
12272      if test -z "$sys_dlsearch_path"; then
12273 <      sys_dlsearch_path="$dir"
12273 >      sys_dlsearch_path=$dir
12274      else
12275 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12275 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12276      fi
12277    done
12278  
# Line 12019 | Line 12350 | if test "$ac_res" != no; then :
12350  
12351   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12352  
12353 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12354 <          LIBADD_DLOPEN="-ldl"
12353 >        if test "$ac_cv_search_dlopen" != "none required"; then
12354 >          LIBADD_DLOPEN=-ldl
12355          fi
12356 <        libltdl_cv_lib_dl_dlopen="yes"
12356 >        libltdl_cv_lib_dl_dlopen=yes
12357          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12358   else
12359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12043 | Line 12374 | if ac_fn_c_try_link "$LINENO"; then :
12374  
12375   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12376  
12377 <            libltdl_cv_func_dlopen="yes"
12377 >            libltdl_cv_func_dlopen=yes
12378              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12379   else
12380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12086 | Line 12417 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12417  
12418   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12419  
12420 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12420 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12421                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12422   fi
12423  
# Line 12095 | Line 12426 | rm -f core conftest.err conftest.$ac_obj
12426      conftest$ac_exeext conftest.$ac_ext
12427   fi
12428  
12429 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12429 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12430   then
12431 <  lt_save_LIBS="$LIBS"
12431 >  lt_save_LIBS=$LIBS
12432    LIBS="$LIBS $LIBADD_DLOPEN"
12433    for ac_func in dlerror
12434   do :
# Line 12110 | Line 12441 | _ACEOF
12441   fi
12442   done
12443  
12444 <  LIBS="$lt_save_LIBS"
12444 >  LIBS=$lt_save_LIBS
12445   fi
12446  
12447  
# Line 12163 | Line 12494 | if test "x$ac_cv_lib_dld_shl_load" = xye
12494   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12495  
12496              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12497 <            LIBADD_SHL_LOAD="-ldld"
12497 >            LIBADD_SHL_LOAD=-ldld
12498   fi
12499  
12500   fi
# Line 12317 | Line 12648 | $as_echo "$lt_cv_sys_symbol_underscore"
12648    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12649  
12650  
12651 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12652 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12653 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12651 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12652 >  if test yes = "$libltdl_cv_func_dlopen" ||
12653 >     test yes = "$libltdl_cv_lib_dl_dlopen"; then
12654          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12655   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12656   if ${libltdl_cv_need_uscore+:} false; then :
12657    $as_echo_n "(cached) " >&6
12658   else
12659    libltdl_cv_need_uscore=unknown
12660 <          save_LIBS="$LIBS"
12660 >          save_LIBS=$LIBS
12661            LIBS="$LIBS $LIBADD_DLOPEN"
12662 <          if test "$cross_compiling" = yes; then :
12662 >          if test yes = "$cross_compiling"; then :
12663    libltdl_cv_need_uscore=cross
12664   else
12665    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 12377 | Line 12708 | else
12708  
12709   /* When -fvisbility=hidden is used, assume the code has been annotated
12710     correspondingly for the symbols needed.  */
12711 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12711 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12712   int fnord () __attribute__((visibility("default")));
12713   #endif
12714  
# Line 12407 | Line 12738 | _LT_EOF
12738    (eval $ac_link) 2>&5
12739    ac_status=$?
12740    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12741 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12742      (./conftest; exit; ) >&5 2>/dev/null
12743      lt_status=$?
12744      case x$lt_status in
# Line 12422 | Line 12753 | _LT_EOF
12753   fi
12754   rm -fr conftest*
12755  
12756 <          LIBS="$save_LIBS"
12756 >          LIBS=$save_LIBS
12757  
12758   fi
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12430 | Line 12761 | $as_echo "$libltdl_cv_need_uscore" >&6;
12761    fi
12762   fi
12763  
12764 < if test x"$libltdl_cv_need_uscore" = xyes; then
12764 > if test yes = "$libltdl_cv_need_uscore"; then
12765  
12766   $as_echo "#define NEED_USCORE 1" >>confdefs.h
12767  
# Line 12449 | Line 12780 | else
12780    case $host_os in
12781    aix3*|aix4.1.*|aix4.2.*)
12782      # Unknown whether this is true for these versions of AIX, but
12783 <    # we want this `case' here to explicitly catch those versions.
12783 >    # we want this 'case' here to explicitly catch those versions.
12784      lt_cv_sys_dlopen_deplibs=unknown
12785      ;;
12786    aix[4-9]*)
# Line 12462 | Line 12793 | else
12793        ;;
12794      esac
12795      ;;
12796 +  bitrig*)
12797 +    lt_cv_sys_dlopen_deplibs=yes
12798 +    ;;
12799    darwin*)
12800      # Assuming the user has installed a libdl from somewhere, this is true
12801      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12499 | Line 12833 | else
12833    osf[1234]*)
12834      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12835      # it did *not* use an RPATH in a shared library to find objects the
12836 <    # library depends on, so we explicitly say `no'.
12836 >    # library depends on, so we explicitly say 'no'.
12837      lt_cv_sys_dlopen_deplibs=no
12838      ;;
12839    osf5.0|osf5.0a|osf5.1)
# Line 12508 | Line 12842 | else
12842      # that the library depends on, but there's no easy way to know if that
12843      # patch is installed.  Since this is the case, all we can really
12844      # say is unknown -- it depends on the patch being installed.  If
12845 <    # it is, this changes to `yes'.  Without it, it would be `no'.
12845 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
12846      lt_cv_sys_dlopen_deplibs=unknown
12847      ;;
12848    osf*)
12849      # the two cases above should catch all versions of osf <= 5.1.  Read
12850      # the comments above for what we know about them.
12851      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12852 <    # is used to find them so we can finally say `yes'.
12852 >    # is used to find them so we can finally say 'yes'.
12853      lt_cv_sys_dlopen_deplibs=yes
12854      ;;
12855    qnx*)
# Line 12532 | Line 12866 | else
12866   fi
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12868   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12869 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12869 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
12870  
12871   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12872  
# Line 12604 | Line 12938 | else
12938    case $host_os in #(
12939           *cygwin*)
12940             lt_cv_sys_argz_works=no
12941 <           if test "$cross_compiling" != no; then
12941 >           if test no != "$cross_compiling"; then
12942               lt_cv_sys_argz_works="guessing no"
12943             else
12944               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12615 | Line 12949 | else
12949               lt_os_major=${2-0}
12950               lt_os_minor=${3-0}
12951               lt_os_micro=${4-0}
12952 <             if test "$lt_os_major" -gt 1 \
12953 <                || { test "$lt_os_major" -eq 1 \
12954 <                  && { test "$lt_os_minor" -gt 5 \
12955 <                    || { test "$lt_os_minor" -eq 5 \
12956 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
12952 >             if test 1 -lt "$lt_os_major" \
12953 >                || { test 1 -eq "$lt_os_major" \
12954 >                  && { test 5 -lt "$lt_os_minor" \
12955 >                    || { test 5 -eq "$lt_os_minor" \
12956 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
12957                 lt_cv_sys_argz_works=yes
12958               fi
12959             fi
# Line 12629 | Line 12963 | else
12963   fi
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12965   $as_echo "$lt_cv_sys_argz_works" >&6; }
12966 <     if test "$lt_cv_sys_argz_works" = yes; then :
12966 >     if test yes = "$lt_cv_sys_argz_works"; then :
12967  
12968   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12969  
# Line 12658 | Line 12992 | else
12992   fi
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12994   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12995 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12995 > if test yes = "$libltdl_cv_preloaded_symbols"; then
12996  
12997   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12998  
# Line 12682 | Line 13016 | if test "${with_included_ltdl+set}" = se
13016   fi
13017  
13018  
13019 < if test "x$with_included_ltdl" != xyes; then
13019 > if test yes != "$with_included_ltdl"; then
13020    # We are not being forced to use the included libltdl sources, so
13021    # decide whether there is a useful installed version we can use.
13022    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12758 | Line 13092 | fi
13092   if test -n "$with_ltdl_include"; then
13093    if test -f "$with_ltdl_include/ltdl.h"; then :
13094    else
13095 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13095 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13096    fi
13097   else
13098    with_ltdl_include=no
# Line 12774 | Line 13108 | fi
13108   if test -n "$with_ltdl_lib"; then
13109    if test -f "$with_ltdl_lib/libltdl.la"; then :
13110    else
13111 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13111 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13112    fi
13113   else
13114    with_ltdl_lib=no
# Line 12787 | Line 13121 | case ,$with_included_ltdl,$with_ltdl_inc
13121    "") enable_ltdl_convenience=yes
13122        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13123   esac
13124 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13124 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13125   LTDLDEPS=$LIBLTDL
13126 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13126 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13127  
13128  
13129  
13130  
13131  
13132   # For backwards non-gettext consistent compatibility...
13133 < INCLTDL="$LTDLINCL"
13133 > INCLTDL=$LTDLINCL
13134  
13135  
13136          ;;
# Line 12811 | Line 13145 | $as_echo "#define HAVE_LTDL 1" >>confdef
13145          LTDLINCL=
13146          ;;
13147    ,no*,no,*)
13148 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13148 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13149          ;;
13150    *)    with_included_ltdl=no
13151          LIBLTDL="-L$with_ltdl_lib -lltdl"
13152          LTDLDEPS=
13153 <        LTDLINCL="-I$with_ltdl_include"
13153 >        LTDLINCL=-I$with_ltdl_include
13154          ;;
13155   esac
13156 < INCLTDL="$LTDLINCL"
13156 > INCLTDL=$LTDLINCL
13157  
13158   # Report our decision...
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12839 | Line 13173 | if test "${enable_ltdl_install+set}" = s
13173   fi
13174  
13175  
13176 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13176 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13177    *yes*) ;;
13178    *) enable_ltdl_convenience=yes ;;
13179   esac
13180  
13181 < if test x"${enable_ltdl_install-no}" != xno; then
13181 > if test no != "${enable_ltdl_install-no}"; then
13182    INSTALL_LTDL_TRUE=
13183    INSTALL_LTDL_FALSE='#'
13184   else
# Line 12852 | Line 13186 | else
13186    INSTALL_LTDL_FALSE=
13187   fi
13188  
13189 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13189 >  if test no != "${enable_ltdl_convenience-no}"; then
13190    CONVENIENCE_LTDL_TRUE=
13191    CONVENIENCE_LTDL_FALSE='#'
13192   else
# Line 12954 | Line 13288 | LIBTOOL="$LIBTOOL --silent"
13288  
13289   # Checks for libraries.
13290  
13291 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13292 < $as_echo_n "checking for library containing socket... " >&6; }
13293 < if ${ac_cv_search_socket+:} false; then :
13291 >
13292 >  if test "X$CC" != "X"; then
13293 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13294 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13295 > if ${ssp_cv_cc+:} false; then :
13296 >  $as_echo_n "(cached) " >&6
13297 > else
13298 >  ssp_old_cflags="$CFLAGS"
13299 >       CFLAGS="$CFLAGS -fstack-protector"
13300 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 > /* end confdefs.h.  */
13302 >
13303 > int
13304 > main ()
13305 > {
13306 >
13307 >  ;
13308 >  return 0;
13309 > }
13310 > _ACEOF
13311 > if ac_fn_c_try_compile "$LINENO"; then :
13312 >  ssp_cv_cc=yes
13313 > else
13314 >  ssp_cv_cc=no
13315 > fi
13316 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 >       CFLAGS="$ssp_old_cflags"
13318 >
13319 > fi
13320 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13321 > $as_echo "$ssp_cv_cc" >&6; }
13322 >    if test $ssp_cv_cc = yes; then
13323 >      CFLAGS="$CFLAGS -fstack-protector"
13324 >
13325 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13326 >
13327 >    fi
13328 >  fi
13329 >
13330 >
13331 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13332 > $as_echo_n "checking whether libssp exists... " >&6; }
13333 > if ${ssp_cv_lib+:} false; then :
13334 >  $as_echo_n "(cached) " >&6
13335 > else
13336 >  ssp_old_libs="$LIBS"
13337 >     LIBS="$LIBS -lssp"
13338 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 > /* end confdefs.h.  */
13340 >
13341 > int
13342 > main ()
13343 > {
13344 >
13345 >  ;
13346 >  return 0;
13347 > }
13348 > _ACEOF
13349 > if ac_fn_c_try_link "$LINENO"; then :
13350 >  ssp_cv_lib=yes
13351 > else
13352 >  ssp_cv_lib=no
13353 > fi
13354 > rm -f core conftest.err conftest.$ac_objext \
13355 >    conftest$ac_exeext conftest.$ac_ext
13356 >     LIBS="$ssp_old_libs"
13357 >
13358 > fi
13359 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13360 > $as_echo "$ssp_cv_lib" >&6; }
13361 >  if test $ssp_cv_lib = yes; then
13362 >    LIBS="$LIBS -lssp"
13363 >  fi
13364 >
13365 >
13366 >
13367 >
13368 >
13369 >
13370 > for flag in -fno-strict-aliasing; do
13371 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13372 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13373 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13374 > if eval \${$as_CACHEVAR+:} false; then :
13375 >  $as_echo_n "(cached) " >&6
13376 > else
13377 >
13378 >  ax_check_save_flags=$CFLAGS
13379 >  CFLAGS="$CFLAGS  $flag"
13380 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 > /* end confdefs.h.  */
13382 >
13383 > int
13384 > main ()
13385 > {
13386 >
13387 >  ;
13388 >  return 0;
13389 > }
13390 > _ACEOF
13391 > if ac_fn_c_try_compile "$LINENO"; then :
13392 >  eval "$as_CACHEVAR=yes"
13393 > else
13394 >  eval "$as_CACHEVAR=no"
13395 > fi
13396 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 >  CFLAGS=$ax_check_save_flags
13398 > fi
13399 > eval ac_res=\$$as_CACHEVAR
13400 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13401 > $as_echo "$ac_res" >&6; }
13402 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13403 >  if ${CFLAGS+:} false; then :
13404 >  case " $CFLAGS " in
13405 >    *" $flag "*)
13406 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13407 >  (: CFLAGS already contains $flag) 2>&5
13408 >  ac_status=$?
13409 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13410 >  test $ac_status = 0; }
13411 >      ;;
13412 >    *)
13413 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13414 >  (: CFLAGS="$CFLAGS $flag") 2>&5
13415 >  ac_status=$?
13416 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13417 >  test $ac_status = 0; }
13418 >      CFLAGS="$CFLAGS $flag"
13419 >      ;;
13420 >   esac
13421 > else
13422 >  CFLAGS="$flag"
13423 > fi
13424 >
13425 > else
13426 >  :
13427 > fi
13428 >
13429 > done
13430 >
13431 >
13432 >  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13433 > if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13434 >
13435 > else
13436 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13437 > $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13438 > if ${ac_cv_search_getaddrinfo+:} false; then :
13439    $as_echo_n "(cached) " >&6
13440   else
13441    ac_func_search_save_LIBS=$LIBS
# Line 12969 | Line 13448 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13448   #ifdef __cplusplus
13449   extern "C"
13450   #endif
13451 < char socket ();
13451 > char getaddrinfo ();
13452   int
13453   main ()
13454   {
13455 < return socket ();
13455 > return getaddrinfo ();
13456    ;
13457    return 0;
13458   }
13459   _ACEOF
13460 < for ac_lib in '' socket; do
13460 > for ac_lib in '' nsl; do
13461    if test -z "$ac_lib"; then
13462      ac_res="none required"
13463    else
# Line 12986 | Line 13465 | for ac_lib in '' socket; do
13465      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13466    fi
13467    if ac_fn_c_try_link "$LINENO"; then :
13468 <  ac_cv_search_socket=$ac_res
13468 >  ac_cv_search_getaddrinfo=$ac_res
13469   fi
13470   rm -f core conftest.err conftest.$ac_objext \
13471      conftest$ac_exeext
13472 <  if ${ac_cv_search_socket+:} false; then :
13472 >  if ${ac_cv_search_getaddrinfo+:} false; then :
13473    break
13474   fi
13475   done
13476 < if ${ac_cv_search_socket+:} false; then :
13476 > if ${ac_cv_search_getaddrinfo+:} false; then :
13477  
13478   else
13479 <  ac_cv_search_socket=no
13479 >  ac_cv_search_getaddrinfo=no
13480   fi
13481   rm conftest.$ac_ext
13482   LIBS=$ac_func_search_save_LIBS
13483   fi
13484 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13485 < $as_echo "$ac_cv_search_socket" >&6; }
13486 < ac_res=$ac_cv_search_socket
13484 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13485 > $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13486 > ac_res=$ac_cv_search_getaddrinfo
13487   if test "$ac_res" != no; then :
13488    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13489  
13011 else
13012  as_fn_error $? "socket library not found" "$LINENO" 5
13490   fi
13491  
13492 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13493 < $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13494 < if ${ac_cv_search_inet_ntoa+:} false; then :
13492 > fi
13493 >
13494 >  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13495 > if test "x$ac_cv_func_getnameinfo" = xyes; then :
13496 >
13497 > else
13498 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13499 > $as_echo_n "checking for library containing getnameinfo... " >&6; }
13500 > if ${ac_cv_search_getnameinfo+:} false; then :
13501    $as_echo_n "(cached) " >&6
13502   else
13503    ac_func_search_save_LIBS=$LIBS
# Line 13027 | Line 13510 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13510   #ifdef __cplusplus
13511   extern "C"
13512   #endif
13513 < char inet_ntoa ();
13513 > char getnameinfo ();
13514   int
13515   main ()
13516   {
13517 < return inet_ntoa ();
13517 > return getnameinfo ();
13518    ;
13519    return 0;
13520   }
# Line 13044 | Line 13527 | for ac_lib in '' nsl; do
13527      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13528    fi
13529    if ac_fn_c_try_link "$LINENO"; then :
13530 <  ac_cv_search_inet_ntoa=$ac_res
13530 >  ac_cv_search_getnameinfo=$ac_res
13531   fi
13532   rm -f core conftest.err conftest.$ac_objext \
13533      conftest$ac_exeext
13534 <  if ${ac_cv_search_inet_ntoa+:} false; then :
13534 >  if ${ac_cv_search_getnameinfo+:} false; then :
13535    break
13536   fi
13537   done
13538 < if ${ac_cv_search_inet_ntoa+:} false; then :
13538 > if ${ac_cv_search_getnameinfo+:} false; then :
13539  
13540   else
13541 <  ac_cv_search_inet_ntoa=no
13541 >  ac_cv_search_getnameinfo=no
13542   fi
13543   rm conftest.$ac_ext
13544   LIBS=$ac_func_search_save_LIBS
13545   fi
13546 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13547 < $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13548 < ac_res=$ac_cv_search_inet_ntoa
13546 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13547 > $as_echo "$ac_cv_search_getnameinfo" >&6; }
13548 > ac_res=$ac_cv_search_getnameinfo
13549   if test "$ac_res" != no; then :
13550    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13551  
13552   fi
13553  
13554 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13555 < $as_echo_n "checking for library containing inet_aton... " >&6; }
13556 < if ${ac_cv_search_inet_aton+:} false; then :
13554 > fi
13555 >
13556 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13557 > $as_echo_n "checking for library containing socket... " >&6; }
13558 > if ${ac_cv_search_socket+:} false; then :
13559    $as_echo_n "(cached) " >&6
13560   else
13561    ac_func_search_save_LIBS=$LIBS
# Line 13083 | Line 13568 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13568   #ifdef __cplusplus
13569   extern "C"
13570   #endif
13571 < char inet_aton ();
13571 > char socket ();
13572   int
13573   main ()
13574   {
13575 < return inet_aton ();
13575 > return socket ();
13576    ;
13577    return 0;
13578   }
13579   _ACEOF
13580 < for ac_lib in '' resolv; do
13580 > for ac_lib in '' socket; do
13581    if test -z "$ac_lib"; then
13582      ac_res="none required"
13583    else
# Line 13100 | Line 13585 | for ac_lib in '' resolv; do
13585      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13586    fi
13587    if ac_fn_c_try_link "$LINENO"; then :
13588 <  ac_cv_search_inet_aton=$ac_res
13588 >  ac_cv_search_socket=$ac_res
13589   fi
13590   rm -f core conftest.err conftest.$ac_objext \
13591      conftest$ac_exeext
13592 <  if ${ac_cv_search_inet_aton+:} false; then :
13592 >  if ${ac_cv_search_socket+:} false; then :
13593    break
13594   fi
13595   done
13596 < if ${ac_cv_search_inet_aton+:} false; then :
13596 > if ${ac_cv_search_socket+:} false; then :
13597  
13598   else
13599 <  ac_cv_search_inet_aton=no
13599 >  ac_cv_search_socket=no
13600   fi
13601   rm conftest.$ac_ext
13602   LIBS=$ac_func_search_save_LIBS
13603   fi
13604 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13605 < $as_echo "$ac_cv_search_inet_aton" >&6; }
13606 < ac_res=$ac_cv_search_inet_aton
13604 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13605 > $as_echo "$ac_cv_search_socket" >&6; }
13606 > ac_res=$ac_cv_search_socket
13607   if test "$ac_res" != no; then :
13608    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13609  
13610 < fi
13611 <
13127 <  for ac_func in inet_aton inet_ntop inet_pton
13128 < do :
13129 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13130 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13131 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13132 <  cat >>confdefs.h <<_ACEOF
13133 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13134 < _ACEOF
13135 <
13136 < fi
13137 < done
13138 <
13139 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13140 <   #include <sys/socket.h>
13141 <   #include <netdb.h>
13142 <
13143 < "
13144 < if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13145 <
13146 < cat >>confdefs.h <<_ACEOF
13147 < #define HAVE_STRUCT_SOCKADDR_IN 1
13148 < _ACEOF
13149 <
13150 <
13151 < fi
13152 < ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13153 <   #include <sys/socket.h>
13154 <   #include <netdb.h>
13155 <
13156 < "
13157 < if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13158 <
13159 < cat >>confdefs.h <<_ACEOF
13160 < #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13161 < _ACEOF
13162 <
13163 <
13164 < fi
13165 < ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13166 <   #include <sys/socket.h>
13167 <   #include <netdb.h>
13168 <
13169 < "
13170 < if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13171 <
13172 < cat >>confdefs.h <<_ACEOF
13173 < #define HAVE_STRUCT_ADDRINFO 1
13174 < _ACEOF
13175 <
13176 <
13177 < fi
13178 <
13179 <  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13180 <  <sys/socket.h>
13181 < "
13182 < if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13183 <
13184 < cat >>confdefs.h <<_ACEOF
13185 < #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13186 < _ACEOF
13187 <
13188 <
13189 < fi
13190 <
13191 <
13192 <
13193 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13194 < "
13195 < if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13196 <
13197 < $as_echo "#define IPV6 1" >>confdefs.h
13198 <
13610 > else
13611 >  as_fn_error $? "socket library not found" "$LINENO" 5
13612   fi
13613  
13614  
# Line 13452 | Line 13865 | done
13865  
13866  
13867  
13455
13456
13457
13458
13868   # Checks for header files.
13869  
13870  
# Line 13490 | Line 13899 | done
13899  
13900  
13901  
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503 # check for /dev/null so we can use it to hold evil fd's
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13505 $as_echo_n "checking for /dev/null... " >&6; }
13506 if test -c /dev/null; then :
13507
13508
13509 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13510
13511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512 $as_echo "yes" >&6; }
13513 else
13514
13515
13516 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13517
13518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13519 $as_echo "no - using devnull.log" >&6; }
13520 fi
13521
13522
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13903   $as_echo_n "checking for library containing crypt... " >&6; }
13904   if ${ac_cv_search_crypt+:} false; then :
# Line 13577 | Line 13956 | if test "$ac_res" != no; then :
13956   fi
13957  
13958  
13959 <
13960 <
13961 < # Check whether --with-zlib-path was given.
13962 < if test "${with_zlib_path+set}" = set; then :
13963 <  withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13964 < fi
13965 <
13966 <
13967 < # Check whether --enable-zlib was given.
13589 < if test "${enable_zlib+set}" = set; then :
13590 <  enableval=$enable_zlib; zlib=$enableval
13591 < else
13592 <  zlib=yes
13593 < fi
13594 <
13595 <
13596 < if test "$zlib" = "yes"; then :
13597 <
13598 <  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13599 < if test "x$ac_cv_header_zlib_h" = xyes; then :
13600 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13601 < $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13602 < if ${ac_cv_lib_z_zlibVersion+:} false; then :
13959 > # Check whether --enable-libgeoip was given.
13960 > if test "${enable_libgeoip+set}" = set; then :
13961 >  enableval=$enable_libgeoip;
13962 > else
13963 >  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13964 > if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13965 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13966 > $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13967 > if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13968    $as_echo_n "(cached) " >&6
13969   else
13970 <  ac_check_lib_save_LIBS=$LIBS
13606 < LIBS="-lz  $LIBS"
13970 >  ac_func_search_save_LIBS=$LIBS
13971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972   /* end confdefs.h.  */
13973  
# Line 13613 | Line 13977 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13977   #ifdef __cplusplus
13978   extern "C"
13979   #endif
13980 < char zlibVersion ();
13980 > char GeoIP_id_by_ipnum_v6_gl ();
13981   int
13982   main ()
13983   {
13984 < return zlibVersion ();
13984 > return GeoIP_id_by_ipnum_v6_gl ();
13985    ;
13986    return 0;
13987   }
13988   _ACEOF
13989 < if ac_fn_c_try_link "$LINENO"; then :
13990 <  ac_cv_lib_z_zlibVersion=yes
13991 < else
13992 <  ac_cv_lib_z_zlibVersion=no
13989 > for ac_lib in '' GeoIP; do
13990 >  if test -z "$ac_lib"; then
13991 >    ac_res="none required"
13992 >  else
13993 >    ac_res=-l$ac_lib
13994 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13995 >  fi
13996 >  if ac_fn_c_try_link "$LINENO"; then :
13997 >  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13998   fi
13999   rm -f core conftest.err conftest.$ac_objext \
14000 <    conftest$ac_exeext conftest.$ac_ext
14001 < LIBS=$ac_check_lib_save_LIBS
14000 >    conftest$ac_exeext
14001 >  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14002 >  break
14003 > fi
14004 > done
14005 > if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14006 >
14007 > else
14008 >  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14009   fi
14010 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
14011 < $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
14012 < if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
14010 > rm conftest.$ac_ext
14011 > LIBS=$ac_func_search_save_LIBS
14012 > fi
14013 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
14014 > $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
14015 > ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
14016 > if test "$ac_res" != no; then :
14017 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14018  
14019 <      LIBS="-lz $LIBS"
14019 > $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14020  
14021 < $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14021 > fi
14022 >
14023 > fi
14024  
14025  
13643 else
13644  zlib=no
14026   fi
14027  
14028  
14029 + # Check whether --enable-assert was given.
14030 + if test "${enable_assert+set}" = set; then :
14031 +  enableval=$enable_assert; assert=$enableval
14032   else
14033 <  zlib=no
14033 >  assert=no
14034   fi
14035  
14036  
14037 + if test "$assert" = "no"; then :
14038 +
14039 + $as_echo "#define NDEBUG 1" >>confdefs.h
14040  
14041   fi
14042  
14043  
14044 < # Check whether --with-libpcre-path was given.
14045 < if test "${with_libpcre_path+set}" = set; then :
14046 <  withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
14044 > $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14045 >
14046 >
14047 > $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14048 >
14049 >
14050 > $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14051 >
14052 >
14053 > $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14054 >
14055 >
14056 > $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14057 >
14058 >
14059 > $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14060 >
14061 >
14062 > $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14063 >
14064 >
14065 > $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14066 >
14067 >
14068 > $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14069 >
14070 >
14071 > $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14072 >
14073 >
14074 > $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14075 >
14076 >
14077 > $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14078 >
14079 >
14080 > $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14081 >
14082 >
14083 > $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14084 >
14085 >
14086 > # Argument processing.
14087 >
14088 >  desired_iopoll_mechanism="none"
14089 >
14090 >  # Check whether --enable-kqueue was given.
14091 > if test "${enable_kqueue+set}" = set; then :
14092 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14093   fi
14094  
14095 +  # Check whether --enable-epoll was given.
14096 + if test "${enable_epoll+set}" = set; then :
14097 +  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14098 + fi
14099  
14100 < # Check whether --enable-libpcre was given.
14101 < if test "${enable_libpcre+set}" = set; then :
14102 <  enableval=$enable_libpcre; libpcre=$enableval
13666 < else
13667 <  libpcre=yes
14100 >  # Check whether --enable-devpoll was given.
14101 > if test "${enable_devpoll+set}" = set; then :
14102 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14103   fi
14104  
14105 +  # Check whether --enable-poll was given.
14106 + if test "${enable_poll+set}" = set; then :
14107 +  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14108 + fi
14109  
13671 if test "$libpcre" = "yes"; then :
14110  
14111 <  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14112 < if test "x$ac_cv_header_pcre_h" = xyes; then :
14113 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
14114 < $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
14115 < if ${ac_cv_lib_pcre_pcre_study+:} false; then :
14116 <  $as_echo_n "(cached) " >&6
14117 < else
14118 <  ac_check_lib_save_LIBS=$LIBS
14119 < LIBS="-lpcre  $LIBS"
14120 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14112 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14113 >
14114 >  iopoll_mechanism_none=0
14115 >
14116 > cat >>confdefs.h <<_ACEOF
14117 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14118 > _ACEOF
14119 >
14120 >
14121 >  iopoll_mechanism_kqueue=1
14122 >
14123 > cat >>confdefs.h <<_ACEOF
14124 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14125 > _ACEOF
14126 >
14127 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128   /* end confdefs.h.  */
14129 + /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14130 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14131 + #define kevent innocuous_kevent
14132 +
14133 + /* System header to define __stub macros and hopefully few prototypes,
14134 +    which can conflict with char kevent (); below.
14135 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136 +    <limits.h> exists even on freestanding compilers.  */
14137 +
14138 + #ifdef __STDC__
14139 + # include <limits.h>
14140 + #else
14141 + # include <assert.h>
14142 + #endif
14143 +
14144 + #undef kevent
14145  
14146   /* Override any GCC internal prototype to avoid an error.
14147     Use char because int might match the return type of a GCC
# Line 13688 | Line 14149 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14149   #ifdef __cplusplus
14150   extern "C"
14151   #endif
14152 < char pcre_study ();
14152 > char kevent ();
14153 > /* The GNU C library defines this for functions which it implements
14154 >    to always fail with ENOSYS.  Some functions are actually named
14155 >    something starting with __ and the normal name is an alias.  */
14156 > #if defined __stub_kevent || defined __stub___kevent
14157 > choke me
14158 > #endif
14159 >
14160   int
14161   main ()
14162   {
14163 < return pcre_study ();
14163 > return kevent ();
14164    ;
14165    return 0;
14166   }
14167   _ACEOF
14168   if ac_fn_c_try_link "$LINENO"; then :
14169 <  ac_cv_lib_pcre_pcre_study=yes
14169 >  is_kqueue_mechanism_available="yes"
14170   else
14171 <  ac_cv_lib_pcre_pcre_study=no
14171 >  is_kqueue_mechanism_available="no"
14172   fi
14173   rm -f core conftest.err conftest.$ac_objext \
14174      conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13710 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13711 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
14175  
14176 <      LIBS="-lpcre $LIBS"
13714 <
13715 < $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14176 >  iopoll_mechanism_epoll=2
14177  
14178 + cat >>confdefs.h <<_ACEOF
14179 + #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14180 + _ACEOF
14181  
14182 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 + /* end confdefs.h.  */
14184 + #include <sys/epoll.h>
14185 + int
14186 + main ()
14187 + {
14188 + epoll_create(256);
14189 +  ;
14190 +  return 0;
14191 + }
14192 + _ACEOF
14193 + if ac_fn_c_try_link "$LINENO"; then :
14194 +  is_epoll_mechanism_available="yes"
14195   else
14196 <  libpcre=no
14196 >  is_epoll_mechanism_available="no"
14197   fi
14198 + rm -f core conftest.err conftest.$ac_objext \
14199 +    conftest$ac_exeext conftest.$ac_ext
14200 +
14201 +  iopoll_mechanism_devpoll=3
14202  
14203 + cat >>confdefs.h <<_ACEOF
14204 + #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14205 + _ACEOF
14206  
14207 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 + /* end confdefs.h.  */
14209 + #include <devpoll.h>
14210 + int
14211 + main ()
14212 + {
14213 +
14214 +  ;
14215 +  return 0;
14216 + }
14217 + _ACEOF
14218 + if ac_fn_c_try_compile "$LINENO"; then :
14219 +  is_devpoll_mechanism_available="yes"
14220   else
14221 <  libpcre=no
14221 >  is_devpoll_mechanism_available="no"
14222   fi
14223 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14225  
14226 + $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14227  
14228 +  fi
14229 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 + /* end confdefs.h.  */
14231 + #include <sys/devpoll.h>
14232 + int
14233 + main ()
14234 + {
14235  
14236 < fi
14237 < if test "$libpcre" = yes; then
14238 <  ENABLE_PCRE_TRUE=
14239 <  ENABLE_PCRE_FALSE='#'
14236 >  ;
14237 >  return 0;
14238 > }
14239 > _ACEOF
14240 > if ac_fn_c_try_compile "$LINENO"; then :
14241 >  is_devpoll_mechanism_available="yes"
14242   else
14243 <  ENABLE_PCRE_TRUE='#'
13735 <  ENABLE_PCRE_FALSE=
14243 >  is_devpoll_mechanism_available="no"
14244   fi
14245 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14247  
14248 + $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14249  
14250 +  fi
14251  
14252 < # Check whether --enable-openssl was given.
14253 < if test "${enable_openssl+set}" = set; then :
14254 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14252 >  iopoll_mechanism_poll=4
14253 >
14254 > cat >>confdefs.h <<_ACEOF
14255 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14256 > _ACEOF
14257 >
14258 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 > /* end confdefs.h.  */
14260 > /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14261 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14262 > #define poll innocuous_poll
14263 >
14264 > /* System header to define __stub macros and hopefully few prototypes,
14265 >    which can conflict with char poll (); below.
14266 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 >    <limits.h> exists even on freestanding compilers.  */
14268 >
14269 > #ifdef __STDC__
14270 > # include <limits.h>
14271 > #else
14272 > # include <assert.h>
14273 > #endif
14274 >
14275 > #undef poll
14276 >
14277 > /* Override any GCC internal prototype to avoid an error.
14278 >   Use char because int might match the return type of a GCC
14279 >   builtin and then its argument prototype would still apply.  */
14280 > #ifdef __cplusplus
14281 > extern "C"
14282 > #endif
14283 > char poll ();
14284 > /* The GNU C library defines this for functions which it implements
14285 >    to always fail with ENOSYS.  Some functions are actually named
14286 >    something starting with __ and the normal name is an alias.  */
14287 > #if defined __stub_poll || defined __stub___poll
14288 > choke me
14289 > #endif
14290 >
14291 > int
14292 > main ()
14293 > {
14294 > return poll ();
14295 >  ;
14296 >  return 0;
14297 > }
14298 > _ACEOF
14299 > if ac_fn_c_try_link "$LINENO"; then :
14300 >  is_poll_mechanism_available="yes"
14301   else
14302 <   cf_enable_openssl="auto"
14302 >  is_poll_mechanism_available="no"
14303   fi
14304 + rm -f core conftest.err conftest.$ac_objext \
14305 +    conftest$ac_exeext conftest.$ac_ext
14306  
14307 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14308 < $as_echo_n "checking for OpenSSL... " >&6; }
14309 < if test "$cf_enable_openssl" != "no"; then
14310 <  cf_openssl_basedir=""
14311 <  if test "$cf_enable_openssl" != "auto" &&
14312 <     test "$cf_enable_openssl" != "yes"; then
14313 <          cf_openssl_basedir="${cf_enable_openssl}"
14314 <  else
13755 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13756 <                /opt /opt/openssl /usr/local/openssl; do
13757 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
13758 <        cf_openssl_basedir="${dirs}"
13759 <        break
13760 <      fi
13761 <    done
13762 <    unset dirs
13763 <  fi
14307 >  optimal_iopoll_mechanism="none"
14308 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14309 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14310 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14311 >      optimal_iopoll_mechanism="$mechanism"
14312 >      break
14313 >    fi
14314 >  done
14315  
14316 <    if test ! -z "$cf_openssl_basedir"; then
14317 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14318 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14319 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14316 >  if test "$desired_iopoll_mechanism" = "none" ; then
14317 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14318 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14319 > $as_echo "none" >&6; }
14320 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14321      else
14322 <                  cf_openssl_basedir=""
14322 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14323 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14324 > $as_echo "$selected_iopoll_mechanism" >&6; }
14325      fi
14326    else
14327 <                            if test -f "/usr/include/openssl/opensslv.h"; then
14328 <      cf_openssl_basedir="/usr"
14327 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14328 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14329 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14330 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14331 > $as_echo "$selected_iopoll_mechanism" >&6; }
14332 >    else
14333 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14334 > $as_echo "none" >&6; }
14335 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14336      fi
14337    fi
14338  
14339 <      if test ! -z "$cf_openssl_basedir"; then
13779 <    LIBS="-lcrypto -lssl $LIBS"
13780 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13781 < $as_echo "$cf_openssl_basedir" >&6; }
13782 <    cf_enable_openssl="yes"
14339 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14340  
14341 < $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14341 > cat >>confdefs.h <<_ACEOF
14342 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14343 > _ACEOF
14344  
14345 <  else
14346 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14347 < $as_echo "not found. Please check your path." >&6; }
14348 <    cf_enable_openssl="no"
14345 >
14346 >
14347 >  # Check whether --enable-debugging was given.
14348 > if test "${enable_debugging+set}" = set; then :
14349 >  enableval=$enable_debugging; debugging="$enableval"
14350 > else
14351 >  debugging="no"
14352 > fi
14353 >
14354 >  if test "$debugging" = "yes" ; then
14355 >    CFLAGS="-Wall -g -O0"
14356    fi
14357 <  unset cf_openssl_basedir
14357 >
14358 >
14359 >  # Check whether --enable-warnings was given.
14360 > if test "${enable_warnings+set}" = set; then :
14361 >  enableval=$enable_warnings; warnings="$enableval"
14362   else
14363 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13794 < $as_echo "disabled" >&6; }
14363 >  warnings="no"
14364   fi
14365  
14366 < if test "$cf_enable_openssl" != "no"; then :
14367 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14368 < $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14369 <  if test "$cross_compiling" = yes; then :
14370 <  cf_openssl_version_ok=no
14366 >
14367 >  if test "$warnings" = "yes" ; then
14368 >
14369 >
14370 >
14371 >
14372 > for flag in -Wall; do
14373 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14374 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14375 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14376 > if eval \${$as_CACHEVAR+:} false; then :
14377 >  $as_echo_n "(cached) " >&6
14378   else
14379 +
14380 +  ax_check_save_flags=$CFLAGS
14381 +  CFLAGS="$CFLAGS  $flag"
14382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383   /* end confdefs.h.  */
14384  
13806
13807    #include <openssl/opensslv.h>
13808    #include <stdlib.h>
14385   int
14386   main ()
14387   {
14388 < exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
14388 >
14389    ;
14390    return 0;
14391   }
14392   _ACEOF
14393 < if ac_fn_c_try_run "$LINENO"; then :
14394 <  cf_openssl_version_ok=yes
14393 > if ac_fn_c_try_compile "$LINENO"; then :
14394 >  eval "$as_CACHEVAR=yes"
14395   else
14396 <  cf_openssl_version_ok=no
14396 >  eval "$as_CACHEVAR=no"
14397   fi
14398 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14399 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14398 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 >  CFLAGS=$ax_check_save_flags
14400 > fi
14401 > eval ac_res=\$$as_CACHEVAR
14402 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14403 > $as_echo "$ac_res" >&6; }
14404 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14405 >  if ${CFLAGS+:} false; then :
14406 >  case " $CFLAGS " in
14407 >    *" $flag "*)
14408 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14409 >  (: CFLAGS already contains $flag) 2>&5
14410 >  ac_status=$?
14411 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14412 >  test $ac_status = 0; }
14413 >      ;;
14414 >    *)
14415 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14416 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14417 >  ac_status=$?
14418 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14419 >  test $ac_status = 0; }
14420 >      CFLAGS="$CFLAGS $flag"
14421 >      ;;
14422 >   esac
14423 > else
14424 >  CFLAGS="$flag"
14425   fi
14426  
14427 + else
14428 +  :
14429 + fi
14430  
14431 <  if test "$cf_openssl_version_ok" = "yes"; then :
13828 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13829 < $as_echo "found" >&6; }
14431 > done
14432  
14433 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14434 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14435 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14433 >
14434 >
14435 >
14436 >
14437 > for flag in -Wbad-function-cast; do
14438 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14439 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14440 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14441 > if eval \${$as_CACHEVAR+:} false; then :
14442    $as_echo_n "(cached) " >&6
14443   else
14444 <  ac_check_lib_save_LIBS=$LIBS
14445 < LIBS="-lcrypto  $LIBS"
14446 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 >
14445 >  ax_check_save_flags=$CFLAGS
14446 >  CFLAGS="$CFLAGS  $flag"
14447 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448   /* end confdefs.h.  */
14449  
13841 /* Override any GCC internal prototype to avoid an error.
13842   Use char because int might match the return type of a GCC
13843   builtin and then its argument prototype would still apply.  */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 char RSA_free ();
14450   int
14451   main ()
14452   {
14453 < return RSA_free ();
14453 >
14454    ;
14455    return 0;
14456   }
14457   _ACEOF
14458 < if ac_fn_c_try_link "$LINENO"; then :
14459 <  ac_cv_lib_crypto_RSA_free=yes
14458 > if ac_fn_c_try_compile "$LINENO"; then :
14459 >  eval "$as_CACHEVAR=yes"
14460   else
14461 <  ac_cv_lib_crypto_RSA_free=no
14461 >  eval "$as_CACHEVAR=no"
14462   fi
14463 < rm -f core conftest.err conftest.$ac_objext \
14464 <    conftest$ac_exeext conftest.$ac_ext
14465 < LIBS=$ac_check_lib_save_LIBS
14463 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 >  CFLAGS=$ax_check_save_flags
14465 > fi
14466 > eval ac_res=\$$as_CACHEVAR
14467 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14468 > $as_echo "$ac_res" >&6; }
14469 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14470 >  if ${CFLAGS+:} false; then :
14471 >  case " $CFLAGS " in
14472 >    *" $flag "*)
14473 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14474 >  (: CFLAGS already contains $flag) 2>&5
14475 >  ac_status=$?
14476 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14477 >  test $ac_status = 0; }
14478 >      ;;
14479 >    *)
14480 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14481 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14482 >  ac_status=$?
14483 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484 >  test $ac_status = 0; }
14485 >      CFLAGS="$CFLAGS $flag"
14486 >      ;;
14487 >   esac
14488 > else
14489 >  CFLAGS="$flag"
14490   fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13866 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13867 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13868  cat >>confdefs.h <<_ACEOF
13869 #define HAVE_LIBCRYPTO 1
13870 _ACEOF
13871
13872  LIBS="-lcrypto $LIBS"
14491  
14492 + else
14493 +  :
14494   fi
14495  
14496 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14497 <  for ac_func in EVP_bf_cfb           \
14498 <                      EVP_cast5_cfb        \
14499 <                      EVP_idea_cfb         \
14500 <                      EVP_rc5_32_12_16_cfb \
14501 <                      EVP_des_ede3_cfb     \
14502 <                      EVP_des_cfb
14503 < do :
14504 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14505 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14506 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14507 <  cat >>confdefs.h <<_ACEOF
14508 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14496 > done
14497 >
14498 >
14499 >
14500 >
14501 >
14502 > for flag in -Wcast-align; do
14503 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14504 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14505 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14506 > if eval \${$as_CACHEVAR+:} false; then :
14507 >  $as_echo_n "(cached) " >&6
14508 > else
14509 >
14510 >  ax_check_save_flags=$CFLAGS
14511 >  CFLAGS="$CFLAGS  $flag"
14512 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 > /* end confdefs.h.  */
14514 >
14515 > int
14516 > main ()
14517 > {
14518 >
14519 >  ;
14520 >  return 0;
14521 > }
14522   _ACEOF
14523 + if ac_fn_c_try_compile "$LINENO"; then :
14524 +  eval "$as_CACHEVAR=yes"
14525 + else
14526 +  eval "$as_CACHEVAR=no"
14527 + fi
14528 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 +  CFLAGS=$ax_check_save_flags
14530 + fi
14531 + eval ac_res=\$$as_CACHEVAR
14532 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14533 + $as_echo "$ac_res" >&6; }
14534 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14535 +  if ${CFLAGS+:} false; then :
14536 +  case " $CFLAGS " in
14537 +    *" $flag "*)
14538 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14539 +  (: CFLAGS already contains $flag) 2>&5
14540 +  ac_status=$?
14541 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 +  test $ac_status = 0; }
14543 +      ;;
14544 +    *)
14545 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14546 +  (: CFLAGS="$CFLAGS $flag") 2>&5
14547 +  ac_status=$?
14548 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14549 +  test $ac_status = 0; }
14550 +      CFLAGS="$CFLAGS $flag"
14551 +      ;;
14552 +   esac
14553 + else
14554 +  CFLAGS="$flag"
14555 + fi
14556  
14557 + else
14558 +  :
14559   fi
14560 +
14561   done
14562  
13894 fi
14563  
14564 +
14565 +
14566 +
14567 + for flag in -Wcast-qual; do
14568 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14569 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14570 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14571 + if eval \${$as_CACHEVAR+:} false; then :
14572 +  $as_echo_n "(cached) " >&6
14573   else
14574 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14575 < $as_echo "no - OpenSSL support disabled" >&6; }
14576 <    cf_enable_openssl="no"
14574 >
14575 >  ax_check_save_flags=$CFLAGS
14576 >  CFLAGS="$CFLAGS  $flag"
14577 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 > /* end confdefs.h.  */
14579 >
14580 > int
14581 > main ()
14582 > {
14583 >
14584 >  ;
14585 >  return 0;
14586 > }
14587 > _ACEOF
14588 > if ac_fn_c_try_compile "$LINENO"; then :
14589 >  eval "$as_CACHEVAR=yes"
14590 > else
14591 >  eval "$as_CACHEVAR=no"
14592   fi
14593 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 +  CFLAGS=$ax_check_save_flags
14595 + fi
14596 + eval ac_res=\$$as_CACHEVAR
14597 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14598 + $as_echo "$ac_res" >&6; }
14599 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14600 +  if ${CFLAGS+:} false; then :
14601 +  case " $CFLAGS " in
14602 +    *" $flag "*)
14603 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14604 +  (: CFLAGS already contains $flag) 2>&5
14605 +  ac_status=$?
14606 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14607 +  test $ac_status = 0; }
14608 +      ;;
14609 +    *)
14610 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14611 +  (: CFLAGS="$CFLAGS $flag") 2>&5
14612 +  ac_status=$?
14613 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 +  test $ac_status = 0; }
14615 +      CFLAGS="$CFLAGS $flag"
14616 +      ;;
14617 +   esac
14618 + else
14619 +  CFLAGS="$flag"
14620   fi
14621  
13903 if test "$cf_enable_openssl" = yes; then
13904  ENABLE_SSL_TRUE=
13905  ENABLE_SSL_FALSE='#'
14622   else
14623 <  ENABLE_SSL_TRUE='#'
13908 <  ENABLE_SSL_FALSE=
14623 >  :
14624   fi
14625  
14626 + done
14627  
14628  
13913 # Check whether --enable-assert was given.
13914 if test "${enable_assert+set}" = set; then :
13915  enableval=$enable_assert; assert=$enableval
13916 else
13917  assert=no
13918 fi
14629  
14630  
13921 if test "$assert" = "no"; then :
14631  
14632 < $as_echo "#define NDEBUG 1" >>confdefs.h
14632 > for flag in -Wclobbered; do
14633 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14634 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14635 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14636 > if eval \${$as_CACHEVAR+:} false; then :
14637 >  $as_echo_n "(cached) " >&6
14638 > else
14639  
14640 < fi
14640 >  ax_check_save_flags=$CFLAGS
14641 >  CFLAGS="$CFLAGS  $flag"
14642 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 > /* end confdefs.h.  */
14644  
14645 + int
14646 + main ()
14647 + {
14648  
14649 < # Check whether --enable-small-net was given.
14650 < if test "${enable_small_net+set}" = set; then :
14651 <  enableval=$enable_small_net; small_net=$enableval
14649 >  ;
14650 >  return 0;
14651 > }
14652 > _ACEOF
14653 > if ac_fn_c_try_compile "$LINENO"; then :
14654 >  eval "$as_CACHEVAR=yes"
14655   else
14656 <  small_net=no
14656 >  eval "$as_CACHEVAR=no"
14657 > fi
14658 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 >  CFLAGS=$ax_check_save_flags
14660   fi
14661 + eval ac_res=\$$as_CACHEVAR
14662 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14663 + $as_echo "$ac_res" >&6; }
14664 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14665 +  if ${CFLAGS+:} false; then :
14666 +  case " $CFLAGS " in
14667 +    *" $flag "*)
14668 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14669 +  (: CFLAGS already contains $flag) 2>&5
14670 +  ac_status=$?
14671 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14672 +  test $ac_status = 0; }
14673 +      ;;
14674 +    *)
14675 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14676 +  (: CFLAGS="$CFLAGS $flag") 2>&5
14677 +  ac_status=$?
14678 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 +  test $ac_status = 0; }
14680 +      CFLAGS="$CFLAGS $flag"
14681 +      ;;
14682 +   esac
14683 + else
14684 +  CFLAGS="$flag"
14685 + fi
14686 +
14687 + else
14688 +  :
14689 + fi
14690 +
14691 + done
14692  
14693  
13936 if test "$small_net" = "yes"; then :
14694  
14695  
13939 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
14696  
14697 + for flag in -Wempty-body; do
14698 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14699 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14700 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14701 + if eval \${$as_CACHEVAR+:} false; then :
14702 +  $as_echo_n "(cached) " >&6
14703 + else
14704  
14705 < $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
14705 >  ax_check_save_flags=$CFLAGS
14706 >  CFLAGS="$CFLAGS  $flag"
14707 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 > /* end confdefs.h.  */
14709  
14710 + int
14711 + main ()
14712 + {
14713  
14714 < $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
14714 >  ;
14715 >  return 0;
14716 > }
14717 > _ACEOF
14718 > if ac_fn_c_try_compile "$LINENO"; then :
14719 >  eval "$as_CACHEVAR=yes"
14720 > else
14721 >  eval "$as_CACHEVAR=no"
14722 > fi
14723 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 >  CFLAGS=$ax_check_save_flags
14725 > fi
14726 > eval ac_res=\$$as_CACHEVAR
14727 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14728 > $as_echo "$ac_res" >&6; }
14729 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14730 >  if ${CFLAGS+:} false; then :
14731 >  case " $CFLAGS " in
14732 >    *" $flag "*)
14733 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14734 >  (: CFLAGS already contains $flag) 2>&5
14735 >  ac_status=$?
14736 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14737 >  test $ac_status = 0; }
14738 >      ;;
14739 >    *)
14740 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14741 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14742 >  ac_status=$?
14743 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14744 >  test $ac_status = 0; }
14745 >      CFLAGS="$CFLAGS $flag"
14746 >      ;;
14747 >   esac
14748 > else
14749 >  CFLAGS="$flag"
14750 > fi
14751  
14752 + else
14753 +  :
14754 + fi
14755  
14756 < $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
14756 > done
14757  
14758  
13951 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
14759  
14760  
13954 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
14761  
14762 + for flag in -Wignored-qualifiers; do
14763 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14764 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14765 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14766 + if eval \${$as_CACHEVAR+:} false; then :
14767 +  $as_echo_n "(cached) " >&6
14768 + else
14769  
14770 < $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
14770 >  ax_check_save_flags=$CFLAGS
14771 >  CFLAGS="$CFLAGS  $flag"
14772 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 > /* end confdefs.h.  */
14774  
14775 + int
14776 + main ()
14777 + {
14778  
14779 < $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
14779 >  ;
14780 >  return 0;
14781 > }
14782 > _ACEOF
14783 > if ac_fn_c_try_compile "$LINENO"; then :
14784 >  eval "$as_CACHEVAR=yes"
14785 > else
14786 >  eval "$as_CACHEVAR=no"
14787 > fi
14788 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 >  CFLAGS=$ax_check_save_flags
14790 > fi
14791 > eval ac_res=\$$as_CACHEVAR
14792 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14793 > $as_echo "$ac_res" >&6; }
14794 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14795 >  if ${CFLAGS+:} false; then :
14796 >  case " $CFLAGS " in
14797 >    *" $flag "*)
14798 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14799 >  (: CFLAGS already contains $flag) 2>&5
14800 >  ac_status=$?
14801 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 >  test $ac_status = 0; }
14803 >      ;;
14804 >    *)
14805 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14806 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14807 >  ac_status=$?
14808 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14809 >  test $ac_status = 0; }
14810 >      CFLAGS="$CFLAGS $flag"
14811 >      ;;
14812 >   esac
14813 > else
14814 >  CFLAGS="$flag"
14815 > fi
14816  
14817 + else
14818 +  :
14819 + fi
14820  
14821 < $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
14821 > done
14822  
14823  
13966 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
14824  
13968 else
14825  
14826  
14827 + for flag in -Wlogical-op; do
14828 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14829 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14830 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14831 + if eval \${$as_CACHEVAR+:} false; then :
14832 +  $as_echo_n "(cached) " >&6
14833 + else
14834  
14835 < $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
14835 >  ax_check_save_flags=$CFLAGS
14836 >  CFLAGS="$CFLAGS  $flag"
14837 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 > /* end confdefs.h.  */
14839  
14840 + int
14841 + main ()
14842 + {
14843  
14844 < $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
14844 >  ;
14845 >  return 0;
14846 > }
14847 > _ACEOF
14848 > if ac_fn_c_try_compile "$LINENO"; then :
14849 >  eval "$as_CACHEVAR=yes"
14850 > else
14851 >  eval "$as_CACHEVAR=no"
14852 > fi
14853 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 >  CFLAGS=$ax_check_save_flags
14855 > fi
14856 > eval ac_res=\$$as_CACHEVAR
14857 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14858 > $as_echo "$ac_res" >&6; }
14859 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14860 >  if ${CFLAGS+:} false; then :
14861 >  case " $CFLAGS " in
14862 >    *" $flag "*)
14863 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14864 >  (: CFLAGS already contains $flag) 2>&5
14865 >  ac_status=$?
14866 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 >  test $ac_status = 0; }
14868 >      ;;
14869 >    *)
14870 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14871 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14872 >  ac_status=$?
14873 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874 >  test $ac_status = 0; }
14875 >      CFLAGS="$CFLAGS $flag"
14876 >      ;;
14877 >   esac
14878 > else
14879 >  CFLAGS="$flag"
14880 > fi
14881  
14882 + else
14883 +  :
14884 + fi
14885  
14886 < $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
14886 > done
14887  
14888  
13981 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
14889  
14890  
13984 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
14891  
14892 + for flag in -Wmissing-declarations; do
14893 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14894 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14895 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14896 + if eval \${$as_CACHEVAR+:} false; then :
14897 +  $as_echo_n "(cached) " >&6
14898 + else
14899  
14900 < $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
14900 >  ax_check_save_flags=$CFLAGS
14901 >  CFLAGS="$CFLAGS  $flag"
14902 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 > /* end confdefs.h.  */
14904  
14905 + int
14906 + main ()
14907 + {
14908  
14909 < $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
14909 >  ;
14910 >  return 0;
14911 > }
14912 > _ACEOF
14913 > if ac_fn_c_try_compile "$LINENO"; then :
14914 >  eval "$as_CACHEVAR=yes"
14915 > else
14916 >  eval "$as_CACHEVAR=no"
14917 > fi
14918 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 >  CFLAGS=$ax_check_save_flags
14920 > fi
14921 > eval ac_res=\$$as_CACHEVAR
14922 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14923 > $as_echo "$ac_res" >&6; }
14924 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14925 >  if ${CFLAGS+:} false; then :
14926 >  case " $CFLAGS " in
14927 >    *" $flag "*)
14928 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14929 >  (: CFLAGS already contains $flag) 2>&5
14930 >  ac_status=$?
14931 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14932 >  test $ac_status = 0; }
14933 >      ;;
14934 >    *)
14935 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14936 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14937 >  ac_status=$?
14938 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 >  test $ac_status = 0; }
14940 >      CFLAGS="$CFLAGS $flag"
14941 >      ;;
14942 >   esac
14943 > else
14944 >  CFLAGS="$flag"
14945 > fi
14946  
14947 + else
14948 +  :
14949 + fi
14950  
14951 < $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
14951 > done
14952  
14953  
13996 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
14954  
14955  
13999 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14956  
14957 < fi
14957 > for flag in -Wmissing-field-initializers; do
14958 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14959 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14960 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14961 > if eval \${$as_CACHEVAR+:} false; then :
14962 >  $as_echo_n "(cached) " >&6
14963 > else
14964  
14965 +  ax_check_save_flags=$CFLAGS
14966 +  CFLAGS="$CFLAGS  $flag"
14967 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 + /* end confdefs.h.  */
14969  
14970 < # Argument processing.
14970 > int
14971 > main ()
14972 > {
14973  
14974 <    desired_iopoll_mechanism="none"
14975 <    # Check whether --enable-kqueue was given.
14976 < if test "${enable_kqueue+set}" = set; then :
14977 <  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14974 >  ;
14975 >  return 0;
14976 > }
14977 > _ACEOF
14978 > if ac_fn_c_try_compile "$LINENO"; then :
14979 >  eval "$as_CACHEVAR=yes"
14980 > else
14981 >  eval "$as_CACHEVAR=no"
14982   fi
14983 <
14984 <  # Check whether --enable-epoll was given.
14013 < if test "${enable_epoll+set}" = set; then :
14014 <  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14983 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 >  CFLAGS=$ax_check_save_flags
14985   fi
14986 <
14987 <  # Check whether --enable-devpoll was given.
14988 < if test "${enable_devpoll+set}" = set; then :
14989 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14986 > eval ac_res=\$$as_CACHEVAR
14987 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14988 > $as_echo "$ac_res" >&6; }
14989 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14990 >  if ${CFLAGS+:} false; then :
14991 >  case " $CFLAGS " in
14992 >    *" $flag "*)
14993 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14994 >  (: CFLAGS already contains $flag) 2>&5
14995 >  ac_status=$?
14996 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 >  test $ac_status = 0; }
14998 >      ;;
14999 >    *)
15000 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15001 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15002 >  ac_status=$?
15003 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15004 >  test $ac_status = 0; }
15005 >      CFLAGS="$CFLAGS $flag"
15006 >      ;;
15007 >   esac
15008 > else
15009 >  CFLAGS="$flag"
15010   fi
15011  
15012 <  # Check whether --enable-rtsigio was given.
15013 < if test "${enable_rtsigio+set}" = set; then :
14024 <  enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
15012 > else
15013 >  :
15014   fi
15015  
15016 <  # Check whether --enable-poll was given.
14028 < if test "${enable_poll+set}" = set; then :
14029 <  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14030 < fi
15016 > done
15017  
14032  # Check whether --enable-select was given.
14033 if test "${enable_select+set}" = set; then :
14034  enableval=$enable_select; desired_iopoll_mechanism="select"
14035 fi
15018  
14037      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14038 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14039  iopoll_mechanism_none=0
15019  
14041 cat >>confdefs.h <<_ACEOF
14042 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14043 _ACEOF
15020  
14045      iopoll_mechanism_kqueue=1
15021  
15022 < cat >>confdefs.h <<_ACEOF
15023 < #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
15024 < _ACEOF
15022 > for flag in -Wmissing-include-dirs; do
15023 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15024 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15025 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15026 > if eval \${$as_CACHEVAR+:} false; then :
15027 >  $as_echo_n "(cached) " >&6
15028 > else
15029  
15030 +  ax_check_save_flags=$CFLAGS
15031 +  CFLAGS="$CFLAGS  $flag"
15032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033   /* end confdefs.h.  */
14053 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14055 #define kevent innocuous_kevent
15034  
15035 < /* System header to define __stub macros and hopefully few prototypes,
15036 <    which can conflict with char kevent (); below.
15037 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14060 <    <limits.h> exists even on freestanding compilers.  */
15035 > int
15036 > main ()
15037 > {
15038  
15039 < #ifdef __STDC__
15040 < # include <limits.h>
15041 < #else
15042 < # include <assert.h>
15043 < #endif
15039 >  ;
15040 >  return 0;
15041 > }
15042 > _ACEOF
15043 > if ac_fn_c_try_compile "$LINENO"; then :
15044 >  eval "$as_CACHEVAR=yes"
15045 > else
15046 >  eval "$as_CACHEVAR=no"
15047 > fi
15048 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 >  CFLAGS=$ax_check_save_flags
15050 > fi
15051 > eval ac_res=\$$as_CACHEVAR
15052 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15053 > $as_echo "$ac_res" >&6; }
15054 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15055 >  if ${CFLAGS+:} false; then :
15056 >  case " $CFLAGS " in
15057 >    *" $flag "*)
15058 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15059 >  (: CFLAGS already contains $flag) 2>&5
15060 >  ac_status=$?
15061 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15062 >  test $ac_status = 0; }
15063 >      ;;
15064 >    *)
15065 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15066 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15067 >  ac_status=$?
15068 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069 >  test $ac_status = 0; }
15070 >      CFLAGS="$CFLAGS $flag"
15071 >      ;;
15072 >   esac
15073 > else
15074 >  CFLAGS="$flag"
15075 > fi
15076  
15077 < #undef kevent
15077 > else
15078 >  :
15079 > fi
15080  
15081 < /* Override any GCC internal prototype to avoid an error.
15082 <   Use char because int might match the return type of a GCC
15083 <   builtin and then its argument prototype would still apply.  */
15084 < #ifdef __cplusplus
15085 < extern "C"
15086 < #endif
15087 < char kevent ();
15088 < /* The GNU C library defines this for functions which it implements
15089 <    to always fail with ENOSYS.  Some functions are actually named
15090 <    something starting with __ and the normal name is an alias.  */
15091 < #if defined __stub_kevent || defined __stub___kevent
15092 < choke me
15093 < #endif
15081 > done
15082 >
15083 >
15084 >
15085 >
15086 >
15087 > for flag in -Wmissing-parameter-type; do
15088 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15089 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15090 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15091 > if eval \${$as_CACHEVAR+:} false; then :
15092 >  $as_echo_n "(cached) " >&6
15093 > else
15094 >
15095 >  ax_check_save_flags=$CFLAGS
15096 >  CFLAGS="$CFLAGS  $flag"
15097 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 > /* end confdefs.h.  */
15099  
15100   int
15101   main ()
15102   {
15103 < return kevent ();
15103 >
15104    ;
15105    return 0;
15106   }
15107   _ACEOF
15108 < if ac_fn_c_try_link "$LINENO"; then :
15109 <  is_kqueue_mechanism_available="yes"
15108 > if ac_fn_c_try_compile "$LINENO"; then :
15109 >  eval "$as_CACHEVAR=yes"
15110   else
15111 <  is_kqueue_mechanism_available="no"
15111 >  eval "$as_CACHEVAR=no"
15112 > fi
15113 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 >  CFLAGS=$ax_check_save_flags
15115 > fi
15116 > eval ac_res=\$$as_CACHEVAR
15117 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15118 > $as_echo "$ac_res" >&6; }
15119 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15120 >  if ${CFLAGS+:} false; then :
15121 >  case " $CFLAGS " in
15122 >    *" $flag "*)
15123 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15124 >  (: CFLAGS already contains $flag) 2>&5
15125 >  ac_status=$?
15126 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15127 >  test $ac_status = 0; }
15128 >      ;;
15129 >    *)
15130 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15131 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15132 >  ac_status=$?
15133 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15134 >  test $ac_status = 0; }
15135 >      CFLAGS="$CFLAGS $flag"
15136 >      ;;
15137 >   esac
15138 > else
15139 >  CFLAGS="$flag"
15140   fi
14097 rm -f core conftest.err conftest.$ac_objext \
14098    conftest$ac_exeext conftest.$ac_ext
14099      iopoll_mechanism_epoll=2
15141  
15142 < cat >>confdefs.h <<_ACEOF
15143 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
15144 < _ACEOF
15142 > else
15143 >  :
15144 > fi
15145  
15146 <  if test "$cross_compiling" = yes; then :
15147 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15148 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15149 < as_fn_error $? "cannot run test program while cross compiling
15150 < See \`config.log' for more details" "$LINENO" 5; }
15146 > done
15147 >
15148 >
15149 >
15150 >
15151 >
15152 > for flag in -Wmissing-prototypes; do
15153 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15154 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15155 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15156 > if eval \${$as_CACHEVAR+:} false; then :
15157 >  $as_echo_n "(cached) " >&6
15158   else
15159 +
15160 +  ax_check_save_flags=$CFLAGS
15161 +  CFLAGS="$CFLAGS  $flag"
15162    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163   /* end confdefs.h.  */
15164  
14114 #include <sys/epoll.h>
14115 #include <sys/syscall.h>
14116 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14117 #if !defined(__NR_epoll_create)
14118 #if defined(__ia64__)
14119 #define __NR_epoll_create 1243
14120 #elif defined(__x86_64__)
14121 #define __NR_epoll_create 214
14122 #elif defined(__sparc64__) || defined(__sparc__)
14123 #define __NR_epoll_create 193
14124 #elif defined(__s390__) || defined(__m68k__)
14125 #define __NR_epoll_create 249
14126 #elif defined(__ppc64__) || defined(__ppc__)
14127 #define __NR_epoll_create 236
14128 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14129 #define __NR_epoll_create 224
14130 #elif defined(__alpha__)
14131 #define __NR_epoll_create 407
14132 #elif defined(__sh64__)
14133 #define __NR_epoll_create 282
14134 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14135 #define __NR_epoll_create 254
14136 #else
14137 #error No system call numbers defined for epoll family.
14138 #endif
14139 #endif
14140 _syscall1(int, epoll_create, int, size)
14141 #endif
14142
15165   int
15166   main ()
15167   {
15168 < return epoll_create(256) == -1 ? 1 : 0
15168 >
15169    ;
15170    return 0;
15171   }
15172   _ACEOF
15173 < if ac_fn_c_try_run "$LINENO"; then :
15174 <  is_epoll_mechanism_available="yes"
15173 > if ac_fn_c_try_compile "$LINENO"; then :
15174 >  eval "$as_CACHEVAR=yes"
15175   else
15176 <  is_epoll_mechanism_available="no"
15176 >  eval "$as_CACHEVAR=no"
15177   fi
15178 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15179 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
15178 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 >  CFLAGS=$ax_check_save_flags
15180 > fi
15181 > eval ac_res=\$$as_CACHEVAR
15182 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15183 > $as_echo "$ac_res" >&6; }
15184 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15185 >  if ${CFLAGS+:} false; then :
15186 >  case " $CFLAGS " in
15187 >    *" $flag "*)
15188 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15189 >  (: CFLAGS already contains $flag) 2>&5
15190 >  ac_status=$?
15191 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 >  test $ac_status = 0; }
15193 >      ;;
15194 >    *)
15195 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15196 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15197 >  ac_status=$?
15198 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199 >  test $ac_status = 0; }
15200 >      CFLAGS="$CFLAGS $flag"
15201 >      ;;
15202 >   esac
15203 > else
15204 >  CFLAGS="$flag"
15205   fi
15206  
15207 <      iopoll_mechanism_devpoll=3
15207 > else
15208 >  :
15209 > fi
15210 >
15211 > done
15212  
14162 cat >>confdefs.h <<_ACEOF
14163 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14164 _ACEOF
15213  
15214 +
15215 +
15216 +
15217 + for flag in -Wnested-externs; do
15218 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15219 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15220 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15221 + if eval \${$as_CACHEVAR+:} false; then :
15222 +  $as_echo_n "(cached) " >&6
15223 + else
15224 +
15225 +  ax_check_save_flags=$CFLAGS
15226 +  CFLAGS="$CFLAGS  $flag"
15227    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228   /* end confdefs.h.  */
15229 < #include <devpoll.h>
15229 >
15230   int
15231   main ()
15232   {
# Line 14175 | Line 15236 | main ()
15236   }
15237   _ACEOF
15238   if ac_fn_c_try_compile "$LINENO"; then :
15239 <  is_devpoll_mechanism_available="yes"
15239 >  eval "$as_CACHEVAR=yes"
15240   else
15241 <  is_devpoll_mechanism_available="no"
15241 >  eval "$as_CACHEVAR=no"
15242   fi
15243   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
15244 >  CFLAGS=$ax_check_save_flags
15245 > fi
15246 > eval ac_res=\$$as_CACHEVAR
15247 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15248 > $as_echo "$ac_res" >&6; }
15249 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15250 >  if ${CFLAGS+:} false; then :
15251 >  case " $CFLAGS " in
15252 >    *" $flag "*)
15253 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15254 >  (: CFLAGS already contains $flag) 2>&5
15255 >  ac_status=$?
15256 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15257 >  test $ac_status = 0; }
15258 >      ;;
15259 >    *)
15260 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15261 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15262 >  ac_status=$?
15263 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 >  test $ac_status = 0; }
15265 >      CFLAGS="$CFLAGS $flag"
15266 >      ;;
15267 >   esac
15268 > else
15269 >  CFLAGS="$flag"
15270 > fi
15271  
15272 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
15272 > else
15273 >  :
15274 > fi
15275  
15276 <  fi
15276 > done
15277 >
15278 >
15279 >
15280 >
15281 >
15282 > for flag in -Wold-style-declaration; do
15283 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15284 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15285 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15286 > if eval \${$as_CACHEVAR+:} false; then :
15287 >  $as_echo_n "(cached) " >&6
15288 > else
15289 >
15290 >  ax_check_save_flags=$CFLAGS
15291 >  CFLAGS="$CFLAGS  $flag"
15292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293   /* end confdefs.h.  */
15294 < #include <sys/devpoll.h>
15294 >
15295   int
15296   main ()
15297   {
# Line 14197 | Line 15301 | main ()
15301   }
15302   _ACEOF
15303   if ac_fn_c_try_compile "$LINENO"; then :
15304 <  is_devpoll_mechanism_available="yes"
15304 >  eval "$as_CACHEVAR=yes"
15305   else
15306 <  is_devpoll_mechanism_available="no"
15306 >  eval "$as_CACHEVAR=no"
15307   fi
15308   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
15309 >  CFLAGS=$ax_check_save_flags
15310 > fi
15311 > eval ac_res=\$$as_CACHEVAR
15312 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15313 > $as_echo "$ac_res" >&6; }
15314 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15315 >  if ${CFLAGS+:} false; then :
15316 >  case " $CFLAGS " in
15317 >    *" $flag "*)
15318 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15319 >  (: CFLAGS already contains $flag) 2>&5
15320 >  ac_status=$?
15321 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15322 >  test $ac_status = 0; }
15323 >      ;;
15324 >    *)
15325 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15326 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15327 >  ac_status=$?
15328 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15329 >  test $ac_status = 0; }
15330 >      CFLAGS="$CFLAGS $flag"
15331 >      ;;
15332 >   esac
15333 > else
15334 >  CFLAGS="$flag"
15335 > fi
15336  
15337 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
15337 > else
15338 >  :
15339 > fi
15340  
15341 <  fi
14210 <      iopoll_mechanism_rtsigio=4
15341 > done
15342  
14212 cat >>confdefs.h <<_ACEOF
14213 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14214 _ACEOF
15343  
15344 <  if test "$cross_compiling" = yes; then :
15345 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15346 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15347 < as_fn_error $? "cannot run test program while cross compiling
15348 < See \`config.log' for more details" "$LINENO" 5; }
15344 >
15345 >
15346 >
15347 > for flag in -Woverride-init; do
15348 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15349 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15350 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15351 > if eval \${$as_CACHEVAR+:} false; then :
15352 >  $as_echo_n "(cached) " >&6
15353   else
15354 +
15355 +  ax_check_save_flags=$CFLAGS
15356 +  CFLAGS="$CFLAGS  $flag"
15357    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358   /* end confdefs.h.  */
15359  
14225 #define _GNU_SOURCE
14226 #include <fcntl.h>
14227 static unsigned int have_f_setsig = 0;
14228
15360   int
15361   main ()
15362   {
15363  
14233 #ifdef F_SETSIG
14234  have_f_setsig = 1;
14235 #endif
14236  return have_f_setsig == 0;
14237
15364    ;
15365    return 0;
15366   }
15367   _ACEOF
15368 < if ac_fn_c_try_run "$LINENO"; then :
15369 <  is_rtsigio_mechanism_available="yes"
15368 > if ac_fn_c_try_compile "$LINENO"; then :
15369 >  eval "$as_CACHEVAR=yes"
15370   else
15371 <  is_rtsigio_mechanism_available="no"
15371 >  eval "$as_CACHEVAR=no"
15372   fi
15373 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
15373 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 >  CFLAGS=$ax_check_save_flags
15375 > fi
15376 > eval ac_res=\$$as_CACHEVAR
15377 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15378 > $as_echo "$ac_res" >&6; }
15379 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15380 >  if ${CFLAGS+:} false; then :
15381 >  case " $CFLAGS " in
15382 >    *" $flag "*)
15383 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15384 >  (: CFLAGS already contains $flag) 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
15392 >  ac_status=$?
15393 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15394 >  test $ac_status = 0; }
15395 >      CFLAGS="$CFLAGS $flag"
15396 >      ;;
15397 >   esac
15398 > else
15399 >  CFLAGS="$flag"
15400   fi
15401  
15402 <      iopoll_mechanism_poll=5
15402 > else
15403 >  :
15404 > fi
15405  
15406 < cat >>confdefs.h <<_ACEOF
14254 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14255 < _ACEOF
15406 > done
15407  
14257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h.  */
14259 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14260   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14261 #define poll innocuous_poll
15408  
14263 /* System header to define __stub macros and hopefully few prototypes,
14264    which can conflict with char poll (); below.
14265    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14266    <limits.h> exists even on freestanding compilers.  */
15409  
14268 #ifdef __STDC__
14269 # include <limits.h>
14270 #else
14271 # include <assert.h>
14272 #endif
15410  
14274 #undef poll
15411  
15412 < /* Override any GCC internal prototype to avoid an error.
15413 <   Use char because int might match the return type of a GCC
15414 <   builtin and then its argument prototype would still apply.  */
15415 < #ifdef __cplusplus
15416 < extern "C"
15417 < #endif
15418 < char poll ();
15419 < /* The GNU C library defines this for functions which it implements
15420 <    to always fail with ENOSYS.  Some functions are actually named
15421 <    something starting with __ and the normal name is an alias.  */
15422 < #if defined __stub_poll || defined __stub___poll
15423 < choke me
14288 < #endif
15412 > for flag in -Wpointer-arith; 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 < return poll ();
15428 >
15429    ;
15430    return 0;
15431   }
15432   _ACEOF
15433 < if ac_fn_c_try_link "$LINENO"; then :
15434 <  is_poll_mechanism_available="yes"
15433 > if ac_fn_c_try_compile "$LINENO"; then :
15434 >  eval "$as_CACHEVAR=yes"
15435   else
15436 <  is_poll_mechanism_available="no"
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 test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15445 >  if ${CFLAGS+:} false; then :
15446 >  case " $CFLAGS " in
15447 >    *" $flag "*)
15448 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15449 >  (: CFLAGS already contains $flag) 2>&5
15450 >  ac_status=$?
15451 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15452 >  test $ac_status = 0; }
15453 >      ;;
15454 >    *)
15455 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15456 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15457 >  ac_status=$?
15458 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15459 >  test $ac_status = 0; }
15460 >      CFLAGS="$CFLAGS $flag"
15461 >      ;;
15462 >   esac
15463 > else
15464 >  CFLAGS="$flag"
15465   fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304    conftest$ac_exeext conftest.$ac_ext
14305      iopoll_mechanism_select=6
15466  
15467 < cat >>confdefs.h <<_ACEOF
15468 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
15469 < _ACEOF
15467 > else
15468 >  :
15469 > fi
15470 >
15471 > done
15472 >
15473 >
15474 >
15475  
15476 +
15477 + for flag in -Wredundant-decls; do
15478 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15479 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15480 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15481 + if eval \${$as_CACHEVAR+:} false; then :
15482 +  $as_echo_n "(cached) " >&6
15483 + else
15484 +
15485 +  ax_check_save_flags=$CFLAGS
15486 +  CFLAGS="$CFLAGS  $flag"
15487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488   /* end confdefs.h.  */
14313 /* Define select to an innocuous variant, in case <limits.h> declares select.
14314   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14315 #define select innocuous_select
15489  
15490 < /* System header to define __stub macros and hopefully few prototypes,
15491 <    which can conflict with char select (); below.
15492 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15493 <    <limits.h> exists even on freestanding compilers.  */
15490 > int
15491 > main ()
15492 > {
15493 >
15494 >  ;
15495 >  return 0;
15496 > }
15497 > _ACEOF
15498 > if ac_fn_c_try_compile "$LINENO"; then :
15499 >  eval "$as_CACHEVAR=yes"
15500 > else
15501 >  eval "$as_CACHEVAR=no"
15502 > fi
15503 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 >  CFLAGS=$ax_check_save_flags
15505 > fi
15506 > eval ac_res=\$$as_CACHEVAR
15507 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15508 > $as_echo "$ac_res" >&6; }
15509 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15510 >  if ${CFLAGS+:} false; then :
15511 >  case " $CFLAGS " in
15512 >    *" $flag "*)
15513 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15514 >  (: CFLAGS already contains $flag) 2>&5
15515 >  ac_status=$?
15516 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15517 >  test $ac_status = 0; }
15518 >      ;;
15519 >    *)
15520 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15521 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15522 >  ac_status=$?
15523 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15524 >  test $ac_status = 0; }
15525 >      CFLAGS="$CFLAGS $flag"
15526 >      ;;
15527 >   esac
15528 > else
15529 >  CFLAGS="$flag"
15530 > fi
15531 >
15532 > else
15533 >  :
15534 > fi
15535 >
15536 > done
15537 >
15538  
14322 #ifdef __STDC__
14323 # include <limits.h>
14324 #else
14325 # include <assert.h>
14326 #endif
15539  
14328 #undef select
15540  
15541 < /* Override any GCC internal prototype to avoid an error.
15542 <   Use char because int might match the return type of a GCC
15543 <   builtin and then its argument prototype would still apply.  */
15544 < #ifdef __cplusplus
15545 < extern "C"
15546 < #endif
15547 < char select ();
15548 < /* The GNU C library defines this for functions which it implements
15549 <    to always fail with ENOSYS.  Some functions are actually named
15550 <    something starting with __ and the normal name is an alias.  */
15551 < #if defined __stub_select || defined __stub___select
15552 < choke me
15553 < #endif
15541 >
15542 > for flag in -Wshadow; do
15543 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15544 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15545 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15546 > if eval \${$as_CACHEVAR+:} false; then :
15547 >  $as_echo_n "(cached) " >&6
15548 > else
15549 >
15550 >  ax_check_save_flags=$CFLAGS
15551 >  CFLAGS="$CFLAGS  $flag"
15552 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 > /* end confdefs.h.  */
15554  
15555   int
15556   main ()
15557   {
15558 < return select ();
15558 >
15559    ;
15560    return 0;
15561   }
15562   _ACEOF
15563 < if ac_fn_c_try_link "$LINENO"; then :
15564 <  is_select_mechanism_available="yes"
15563 > if ac_fn_c_try_compile "$LINENO"; then :
15564 >  eval "$as_CACHEVAR=yes"
15565   else
15566 <  is_select_mechanism_available="no"
15566 >  eval "$as_CACHEVAR=no"
15567 > fi
15568 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 >  CFLAGS=$ax_check_save_flags
15570 > fi
15571 > eval ac_res=\$$as_CACHEVAR
15572 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15573 > $as_echo "$ac_res" >&6; }
15574 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15575 >  if ${CFLAGS+:} false; then :
15576 >  case " $CFLAGS " in
15577 >    *" $flag "*)
15578 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15579 >  (: CFLAGS already contains $flag) 2>&5
15580 >  ac_status=$?
15581 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15582 >  test $ac_status = 0; }
15583 >      ;;
15584 >    *)
15585 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15586 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15587 >  ac_status=$?
15588 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15589 >  test $ac_status = 0; }
15590 >      CFLAGS="$CFLAGS $flag"
15591 >      ;;
15592 >   esac
15593 > else
15594 >  CFLAGS="$flag"
15595   fi
14357 rm -f core conftest.err conftest.$ac_objext \
14358    conftest$ac_exeext conftest.$ac_ext
14359      optimal_iopoll_mechanism="none"
14360  for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14361    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14362    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14363      optimal_iopoll_mechanism="$mechanism"
14364      break
14365    fi
14366  done
14367      if test "$desired_iopoll_mechanism" = "none" ; then
14368    if test "$optimal_iopoll_mechanism" = "none" ; then
14369      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14370 $as_echo "none" >&6; }
14371      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14372    else
14373      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14374      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14375 $as_echo "$selected_iopoll_mechanism" >&6; }
14376    fi
14377  else
14378    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14379    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14380      selected_iopoll_mechanism=$desired_iopoll_mechanism
14381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14382 $as_echo "$selected_iopoll_mechanism" >&6; }
14383    else
14384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14385 $as_echo "none" >&6; }
14386      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14387    fi
14388  fi
14389      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
15596  
15597 < cat >>confdefs.h <<_ACEOF
15598 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
15599 < _ACEOF
15597 > else
15598 >  :
15599 > fi
15600 >
15601 > done
15602  
15603  
15604  
15605  
15606 < # Check whether --with-nicklen was given.
15607 < if test "${with_nicklen+set}" = set; then :
15608 <  withval=$with_nicklen; nicklen="$withval"
15606 >
15607 > for flag in -Wsign-compare; do
15608 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15609 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15610 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15611 > if eval \${$as_CACHEVAR+:} false; then :
15612 >  $as_echo_n "(cached) " >&6
15613   else
14402  nicklen="9"
14403 fi
15614  
15615 +  ax_check_save_flags=$CFLAGS
15616 +  CFLAGS="$CFLAGS  $flag"
15617 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 + /* end confdefs.h.  */
15619  
15620 < cat >>confdefs.h <<_ACEOF
15621 < #define NICKLEN ($nicklen+1)
15620 > int
15621 > main ()
15622 > {
15623 >
15624 >  ;
15625 >  return 0;
15626 > }
15627   _ACEOF
15628 + if ac_fn_c_try_compile "$LINENO"; then :
15629 +  eval "$as_CACHEVAR=yes"
15630 + else
15631 +  eval "$as_CACHEVAR=no"
15632 + fi
15633 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 +  CFLAGS=$ax_check_save_flags
15635 + fi
15636 + eval ac_res=\$$as_CACHEVAR
15637 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15638 + $as_echo "$ac_res" >&6; }
15639 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15640 +  if ${CFLAGS+:} false; then :
15641 +  case " $CFLAGS " in
15642 +    *" $flag "*)
15643 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15644 +  (: CFLAGS already contains $flag) 2>&5
15645 +  ac_status=$?
15646 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 +  test $ac_status = 0; }
15648 +      ;;
15649 +    *)
15650 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15651 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15652 +  ac_status=$?
15653 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15654 +  test $ac_status = 0; }
15655 +      CFLAGS="$CFLAGS $flag"
15656 +      ;;
15657 +   esac
15658 + else
15659 +  CFLAGS="$flag"
15660 + fi
15661  
15662 + else
15663 +  :
15664 + fi
15665 +
15666 + done
15667  
15668  
15669  
15670 < # Check whether --with-topiclen was given.
15671 < if test "${with_topiclen+set}" = set; then :
15672 <  withval=$with_topiclen; topiclen="$withval"
15670 >
15671 >
15672 > for flag in -Wtype-limits; do
15673 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15674 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15675 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15676 > if eval \${$as_CACHEVAR+:} false; then :
15677 >  $as_echo_n "(cached) " >&6
15678   else
14417  topiclen="160"
14418 fi
15679  
15680 +  ax_check_save_flags=$CFLAGS
15681 +  CFLAGS="$CFLAGS  $flag"
15682 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 + /* end confdefs.h.  */
15684  
15685 < cat >>confdefs.h <<_ACEOF
15686 < #define TOPICLEN ($topiclen)
15685 > int
15686 > main ()
15687 > {
15688 >
15689 >  ;
15690 >  return 0;
15691 > }
15692   _ACEOF
15693 + if ac_fn_c_try_compile "$LINENO"; then :
15694 +  eval "$as_CACHEVAR=yes"
15695 + else
15696 +  eval "$as_CACHEVAR=no"
15697 + fi
15698 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 +  CFLAGS=$ax_check_save_flags
15700 + fi
15701 + eval ac_res=\$$as_CACHEVAR
15702 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15703 + $as_echo "$ac_res" >&6; }
15704 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15705 +  if ${CFLAGS+:} false; then :
15706 +  case " $CFLAGS " in
15707 +    *" $flag "*)
15708 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15709 +  (: CFLAGS already contains $flag) 2>&5
15710 +  ac_status=$?
15711 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15712 +  test $ac_status = 0; }
15713 +      ;;
15714 +    *)
15715 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15716 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15717 +  ac_status=$?
15718 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15719 +  test $ac_status = 0; }
15720 +      CFLAGS="$CFLAGS $flag"
15721 +      ;;
15722 +   esac
15723 + else
15724 +  CFLAGS="$flag"
15725 + fi
15726 +
15727 + else
15728 +  :
15729 + fi
15730 +
15731 + done
15732  
15733  
15734  
15735  
15736 < # Check whether --with-syslog-facility was given.
15737 < if test "${with_syslog_facility+set}" = set; then :
15738 <  withval=$with_syslog_facility; syslog_facility="$withval"
15736 >
15737 > for flag in -Wundef; do
15738 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15739 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15740 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15741 > if eval \${$as_CACHEVAR+:} false; then :
15742 >  $as_echo_n "(cached) " >&6
15743   else
14432  syslog_facility="LOG_LOCAL4"
14433 fi
15744  
15745 +  ax_check_save_flags=$CFLAGS
15746 +  CFLAGS="$CFLAGS  $flag"
15747 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 + /* end confdefs.h.  */
15749  
15750 < cat >>confdefs.h <<_ACEOF
15751 < #define LOG_FACILITY $syslog_facility
15750 > int
15751 > main ()
15752 > {
15753 >
15754 >  ;
15755 >  return 0;
15756 > }
15757   _ACEOF
15758 + if ac_fn_c_try_compile "$LINENO"; then :
15759 +  eval "$as_CACHEVAR=yes"
15760 + else
15761 +  eval "$as_CACHEVAR=no"
15762 + fi
15763 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 +  CFLAGS=$ax_check_save_flags
15765 + fi
15766 + eval ac_res=\$$as_CACHEVAR
15767 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15768 + $as_echo "$ac_res" >&6; }
15769 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15770 +  if ${CFLAGS+:} false; then :
15771 +  case " $CFLAGS " in
15772 +    *" $flag "*)
15773 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15774 +  (: CFLAGS already contains $flag) 2>&5
15775 +  ac_status=$?
15776 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 +  test $ac_status = 0; }
15778 +      ;;
15779 +    *)
15780 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15781 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15782 +  ac_status=$?
15783 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15784 +  test $ac_status = 0; }
15785 +      CFLAGS="$CFLAGS $flag"
15786 +      ;;
15787 +   esac
15788 + else
15789 +  CFLAGS="$flag"
15790 + fi
15791 +
15792 + else
15793 +  :
15794 + fi
15795 +
15796 + done
15797 +
15798  
15799  
15800  
15801 <  # Check whether --enable-efnet was given.
15802 < if test "${enable_efnet+set}" = set; then :
15803 <  enableval=$enable_efnet; efnet="$enableval"
15801 >
15802 > for flag in -Wuninitialized; do
15803 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15804 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15805 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15806 > if eval \${$as_CACHEVAR+:} false; then :
15807 >  $as_echo_n "(cached) " >&6
15808   else
14446  efnet="no"
14447 fi
15809  
15810 <  if test "$efnet" = "yes" ; then
15811 <                use_efnet="yes"
15810 >  ax_check_save_flags=$CFLAGS
15811 >  CFLAGS="$CFLAGS  $flag"
15812 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 > /* end confdefs.h.  */
15814  
15815 < $as_echo "#define EFNET 1" >>confdefs.h
15815 > int
15816 > main ()
15817 > {
15818  
15819 <        else
15820 <                use_efnet="no"
15821 <  fi
15822 <   if test "$use_efnet" = "yes"; then
15823 <  EFNET_TRUE=
15824 <  EFNET_FALSE='#'
15819 >  ;
15820 >  return 0;
15821 > }
15822 > _ACEOF
15823 > if ac_fn_c_try_compile "$LINENO"; then :
15824 >  eval "$as_CACHEVAR=yes"
15825   else
15826 <  EFNET_TRUE='#'
15827 <  EFNET_FALSE=
15826 >  eval "$as_CACHEVAR=no"
15827 > fi
15828 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 >  CFLAGS=$ax_check_save_flags
15830   fi
15831 + eval ac_res=\$$as_CACHEVAR
15832 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15833 + $as_echo "$ac_res" >&6; }
15834 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15835 +  if ${CFLAGS+:} false; then :
15836 +  case " $CFLAGS " in
15837 +    *" $flag "*)
15838 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15839 +  (: CFLAGS already contains $flag) 2>&5
15840 +  ac_status=$?
15841 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842 +  test $ac_status = 0; }
15843 +      ;;
15844 +    *)
15845 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15846 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15847 +  ac_status=$?
15848 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15849 +  test $ac_status = 0; }
15850 +      CFLAGS="$CFLAGS $flag"
15851 +      ;;
15852 +   esac
15853 + else
15854 +  CFLAGS="$flag"
15855 + fi
15856 +
15857 + else
15858 +  :
15859 + fi
15860 +
15861 + done
15862  
15863  
15864  
15865 <  # Check whether --enable-halfops was given.
15866 < if test "${enable_halfops+set}" = set; then :
15867 <  enableval=$enable_halfops; halfops="$enableval"
15865 >
15866 >
15867 > for flag in -Wwrite-strings; do
15868 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15869 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15870 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15871 > if eval \${$as_CACHEVAR+:} false; then :
15872 >  $as_echo_n "(cached) " >&6
15873 > else
15874 >
15875 >  ax_check_save_flags=$CFLAGS
15876 >  CFLAGS="$CFLAGS  $flag"
15877 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 > /* end confdefs.h.  */
15879 >
15880 > int
15881 > main ()
15882 > {
15883 >
15884 >  ;
15885 >  return 0;
15886 > }
15887 > _ACEOF
15888 > if ac_fn_c_try_compile "$LINENO"; then :
15889 >  eval "$as_CACHEVAR=yes"
15890   else
15891 <  halfops="no"
15891 >  eval "$as_CACHEVAR=no"
15892 > fi
15893 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 >  CFLAGS=$ax_check_save_flags
15895 > fi
15896 > eval ac_res=\$$as_CACHEVAR
15897 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15898 > $as_echo "$ac_res" >&6; }
15899 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15900 >  if ${CFLAGS+:} false; then :
15901 >  case " $CFLAGS " in
15902 >    *" $flag "*)
15903 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15904 >  (: CFLAGS already contains $flag) 2>&5
15905 >  ac_status=$?
15906 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 >  test $ac_status = 0; }
15908 >      ;;
15909 >    *)
15910 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15911 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15912 >  ac_status=$?
15913 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 >  test $ac_status = 0; }
15915 >      CFLAGS="$CFLAGS $flag"
15916 >      ;;
15917 >   esac
15918 > else
15919 >  CFLAGS="$flag"
15920   fi
15921  
15922 <  if test "$halfops" = "yes" ; then
15922 > else
15923 >  :
15924 > fi
15925  
15926 < $as_echo "#define HALFOPS 1" >>confdefs.h
15926 > done
15927  
15928    fi
15929  
15930  
15931 <  # Check whether --enable-debugging was given.
15932 < if test "${enable_debugging+set}" = set; then :
15933 <  enableval=$enable_debugging; debugging="$enableval"
15931 > # Check whether --enable-openssl was given.
15932 > if test "${enable_openssl+set}" = set; then :
15933 >  enableval=$enable_openssl;  cf_enable_openssl=$enableval
15934   else
15935 <  debugging="no"
15935 >   cf_enable_openssl="auto"
15936   fi
15937  
15938 <  if test "$debugging" = "yes" ; then
15939 <
15940 < $as_echo "#define DEBUG 1" >>confdefs.h
15941 <
15942 <    CFLAGS="-Wall -g -O0"
15938 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
15939 > $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
15940 > if test "$cf_enable_openssl" != "no"; then
15941 >  cf_openssl_basedir=""
15942 >  if test "$cf_enable_openssl" != "auto" &&
15943 >     test "$cf_enable_openssl" != "yes"; then
15944 >          cf_openssl_basedir="${cf_enable_openssl}"
15945    else
15946 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
15947 +                /opt /opt/openssl /usr/local/openssl; do
15948 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
15949 +        cf_openssl_basedir="${dirs}"
15950 +        break
15951 +      fi
15952 +    done
15953 +    unset dirs
15954 +  fi
15955  
15956 < $as_echo "#define NDEBUG 1" >>confdefs.h
15956 >    if test ! -z "$cf_openssl_basedir"; then
15957 >    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
15958 >      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
15959 >      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
15960 >    else
15961 >                  cf_openssl_basedir=""
15962 >    fi
15963 >  else
15964 >                            if test -f "/usr/include/openssl/opensslv.h"; then
15965 >      cf_openssl_basedir="/usr"
15966 >    fi
15967 >  fi
15968  
15969 +      if test ! -z "$cf_openssl_basedir"; then
15970 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15971 + $as_echo "$cf_openssl_basedir" >&6; }
15972 +    cf_enable_openssl="yes"
15973 +  else
15974 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
15975 + $as_echo "not found. Please check your path." >&6; }
15976 +    cf_enable_openssl="no"
15977    fi
15978 +  unset cf_openssl_basedir
15979 + else
15980 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15981 + $as_echo "disabled" >&6; }
15982 + fi
15983  
15984 + if test "$cf_enable_openssl" != "no"; then :
15985 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
15986 + $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
15987 +  if test "$cross_compiling" = yes; then :
15988 +  cf_openssl_version_ok=no
15989 + else
15990 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 + /* end confdefs.h.  */
15992  
15993 <  # Check whether --enable-warnings was given.
15994 < if test "${enable_warnings+set}" = set; then :
15995 <  enableval=$enable_warnings; warnings="$enableval"
15993 >
15994 >    #include <openssl/opensslv.h>
15995 >    #include <stdlib.h>
15996 > int
15997 > main ()
15998 > {
15999 > exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
16000 >  ;
16001 >  return 0;
16002 > }
16003 > _ACEOF
16004 > if ac_fn_c_try_run "$LINENO"; then :
16005 >  cf_openssl_version_ok=yes
16006   else
16007 <  warnings="no"
16007 >  cf_openssl_version_ok=no
16008 > fi
16009 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16010 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16011   fi
16012  
14507  if test "$warnings" = "yes" ; then
14508    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14509  fi
16013  
16014 +  if test "$cf_openssl_version_ok" = "yes"; then :
16015 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16016 + $as_echo "found" >&6; }
16017  
16018 <  for ac_header in syslog.h sys/syslog.h
16019 < do :
16020 <  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16021 < ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16022 < if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16018 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16019 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16020 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16021 >  $as_echo_n "(cached) " >&6
16022 > else
16023 >  ac_check_lib_save_LIBS=$LIBS
16024 > LIBS="-lcrypto  $LIBS"
16025 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 > /* end confdefs.h.  */
16027 >
16028 > /* Override any GCC internal prototype to avoid an error.
16029 >   Use char because int might match the return type of a GCC
16030 >   builtin and then its argument prototype would still apply.  */
16031 > #ifdef __cplusplus
16032 > extern "C"
16033 > #endif
16034 > char RSA_free ();
16035 > int
16036 > main ()
16037 > {
16038 > return RSA_free ();
16039 >  ;
16040 >  return 0;
16041 > }
16042 > _ACEOF
16043 > if ac_fn_c_try_link "$LINENO"; then :
16044 >  ac_cv_lib_crypto_RSA_free=yes
16045 > else
16046 >  ac_cv_lib_crypto_RSA_free=no
16047 > fi
16048 > rm -f core conftest.err conftest.$ac_objext \
16049 >    conftest$ac_exeext conftest.$ac_ext
16050 > LIBS=$ac_check_lib_save_LIBS
16051 > fi
16052 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16053 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16054 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16055    cat >>confdefs.h <<_ACEOF
16056 < #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16056 > #define HAVE_LIBCRYPTO 1
16057   _ACEOF
16058  
16059 +  LIBS="-lcrypto $LIBS"
16060 +
16061   fi
16062  
16063 < done
16063 >    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16064 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16065 > $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16066 > if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16067 >  $as_echo_n "(cached) " >&6
16068 > else
16069 >  ac_check_lib_save_LIBS=$LIBS
16070 > LIBS="-lssl  $LIBS"
16071 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 > /* end confdefs.h.  */
16073 >
16074 > /* Override any GCC internal prototype to avoid an error.
16075 >   Use char because int might match the return type of a GCC
16076 >   builtin and then its argument prototype would still apply.  */
16077 > #ifdef __cplusplus
16078 > extern "C"
16079 > #endif
16080 > char SSL_connect ();
16081 > int
16082 > main ()
16083 > {
16084 > return SSL_connect ();
16085 >  ;
16086 >  return 0;
16087 > }
16088 > _ACEOF
16089 > if ac_fn_c_try_link "$LINENO"; then :
16090 >  ac_cv_lib_ssl_SSL_connect=yes
16091 > else
16092 >  ac_cv_lib_ssl_SSL_connect=no
16093 > fi
16094 > rm -f core conftest.err conftest.$ac_objext \
16095 >    conftest$ac_exeext conftest.$ac_ext
16096 > LIBS=$ac_check_lib_save_LIBS
16097 > fi
16098 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16099 > $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16100 > if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16101 >  cat >>confdefs.h <<_ACEOF
16102 > #define HAVE_LIBSSL 1
16103 > _ACEOF
16104 >
16105 >  LIBS="-lssl $LIBS"
16106  
14525  # Check whether --enable-syslog was given.
14526 if test "${enable_syslog+set}" = set; then :
14527  enableval=$enable_syslog; syslog="$enableval"
14528 else
14529  syslog="no"
16107   fi
16108  
16109 <  if test "$enableval" != "no" ; then
14533 <    for option in $enableval ; do
14534 <      case "$option" in
14535 <        users)
14536 < $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
14537 < ;;
14538 <        oper)
14539 < $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
14540 < ;;
14541 <        yes) : ;;
14542 <        *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
14543 <      esac
14544 <    done
16109 > fi
16110  
16111 < $as_echo "#define USE_SYSLOG 1" >>confdefs.h
16111 > else
16112 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16113 > $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16114 >    cf_enable_openssl="no"
16115 > fi
16116 > fi
16117 >
16118 > if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
16119 >  ENABLE_SSL_TRUE=
16120 >  ENABLE_SSL_FALSE='#'
16121 > else
16122 >  ENABLE_SSL_TRUE='#'
16123 >  ENABLE_SSL_FALSE=
16124 > fi
16125  
14548  fi
16126  
16127  
16128  
# Line 14634 | Line 16211 | _ACEOF
16211    test "$exec_prefix_NONE" && exec_prefix=NONE
16212  
16213  
16214 < ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
16214 > 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"
16215  
16216  
16217   cat >confcache <<\_ACEOF
# Line 14746 | Line 16323 | LIBOBJS=$ac_libobjs
16323   LTLIBOBJS=$ac_ltlibobjs
16324  
16325  
16326 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16327 + $as_echo_n "checking that generated files are newer than configure... " >&6; }
16328 +   if test -n "$am_sleep_pid"; then
16329 +     # Hide warnings about reused PIDs.
16330 +     wait $am_sleep_pid 2>/dev/null
16331 +   fi
16332 +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16333 + $as_echo "done" >&6; }
16334   if test -n "$EXEEXT"; then
16335    am__EXEEXT_TRUE=
16336    am__EXEEXT_FALSE='#'
# Line 14792 | Line 16377 | LT_CONFIG_H=config.h
16377  
16378  
16379  
14795 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14796  as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 fi
16380   if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
16381    as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
16382   Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383   fi
14803 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14804  as_fn_error $? "conditional \"EFNET\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
16384  
16385   : "${CONFIG_STATUS=./config.status}"
16386   ac_write_fail=0
# Line 15102 | Line 16679 | if (echo >conf$$.file) 2>/dev/null; then
16679      # ... but there are two gotchas:
16680      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16681      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16682 <    # In both cases, we have to default to `cp -p'.
16682 >    # In both cases, we have to default to `cp -pR'.
16683      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16684 <      as_ln_s='cp -p'
16684 >      as_ln_s='cp -pR'
16685    elif ln conf$$.file conf$$ 2>/dev/null; then
16686      as_ln_s=ln
16687    else
16688 <    as_ln_s='cp -p'
16688 >    as_ln_s='cp -pR'
16689    fi
16690   else
16691 <  as_ln_s='cp -p'
16691 >  as_ln_s='cp -pR'
16692   fi
16693   rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16694   rmdir conf$$.dir 2>/dev/null
# Line 15171 | Line 16748 | else
16748    as_mkdir_p=false
16749   fi
16750  
16751 < if test -x / >/dev/null 2>&1; then
16752 <  as_test_x='test -x'
16753 < else
16754 <  if ls -dL / >/dev/null 2>&1; then
16755 <    as_ls_L_option=L
16756 <  else
16757 <    as_ls_L_option=
16758 <  fi
16759 <  as_test_x='
16760 <    eval sh -c '\''
15184 <      if test -d "$1"; then
15185 <        test -d "$1/.";
15186 <      else
15187 <        case $1 in #(
15188 <        -*)set "./$1";;
15189 <        esac;
15190 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15191 <        ???[sx]*):;;*)false;;esac;fi
15192 <    '\'' sh
15193 <  '
15194 < fi
15195 < as_executable_p=$as_test_x
16751 >
16752 > # as_fn_executable_p FILE
16753 > # -----------------------
16754 > # Test if FILE is an executable regular file.
16755 > as_fn_executable_p ()
16756 > {
16757 >  test -f "$1" && test -x "$1"
16758 > } # as_fn_executable_p
16759 > as_test_x='test -x'
16760 > as_executable_p=as_fn_executable_p
16761  
16762   # Sed expression to map a string onto a valid CPP name.
16763   as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Line 15213 | Line 16778 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
16778   # report actual input values of CONFIG_FILES etc. instead of their
16779   # values after options handling.
16780   ac_log="
16781 < This file was extended by ircd-hybrid $as_me 8beta1, which was
16782 < generated by GNU Autoconf 2.68.  Invocation command line was
16781 > This file was extended by ircd-hybrid $as_me 8.2.1, which was
16782 > generated by GNU Autoconf 2.69.  Invocation command line was
16783  
16784    CONFIG_FILES    = $CONFIG_FILES
16785    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 15279 | Line 16844 | _ACEOF
16844   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16845   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16846   ac_cs_version="\\
16847 < ircd-hybrid config.status 8beta1
16848 < configured by $0, generated by GNU Autoconf 2.68,
16847 > ircd-hybrid config.status 8.2.1
16848 > configured by $0, generated by GNU Autoconf 2.69,
16849    with options \\"\$ac_cs_config\\"
16850  
16851 < Copyright (C) 2010 Free Software Foundation, Inc.
16851 > Copyright (C) 2012 Free Software Foundation, Inc.
16852   This config.status script is free software; the Free Software Foundation
16853   gives unlimited permission to copy, distribute and modify it."
16854  
# Line 15374 | Line 16939 | fi
16939   _ACEOF
16940   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941   if \$ac_cs_recheck; then
16942 <  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16942 >  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16943    shift
16944    \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16945    CONFIG_SHELL='$SHELL'
# Line 15416 | Line 16981 | pic_mode='`$ECHO "$pic_mode" | $SED "$de
16981   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16982   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16983   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16984 + PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16985   host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16986   host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16987   host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
# Line 15462 | Line 17028 | compiler='`$ECHO "$compiler" | $SED "$de
17028   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17029   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17030   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17031 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17032   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17033   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"`'
17034 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17035   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17036   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17037 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17038   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17039   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17040   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15498 | Line 17067 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SE
17067   allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17068   no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17069   hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15501 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17070   hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17071   hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17072   hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
# Line 15554 | Line 17122 | _LTECHO_EOF'
17122   # Quote evaled strings.
17123   for var in SHELL \
17124   ECHO \
17125 + PATH_SEPARATOR \
17126   SED \
17127   GREP \
17128   EGREP \
# Line 15581 | Line 17150 | CFLAGS \
17150   compiler \
17151   lt_cv_sys_global_symbol_pipe \
17152   lt_cv_sys_global_symbol_to_cdecl \
17153 + lt_cv_sys_global_symbol_to_import \
17154   lt_cv_sys_global_symbol_to_c_name_address \
17155   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17156 + lt_cv_nm_interface \
17157   nm_file_list_spec \
17158 + lt_cv_truncate_bin \
17159   lt_prog_compiler_no_builtin_flag \
17160   lt_prog_compiler_pic \
17161   lt_prog_compiler_wl \
# Line 15604 | Line 17176 | with_gnu_ld \
17176   allow_undefined_flag \
17177   no_undefined_flag \
17178   hardcode_libdir_flag_spec \
15607 hardcode_libdir_flag_spec_ld \
17179   hardcode_libdir_separator \
17180   exclude_expsyms \
17181   include_expsyms \
# Line 15619 | Line 17190 | old_striplib \
17190   striplib; do
17191      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17192      *[\\\\\\\`\\"\\\$]*)
17193 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17193 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17194        ;;
17195      *)
17196        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15649 | Line 17220 | sys_lib_search_path_spec \
17220   sys_lib_dlsearch_path_spec; do
17221      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17222      *[\\\\\\\`\\"\\\$]*)
17223 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17223 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17224        ;;
17225      *)
17226        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15658 | Line 17229 | sys_lib_dlsearch_path_spec; do
17229   done
17230  
17231   ac_aux_dir='$ac_aux_dir'
15661 xsi_shell='$xsi_shell'
15662 lt_shell_append='$lt_shell_append'
17232  
17233 < # See if we are running on zsh, and set the options which allow our
17233 > # See if we are running on zsh, and set the options that allow our
17234   # commands through without removal of \ escapes INIT.
17235 < if test -n "\${ZSH_VERSION+set}" ; then
17235 > if test -n "\${ZSH_VERSION+set}"; then
17236     setopt NO_GLOB_SUBST
17237   fi
17238  
17239  
17240      PACKAGE='$PACKAGE'
17241      VERSION='$VERSION'
15673    TIMESTAMP='$TIMESTAMP'
17242      RM='$RM'
17243      ofile='$ofile'
17244  
# Line 15689 | Line 17257 | do
17257      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17258      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17259      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15692    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15693    "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15694    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15695    "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
17260      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17261      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15698    "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
17262      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17263      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
17264 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
17265      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17266      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15703    "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15704    "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
17267      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17268  
17269    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
# Line 16299 | Line 17861 | $as_echo "$as_me: executing $ac_file com
17861  
17862    case $ac_file$ac_mode in
17863      "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17864 <  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17864 >  # Older Autoconf quotes --file arguments for eval, but not when files
17865    # are listed without --file.  Let's play safe and only enable the eval
17866    # if we detect the quoting.
17867    case $CONFIG_FILES in
# Line 16312 | Line 17874 | $as_echo "$as_me: executing $ac_file com
17874      # Strip MF so we end up with the name of the file.
17875      mf=`echo "$mf" | sed -e 's/:.*$//'`
17876      # Check whether this is an Automake generated Makefile or not.
17877 <    # We used to match only the files named `Makefile.in', but
17877 >    # We used to match only the files named 'Makefile.in', but
17878      # some people rename them; so instead we look at the file content.
17879      # Grep'ing the first line is not enough: some people post-process
17880      # each Makefile.in and add a new line on top of each file to say so.
# Line 16346 | Line 17908 | $as_echo X"$mf" |
17908        continue
17909      fi
17910      # Extract the definition of DEPDIR, am__include, and am__quote
17911 <    # from the Makefile without running `make'.
17911 >    # from the Makefile without running 'make'.
17912      DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17913      test -z "$DEPDIR" && continue
17914      am__include=`sed -n 's/^am__include = //p' < "$mf"`
17915 <    test -z "am__include" && continue
17915 >    test -z "$am__include" && continue
17916      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16355    # When using ansi2knr, U may be empty or an underscore; expand it
16356    U=`sed -n 's/^U = //p' < "$mf"`
17917      # Find all dependency output files, they are included files with
17918      # $(DEPDIR) in their names.  We invoke sed twice because it is the
17919      # simplest approach to changing $(DEPDIR) to its actual value in the
17920      # expansion.
17921      for file in `sed -n "
17922        s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17923 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17923 >         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17924        # Make sure the directory exists.
17925        test -f "$dirpart/$file" && continue
17926        fdir=`$as_dirname -- "$file" ||
# Line 16395 | Line 17955 | $as_echo X"$file" |
17955   ;;
17956      "libtool":C)
17957  
17958 <    # See if we are running on zsh, and set the options which allow our
17958 >    # See if we are running on zsh, and set the options that allow our
17959      # commands through without removal of \ escapes.
17960 <    if test -n "${ZSH_VERSION+set}" ; then
17960 >    if test -n "${ZSH_VERSION+set}"; then
17961        setopt NO_GLOB_SUBST
17962      fi
17963  
17964 <    cfgfile="${ofile}T"
17964 >    cfgfile=${ofile}T
17965      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17966      $RM "$cfgfile"
17967  
17968      cat <<_LT_EOF >> "$cfgfile"
17969   #! $SHELL
17970 <
16411 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16412 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17970 > # Generated automatically by $as_me ($PACKAGE) $VERSION
17971   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17972   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17973 +
17974 + # Provide generalized library-building support services.
17975 + # Written by Gordon Matzigkeit, 1996
17976 +
17977 + # Copyright (C) 2014 Free Software Foundation, Inc.
17978 + # This is free software; see the source for copying conditions.  There is NO
17979 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17980 +
17981 + # GNU Libtool is free software; you can redistribute it and/or modify
17982 + # it under the terms of the GNU General Public License as published by
17983 + # the Free Software Foundation; either version 2 of of the License, or
17984 + # (at your option) any later version.
17985   #
17986 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17987 < #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17988 < #                 Inc.
17989 < #   Written by Gordon Matzigkeit, 1996
16420 < #
16421 < #   This file is part of GNU Libtool.
16422 < #
16423 < # GNU Libtool is free software; you can redistribute it and/or
16424 < # modify it under the terms of the GNU General Public License as
16425 < # published by the Free Software Foundation; either version 2 of
16426 < # the License, or (at your option) any later version.
16427 < #
16428 < # As a special exception to the GNU General Public License,
16429 < # if you distribute this file as part of a program or library that
16430 < # is built using GNU Libtool, you may include this file under the
16431 < # same distribution terms that you use for the rest of that program.
17986 > # As a special exception to the GNU General Public License, if you
17987 > # distribute this file as part of a program or library that is built
17988 > # using GNU Libtool, you may include this file under the  same
17989 > # distribution terms that you use for the rest of that program.
17990   #
17991 < # GNU Libtool is distributed in the hope that it will be useful,
17992 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
17991 > # GNU Libtool is distributed in the hope that it will be useful, but
17992 > # WITHOUT ANY WARRANTY; without even the implied warranty of
17993   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17994   # GNU General Public License for more details.
17995   #
17996   # You should have received a copy of the GNU General Public License
17997 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16440 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16441 < # obtained by writing to the Free Software Foundation, Inc.,
16442 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17997 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17998  
17999  
18000   # The names of the tagged configurations supported by this script.
18001 < available_tags=""
18001 > available_tags=''
18002  
18003   # ### BEGIN LIBTOOL CONFIG
18004  
# Line 16469 | Line 18024 | SHELL=$lt_SHELL
18024   # An echo program that protects backslashes.
18025   ECHO=$lt_ECHO
18026  
18027 + # The PATH separator for the build system.
18028 + PATH_SEPARATOR=$lt_PATH_SEPARATOR
18029 +
18030   # The host system.
18031   host_alias=$host_alias
18032   host=$host
# Line 16577 | Line 18135 | global_symbol_pipe=$lt_lt_cv_sys_global_
18135   # Transform the output of nm in a proper C declaration.
18136   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18137  
18138 + # Transform the output of nm into a list of symbols to manually relocate.
18139 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18140 +
18141   # Transform the output of nm in a C name address pair.
18142   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18143  
18144   # Transform the output of nm in a C name address pair when lib prefix is needed.
18145   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18146  
18147 + # The name lister interface.
18148 + nm_interface=$lt_lt_cv_nm_interface
18149 +
18150   # Specify filename containing input files for \$NM.
18151   nm_file_list_spec=$lt_nm_file_list_spec
18152  
18153 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18153 > # The root where to search for dependent libraries,and where our libraries should be installed.
18154   lt_sysroot=$lt_sysroot
18155  
18156 + # Command to truncate a binary pipe.
18157 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18158 +
18159   # The name of the directory that contains temporary libtool files.
18160   objdir=$objdir
18161  
# Line 16770 | Line 18337 | no_undefined_flag=$lt_no_undefined_flag
18337   # This must work even if \$libdir does not exist
18338   hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18339  
16773 # If ld is used when linking, flag to hardcode \$libdir into a binary
16774 # during linking.  This must work even if \$libdir does not exist.
16775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16776
18340   # Whether we need a single "-rpath" flag with a separated argument.
18341   hardcode_libdir_separator=$lt_hardcode_libdir_separator
18342  
18343 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18343 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18344   # DIR into the resulting binary.
18345   hardcode_direct=$hardcode_direct
18346  
18347 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18347 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18348   # DIR into the resulting binary and the resulting library dependency is
18349 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18349 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18350   # library is relocated.
18351   hardcode_direct_absolute=$hardcode_direct_absolute
18352  
# Line 16841 | Line 18404 | _LT_EOF
18404   # AIX sometimes has problems with the GCC collect2 program.  For some
18405   # reason, if we set the COLLECT_NAMES environment variable, the problems
18406   # vanish in a puff of smoke.
18407 < if test "X${COLLECT_NAMES+set}" != Xset; then
18407 > if test set != "${COLLECT_NAMES+set}"; then
18408    COLLECT_NAMES=
18409    export COLLECT_NAMES
18410   fi
# Line 16850 | Line 18413 | _LT_EOF
18413    esac
18414  
18415  
18416 < ltmain="$ac_aux_dir/ltmain.sh"
18416 > ltmain=$ac_aux_dir/ltmain.sh
18417  
18418  
18419    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16860 | Line 18423 | ltmain="$ac_aux_dir/ltmain.sh"
18423    sed '$q' "$ltmain" >> "$cfgfile" \
18424       || (rm -f "$cfgfile"; exit 1)
18425  
16863  if test x"$xsi_shell" = xyes; then
16864  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16865 func_dirname ()\
16866 {\
16867 \    case ${1} in\
16868 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16869 \      *  ) func_dirname_result="${3}" ;;\
16870 \    esac\
16871 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16872  && mv -f "$cfgfile.tmp" "$cfgfile" \
16873    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16874 test 0 -eq $? || _lt_function_replace_fail=:
16875
16876
16877  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16878 func_basename ()\
16879 {\
16880 \    func_basename_result="${1##*/}"\
16881 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16882  && mv -f "$cfgfile.tmp" "$cfgfile" \
16883    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16884 test 0 -eq $? || _lt_function_replace_fail=:
16885
16886
16887  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16888 func_dirname_and_basename ()\
16889 {\
16890 \    case ${1} in\
16891 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16892 \      *  ) func_dirname_result="${3}" ;;\
16893 \    esac\
16894 \    func_basename_result="${1##*/}"\
16895 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16896  && mv -f "$cfgfile.tmp" "$cfgfile" \
16897    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16898 test 0 -eq $? || _lt_function_replace_fail=:
16899
16900
16901  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16902 func_stripname ()\
16903 {\
16904 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16905 \    # positional parameters, so assign one to ordinary parameter first.\
16906 \    func_stripname_result=${3}\
16907 \    func_stripname_result=${func_stripname_result#"${1}"}\
16908 \    func_stripname_result=${func_stripname_result%"${2}"}\
16909 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16910  && mv -f "$cfgfile.tmp" "$cfgfile" \
16911    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16912 test 0 -eq $? || _lt_function_replace_fail=:
16913
16914
16915  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16916 func_split_long_opt ()\
16917 {\
16918 \    func_split_long_opt_name=${1%%=*}\
16919 \    func_split_long_opt_arg=${1#*=}\
16920 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16921  && mv -f "$cfgfile.tmp" "$cfgfile" \
16922    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16923 test 0 -eq $? || _lt_function_replace_fail=:
16924
16925
16926  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16927 func_split_short_opt ()\
16928 {\
16929 \    func_split_short_opt_arg=${1#??}\
16930 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16931 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16932  && mv -f "$cfgfile.tmp" "$cfgfile" \
16933    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16934 test 0 -eq $? || _lt_function_replace_fail=:
16935
16936
16937  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16938 func_lo2o ()\
16939 {\
16940 \    case ${1} in\
16941 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16942 \      *)    func_lo2o_result=${1} ;;\
16943 \    esac\
16944 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16945  && mv -f "$cfgfile.tmp" "$cfgfile" \
16946    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16947 test 0 -eq $? || _lt_function_replace_fail=:
16948
16949
16950  sed -e '/^func_xform ()$/,/^} # func_xform /c\
16951 func_xform ()\
16952 {\
16953    func_xform_result=${1%.*}.lo\
16954 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16955  && mv -f "$cfgfile.tmp" "$cfgfile" \
16956    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16957 test 0 -eq $? || _lt_function_replace_fail=:
16958
16959
16960  sed -e '/^func_arith ()$/,/^} # func_arith /c\
16961 func_arith ()\
16962 {\
16963    func_arith_result=$(( $* ))\
16964 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16965  && mv -f "$cfgfile.tmp" "$cfgfile" \
16966    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16967 test 0 -eq $? || _lt_function_replace_fail=:
16968
16969
16970  sed -e '/^func_len ()$/,/^} # func_len /c\
16971 func_len ()\
16972 {\
16973    func_len_result=${#1}\
16974 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16975  && mv -f "$cfgfile.tmp" "$cfgfile" \
16976    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16977 test 0 -eq $? || _lt_function_replace_fail=:
16978
16979 fi
16980
16981 if test x"$lt_shell_append" = xyes; then
16982  sed -e '/^func_append ()$/,/^} # func_append /c\
16983 func_append ()\
16984 {\
16985    eval "${1}+=\\${2}"\
16986 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16987  && mv -f "$cfgfile.tmp" "$cfgfile" \
16988    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $? || _lt_function_replace_fail=:
16990
16991
16992  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16993 func_append_quoted ()\
16994 {\
16995 \    func_quote_for_eval "${2}"\
16996 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16997 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16998  && mv -f "$cfgfile.tmp" "$cfgfile" \
16999    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000 test 0 -eq $? || _lt_function_replace_fail=:
17001
17002
17003  # Save a `func_append' function call where possible by direct use of '+='
17004  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17005    && mv -f "$cfgfile.tmp" "$cfgfile" \
17006      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17007  test 0 -eq $? || _lt_function_replace_fail=:
17008 else
17009  # Save a `func_append' function call even when '+=' is not available
17010  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17011    && mv -f "$cfgfile.tmp" "$cfgfile" \
17012      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17013  test 0 -eq $? || _lt_function_replace_fail=:
17014 fi
17015
17016 if test x"$_lt_function_replace_fail" = x":"; then
17017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17018 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17019 fi
17020
17021
18426     mv -f "$cfgfile" "$ofile" ||
18427      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18428    chmod +x "$ofile"

Comparing:
ircd-hybrid-8/configure (property svn:eol-style), Revision 1252 by michael, Fri Oct 21 20:24:08 2011 UTC vs.
ircd-hybrid/trunk/configure (property svn:eol-style), Revision 4906 by michael, Sat Nov 22 21:40:31 2014 UTC

# Line 0 | Line 1
1 + native

Diff Legend

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