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

Comparing:
ircd-hybrid-8/configure (file contents), Revision 1257 by michael, Sun Jan 15 06:28:46 2012 UTC vs.
ircd-hybrid/branches/8.2.x/configure (file contents), Revision 8357 by michael, Sun Mar 4 13:57:37 2018 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 8354 2018-03-04 13:55:42Z 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.23.
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.23'
597 > PACKAGE_STRING='ircd-hybrid 8.2.23'
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
633 ENABLE_SSL_FALSE
634 ENABLE_SSL_TRUE
635 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
651   LTDLOPEN
652   LT_CONFIG_H
653   CONVENIENCE_LTDL_FALSE
654   CONVENIENCE_LTDL_TRUE
655   INSTALL_LTDL_FALSE
656   INSTALL_LTDL_TRUE
657 < ARGZ_H
657 > LT_ARGZ_H
658   sys_symbol_underscore
659   LIBADD_DL
660   LT_DLPREOPEN
# Line 653 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
# Line 707 | Line 722 | CC
722   MAINT
723   MAINTAINER_MODE_FALSE
724   MAINTAINER_MODE_TRUE
725 + AM_BACKSLASH
726 + AM_DEFAULT_VERBOSITY
727 + AM_DEFAULT_V
728 + AM_V
729   am__untar
730   am__tar
731   AMTAR
# Line 771 | Line 790 | SHELL'
790   ac_subst_files=''
791   ac_user_opts='
792   enable_option_checking
793 + enable_silent_rules
794   enable_maintainer_mode
795   enable_dependency_tracking
796   enable_static
797   enable_shared
798   with_pic
799   enable_fast_install
800 + with_aix_soname
801   with_gnu_ld
802   with_sysroot
803   enable_libtool_lock
# Line 784 | Line 805 | with_included_ltdl
805   with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
787 with_zlib_path
788 enable_zlib
789 with_libpcre_path
790 enable_libpcre
791 enable_openssl
792 enable_assert
793 enable_small_net
808   enable_kqueue
809   enable_epoll
810   enable_devpoll
797 enable_rtsigio
811   enable_poll
812 < enable_select
800 < with_nicklen
801 < with_topiclen
802 < with_syslog_facility
803 < enable_efnet
804 < enable_halfops
812 > enable_assert
813   enable_debugging
814   enable_warnings
815 < enable_syslog
815 > enable_efence
816 > enable_mempool
817 > enable_openssl
818 > enable_gnutls
819   '
820        ac_precious_vars='build_alias
821   host_alias
# Line 816 | Line 827 | LIBS
827   CPPFLAGS
828   YACC
829   YFLAGS
830 + LT_SYS_LIBRARY_PATH
831   CPP'
832  
833  
# Line 1272 | Line 1284 | target=$target_alias
1284   if test "x$host_alias" != x; then
1285    if test "x$build_alias" = x; then
1286      cross_compiling=maybe
1275    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1276    If a cross compiler is detected then cross compile mode will be used" >&2
1287    elif test "x$build_alias" != "x$host_alias"; then
1288      cross_compiling=yes
1289    fi
# Line 1359 | Line 1369 | if test "$ac_init_help" = "long"; then
1369    # Omit some internal or obsolete options to make the list less imposing.
1370    # This message is too long to be a string in the A/UX 3.1 sh.
1371    cat <<_ACEOF
1372 < \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1372 > \`configure' configures ircd-hybrid 8.2.23 to adapt to many kinds of systems.
1373  
1374   Usage: $0 [OPTION]... [VAR=VALUE]...
1375  
# Line 1429 | Line 1439 | fi
1439  
1440   if test -n "$ac_init_help"; then
1441    case $ac_init_help in
1442 <     short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1442 >     short | recursive ) echo "Configuration of ircd-hybrid 8.2.23:";;
1443     esac
1444    cat <<\_ACEOF
1445  
# Line 1437 | Line 1447 | Optional Features:
1447    --disable-option-checking  ignore unrecognized --enable/--with options
1448    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450 <  --enable-maintainer-mode  enable make rules and dependencies not useful
1451 <                          (and sometimes confusing) to the casual installer
1452 <  --disable-dependency-tracking  speeds up one-time build
1453 <  --enable-dependency-tracking   do not reject slow dependency extractors
1450 >  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451 >  --disable-silent-rules  verbose build output (undo: "make V=0")
1452 >  --enable-maintainer-mode
1453 >                          enable make rules and dependencies not useful (and
1454 >                          sometimes confusing) to the casual installer
1455 >  --enable-dependency-tracking
1456 >                          do not reject slow dependency extractors
1457 >  --disable-dependency-tracking
1458 >                          speeds up one-time build
1459    --enable-static[=PKGS]  build static libraries [default=no]
1460    --enable-shared[=PKGS]  build shared libraries [default=yes]
1461    --enable-fast-install[=PKGS]
1462                            optimize for fast installation [default=yes]
1463    --disable-libtool-lock  avoid locking (might break parallel builds)
1464    --enable-ltdl-install   install libltdl
1450  --disable-zlib          Disable ziplinks support
1451  --disable-libpcre       Disable PCRE support
1452  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1453  --disable-openssl            Disable OpenSSL support.
1454  --enable-assert         Enable assert() statements
1455  --enable-small-net      Enable small network support.
1465    --enable-kqueue         Force kqueue usage.
1466    --enable-epoll          Force epoll usage.
1467    --enable-devpoll        Force devpoll usage.
1459  --enable-rtsigio        Force rtsigio usage.
1468    --enable-poll           Force poll usage.
1469 <  --enable-select         Force select usage.
1462 <  --enable-efnet          For IRCDs running on EFnet.
1463 <  --enable-halfops        Enable halfops support.
1469 >  --enable-assert         Enable assert() statements
1470    --enable-debugging      Enable debugging.
1471    --enable-warnings       Enable compiler warnings.
1472 <  --enable-syslog="EVENTS"
1473 <                          Enable syslog for events: users oper (space
1474 <                          separated in quotes; default: disabled).
1472 >  --enable-efence         Enable linking with Electric Fence 'efence' memory
1473 >                          debugger library.
1474 >  --disable-mempool       Disables the memory pooling allocator.
1475 >  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1476 >  --disable-openssl            Disable LibreSSL/OpenSSL support.
1477 >  --enable-gnutls             Enable GnuTLS support.
1478 >  --disable-gnutls             Disable GnuTLS support.
1479  
1480   Optional Packages:
1481    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                            both]
1485 +  --with-aix-soname=aix|svr4|both
1486 +                          shared library versioning (aka "SONAME") variant to
1487 +                          provide on AIX, [default=aix].
1488    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489 <  --with-sysroot=DIR Search for dependent libraries within DIR
1490 <                        (or the compiler's sysroot if not specified).
1489 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1490 >                          compiler's sysroot if not specified).
1491    --with-included-ltdl    use the GNU ltdl sources included here
1492    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1481  --with-zlib-path=DIR    Path to libz.so for ziplinks support.
1482  --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1483  --with-nicklen=<value>  Set nickname length (default 9).
1484  --with-topiclen=<value> Set topic length (default 160).
1485  --with-syslog-facility=LOG
1486                          Define the syslog facility to use (default:
1487                          LOG_LOCAL4)
1494  
1495   Some influential environment variables:
1496    CC          C compiler command
# Line 1500 | Line 1506 | Some influential environment variables:
1506    YFLAGS      The list of arguments that will be passed by default to $YACC.
1507                This script will default YFLAGS to the empty string to avoid a
1508                default value of `-d' given by some make applications.
1509 +  LT_SYS_LIBRARY_PATH
1510 +              User-defined run-time library search path.
1511    CPP         C preprocessor
1512  
1513   Use these variables to override the choices made by `configure' or to help
# Line 1568 | Line 1576 | fi
1576   test -n "$ac_init_help" && exit $ac_status
1577   if $ac_init_version; then
1578    cat <<\_ACEOF
1579 < ircd-hybrid configure 8beta1
1580 < generated by GNU Autoconf 2.68
1579 > ircd-hybrid configure 8.2.23
1580 > generated by GNU Autoconf 2.69
1581  
1582 < Copyright (C) 2010 Free Software Foundation, Inc.
1582 > Copyright (C) 2012 Free Software Foundation, Inc.
1583   This configure script is free software; the Free Software Foundation
1584   gives unlimited permission to copy, distribute and modify it.
1585   _ACEOF
# Line 1647 | Line 1655 | $as_echo "$ac_try_echo"; } >&5
1655           test ! -s conftest.err
1656         } && test -s conftest$ac_exeext && {
1657           test "$cross_compiling" = yes ||
1658 <         $as_test_x conftest$ac_exeext
1658 >         test -x conftest$ac_exeext
1659         }; then :
1660    ac_retval=0
1661   else
# Line 1943 | Line 1951 | $as_echo "$ac_res" >&6; }
1951  
1952   } # ac_fn_c_check_type
1953  
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957 else
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967  ;
1968  return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$4=yes"
1973 else
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983  ;
1984  return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988  eval "$4=yes"
1989 else
1990  eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
1954   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955   # -------------------------------------------------------
1956   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2094 | Line 2045 | cat >config.log <<_ACEOF
2045   This file contains any messages produced by compilers while
2046   running configure, to aid debugging if configure makes a mistake.
2047  
2048 < It was created by ircd-hybrid $as_me 8beta1, which was
2049 < generated by GNU Autoconf 2.68.  Invocation command line was
2048 > It was created by ircd-hybrid $as_me 8.2.23, which was
2049 > generated by GNU Autoconf 2.69.  Invocation command line was
2050  
2051    $ $0 $@
2052  
# Line 2374 | Line 2325 | $as_echo "$as_me: creating cache $cache_
2325    >$cache_file
2326   fi
2327  
2377 as_fn_append ac_func_list " mmap"
2328   as_fn_append ac_func_list " strtok_r"
2379 as_fn_append ac_func_list " usleep"
2329   as_fn_append ac_func_list " strlcat"
2330   as_fn_append ac_func_list " strlcpy"
2382 as_fn_append ac_func_list " socketpair"
2331   as_fn_append ac_header_list " crypt.h"
2384 as_fn_append ac_header_list " inttypes.h"
2385 as_fn_append ac_header_list " stdint.h"
2386 as_fn_append ac_header_list " sys/resource.h"
2332   as_fn_append ac_header_list " sys/param.h"
2388 as_fn_append ac_header_list " errno.h"
2389 as_fn_append ac_header_list " sys/syslog.h"
2333   as_fn_append ac_header_list " types.h"
2334   as_fn_append ac_header_list " socket.h"
2335   as_fn_append ac_header_list " sys/wait.h"
2393 as_fn_append ac_header_list " wait.h"
2394 as_fn_append ac_header_list " link.h"
2336   # Check that the precious variables saved in the cache have kept the same
2337   # value.
2338   ac_cache_corrupted=false
# Line 2460 | Line 2401 | ac_link='$CC -o conftest$ac_exeext $CFLA
2401   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402  
2403  
2404 < am__api_version='1.11'
2404 > am__api_version='1.15'
2405  
2406   ac_aux_dir=
2407   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
# Line 2528 | Line 2469 | case $as_dir/ in #((
2469      # by default.
2470      for ac_prog in ginstall scoinst install; do
2471        for ac_exec_ext in '' $ac_executable_extensions; do
2472 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2472 >        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2473            if test $ac_prog = install &&
2474              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475              # AIX install.  It has an incompatible calling convention.
# Line 2586 | Line 2527 | test -z "$INSTALL_DATA" && INSTALL_DATA=
2527  
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2529   $as_echo_n "checking whether build environment is sane... " >&6; }
2589 # Just in case
2590 sleep 1
2591 echo timestamp > conftest.file
2530   # Reject unsafe characters in $srcdir or the absolute working directory
2531   # name.  Accept space and tab only in the latter.
2532   am_lf='
# Line 2599 | Line 2537 | case `pwd` in
2537   esac
2538   case $srcdir in
2539    *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2540 <    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2540 >    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2541   esac
2542  
2543 < # Do `set' in a subshell so we don't clobber the current shell's
2543 > # Do 'set' in a subshell so we don't clobber the current shell's
2544   # arguments.  Must try -L first in case configure is actually a
2545   # symlink; some systems play weird games with the mod time of symlinks
2546   # (eg FreeBSD returns the mod time of the symlink's containing
2547   # directory).
2548   if (
2549 <   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2550 <   if test "$*" = "X"; then
2551 <      # -L didn't work.
2552 <      set X `ls -t "$srcdir/configure" conftest.file`
2553 <   fi
2554 <   rm -f conftest.file
2555 <   if test "$*" != "X $srcdir/configure conftest.file" \
2556 <      && test "$*" != "X conftest.file $srcdir/configure"; then
2557 <
2558 <      # If neither matched, then we have a broken ls.  This can happen
2621 <      # if, for instance, CONFIG_SHELL is bash and it inherits a
2622 <      # broken ls alias from the environment.  This has actually
2623 <      # happened.  Such a system could not be considered "sane".
2624 <      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2625 < alias in your environment" "$LINENO" 5
2626 <   fi
2549 >   am_has_slept=no
2550 >   for am_try in 1 2; do
2551 >     echo "timestamp, slept: $am_has_slept" > conftest.file
2552 >     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2553 >     if test "$*" = "X"; then
2554 >        # -L didn't work.
2555 >        set X `ls -t "$srcdir/configure" conftest.file`
2556 >     fi
2557 >     if test "$*" != "X $srcdir/configure conftest.file" \
2558 >        && test "$*" != "X conftest.file $srcdir/configure"; then
2559  
2560 +        # If neither matched, then we have a broken ls.  This can happen
2561 +        # if, for instance, CONFIG_SHELL is bash and it inherits a
2562 +        # broken ls alias from the environment.  This has actually
2563 +        # happened.  Such a system could not be considered "sane".
2564 +        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2565 +  alias in your environment" "$LINENO" 5
2566 +     fi
2567 +     if test "$2" = conftest.file || test $am_try -eq 2; then
2568 +       break
2569 +     fi
2570 +     # Just in case.
2571 +     sleep 1
2572 +     am_has_slept=yes
2573 +   done
2574     test "$2" = conftest.file
2575     )
2576   then
# Line 2636 | Line 2582 | Check your system clock" "$LINENO" 5
2582   fi
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2584   $as_echo "yes" >&6; }
2585 + # If we didn't sleep, we still need to ensure time stamps of config.status and
2586 + # generated files are strictly newer.
2587 + am_sleep_pid=
2588 + if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2589 +  ( sleep 1 ) &
2590 +  am_sleep_pid=$!
2591 + fi
2592 +
2593 + rm -f conftest.file
2594 +
2595   test "$program_prefix" != NONE &&
2596    program_transform_name="s&^&$program_prefix&;$program_transform_name"
2597   # Use a double $ so make ignores it.
# Line 2646 | Line 2602 | test "$program_suffix" != NONE &&
2602   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2603   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2604  
2605 < # expand $ac_aux_dir to an absolute path
2606 < am_aux_dir=`cd $ac_aux_dir && pwd`
2605 > # Expand $ac_aux_dir to an absolute path.
2606 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2607  
2608   if test x"${MISSING+set}" != xset; then
2609    case $am_aux_dir in
# Line 2658 | Line 2614 | if test x"${MISSING+set}" != xset; then
2614    esac
2615   fi
2616   # Use eval to expand $SHELL
2617 < if eval "$MISSING --run true"; then
2618 <  am_missing_run="$MISSING --run "
2617 > if eval "$MISSING --is-lightweight"; then
2618 >  am_missing_run="$MISSING "
2619   else
2620    am_missing_run=
2621 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2622 < $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2621 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2622 > $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2623   fi
2624  
2625 < if test x"${install_sh}" != xset; then
2625 > if test x"${install_sh+set}" != xset; then
2626    case $am_aux_dir in
2627    *\ * | *\     *)
2628      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2675 | Line 2631 | if test x"${install_sh}" != xset; then
2631    esac
2632   fi
2633  
2634 < # Installed binaries are usually stripped using `strip' when the user
2635 < # run `make install-strip'.  However `strip' might not be the right
2634 > # Installed binaries are usually stripped using 'strip' when the user
2635 > # run "make install-strip".  However 'strip' might not be the right
2636   # tool to use in cross-compilation environments, therefore Automake
2637 < # will honor the `STRIP' environment variable to overrule this program.
2637 > # will honor the 'STRIP' environment variable to overrule this program.
2638   if test "$cross_compiling" != no; then
2639    if test -n "$ac_tool_prefix"; then
2640    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
# Line 2697 | Line 2653 | do
2653    IFS=$as_save_IFS
2654    test -z "$as_dir" && as_dir=.
2655      for ac_exec_ext in '' $ac_executable_extensions; do
2656 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2658      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659      break 2
# Line 2737 | Line 2693 | do
2693    IFS=$as_save_IFS
2694    test -z "$as_dir" && as_dir=.
2695      for ac_exec_ext in '' $ac_executable_extensions; do
2696 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697      ac_cv_prog_ac_ct_STRIP="strip"
2698      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699      break 2
# Line 2788 | Line 2744 | do
2744    test -z "$as_dir" && as_dir=.
2745      for ac_prog in mkdir gmkdir; do
2746           for ac_exec_ext in '' $ac_executable_extensions; do
2747 <           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2747 >           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2748             case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2749               'mkdir (GNU coreutils) '* | \
2750               'mkdir (coreutils) '* | \
# Line 2817 | Line 2773 | fi
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2774   $as_echo "$MKDIR_P" >&6; }
2775  
2820 mkdir_p="$MKDIR_P"
2821 case $mkdir_p in
2822  [\\/$]* | ?:[\\/]*) ;;
2823  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2824 esac
2825
2776   for ac_prog in gawk mawk nawk awk
2777   do
2778    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 2841 | Line 2791 | do
2791    IFS=$as_save_IFS
2792    test -z "$as_dir" && as_dir=.
2793      for ac_exec_ext in '' $ac_executable_extensions; do
2794 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795      ac_cv_prog_AWK="$ac_prog"
2796      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797      break 2
# Line 2905 | Line 2855 | else
2855   fi
2856   rmdir .tst 2>/dev/null
2857  
2858 + # Check whether --enable-silent-rules was given.
2859 + if test "${enable_silent_rules+set}" = set; then :
2860 +  enableval=$enable_silent_rules;
2861 + fi
2862 +
2863 + case $enable_silent_rules in # (((
2864 +  yes) AM_DEFAULT_VERBOSITY=0;;
2865 +   no) AM_DEFAULT_VERBOSITY=1;;
2866 +    *) AM_DEFAULT_VERBOSITY=1;;
2867 + esac
2868 + am_make=${MAKE-make}
2869 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2870 + $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2871 + if ${am_cv_make_support_nested_variables+:} false; then :
2872 +  $as_echo_n "(cached) " >&6
2873 + else
2874 +  if $as_echo 'TRUE=$(BAR$(V))
2875 + BAR0=false
2876 + BAR1=true
2877 + V=1
2878 + am__doit:
2879 +        @$(TRUE)
2880 + .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2881 +  am_cv_make_support_nested_variables=yes
2882 + else
2883 +  am_cv_make_support_nested_variables=no
2884 + fi
2885 + fi
2886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2887 + $as_echo "$am_cv_make_support_nested_variables" >&6; }
2888 + if test $am_cv_make_support_nested_variables = yes; then
2889 +    AM_V='$(V)'
2890 +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2891 + else
2892 +  AM_V=$AM_DEFAULT_VERBOSITY
2893 +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2894 + fi
2895 + AM_BACKSLASH='\'
2896 +
2897   if test "`cd $srcdir && pwd`" != "`pwd`"; then
2898    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2899    # is not polluted with repeated "-I."
# Line 2927 | Line 2916 | fi
2916  
2917   # Define the identity of the package.
2918   PACKAGE='ircd-hybrid'
2919 < VERSION='8beta1'
2919 > VERSION='8.2.23'
2920  
2921  
2922   cat >>confdefs.h <<_ACEOF
# Line 2955 | Line 2944 | AUTOHEADER=${AUTOHEADER-"${am_missing_ru
2944  
2945   MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2946  
2947 < # We need awk for the "check" target.  The system "awk" is bad on
2948 < # some platforms.
2949 < # Always define AMTAR for backward compatibility.
2947 > # For better backward compatibility.  To be removed once Automake 1.9.x
2948 > # dies out for good.  For more background, see:
2949 > # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2950 > # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2951 > mkdir_p='$(MKDIR_P)'
2952 >
2953 > # We need awk for the "check" target (and possibly the TAP driver).  The
2954 > # system "awk" is bad on some platforms.
2955 > # Always define AMTAR for backward compatibility.  Yes, it's still used
2956 > # in the wild :-(  We should find a proper way to deprecate it ...
2957 > AMTAR='$${TAR-tar}'
2958 >
2959 >
2960 > # We'll loop over all known methods to create a tar archive until one works.
2961 > _am_tools='gnutar  pax cpio none'
2962 >
2963 > am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2964 >
2965  
2962 AMTAR=${AMTAR-"${am_missing_run}tar"}
2966  
2964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967  
2968  
2969  
2970 + # POSIX will say in a future version that running "rm -f" with no argument
2971 + # is OK; and we want to be able to make that assumption in our Makefile
2972 + # recipes.  So use an aggressive probe to check that the usage we want is
2973 + # actually supported "in the wild" to an acceptable degree.
2974 + # See automake bug#10828.
2975 + # To make any issue more visible, cause the running configure to be aborted
2976 + # by default if the 'rm' program in use doesn't match our expectations; the
2977 + # user can still override this though.
2978 + if rm -f && rm -fr && rm -rf; then : OK; else
2979 +  cat >&2 <<'END'
2980 + Oops!
2981  
2982 + Your 'rm' program seems unable to run without file operands specified
2983 + on the command line, even when the '-f' option is present.  This is contrary
2984 + to the behaviour of most rm programs out there, and not conforming with
2985 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2986 +
2987 + Please tell bug-automake@gnu.org about your system, including the value
2988 + of your $PATH and any error possibly output before this message.  This
2989 + can help us improve future automake versions.
2990 +
2991 + END
2992 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2993 +    echo 'Configuration will proceed anyway, since you have set the' >&2
2994 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2995 +    echo >&2
2996 +  else
2997 +    cat >&2 <<'END'
2998 + Aborting the configuration process, to ensure you take notice of the issue.
2999 +
3000 + You can download and install GNU coreutils to get an 'rm' implementation
3001 + that behaves properly: <http://www.gnu.org/software/coreutils/>.
3002 +
3003 + If you want to complete the configuration process using your problematic
3004 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3005 + to "yes", and re-run configure.
3006 +
3007 + END
3008 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3009 +  fi
3010 + fi
3011  
3012  
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Line 2990 | Line 3032 | fi
3032    MAINT=$MAINTAINER_MODE_TRUE
3033  
3034  
3035 +
3036   ac_config_headers="$ac_config_headers config.h"
3037  
3038  
# Line 3014 | Line 3057 | am__quote=
3057   _am_result=none
3058   # First try GNU make style include.
3059   echo "include confinc" > confmf
3060 < # Ignore all kinds of additional output from `make'.
3060 > # Ignore all kinds of additional output from 'make'.
3061   case `$am_make -s -f confmf 2> /dev/null` in #(
3062   *the\ am__doit\ target*)
3063    am__include=include
# Line 3080 | Line 3123 | do
3123    IFS=$as_save_IFS
3124    test -z "$as_dir" && as_dir=.
3125      for ac_exec_ext in '' $ac_executable_extensions; do
3126 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127      ac_cv_prog_CC="${ac_tool_prefix}gcc"
3128      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129      break 2
# Line 3120 | Line 3163 | do
3163    IFS=$as_save_IFS
3164    test -z "$as_dir" && as_dir=.
3165      for ac_exec_ext in '' $ac_executable_extensions; do
3166 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167      ac_cv_prog_ac_ct_CC="gcc"
3168      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169      break 2
# Line 3173 | Line 3216 | do
3216    IFS=$as_save_IFS
3217    test -z "$as_dir" && as_dir=.
3218      for ac_exec_ext in '' $ac_executable_extensions; do
3219 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220      ac_cv_prog_CC="${ac_tool_prefix}cc"
3221      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222      break 2
# Line 3214 | Line 3257 | do
3257    IFS=$as_save_IFS
3258    test -z "$as_dir" && as_dir=.
3259      for ac_exec_ext in '' $ac_executable_extensions; do
3260 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262         ac_prog_rejected=yes
3263         continue
# Line 3272 | Line 3315 | do
3315    IFS=$as_save_IFS
3316    test -z "$as_dir" && as_dir=.
3317      for ac_exec_ext in '' $ac_executable_extensions; do
3318 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3320      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321      break 2
# Line 3316 | Line 3359 | do
3359    IFS=$as_save_IFS
3360    test -z "$as_dir" && as_dir=.
3361      for ac_exec_ext in '' $ac_executable_extensions; do
3362 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363      ac_cv_prog_ac_ct_CC="$ac_prog"
3364      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365      break 2
# Line 3762 | Line 3805 | cat confdefs.h - <<_ACEOF >conftest.$ac_
3805   /* end confdefs.h.  */
3806   #include <stdarg.h>
3807   #include <stdio.h>
3808 < #include <sys/types.h>
3766 < #include <sys/stat.h>
3808 > struct stat;
3809   /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3810   struct buf { int x; };
3811   FILE * (*rcsopen) (struct buf *, struct stat *, int);
# Line 3848 | Line 3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3890   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892  
3893 + ac_ext=c
3894 + ac_cpp='$CPP $CPPFLAGS'
3895 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3899 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3900 + if ${am_cv_prog_cc_c_o+:} false; then :
3901 +  $as_echo_n "(cached) " >&6
3902 + else
3903 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 + /* end confdefs.h.  */
3905 +
3906 + int
3907 + main ()
3908 + {
3909 +
3910 +  ;
3911 +  return 0;
3912 + }
3913 + _ACEOF
3914 +  # Make sure it works both with $CC and with simple cc.
3915 +  # Following AC_PROG_CC_C_O, we do the test twice because some
3916 +  # compilers refuse to overwrite an existing .o file with -o,
3917 +  # though they will create one.
3918 +  am_cv_prog_cc_c_o=yes
3919 +  for am_i in 1 2; do
3920 +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3921 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3922 +   ac_status=$?
3923 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 +   (exit $ac_status); } \
3925 +         && test -f conftest2.$ac_objext; then
3926 +      : OK
3927 +    else
3928 +      am_cv_prog_cc_c_o=no
3929 +      break
3930 +    fi
3931 +  done
3932 +  rm -f core conftest*
3933 +  unset am_i
3934 + fi
3935 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3936 + $as_echo "$am_cv_prog_cc_c_o" >&6; }
3937 + if test "$am_cv_prog_cc_c_o" != yes; then
3938 +   # Losing compiler, so override with the script.
3939 +   # FIXME: It is wrong to rewrite CC.
3940 +   # But if we don't then we get into trouble of one sort or another.
3941 +   # A longer-term fix would be to have automake use am__CC in this case,
3942 +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3943 +   CC="$am_aux_dir/compile $CC"
3944 + fi
3945 + ac_ext=c
3946 + ac_cpp='$CPP $CPPFLAGS'
3947 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 +
3951 +
3952   depcc="$CC"   am_compiler_list=
3953  
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
# Line 3859 | Line 3960 | else
3960    # We make a subdir and do the tests there.  Otherwise we can end up
3961    # making bogus files that we don't know about and never remove.  For
3962    # instance it was reported that on HP-UX the gcc test will end up
3963 <  # making a dummy file named `D' -- because `-MD' means `put the output
3964 <  # in D'.
3963 >  # making a dummy file named 'D' -- because '-MD' means "put the output
3964 >  # in D".
3965    rm -rf conftest.dir
3966    mkdir conftest.dir
3967    # Copy depcomp to subdir because otherwise we won't find it if we're
# Line 3895 | Line 3996 | else
3996      : > sub/conftest.c
3997      for i in 1 2 3 4 5 6; do
3998        echo '#include "conftst'$i'.h"' >> sub/conftest.c
3999 <      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4000 <      # Solaris 8's {/usr,}/bin/sh.
4001 <      touch sub/conftst$i.h
3999 >      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4000 >      # Solaris 10 /bin/sh.
4001 >      echo '/* dummy */' > sub/conftst$i.h
4002      done
4003      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4004  
4005 <    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4005 >    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4006      # mode.  It turns out that the SunPro C++ compiler does not properly
4007 <    # handle `-M -o', and we need to detect this.  Also, some Intel
4008 <    # versions had trouble with output in subdirs
4007 >    # handle '-M -o', and we need to detect this.  Also, some Intel
4008 >    # versions had trouble with output in subdirs.
4009      am__obj=sub/conftest.${OBJEXT-o}
4010      am__minus_obj="-o $am__obj"
4011      case $depmode in
# Line 3913 | Line 4014 | else
4014        test "$am__universal" = false || continue
4015        ;;
4016      nosideeffect)
4017 <      # after this tag, mechanisms are not by side-effect, so they'll
4018 <      # only be used when explicitly requested
4017 >      # After this tag, mechanisms are not by side-effect, so they'll
4018 >      # only be used when explicitly requested.
4019        if test "x$enable_dependency_tracking" = xyes; then
4020          continue
4021        else
# Line 3922 | Line 4023 | else
4023        fi
4024        ;;
4025      msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4026 <      # This compiler won't grok `-c -o', but also, the minuso test has
4026 >      # This compiler won't grok '-c -o', but also, the minuso test has
4027        # not run yet.  These depmodes are late enough in the game, and
4028        # so weak that their functioning should not be impacted.
4029        am__obj=conftest.${OBJEXT-o}
# Line 4122 | Line 4223 | main ()
4223    return 0;
4224   }
4225   _ACEOF
4226 < for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4226 > for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4227   do
4228    CC="$ac_save_CC $ac_arg"
4229    if ac_fn_c_try_compile "$LINENO"; then :
# Line 4154 | Line 4255 | fi
4255  
4256  
4257   if test "$ac_cv_prog_cc_c99" = "no"; then :
4258 <  as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4258 >  as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4259   fi
4260   for ac_prog in 'bison -y' byacc
4261   do
# Line 4174 | Line 4275 | do
4275    IFS=$as_save_IFS
4276    test -z "$as_dir" && as_dir=.
4277      for ac_exec_ext in '' $ac_executable_extensions; do
4278 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279      ac_cv_prog_YACC="$ac_prog"
4280      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281      break 2
# Line 4218 | Line 4319 | do
4319    IFS=$as_save_IFS
4320    test -z "$as_dir" && as_dir=.
4321      for ac_exec_ext in '' $ac_executable_extensions; do
4322 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323      ac_cv_prog_LEX="$ac_prog"
4324      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325      break 2
# Line 4250 | Line 4351 | a { ECHO; }
4351   b { REJECT; }
4352   c { yymore (); }
4353   d { yyless (1); }
4354 < e { yyless (input () != 0); }
4354 > e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4355 >    yyless ((input () != 0)); }
4356   f { unput (yytext[0]); }
4357   . { BEGIN INITIAL; }
4358   %%
# Line 4379 | Line 4481 | esac
4481  
4482  
4483  
4484 < macro_version='2.4.2'
4485 < macro_revision='1.3337'
4484 > macro_version='2.4.6'
4485 > macro_revision='2.4.6'
4486  
4487  
4488  
# Line 4394 | Line 4496 | macro_revision='1.3337'
4496  
4497  
4498  
4499 < ltmain="$ac_aux_dir/ltmain.sh"
4499 > ltmain=$ac_aux_dir/ltmain.sh
4500  
4501   # Make sure we can run config.sub.
4502   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4514 | Line 4616 | func_echo_all ()
4616      $ECHO ""
4617   }
4618  
4619 < case "$ECHO" in
4619 > case $ECHO in
4620    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4621   $as_echo "printf" >&6; } ;;
4622    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4558 | Line 4660 | do
4660      for ac_prog in sed gsed; do
4661      for ac_exec_ext in '' $ac_executable_extensions; do
4662        ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4663 <      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4663 >      as_fn_executable_p "$ac_path_SED" || continue
4664   # Check for GNU ac_path_SED and select it if it is found.
4665    # Check for GNU $ac_path_SED
4666   case `"$ac_path_SED" --version 2>&1` in
# Line 4634 | Line 4736 | do
4736      for ac_prog in grep ggrep; do
4737      for ac_exec_ext in '' $ac_executable_extensions; do
4738        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4739 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4739 >      as_fn_executable_p "$ac_path_GREP" || continue
4740   # Check for GNU ac_path_GREP and select it if it is found.
4741    # Check for GNU $ac_path_GREP
4742   case `"$ac_path_GREP" --version 2>&1` in
# Line 4700 | Line 4802 | do
4802      for ac_prog in egrep; do
4803      for ac_exec_ext in '' $ac_executable_extensions; do
4804        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4805 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4805 >      as_fn_executable_p "$ac_path_EGREP" || continue
4806   # Check for GNU ac_path_EGREP and select it if it is found.
4807    # Check for GNU $ac_path_EGREP
4808   case `"$ac_path_EGREP" --version 2>&1` in
# Line 4767 | Line 4869 | do
4869      for ac_prog in fgrep; do
4870      for ac_exec_ext in '' $ac_executable_extensions; do
4871        ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4872 <      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4872 >      as_fn_executable_p "$ac_path_FGREP" || continue
4873   # Check for GNU ac_path_FGREP and select it if it is found.
4874    # Check for GNU $ac_path_FGREP
4875   case `"$ac_path_FGREP" --version 2>&1` in
# Line 4837 | Line 4939 | test -z "$GREP" && GREP=grep
4939  
4940   # Check whether --with-gnu-ld was given.
4941   if test "${with_gnu_ld+set}" = set; then :
4942 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4943   else
4944    with_gnu_ld=no
4945   fi
4946  
4947   ac_prog=ld
4948 < if test "$GCC" = yes; then
4948 > if test yes = "$GCC"; then
4949    # Check if gcc -print-prog-name=ld gives a path.
4950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4951   $as_echo_n "checking for ld used by $CC... " >&6; }
4952    case $host in
4953    *-*-mingw*)
4954 <    # gcc leaves a trailing carriage return which upsets mingw
4954 >    # gcc leaves a trailing carriage return, which upsets mingw
4955      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4956    *)
4957      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4863 | Line 4965 | $as_echo_n "checking for ld used by $CC.
4965        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4966          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4967        done
4968 <      test -z "$LD" && LD="$ac_prog"
4968 >      test -z "$LD" && LD=$ac_prog
4969        ;;
4970    "")
4971      # If it fails, then pretend we aren't using GCC.
# Line 4874 | Line 4976 | $as_echo_n "checking for ld used by $CC.
4976      with_gnu_ld=unknown
4977      ;;
4978    esac
4979 < elif test "$with_gnu_ld" = yes; then
4979 > elif test yes = "$with_gnu_ld"; then
4980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4981   $as_echo_n "checking for GNU ld... " >&6; }
4982   else
# Line 4885 | Line 4987 | if ${lt_cv_path_LD+:} false; then :
4987    $as_echo_n "(cached) " >&6
4988   else
4989    if test -z "$LD"; then
4990 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4991    for ac_dir in $PATH; do
4992 <    IFS="$lt_save_ifs"
4992 >    IFS=$lt_save_ifs
4993      test -z "$ac_dir" && ac_dir=.
4994      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4995 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4995 >      lt_cv_path_LD=$ac_dir/$ac_prog
4996        # Check to see if the program is GNU ld.  I'd rather use --version,
4997        # but apparently some variants of GNU ld only accept -v.
4998        # Break only if it was the GNU/non-GNU ld that we prefer.
4999        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5000        *GNU* | *'with BFD'*)
5001 <        test "$with_gnu_ld" != no && break
5001 >        test no != "$with_gnu_ld" && break
5002          ;;
5003        *)
5004 <        test "$with_gnu_ld" != yes && break
5004 >        test yes != "$with_gnu_ld" && break
5005          ;;
5006        esac
5007      fi
5008    done
5009 <  IFS="$lt_save_ifs"
5009 >  IFS=$lt_save_ifs
5010   else
5011 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5012   fi
5013   fi
5014  
5015 < LD="$lt_cv_path_LD"
5015 > LD=$lt_cv_path_LD
5016   if test -n "$LD"; then
5017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5018   $as_echo "$LD" >&6; }
# Line 4953 | Line 5055 | if ${lt_cv_path_NM+:} false; then :
5055   else
5056    if test -n "$NM"; then
5057    # Let the user override the test.
5058 <  lt_cv_path_NM="$NM"
5058 >  lt_cv_path_NM=$NM
5059   else
5060 <  lt_nm_to_check="${ac_tool_prefix}nm"
5060 >  lt_nm_to_check=${ac_tool_prefix}nm
5061    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5062      lt_nm_to_check="$lt_nm_to_check nm"
5063    fi
5064    for lt_tmp_nm in $lt_nm_to_check; do
5065 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5066      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5067 <      IFS="$lt_save_ifs"
5067 >      IFS=$lt_save_ifs
5068        test -z "$ac_dir" && ac_dir=.
5069 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5070 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 >      tmp_nm=$ac_dir/$lt_tmp_nm
5070 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5071          # Check to see if the nm accepts a BSD-compat flag.
5072 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5073          #   nm: unknown option "B" ignored
5074          # Tru64's nm complains that /dev/null is an invalid object file
5075 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5076 <        */dev/null* | *'Invalid file or object type'*)
5075 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5076 >        case $build_os in
5077 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5078 >        *) lt_bad_file=/dev/null ;;
5079 >        esac
5080 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5081 >        *$lt_bad_file* | *'Invalid file or object type'*)
5082            lt_cv_path_NM="$tmp_nm -B"
5083 <          break
5083 >          break 2
5084            ;;
5085          *)
5086            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087            */dev/null*)
5088              lt_cv_path_NM="$tmp_nm -p"
5089 <            break
5089 >            break 2
5090              ;;
5091            *)
5092              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 4990 | Line 5097 | else
5097          esac
5098        fi
5099      done
5100 <    IFS="$lt_save_ifs"
5100 >    IFS=$lt_save_ifs
5101    done
5102    : ${lt_cv_path_NM=no}
5103   fi
5104   fi
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106   $as_echo "$lt_cv_path_NM" >&6; }
5107 < if test "$lt_cv_path_NM" != "no"; then
5108 <  NM="$lt_cv_path_NM"
5107 > if test no != "$lt_cv_path_NM"; then
5108 >  NM=$lt_cv_path_NM
5109   else
5110    # Didn't find any BSD compatible name lister, look for dumpbin.
5111    if test -n "$DUMPBIN"; then :
# Line 5023 | Line 5130 | do
5130    IFS=$as_save_IFS
5131    test -z "$as_dir" && as_dir=.
5132      for ac_exec_ext in '' $ac_executable_extensions; do
5133 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134      ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5135      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136      break 2
# Line 5067 | Line 5174 | do
5174    IFS=$as_save_IFS
5175    test -z "$as_dir" && as_dir=.
5176      for ac_exec_ext in '' $ac_executable_extensions; do
5177 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178      ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5179      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180      break 2
# Line 5104 | Line 5211 | esac
5211    fi
5212   fi
5213  
5214 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5214 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5215      *COFF*)
5216 <      DUMPBIN="$DUMPBIN -symbols"
5216 >      DUMPBIN="$DUMPBIN -symbols -headers"
5217        ;;
5218      *)
5219        DUMPBIN=:
# Line 5114 | Line 5221 | fi
5221      esac
5222    fi
5223  
5224 <  if test "$DUMPBIN" != ":"; then
5225 <    NM="$DUMPBIN"
5224 >  if test : != "$DUMPBIN"; then
5225 >    NM=$DUMPBIN
5226    fi
5227   fi
5228   test -z "$NM" && NM=nm
# Line 5166 | Line 5273 | if ${lt_cv_sys_max_cmd_len+:} false; the
5273    $as_echo_n "(cached) " >&6
5274   else
5275      i=0
5276 <  teststring="ABCD"
5276 >  teststring=ABCD
5277  
5278    case $build_os in
5279    msdosdjgpp*)
# Line 5206 | Line 5313 | else
5313      lt_cv_sys_max_cmd_len=8192;
5314      ;;
5315  
5316 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5316 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5317      # This has been around since 386BSD, at least.  Likely further.
5318      if test -x /sbin/sysctl; then
5319        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5256 | Line 5363 | else
5363      ;;
5364    *)
5365      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5366 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5367 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5368        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370      else
5371        # Make teststring a little bigger before we do anything with it.
5372        # a 1K string should be a reasonable start.
5373 <      for i in 1 2 3 4 5 6 7 8 ; do
5373 >      for i in 1 2 3 4 5 6 7 8; do
5374          teststring=$teststring$teststring
5375        done
5376        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377        # If test is not a shell built-in, we'll probably end up computing a
5378        # maximum length that is only half of the actual maximum length, but
5379        # we can't tell.
5380 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5380 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5381                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5382 <              test $i != 17 # 1/2 MB should be enough
5382 >              test 17 != "$i" # 1/2 MB should be enough
5383        do
5384          i=`expr $i + 1`
5385          teststring=$teststring$teststring
# Line 5289 | Line 5397 | else
5397  
5398   fi
5399  
5400 < if test -n $lt_cv_sys_max_cmd_len ; then
5400 > if test -n "$lt_cv_sys_max_cmd_len"; then
5401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5402   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5403   else
# Line 5307 | Line 5415 | max_cmd_len=$lt_cv_sys_max_cmd_len
5415   : ${MV="mv -f"}
5416   : ${RM="rm -f"}
5417  
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5311 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5312 # Try some XSI features
5313 xsi_shell=no
5314 ( _lt_dummy="a/b/c"
5315  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5316      = c,a/b,b/c, \
5317    && eval 'test $(( 1 + 1 )) -eq 2 \
5318    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5319  && xsi_shell=yes
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5321 $as_echo "$xsi_shell" >&6; }
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5325 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5326 lt_shell_append=no
5327 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5328    >/dev/null 2>&1 \
5329  && lt_shell_append=yes
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5331 $as_echo "$lt_shell_append" >&6; }
5332
5333
5418   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5419    lt_unset=unset
5420   else
# Line 5453 | Line 5537 | esac
5537   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5538   case $host_os in
5539    cygwin* | mingw* | pw32* | cegcc*)
5540 <    if test "$GCC" != yes; then
5540 >    if test yes != "$GCC"; then
5541        reload_cmds=false
5542      fi
5543      ;;
5544    darwin*)
5545 <    if test "$GCC" = yes; then
5546 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5545 >    if test yes = "$GCC"; then
5546 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5547      else
5548        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5549      fi
# Line 5491 | Line 5575 | do
5575    IFS=$as_save_IFS
5576    test -z "$as_dir" && as_dir=.
5577      for ac_exec_ext in '' $ac_executable_extensions; do
5578 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5580      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581      break 2
# Line 5531 | Line 5615 | do
5615    IFS=$as_save_IFS
5616    test -z "$as_dir" && as_dir=.
5617      for ac_exec_ext in '' $ac_executable_extensions; do
5618 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619      ac_cv_prog_ac_ct_OBJDUMP="objdump"
5620      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621      break 2
# Line 5587 | Line 5671 | lt_cv_deplibs_check_method='unknown'
5671   # Need to set the preceding variable on all platforms that support
5672   # interlibrary dependencies.
5673   # 'none' -- dependencies not supported.
5674 < # `unknown' -- same as none, but documents that we really don't know.
5674 > # 'unknown' -- same as none, but documents that we really don't know.
5675   # 'pass_all' -- all dependencies passed with no checks.
5676   # 'test_compile' -- check by making test program.
5677   # 'file_magic [[regex]]' -- check by looking for files in library path
5678 < # which responds to the $file_magic_cmd with a given extended regex.
5679 < # If you have `file' or equivalent on your system and you're not sure
5680 < # whether `pass_all' will *always* work, you probably want this one.
5678 > # that responds to the $file_magic_cmd with a given extended regex.
5679 > # If you have 'file' or equivalent on your system and you're not sure
5680 > # whether 'pass_all' will *always* work, you probably want this one.
5681  
5682   case $host_os in
5683   aix[4-9]*)
# Line 5620 | Line 5704 | mingw* | pw32*)
5704    # Base MSYS/MinGW do not provide the 'file' command needed by
5705    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5706    # unless we find 'file', for example because we are cross-compiling.
5707 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5624 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5707 >  if ( file / ) >/dev/null 2>&1; then
5708      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5709      lt_cv_file_magic_cmd='func_win32_libid'
5710    else
# Line 5657 | Line 5740 | freebsd* | dragonfly*)
5740    fi
5741    ;;
5742  
5660 gnu*)
5661  lt_cv_deplibs_check_method=pass_all
5662  ;;
5663
5743   haiku*)
5744    lt_cv_deplibs_check_method=pass_all
5745    ;;
# Line 5699 | Line 5778 | irix5* | irix6* | nonstopux*)
5778    ;;
5779  
5780   # This must be glibc/ELF.
5781 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5781 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  
# Line 5721 | Line 5800 | newos6*)
5800    lt_cv_deplibs_check_method=pass_all
5801    ;;
5802  
5803 < openbsd*)
5804 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803 > openbsd* | bitrig*)
5804 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5805      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5806    else
5807      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5775 | Line 5854 | sysv4 | sysv4.3*)
5854   tpf*)
5855    lt_cv_deplibs_check_method=pass_all
5856    ;;
5857 + os2*)
5858 +  lt_cv_deplibs_check_method=pass_all
5859 +  ;;
5860   esac
5861  
5862   fi
# Line 5837 | Line 5919 | do
5919    IFS=$as_save_IFS
5920    test -z "$as_dir" && as_dir=.
5921      for ac_exec_ext in '' $ac_executable_extensions; do
5922 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5924      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925      break 2
# Line 5877 | Line 5959 | do
5959    IFS=$as_save_IFS
5960    test -z "$as_dir" && as_dir=.
5961      for ac_exec_ext in '' $ac_executable_extensions; do
5962 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963      ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5964      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965      break 2
# Line 5932 | Line 6014 | else
6014  
6015   case $host_os in
6016   cygwin* | mingw* | pw32* | cegcc*)
6017 <  # two different shell functions defined in ltmain.sh
6018 <  # decide which to use based on capabilities of $DLLTOOL
6017 >  # two different shell functions defined in ltmain.sh;
6018 >  # decide which one to use based on capabilities of $DLLTOOL
6019    case `$DLLTOOL --help 2>&1` in
6020    *--identify-strict*)
6021      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 5945 | Line 6027 | cygwin* | mingw* | pw32* | cegcc*)
6027    ;;
6028   *)
6029    # fallback: assume linklib IS sharedlib
6030 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6030 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6031    ;;
6032   esac
6033  
# Line 5980 | Line 6062 | do
6062    IFS=$as_save_IFS
6063    test -z "$as_dir" && as_dir=.
6064      for ac_exec_ext in '' $ac_executable_extensions; do
6065 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066      ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6067      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068      break 2
# Line 6024 | Line 6106 | do
6106    IFS=$as_save_IFS
6107    test -z "$as_dir" && as_dir=.
6108      for ac_exec_ext in '' $ac_executable_extensions; do
6109 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110      ac_cv_prog_ac_ct_AR="$ac_prog"
6111      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112      break 2
# Line 6099 | Line 6181 | if ac_fn_c_try_compile "$LINENO"; then :
6181    ac_status=$?
6182    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183    test $ac_status = 0; }
6184 <      if test "$ac_status" -eq 0; then
6184 >      if test 0 -eq "$ac_status"; then
6185          # Ensure the archiver fails upon bogus file names.
6186          rm -f conftest.$ac_objext libconftest.a
6187          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6107 | Line 6189 | if ac_fn_c_try_compile "$LINENO"; then :
6189    ac_status=$?
6190    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191    test $ac_status = 0; }
6192 <        if test "$ac_status" -ne 0; then
6192 >        if test 0 -ne "$ac_status"; then
6193            lt_cv_ar_at_file=@
6194          fi
6195        fi
# Line 6120 | Line 6202 | fi
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6203   $as_echo "$lt_cv_ar_at_file" >&6; }
6204  
6205 < if test "x$lt_cv_ar_at_file" = xno; then
6205 > if test no = "$lt_cv_ar_at_file"; then
6206    archiver_list_spec=
6207   else
6208    archiver_list_spec=$lt_cv_ar_at_file
# Line 6149 | Line 6231 | do
6231    IFS=$as_save_IFS
6232    test -z "$as_dir" && as_dir=.
6233      for ac_exec_ext in '' $ac_executable_extensions; do
6234 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6236      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237      break 2
# Line 6189 | Line 6271 | do
6271    IFS=$as_save_IFS
6272    test -z "$as_dir" && as_dir=.
6273      for ac_exec_ext in '' $ac_executable_extensions; do
6274 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275      ac_cv_prog_ac_ct_STRIP="strip"
6276      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277      break 2
# Line 6248 | Line 6330 | do
6330    IFS=$as_save_IFS
6331    test -z "$as_dir" && as_dir=.
6332      for ac_exec_ext in '' $ac_executable_extensions; do
6333 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6335      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336      break 2
# Line 6288 | Line 6370 | do
6370    IFS=$as_save_IFS
6371    test -z "$as_dir" && as_dir=.
6372      for ac_exec_ext in '' $ac_executable_extensions; do
6373 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374      ac_cv_prog_ac_ct_RANLIB="ranlib"
6375      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376      break 2
# Line 6337 | Line 6419 | old_postuninstall_cmds=
6419  
6420   if test -n "$RANLIB"; then
6421    case $host_os in
6422 <  openbsd*)
6422 >  bitrig* | openbsd*)
6423      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6424      ;;
6425    *)
# Line 6427 | Line 6509 | cygwin* | mingw* | pw32* | cegcc*)
6509    symcode='[ABCDGISTW]'
6510    ;;
6511   hpux*)
6512 <  if test "$host_cpu" = ia64; then
6512 >  if test ia64 = "$host_cpu"; then
6513      symcode='[ABCDEGRST]'
6514    fi
6515    ;;
# Line 6460 | Line 6542 | case `$NM -V 2>&1` in
6542    symcode='[ABCDGIRSTW]' ;;
6543   esac
6544  
6545 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546 +  # Gets list of data symbols to import.
6547 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6548 +  # Adjust the below global symbol transforms to fixup imported variables.
6549 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6550 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6551 +  lt_c_name_lib_hook="\
6552 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6553 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6554 + else
6555 +  # Disable hooks by default.
6556 +  lt_cv_sys_global_symbol_to_import=
6557 +  lt_cdecl_hook=
6558 +  lt_c_name_hook=
6559 +  lt_c_name_lib_hook=
6560 + fi
6561 +
6562   # Transform an extracted symbol line into a proper C declaration.
6563   # Some systems (esp. on ia64) link data and code symbols differently,
6564   # so use this general approach.
6565 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6565 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6566 > $lt_cdecl_hook\
6567 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6568 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6569  
6570   # Transform an extracted symbol line into symbol name and symbol address
6571 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6572 < 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'"
6571 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6572 > $lt_c_name_hook\
6573 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6574 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6575 >
6576 > # Transform an extracted symbol line into symbol name with lib prefix and
6577 > # symbol address.
6578 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6579 > $lt_c_name_lib_hook\
6580 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6581 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6582 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6583  
6584   # Handle CRLF in mingw tool chain
6585   opt_cr=
# Line 6485 | Line 6597 | for ac_symprfx in "" "_"; do
6597  
6598    # Write the raw and C identifiers.
6599    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6600 <    # Fake it for dumpbin and say T for any non-static function
6601 <    # and D for any global variable.
6600 >    # Fake it for dumpbin and say T for any non-static function,
6601 >    # D for any global variable and I for any imported variable.
6602      # Also find C++ and __fastcall symbols from MSVC++,
6603      # which start with @ or ?.
6604      lt_cv_sys_global_symbol_pipe="$AWK '"\
6605   "     {last_section=section; section=\$ 3};"\
6606   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6607   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6608 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6609 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6610 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6611   "     \$ 0!~/External *\|/{next};"\
6612   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6613   "     {if(hide[section]) next};"\
6614 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6615 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6616 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6617 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6614 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6615 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6616 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6617 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6618   "     ' prfx=^$ac_symprfx"
6619    else
6620      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6547 | Line 6662 | _LT_EOF
6662          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6663            cat <<_LT_EOF > conftest.$ac_ext
6664   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6665 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6666 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6665 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6666 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6667     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6668   # define LT_DLSYM_CONST
6669 < #elif defined(__osf__)
6669 > #elif defined __osf__
6670   /* This system does not cope well with relocations in const data.  */
6671   # define LT_DLSYM_CONST
6672   #else
# Line 6577 | Line 6692 | lt__PROGRAM__LTX_preloaded_symbols[] =
6692   {
6693    { "@PROGRAM@", (void *) 0 },
6694   _LT_EOF
6695 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6695 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6696            cat <<\_LT_EOF >> conftest.$ac_ext
6697    {0, (void *) 0}
6698   };
# Line 6597 | Line 6712 | _LT_EOF
6712            mv conftest.$ac_objext conftstm.$ac_objext
6713            lt_globsym_save_LIBS=$LIBS
6714            lt_globsym_save_CFLAGS=$CFLAGS
6715 <          LIBS="conftstm.$ac_objext"
6715 >          LIBS=conftstm.$ac_objext
6716            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6717            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6718    (eval $ac_link) 2>&5
6719    ac_status=$?
6720    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6721 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6722              pipe_works=yes
6723            fi
6724            LIBS=$lt_globsym_save_LIBS
# Line 6624 | Line 6739 | _LT_EOF
6739    rm -rf conftest* conftst*
6740  
6741    # Do not use the global_symbol_pipe unless it works.
6742 <  if test "$pipe_works" = yes; then
6742 >  if test yes = "$pipe_works"; then
6743      break
6744    else
6745      lt_cv_sys_global_symbol_pipe=
# Line 6677 | Line 6792 | fi
6792  
6793  
6794  
6795 +
6796 +
6797 +
6798 +
6799 +
6800 +
6801 +
6802 +
6803 +
6804 +
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6806   $as_echo_n "checking for sysroot... " >&6; }
6807  
# Line 6689 | Line 6814 | fi
6814  
6815  
6816   lt_sysroot=
6817 < case ${with_sysroot} in #(
6817 > case $with_sysroot in #(
6818   yes)
6819 <   if test "$GCC" = yes; then
6819 >   if test yes = "$GCC"; then
6820       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6821     fi
6822     ;; #(
# Line 6701 | Line 6826 | case ${with_sysroot} in #(
6826   no|'')
6827     ;; #(
6828   *)
6829 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6830 < $as_echo "${with_sysroot}" >&6; }
6829 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6830 > $as_echo "$with_sysroot" >&6; }
6831     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6832     ;;
6833   esac
# Line 6714 | Line 6839 | $as_echo "${lt_sysroot:-no}" >&6; }
6839  
6840  
6841  
6842 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6843 + $as_echo_n "checking for a working dd... " >&6; }
6844 + if ${ac_cv_path_lt_DD+:} false; then :
6845 +  $as_echo_n "(cached) " >&6
6846 + else
6847 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6848 + cat conftest.i conftest.i >conftest2.i
6849 + : ${lt_DD:=$DD}
6850 + if test -z "$lt_DD"; then
6851 +  ac_path_lt_DD_found=false
6852 +  # Loop through the user's path and test for each of PROGNAME-LIST
6853 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 + for as_dir in $PATH
6855 + do
6856 +  IFS=$as_save_IFS
6857 +  test -z "$as_dir" && as_dir=.
6858 +    for ac_prog in dd; do
6859 +    for ac_exec_ext in '' $ac_executable_extensions; do
6860 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6861 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6862 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6863 +  cmp -s conftest.i conftest.out \
6864 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6865 + fi
6866 +      $ac_path_lt_DD_found && break 3
6867 +    done
6868 +  done
6869 +  done
6870 + IFS=$as_save_IFS
6871 +  if test -z "$ac_cv_path_lt_DD"; then
6872 +    :
6873 +  fi
6874 + else
6875 +  ac_cv_path_lt_DD=$lt_DD
6876 + fi
6877 +
6878 + rm -f conftest.i conftest2.i conftest.out
6879 + fi
6880 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6881 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6882 +
6883 +
6884 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6885 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6886 + if ${lt_cv_truncate_bin+:} false; then :
6887 +  $as_echo_n "(cached) " >&6
6888 + else
6889 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6890 + cat conftest.i conftest.i >conftest2.i
6891 + lt_cv_truncate_bin=
6892 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6893 +  cmp -s conftest.i conftest.out \
6894 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6895 + fi
6896 + rm -f conftest.i conftest2.i conftest.out
6897 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6898 + fi
6899 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6900 + $as_echo "$lt_cv_truncate_bin" >&6; }
6901 +
6902 +
6903 +
6904 +
6905 +
6906 +
6907 +
6908 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6909 + func_cc_basename ()
6910 + {
6911 +    for cc_temp in $*""; do
6912 +      case $cc_temp in
6913 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6915 +        \-*) ;;
6916 +        *) break;;
6917 +      esac
6918 +    done
6919 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6920 + }
6921 +
6922   # Check whether --enable-libtool-lock was given.
6923   if test "${enable_libtool_lock+set}" = set; then :
6924    enableval=$enable_libtool_lock;
6925   fi
6926  
6927 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6928  
6929   # Some flags need to be propagated to the compiler or linker for good
6930   # libtool support.
6931   case $host in
6932   ia64-*-hpux*)
6933 <  # Find out which ABI we are using.
6933 >  # Find out what ABI is being produced by ac_compile, and set mode
6934 >  # options accordingly.
6935    echo 'int i;' > conftest.$ac_ext
6936    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937    (eval $ac_compile) 2>&5
# Line 6734 | Line 6940 | ia64-*-hpux*)
6940    test $ac_status = 0; }; then
6941      case `/usr/bin/file conftest.$ac_objext` in
6942        *ELF-32*)
6943 <        HPUX_IA64_MODE="32"
6943 >        HPUX_IA64_MODE=32
6944          ;;
6945        *ELF-64*)
6946 <        HPUX_IA64_MODE="64"
6946 >        HPUX_IA64_MODE=64
6947          ;;
6948      esac
6949    fi
6950    rm -rf conftest*
6951    ;;
6952   *-*-irix6*)
6953 <  # Find out which ABI we are using.
6953 >  # Find out what ABI is being produced by ac_compile, and set linker
6954 >  # options accordingly.
6955    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6956    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957    (eval $ac_compile) 2>&5
6958    ac_status=$?
6959    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960    test $ac_status = 0; }; then
6961 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6961 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6962        case `/usr/bin/file conftest.$ac_objext` in
6963          *32-bit*)
6964            LD="${LD-ld} -melf32bsmip"
# Line 6780 | Line 6987 | ia64-*-hpux*)
6987    rm -rf conftest*
6988    ;;
6989  
6990 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6990 > mips64*-*linux*)
6991 >  # Find out what ABI is being produced by ac_compile, and set linker
6992 >  # options accordingly.
6993 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6994 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995 >  (eval $ac_compile) 2>&5
6996 >  ac_status=$?
6997 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 >  test $ac_status = 0; }; then
6999 >    emul=elf
7000 >    case `/usr/bin/file conftest.$ac_objext` in
7001 >      *32-bit*)
7002 >        emul="${emul}32"
7003 >        ;;
7004 >      *64-bit*)
7005 >        emul="${emul}64"
7006 >        ;;
7007 >    esac
7008 >    case `/usr/bin/file conftest.$ac_objext` in
7009 >      *MSB*)
7010 >        emul="${emul}btsmip"
7011 >        ;;
7012 >      *LSB*)
7013 >        emul="${emul}ltsmip"
7014 >        ;;
7015 >    esac
7016 >    case `/usr/bin/file conftest.$ac_objext` in
7017 >      *N32*)
7018 >        emul="${emul}n32"
7019 >        ;;
7020 >    esac
7021 >    LD="${LD-ld} -m $emul"
7022 >  fi
7023 >  rm -rf conftest*
7024 >  ;;
7025 >
7026 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7027   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028 <  # Find out which ABI we are using.
7028 >  # Find out what ABI is being produced by ac_compile, and set linker
7029 >  # options accordingly.  Note that the listed cases only cover the
7030 >  # situations where additional linker options are needed (such as when
7031 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7032 >  # vice versa); the common cases where no linker options are needed do
7033 >  # not appear in the list.
7034    echo 'int i;' > conftest.$ac_ext
7035    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7036    (eval $ac_compile) 2>&5
# Line 6796 | Line 7044 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7044              LD="${LD-ld} -m elf_i386_fbsd"
7045              ;;
7046            x86_64-*linux*)
7047 <            LD="${LD-ld} -m elf_i386"
7047 >            case `/usr/bin/file conftest.o` in
7048 >              *x86-64*)
7049 >                LD="${LD-ld} -m elf32_x86_64"
7050 >                ;;
7051 >              *)
7052 >                LD="${LD-ld} -m elf_i386"
7053 >                ;;
7054 >            esac
7055 >            ;;
7056 >          powerpc64le-*linux*)
7057 >            LD="${LD-ld} -m elf32lppclinux"
7058              ;;
7059 <          ppc64-*linux*|powerpc64-*linux*)
7059 >          powerpc64-*linux*)
7060              LD="${LD-ld} -m elf32ppclinux"
7061              ;;
7062            s390x-*linux*)
# Line 6817 | Line 7075 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7075            x86_64-*linux*)
7076              LD="${LD-ld} -m elf_x86_64"
7077              ;;
7078 <          ppc*-*linux*|powerpc*-*linux*)
7078 >          powerpcle-*linux*)
7079 >            LD="${LD-ld} -m elf64lppc"
7080 >            ;;
7081 >          powerpc-*linux*)
7082              LD="${LD-ld} -m elf64ppc"
7083              ;;
7084            s390*-*linux*|s390*-*tpf*)
# Line 6835 | Line 7096 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7096  
7097   *-*-sco3.2v5*)
7098    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7099 <  SAVE_CFLAGS="$CFLAGS"
7099 >  SAVE_CFLAGS=$CFLAGS
7100    CFLAGS="$CFLAGS -belf"
7101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7102   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6875 | Line 7136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136   fi
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7138   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7139 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7139 >  if test yes != "$lt_cv_cc_needs_belf"; then
7140      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7141 <    CFLAGS="$SAVE_CFLAGS"
7141 >    CFLAGS=$SAVE_CFLAGS
7142    fi
7143    ;;
7144   *-*solaris*)
7145 <  # Find out which ABI we are using.
7145 >  # Find out what ABI is being produced by ac_compile, and set linker
7146 >  # options accordingly.
7147    echo 'int i;' > conftest.$ac_ext
7148    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149    (eval $ac_compile) 2>&5
# Line 6893 | Line 7155 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7155        case $lt_cv_prog_gnu_ld in
7156        yes*)
7157          case $host in
7158 <        i?86-*-solaris*)
7158 >        i?86-*-solaris*|x86_64-*-solaris*)
7159            LD="${LD-ld} -m elf_x86_64"
7160            ;;
7161          sparc*-*-solaris*)
# Line 6902 | Line 7164 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7164          esac
7165          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7166          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7167 <          LD="${LD-ld}_sol2"
7167 >          LD=${LD-ld}_sol2
7168          fi
7169          ;;
7170        *)
# Line 6918 | Line 7180 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7180    ;;
7181   esac
7182  
7183 < need_locks="$enable_libtool_lock"
7183 > need_locks=$enable_libtool_lock
7184  
7185   if test -n "$ac_tool_prefix"; then
7186    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 6937 | Line 7199 | do
7199    IFS=$as_save_IFS
7200    test -z "$as_dir" && as_dir=.
7201      for ac_exec_ext in '' $ac_executable_extensions; do
7202 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203      ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7204      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205      break 2
# Line 6977 | Line 7239 | do
7239    IFS=$as_save_IFS
7240    test -z "$as_dir" && as_dir=.
7241      for ac_exec_ext in '' $ac_executable_extensions; do
7242 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243      ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7244      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245      break 2
# Line 7029 | Line 7291 | else
7291   fi
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7293   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7294 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7294 > if test yes != "$lt_cv_path_mainfest_tool"; then
7295    MANIFEST_TOOL=:
7296   fi
7297  
# Line 7057 | Line 7319 | do
7319    IFS=$as_save_IFS
7320    test -z "$as_dir" && as_dir=.
7321      for ac_exec_ext in '' $ac_executable_extensions; do
7322 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323      ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7324      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325      break 2
# Line 7097 | Line 7359 | do
7359    IFS=$as_save_IFS
7360    test -z "$as_dir" && as_dir=.
7361      for ac_exec_ext in '' $ac_executable_extensions; do
7362 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363      ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7364      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365      break 2
# Line 7149 | Line 7411 | do
7411    IFS=$as_save_IFS
7412    test -z "$as_dir" && as_dir=.
7413      for ac_exec_ext in '' $ac_executable_extensions; do
7414 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415      ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7416      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417      break 2
# Line 7189 | Line 7451 | do
7451    IFS=$as_save_IFS
7452    test -z "$as_dir" && as_dir=.
7453      for ac_exec_ext in '' $ac_executable_extensions; do
7454 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455      ac_cv_prog_ac_ct_NMEDIT="nmedit"
7456      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457      break 2
# Line 7241 | Line 7503 | do
7503    IFS=$as_save_IFS
7504    test -z "$as_dir" && as_dir=.
7505      for ac_exec_ext in '' $ac_executable_extensions; do
7506 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507      ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7508      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509      break 2
# Line 7281 | Line 7543 | do
7543    IFS=$as_save_IFS
7544    test -z "$as_dir" && as_dir=.
7545      for ac_exec_ext in '' $ac_executable_extensions; do
7546 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547      ac_cv_prog_ac_ct_LIPO="lipo"
7548      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549      break 2
# Line 7333 | Line 7595 | do
7595    IFS=$as_save_IFS
7596    test -z "$as_dir" && as_dir=.
7597      for ac_exec_ext in '' $ac_executable_extensions; do
7598 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599      ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7600      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601      break 2
# Line 7373 | Line 7635 | do
7635    IFS=$as_save_IFS
7636    test -z "$as_dir" && as_dir=.
7637      for ac_exec_ext in '' $ac_executable_extensions; do
7638 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639      ac_cv_prog_ac_ct_OTOOL="otool"
7640      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641      break 2
# Line 7425 | Line 7687 | do
7687    IFS=$as_save_IFS
7688    test -z "$as_dir" && as_dir=.
7689      for ac_exec_ext in '' $ac_executable_extensions; do
7690 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691      ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7692      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693      break 2
# Line 7465 | Line 7727 | do
7727    IFS=$as_save_IFS
7728    test -z "$as_dir" && as_dir=.
7729      for ac_exec_ext in '' $ac_executable_extensions; do
7730 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731      ac_cv_prog_ac_ct_OTOOL64="otool64"
7732      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733      break 2
# Line 7532 | Line 7794 | if ${lt_cv_apple_cc_single_mod+:} false;
7794    $as_echo_n "(cached) " >&6
7795   else
7796    lt_cv_apple_cc_single_mod=no
7797 <      if test -z "${LT_MULTI_MODULE}"; then
7797 >      if test -z "$LT_MULTI_MODULE"; then
7798          # By default we will add the -single_module flag. You can override
7799          # by either setting the environment variable LT_MULTI_MODULE
7800          # non-empty at configure time, or by adding -multi_module to the
# Line 7550 | Line 7812 | else
7812            cat conftest.err >&5
7813          # Otherwise, if the output was created with a 0 exit code from
7814          # the compiler, it worked.
7815 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7815 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7816            lt_cv_apple_cc_single_mod=yes
7817          else
7818            cat conftest.err >&5
# Line 7589 | Line 7851 | else
7851   fi
7852   rm -f core conftest.err conftest.$ac_objext \
7853      conftest$ac_exeext conftest.$ac_ext
7854 <        LDFLAGS="$save_LDFLAGS"
7854 >        LDFLAGS=$save_LDFLAGS
7855  
7856   fi
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7618 | Line 7880 | _LT_EOF
7880        _lt_result=$?
7881        if test -s conftest.err && $GREP force_load conftest.err; then
7882          cat conftest.err >&5
7883 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7883 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7884          lt_cv_ld_force_load=yes
7885        else
7886          cat conftest.err >&5
# Line 7631 | Line 7893 | fi
7893   $as_echo "$lt_cv_ld_force_load" >&6; }
7894      case $host_os in
7895      rhapsody* | darwin1.[012])
7896 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7896 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7897      darwin1.*)
7898 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7898 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7899      darwin*) # darwin 5.x on
7900        # if running on 10.5 or later, the deployment target defaults
7901        # to the OS version, if on x86, and 10.4, the deployment
7902        # target defaults to 10.4. Don't you love it?
7903        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906 <        10.[012]*)
7907 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7905 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7906 >        10.[012][,.]*)
7907 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7908          10.*)
7909 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7909 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7910        esac
7911      ;;
7912    esac
7913 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7913 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7914        _lt_dar_single_mod='$single_module'
7915      fi
7916 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7916 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7917 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7918      else
7919 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7920      fi
7921 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7921 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7922        _lt_dsymutil='~$DSYMUTIL $lib || :'
7923      else
7924        _lt_dsymutil=
# Line 7664 | Line 7926 | $as_echo "$lt_cv_ld_force_load" >&6; }
7926      ;;
7927    esac
7928  
7929 + # func_munge_path_list VARIABLE PATH
7930 + # -----------------------------------
7931 + # VARIABLE is name of variable containing _space_ separated list of
7932 + # directories to be munged by the contents of PATH, which is string
7933 + # having a format:
7934 + # "DIR[:DIR]:"
7935 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7936 + # ":DIR[:DIR]"
7937 + #       string "DIR[ DIR]" will be appended to VARIABLE
7938 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7939 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7940 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7941 + # "DIR[:DIR]"
7942 + #       VARIABLE will be replaced by "DIR[ DIR]"
7943 + func_munge_path_list ()
7944 + {
7945 +    case x$2 in
7946 +    x)
7947 +        ;;
7948 +    *:)
7949 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7950 +        ;;
7951 +    x:*)
7952 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7953 +        ;;
7954 +    *::*)
7955 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7956 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7957 +        ;;
7958 +    *)
7959 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7960 +        ;;
7961 +    esac
7962 + }
7963 +
7964   ac_ext=c
7965   ac_cpp='$CPP $CPPFLAGS'
7966   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 7959 | Line 8256 | if test "${enable_static+set}" = set; th
8256      *)
8257       enable_static=no
8258        # Look at the argument we got.  We use all the common list separators.
8259 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8259 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8260        for pkg in $enableval; do
8261 <        IFS="$lt_save_ifs"
8261 >        IFS=$lt_save_ifs
8262          if test "X$pkg" = "X$p"; then
8263            enable_static=yes
8264          fi
8265        done
8266 <      IFS="$lt_save_ifs"
8266 >      IFS=$lt_save_ifs
8267        ;;
8268      esac
8269   else
# Line 7995 | Line 8292 | if test "${enable_shared+set}" = set; th
8292      *)
8293        enable_shared=no
8294        # Look at the argument we got.  We use all the common list separators.
8295 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8296        for pkg in $enableval; do
8297 <        IFS="$lt_save_ifs"
8297 >        IFS=$lt_save_ifs
8298          if test "X$pkg" = "X$p"; then
8299            enable_shared=yes
8300          fi
8301        done
8302 <      IFS="$lt_save_ifs"
8302 >      IFS=$lt_save_ifs
8303        ;;
8304      esac
8305   else
# Line 8027 | Line 8324 | if test "${with_pic+set}" = set; then :
8324      *)
8325        pic_mode=default
8326        # Look at the argument we got.  We use all the common list separators.
8327 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8327 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8328        for lt_pkg in $withval; do
8329 <        IFS="$lt_save_ifs"
8329 >        IFS=$lt_save_ifs
8330          if test "X$lt_pkg" = "X$lt_p"; then
8331            pic_mode=yes
8332          fi
8333        done
8334 <      IFS="$lt_save_ifs"
8334 >      IFS=$lt_save_ifs
8335        ;;
8336      esac
8337   else
# Line 8042 | Line 8339 | else
8339   fi
8340  
8341  
8045 test -z "$pic_mode" && pic_mode=default
8046
8342  
8343  
8344  
# Line 8059 | Line 8354 | if test "${enable_fast_install+set}" = s
8354      *)
8355        enable_fast_install=no
8356        # Look at the argument we got.  We use all the common list separators.
8357 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8357 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8358        for pkg in $enableval; do
8359 <        IFS="$lt_save_ifs"
8359 >        IFS=$lt_save_ifs
8360          if test "X$pkg" = "X$p"; then
8361            enable_fast_install=yes
8362          fi
8363        done
8364 <      IFS="$lt_save_ifs"
8364 >      IFS=$lt_save_ifs
8365        ;;
8366      esac
8367   else
# Line 8080 | Line 8375 | fi
8375  
8376  
8377  
8378 +  shared_archive_member_spec=
8379 + case $host,$enable_shared in
8380 + power*-*-aix[5-9]*,yes)
8381 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8382 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8383 +
8384 + # Check whether --with-aix-soname was given.
8385 + if test "${with_aix_soname+set}" = set; then :
8386 +  withval=$with_aix_soname; case $withval in
8387 +    aix|svr4|both)
8388 +      ;;
8389 +    *)
8390 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8391 +      ;;
8392 +    esac
8393 +    lt_cv_with_aix_soname=$with_aix_soname
8394 + else
8395 +  if ${lt_cv_with_aix_soname+:} false; then :
8396 +  $as_echo_n "(cached) " >&6
8397 + else
8398 +  lt_cv_with_aix_soname=aix
8399 + fi
8400 +
8401 +    with_aix_soname=$lt_cv_with_aix_soname
8402 + fi
8403 +
8404 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8405 + $as_echo "$with_aix_soname" >&6; }
8406 +  if test aix != "$with_aix_soname"; then
8407 +    # For the AIX way of multilib, we name the shared archive member
8408 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8409 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8410 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8411 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8412 +    if test 64 = "${OBJECT_MODE-32}"; then
8413 +      shared_archive_member_spec=shr_64
8414 +    else
8415 +      shared_archive_member_spec=shr
8416 +    fi
8417 +  fi
8418 +  ;;
8419 + *)
8420 +  with_aix_soname=aix
8421 +  ;;
8422 + esac
8423 +
8424 +
8425 +
8426 +
8427 +
8428 +
8429 +
8430  
8431  
8432  
8433   # This can be used to rebuild libtool when needed
8434 < LIBTOOL_DEPS="$ltmain"
8434 > LIBTOOL_DEPS=$ltmain
8435  
8436   # Always use our own libtool.
8437   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8133 | Line 8480 | test -z "$LN_S" && LN_S="ln -s"
8480  
8481  
8482  
8483 < if test -n "${ZSH_VERSION+set}" ; then
8483 > if test -n "${ZSH_VERSION+set}"; then
8484     setopt NO_GLOB_SUBST
8485   fi
8486  
# Line 8172 | Line 8519 | aix3*)
8519    # AIX sometimes has problems with the GCC collect2 program.  For some
8520    # reason, if we set the COLLECT_NAMES environment variable, the problems
8521    # vanish in a puff of smoke.
8522 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8522 >  if test set != "${COLLECT_NAMES+set}"; then
8523      COLLECT_NAMES=
8524      export COLLECT_NAMES
8525    fi
# Line 8183 | Line 8530 | esac
8530   ofile=libtool
8531   can_build_shared=yes
8532  
8533 < # All known linkers require a `.a' archive for static linking (except MSVC,
8533 > # All known linkers require a '.a' archive for static linking (except MSVC,
8534   # which needs '.lib').
8535   libext=a
8536  
8537 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8537 > with_gnu_ld=$lt_cv_prog_gnu_ld
8538  
8539 < old_CC="$CC"
8540 < old_CFLAGS="$CFLAGS"
8539 > old_CC=$CC
8540 > old_CFLAGS=$CFLAGS
8541  
8542   # Set sane defaults for various variables
8543   test -z "$CC" && CC=cc
# Line 8199 | Line 8546 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8546   test -z "$LD" && LD=ld
8547   test -z "$ac_objext" && ac_objext=o
8548  
8549 < for cc_temp in $compiler""; do
8550 <  case $cc_temp in
8204 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8205 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8206 <    \-*) ;;
8207 <    *) break;;
8208 <  esac
8209 < done
8210 < cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8549 > func_cc_basename $compiler
8550 > cc_basename=$func_cc_basename_result
8551  
8552  
8553   # Only perform the check for file, if the check method requires it
# Line 8222 | Line 8562 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8562   else
8563    case $MAGIC_CMD in
8564   [\\/*] |  ?:[\\/]*)
8565 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8566    ;;
8567   *)
8568 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8569 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8568 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8569 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8570    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571    for ac_dir in $ac_dummy; do
8572 <    IFS="$lt_save_ifs"
8572 >    IFS=$lt_save_ifs
8573      test -z "$ac_dir" && ac_dir=.
8574 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8575 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8574 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8575 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8576        if test -n "$file_magic_test_file"; then
8577          case $deplibs_check_method in
8578          "file_magic "*)
8579            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8581            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582              $EGREP "$file_magic_regex" > /dev/null; then
8583              :
# Line 8260 | Line 8600 | _LT_EOF
8600        break
8601      fi
8602    done
8603 <  IFS="$lt_save_ifs"
8604 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8603 >  IFS=$lt_save_ifs
8604 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8605    ;;
8606   esac
8607   fi
8608  
8609 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8610   if test -n "$MAGIC_CMD"; then
8611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612   $as_echo "$MAGIC_CMD" >&6; }
# Line 8288 | Line 8628 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8628   else
8629    case $MAGIC_CMD in
8630   [\\/*] |  ?:[\\/]*)
8631 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8632    ;;
8633   *)
8634 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8635 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8634 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8635 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8636    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637    for ac_dir in $ac_dummy; do
8638 <    IFS="$lt_save_ifs"
8638 >    IFS=$lt_save_ifs
8639      test -z "$ac_dir" && ac_dir=.
8640 <    if test -f $ac_dir/file; then
8641 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8640 >    if test -f "$ac_dir/file"; then
8641 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8642        if test -n "$file_magic_test_file"; then
8643          case $deplibs_check_method in
8644          "file_magic "*)
8645            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648              $EGREP "$file_magic_regex" > /dev/null; then
8649              :
# Line 8326 | Line 8666 | _LT_EOF
8666        break
8667      fi
8668    done
8669 <  IFS="$lt_save_ifs"
8670 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8669 >  IFS=$lt_save_ifs
8670 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8671    ;;
8672   esac
8673   fi
8674  
8675 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8676   if test -n "$MAGIC_CMD"; then
8677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678   $as_echo "$MAGIC_CMD" >&6; }
# Line 8353 | Line 8693 | esac
8693  
8694   # Use C for the default configuration in the libtool script
8695  
8696 < lt_save_CC="$CC"
8696 > lt_save_CC=$CC
8697   ac_ext=c
8698   ac_cpp='$CPP $CPPFLAGS'
8699   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8407 | Line 8747 | _lt_linker_boilerplate=`cat conftest.err
8747   $RM -r conftest*
8748  
8749  
8750 + ## CAVEAT EMPTOR:
8751 + ## There is no encapsulation within the following macros, do not change
8752 + ## the running order or otherwise move them around unless you know exactly
8753 + ## what you are doing...
8754   if test -n "$compiler"; then
8755  
8756   lt_prog_compiler_no_builtin_flag=
8757  
8758 < if test "$GCC" = yes; then
8758 > if test yes = "$GCC"; then
8759    case $cc_basename in
8760    nvcc*)
8761      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8427 | Line 8771 | else
8771    lt_cv_prog_compiler_rtti_exceptions=no
8772     ac_outfile=conftest.$ac_objext
8773     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8774 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8775     # Insert the option either (1) after the last *FLAGS variable, or
8776     # (2) before a word containing "conftest.", or (3) at the end.
8777     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8457 | Line 8801 | fi
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8802   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8803  
8804 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8804 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8805      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8806   else
8807      :
# Line 8475 | Line 8819 | lt_prog_compiler_pic=
8819   lt_prog_compiler_static=
8820  
8821  
8822 <  if test "$GCC" = yes; then
8822 >  if test yes = "$GCC"; then
8823      lt_prog_compiler_wl='-Wl,'
8824      lt_prog_compiler_static='-static'
8825  
8826      case $host_os in
8827        aix*)
8828        # All AIX code is PIC.
8829 <      if test "$host_cpu" = ia64; then
8829 >      if test ia64 = "$host_cpu"; then
8830          # AIX 5 now supports IA64 processor
8831          lt_prog_compiler_static='-Bstatic'
8832        fi
8833 +      lt_prog_compiler_pic='-fPIC'
8834        ;;
8835  
8836      amigaos*)
# Line 8496 | Line 8841 | lt_prog_compiler_static=
8841          ;;
8842        m68k)
8843              # FIXME: we need at least 68020 code to build shared libraries, but
8844 <            # adding the `-m68020' flag to GCC prevents building anything better,
8845 <            # like `-m68040'.
8844 >            # adding the '-m68020' flag to GCC prevents building anything better,
8845 >            # like '-m68040'.
8846              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847          ;;
8848        esac
# Line 8513 | Line 8858 | lt_prog_compiler_static=
8858        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859        # (--disable-auto-import) libraries
8860        lt_prog_compiler_pic='-DDLL_EXPORT'
8861 +      case $host_os in
8862 +      os2*)
8863 +        lt_prog_compiler_static='$wl-static'
8864 +        ;;
8865 +      esac
8866        ;;
8867  
8868      darwin* | rhapsody*)
# Line 8583 | Line 8933 | lt_prog_compiler_static=
8933      case $host_os in
8934      aix*)
8935        lt_prog_compiler_wl='-Wl,'
8936 <      if test "$host_cpu" = ia64; then
8936 >      if test ia64 = "$host_cpu"; then
8937          # AIX 5 now supports IA64 processor
8938          lt_prog_compiler_static='-Bstatic'
8939        else
# Line 8591 | Line 8941 | lt_prog_compiler_static=
8941        fi
8942        ;;
8943  
8944 +    darwin* | rhapsody*)
8945 +      # PIC is the default on this platform
8946 +      # Common symbols not allowed in MH_DYLIB files
8947 +      lt_prog_compiler_pic='-fno-common'
8948 +      case $cc_basename in
8949 +      nagfor*)
8950 +        # NAG Fortran compiler
8951 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8952 +        lt_prog_compiler_pic='-PIC'
8953 +        lt_prog_compiler_static='-Bstatic'
8954 +        ;;
8955 +      esac
8956 +      ;;
8957 +
8958      mingw* | cygwin* | pw32* | os2* | cegcc*)
8959        # This hack is so that the source file can tell whether it is being
8960        # built for inclusion in a dll (and should export symbols for example).
8961        lt_prog_compiler_pic='-DDLL_EXPORT'
8962 +      case $host_os in
8963 +      os2*)
8964 +        lt_prog_compiler_static='$wl-static'
8965 +        ;;
8966 +      esac
8967        ;;
8968  
8969      hpux9* | hpux10* | hpux11*)
# Line 8610 | Line 8979 | lt_prog_compiler_static=
8979          ;;
8980        esac
8981        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8982 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8982 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8983        ;;
8984  
8985      irix5* | irix6* | nonstopux*)
# Line 8619 | Line 8988 | lt_prog_compiler_static=
8988        lt_prog_compiler_static='-non_shared'
8989        ;;
8990  
8991 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8991 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8992        case $cc_basename in
8993 <      # old Intel for x86_64 which still supported -KPIC.
8993 >      # old Intel for x86_64, which still supported -KPIC.
8994        ecc*)
8995          lt_prog_compiler_wl='-Wl,'
8996          lt_prog_compiler_pic='-KPIC'
# Line 8646 | Line 9015 | lt_prog_compiler_static=
9015          lt_prog_compiler_pic='-PIC'
9016          lt_prog_compiler_static='-Bstatic'
9017          ;;
9018 +      tcc*)
9019 +        # Fabrice Bellard et al's Tiny C Compiler
9020 +        lt_prog_compiler_wl='-Wl,'
9021 +        lt_prog_compiler_pic='-fPIC'
9022 +        lt_prog_compiler_static='-static'
9023 +        ;;
9024        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9025          # Portland Group compilers (*not* the Pentium gcc compiler,
9026          # which looks to be a dead project)
# Line 8743 | Line 9118 | lt_prog_compiler_static=
9118        ;;
9119  
9120      sysv4*MP*)
9121 <      if test -d /usr/nec ;then
9121 >      if test -d /usr/nec; then
9122          lt_prog_compiler_pic='-Kconform_pic'
9123          lt_prog_compiler_static='-Bstatic'
9124        fi
# Line 8772 | Line 9147 | lt_prog_compiler_static=
9147    fi
9148  
9149   case $host_os in
9150 <  # For platforms which do not support PIC, -DPIC is meaningless:
9150 >  # For platforms that do not support PIC, -DPIC is meaningless:
9151    *djgpp*)
9152      lt_prog_compiler_pic=
9153      ;;
# Line 8804 | Line 9179 | else
9179    lt_cv_prog_compiler_pic_works=no
9180     ac_outfile=conftest.$ac_objext
9181     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9182 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9183     # Insert the option either (1) after the last *FLAGS variable, or
9184     # (2) before a word containing "conftest.", or (3) at the end.
9185     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8834 | Line 9209 | fi
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9210   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9211  
9212 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9212 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9213      case $lt_prog_compiler_pic in
9214       "" | " "*) ;;
9215       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8866 | Line 9241 | if ${lt_cv_prog_compiler_static_works+:}
9241    $as_echo_n "(cached) " >&6
9242   else
9243    lt_cv_prog_compiler_static_works=no
9244 <   save_LDFLAGS="$LDFLAGS"
9244 >   save_LDFLAGS=$LDFLAGS
9245     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9247     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8885 | Line 9260 | else
9260       fi
9261     fi
9262     $RM -r conftest*
9263 <   LDFLAGS="$save_LDFLAGS"
9263 >   LDFLAGS=$save_LDFLAGS
9264  
9265   fi
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9267   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9268  
9269 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9269 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9270      :
9271   else
9272      lt_prog_compiler_static=
# Line 9011 | Line 9386 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9386  
9387  
9388  
9389 < hard_links="nottested"
9390 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9389 > hard_links=nottested
9390 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9391    # do not overwrite the value of need_locks provided by the user
9392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9393   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9024 | Line 9399 | $as_echo_n "checking if we can lock with
9399    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9401   $as_echo "$hard_links" >&6; }
9402 <  if test "$hard_links" = no; then
9403 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9404 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9402 >  if test no = "$hard_links"; then
9403 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9404 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9405      need_locks=warn
9406    fi
9407   else
# Line 9069 | Line 9444 | $as_echo_n "checking whether the $compil
9444    # included in the symbol list
9445    include_expsyms=
9446    # exclude_expsyms can be an extended regexp of symbols to exclude
9447 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9448 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9449 <  # as well as any symbol that contains `d'.
9447 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9448 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9449 >  # as well as any symbol that contains 'd'.
9450    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9451    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9452    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9086 | Line 9461 | $as_echo_n "checking whether the $compil
9461      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9462      # When not using gcc, we currently assume that we are using
9463      # Microsoft Visual C++.
9464 <    if test "$GCC" != yes; then
9464 >    if test yes != "$GCC"; then
9465        with_gnu_ld=no
9466      fi
9467      ;;
# Line 9094 | Line 9469 | $as_echo_n "checking whether the $compil
9469      # we just hope/assume this is gcc and not c89 (= MSVC++)
9470      with_gnu_ld=yes
9471      ;;
9472 <  openbsd*)
9472 >  openbsd* | bitrig*)
9473      with_gnu_ld=no
9474      ;;
9475    esac
# Line 9104 | Line 9479 | $as_echo_n "checking whether the $compil
9479    # On some targets, GNU ld is compatible enough with the native linker
9480    # that we're better off using the native interface for both.
9481    lt_use_gnu_ld_interface=no
9482 <  if test "$with_gnu_ld" = yes; then
9482 >  if test yes = "$with_gnu_ld"; then
9483      case $host_os in
9484        aix*)
9485          # The AIX port of GNU ld has always aspired to compatibility
# Line 9126 | Line 9501 | $as_echo_n "checking whether the $compil
9501      esac
9502    fi
9503  
9504 <  if test "$lt_use_gnu_ld_interface" = yes; then
9504 >  if test yes = "$lt_use_gnu_ld_interface"; then
9505      # If archive_cmds runs LD, not CC, wlarc should be empty
9506 <    wlarc='${wl}'
9506 >    wlarc='$wl'
9507  
9508      # Set some defaults for GNU ld with shared library support. These
9509      # are reset later if shared libraries are not supported. Putting them
9510      # here allows them to be overridden if necessary.
9511      runpath_var=LD_RUN_PATH
9512 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9512 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9513 >    export_dynamic_flag_spec='$wl--export-dynamic'
9514      # ancient GNU ld didn't support --whole-archive et. al.
9515      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9516 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9516 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9517      else
9518        whole_archive_flag_spec=
9519      fi
9520      supports_anon_versioning=no
9521 <    case `$LD -v 2>&1` in
9521 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9522        *GNU\ gold*) supports_anon_versioning=yes ;;
9523        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9524        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9156 | Line 9531 | $as_echo_n "checking whether the $compil
9531      case $host_os in
9532      aix[3-9]*)
9533        # On AIX/PPC, the GNU linker is very broken
9534 <      if test "$host_cpu" != ia64; then
9534 >      if test ia64 != "$host_cpu"; then
9535          ld_shlibs=no
9536          cat <<_LT_EOF 1>&2
9537  
# Line 9175 | Line 9550 | _LT_EOF
9550        case $host_cpu in
9551        powerpc)
9552              # see comment about AmigaOS4 .so support
9553 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554              archive_expsym_cmds=''
9555          ;;
9556        m68k)
# Line 9191 | Line 9566 | _LT_EOF
9566          allow_undefined_flag=unsupported
9567          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9568          # support --undefined.  This deserves some investigation.  FIXME
9569 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570        else
9571          ld_shlibs=no
9572        fi
# Line 9201 | Line 9576 | _LT_EOF
9576        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9577        # as there is no search path for DLLs.
9578        hardcode_libdir_flag_spec='-L$libdir'
9579 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9579 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9580        allow_undefined_flag=unsupported
9581        always_export_symbols=no
9582        enable_shared_with_static_runtimes=yes
# Line 9209 | Line 9584 | _LT_EOF
9584        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9585  
9586        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9587 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 <        # If the export-symbols file already is a .def file (1st line
9589 <        # is EXPORTS), use it as is; otherwise, prepend...
9590 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9591 <          cp $export_symbols $output_objdir/$soname.def;
9592 <        else
9593 <          echo EXPORTS > $output_objdir/$soname.def;
9594 <          cat $export_symbols >> $output_objdir/$soname.def;
9595 <        fi~
9596 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9588 >        # If the export-symbols file already is a .def file, use it as
9589 >        # is; otherwise, prepend EXPORTS...
9590 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9591 >          cp $export_symbols $output_objdir/$soname.def;
9592 >        else
9593 >          echo EXPORTS > $output_objdir/$soname.def;
9594 >          cat $export_symbols >> $output_objdir/$soname.def;
9595 >        fi~
9596 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9597        else
9598          ld_shlibs=no
9599        fi
9600        ;;
9601  
9602      haiku*)
9603 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604        link_all_deplibs=yes
9605        ;;
9606  
9607 +    os2*)
9608 +      hardcode_libdir_flag_spec='-L$libdir'
9609 +      hardcode_minus_L=yes
9610 +      allow_undefined_flag=unsupported
9611 +      shrext_cmds=.dll
9612 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9613 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9614 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9615 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9616 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9617 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9618 +        emximp -o $lib $output_objdir/$libname.def'
9619 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9620 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9621 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9622 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9623 +        prefix_cmds="$SED"~
9624 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9625 +          prefix_cmds="$prefix_cmds -e 1d";
9626 +        fi~
9627 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9628 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9629 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9630 +        emximp -o $lib $output_objdir/$libname.def'
9631 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9632 +      enable_shared_with_static_runtimes=yes
9633 +      ;;
9634 +
9635      interix[3-9]*)
9636        hardcode_direct=no
9637        hardcode_shlibpath_var=no
9638 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9639 <      export_dynamic_flag_spec='${wl}-E'
9638 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9639 >      export_dynamic_flag_spec='$wl-E'
9640        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9641        # Instead, shared libraries are loaded at an image base (0x10000000 by
9642        # default) and relocated if they conflict, which is a slow very memory
9643        # consuming and fragmenting process.  To avoid this, we pick a random,
9644        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9645        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9646 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 <      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'
9646 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647 >      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'
9648        ;;
9649  
9650      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9651        tmp_diet=no
9652 <      if test "$host_os" = linux-dietlibc; then
9652 >      if test linux-dietlibc = "$host_os"; then
9653          case $cc_basename in
9654            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9655          esac
9656        fi
9657        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9658 <         && test "$tmp_diet" = no
9658 >         && test no = "$tmp_diet"
9659        then
9660          tmp_addflag=' $pic_flag'
9661          tmp_sharedflag='-shared'
9662          case $cc_basename,$host_cpu in
9663          pgcc*)                          # Portland Group C compiler
9664 <          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'
9664 >          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'
9665            tmp_addflag=' $pic_flag'
9666            ;;
9667          pgf77* | pgf90* | pgf95* | pgfortran*)
9668                                          # Portland Group f77 and f90 compilers
9669 <          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'
9669 >          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'
9670            tmp_addflag=' $pic_flag -Mnomain' ;;
9671          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9672            tmp_addflag=' -i_dynamic' ;;
# Line 9274 | Line 9677 | _LT_EOF
9677          lf95*)                          # Lahey Fortran 8.1
9678            whole_archive_flag_spec=
9679            tmp_sharedflag='--shared' ;;
9680 +        nagfor*)                        # NAGFOR 5.3
9681 +          tmp_sharedflag='-Wl,-shared' ;;
9682          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9683            tmp_sharedflag='-qmkshrobj'
9684            tmp_addflag= ;;
9685          nvcc*)  # Cuda Compiler Driver 2.2
9686 <          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'
9686 >          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'
9687            compiler_needs_object=yes
9688            ;;
9689          esac
9690          case `$CC -V 2>&1 | sed 5q` in
9691          *Sun\ C*)                       # Sun C 5.9
9692 <          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'
9692 >          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'
9693            compiler_needs_object=yes
9694            tmp_sharedflag='-G' ;;
9695          *Sun\ F*)                       # Sun Fortran 8.3
9696            tmp_sharedflag='-G' ;;
9697          esac
9698 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9699  
9700 <        if test "x$supports_anon_versioning" = xyes; then
9700 >        if test yes = "$supports_anon_versioning"; then
9701            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9702 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9702 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9704 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9705          fi
9706  
9707          case $cc_basename in
9708 +        tcc*)
9709 +          export_dynamic_flag_spec='-rdynamic'
9710 +          ;;
9711          xlf* | bgf* | bgxlf* | mpixlf*)
9712            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9713            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9714 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9715            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9716 <          if test "x$supports_anon_versioning" = xyes; then
9716 >          if test yes = "$supports_anon_versioning"; then
9717              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9718 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9718 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9720 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9721            fi
9722            ;;
9723          esac
# Line 9323 | Line 9731 | _LT_EOF
9731          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9732          wlarc=
9733        else
9734 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9736        fi
9737        ;;
9738  
# Line 9342 | Line 9750 | _LT_EOF
9750  
9751   _LT_EOF
9752        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9753 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9754 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9755        else
9756          ld_shlibs=no
9757        fi
# Line 9355 | Line 9763 | _LT_EOF
9763          ld_shlibs=no
9764          cat <<_LT_EOF 1>&2
9765  
9766 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9766 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9767   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9768   *** is disabling shared libraries support.  We urge you to upgrade GNU
9769   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9370 | Line 9778 | _LT_EOF
9778            # DT_RUNPATH tag from executables and libraries.  But doing so
9779            # requires that you compile everything twice, which is a pain.
9780            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9782 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9783 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9784            else
9785              ld_shlibs=no
9786            fi
# Line 9389 | Line 9797 | _LT_EOF
9797  
9798      *)
9799        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9800 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9802        else
9803          ld_shlibs=no
9804        fi
9805        ;;
9806      esac
9807  
9808 <    if test "$ld_shlibs" = no; then
9808 >    if test no = "$ld_shlibs"; then
9809        runpath_var=
9810        hardcode_libdir_flag_spec=
9811        export_dynamic_flag_spec=
# Line 9413 | Line 9821 | _LT_EOF
9821        # Note: this linker hardcodes the directories in LIBPATH if there
9822        # are no directories specified by -L.
9823        hardcode_minus_L=yes
9824 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9824 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9825          # Neither direct hardcoding nor static linking is supported with a
9826          # broken collect2.
9827          hardcode_direct=unsupported
# Line 9421 | Line 9829 | _LT_EOF
9829        ;;
9830  
9831      aix[4-9]*)
9832 <      if test "$host_cpu" = ia64; then
9832 >      if test ia64 = "$host_cpu"; then
9833          # On IA64, the linker does run time linking by default, so we don't
9834          # have to do anything special.
9835          aix_use_runtimelinking=no
9836          exp_sym_flag='-Bexport'
9837 <        no_entry_flag=""
9837 >        no_entry_flag=
9838        else
9839          # If we're using GNU nm, then we don't want the "-C" option.
9840 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9841 <        # Also, AIX nm treats weak defined symbols like other global
9842 <        # defined symbols, whereas GNU nm marks them as "W".
9840 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9841 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9842 >        # weak defined symbols like other global defined symbols, whereas
9843 >        # GNU nm marks them as "W".
9844 >        # While the 'weak' keyword is ignored in the Export File, we need
9845 >        # it in the Import File for the 'aix-soname' feature, so we have
9846 >        # to replace the "-B" option with "-P" for AIX nm.
9847          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9848 <          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9848 >          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9849          else
9850 <          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9850 >          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9851          fi
9852          aix_use_runtimelinking=no
9853  
9854          # Test if we are trying to use run time linking or normal
9855          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856 <        # need to do runtime linking.
9856 >        # have runtime linking enabled, and use it for executables.
9857 >        # For shared libraries, we enable/disable runtime linking
9858 >        # depending on the kind of the shared library created -
9859 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9860 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9861 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9862 >        #            lib.a           static archive
9863 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9864 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9865 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9866 >        #            lib.a(lib.so.V) shared, rtl:no
9867 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9868 >        #            lib.a           static archive
9869          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9870            for ld_flag in $LDFLAGS; do
9871 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9871 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9872              aix_use_runtimelinking=yes
9873              break
9874            fi
9875            done
9876 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9877 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9878 +            # so we don't have lib.a shared libs to link our executables.
9879 +            # We have to force runtime linking in this case.
9880 +            aix_use_runtimelinking=yes
9881 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9882 +          fi
9883            ;;
9884          esac
9885  
# Line 9467 | Line 9898 | _LT_EOF
9898        hardcode_direct_absolute=yes
9899        hardcode_libdir_separator=':'
9900        link_all_deplibs=yes
9901 <      file_list_spec='${wl}-f,'
9901 >      file_list_spec='$wl-f,'
9902 >      case $with_aix_soname,$aix_use_runtimelinking in
9903 >      aix,*) ;; # traditional, no import file
9904 >      svr4,* | *,yes) # use import file
9905 >        # The Import File defines what to hardcode.
9906 >        hardcode_direct=no
9907 >        hardcode_direct_absolute=no
9908 >        ;;
9909 >      esac
9910  
9911 <      if test "$GCC" = yes; then
9911 >      if test yes = "$GCC"; then
9912          case $host_os in aix4.[012]|aix4.[012].*)
9913          # We only want to do this on AIX 4.2 and lower, the check
9914          # below for broken collect2 doesn't work under 4.3+
9915 <          collect2name=`${CC} -print-prog-name=collect2`
9915 >          collect2name=`$CC -print-prog-name=collect2`
9916            if test -f "$collect2name" &&
9917             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9918            then
# Line 9492 | Line 9931 | _LT_EOF
9931            ;;
9932          esac
9933          shared_flag='-shared'
9934 <        if test "$aix_use_runtimelinking" = yes; then
9935 <          shared_flag="$shared_flag "'${wl}-G'
9934 >        if test yes = "$aix_use_runtimelinking"; then
9935 >          shared_flag="$shared_flag "'$wl-G'
9936          fi
9937 +        # Need to ensure runtime linking is disabled for the traditional
9938 +        # shared library, or the linker may eventually find shared libraries
9939 +        # /with/ Import File - we do not want to mix them.
9940 +        shared_flag_aix='-shared'
9941 +        shared_flag_svr4='-shared $wl-G'
9942        else
9943          # not using gcc
9944 <        if test "$host_cpu" = ia64; then
9944 >        if test ia64 = "$host_cpu"; then
9945          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9946          # chokes on -Wl,-G. The following line is correct:
9947            shared_flag='-G'
9948          else
9949 <          if test "$aix_use_runtimelinking" = yes; then
9950 <            shared_flag='${wl}-G'
9949 >          if test yes = "$aix_use_runtimelinking"; then
9950 >            shared_flag='$wl-G'
9951            else
9952 <            shared_flag='${wl}-bM:SRE'
9952 >            shared_flag='$wl-bM:SRE'
9953            fi
9954 +          shared_flag_aix='$wl-bM:SRE'
9955 +          shared_flag_svr4='$wl-G'
9956          fi
9957        fi
9958  
9959 <      export_dynamic_flag_spec='${wl}-bexpall'
9959 >      export_dynamic_flag_spec='$wl-bexpall'
9960        # It seems that -bexpall does not export symbols beginning with
9961        # underscore (_), so it is better to generate a list of symbols to export.
9962        always_export_symbols=yes
9963 <      if test "$aix_use_runtimelinking" = yes; then
9963 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9964          # Warning - without using the other runtime loading flags (-brtl),
9965          # -berok will link without error, but may produce a broken library.
9966          allow_undefined_flag='-berok'
9967          # Determine the default libpath from the value encoded in an
9968          # empty executable.
9969 <        if test "${lt_cv_aix_libpath+set}" = set; then
9969 >        if test set = "${lt_cv_aix_libpath+set}"; then
9970    aix_libpath=$lt_cv_aix_libpath
9971   else
9972    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9555 | Line 10001 | fi
10001   rm -f core conftest.err conftest.$ac_objext \
10002      conftest$ac_exeext conftest.$ac_ext
10003    if test -z "$lt_cv_aix_libpath_"; then
10004 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10004 >    lt_cv_aix_libpath_=/usr/lib:/lib
10005    fi
10006  
10007   fi
# Line 9563 | Line 10009 | fi
10009    aix_libpath=$lt_cv_aix_libpath_
10010   fi
10011  
10012 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 <        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"
10012 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10013 >        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
10014        else
10015 <        if test "$host_cpu" = ia64; then
10016 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10015 >        if test ia64 = "$host_cpu"; then
10016 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10017            allow_undefined_flag="-z nodefs"
10018 <          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"
10018 >          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"
10019          else
10020           # Determine the default libpath from the value encoded in an
10021           # empty executable.
10022 <         if test "${lt_cv_aix_libpath+set}" = set; then
10022 >         if test set = "${lt_cv_aix_libpath+set}"; then
10023    aix_libpath=$lt_cv_aix_libpath
10024   else
10025    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9608 | Line 10054 | fi
10054   rm -f core conftest.err conftest.$ac_objext \
10055      conftest$ac_exeext conftest.$ac_ext
10056    if test -z "$lt_cv_aix_libpath_"; then
10057 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10057 >    lt_cv_aix_libpath_=/usr/lib:/lib
10058    fi
10059  
10060   fi
# Line 9616 | Line 10062 | fi
10062    aix_libpath=$lt_cv_aix_libpath_
10063   fi
10064  
10065 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10065 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10066            # Warning - without using the other run time loading flags,
10067            # -berok will link without error, but may produce a broken library.
10068 <          no_undefined_flag=' ${wl}-bernotok'
10069 <          allow_undefined_flag=' ${wl}-berok'
10070 <          if test "$with_gnu_ld" = yes; then
10068 >          no_undefined_flag=' $wl-bernotok'
10069 >          allow_undefined_flag=' $wl-berok'
10070 >          if test yes = "$with_gnu_ld"; then
10071              # We only use this code for GNU lds that support --whole-archive.
10072 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10072 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10073            else
10074              # Exported symbols can be pulled into shared objects from archives
10075              whole_archive_flag_spec='$convenience'
10076            fi
10077            archive_cmds_need_lc=yes
10078 <          # This is similar to how AIX traditionally builds its shared libraries.
10079 <          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'
10078 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10079 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10080 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10081 >          if test svr4 != "$with_aix_soname"; then
10082 >            # This is similar to how AIX traditionally builds its shared libraries.
10083 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10084 >          fi
10085 >          if test aix != "$with_aix_soname"; then
10086 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10087 >          else
10088 >            # used by -dlpreopen to get the symbols
10089 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10090 >          fi
10091 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10092          fi
10093        fi
10094        ;;
# Line 9639 | Line 10097 | fi
10097        case $host_cpu in
10098        powerpc)
10099              # see comment about AmigaOS4 .so support
10100 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10101              archive_expsym_cmds=''
10102          ;;
10103        m68k)
# Line 9669 | Line 10127 | fi
10127          # Tell ltmain to make .lib files, not .a files.
10128          libext=lib
10129          # Tell ltmain to make .dll files, not .so files.
10130 <        shrext_cmds=".dll"
10130 >        shrext_cmds=.dll
10131          # FIXME: Setting linknames here is a bad hack.
10132 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10133 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10134 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10135 <          else
10136 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10137 <          fi~
10138 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10139 <          linknames='
10132 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10133 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10134 >            cp "$export_symbols" "$output_objdir/$soname.def";
10135 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10136 >          else
10137 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10138 >          fi~
10139 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10140 >          linknames='
10141          # The linker will not automatically build a static lib if we build a DLL.
10142          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10143          enable_shared_with_static_runtimes=yes
# Line 9687 | Line 10146 | fi
10146          # Don't use ranlib
10147          old_postinstall_cmds='chmod 644 $oldlib'
10148          postlink_cmds='lt_outputfile="@OUTPUT@"~
10149 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 <          case $lt_outputfile in
10151 <            *.exe|*.EXE) ;;
10152 <            *)
10153 <              lt_outputfile="$lt_outputfile.exe"
10154 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10155 <              ;;
10156 <          esac~
10157 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10158 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 <            $RM "$lt_outputfile.manifest";
10160 <          fi'
10149 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10150 >          case $lt_outputfile in
10151 >            *.exe|*.EXE) ;;
10152 >            *)
10153 >              lt_outputfile=$lt_outputfile.exe
10154 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10155 >              ;;
10156 >          esac~
10157 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10158 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10159 >            $RM "$lt_outputfile.manifest";
10160 >          fi'
10161          ;;
10162        *)
10163          # Assume MSVC wrapper
# Line 9707 | Line 10166 | fi
10166          # Tell ltmain to make .lib files, not .a files.
10167          libext=lib
10168          # Tell ltmain to make .dll files, not .so files.
10169 <        shrext_cmds=".dll"
10169 >        shrext_cmds=.dll
10170          # FIXME: Setting linknames here is a bad hack.
10171          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10172          # The linker will automatically build a .lib file if we build a DLL.
# Line 9726 | Line 10185 | fi
10185    hardcode_direct=no
10186    hardcode_automatic=yes
10187    hardcode_shlibpath_var=unsupported
10188 <  if test "$lt_cv_ld_force_load" = "yes"; then
10189 <    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\"`'
10188 >  if test yes = "$lt_cv_ld_force_load"; then
10189 >    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\"`'
10190  
10191    else
10192      whole_archive_flag_spec=''
10193    fi
10194    link_all_deplibs=yes
10195 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10195 >  allow_undefined_flag=$_lt_dar_allow_undefined
10196    case $cc_basename in
10197 <     ifort*) _lt_dar_can_shared=yes ;;
10197 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10198       *) _lt_dar_can_shared=$GCC ;;
10199    esac
10200 <  if test "$_lt_dar_can_shared" = "yes"; then
10200 >  if test yes = "$_lt_dar_can_shared"; then
10201      output_verbose_link_cmd=func_echo_all
10202 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10203 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10204 <    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}"
10205 <    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}"
10202 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10203 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10204 >    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"
10205 >    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"
10206  
10207    else
10208    ld_shlibs=no
# Line 9785 | Line 10244 | fi
10244        ;;
10245  
10246      hpux9*)
10247 <      if test "$GCC" = yes; then
10248 <        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'
10247 >      if test yes = "$GCC"; then
10248 >        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'
10249        else
10250 <        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'
10250 >        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'
10251        fi
10252 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10253        hardcode_libdir_separator=:
10254        hardcode_direct=yes
10255  
10256        # hardcode_minus_L: Not really in the search PATH,
10257        # but as the default location of the library.
10258        hardcode_minus_L=yes
10259 <      export_dynamic_flag_spec='${wl}-E'
10259 >      export_dynamic_flag_spec='$wl-E'
10260        ;;
10261  
10262      hpux10*)
10263 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10264 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10264 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10265        else
10266          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10267        fi
10268 <      if test "$with_gnu_ld" = no; then
10269 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10268 >      if test no = "$with_gnu_ld"; then
10269 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10270          hardcode_libdir_separator=:
10271          hardcode_direct=yes
10272          hardcode_direct_absolute=yes
10273 <        export_dynamic_flag_spec='${wl}-E'
10273 >        export_dynamic_flag_spec='$wl-E'
10274          # hardcode_minus_L: Not really in the search PATH,
10275          # but as the default location of the library.
10276          hardcode_minus_L=yes
# Line 9819 | Line 10278 | fi
10278        ;;
10279  
10280      hpux11*)
10281 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10281 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10282          case $host_cpu in
10283          hppa*64*)
10284 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10285            ;;
10286          ia64*)
10287 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10288            ;;
10289          *)
10290 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291            ;;
10292          esac
10293        else
10294          case $host_cpu in
10295          hppa*64*)
10296 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10297            ;;
10298          ia64*)
10299 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300            ;;
10301          *)
10302  
# Line 9849 | Line 10308 | if ${lt_cv_prog_compiler__b+:} false; th
10308    $as_echo_n "(cached) " >&6
10309   else
10310    lt_cv_prog_compiler__b=no
10311 <   save_LDFLAGS="$LDFLAGS"
10311 >   save_LDFLAGS=$LDFLAGS
10312     LDFLAGS="$LDFLAGS -b"
10313     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10314     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9868 | Line 10327 | else
10327       fi
10328     fi
10329     $RM -r conftest*
10330 <   LDFLAGS="$save_LDFLAGS"
10330 >   LDFLAGS=$save_LDFLAGS
10331  
10332   fi
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10334   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10335  
10336 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10337 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336 > if test yes = "$lt_cv_prog_compiler__b"; then
10337 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338   else
10339      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10340   fi
# Line 9883 | Line 10342 | fi
10342            ;;
10343          esac
10344        fi
10345 <      if test "$with_gnu_ld" = no; then
10346 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 >      if test no = "$with_gnu_ld"; then
10346 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347          hardcode_libdir_separator=:
10348  
10349          case $host_cpu in
# Line 9895 | Line 10354 | fi
10354          *)
10355            hardcode_direct=yes
10356            hardcode_direct_absolute=yes
10357 <          export_dynamic_flag_spec='${wl}-E'
10357 >          export_dynamic_flag_spec='$wl-E'
10358  
10359            # hardcode_minus_L: Not really in the search PATH,
10360            # but as the default location of the library.
# Line 9906 | Line 10365 | fi
10365        ;;
10366  
10367      irix5* | irix6* | nonstopux*)
10368 <      if test "$GCC" = yes; then
10369 <        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'
10368 >      if test yes = "$GCC"; then
10369 >        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'
10370          # Try to use the -exported_symbol ld option, if it does not
10371          # work, assume that -exports_file does not work either and
10372          # implicitly export all symbols.
# Line 9917 | Line 10376 | $as_echo_n "checking whether the $host_o
10376   if ${lt_cv_irix_exported_symbol+:} false; then :
10377    $as_echo_n "(cached) " >&6
10378   else
10379 <  save_LDFLAGS="$LDFLAGS"
10380 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10379 >  save_LDFLAGS=$LDFLAGS
10380 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10381             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382   /* end confdefs.h.  */
10383   int foo (void) { return 0; }
# Line 9930 | Line 10389 | else
10389   fi
10390   rm -f core conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392 <           LDFLAGS="$save_LDFLAGS"
10392 >           LDFLAGS=$save_LDFLAGS
10393   fi
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10395   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10396 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10397 <          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'
10396 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10397 >          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'
10398          fi
10399        else
10400 <        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'
10401 <        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'
10400 >        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'
10401 >        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'
10402        fi
10403        archive_cmds_need_lc='no'
10404 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10405        hardcode_libdir_separator=:
10406        inherit_rpath=yes
10407        link_all_deplibs=yes
10408        ;;
10409  
10410 +    linux*)
10411 +      case $cc_basename in
10412 +      tcc*)
10413 +        # Fabrice Bellard et al's Tiny C Compiler
10414 +        ld_shlibs=yes
10415 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 +        ;;
10417 +      esac
10418 +      ;;
10419 +
10420      netbsd*)
10421        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10422          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 9962 | Line 10431 | $as_echo "$lt_cv_irix_exported_symbol" >
10431      newsos6)
10432        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433        hardcode_direct=yes
10434 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10435        hardcode_libdir_separator=:
10436        hardcode_shlibpath_var=no
10437        ;;
# Line 9970 | Line 10439 | $as_echo "$lt_cv_irix_exported_symbol" >
10439      *nto* | *qnx*)
10440        ;;
10441  
10442 <    openbsd*)
10442 >    openbsd* | bitrig*)
10443        if test -f /usr/libexec/ld.so; then
10444          hardcode_direct=yes
10445          hardcode_shlibpath_var=no
10446          hardcode_direct_absolute=yes
10447 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10447 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10448            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10449 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10450 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10451 <          export_dynamic_flag_spec='${wl}-E'
10449 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10450 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10451 >          export_dynamic_flag_spec='$wl-E'
10452          else
10453 <          case $host_os in
10454 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9986 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987 <             hardcode_libdir_flag_spec='-R$libdir'
9988 <             ;;
9989 <           *)
9990 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992 <             ;;
9993 <          esac
10453 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10455          fi
10456        else
10457          ld_shlibs=no
# Line 10001 | Line 10462 | $as_echo "$lt_cv_irix_exported_symbol" >
10462        hardcode_libdir_flag_spec='-L$libdir'
10463        hardcode_minus_L=yes
10464        allow_undefined_flag=unsupported
10465 <      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10466 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10465 >      shrext_cmds=.dll
10466 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10471 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10472 >        emximp -o $lib $output_objdir/$libname.def'
10473 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 >        prefix_cmds="$SED"~
10478 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10479 >          prefix_cmds="$prefix_cmds -e 1d";
10480 >        fi~
10481 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10482 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10483 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10484 >        emximp -o $lib $output_objdir/$libname.def'
10485 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10486 >      enable_shared_with_static_runtimes=yes
10487        ;;
10488  
10489      osf3*)
10490 <      if test "$GCC" = yes; then
10491 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10492 <        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'
10490 >      if test yes = "$GCC"; then
10491 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10492 >        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'
10493        else
10494          allow_undefined_flag=' -expect_unresolved \*'
10495 <        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'
10495 >        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'
10496        fi
10497        archive_cmds_need_lc='no'
10498 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10499        hardcode_libdir_separator=:
10500        ;;
10501  
10502      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10503 <      if test "$GCC" = yes; then
10504 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505 <        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'
10506 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10503 >      if test yes = "$GCC"; then
10504 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10505 >        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'
10506 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507        else
10508          allow_undefined_flag=' -expect_unresolved \*'
10509 <        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'
10509 >        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'
10510          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~
10511 <        $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'
10511 >          $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'
10512  
10513          # Both c and cxx compiler support -rpath directly
10514          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10038 | Line 10519 | $as_echo "$lt_cv_irix_exported_symbol" >
10519  
10520      solaris*)
10521        no_undefined_flag=' -z defs'
10522 <      if test "$GCC" = yes; then
10523 <        wlarc='${wl}'
10524 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10522 >      if test yes = "$GCC"; then
10523 >        wlarc='$wl'
10524 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10525          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 <          $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'
10526 >          $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'
10527        else
10528          case `$CC -V 2>&1` in
10529          *"Compilers 5.0"*)
10530            wlarc=''
10531 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10533 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10534            ;;
10535          *)
10536 <          wlarc='${wl}'
10537 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10536 >          wlarc='$wl'
10537 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10538            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10539 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10540            ;;
10541          esac
10542        fi
# Line 10065 | Line 10546 | $as_echo "$lt_cv_irix_exported_symbol" >
10546        solaris2.[0-5] | solaris2.[0-5].*) ;;
10547        *)
10548          # The compiler driver will combine and reorder linker options,
10549 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10549 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10550          # but is careful enough not to reorder.
10551          # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 <        if test "$GCC" = yes; then
10553 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10552 >        if test yes = "$GCC"; then
10553 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10554          else
10555            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10556          fi
# Line 10079 | Line 10560 | $as_echo "$lt_cv_irix_exported_symbol" >
10560        ;;
10561  
10562      sunos4*)
10563 <      if test "x$host_vendor" = xsequent; then
10563 >      if test sequent = "$host_vendor"; then
10564          # Use $CC to link under sequent, because it throws in some extra .o
10565          # files that make .init and .fini sections work.
10566 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10566 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10567        else
10568          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569        fi
# Line 10131 | Line 10612 | $as_echo "$lt_cv_irix_exported_symbol" >
10612        ;;
10613  
10614      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10615 <      no_undefined_flag='${wl}-z,text'
10615 >      no_undefined_flag='$wl-z,text'
10616        archive_cmds_need_lc=no
10617        hardcode_shlibpath_var=no
10618        runpath_var='LD_RUN_PATH'
10619  
10620 <      if test "$GCC" = yes; then
10621 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 >      if test yes = "$GCC"; then
10621 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623        else
10624 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626        fi
10627        ;;
10628  
10629      sysv5* | sco3.2v5* | sco5v6*)
10630 <      # Note: We can NOT use -z defs as we might desire, because we do not
10630 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10631        # link with -lc, and that would cause any symbols used from libc to
10632        # always be unresolved, which means just about no library would
10633        # ever link correctly.  If we're not using GNU ld we use -z text
10634        # though, which does catch some bad symbols but isn't as heavy-handed
10635        # as -z defs.
10636 <      no_undefined_flag='${wl}-z,text'
10637 <      allow_undefined_flag='${wl}-z,nodefs'
10636 >      no_undefined_flag='$wl-z,text'
10637 >      allow_undefined_flag='$wl-z,nodefs'
10638        archive_cmds_need_lc=no
10639        hardcode_shlibpath_var=no
10640 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10640 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10641        hardcode_libdir_separator=':'
10642        link_all_deplibs=yes
10643 <      export_dynamic_flag_spec='${wl}-Bexport'
10643 >      export_dynamic_flag_spec='$wl-Bexport'
10644        runpath_var='LD_RUN_PATH'
10645  
10646 <      if test "$GCC" = yes; then
10647 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 >      if test yes = "$GCC"; then
10647 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649        else
10650 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652        fi
10653        ;;
10654  
# Line 10182 | Line 10663 | $as_echo "$lt_cv_irix_exported_symbol" >
10663        ;;
10664      esac
10665  
10666 <    if test x$host_vendor = xsni; then
10666 >    if test sni = "$host_vendor"; then
10667        case $host in
10668        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10669 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10670          ;;
10671        esac
10672      fi
# Line 10193 | Line 10674 | $as_echo "$lt_cv_irix_exported_symbol" >
10674  
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10676   $as_echo "$ld_shlibs" >&6; }
10677 < test "$ld_shlibs" = no && can_build_shared=no
10677 > test no = "$ld_shlibs" && can_build_shared=no
10678  
10679   with_gnu_ld=$with_gnu_ld
10680  
# Line 10219 | Line 10700 | x|xyes)
10700    # Assume -lc should be added
10701    archive_cmds_need_lc=yes
10702  
10703 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10703 >  if test yes,yes = "$GCC,$enable_shared"; then
10704      case $archive_cmds in
10705      *'~'*)
10706        # FIXME: we may have to deal with multi-command sequences.
# Line 10434 | Line 10915 | esac
10915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10916   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10917  
10918 < if test "$GCC" = yes; then
10918 > if test yes = "$GCC"; then
10919    case $host_os in
10920 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10921 <    *) lt_awk_arg="/^libraries:/" ;;
10920 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10921 >    *) lt_awk_arg='/^libraries:/' ;;
10922    esac
10923    case $host_os in
10924 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10925 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10924 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10925 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10926    esac
10927    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10928    case $lt_search_path_spec in
# Line 10457 | Line 10938 | if test "$GCC" = yes; then
10938      ;;
10939    esac
10940    # Ok, now we have the path, separated by spaces, we can step through it
10941 <  # and add multilib dir if necessary.
10941 >  # and add multilib dir if necessary...
10942    lt_tmp_lt_search_path_spec=
10943 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10943 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10944 >  # ...but if some path component already ends with the multilib dir we assume
10945 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10946 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10947 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10948 >    lt_multi_os_dir=
10949 >    ;;
10950 >  esac
10951    for lt_sys_path in $lt_search_path_spec; do
10952 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10953 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10954 <    else
10952 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10953 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10954 >    elif test -n "$lt_multi_os_dir"; then
10955        test -d "$lt_sys_path" && \
10956          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10957      fi
10958    done
10959    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10960 < BEGIN {RS=" "; FS="/|\n";} {
10961 <  lt_foo="";
10962 <  lt_count=0;
10960 > BEGIN {RS = " "; FS = "/|\n";} {
10961 >  lt_foo = "";
10962 >  lt_count = 0;
10963    for (lt_i = NF; lt_i > 0; lt_i--) {
10964      if ($lt_i != "" && $lt_i != ".") {
10965        if ($lt_i == "..") {
10966          lt_count++;
10967        } else {
10968          if (lt_count == 0) {
10969 <          lt_foo="/" $lt_i lt_foo;
10969 >          lt_foo = "/" $lt_i lt_foo;
10970          } else {
10971            lt_count--;
10972          }
# Line 10492 | Line 10980 | BEGIN {RS=" "; FS="/|\n";} {
10980    # for these hosts.
10981    case $host_os in
10982      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10983 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10984    esac
10985    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10986   else
# Line 10501 | Line 10989 | fi
10989   library_names_spec=
10990   libname_spec='lib$name'
10991   soname_spec=
10992 < shrext_cmds=".so"
10992 > shrext_cmds=.so
10993   postinstall_cmds=
10994   postuninstall_cmds=
10995   finish_cmds=
# Line 10518 | Line 11006 | hardcode_into_libs=no
11006   # flags to be left without arguments
11007   need_version=unknown
11008  
11009 +
11010 +
11011   case $host_os in
11012   aix3*)
11013    version_type=linux # correct to gnu/linux during the next big refactor
11014 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11014 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11015    shlibpath_var=LIBPATH
11016  
11017    # AIX 3 has no versioning support, so we append a major version to the name.
11018 <  soname_spec='${libname}${release}${shared_ext}$major'
11018 >  soname_spec='$libname$release$shared_ext$major'
11019    ;;
11020  
11021   aix[4-9]*)
# Line 10533 | Line 11023 | aix[4-9]*)
11023    need_lib_prefix=no
11024    need_version=no
11025    hardcode_into_libs=yes
11026 <  if test "$host_cpu" = ia64; then
11026 >  if test ia64 = "$host_cpu"; then
11027      # AIX 5 supports IA64
11028 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11028 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11029      shlibpath_var=LD_LIBRARY_PATH
11030    else
11031      # With GCC up to 2.95.x, collect2 would create an import file
11032      # for dependence libraries.  The import file would start with
11033 <    # the line `#! .'.  This would cause the generated library to
11034 <    # depend on `.', always an invalid library.  This was fixed in
11033 >    # the line '#! .'.  This would cause the generated library to
11034 >    # depend on '.', always an invalid library.  This was fixed in
11035      # development snapshots of GCC prior to 3.0.
11036      case $host_os in
11037        aix4 | aix4.[01] | aix4.[01].*)
11038        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11039             echo ' yes '
11040 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11040 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11041          :
11042        else
11043          can_build_shared=no
11044        fi
11045        ;;
11046      esac
11047 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11047 >    # Using Import Files as archive members, it is possible to support
11048 >    # filename-based versioning of shared library archives on AIX. While
11049 >    # this would work for both with and without runtime linking, it will
11050 >    # prevent static linking of such archives. So we do filename-based
11051 >    # shared library versioning with .so extension only, which is used
11052 >    # when both runtime linking and shared linking is enabled.
11053 >    # Unfortunately, runtime linking may impact performance, so we do
11054 >    # not want this to be the default eventually. Also, we use the
11055 >    # versioned .so libs for executables only if there is the -brtl
11056 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11057 >    # To allow for filename-based versioning support, we need to create
11058 >    # libNAME.so.V as an archive file, containing:
11059 >    # *) an Import File, referring to the versioned filename of the
11060 >    #    archive as well as the shared archive member, telling the
11061 >    #    bitwidth (32 or 64) of that shared object, and providing the
11062 >    #    list of exported symbols of that shared object, eventually
11063 >    #    decorated with the 'weak' keyword
11064 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11065 >    #    it being seen by the linker.
11066 >    # At run time we better use the real file rather than another symlink,
11067 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11068 >
11069 >    case $with_aix_soname,$aix_use_runtimelinking in
11070 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11071      # soname into executable. Probably we can add versioning support to
11072      # collect2, so additional links can be useful in future.
11073 <    if test "$aix_use_runtimelinking" = yes; then
11073 >    aix,yes) # traditional libtool
11074 >      dynamic_linker='AIX unversionable lib.so'
11075        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11076        # instead of lib<name>.a to let people know that these are not
11077        # typical AIX shared libraries.
11078 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 <    else
11078 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 >      ;;
11080 >    aix,no) # traditional AIX only
11081 >      dynamic_linker='AIX lib.a(lib.so.V)'
11082        # We preserve .a as extension for shared libraries through AIX4.2
11083        # and later when we are not doing run time linking.
11084 <      library_names_spec='${libname}${release}.a $libname.a'
11085 <      soname_spec='${libname}${release}${shared_ext}$major'
11086 <    fi
11084 >      library_names_spec='$libname$release.a $libname.a'
11085 >      soname_spec='$libname$release$shared_ext$major'
11086 >      ;;
11087 >    svr4,*) # full svr4 only
11088 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11089 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11090 >      # We do not specify a path in Import Files, so LIBPATH fires.
11091 >      shlibpath_overrides_runpath=yes
11092 >      ;;
11093 >    *,yes) # both, prefer svr4
11094 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11095 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11096 >      # unpreferred sharedlib libNAME.a needs extra handling
11097 >      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11098 >      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11099 >      # We do not specify a path in Import Files, so LIBPATH fires.
11100 >      shlibpath_overrides_runpath=yes
11101 >      ;;
11102 >    *,no) # both, prefer aix
11103 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11104 >      library_names_spec='$libname$release.a $libname.a'
11105 >      soname_spec='$libname$release$shared_ext$major'
11106 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11107 >      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11108 >      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11109 >      ;;
11110 >    esac
11111      shlibpath_var=LIBPATH
11112    fi
11113    ;;
# Line 10577 | Line 11117 | amigaos*)
11117    powerpc)
11118      # Since July 2007 AmigaOS4 officially supports .so libraries.
11119      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11120 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121      ;;
11122    m68k)
11123      library_names_spec='$libname.ixlibrary $libname.a'
11124      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11125 <    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'
11125 >    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'
11126      ;;
11127    esac
11128    ;;
11129  
11130   beos*)
11131 <  library_names_spec='${libname}${shared_ext}'
11131 >  library_names_spec='$libname$shared_ext'
11132    dynamic_linker="$host_os ld.so"
11133    shlibpath_var=LIBRARY_PATH
11134    ;;
# Line 10596 | Line 11136 | beos*)
11136   bsdi[45]*)
11137    version_type=linux # correct to gnu/linux during the next big refactor
11138    need_version=no
11139 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 <  soname_spec='${libname}${release}${shared_ext}$major'
11139 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 >  soname_spec='$libname$release$shared_ext$major'
11141    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11142    shlibpath_var=LD_LIBRARY_PATH
11143    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10609 | Line 11149 | bsdi[45]*)
11149  
11150   cygwin* | mingw* | pw32* | cegcc*)
11151    version_type=windows
11152 <  shrext_cmds=".dll"
11152 >  shrext_cmds=.dll
11153    need_version=no
11154    need_lib_prefix=no
11155  
# Line 10618 | Line 11158 | cygwin* | mingw* | pw32* | cegcc*)
11158      # gcc
11159      library_names_spec='$libname.dll.a'
11160      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 <    postinstall_cmds='base_file=`basename \${file}`~
11162 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11161 >    postinstall_cmds='base_file=`basename \$file`~
11162 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11163        dldir=$destdir/`dirname \$dlpath`~
11164        test -d \$dldir || mkdir -p \$dldir~
11165        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10635 | Line 11175 | cygwin* | mingw* | pw32* | cegcc*)
11175      case $host_os in
11176      cygwin*)
11177        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11178 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11178 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11179  
11180        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11181        ;;
11182      mingw* | cegcc*)
11183        # MinGW DLLs use traditional 'lib' prefix
11184 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11184 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11185        ;;
11186      pw32*)
11187        # pw32 DLLs use 'pw' prefix rather than 'lib'
11188 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11188 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11189        ;;
11190      esac
11191      dynamic_linker='Win32 ld.exe'
# Line 10654 | Line 11194 | cygwin* | mingw* | pw32* | cegcc*)
11194    *,cl*)
11195      # Native MSVC
11196      libname_spec='$name'
11197 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11198 <    library_names_spec='${libname}.dll.lib'
11197 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11198 >    library_names_spec='$libname.dll.lib'
11199  
11200      case $build_os in
11201      mingw*)
# Line 10682 | Line 11222 | cygwin* | mingw* | pw32* | cegcc*)
11222        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223        ;;
11224      *)
11225 <      sys_lib_search_path_spec="$LIB"
11225 >      sys_lib_search_path_spec=$LIB
11226        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11227          # It is most probably a Windows format PATH.
11228          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10695 | Line 11235 | cygwin* | mingw* | pw32* | cegcc*)
11235      esac
11236  
11237      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11238 <    postinstall_cmds='base_file=`basename \${file}`~
11239 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11238 >    postinstall_cmds='base_file=`basename \$file`~
11239 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11240        dldir=$destdir/`dirname \$dlpath`~
11241        test -d \$dldir || mkdir -p \$dldir~
11242        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10709 | Line 11249 | cygwin* | mingw* | pw32* | cegcc*)
11249  
11250    *)
11251      # Assume MSVC wrapper
11252 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11253      dynamic_linker='Win32 ld.exe'
11254      ;;
11255    esac
# Line 10722 | Line 11262 | darwin* | rhapsody*)
11262    version_type=darwin
11263    need_lib_prefix=no
11264    need_version=no
11265 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11266 <  soname_spec='${libname}${release}${major}$shared_ext'
11265 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11266 >  soname_spec='$libname$release$major$shared_ext'
11267    shlibpath_overrides_runpath=yes
11268    shlibpath_var=DYLD_LIBRARY_PATH
11269    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10736 | Line 11276 | dgux*)
11276    version_type=linux # correct to gnu/linux during the next big refactor
11277    need_lib_prefix=no
11278    need_version=no
11279 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280 <  soname_spec='${libname}${release}${shared_ext}$major'
11279 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11280 >  soname_spec='$libname$release$shared_ext$major'
11281    shlibpath_var=LD_LIBRARY_PATH
11282    ;;
11283  
# Line 10755 | Line 11295 | freebsd* | dragonfly*)
11295    version_type=freebsd-$objformat
11296    case $version_type in
11297      freebsd-elf*)
11298 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299 >      soname_spec='$libname$release$shared_ext$major'
11300        need_version=no
11301        need_lib_prefix=no
11302        ;;
11303      freebsd-*)
11304 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11304 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11305        need_version=yes
11306        ;;
11307    esac
# Line 10785 | Line 11326 | freebsd* | dragonfly*)
11326    esac
11327    ;;
11328  
10788 gnu*)
10789  version_type=linux # correct to gnu/linux during the next big refactor
10790  need_lib_prefix=no
10791  need_version=no
10792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10793  soname_spec='${libname}${release}${shared_ext}$major'
10794  shlibpath_var=LD_LIBRARY_PATH
10795  shlibpath_overrides_runpath=no
10796  hardcode_into_libs=yes
10797  ;;
10798
11329   haiku*)
11330    version_type=linux # correct to gnu/linux during the next big refactor
11331    need_lib_prefix=no
11332    need_version=no
11333    dynamic_linker="$host_os runtime_loader"
11334 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11335 <  soname_spec='${libname}${release}${shared_ext}$major'
11334 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 >  soname_spec='$libname$release$shared_ext$major'
11336    shlibpath_var=LIBRARY_PATH
11337 <  shlibpath_overrides_runpath=yes
11337 >  shlibpath_overrides_runpath=no
11338    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11339    hardcode_into_libs=yes
11340    ;;
# Line 10822 | Line 11352 | hpux9* | hpux10* | hpux11*)
11352      dynamic_linker="$host_os dld.so"
11353      shlibpath_var=LD_LIBRARY_PATH
11354      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 <    soname_spec='${libname}${release}${shared_ext}$major'
11357 <    if test "X$HPUX_IA64_MODE" = X32; then
11355 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 >    soname_spec='$libname$release$shared_ext$major'
11357 >    if test 32 = "$HPUX_IA64_MODE"; then
11358        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11359 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11360      else
11361        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11363      fi
10832    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364      ;;
11365    hppa*64*)
11366      shrext_cmds='.sl'
# Line 10837 | Line 11368 | hpux9* | hpux10* | hpux11*)
11368      dynamic_linker="$host_os dld.sl"
11369      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 <    soname_spec='${libname}${release}${shared_ext}$major'
11371 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372 >    soname_spec='$libname$release$shared_ext$major'
11373      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375      ;;
# Line 10847 | Line 11378 | hpux9* | hpux10* | hpux11*)
11378      dynamic_linker="$host_os dld.sl"
11379      shlibpath_var=SHLIB_PATH
11380      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 <    soname_spec='${libname}${release}${shared_ext}$major'
11381 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 >    soname_spec='$libname$release$shared_ext$major'
11383      ;;
11384    esac
11385    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10861 | Line 11392 | interix[3-9]*)
11392    version_type=linux # correct to gnu/linux during the next big refactor
11393    need_lib_prefix=no
11394    need_version=no
11395 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11396 <  soname_spec='${libname}${release}${shared_ext}$major'
11395 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 >  soname_spec='$libname$release$shared_ext$major'
11397    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11398    shlibpath_var=LD_LIBRARY_PATH
11399    shlibpath_overrides_runpath=no
# Line 10873 | Line 11404 | irix5* | irix6* | nonstopux*)
11404    case $host_os in
11405      nonstopux*) version_type=nonstopux ;;
11406      *)
11407 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11407 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11408                  version_type=linux # correct to gnu/linux during the next big refactor
11409          else
11410                  version_type=irix
# Line 10881 | Line 11412 | irix5* | irix6* | nonstopux*)
11412    esac
11413    need_lib_prefix=no
11414    need_version=no
11415 <  soname_spec='${libname}${release}${shared_ext}$major'
11416 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11415 >  soname_spec='$libname$release$shared_ext$major'
11416 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11417    case $host_os in
11418    irix5* | nonstopux*)
11419      libsuff= shlibsuff=
# Line 10901 | Line 11432 | irix5* | irix6* | nonstopux*)
11432    esac
11433    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434    shlibpath_overrides_runpath=no
11435 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11435 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11436 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11437    hardcode_into_libs=yes
11438    ;;
11439  
# Line 10911 | Line 11442 | linux*oldld* | linux*aout* | linux*coff*
11442    dynamic_linker=no
11443    ;;
11444  
11445 + linux*android*)
11446 +  version_type=none # Android doesn't support versioned libraries.
11447 +  need_lib_prefix=no
11448 +  need_version=no
11449 +  library_names_spec='$libname$release$shared_ext'
11450 +  soname_spec='$libname$release$shared_ext'
11451 +  finish_cmds=
11452 +  shlibpath_var=LD_LIBRARY_PATH
11453 +  shlibpath_overrides_runpath=yes
11454 +
11455 +  # This implies no fast_install, which is unacceptable.
11456 +  # Some rework will be needed to allow for fast_install
11457 +  # before this can be enabled.
11458 +  hardcode_into_libs=yes
11459 +
11460 +  dynamic_linker='Android linker'
11461 +  # Don't embed -rpath directories since the linker doesn't support them.
11462 +  hardcode_libdir_flag_spec='-L$libdir'
11463 +  ;;
11464 +
11465   # This must be glibc/ELF.
11466 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11466 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11467    version_type=linux # correct to gnu/linux during the next big refactor
11468    need_lib_prefix=no
11469    need_version=no
11470 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 <  soname_spec='${libname}${release}${shared_ext}$major'
11470 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 >  soname_spec='$libname$release$shared_ext$major'
11472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11473    shlibpath_var=LD_LIBRARY_PATH
11474    shlibpath_overrides_runpath=no
# Line 10961 | Line 11512 | fi
11512    # before this can be enabled.
11513    hardcode_into_libs=yes
11514  
11515 <  # Append ld.so.conf contents to the search path
11515 >  # Ideally, we could use ldconfig to report *all* directores which are
11516 >  # searched for libraries, however this is still not possible.  Aside from not
11517 >  # being certain /sbin/ldconfig is available, command
11518 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11519 >  # even though it is searched at run-time.  Try to do the best guess by
11520 >  # appending ld.so.conf contents (and includes) to the search path.
11521    if test -f /etc/ld.so.conf; then
11522      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11523      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
# Line 10981 | Line 11537 | netbsd*)
11537    need_lib_prefix=no
11538    need_version=no
11539    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11540 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11541      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542      dynamic_linker='NetBSD (a.out) ld.so'
11543    else
11544 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 <    soname_spec='${libname}${release}${shared_ext}$major'
11544 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 >    soname_spec='$libname$release$shared_ext$major'
11546      dynamic_linker='NetBSD ld.elf_so'
11547    fi
11548    shlibpath_var=LD_LIBRARY_PATH
# Line 10996 | Line 11552 | netbsd*)
11552  
11553   newsos6)
11554    version_type=linux # correct to gnu/linux during the next big refactor
11555 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556    shlibpath_var=LD_LIBRARY_PATH
11557    shlibpath_overrides_runpath=yes
11558    ;;
# Line 11005 | Line 11561 | newsos6)
11561    version_type=qnx
11562    need_lib_prefix=no
11563    need_version=no
11564 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 <  soname_spec='${libname}${release}${shared_ext}$major'
11564 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565 >  soname_spec='$libname$release$shared_ext$major'
11566    shlibpath_var=LD_LIBRARY_PATH
11567    shlibpath_overrides_runpath=no
11568    hardcode_into_libs=yes
11569    dynamic_linker='ldqnx.so'
11570    ;;
11571  
11572 < openbsd*)
11572 > openbsd* | bitrig*)
11573    version_type=sunos
11574 <  sys_lib_dlsearch_path_spec="/usr/lib"
11574 >  sys_lib_dlsearch_path_spec=/usr/lib
11575    need_lib_prefix=no
11576 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11577 <  case $host_os in
11022 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11023 <    *)                          need_version=no  ;;
11024 <  esac
11025 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027 <  shlibpath_var=LD_LIBRARY_PATH
11028 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11029 <    case $host_os in
11030 <      openbsd2.[89] | openbsd2.[89].*)
11031 <        shlibpath_overrides_runpath=no
11032 <        ;;
11033 <      *)
11034 <        shlibpath_overrides_runpath=yes
11035 <        ;;
11036 <      esac
11576 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11577 >    need_version=no
11578    else
11579 <    shlibpath_overrides_runpath=yes
11579 >    need_version=yes
11580    fi
11581 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11582 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11583 +  shlibpath_var=LD_LIBRARY_PATH
11584 +  shlibpath_overrides_runpath=yes
11585    ;;
11586  
11587   os2*)
11588    libname_spec='$name'
11589 <  shrext_cmds=".dll"
11589 >  version_type=windows
11590 >  shrext_cmds=.dll
11591 >  need_version=no
11592    need_lib_prefix=no
11593 <  library_names_spec='$libname${shared_ext} $libname.a'
11593 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11594 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11595 >    v=$($ECHO $release$versuffix | tr -d .-);
11596 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11597 >    $ECHO $n$v`$shared_ext'
11598 >  library_names_spec='${libname}_dll.$libext'
11599    dynamic_linker='OS/2 ld.exe'
11600 <  shlibpath_var=LIBPATH
11600 >  shlibpath_var=BEGINLIBPATH
11601 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11602 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11603 >  postinstall_cmds='base_file=`basename \$file`~
11604 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11605 >    dldir=$destdir/`dirname \$dlpath`~
11606 >    test -d \$dldir || mkdir -p \$dldir~
11607 >    $install_prog $dir/$dlname \$dldir/$dlname~
11608 >    chmod a+x \$dldir/$dlname~
11609 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11610 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11611 >    fi'
11612 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11613 >    dlpath=$dir/\$dldll~
11614 >    $RM \$dlpath'
11615    ;;
11616  
11617   osf3* | osf4* | osf5*)
11618    version_type=osf
11619    need_lib_prefix=no
11620    need_version=no
11621 <  soname_spec='${libname}${release}${shared_ext}$major'
11622 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 >  soname_spec='$libname$release$shared_ext$major'
11622 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623    shlibpath_var=LD_LIBRARY_PATH
11624    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11625 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11625 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626    ;;
11627  
11628   rdos*)
# Line 11067 | Line 11633 | solaris*)
11633    version_type=linux # correct to gnu/linux during the next big refactor
11634    need_lib_prefix=no
11635    need_version=no
11636 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 <  soname_spec='${libname}${release}${shared_ext}$major'
11636 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 >  soname_spec='$libname$release$shared_ext$major'
11638    shlibpath_var=LD_LIBRARY_PATH
11639    shlibpath_overrides_runpath=yes
11640    hardcode_into_libs=yes
# Line 11078 | Line 11644 | solaris*)
11644  
11645   sunos4*)
11646    version_type=sunos
11647 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11647 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11649    shlibpath_var=LD_LIBRARY_PATH
11650    shlibpath_overrides_runpath=yes
11651 <  if test "$with_gnu_ld" = yes; then
11651 >  if test yes = "$with_gnu_ld"; then
11652      need_lib_prefix=no
11653    fi
11654    need_version=yes
# Line 11090 | Line 11656 | sunos4*)
11656  
11657   sysv4 | sysv4.3*)
11658    version_type=linux # correct to gnu/linux during the next big refactor
11659 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 <  soname_spec='${libname}${release}${shared_ext}$major'
11659 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 >  soname_spec='$libname$release$shared_ext$major'
11661    shlibpath_var=LD_LIBRARY_PATH
11662    case $host_vendor in
11663      sni)
# Line 11112 | Line 11678 | sysv4 | sysv4.3*)
11678    ;;
11679  
11680   sysv4*MP*)
11681 <  if test -d /usr/nec ;then
11681 >  if test -d /usr/nec; then
11682      version_type=linux # correct to gnu/linux during the next big refactor
11683 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11684 <    soname_spec='$libname${shared_ext}.$major'
11683 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11684 >    soname_spec='$libname$shared_ext.$major'
11685      shlibpath_var=LD_LIBRARY_PATH
11686    fi
11687    ;;
11688  
11689   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11690 <  version_type=freebsd-elf
11690 >  version_type=sco
11691    need_lib_prefix=no
11692    need_version=no
11693 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11694 <  soname_spec='${libname}${release}${shared_ext}$major'
11693 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11694 >  soname_spec='$libname$release$shared_ext$major'
11695    shlibpath_var=LD_LIBRARY_PATH
11696    shlibpath_overrides_runpath=yes
11697    hardcode_into_libs=yes
11698 <  if test "$with_gnu_ld" = yes; then
11698 >  if test yes = "$with_gnu_ld"; then
11699      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11700    else
11701      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11147 | Line 11713 | tpf*)
11713    version_type=linux # correct to gnu/linux during the next big refactor
11714    need_lib_prefix=no
11715    need_version=no
11716 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717    shlibpath_var=LD_LIBRARY_PATH
11718    shlibpath_overrides_runpath=no
11719    hardcode_into_libs=yes
# Line 11155 | Line 11721 | tpf*)
11721  
11722   uts4*)
11723    version_type=linux # correct to gnu/linux during the next big refactor
11724 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 <  soname_spec='${libname}${release}${shared_ext}$major'
11724 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 >  soname_spec='$libname$release$shared_ext$major'
11726    shlibpath_var=LD_LIBRARY_PATH
11727    ;;
11728  
# Line 11166 | Line 11732 | uts4*)
11732   esac
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11734   $as_echo "$dynamic_linker" >&6; }
11735 < test "$dynamic_linker" = no && can_build_shared=no
11735 > test no = "$dynamic_linker" && can_build_shared=no
11736  
11737   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11738 < if test "$GCC" = yes; then
11738 > if test yes = "$GCC"; then
11739    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11740   fi
11741  
11742 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11743 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11742 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11743 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11744   fi
11745 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11746 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11745 >
11746 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11747 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11748   fi
11749  
11750 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11751 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11752 +
11753 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11754 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11755 +
11756 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11757 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11758 +
11759 +
11760 +
11761 +
11762 +
11763 +
11764  
11765  
11766  
# Line 11276 | Line 11857 | $as_echo_n "checking how to hardcode lib
11857   hardcode_action=
11858   if test -n "$hardcode_libdir_flag_spec" ||
11859     test -n "$runpath_var" ||
11860 <   test "X$hardcode_automatic" = "Xyes" ; then
11860 >   test yes = "$hardcode_automatic"; then
11861  
11862    # We can hardcode non-existent directories.
11863 <  if test "$hardcode_direct" != no &&
11863 >  if test no != "$hardcode_direct" &&
11864       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11865       # have to relink, otherwise we might link with an installed library
11866       # when we should be linking with a yet-to-be-installed one
11867 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11868 <     test "$hardcode_minus_L" != no; then
11867 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11868 >     test no != "$hardcode_minus_L"; then
11869      # Linking always hardcodes the temporary library directory.
11870      hardcode_action=relink
11871    else
# Line 11299 | Line 11880 | fi
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11881   $as_echo "$hardcode_action" >&6; }
11882  
11883 < if test "$hardcode_action" = relink ||
11884 <   test "$inherit_rpath" = yes; then
11883 > if test relink = "$hardcode_action" ||
11884 >   test yes = "$inherit_rpath"; then
11885    # Fast installation is not supported
11886    enable_fast_install=no
11887 < elif test "$shlibpath_overrides_runpath" = yes ||
11888 <     test "$enable_shared" = no; then
11887 > elif test yes = "$shlibpath_overrides_runpath" ||
11888 >     test no = "$enable_shared"; then
11889    # Fast installation is not necessary
11890    enable_fast_install=needless
11891   fi
# Line 11314 | Line 11895 | fi
11895  
11896  
11897  
11898 <  if test "x$enable_dlopen" != xyes; then
11898 >  if test yes != "$enable_dlopen"; then
11899    enable_dlopen=unknown
11900    enable_dlopen_self=unknown
11901    enable_dlopen_self_static=unknown
# Line 11324 | Line 11905 | else
11905  
11906    case $host_os in
11907    beos*)
11908 <    lt_cv_dlopen="load_add_on"
11908 >    lt_cv_dlopen=load_add_on
11909      lt_cv_dlopen_libs=
11910      lt_cv_dlopen_self=yes
11911      ;;
11912  
11913    mingw* | pw32* | cegcc*)
11914 <    lt_cv_dlopen="LoadLibrary"
11914 >    lt_cv_dlopen=LoadLibrary
11915      lt_cv_dlopen_libs=
11916      ;;
11917  
11918    cygwin*)
11919 <    lt_cv_dlopen="dlopen"
11919 >    lt_cv_dlopen=dlopen
11920      lt_cv_dlopen_libs=
11921      ;;
11922  
11923    darwin*)
11924 <  # if libdl is installed we need to link against it
11924 >    # if libdl is installed we need to link against it
11925      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11926   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11927   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11378 | Line 11959 | fi
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11960   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11961   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11962 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11962 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11963   else
11964  
11965 <    lt_cv_dlopen="dyld"
11965 >    lt_cv_dlopen=dyld
11966      lt_cv_dlopen_libs=
11967      lt_cv_dlopen_self=yes
11968  
# Line 11389 | Line 11970 | fi
11970  
11971      ;;
11972  
11973 +  tpf*)
11974 +    # Don't try to run any link tests for TPF.  We know it's impossible
11975 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11976 +    lt_cv_dlopen=dlopen
11977 +    lt_cv_dlopen_libs=
11978 +    lt_cv_dlopen_self=no
11979 +    ;;
11980 +
11981    *)
11982      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11983   if test "x$ac_cv_func_shl_load" = xyes; then :
11984 <  lt_cv_dlopen="shl_load"
11984 >  lt_cv_dlopen=shl_load
11985   else
11986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11987   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11431 | Line 12020 | fi
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12021   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12022   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12023 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12023 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12024   else
12025    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12026   if test "x$ac_cv_func_dlopen" = xyes; then :
12027 <  lt_cv_dlopen="dlopen"
12027 >  lt_cv_dlopen=dlopen
12028   else
12029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12030   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11474 | Line 12063 | fi
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12064   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12065   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12066 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12067   else
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12069   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11513 | Line 12102 | fi
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12103   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12104   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12105 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12105 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12106   else
12107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12108   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11552 | Line 12141 | fi
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12142   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12143   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12144 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12144 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12145   fi
12146  
12147  
# Line 11573 | Line 12162 | fi
12162      ;;
12163    esac
12164  
12165 <  if test "x$lt_cv_dlopen" != xno; then
11577 <    enable_dlopen=yes
11578 <  else
12165 >  if test no = "$lt_cv_dlopen"; then
12166      enable_dlopen=no
12167 +  else
12168 +    enable_dlopen=yes
12169    fi
12170  
12171    case $lt_cv_dlopen in
12172    dlopen)
12173 <    save_CPPFLAGS="$CPPFLAGS"
12174 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12173 >    save_CPPFLAGS=$CPPFLAGS
12174 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12175  
12176 <    save_LDFLAGS="$LDFLAGS"
12176 >    save_LDFLAGS=$LDFLAGS
12177      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12178  
12179 <    save_LIBS="$LIBS"
12179 >    save_LIBS=$LIBS
12180      LIBS="$lt_cv_dlopen_libs $LIBS"
12181  
12182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11595 | Line 12184 | $as_echo_n "checking whether a program c
12184   if ${lt_cv_dlopen_self+:} false; then :
12185    $as_echo_n "(cached) " >&6
12186   else
12187 <          if test "$cross_compiling" = yes; then :
12187 >          if test yes = "$cross_compiling"; then :
12188    lt_cv_dlopen_self=cross
12189   else
12190    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11642 | Line 12231 | else
12231   #  endif
12232   #endif
12233  
12234 < /* When -fvisbility=hidden is used, assume the code has been annotated
12234 > /* When -fvisibility=hidden is used, assume the code has been annotated
12235     correspondingly for the symbols needed.  */
12236 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237   int fnord () __attribute__((visibility("default")));
12238   #endif
12239  
# Line 11674 | Line 12263 | _LT_EOF
12263    (eval $ac_link) 2>&5
12264    ac_status=$?
12265    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12267      (./conftest; exit; ) >&5 2>/dev/null
12268      lt_status=$?
12269      case x$lt_status in
# Line 11694 | Line 12283 | fi
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12284   $as_echo "$lt_cv_dlopen_self" >&6; }
12285  
12286 <    if test "x$lt_cv_dlopen_self" = xyes; then
12286 >    if test yes = "$lt_cv_dlopen_self"; then
12287        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12289   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12290   if ${lt_cv_dlopen_self_static+:} false; then :
12291    $as_echo_n "(cached) " >&6
12292   else
12293 <          if test "$cross_compiling" = yes; then :
12293 >          if test yes = "$cross_compiling"; then :
12294    lt_cv_dlopen_self_static=cross
12295   else
12296    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11748 | Line 12337 | else
12337   #  endif
12338   #endif
12339  
12340 < /* When -fvisbility=hidden is used, assume the code has been annotated
12340 > /* When -fvisibility=hidden is used, assume the code has been annotated
12341     correspondingly for the symbols needed.  */
12342 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12343   int fnord () __attribute__((visibility("default")));
12344   #endif
12345  
# Line 11780 | Line 12369 | _LT_EOF
12369    (eval $ac_link) 2>&5
12370    ac_status=$?
12371    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12372 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12372 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12373      (./conftest; exit; ) >&5 2>/dev/null
12374      lt_status=$?
12375      case x$lt_status in
# Line 11801 | Line 12390 | fi
12390   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12391      fi
12392  
12393 <    CPPFLAGS="$save_CPPFLAGS"
12394 <    LDFLAGS="$save_LDFLAGS"
12395 <    LIBS="$save_LIBS"
12393 >    CPPFLAGS=$save_CPPFLAGS
12394 >    LDFLAGS=$save_LDFLAGS
12395 >    LIBS=$save_LIBS
12396      ;;
12397    esac
12398  
# Line 11847 | Line 12436 | else
12436   # FIXME - insert some real tests, host_os isn't really good enough
12437    case $host_os in
12438    darwin*)
12439 <    if test -n "$STRIP" ; then
12439 >    if test -n "$STRIP"; then
12440        striplib="$STRIP -x"
12441        old_striplib="$STRIP -S"
12442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11875 | Line 12464 | fi
12464  
12465  
12466  
12467 <  # Report which library types will actually be built
12467 >  # Report what library types will actually be built
12468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12469   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11883 | Line 12472 | $as_echo "$can_build_shared" >&6; }
12472  
12473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12474   $as_echo_n "checking whether to build shared libraries... " >&6; }
12475 <  test "$can_build_shared" = "no" && enable_shared=no
12475 >  test no = "$can_build_shared" && enable_shared=no
12476  
12477    # On AIX, shared libraries and static libraries use the same namespace, and
12478    # are all built from PIC.
12479    case $host_os in
12480    aix3*)
12481 <    test "$enable_shared" = yes && enable_static=no
12481 >    test yes = "$enable_shared" && enable_static=no
12482      if test -n "$RANLIB"; then
12483        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12484        postinstall_cmds='$RANLIB $lib'
# Line 11897 | Line 12486 | $as_echo_n "checking whether to build sh
12486      ;;
12487  
12488    aix[4-9]*)
12489 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12490 <      test "$enable_shared" = yes && enable_static=no
12489 >    if test ia64 != "$host_cpu"; then
12490 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12491 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12492 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12493 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12494 >      esac
12495      fi
12496      ;;
12497    esac
# Line 11908 | Line 12501 | $as_echo "$enable_shared" >&6; }
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12502   $as_echo_n "checking whether to build static libraries... " >&6; }
12503    # Make sure either enable_shared or enable_static is yes.
12504 <  test "$enable_shared" = yes || enable_static=yes
12504 >  test yes = "$enable_shared" || enable_static=yes
12505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12506   $as_echo "$enable_static" >&6; }
12507  
# Line 11922 | Line 12515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12515   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517  
12518 < CC="$lt_save_CC"
12518 > CC=$lt_save_CC
12519  
12520  
12521  
# Line 11946 | Line 12539 | CC="$lt_save_CC"
12539   # Only expand once:
12540  
12541  
12542 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12543 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12542 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12543 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12544   if ${libltdl_cv_shlibext+:} false; then :
12545    $as_echo_n "(cached) " >&6
12546   else
# Line 11974 | Line 12567 | cat >>confdefs.h <<_ACEOF
12567   _ACEOF
12568  
12569   fi
12570 + if test -n "$shared_archive_member_spec"; then
12571 +
12572 + cat >>confdefs.h <<_ACEOF
12573 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12574 + _ACEOF
12575 +
12576 + fi
12577  
12578 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12579 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12578 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12579 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12580   if ${lt_cv_module_path_var+:} false; then :
12581    $as_echo_n "(cached) " >&6
12582   else
12583 <  lt_cv_module_path_var="$shlibpath_var"
12583 >  lt_cv_module_path_var=$shlibpath_var
12584   fi
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12586   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 11997 | Line 12597 | $as_echo_n "checking for the default lib
12597   if ${lt_cv_sys_dlsearch_path+:} false; then :
12598    $as_echo_n "(cached) " >&6
12599   else
12600 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12600 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12601   fi
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12603   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12005 | Line 12605 | if test -n "$lt_cv_sys_dlsearch_path"; t
12605    sys_dlsearch_path=
12606    for dir in $lt_cv_sys_dlsearch_path; do
12607      if test -z "$sys_dlsearch_path"; then
12608 <      sys_dlsearch_path="$dir"
12608 >      sys_dlsearch_path=$dir
12609      else
12610 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12610 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12611      fi
12612    done
12613  
# Line 12027 | Line 12627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12627   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12629  
12630 + lt_dlload_save_LIBS=$LIBS
12631  
12632   LIBADD_DLOPEN=
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12085 | Line 12686 | if test "$ac_res" != no; then :
12686  
12687   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12688  
12689 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12690 <          LIBADD_DLOPEN="-ldl"
12689 >        if test "$ac_cv_search_dlopen" != "none required"; then
12690 >          LIBADD_DLOPEN=-ldl
12691          fi
12692 <        libltdl_cv_lib_dl_dlopen="yes"
12692 >        libltdl_cv_lib_dl_dlopen=yes
12693          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12694   else
12695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12109 | Line 12710 | if ac_fn_c_try_link "$LINENO"; then :
12710  
12711   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12712  
12713 <            libltdl_cv_func_dlopen="yes"
12713 >            libltdl_cv_func_dlopen=yes
12714              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12715   else
12716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12152 | Line 12753 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12753  
12754   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12755  
12756 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12756 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12757                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12758   fi
12759  
# Line 12161 | Line 12762 | rm -f core conftest.err conftest.$ac_obj
12762      conftest$ac_exeext conftest.$ac_ext
12763   fi
12764  
12765 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12765 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12766   then
12767 <  lt_save_LIBS="$LIBS"
12767 >  lt_save_LIBS=$LIBS
12768    LIBS="$LIBS $LIBADD_DLOPEN"
12769    for ac_func in dlerror
12770   do :
# Line 12176 | Line 12777 | _ACEOF
12777   fi
12778   done
12779  
12780 <  LIBS="$lt_save_LIBS"
12780 >  LIBS=$lt_save_LIBS
12781   fi
12782  
12783  
# Line 12229 | Line 12830 | if test "x$ac_cv_lib_dld_shl_load" = xye
12830   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12831  
12832              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12833 <            LIBADD_SHL_LOAD="-ldld"
12833 >            LIBADD_SHL_LOAD=-ldld
12834   fi
12835  
12836   fi
# Line 12251 | Line 12852 | fi
12852   beos*)
12853    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12854    ;;
12855 < cygwin* | mingw* | os2* | pw32*)
12855 > cygwin* | mingw* | pw32*)
12856    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12857   "
12858   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12329 | Line 12930 | fi
12930   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12931  
12932  
12933 + LIBS=$lt_dlload_save_LIBS
12934   ac_ext=c
12935   ac_cpp='$CPP $CPPFLAGS'
12936   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12383 | Line 12985 | $as_echo "$lt_cv_sys_symbol_underscore"
12985    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12986  
12987  
12988 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12989 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12990 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12389 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12988 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12989 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12990 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12991   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12992   if ${libltdl_cv_need_uscore+:} false; then :
12993    $as_echo_n "(cached) " >&6
12994   else
12995    libltdl_cv_need_uscore=unknown
12996 <          save_LIBS="$LIBS"
12997 <          LIBS="$LIBS $LIBADD_DLOPEN"
12998 <          if test "$cross_compiling" = yes; then :
12999 <  libltdl_cv_need_uscore=cross
12399 < else
12400 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12401 <  lt_status=$lt_dlunknown
12402 <  cat > conftest.$ac_ext <<_LT_EOF
12996 >      dlsym_uscore_save_LIBS=$LIBS
12997 >      LIBS="$LIBS $LIBADD_DLOPEN"
12998 >      libname=conftmod # stay within 8.3 filename limits!
12999 >      cat >$libname.$ac_ext <<_LT_EOF
13000   #line $LINENO "configure"
13001   #include "confdefs.h"
13002 + /* When -fvisibility=hidden is used, assume the code has been annotated
13003 +   correspondingly for the symbols needed.  */
13004 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 + int fnord () __attribute__((visibility("default")));
13006 + #endif
13007 + int fnord () { return 42; }
13008 + _LT_EOF
13009  
13010 +      # ltfn_module_cmds module_cmds
13011 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13012 +      # $module_cmds or $archive_cmds type content.
13013 +      ltfn_module_cmds ()
13014 +      {( # subshell avoids polluting parent global environment
13015 +          module_cmds_save_ifs=$IFS; IFS='~'
13016 +          for cmd in $1; do
13017 +            IFS=$module_cmds_save_ifs
13018 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13019 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13020 +            major=; versuffix=; verstring=; deplibs=
13021 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13022 +            eval $cmd
13023 +          done
13024 +          IFS=$module_cmds_save_ifs
13025 +      )}
13026 +
13027 +      # Compile a loadable module using libtool macro expansion results.
13028 +      $CC $pic_flag -c $libname.$ac_ext
13029 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13030 +
13031 +      # Try to fetch fnord with dlsym().
13032 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13033 +      cat >conftest.$ac_ext <<_LT_EOF
13034 + #line $LINENO "configure"
13035 + #include "confdefs.h"
13036   #if HAVE_DLFCN_H
13037   #include <dlfcn.h>
13038   #endif
12409
13039   #include <stdio.h>
13040 <
12412 < #ifdef RTLD_GLOBAL
12413 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12414 < #else
13040 > #ifndef RTLD_GLOBAL
13041   #  ifdef DL_GLOBAL
13042 < #    define LT_DLGLOBAL         DL_GLOBAL
13042 > #    define RTLD_GLOBAL DL_GLOBAL
13043   #  else
13044 < #    define LT_DLGLOBAL         0
13044 > #    define RTLD_GLOBAL 0
13045   #  endif
13046   #endif
13047 <
13048 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13049 <   find out it does not work in some platform. */
12424 < #ifndef LT_DLLAZY_OR_NOW
12425 < #  ifdef RTLD_LAZY
12426 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13047 > #ifndef RTLD_NOW
13048 > #  ifdef DL_NOW
13049 > #    define RTLD_NOW DL_NOW
13050   #  else
13051 < #    ifdef DL_LAZY
12429 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12430 < #    else
12431 < #      ifdef RTLD_NOW
12432 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12433 < #      else
12434 < #        ifdef DL_NOW
12435 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12436 < #        else
12437 < #          define LT_DLLAZY_OR_NOW      0
12438 < #        endif
12439 < #      endif
12440 < #    endif
13051 > #    define RTLD_NOW 0
13052   #  endif
13053   #endif
13054 <
13055 < /* When -fvisbility=hidden is used, assume the code has been annotated
13056 <   correspondingly for the symbols needed.  */
13057 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13058 < int fnord () __attribute__((visibility("default")));
13059 < #endif
13060 <
13061 < int fnord () { return 42; }
13062 < int main ()
12452 < {
12453 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12454 <  int status = $lt_dlunknown;
12455 <
12456 <  if (self)
12457 <    {
12458 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13054 > int main () {
13055 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13056 >  int status = $libltdl_dlunknown;
13057 >  if (handle) {
13058 >    if (dlsym (handle, "fnord"))
13059 >      status = $libltdl_dlnouscore;
13060 >    else {
13061 >      if (dlsym (handle, "_fnord"))
13062 >        status = $libltdl_dluscore;
13063        else
13064 <        {
12461 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12462 <          else puts (dlerror ());
12463 <        }
12464 <      /* dlclose (self); */
13064 >        puts (dlerror ());
13065      }
13066 <  else
13066 >    dlclose (handle);
13067 >  } else
13068      puts (dlerror ());
12468
13069    return status;
13070   }
13071   _LT_EOF
13072 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13073    (eval $ac_link) 2>&5
13074    ac_status=$?
13075    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13077 <    (./conftest; exit; ) >&5 2>/dev/null
13078 <    lt_status=$?
13079 <    case x$lt_status in
13080 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13081 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13082 <      x$lt_dlunknown|x*)  ;;
13083 <    esac
13084 <  else :
13085 <    # compilation failed
13086 <
12487 <  fi
12488 < fi
12489 < rm -fr conftest*
12490 <
12491 <          LIBS="$save_LIBS"
13076 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13077 >        (./conftest; exit; ) >&5 2>/dev/null
13078 >        libltdl_status=$?
13079 >        case x$libltdl_status in
13080 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13081 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13082 >          x*) libltdl_cv_need_uscore=unknown ;;
13083 >        esac
13084 >      fi
13085 >      rm -rf conftest* $libname*
13086 >      LIBS=$dlsym_uscore_save_LIBS
13087  
13088   fi
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12496 | Line 13091 | $as_echo "$libltdl_cv_need_uscore" >&6;
13091    fi
13092   fi
13093  
13094 < if test x"$libltdl_cv_need_uscore" = xyes; then
13094 > if test yes = "$libltdl_cv_need_uscore"; then
13095  
13096   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13097  
# Line 12515 | Line 13110 | else
13110    case $host_os in
13111    aix3*|aix4.1.*|aix4.2.*)
13112      # Unknown whether this is true for these versions of AIX, but
13113 <    # we want this `case' here to explicitly catch those versions.
13113 >    # we want this 'case' here to explicitly catch those versions.
13114      lt_cv_sys_dlopen_deplibs=unknown
13115      ;;
13116    aix[4-9]*)
# Line 12528 | Line 13123 | else
13123        ;;
13124      esac
13125      ;;
13126 +  bitrig*)
13127 +    lt_cv_sys_dlopen_deplibs=yes
13128 +    ;;
13129    darwin*)
13130      # Assuming the user has installed a libdl from somewhere, this is true
13131      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12565 | Line 13163 | else
13163    osf[1234]*)
13164      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13165      # it did *not* use an RPATH in a shared library to find objects the
13166 <    # library depends on, so we explicitly say `no'.
13166 >    # library depends on, so we explicitly say 'no'.
13167      lt_cv_sys_dlopen_deplibs=no
13168      ;;
13169    osf5.0|osf5.0a|osf5.1)
# Line 12574 | Line 13172 | else
13172      # that the library depends on, but there's no easy way to know if that
13173      # patch is installed.  Since this is the case, all we can really
13174      # say is unknown -- it depends on the patch being installed.  If
13175 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13175 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13176      lt_cv_sys_dlopen_deplibs=unknown
13177      ;;
13178    osf*)
13179      # the two cases above should catch all versions of osf <= 5.1.  Read
13180      # the comments above for what we know about them.
13181      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13182 <    # is used to find them so we can finally say `yes'.
13182 >    # is used to find them so we can finally say 'yes'.
13183      lt_cv_sys_dlopen_deplibs=yes
13184      ;;
13185    qnx*)
# Line 12598 | Line 13196 | else
13196   fi
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13198   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13199 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13199 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13200  
13201   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13202  
13203   fi
13204  
12607 :
13205  
13206   for ac_header in argz.h
13207   do :
# Line 12641 | Line 13238 | $as_echo "#define __error_t_defined 1" >
13238   fi
13239  
13240  
13241 < ARGZ_H=
13241 > LT_ARGZ_H=
13242   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13243          argz_next argz_stringify
13244   do :
# Line 12653 | Line 13250 | if eval test \"x\$"$as_ac_var"\" = x"yes
13250   _ACEOF
13251  
13252   else
13253 <  ARGZ_H=argz.h;
13253 >  LT_ARGZ_H=lt__argz.h;
13254  
13255 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13255 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13256  
13257   fi
13258   done
13259  
13260  
13261 < if test -z "$ARGZ_H"; then :
13261 > if test -z "$LT_ARGZ_H"; then :
13262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13263   $as_echo_n "checking if argz actually works... " >&6; }
13264   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12670 | Line 13267 | else
13267    case $host_os in #(
13268           *cygwin*)
13269             lt_cv_sys_argz_works=no
13270 <           if test "$cross_compiling" != no; then
13270 >           if test no != "$cross_compiling"; then
13271               lt_cv_sys_argz_works="guessing no"
13272             else
13273               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12681 | Line 13278 | else
13278               lt_os_major=${2-0}
13279               lt_os_minor=${3-0}
13280               lt_os_micro=${4-0}
13281 <             if test "$lt_os_major" -gt 1 \
13282 <                || { test "$lt_os_major" -eq 1 \
13283 <                  && { test "$lt_os_minor" -gt 5 \
13284 <                    || { test "$lt_os_minor" -eq 5 \
13285 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13281 >             if test 1 -lt "$lt_os_major" \
13282 >                || { test 1 -eq "$lt_os_major" \
13283 >                  && { test 5 -lt "$lt_os_minor" \
13284 >                    || { test 5 -eq "$lt_os_minor" \
13285 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13286                 lt_cv_sys_argz_works=yes
13287               fi
13288             fi
# Line 12695 | Line 13292 | else
13292   fi
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13294   $as_echo "$lt_cv_sys_argz_works" >&6; }
13295 <     if test "$lt_cv_sys_argz_works" = yes; then :
13295 >     if test yes = "$lt_cv_sys_argz_works"; then :
13296  
13297   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13298  
13299   else
13300 <  ARGZ_H=argz.h
13300 >  LT_ARGZ_H=lt__argz.h
13301  
13302  
13303 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13303 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13304  
13305   fi
13306   fi
# Line 12724 | Line 13321 | else
13321   fi
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13323   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13324 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13324 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13325  
13326   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13327  
# Line 12748 | Line 13345 | if test "${with_included_ltdl+set}" = se
13345   fi
13346  
13347  
13348 < if test "x$with_included_ltdl" != xyes; then
13348 > if test yes != "$with_included_ltdl"; then
13349    # We are not being forced to use the included libltdl sources, so
13350    # decide whether there is a useful installed version we can use.
13351    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12824 | Line 13421 | fi
13421   if test -n "$with_ltdl_include"; then
13422    if test -f "$with_ltdl_include/ltdl.h"; then :
13423    else
13424 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13424 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13425    fi
13426   else
13427    with_ltdl_include=no
# Line 12840 | Line 13437 | fi
13437   if test -n "$with_ltdl_lib"; then
13438    if test -f "$with_ltdl_lib/libltdl.la"; then :
13439    else
13440 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13440 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13441    fi
13442   else
13443    with_ltdl_lib=no
# Line 12853 | Line 13450 | case ,$with_included_ltdl,$with_ltdl_inc
13450    "") enable_ltdl_convenience=yes
13451        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13452   esac
13453 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13453 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13454   LTDLDEPS=$LIBLTDL
13455 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13455 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13456  
13457  
13458  
13459  
13460  
13461   # For backwards non-gettext consistent compatibility...
13462 < INCLTDL="$LTDLINCL"
13462 > INCLTDL=$LTDLINCL
13463  
13464  
13465          ;;
# Line 12877 | Line 13474 | $as_echo "#define HAVE_LTDL 1" >>confdef
13474          LTDLINCL=
13475          ;;
13476    ,no*,no,*)
13477 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13477 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13478          ;;
13479    *)    with_included_ltdl=no
13480          LIBLTDL="-L$with_ltdl_lib -lltdl"
13481          LTDLDEPS=
13482 <        LTDLINCL="-I$with_ltdl_include"
13482 >        LTDLINCL=-I$with_ltdl_include
13483          ;;
13484   esac
13485 < INCLTDL="$LTDLINCL"
13485 > INCLTDL=$LTDLINCL
13486  
13487   # Report our decision...
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12905 | Line 13502 | if test "${enable_ltdl_install+set}" = s
13502   fi
13503  
13504  
13505 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13505 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13506    *yes*) ;;
13507    *) enable_ltdl_convenience=yes ;;
13508   esac
13509  
13510 < if test x"${enable_ltdl_install-no}" != xno; then
13510 > if test no != "${enable_ltdl_install-no}"; then
13511    INSTALL_LTDL_TRUE=
13512    INSTALL_LTDL_FALSE='#'
13513   else
# Line 12918 | Line 13515 | else
13515    INSTALL_LTDL_FALSE=
13516   fi
13517  
13518 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13518 >  if test no != "${enable_ltdl_convenience-no}"; then
13519    CONVENIENCE_LTDL_TRUE=
13520    CONVENIENCE_LTDL_FALSE='#'
13521   else
# Line 13020 | Line 13617 | LIBTOOL="$LIBTOOL --silent"
13617  
13618   # Checks for libraries.
13619  
13620 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13621 < $as_echo_n "checking for library containing socket... " >&6; }
13622 < if ${ac_cv_search_socket+:} false; then :
13620 >
13621 >  if test "X$CC" != "X"; then
13622 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13623 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13624 > if ${ssp_cv_cc+:} false; then :
13625 >  $as_echo_n "(cached) " >&6
13626 > else
13627 >  ssp_old_cflags="$CFLAGS"
13628 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13629 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 > /* end confdefs.h.  */
13631 >
13632 > int
13633 > main ()
13634 > {
13635 >
13636 >  ;
13637 >  return 0;
13638 > }
13639 > _ACEOF
13640 > if ac_fn_c_try_compile "$LINENO"; then :
13641 >  ssp_cv_cc=yes
13642 > else
13643 >  ssp_cv_cc=no
13644 > fi
13645 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 >       CFLAGS="$ssp_old_cflags"
13647 >
13648 > fi
13649 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13650 > $as_echo "$ssp_cv_cc" >&6; }
13651 >    if test $ssp_cv_cc = yes; then
13652 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13653 >
13654 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13655 >
13656 >    else
13657 >      unset ssp_cv_cc
13658 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13659 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13660 > if ${ssp_cv_cc+:} false; then :
13661 >  $as_echo_n "(cached) " >&6
13662 > else
13663 >  ssp_old_cflags="$CFLAGS"
13664 >         CFLAGS="$CFLAGS -fstack-protector"
13665 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 > /* end confdefs.h.  */
13667 >
13668 > int
13669 > main ()
13670 > {
13671 >
13672 >  ;
13673 >  return 0;
13674 > }
13675 > _ACEOF
13676 > if ac_fn_c_try_compile "$LINENO"; then :
13677 >  ssp_cv_cc=yes
13678 > else
13679 >  ssp_cv_cc=no
13680 > fi
13681 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 >         CFLAGS="$ssp_old_cflags"
13683 >
13684 > fi
13685 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13686 > $as_echo "$ssp_cv_cc" >&6; }
13687 >      if test $ssp_cv_cc = yes; then
13688 >        CFLAGS="$CFLAGS -fstack-protector"
13689 >
13690 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13691 >
13692 >      fi
13693 >    fi
13694 >  fi
13695 >
13696 >
13697 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13698 > $as_echo_n "checking whether libssp exists... " >&6; }
13699 > if ${ssp_cv_lib+:} false; then :
13700 >  $as_echo_n "(cached) " >&6
13701 > else
13702 >  ssp_old_libs="$LIBS"
13703 >     LIBS="$LIBS -lssp"
13704 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 > /* end confdefs.h.  */
13706 >
13707 > int
13708 > main ()
13709 > {
13710 >
13711 >  ;
13712 >  return 0;
13713 > }
13714 > _ACEOF
13715 > if ac_fn_c_try_link "$LINENO"; then :
13716 >  ssp_cv_lib=yes
13717 > else
13718 >  ssp_cv_lib=no
13719 > fi
13720 > rm -f core conftest.err conftest.$ac_objext \
13721 >    conftest$ac_exeext conftest.$ac_ext
13722 >     LIBS="$ssp_old_libs"
13723 >
13724 > fi
13725 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13726 > $as_echo "$ssp_cv_lib" >&6; }
13727 >  if test $ssp_cv_lib = yes; then
13728 >    LIBS="$LIBS -lssp"
13729 >  fi
13730 >
13731 >
13732 >
13733 >
13734 >
13735 >
13736 > for flag in -fno-strict-aliasing; do
13737 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13738 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13739 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13740 > if eval \${$as_CACHEVAR+:} false; then :
13741 >  $as_echo_n "(cached) " >&6
13742 > else
13743 >
13744 >  ax_check_save_flags=$CFLAGS
13745 >  CFLAGS="$CFLAGS  $flag"
13746 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 > /* end confdefs.h.  */
13748 >
13749 > int
13750 > main ()
13751 > {
13752 >
13753 >  ;
13754 >  return 0;
13755 > }
13756 > _ACEOF
13757 > if ac_fn_c_try_compile "$LINENO"; then :
13758 >  eval "$as_CACHEVAR=yes"
13759 > else
13760 >  eval "$as_CACHEVAR=no"
13761 > fi
13762 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 >  CFLAGS=$ax_check_save_flags
13764 > fi
13765 > eval ac_res=\$$as_CACHEVAR
13766 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13767 > $as_echo "$ac_res" >&6; }
13768 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13769 >
13770 > if ${CFLAGS+:} false; then :
13771 >
13772 >  case " $CFLAGS " in #(
13773 >  *" $flag "*) :
13774 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13775 >  (: CFLAGS already contains $flag) 2>&5
13776 >  ac_status=$?
13777 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 >  test $ac_status = 0; } ;; #(
13779 >  *) :
13780 >
13781 >     as_fn_append CFLAGS " $flag"
13782 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13783 >  (: CFLAGS="$CFLAGS") 2>&5
13784 >  ac_status=$?
13785 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13786 >  test $ac_status = 0; }
13787 >     ;;
13788 > esac
13789 >
13790 > else
13791 >
13792 >  CFLAGS=$flag
13793 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13794 >  (: CFLAGS="$CFLAGS") 2>&5
13795 >  ac_status=$?
13796 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13797 >  test $ac_status = 0; }
13798 >
13799 > fi
13800 >
13801 > else
13802 >  :
13803 > fi
13804 >
13805 > done
13806 >
13807 >
13808 >  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13809 > if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13810 >
13811 > else
13812 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13813 > $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13814 > if ${ac_cv_search_getaddrinfo+:} false; then :
13815    $as_echo_n "(cached) " >&6
13816   else
13817    ac_func_search_save_LIBS=$LIBS
# Line 13035 | Line 13824 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13824   #ifdef __cplusplus
13825   extern "C"
13826   #endif
13827 < char socket ();
13827 > char getaddrinfo ();
13828   int
13829   main ()
13830   {
13831 < return socket ();
13831 > return getaddrinfo ();
13832    ;
13833    return 0;
13834   }
13835   _ACEOF
13836 < for ac_lib in '' socket; do
13836 > for ac_lib in '' nsl; do
13837    if test -z "$ac_lib"; then
13838      ac_res="none required"
13839    else
# Line 13052 | Line 13841 | for ac_lib in '' socket; do
13841      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13842    fi
13843    if ac_fn_c_try_link "$LINENO"; then :
13844 <  ac_cv_search_socket=$ac_res
13844 >  ac_cv_search_getaddrinfo=$ac_res
13845   fi
13846   rm -f core conftest.err conftest.$ac_objext \
13847      conftest$ac_exeext
13848 <  if ${ac_cv_search_socket+:} false; then :
13848 >  if ${ac_cv_search_getaddrinfo+:} false; then :
13849    break
13850   fi
13851   done
13852 < if ${ac_cv_search_socket+:} false; then :
13852 > if ${ac_cv_search_getaddrinfo+:} false; then :
13853  
13854   else
13855 <  ac_cv_search_socket=no
13855 >  ac_cv_search_getaddrinfo=no
13856   fi
13857   rm conftest.$ac_ext
13858   LIBS=$ac_func_search_save_LIBS
13859   fi
13860 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13861 < $as_echo "$ac_cv_search_socket" >&6; }
13862 < ac_res=$ac_cv_search_socket
13860 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13861 > $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13862 > ac_res=$ac_cv_search_getaddrinfo
13863   if test "$ac_res" != no; then :
13864    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13865  
13077 else
13078  as_fn_error $? "socket library not found" "$LINENO" 5
13866   fi
13867  
13868 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13869 < $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13870 < if ${ac_cv_search_inet_ntoa+:} false; then :
13868 > fi
13869 >
13870 >  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13871 > if test "x$ac_cv_func_getnameinfo" = xyes; then :
13872 >
13873 > else
13874 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13875 > $as_echo_n "checking for library containing getnameinfo... " >&6; }
13876 > if ${ac_cv_search_getnameinfo+:} false; then :
13877    $as_echo_n "(cached) " >&6
13878   else
13879    ac_func_search_save_LIBS=$LIBS
# Line 13093 | Line 13886 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13886   #ifdef __cplusplus
13887   extern "C"
13888   #endif
13889 < char inet_ntoa ();
13889 > char getnameinfo ();
13890   int
13891   main ()
13892   {
13893 < return inet_ntoa ();
13893 > return getnameinfo ();
13894    ;
13895    return 0;
13896   }
# Line 13110 | Line 13903 | for ac_lib in '' nsl; do
13903      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13904    fi
13905    if ac_fn_c_try_link "$LINENO"; then :
13906 <  ac_cv_search_inet_ntoa=$ac_res
13906 >  ac_cv_search_getnameinfo=$ac_res
13907   fi
13908   rm -f core conftest.err conftest.$ac_objext \
13909      conftest$ac_exeext
13910 <  if ${ac_cv_search_inet_ntoa+:} false; then :
13910 >  if ${ac_cv_search_getnameinfo+:} false; then :
13911    break
13912   fi
13913   done
13914 < if ${ac_cv_search_inet_ntoa+:} false; then :
13914 > if ${ac_cv_search_getnameinfo+:} false; then :
13915  
13916   else
13917 <  ac_cv_search_inet_ntoa=no
13917 >  ac_cv_search_getnameinfo=no
13918   fi
13919   rm conftest.$ac_ext
13920   LIBS=$ac_func_search_save_LIBS
13921   fi
13922 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13923 < $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13924 < ac_res=$ac_cv_search_inet_ntoa
13922 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13923 > $as_echo "$ac_cv_search_getnameinfo" >&6; }
13924 > ac_res=$ac_cv_search_getnameinfo
13925   if test "$ac_res" != no; then :
13926    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13927  
13928   fi
13929  
13930 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13931 < $as_echo_n "checking for library containing inet_aton... " >&6; }
13932 < if ${ac_cv_search_inet_aton+:} false; then :
13930 > fi
13931 >
13932 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13933 > $as_echo_n "checking for library containing socket... " >&6; }
13934 > if ${ac_cv_search_socket+:} false; then :
13935    $as_echo_n "(cached) " >&6
13936   else
13937    ac_func_search_save_LIBS=$LIBS
# Line 13149 | Line 13944 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13944   #ifdef __cplusplus
13945   extern "C"
13946   #endif
13947 < char inet_aton ();
13947 > char socket ();
13948   int
13949   main ()
13950   {
13951 < return inet_aton ();
13951 > return socket ();
13952    ;
13953    return 0;
13954   }
13955   _ACEOF
13956 < for ac_lib in '' resolv; do
13956 > for ac_lib in '' socket; do
13957    if test -z "$ac_lib"; then
13958      ac_res="none required"
13959    else
# Line 13166 | Line 13961 | for ac_lib in '' resolv; do
13961      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13962    fi
13963    if ac_fn_c_try_link "$LINENO"; then :
13964 <  ac_cv_search_inet_aton=$ac_res
13964 >  ac_cv_search_socket=$ac_res
13965   fi
13966   rm -f core conftest.err conftest.$ac_objext \
13967      conftest$ac_exeext
13968 <  if ${ac_cv_search_inet_aton+:} false; then :
13968 >  if ${ac_cv_search_socket+:} false; then :
13969    break
13970   fi
13971   done
13972 < if ${ac_cv_search_inet_aton+:} false; then :
13972 > if ${ac_cv_search_socket+:} false; then :
13973  
13974   else
13975 <  ac_cv_search_inet_aton=no
13975 >  ac_cv_search_socket=no
13976   fi
13977   rm conftest.$ac_ext
13978   LIBS=$ac_func_search_save_LIBS
13979   fi
13980 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13981 < $as_echo "$ac_cv_search_inet_aton" >&6; }
13982 < ac_res=$ac_cv_search_inet_aton
13980 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13981 > $as_echo "$ac_cv_search_socket" >&6; }
13982 > ac_res=$ac_cv_search_socket
13983   if test "$ac_res" != no; then :
13984    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13985  
13986 < fi
13987 <
13193 <  for ac_func in inet_aton inet_ntop inet_pton
13194 < do :
13195 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13196 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13197 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13198 <  cat >>confdefs.h <<_ACEOF
13199 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13200 < _ACEOF
13201 <
13202 < fi
13203 < done
13204 <
13205 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13206 <   #include <sys/socket.h>
13207 <   #include <netdb.h>
13208 <
13209 < "
13210 < if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13211 <
13212 < cat >>confdefs.h <<_ACEOF
13213 < #define HAVE_STRUCT_SOCKADDR_IN 1
13214 < _ACEOF
13215 <
13216 <
13217 < fi
13218 < ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13219 <   #include <sys/socket.h>
13220 <   #include <netdb.h>
13221 <
13222 < "
13223 < if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13224 <
13225 < cat >>confdefs.h <<_ACEOF
13226 < #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13227 < _ACEOF
13228 <
13229 <
13230 < fi
13231 < ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13232 <   #include <sys/socket.h>
13233 <   #include <netdb.h>
13234 <
13235 < "
13236 < if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13237 <
13238 < cat >>confdefs.h <<_ACEOF
13239 < #define HAVE_STRUCT_ADDRINFO 1
13240 < _ACEOF
13241 <
13242 <
13243 < fi
13244 <
13245 <  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13246 <  <sys/socket.h>
13247 < "
13248 < if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13249 <
13250 < cat >>confdefs.h <<_ACEOF
13251 < #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13252 < _ACEOF
13253 <
13254 <
13255 < fi
13256 <
13257 <
13258 <
13259 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13260 < "
13261 < if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13262 <
13263 < $as_echo "#define IPV6 1" >>confdefs.h
13264 <
13986 > else
13987 >  as_fn_error $? "socket library not found" "$LINENO" 5
13988   fi
13989  
13990  
# Line 13516 | Line 14239 | done
14239  
14240  
14241  
13519
13520
13521
13522
13523
13524
14242   # Checks for header files.
14243  
14244  
# Line 13552 | Line 14269 | done
14269  
14270  
14271  
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 # check for /dev/null so we can use it to hold evil fd's
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13571 $as_echo_n "checking for /dev/null... " >&6; }
13572 if test -c /dev/null; then :
13573
13574
13575 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13576
13577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13578 $as_echo "yes" >&6; }
13579 else
13580
13581
13582 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13583
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13585 $as_echo "no - using devnull.log" >&6; }
13586 fi
13587
13588
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14273   $as_echo_n "checking for library containing crypt... " >&6; }
14274   if ${ac_cv_search_crypt+:} false; then :
# Line 13643 | Line 14326 | if test "$ac_res" != no; then :
14326   fi
14327  
14328  
14329 + # Define various chunk sizes for the pooling allocator
14330 +
14331 +
14332 + $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14333 +
14334 +
14335 + $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14336 +
14337 +
14338 + $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14339 +
14340 +
14341 + $as_echo "#define MP_CHUNK_SIZE_INVITE 4*1024" >>confdefs.h
14342 +
14343 +
14344 + $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14345 +
14346 +
14347 + $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14348 +
14349 +
14350 + $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14351 +
14352 +
14353 + $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14354 +
14355  
14356 + $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14357  
14358 < # Check whether --with-zlib-path was given.
14359 < if test "${with_zlib_path+set}" = set; then :
14360 <  withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
14358 >
14359 > $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14360 >
14361 >
14362 > $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14363 >
14364 >
14365 > $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14366 >
14367 >
14368 > $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14369 >
14370 >
14371 > $as_echo "#define MP_CHUNK_SIZE_WHOWAS 256*1024" >>confdefs.h
14372 >
14373 >
14374 >
14375 > # Argument processing.
14376 >
14377 >  desired_iopoll_mechanism="none"
14378 >
14379 >  # Check whether --enable-kqueue was given.
14380 > if test "${enable_kqueue+set}" = set; then :
14381 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14382 > fi
14383 >
14384 >  # Check whether --enable-epoll was given.
14385 > if test "${enable_epoll+set}" = set; then :
14386 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14387   fi
14388  
14389 +  # Check whether --enable-devpoll was given.
14390 + if test "${enable_devpoll+set}" = set; then :
14391 +  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14392 + fi
14393  
14394 < # Check whether --enable-zlib was given.
14395 < if test "${enable_zlib+set}" = set; then :
14396 <  enableval=$enable_zlib; zlib=$enableval
13657 < else
13658 <  zlib=yes
14394 >  # Check whether --enable-poll was given.
14395 > if test "${enable_poll+set}" = set; then :
14396 >  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14397   fi
14398  
14399  
14400 < if test "$zlib" = "yes"; then :
14400 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14401 > $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14402  
14403 <  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14404 < if test "x$ac_cv_header_zlib_h" = xyes; then :
14405 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
14406 < $as_echo_n "checking for zlibVersion in -lz... " >&6; }
14407 < if ${ac_cv_lib_z_zlibVersion+:} false; then :
14408 <  $as_echo_n "(cached) " >&6
14409 < else
14410 <  ac_check_lib_save_LIBS=$LIBS
14411 < LIBS="-lz  $LIBS"
14412 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 >  iopoll_mechanism_none=0
14404 >
14405 > cat >>confdefs.h <<_ACEOF
14406 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14407 > _ACEOF
14408 >
14409 >
14410 >  iopoll_mechanism_kqueue=1
14411 >
14412 > cat >>confdefs.h <<_ACEOF
14413 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14414 > _ACEOF
14415 >
14416 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417   /* end confdefs.h.  */
14418 + /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14419 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14420 + #define kevent innocuous_kevent
14421 +
14422 + /* System header to define __stub macros and hopefully few prototypes,
14423 +    which can conflict with char kevent (); below.
14424 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14425 +    <limits.h> exists even on freestanding compilers.  */
14426 +
14427 + #ifdef __STDC__
14428 + # include <limits.h>
14429 + #else
14430 + # include <assert.h>
14431 + #endif
14432 +
14433 + #undef kevent
14434  
14435   /* Override any GCC internal prototype to avoid an error.
14436     Use char because int might match the return type of a GCC
# Line 13679 | Line 14438 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14438   #ifdef __cplusplus
14439   extern "C"
14440   #endif
14441 < char zlibVersion ();
14441 > char kevent ();
14442 > /* The GNU C library defines this for functions which it implements
14443 >    to always fail with ENOSYS.  Some functions are actually named
14444 >    something starting with __ and the normal name is an alias.  */
14445 > #if defined __stub_kevent || defined __stub___kevent
14446 > choke me
14447 > #endif
14448 >
14449   int
14450   main ()
14451   {
14452 < return zlibVersion ();
14452 > return kevent ();
14453    ;
14454    return 0;
14455   }
14456   _ACEOF
14457   if ac_fn_c_try_link "$LINENO"; then :
14458 <  ac_cv_lib_z_zlibVersion=yes
14458 >  is_kqueue_mechanism_available="yes"
14459   else
14460 <  ac_cv_lib_z_zlibVersion=no
14460 >  is_kqueue_mechanism_available="no"
14461   fi
14462   rm -f core conftest.err conftest.$ac_objext \
14463      conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13701 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13702 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13703
13704      LIBS="-lz $LIBS"
14464  
14465 < $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14465 >  iopoll_mechanism_epoll=2
14466  
14467 + cat >>confdefs.h <<_ACEOF
14468 + #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14469 + _ACEOF
14470  
14471 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 + /* end confdefs.h.  */
14473 + #include <sys/epoll.h>
14474 + int
14475 + main ()
14476 + {
14477 + epoll_create(256);
14478 +  ;
14479 +  return 0;
14480 + }
14481 + _ACEOF
14482 + if ac_fn_c_try_link "$LINENO"; then :
14483 +  is_epoll_mechanism_available="yes"
14484   else
14485 <  zlib=no
14485 >  is_epoll_mechanism_available="no"
14486   fi
14487 + rm -f core conftest.err conftest.$ac_objext \
14488 +    conftest$ac_exeext conftest.$ac_ext
14489  
14490 +  iopoll_mechanism_devpoll=3
14491  
14492 + cat >>confdefs.h <<_ACEOF
14493 + #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14494 + _ACEOF
14495 +
14496 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 + /* end confdefs.h.  */
14498 + #include <devpoll.h>
14499 + int
14500 + main ()
14501 + {
14502 +
14503 +  ;
14504 +  return 0;
14505 + }
14506 + _ACEOF
14507 + if ac_fn_c_try_compile "$LINENO"; then :
14508 +  is_devpoll_mechanism_available="yes"
14509   else
14510 <  zlib=no
14510 >  is_devpoll_mechanism_available="no"
14511   fi
14512 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14514  
14515 + $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14516  
14517 +  fi
14518 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 + /* end confdefs.h.  */
14520 + #include <sys/devpoll.h>
14521 + int
14522 + main ()
14523 + {
14524  
14525 +  ;
14526 +  return 0;
14527 + }
14528 + _ACEOF
14529 + if ac_fn_c_try_compile "$LINENO"; then :
14530 +  is_devpoll_mechanism_available="yes"
14531 + else
14532 +  is_devpoll_mechanism_available="no"
14533   fi
14534 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14536  
14537 + $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14538  
14539 < # Check whether --with-libpcre-path was given.
13724 < if test "${with_libpcre_path+set}" = set; then :
13725 <  withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
13726 < fi
14539 >  fi
14540  
14541 +  iopoll_mechanism_poll=4
14542  
14543 < # Check whether --enable-libpcre was given.
14544 < if test "${enable_libpcre+set}" = set; then :
14545 <  enableval=$enable_libpcre; libpcre=$enableval
13732 < else
13733 <  libpcre=yes
13734 < fi
14543 > cat >>confdefs.h <<_ACEOF
14544 > #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14545 > _ACEOF
14546  
14547 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 + /* end confdefs.h.  */
14549 + /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14550 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14551 + #define poll innocuous_poll
14552  
14553 < if test "$libpcre" = "yes"; then :
14553 > /* System header to define __stub macros and hopefully few prototypes,
14554 >    which can conflict with char poll (); below.
14555 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556 >    <limits.h> exists even on freestanding compilers.  */
14557  
14558 <  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14559 < if test "x$ac_cv_header_pcre_h" = xyes; then :
14560 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
14561 < $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
14562 < if ${ac_cv_lib_pcre_pcre_study+:} false; then :
14563 <  $as_echo_n "(cached) " >&6
14564 < else
13746 <  ac_check_lib_save_LIBS=$LIBS
13747 < LIBS="-lpcre  $LIBS"
13748 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 < /* end confdefs.h.  */
14558 > #ifdef __STDC__
14559 > # include <limits.h>
14560 > #else
14561 > # include <assert.h>
14562 > #endif
14563 >
14564 > #undef poll
14565  
14566   /* Override any GCC internal prototype to avoid an error.
14567     Use char because int might match the return type of a GCC
# Line 13754 | Line 14569 | cat confdefs.h - <<_ACEOF >conftest.$ac_
14569   #ifdef __cplusplus
14570   extern "C"
14571   #endif
14572 < char pcre_study ();
14572 > char poll ();
14573 > /* The GNU C library defines this for functions which it implements
14574 >    to always fail with ENOSYS.  Some functions are actually named
14575 >    something starting with __ and the normal name is an alias.  */
14576 > #if defined __stub_poll || defined __stub___poll
14577 > choke me
14578 > #endif
14579 >
14580   int
14581   main ()
14582   {
14583 < return pcre_study ();
14583 > return poll ();
14584    ;
14585    return 0;
14586   }
14587   _ACEOF
14588   if ac_fn_c_try_link "$LINENO"; then :
14589 <  ac_cv_lib_pcre_pcre_study=yes
14589 >  is_poll_mechanism_available="yes"
14590   else
14591 <  ac_cv_lib_pcre_pcre_study=no
14591 >  is_poll_mechanism_available="no"
14592   fi
14593   rm -f core conftest.err conftest.$ac_objext \
14594      conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13776 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13777 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
14595  
14596 <      LIBS="-lpcre $LIBS"
14596 >  optimal_iopoll_mechanism="none"
14597 >  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14598 >    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14599 >    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14600 >      optimal_iopoll_mechanism="$mechanism"
14601 >      break
14602 >    fi
14603 >  done
14604 >
14605 >  if test "$desired_iopoll_mechanism" = "none" ; then
14606 >    if test "$optimal_iopoll_mechanism" = "none" ; then
14607 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14608 > $as_echo "none" >&6; }
14609 >      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14610 >    else
14611 >      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14612 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14613 > $as_echo "$selected_iopoll_mechanism" >&6; }
14614 >    fi
14615 >  else
14616 >    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14617 >    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14618 >      selected_iopoll_mechanism=$desired_iopoll_mechanism
14619 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14620 > $as_echo "$selected_iopoll_mechanism" >&6; }
14621 >    else
14622 >      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14623 > $as_echo "none" >&6; }
14624 >      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14625 >    fi
14626 >  fi
14627 >
14628 >  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14629 >
14630 > cat >>confdefs.h <<_ACEOF
14631 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14632 > _ACEOF
14633  
13781 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14634  
14635  
14636 +  # Check whether --enable-assert was given.
14637 + if test "${enable_assert+set}" = set; then :
14638 +  enableval=$enable_assert; assert=$enableval
14639   else
14640 <  libpcre=no
14640 >  assert=no
14641 > fi
14642 >
14643 >
14644 >  if test "$assert" = "no"; then :
14645 >
14646 > $as_echo "#define NDEBUG 1" >>confdefs.h
14647 >
14648   fi
14649  
14650  
14651 +  # Check whether --enable-debugging was given.
14652 + if test "${enable_debugging+set}" = set; then :
14653 +  enableval=$enable_debugging; debugging="$enableval"
14654   else
14655 <  libpcre=no
14655 >  debugging="no"
14656   fi
14657  
14658  
14659 +  if test "$debugging" = "yes"; then :
14660 +
14661 +    CFLAGS="-Wall -g -O0"
14662  
14663   fi
14664 < if test "$libpcre" = yes; then
14665 <  ENABLE_PCRE_TRUE=
14666 <  ENABLE_PCRE_FALSE='#'
14664 >
14665 >
14666 >  # Check whether --enable-warnings was given.
14667 > if test "${enable_warnings+set}" = set; then :
14668 >  enableval=$enable_warnings; warnings="$enableval"
14669   else
14670 <  ENABLE_PCRE_TRUE='#'
13801 <  ENABLE_PCRE_FALSE=
14670 >  warnings="no"
14671   fi
14672  
14673  
14674 +  if test "$warnings" = "yes"; then :
14675  
14676 < # Check whether --enable-openssl was given.
14677 < if test "${enable_openssl+set}" = set; then :
14678 <  enableval=$enable_openssl;  cf_enable_openssl=$enableval
14676 >
14677 >
14678 >
14679 >
14680 > for flag in -Wall; do
14681 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14682 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14683 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14684 > if eval \${$as_CACHEVAR+:} false; then :
14685 >  $as_echo_n "(cached) " >&6
14686   else
14687 <   cf_enable_openssl="auto"
14687 >
14688 >  ax_check_save_flags=$CFLAGS
14689 >  CFLAGS="$CFLAGS  $flag"
14690 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 > /* end confdefs.h.  */
14692 >
14693 > int
14694 > main ()
14695 > {
14696 >
14697 >  ;
14698 >  return 0;
14699 > }
14700 > _ACEOF
14701 > if ac_fn_c_try_compile "$LINENO"; then :
14702 >  eval "$as_CACHEVAR=yes"
14703 > else
14704 >  eval "$as_CACHEVAR=no"
14705 > fi
14706 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 >  CFLAGS=$ax_check_save_flags
14708   fi
14709 + eval ac_res=\$$as_CACHEVAR
14710 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14711 + $as_echo "$ac_res" >&6; }
14712 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14713  
14714 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13814 < $as_echo_n "checking for OpenSSL... " >&6; }
13815 < if test "$cf_enable_openssl" != "no"; then
13816 <  cf_openssl_basedir=""
13817 <  if test "$cf_enable_openssl" != "auto" &&
13818 <     test "$cf_enable_openssl" != "yes"; then
13819 <          cf_openssl_basedir="${cf_enable_openssl}"
13820 <  else
13821 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13822 <                /opt /opt/openssl /usr/local/openssl; do
13823 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
13824 <        cf_openssl_basedir="${dirs}"
13825 <        break
13826 <      fi
13827 <    done
13828 <    unset dirs
13829 <  fi
14714 > if ${CFLAGS+:} false; then :
14715  
14716 <    if test ! -z "$cf_openssl_basedir"; then
14717 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14718 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14719 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14720 <    else
14721 <                  cf_openssl_basedir=""
14722 <    fi
14723 <  else
13839 <                            if test -f "/usr/include/openssl/opensslv.h"; then
13840 <      cf_openssl_basedir="/usr"
13841 <    fi
13842 <  fi
14716 >  case " $CFLAGS " in #(
14717 >  *" $flag "*) :
14718 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14719 >  (: CFLAGS already contains $flag) 2>&5
14720 >  ac_status=$?
14721 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 >  test $ac_status = 0; } ;; #(
14723 >  *) :
14724  
14725 <      if test ! -z "$cf_openssl_basedir"; then
14726 <    LIBS="-lcrypto -lssl $LIBS"
14727 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14728 < $as_echo "$cf_openssl_basedir" >&6; }
14729 <    cf_enable_openssl="yes"
14725 >     as_fn_append CFLAGS " $flag"
14726 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14727 >  (: CFLAGS="$CFLAGS") 2>&5
14728 >  ac_status=$?
14729 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730 >  test $ac_status = 0; }
14731 >     ;;
14732 > esac
14733  
14734 < $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14734 > else
14735 >
14736 >  CFLAGS=$flag
14737 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14738 >  (: CFLAGS="$CFLAGS") 2>&5
14739 >  ac_status=$?
14740 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 >  test $ac_status = 0; }
14742 >
14743 > fi
14744  
13852  else
13853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13854 $as_echo "not found. Please check your path." >&6; }
13855    cf_enable_openssl="no"
13856  fi
13857  unset cf_openssl_basedir
14745   else
14746 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13860 < $as_echo "disabled" >&6; }
14746 >  :
14747   fi
14748  
14749 < if test "$cf_enable_openssl" != "no"; then :
14750 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14751 < $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14752 <  if test "$cross_compiling" = yes; then :
14753 <  cf_openssl_version_ok=no
14749 > done
14750 >
14751 >
14752 >
14753 >
14754 >
14755 > for flag in -Wbad-function-cast; do
14756 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14757 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14758 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14759 > if eval \${$as_CACHEVAR+:} false; then :
14760 >  $as_echo_n "(cached) " >&6
14761   else
14762 +
14763 +  ax_check_save_flags=$CFLAGS
14764 +  CFLAGS="$CFLAGS  $flag"
14765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766   /* end confdefs.h.  */
14767  
13872
13873    #include <openssl/opensslv.h>
13874    #include <stdlib.h>
14768   int
14769   main ()
14770   {
14771 < exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
14771 >
14772    ;
14773    return 0;
14774   }
14775   _ACEOF
14776 < if ac_fn_c_try_run "$LINENO"; then :
14777 <  cf_openssl_version_ok=yes
14776 > if ac_fn_c_try_compile "$LINENO"; then :
14777 >  eval "$as_CACHEVAR=yes"
14778   else
14779 <  cf_openssl_version_ok=no
14779 >  eval "$as_CACHEVAR=no"
14780   fi
14781 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14782 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14781 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 >  CFLAGS=$ax_check_save_flags
14783   fi
14784 + eval ac_res=\$$as_CACHEVAR
14785 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14786 + $as_echo "$ac_res" >&6; }
14787 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14788  
14789 + if ${CFLAGS+:} false; then :
14790  
14791 <  if test "$cf_openssl_version_ok" = "yes"; then :
14792 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14793 < $as_echo "found" >&6; }
14791 >  case " $CFLAGS " in #(
14792 >  *" $flag "*) :
14793 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14794 >  (: CFLAGS already contains $flag) 2>&5
14795 >  ac_status=$?
14796 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14797 >  test $ac_status = 0; } ;; #(
14798 >  *) :
14799  
14800 <    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14801 < $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14802 < if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14800 >     as_fn_append CFLAGS " $flag"
14801 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14802 >  (: CFLAGS="$CFLAGS") 2>&5
14803 >  ac_status=$?
14804 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 >  test $ac_status = 0; }
14806 >     ;;
14807 > esac
14808 >
14809 > else
14810 >
14811 >  CFLAGS=$flag
14812 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14813 >  (: CFLAGS="$CFLAGS") 2>&5
14814 >  ac_status=$?
14815 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 >  test $ac_status = 0; }
14817 >
14818 > fi
14819 >
14820 > else
14821 >  :
14822 > fi
14823 >
14824 > done
14825 >
14826 >
14827 >
14828 >
14829 >
14830 > for flag in -Wcast-align; do
14831 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14832 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14833 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14834 > if eval \${$as_CACHEVAR+:} false; then :
14835    $as_echo_n "(cached) " >&6
14836   else
14837 <  ac_check_lib_save_LIBS=$LIBS
14838 < LIBS="-lcrypto  $LIBS"
14839 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 >
14838 >  ax_check_save_flags=$CFLAGS
14839 >  CFLAGS="$CFLAGS  $flag"
14840 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841   /* end confdefs.h.  */
14842  
13907 /* Override any GCC internal prototype to avoid an error.
13908   Use char because int might match the return type of a GCC
13909   builtin and then its argument prototype would still apply.  */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char RSA_free ();
14843   int
14844   main ()
14845   {
14846 < return RSA_free ();
14846 >
14847    ;
14848    return 0;
14849   }
14850   _ACEOF
14851 < if ac_fn_c_try_link "$LINENO"; then :
14852 <  ac_cv_lib_crypto_RSA_free=yes
14851 > if ac_fn_c_try_compile "$LINENO"; then :
14852 >  eval "$as_CACHEVAR=yes"
14853   else
14854 <  ac_cv_lib_crypto_RSA_free=no
14854 >  eval "$as_CACHEVAR=no"
14855   fi
14856 < rm -f core conftest.err conftest.$ac_objext \
14857 <    conftest$ac_exeext conftest.$ac_ext
13929 < LIBS=$ac_check_lib_save_LIBS
14856 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 >  CFLAGS=$ax_check_save_flags
14858   fi
14859 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14860 < $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14861 < if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14862 <  cat >>confdefs.h <<_ACEOF
13935 < #define HAVE_LIBCRYPTO 1
13936 < _ACEOF
14859 > eval ac_res=\$$as_CACHEVAR
14860 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14861 > $as_echo "$ac_res" >&6; }
14862 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14863  
14864 <  LIBS="-lcrypto $LIBS"
14864 > if ${CFLAGS+:} false; then :
14865 >
14866 >  case " $CFLAGS " in #(
14867 >  *" $flag "*) :
14868 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14869 >  (: CFLAGS already contains $flag) 2>&5
14870 >  ac_status=$?
14871 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 >  test $ac_status = 0; } ;; #(
14873 >  *) :
14874 >
14875 >     as_fn_append CFLAGS " $flag"
14876 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14877 >  (: CFLAGS="$CFLAGS") 2>&5
14878 >  ac_status=$?
14879 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14880 >  test $ac_status = 0; }
14881 >     ;;
14882 > esac
14883 >
14884 > else
14885 >
14886 >  CFLAGS=$flag
14887 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14888 >  (: CFLAGS="$CFLAGS") 2>&5
14889 >  ac_status=$?
14890 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 >  test $ac_status = 0; }
14892  
14893   fi
14894  
14895 <    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14896 <  for ac_func in EVP_bf_cfb           \
14897 <                      EVP_cast5_cfb        \
14898 <                      EVP_idea_cfb         \
14899 <                      EVP_rc5_32_12_16_cfb \
14900 <                      EVP_des_ede3_cfb     \
14901 <                      EVP_des_cfb
14902 < do :
14903 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14904 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14905 < if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14906 <  cat >>confdefs.h <<_ACEOF
14907 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895 > else
14896 >  :
14897 > fi
14898 >
14899 > done
14900 >
14901 >
14902 >
14903 >
14904 >
14905 > for flag in -Wcast-qual; do
14906 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14907 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14908 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14909 > if eval \${$as_CACHEVAR+:} false; then :
14910 >  $as_echo_n "(cached) " >&6
14911 > else
14912 >
14913 >  ax_check_save_flags=$CFLAGS
14914 >  CFLAGS="$CFLAGS  $flag"
14915 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 > /* end confdefs.h.  */
14917 >
14918 > int
14919 > main ()
14920 > {
14921 >
14922 >  ;
14923 >  return 0;
14924 > }
14925   _ACEOF
14926 + if ac_fn_c_try_compile "$LINENO"; then :
14927 +  eval "$as_CACHEVAR=yes"
14928 + else
14929 +  eval "$as_CACHEVAR=no"
14930 + fi
14931 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 +  CFLAGS=$ax_check_save_flags
14933 + fi
14934 + eval ac_res=\$$as_CACHEVAR
14935 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14936 + $as_echo "$ac_res" >&6; }
14937 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14938 +
14939 + if ${CFLAGS+:} false; then :
14940 +
14941 +  case " $CFLAGS " in #(
14942 +  *" $flag "*) :
14943 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14944 +  (: CFLAGS already contains $flag) 2>&5
14945 +  ac_status=$?
14946 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14947 +  test $ac_status = 0; } ;; #(
14948 +  *) :
14949 +
14950 +     as_fn_append CFLAGS " $flag"
14951 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14952 +  (: CFLAGS="$CFLAGS") 2>&5
14953 +  ac_status=$?
14954 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 +  test $ac_status = 0; }
14956 +     ;;
14957 + esac
14958 +
14959 + else
14960 +
14961 +  CFLAGS=$flag
14962 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14963 +  (: CFLAGS="$CFLAGS") 2>&5
14964 +  ac_status=$?
14965 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 +  test $ac_status = 0; }
14967 +
14968 + fi
14969  
14970 + else
14971 +  :
14972   fi
14973 +
14974   done
14975  
14976 +
14977 +
14978 +
14979 +
14980 + for flag in -Wclobbered; do
14981 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14982 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14983 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14984 + if eval \${$as_CACHEVAR+:} false; then :
14985 +  $as_echo_n "(cached) " >&6
14986 + else
14987 +
14988 +  ax_check_save_flags=$CFLAGS
14989 +  CFLAGS="$CFLAGS  $flag"
14990 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 + /* end confdefs.h.  */
14992 +
14993 + int
14994 + main ()
14995 + {
14996 +
14997 +  ;
14998 +  return 0;
14999 + }
15000 + _ACEOF
15001 + if ac_fn_c_try_compile "$LINENO"; then :
15002 +  eval "$as_CACHEVAR=yes"
15003 + else
15004 +  eval "$as_CACHEVAR=no"
15005 + fi
15006 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 +  CFLAGS=$ax_check_save_flags
15008   fi
15009 + eval ac_res=\$$as_CACHEVAR
15010 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15011 + $as_echo "$ac_res" >&6; }
15012 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15013 +
15014 + if ${CFLAGS+:} false; then :
15015 +
15016 +  case " $CFLAGS " in #(
15017 +  *" $flag "*) :
15018 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15019 +  (: CFLAGS already contains $flag) 2>&5
15020 +  ac_status=$?
15021 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15022 +  test $ac_status = 0; } ;; #(
15023 +  *) :
15024 +
15025 +     as_fn_append CFLAGS " $flag"
15026 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15027 +  (: CFLAGS="$CFLAGS") 2>&5
15028 +  ac_status=$?
15029 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 +  test $ac_status = 0; }
15031 +     ;;
15032 + esac
15033  
15034   else
15035 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15036 < $as_echo "no - OpenSSL support disabled" >&6; }
15037 <    cf_enable_openssl="no"
15035 >
15036 >  CFLAGS=$flag
15037 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15038 >  (: CFLAGS="$CFLAGS") 2>&5
15039 >  ac_status=$?
15040 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 >  test $ac_status = 0; }
15042 >
15043   fi
15044 +
15045 + else
15046 +  :
15047   fi
15048  
15049 < if test "$cf_enable_openssl" = yes; then
15050 <  ENABLE_SSL_TRUE=
15051 <  ENABLE_SSL_FALSE='#'
15049 > done
15050 >
15051 >
15052 >
15053 >
15054 >
15055 > for flag in -Wduplicated-cond; do
15056 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15057 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15058 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15059 > if eval \${$as_CACHEVAR+:} false; then :
15060 >  $as_echo_n "(cached) " >&6
15061 > else
15062 >
15063 >  ax_check_save_flags=$CFLAGS
15064 >  CFLAGS="$CFLAGS  $flag"
15065 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 > /* end confdefs.h.  */
15067 >
15068 > int
15069 > main ()
15070 > {
15071 >
15072 >  ;
15073 >  return 0;
15074 > }
15075 > _ACEOF
15076 > if ac_fn_c_try_compile "$LINENO"; then :
15077 >  eval "$as_CACHEVAR=yes"
15078   else
15079 <  ENABLE_SSL_TRUE='#'
15080 <  ENABLE_SSL_FALSE=
15079 >  eval "$as_CACHEVAR=no"
15080 > fi
15081 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 >  CFLAGS=$ax_check_save_flags
15083   fi
15084 + eval ac_res=\$$as_CACHEVAR
15085 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15086 + $as_echo "$ac_res" >&6; }
15087 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15088  
15089 + if ${CFLAGS+:} false; then :
15090  
15091 +  case " $CFLAGS " in #(
15092 +  *" $flag "*) :
15093 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15094 +  (: CFLAGS already contains $flag) 2>&5
15095 +  ac_status=$?
15096 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 +  test $ac_status = 0; } ;; #(
15098 +  *) :
15099 +
15100 +     as_fn_append CFLAGS " $flag"
15101 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15102 +  (: CFLAGS="$CFLAGS") 2>&5
15103 +  ac_status=$?
15104 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 +  test $ac_status = 0; }
15106 +     ;;
15107 + esac
15108  
13979 # Check whether --enable-assert was given.
13980 if test "${enable_assert+set}" = set; then :
13981  enableval=$enable_assert; assert=$enableval
15109   else
15110 <  assert=no
15110 >
15111 >  CFLAGS=$flag
15112 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15113 >  (: CFLAGS="$CFLAGS") 2>&5
15114 >  ac_status=$?
15115 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15116 >  test $ac_status = 0; }
15117 >
15118   fi
15119  
15120 + else
15121 +  :
15122 + fi
15123 +
15124 + done
15125 +
15126  
13987 if test "$assert" = "no"; then :
15127  
13989 $as_echo "#define NDEBUG 1" >>confdefs.h
15128  
15129 +
15130 + for flag in -Wempty-body; do
15131 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15132 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15133 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15134 + if eval \${$as_CACHEVAR+:} false; then :
15135 +  $as_echo_n "(cached) " >&6
15136 + else
15137 +
15138 +  ax_check_save_flags=$CFLAGS
15139 +  CFLAGS="$CFLAGS  $flag"
15140 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 + /* end confdefs.h.  */
15142 +
15143 + int
15144 + main ()
15145 + {
15146 +
15147 +  ;
15148 +  return 0;
15149 + }
15150 + _ACEOF
15151 + if ac_fn_c_try_compile "$LINENO"; then :
15152 +  eval "$as_CACHEVAR=yes"
15153 + else
15154 +  eval "$as_CACHEVAR=no"
15155   fi
15156 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 +  CFLAGS=$ax_check_save_flags
15158 + fi
15159 + eval ac_res=\$$as_CACHEVAR
15160 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15161 + $as_echo "$ac_res" >&6; }
15162 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15163 +
15164 + if ${CFLAGS+:} false; then :
15165 +
15166 +  case " $CFLAGS " in #(
15167 +  *" $flag "*) :
15168 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15169 +  (: CFLAGS already contains $flag) 2>&5
15170 +  ac_status=$?
15171 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 +  test $ac_status = 0; } ;; #(
15173 +  *) :
15174  
15175 +     as_fn_append CFLAGS " $flag"
15176 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15177 +  (: CFLAGS="$CFLAGS") 2>&5
15178 +  ac_status=$?
15179 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 +  test $ac_status = 0; }
15181 +     ;;
15182 + esac
15183  
13994 # Check whether --enable-small-net was given.
13995 if test "${enable_small_net+set}" = set; then :
13996  enableval=$enable_small_net; small_net=$enableval
15184   else
15185 <  small_net=no
15185 >
15186 >  CFLAGS=$flag
15187 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15188 >  (: CFLAGS="$CFLAGS") 2>&5
15189 >  ac_status=$?
15190 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 >  test $ac_status = 0; }
15192 >
15193   fi
15194  
15195 + else
15196 +  :
15197 + fi
15198  
15199 < if test "$small_net" = "yes"; then :
15199 > done
15200  
15201  
14005 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
15202  
15203  
14008 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
15204  
15205 + for flag in -Wignored-qualifiers; do
15206 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15207 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15208 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15209 + if eval \${$as_CACHEVAR+:} false; then :
15210 +  $as_echo_n "(cached) " >&6
15211 + else
15212  
15213 < $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
15213 >  ax_check_save_flags=$CFLAGS
15214 >  CFLAGS="$CFLAGS  $flag"
15215 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 > /* end confdefs.h.  */
15217  
15218 + int
15219 + main ()
15220 + {
15221  
15222 < $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
15222 >  ;
15223 >  return 0;
15224 > }
15225 > _ACEOF
15226 > if ac_fn_c_try_compile "$LINENO"; then :
15227 >  eval "$as_CACHEVAR=yes"
15228 > else
15229 >  eval "$as_CACHEVAR=no"
15230 > fi
15231 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 >  CFLAGS=$ax_check_save_flags
15233 > fi
15234 > eval ac_res=\$$as_CACHEVAR
15235 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15236 > $as_echo "$ac_res" >&6; }
15237 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15238  
15239 + if ${CFLAGS+:} false; then :
15240  
15241 < $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
15241 >  case " $CFLAGS " in #(
15242 >  *" $flag "*) :
15243 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15244 >  (: CFLAGS already contains $flag) 2>&5
15245 >  ac_status=$?
15246 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 >  test $ac_status = 0; } ;; #(
15248 >  *) :
15249  
15250 +     as_fn_append CFLAGS " $flag"
15251 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15252 +  (: CFLAGS="$CFLAGS") 2>&5
15253 +  ac_status=$?
15254 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15255 +  test $ac_status = 0; }
15256 +     ;;
15257 + esac
15258  
15259 < $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
15259 > else
15260  
15261 +  CFLAGS=$flag
15262 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15263 +  (: CFLAGS="$CFLAGS") 2>&5
15264 +  ac_status=$?
15265 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 +  test $ac_status = 0; }
15267  
15268 < $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
15268 > fi
15269  
15270 + else
15271 +  :
15272 + fi
15273  
15274 < $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
15274 > done
15275  
15276  
14029 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
15277  
15278  
14032 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
15279  
15280 + for flag in -Wlogical-op; do
15281 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15282 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15283 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15284 + if eval \${$as_CACHEVAR+:} false; then :
15285 +  $as_echo_n "(cached) " >&6
15286 + else
15287 +
15288 +  ax_check_save_flags=$CFLAGS
15289 +  CFLAGS="$CFLAGS  $flag"
15290 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 + /* end confdefs.h.  */
15292 +
15293 + int
15294 + main ()
15295 + {
15296 +
15297 +  ;
15298 +  return 0;
15299 + }
15300 + _ACEOF
15301 + if ac_fn_c_try_compile "$LINENO"; then :
15302 +  eval "$as_CACHEVAR=yes"
15303   else
15304 +  eval "$as_CACHEVAR=no"
15305 + fi
15306 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 +  CFLAGS=$ax_check_save_flags
15308 + fi
15309 + eval ac_res=\$$as_CACHEVAR
15310 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15311 + $as_echo "$ac_res" >&6; }
15312 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15313  
15314 + if ${CFLAGS+:} false; then :
15315  
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_fn_append CFLAGS " $flag"
15326 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15327 +  (: CFLAGS="$CFLAGS") 2>&5
15328 +  ac_status=$?
15329 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 +  test $ac_status = 0; }
15331 +     ;;
15332 + esac
15333  
15334 < $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
15334 > else
15335  
15336 +  CFLAGS=$flag
15337 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15338 +  (: CFLAGS="$CFLAGS") 2>&5
15339 +  ac_status=$?
15340 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 +  test $ac_status = 0; }
15342  
15343 < $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
15343 > fi
15344  
15345 + else
15346 +  :
15347 + fi
15348  
15349 < $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
15349 > done
15350  
15351  
14047 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
15352  
15353  
14050 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
15354  
15355 + for flag in -Wmissing-declarations; do
15356 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15357 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15358 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15359 + if eval \${$as_CACHEVAR+:} false; then :
15360 +  $as_echo_n "(cached) " >&6
15361 + else
15362  
15363 < $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
15363 >  ax_check_save_flags=$CFLAGS
15364 >  CFLAGS="$CFLAGS  $flag"
15365 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 > /* end confdefs.h.  */
15367  
15368 + int
15369 + main ()
15370 + {
15371  
15372 < $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
15372 >  ;
15373 >  return 0;
15374 > }
15375 > _ACEOF
15376 > if ac_fn_c_try_compile "$LINENO"; then :
15377 >  eval "$as_CACHEVAR=yes"
15378 > else
15379 >  eval "$as_CACHEVAR=no"
15380 > fi
15381 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 >  CFLAGS=$ax_check_save_flags
15383 > fi
15384 > eval ac_res=\$$as_CACHEVAR
15385 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15386 > $as_echo "$ac_res" >&6; }
15387 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15388  
15389 + if ${CFLAGS+:} false; then :
15390  
15391 < $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
15391 >  case " $CFLAGS " in #(
15392 >  *" $flag "*) :
15393 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15394 >  (: CFLAGS already contains $flag) 2>&5
15395 >  ac_status=$?
15396 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 >  test $ac_status = 0; } ;; #(
15398 >  *) :
15399  
15400 +     as_fn_append CFLAGS " $flag"
15401 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15402 +  (: CFLAGS="$CFLAGS") 2>&5
15403 +  ac_status=$?
15404 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 +  test $ac_status = 0; }
15406 +     ;;
15407 + esac
15408  
15409 < $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
15409 > else
15410  
15411 +  CFLAGS=$flag
15412 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15413 +  (: CFLAGS="$CFLAGS") 2>&5
15414 +  ac_status=$?
15415 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416 +  test $ac_status = 0; }
15417  
15418 < $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
15418 > fi
15419  
15420 + else
15421 +  :
15422   fi
15423  
15424 + done
15425  
14070 # Argument processing.
15426  
15427 <    desired_iopoll_mechanism="none"
15428 <    # Check whether --enable-kqueue was given.
15429 < if test "${enable_kqueue+set}" = set; then :
15430 <  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15427 >
15428 >
15429 >
15430 > for flag in -Wmissing-field-initializers; do
15431 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15432 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15433 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15434 > if eval \${$as_CACHEVAR+:} false; then :
15435 >  $as_echo_n "(cached) " >&6
15436 > else
15437 >
15438 >  ax_check_save_flags=$CFLAGS
15439 >  CFLAGS="$CFLAGS  $flag"
15440 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 > /* end confdefs.h.  */
15442 >
15443 > int
15444 > main ()
15445 > {
15446 >
15447 >  ;
15448 >  return 0;
15449 > }
15450 > _ACEOF
15451 > if ac_fn_c_try_compile "$LINENO"; then :
15452 >  eval "$as_CACHEVAR=yes"
15453 > else
15454 >  eval "$as_CACHEVAR=no"
15455 > fi
15456 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 >  CFLAGS=$ax_check_save_flags
15458   fi
15459 + eval ac_res=\$$as_CACHEVAR
15460 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15461 + $as_echo "$ac_res" >&6; }
15462 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15463 +
15464 + if ${CFLAGS+:} false; then :
15465 +
15466 +  case " $CFLAGS " in #(
15467 +  *" $flag "*) :
15468 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15469 +  (: CFLAGS already contains $flag) 2>&5
15470 +  ac_status=$?
15471 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472 +  test $ac_status = 0; } ;; #(
15473 +  *) :
15474 +
15475 +     as_fn_append CFLAGS " $flag"
15476 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15477 +  (: CFLAGS="$CFLAGS") 2>&5
15478 +  ac_status=$?
15479 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 +  test $ac_status = 0; }
15481 +     ;;
15482 + esac
15483 +
15484 + else
15485 +
15486 +  CFLAGS=$flag
15487 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15488 +  (: CFLAGS="$CFLAGS") 2>&5
15489 +  ac_status=$?
15490 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15491 +  test $ac_status = 0; }
15492  
14078  # Check whether --enable-epoll was given.
14079 if test "${enable_epoll+set}" = set; then :
14080  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15493   fi
15494  
15495 <  # Check whether --enable-devpoll was given.
15496 < if test "${enable_devpoll+set}" = set; then :
14085 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15495 > else
15496 >  :
15497   fi
15498  
15499 <  # Check whether --enable-rtsigio was given.
15500 < if test "${enable_rtsigio+set}" = set; then :
15501 <  enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
15499 > done
15500 >
15501 >
15502 >
15503 >
15504 >
15505 > for flag in -Wmissing-include-dirs; do
15506 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15507 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15508 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15509 > if eval \${$as_CACHEVAR+:} false; then :
15510 >  $as_echo_n "(cached) " >&6
15511 > else
15512 >
15513 >  ax_check_save_flags=$CFLAGS
15514 >  CFLAGS="$CFLAGS  $flag"
15515 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 > /* end confdefs.h.  */
15517 >
15518 > int
15519 > main ()
15520 > {
15521 >
15522 >  ;
15523 >  return 0;
15524 > }
15525 > _ACEOF
15526 > if ac_fn_c_try_compile "$LINENO"; then :
15527 >  eval "$as_CACHEVAR=yes"
15528 > else
15529 >  eval "$as_CACHEVAR=no"
15530 > fi
15531 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 >  CFLAGS=$ax_check_save_flags
15533   fi
15534 + eval ac_res=\$$as_CACHEVAR
15535 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15536 + $as_echo "$ac_res" >&6; }
15537 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15538 +
15539 + if ${CFLAGS+:} false; then :
15540 +
15541 +  case " $CFLAGS " in #(
15542 +  *" $flag "*) :
15543 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15544 +  (: CFLAGS already contains $flag) 2>&5
15545 +  ac_status=$?
15546 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547 +  test $ac_status = 0; } ;; #(
15548 +  *) :
15549 +
15550 +     as_fn_append CFLAGS " $flag"
15551 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15552 +  (: CFLAGS="$CFLAGS") 2>&5
15553 +  ac_status=$?
15554 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555 +  test $ac_status = 0; }
15556 +     ;;
15557 + esac
15558 +
15559 + else
15560 +
15561 +  CFLAGS=$flag
15562 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15563 +  (: CFLAGS="$CFLAGS") 2>&5
15564 +  ac_status=$?
15565 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15566 +  test $ac_status = 0; }
15567  
14093  # Check whether --enable-poll was given.
14094 if test "${enable_poll+set}" = set; then :
14095  enableval=$enable_poll; desired_iopoll_mechanism="poll"
15568   fi
15569  
15570 <  # Check whether --enable-select was given.
15571 < if test "${enable_select+set}" = set; then :
14100 <  enableval=$enable_select; desired_iopoll_mechanism="select"
15570 > else
15571 >  :
15572   fi
15573  
15574 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
15575 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14105 <  iopoll_mechanism_none=0
15574 > done
15575 >
15576  
14107 cat >>confdefs.h <<_ACEOF
14108 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14109 _ACEOF
15577  
14111      iopoll_mechanism_kqueue=1
15578  
14113 cat >>confdefs.h <<_ACEOF
14114 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14115 _ACEOF
15579  
15580 + for flag in -Wmissing-parameter-type; do
15581 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15582 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15583 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15584 + if eval \${$as_CACHEVAR+:} false; then :
15585 +  $as_echo_n "(cached) " >&6
15586 + else
15587 +
15588 +  ax_check_save_flags=$CFLAGS
15589 +  CFLAGS="$CFLAGS  $flag"
15590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591   /* end confdefs.h.  */
14119 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14121 #define kevent innocuous_kevent
15592  
15593 < /* System header to define __stub macros and hopefully few prototypes,
15594 <    which can conflict with char kevent (); below.
15595 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14126 <    <limits.h> exists even on freestanding compilers.  */
15593 > int
15594 > main ()
15595 > {
15596  
15597 < #ifdef __STDC__
15598 < # include <limits.h>
15599 < #else
15600 < # include <assert.h>
15601 < #endif
15597 >  ;
15598 >  return 0;
15599 > }
15600 > _ACEOF
15601 > if ac_fn_c_try_compile "$LINENO"; then :
15602 >  eval "$as_CACHEVAR=yes"
15603 > else
15604 >  eval "$as_CACHEVAR=no"
15605 > fi
15606 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 >  CFLAGS=$ax_check_save_flags
15608 > fi
15609 > eval ac_res=\$$as_CACHEVAR
15610 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15611 > $as_echo "$ac_res" >&6; }
15612 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15613  
15614 < #undef kevent
15614 > if ${CFLAGS+:} false; then :
15615  
15616 < /* Override any GCC internal prototype to avoid an error.
15617 <   Use char because int might match the return type of a GCC
15618 <   builtin and then its argument prototype would still apply.  */
15619 < #ifdef __cplusplus
15620 < extern "C"
15621 < #endif
15622 < char kevent ();
15623 < /* The GNU C library defines this for functions which it implements
15624 <    to always fail with ENOSYS.  Some functions are actually named
15625 <    something starting with __ and the normal name is an alias.  */
15626 < #if defined __stub_kevent || defined __stub___kevent
15627 < choke me
15628 < #endif
15616 >  case " $CFLAGS " in #(
15617 >  *" $flag "*) :
15618 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15619 >  (: CFLAGS already contains $flag) 2>&5
15620 >  ac_status=$?
15621 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 >  test $ac_status = 0; } ;; #(
15623 >  *) :
15624 >
15625 >     as_fn_append CFLAGS " $flag"
15626 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15627 >  (: CFLAGS="$CFLAGS") 2>&5
15628 >  ac_status=$?
15629 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630 >  test $ac_status = 0; }
15631 >     ;;
15632 > esac
15633 >
15634 > else
15635 >
15636 >  CFLAGS=$flag
15637 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15638 >  (: CFLAGS="$CFLAGS") 2>&5
15639 >  ac_status=$?
15640 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641 >  test $ac_status = 0; }
15642 >
15643 > fi
15644 >
15645 > else
15646 >  :
15647 > fi
15648 >
15649 > done
15650 >
15651 >
15652 >
15653 >
15654 >
15655 > for flag in -Wmissing-prototypes; do
15656 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15657 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15658 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15659 > if eval \${$as_CACHEVAR+:} false; then :
15660 >  $as_echo_n "(cached) " >&6
15661 > else
15662 >
15663 >  ax_check_save_flags=$CFLAGS
15664 >  CFLAGS="$CFLAGS  $flag"
15665 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 > /* end confdefs.h.  */
15667  
15668   int
15669   main ()
15670   {
15671 < return kevent ();
15671 >
15672    ;
15673    return 0;
15674   }
15675   _ACEOF
15676 < if ac_fn_c_try_link "$LINENO"; then :
15677 <  is_kqueue_mechanism_available="yes"
15676 > if ac_fn_c_try_compile "$LINENO"; then :
15677 >  eval "$as_CACHEVAR=yes"
15678   else
15679 <  is_kqueue_mechanism_available="no"
15679 >  eval "$as_CACHEVAR=no"
15680   fi
15681 < rm -f core conftest.err conftest.$ac_objext \
15682 <    conftest$ac_exeext conftest.$ac_ext
15683 <      iopoll_mechanism_epoll=2
15681 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 >  CFLAGS=$ax_check_save_flags
15683 > fi
15684 > eval ac_res=\$$as_CACHEVAR
15685 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15686 > $as_echo "$ac_res" >&6; }
15687 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15688  
15689 < cat >>confdefs.h <<_ACEOF
14168 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14169 < _ACEOF
15689 > if ${CFLAGS+:} false; then :
15690  
15691 <  if test "$cross_compiling" = yes; then :
15692 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15693 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15694 < as_fn_error $? "cannot run test program while cross compiling
15695 < See \`config.log' for more details" "$LINENO" 5; }
15691 >  case " $CFLAGS " in #(
15692 >  *" $flag "*) :
15693 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15694 >  (: CFLAGS already contains $flag) 2>&5
15695 >  ac_status=$?
15696 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 >  test $ac_status = 0; } ;; #(
15698 >  *) :
15699 >
15700 >     as_fn_append CFLAGS " $flag"
15701 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15702 >  (: CFLAGS="$CFLAGS") 2>&5
15703 >  ac_status=$?
15704 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15705 >  test $ac_status = 0; }
15706 >     ;;
15707 > esac
15708 >
15709 > else
15710 >
15711 >  CFLAGS=$flag
15712 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15713 >  (: CFLAGS="$CFLAGS") 2>&5
15714 >  ac_status=$?
15715 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 >  test $ac_status = 0; }
15717 >
15718 > fi
15719 >
15720 > else
15721 >  :
15722 > fi
15723 >
15724 > done
15725 >
15726 >
15727 >
15728 >
15729 >
15730 > for flag in -Wnested-externs; do
15731 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15732 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15733 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15734 > if eval \${$as_CACHEVAR+:} false; then :
15735 >  $as_echo_n "(cached) " >&6
15736   else
15737 +
15738 +  ax_check_save_flags=$CFLAGS
15739 +  CFLAGS="$CFLAGS  $flag"
15740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741   /* end confdefs.h.  */
15742  
14180 #include <sys/epoll.h>
14181 #include <sys/syscall.h>
14182 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14183 #if !defined(__NR_epoll_create)
14184 #if defined(__ia64__)
14185 #define __NR_epoll_create 1243
14186 #elif defined(__x86_64__)
14187 #define __NR_epoll_create 214
14188 #elif defined(__sparc64__) || defined(__sparc__)
14189 #define __NR_epoll_create 193
14190 #elif defined(__s390__) || defined(__m68k__)
14191 #define __NR_epoll_create 249
14192 #elif defined(__ppc64__) || defined(__ppc__)
14193 #define __NR_epoll_create 236
14194 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14195 #define __NR_epoll_create 224
14196 #elif defined(__alpha__)
14197 #define __NR_epoll_create 407
14198 #elif defined(__sh64__)
14199 #define __NR_epoll_create 282
14200 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14201 #define __NR_epoll_create 254
14202 #else
14203 #error No system call numbers defined for epoll family.
14204 #endif
14205 #endif
14206 _syscall1(int, epoll_create, int, size)
14207 #endif
14208
15743   int
15744   main ()
15745   {
15746 < return epoll_create(256) == -1 ? 1 : 0
15746 >
15747    ;
15748    return 0;
15749   }
15750   _ACEOF
15751 < if ac_fn_c_try_run "$LINENO"; then :
15752 <  is_epoll_mechanism_available="yes"
15751 > if ac_fn_c_try_compile "$LINENO"; then :
15752 >  eval "$as_CACHEVAR=yes"
15753   else
15754 <  is_epoll_mechanism_available="no"
15754 >  eval "$as_CACHEVAR=no"
15755   fi
15756 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15757 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
15756 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 >  CFLAGS=$ax_check_save_flags
15758   fi
15759 + eval ac_res=\$$as_CACHEVAR
15760 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15761 + $as_echo "$ac_res" >&6; }
15762 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15763 +
15764 + if ${CFLAGS+:} false; then :
15765 +
15766 +  case " $CFLAGS " in #(
15767 +  *" $flag "*) :
15768 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15769 +  (: CFLAGS already contains $flag) 2>&5
15770 +  ac_status=$?
15771 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15772 +  test $ac_status = 0; } ;; #(
15773 +  *) :
15774 +
15775 +     as_fn_append CFLAGS " $flag"
15776 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15777 +  (: CFLAGS="$CFLAGS") 2>&5
15778 +  ac_status=$?
15779 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15780 +  test $ac_status = 0; }
15781 +     ;;
15782 + esac
15783 +
15784 + else
15785 +
15786 +  CFLAGS=$flag
15787 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15788 +  (: CFLAGS="$CFLAGS") 2>&5
15789 +  ac_status=$?
15790 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791 +  test $ac_status = 0; }
15792 +
15793 + fi
15794 +
15795 + else
15796 +  :
15797 + fi
15798 +
15799 + done
15800 +
15801  
14226      iopoll_mechanism_devpoll=3
15802  
14228 cat >>confdefs.h <<_ACEOF
14229 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14230 _ACEOF
15803  
15804 +
15805 + for flag in -Wold-style-declaration; do
15806 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15807 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15808 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15809 + if eval \${$as_CACHEVAR+:} false; then :
15810 +  $as_echo_n "(cached) " >&6
15811 + else
15812 +
15813 +  ax_check_save_flags=$CFLAGS
15814 +  CFLAGS="$CFLAGS  $flag"
15815    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816   /* end confdefs.h.  */
15817 < #include <devpoll.h>
15817 >
15818   int
15819   main ()
15820   {
# Line 14241 | Line 15824 | main ()
15824   }
15825   _ACEOF
15826   if ac_fn_c_try_compile "$LINENO"; then :
15827 <  is_devpoll_mechanism_available="yes"
15827 >  eval "$as_CACHEVAR=yes"
15828   else
15829 <  is_devpoll_mechanism_available="no"
15829 >  eval "$as_CACHEVAR=no"
15830   fi
15831   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
15832 >  CFLAGS=$ax_check_save_flags
15833 > fi
15834 > eval ac_res=\$$as_CACHEVAR
15835 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15836 > $as_echo "$ac_res" >&6; }
15837 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15838  
15839 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
15839 > if ${CFLAGS+:} false; then :
15840  
15841 <  fi
15841 >  case " $CFLAGS " in #(
15842 >  *" $flag "*) :
15843 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15844 >  (: CFLAGS already contains $flag) 2>&5
15845 >  ac_status=$?
15846 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847 >  test $ac_status = 0; } ;; #(
15848 >  *) :
15849 >
15850 >     as_fn_append CFLAGS " $flag"
15851 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15852 >  (: CFLAGS="$CFLAGS") 2>&5
15853 >  ac_status=$?
15854 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15855 >  test $ac_status = 0; }
15856 >     ;;
15857 > esac
15858 >
15859 > else
15860 >
15861 >  CFLAGS=$flag
15862 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15863 >  (: CFLAGS="$CFLAGS") 2>&5
15864 >  ac_status=$?
15865 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866 >  test $ac_status = 0; }
15867 >
15868 > fi
15869 >
15870 > else
15871 >  :
15872 > fi
15873 >
15874 > done
15875 >
15876 >
15877 >
15878 >
15879 >
15880 > for flag in -Woverride-init; do
15881 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15882 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15883 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15884 > if eval \${$as_CACHEVAR+:} false; then :
15885 >  $as_echo_n "(cached) " >&6
15886 > else
15887 >
15888 >  ax_check_save_flags=$CFLAGS
15889 >  CFLAGS="$CFLAGS  $flag"
15890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891   /* end confdefs.h.  */
15892 < #include <sys/devpoll.h>
15892 >
15893   int
15894   main ()
15895   {
# Line 14263 | Line 15899 | main ()
15899   }
15900   _ACEOF
15901   if ac_fn_c_try_compile "$LINENO"; then :
15902 <  is_devpoll_mechanism_available="yes"
15902 >  eval "$as_CACHEVAR=yes"
15903   else
15904 <  is_devpoll_mechanism_available="no"
15904 >  eval "$as_CACHEVAR=no"
15905   fi
15906   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
15907 >  CFLAGS=$ax_check_save_flags
15908 > fi
15909 > eval ac_res=\$$as_CACHEVAR
15910 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15911 > $as_echo "$ac_res" >&6; }
15912 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15913  
15914 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
15914 > if ${CFLAGS+:} false; then :
15915  
15916 <  fi
15917 <      iopoll_mechanism_rtsigio=4
15916 >  case " $CFLAGS " in #(
15917 >  *" $flag "*) :
15918 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15919 >  (: CFLAGS already contains $flag) 2>&5
15920 >  ac_status=$?
15921 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15922 >  test $ac_status = 0; } ;; #(
15923 >  *) :
15924  
15925 < cat >>confdefs.h <<_ACEOF
15926 < #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
15927 < _ACEOF
15925 >     as_fn_append CFLAGS " $flag"
15926 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15927 >  (: CFLAGS="$CFLAGS") 2>&5
15928 >  ac_status=$?
15929 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930 >  test $ac_status = 0; }
15931 >     ;;
15932 > esac
15933  
14282  if test "$cross_compiling" = yes; then :
14283  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14285 as_fn_error $? "cannot run test program while cross compiling
14286 See \`config.log' for more details" "$LINENO" 5; }
15934   else
15935 +
15936 +  CFLAGS=$flag
15937 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15938 +  (: CFLAGS="$CFLAGS") 2>&5
15939 +  ac_status=$?
15940 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941 +  test $ac_status = 0; }
15942 +
15943 + fi
15944 +
15945 + else
15946 +  :
15947 + fi
15948 +
15949 + done
15950 +
15951 +
15952 +
15953 +
15954 +
15955 + for flag in -Wpointer-arith; do
15956 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15957 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15958 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15959 + if eval \${$as_CACHEVAR+:} false; then :
15960 +  $as_echo_n "(cached) " >&6
15961 + else
15962 +
15963 +  ax_check_save_flags=$CFLAGS
15964 +  CFLAGS="$CFLAGS  $flag"
15965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966   /* end confdefs.h.  */
15967  
14291 #define _GNU_SOURCE
14292 #include <fcntl.h>
14293 static unsigned int have_f_setsig = 0;
14294
15968   int
15969   main ()
15970   {
15971  
14299 #ifdef F_SETSIG
14300  have_f_setsig = 1;
14301 #endif
14302  return have_f_setsig == 0;
14303
15972    ;
15973    return 0;
15974   }
15975   _ACEOF
15976 < if ac_fn_c_try_run "$LINENO"; then :
15977 <  is_rtsigio_mechanism_available="yes"
15976 > if ac_fn_c_try_compile "$LINENO"; then :
15977 >  eval "$as_CACHEVAR=yes"
15978   else
15979 <  is_rtsigio_mechanism_available="no"
15979 >  eval "$as_CACHEVAR=no"
15980   fi
15981 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15982 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
15981 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 >  CFLAGS=$ax_check_save_flags
15983   fi
15984 + eval ac_res=\$$as_CACHEVAR
15985 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15986 + $as_echo "$ac_res" >&6; }
15987 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15988 +
15989 + if ${CFLAGS+:} false; then :
15990 +
15991 +  case " $CFLAGS " in #(
15992 +  *" $flag "*) :
15993 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15994 +  (: CFLAGS already contains $flag) 2>&5
15995 +  ac_status=$?
15996 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 +  test $ac_status = 0; } ;; #(
15998 +  *) :
15999 +
16000 +     as_fn_append CFLAGS " $flag"
16001 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16002 +  (: CFLAGS="$CFLAGS") 2>&5
16003 +  ac_status=$?
16004 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 +  test $ac_status = 0; }
16006 +     ;;
16007 + esac
16008 +
16009 + else
16010 +
16011 +  CFLAGS=$flag
16012 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16013 +  (: CFLAGS="$CFLAGS") 2>&5
16014 +  ac_status=$?
16015 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16016 +  test $ac_status = 0; }
16017 +
16018 + fi
16019 +
16020 + else
16021 +  :
16022 + fi
16023 +
16024 + done
16025 +
16026 +
16027  
14317      iopoll_mechanism_poll=5
16028  
14319 cat >>confdefs.h <<_ACEOF
14320 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14321 _ACEOF
16029  
16030 + for flag in -Wredundant-decls; do
16031 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16032 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16033 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16034 + if eval \${$as_CACHEVAR+:} false; then :
16035 +  $as_echo_n "(cached) " >&6
16036 + else
16037 +
16038 +  ax_check_save_flags=$CFLAGS
16039 +  CFLAGS="$CFLAGS  $flag"
16040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041   /* end confdefs.h.  */
14325 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14327 #define poll innocuous_poll
16042  
16043 < /* System header to define __stub macros and hopefully few prototypes,
16044 <    which can conflict with char poll (); below.
16045 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <    <limits.h> exists even on freestanding compilers.  */
16043 > int
16044 > main ()
16045 > {
16046  
16047 < #ifdef __STDC__
16048 < # include <limits.h>
16049 < #else
16050 < # include <assert.h>
16051 < #endif
16047 >  ;
16048 >  return 0;
16049 > }
16050 > _ACEOF
16051 > if ac_fn_c_try_compile "$LINENO"; then :
16052 >  eval "$as_CACHEVAR=yes"
16053 > else
16054 >  eval "$as_CACHEVAR=no"
16055 > fi
16056 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 >  CFLAGS=$ax_check_save_flags
16058 > fi
16059 > eval ac_res=\$$as_CACHEVAR
16060 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16061 > $as_echo "$ac_res" >&6; }
16062 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16063  
16064 < #undef poll
16064 > if ${CFLAGS+:} false; then :
16065  
16066 < /* Override any GCC internal prototype to avoid an error.
16067 <   Use char because int might match the return type of a GCC
16068 <   builtin and then its argument prototype would still apply.  */
16069 < #ifdef __cplusplus
16070 < extern "C"
16071 < #endif
16072 < char poll ();
16073 < /* The GNU C library defines this for functions which it implements
16074 <    to always fail with ENOSYS.  Some functions are actually named
16075 <    something starting with __ and the normal name is an alias.  */
16076 < #if defined __stub_poll || defined __stub___poll
16077 < choke me
16078 < #endif
16066 >  case " $CFLAGS " in #(
16067 >  *" $flag "*) :
16068 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16069 >  (: CFLAGS already contains $flag) 2>&5
16070 >  ac_status=$?
16071 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16072 >  test $ac_status = 0; } ;; #(
16073 >  *) :
16074 >
16075 >     as_fn_append CFLAGS " $flag"
16076 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16077 >  (: CFLAGS="$CFLAGS") 2>&5
16078 >  ac_status=$?
16079 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 >  test $ac_status = 0; }
16081 >     ;;
16082 > esac
16083 >
16084 > else
16085 >
16086 >  CFLAGS=$flag
16087 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16088 >  (: CFLAGS="$CFLAGS") 2>&5
16089 >  ac_status=$?
16090 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16091 >  test $ac_status = 0; }
16092 >
16093 > fi
16094 >
16095 > else
16096 >  :
16097 > fi
16098 >
16099 > done
16100 >
16101 >
16102 >
16103 >
16104 >
16105 > for flag in -Wshadow; do
16106 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16107 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16108 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16109 > if eval \${$as_CACHEVAR+:} false; then :
16110 >  $as_echo_n "(cached) " >&6
16111 > else
16112 >
16113 >  ax_check_save_flags=$CFLAGS
16114 >  CFLAGS="$CFLAGS  $flag"
16115 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 > /* end confdefs.h.  */
16117  
16118   int
16119   main ()
16120   {
16121 < return poll ();
16121 >
16122    ;
16123    return 0;
16124   }
16125   _ACEOF
16126 < if ac_fn_c_try_link "$LINENO"; then :
16127 <  is_poll_mechanism_available="yes"
16126 > if ac_fn_c_try_compile "$LINENO"; then :
16127 >  eval "$as_CACHEVAR=yes"
16128   else
16129 <  is_poll_mechanism_available="no"
16129 >  eval "$as_CACHEVAR=no"
16130   fi
16131 < rm -f core conftest.err conftest.$ac_objext \
16132 <    conftest$ac_exeext conftest.$ac_ext
16133 <      iopoll_mechanism_select=6
16131 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 >  CFLAGS=$ax_check_save_flags
16133 > fi
16134 > eval ac_res=\$$as_CACHEVAR
16135 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16136 > $as_echo "$ac_res" >&6; }
16137 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16138  
16139 < cat >>confdefs.h <<_ACEOF
16140 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16141 < _ACEOF
16139 > if ${CFLAGS+:} false; then :
16140 >
16141 >  case " $CFLAGS " in #(
16142 >  *" $flag "*) :
16143 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16144 >  (: CFLAGS already contains $flag) 2>&5
16145 >  ac_status=$?
16146 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 >  test $ac_status = 0; } ;; #(
16148 >  *) :
16149 >
16150 >     as_fn_append CFLAGS " $flag"
16151 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16152 >  (: CFLAGS="$CFLAGS") 2>&5
16153 >  ac_status=$?
16154 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16155 >  test $ac_status = 0; }
16156 >     ;;
16157 > esac
16158 >
16159 > else
16160 >
16161 >  CFLAGS=$flag
16162 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16163 >  (: CFLAGS="$CFLAGS") 2>&5
16164 >  ac_status=$?
16165 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166 >  test $ac_status = 0; }
16167 >
16168 > fi
16169 >
16170 > else
16171 >  :
16172 > fi
16173 >
16174 > done
16175 >
16176 >
16177 >
16178 >
16179 >
16180 > for flag in -Wsign-compare; do
16181 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16182 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16183 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16184 > if eval \${$as_CACHEVAR+:} false; then :
16185 >  $as_echo_n "(cached) " >&6
16186 > else
16187  
16188 +  ax_check_save_flags=$CFLAGS
16189 +  CFLAGS="$CFLAGS  $flag"
16190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191   /* end confdefs.h.  */
14379 /* Define select to an innocuous variant, in case <limits.h> declares select.
14380   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14381 #define select innocuous_select
16192  
16193 < /* System header to define __stub macros and hopefully few prototypes,
16194 <    which can conflict with char select (); below.
16195 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14386 <    <limits.h> exists even on freestanding compilers.  */
16193 > int
16194 > main ()
16195 > {
16196  
16197 < #ifdef __STDC__
16198 < # include <limits.h>
16199 < #else
16200 < # include <assert.h>
16201 < #endif
16197 >  ;
16198 >  return 0;
16199 > }
16200 > _ACEOF
16201 > if ac_fn_c_try_compile "$LINENO"; then :
16202 >  eval "$as_CACHEVAR=yes"
16203 > else
16204 >  eval "$as_CACHEVAR=no"
16205 > fi
16206 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 >  CFLAGS=$ax_check_save_flags
16208 > fi
16209 > eval ac_res=\$$as_CACHEVAR
16210 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16211 > $as_echo "$ac_res" >&6; }
16212 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16213  
16214 < #undef select
16214 > if ${CFLAGS+:} false; then :
16215  
16216 < /* Override any GCC internal prototype to avoid an error.
16217 <   Use char because int might match the return type of a GCC
16218 <   builtin and then its argument prototype would still apply.  */
16219 < #ifdef __cplusplus
16220 < extern "C"
16221 < #endif
16222 < char select ();
16223 < /* The GNU C library defines this for functions which it implements
16224 <    to always fail with ENOSYS.  Some functions are actually named
16225 <    something starting with __ and the normal name is an alias.  */
16226 < #if defined __stub_select || defined __stub___select
16227 < choke me
16228 < #endif
16216 >  case " $CFLAGS " in #(
16217 >  *" $flag "*) :
16218 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16219 >  (: CFLAGS already contains $flag) 2>&5
16220 >  ac_status=$?
16221 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222 >  test $ac_status = 0; } ;; #(
16223 >  *) :
16224 >
16225 >     as_fn_append CFLAGS " $flag"
16226 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16227 >  (: CFLAGS="$CFLAGS") 2>&5
16228 >  ac_status=$?
16229 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230 >  test $ac_status = 0; }
16231 >     ;;
16232 > esac
16233 >
16234 > else
16235 >
16236 >  CFLAGS=$flag
16237 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16238 >  (: CFLAGS="$CFLAGS") 2>&5
16239 >  ac_status=$?
16240 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241 >  test $ac_status = 0; }
16242 >
16243 > fi
16244 >
16245 > else
16246 >  :
16247 > fi
16248 >
16249 > done
16250 >
16251 >
16252 >
16253 >
16254 >
16255 > for flag in -Wtype-limits; do
16256 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16257 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16258 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16259 > if eval \${$as_CACHEVAR+:} false; then :
16260 >  $as_echo_n "(cached) " >&6
16261 > else
16262 >
16263 >  ax_check_save_flags=$CFLAGS
16264 >  CFLAGS="$CFLAGS  $flag"
16265 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 > /* end confdefs.h.  */
16267  
16268   int
16269   main ()
16270   {
16271 < return select ();
16271 >
16272    ;
16273    return 0;
16274   }
16275   _ACEOF
16276 < if ac_fn_c_try_link "$LINENO"; then :
16277 <  is_select_mechanism_available="yes"
16276 > if ac_fn_c_try_compile "$LINENO"; then :
16277 >  eval "$as_CACHEVAR=yes"
16278   else
16279 <  is_select_mechanism_available="no"
16279 >  eval "$as_CACHEVAR=no"
16280   fi
16281 < rm -f core conftest.err conftest.$ac_objext \
16282 <    conftest$ac_exeext conftest.$ac_ext
16283 <      optimal_iopoll_mechanism="none"
16284 <  for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
16285 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16286 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16287 <      optimal_iopoll_mechanism="$mechanism"
14430 <      break
14431 <    fi
14432 <  done
14433 <      if test "$desired_iopoll_mechanism" = "none" ; then
14434 <    if test "$optimal_iopoll_mechanism" = "none" ; then
14435 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14436 < $as_echo "none" >&6; }
14437 <      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14438 <    else
14439 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14440 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14441 < $as_echo "$selected_iopoll_mechanism" >&6; }
14442 <    fi
14443 <  else
14444 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14445 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14446 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
14447 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14448 < $as_echo "$selected_iopoll_mechanism" >&6; }
14449 <    else
14450 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14451 < $as_echo "none" >&6; }
14452 <      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14453 <    fi
14454 <  fi
14455 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
16281 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 >  CFLAGS=$ax_check_save_flags
16283 > fi
16284 > eval ac_res=\$$as_CACHEVAR
16285 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16286 > $as_echo "$ac_res" >&6; }
16287 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16288  
16289 < cat >>confdefs.h <<_ACEOF
16290 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
16291 < _ACEOF
16289 > if ${CFLAGS+:} false; then :
16290 >
16291 >  case " $CFLAGS " in #(
16292 >  *" $flag "*) :
16293 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16294 >  (: CFLAGS already contains $flag) 2>&5
16295 >  ac_status=$?
16296 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 >  test $ac_status = 0; } ;; #(
16298 >  *) :
16299  
16300 +     as_fn_append CFLAGS " $flag"
16301 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16302 +  (: CFLAGS="$CFLAGS") 2>&5
16303 +  ac_status=$?
16304 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16305 +  test $ac_status = 0; }
16306 +     ;;
16307 + esac
16308  
16309 + else
16310  
16311 +  CFLAGS=$flag
16312 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16313 +  (: CFLAGS="$CFLAGS") 2>&5
16314 +  ac_status=$?
16315 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 +  test $ac_status = 0; }
16317 +
16318 + fi
16319  
14464 # Check whether --with-nicklen was given.
14465 if test "${with_nicklen+set}" = set; then :
14466  withval=$with_nicklen; nicklen="$withval"
16320   else
16321 <  nicklen="9"
16321 >  :
16322   fi
16323  
16324 + done
16325  
16326 < cat >>confdefs.h <<_ACEOF
16327 < #define NICKLEN ($nicklen+1)
16326 >
16327 >
16328 >
16329 >
16330 > for flag in -Wundef; do
16331 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16332 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16333 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16334 > if eval \${$as_CACHEVAR+:} false; then :
16335 >  $as_echo_n "(cached) " >&6
16336 > else
16337 >
16338 >  ax_check_save_flags=$CFLAGS
16339 >  CFLAGS="$CFLAGS  $flag"
16340 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 > /* end confdefs.h.  */
16342 >
16343 > int
16344 > main ()
16345 > {
16346 >
16347 >  ;
16348 >  return 0;
16349 > }
16350   _ACEOF
16351 + if ac_fn_c_try_compile "$LINENO"; then :
16352 +  eval "$as_CACHEVAR=yes"
16353 + else
16354 +  eval "$as_CACHEVAR=no"
16355 + fi
16356 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 +  CFLAGS=$ax_check_save_flags
16358 + fi
16359 + eval ac_res=\$$as_CACHEVAR
16360 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16361 + $as_echo "$ac_res" >&6; }
16362 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16363 +
16364 + if ${CFLAGS+:} false; then :
16365 +
16366 +  case " $CFLAGS " in #(
16367 +  *" $flag "*) :
16368 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16369 +  (: CFLAGS already contains $flag) 2>&5
16370 +  ac_status=$?
16371 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16372 +  test $ac_status = 0; } ;; #(
16373 +  *) :
16374 +
16375 +     as_fn_append CFLAGS " $flag"
16376 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16377 +  (: CFLAGS="$CFLAGS") 2>&5
16378 +  ac_status=$?
16379 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16380 +  test $ac_status = 0; }
16381 +     ;;
16382 + esac
16383  
16384 + else
16385  
16386 +  CFLAGS=$flag
16387 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16388 +  (: CFLAGS="$CFLAGS") 2>&5
16389 +  ac_status=$?
16390 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16391 +  test $ac_status = 0; }
16392  
16393 + fi
16394  
14479 # Check whether --with-topiclen was given.
14480 if test "${with_topiclen+set}" = set; then :
14481  withval=$with_topiclen; topiclen="$withval"
16395   else
16396 <  topiclen="160"
16396 >  :
16397   fi
16398  
16399 + done
16400  
16401 < cat >>confdefs.h <<_ACEOF
16402 < #define TOPICLEN ($topiclen)
16401 >
16402 >
16403 >
16404 >
16405 > for flag in -Wuninitialized; do
16406 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16407 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16408 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16409 > if eval \${$as_CACHEVAR+:} false; then :
16410 >  $as_echo_n "(cached) " >&6
16411 > else
16412 >
16413 >  ax_check_save_flags=$CFLAGS
16414 >  CFLAGS="$CFLAGS  $flag"
16415 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 > /* end confdefs.h.  */
16417 >
16418 > int
16419 > main ()
16420 > {
16421 >
16422 >  ;
16423 >  return 0;
16424 > }
16425   _ACEOF
16426 + if ac_fn_c_try_compile "$LINENO"; then :
16427 +  eval "$as_CACHEVAR=yes"
16428 + else
16429 +  eval "$as_CACHEVAR=no"
16430 + fi
16431 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 +  CFLAGS=$ax_check_save_flags
16433 + fi
16434 + eval ac_res=\$$as_CACHEVAR
16435 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16436 + $as_echo "$ac_res" >&6; }
16437 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16438 +
16439 + if ${CFLAGS+:} false; then :
16440 +
16441 +  case " $CFLAGS " in #(
16442 +  *" $flag "*) :
16443 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16444 +  (: CFLAGS already contains $flag) 2>&5
16445 +  ac_status=$?
16446 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447 +  test $ac_status = 0; } ;; #(
16448 +  *) :
16449 +
16450 +     as_fn_append CFLAGS " $flag"
16451 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16452 +  (: CFLAGS="$CFLAGS") 2>&5
16453 +  ac_status=$?
16454 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16455 +  test $ac_status = 0; }
16456 +     ;;
16457 + esac
16458  
16459 + else
16460  
16461 +  CFLAGS=$flag
16462 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16463 +  (: CFLAGS="$CFLAGS") 2>&5
16464 +  ac_status=$?
16465 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 +  test $ac_status = 0; }
16467  
16468 + fi
16469  
14494 # Check whether --with-syslog-facility was given.
14495 if test "${with_syslog_facility+set}" = set; then :
14496  withval=$with_syslog_facility; syslog_facility="$withval"
16470   else
16471 <  syslog_facility="LOG_LOCAL4"
16471 >  :
16472   fi
16473  
16474 + done
16475  
14502 cat >>confdefs.h <<_ACEOF
14503 #define LOG_FACILITY $syslog_facility
14504 _ACEOF
16476  
16477  
16478  
16479 <  # Check whether --enable-efnet was given.
16480 < if test "${enable_efnet+set}" = set; then :
16481 <  enableval=$enable_efnet; efnet="$enableval"
16479 >
16480 > for flag in -Wwrite-strings; do
16481 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16482 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16483 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16484 > if eval \${$as_CACHEVAR+:} false; then :
16485 >  $as_echo_n "(cached) " >&6
16486 > else
16487 >
16488 >  ax_check_save_flags=$CFLAGS
16489 >  CFLAGS="$CFLAGS  $flag"
16490 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 > /* end confdefs.h.  */
16492 >
16493 > int
16494 > main ()
16495 > {
16496 >
16497 >  ;
16498 >  return 0;
16499 > }
16500 > _ACEOF
16501 > if ac_fn_c_try_compile "$LINENO"; then :
16502 >  eval "$as_CACHEVAR=yes"
16503   else
16504 <  efnet="no"
16504 >  eval "$as_CACHEVAR=no"
16505   fi
16506 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 +  CFLAGS=$ax_check_save_flags
16508 + fi
16509 + eval ac_res=\$$as_CACHEVAR
16510 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16511 + $as_echo "$ac_res" >&6; }
16512 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16513  
16514 <  if test "$efnet" = "yes" ; then
14516 <                use_efnet="yes"
16514 > if ${CFLAGS+:} false; then :
16515  
16516 < $as_echo "#define EFNET 1" >>confdefs.h
16516 >  case " $CFLAGS " in #(
16517 >  *" $flag "*) :
16518 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16519 >  (: CFLAGS already contains $flag) 2>&5
16520 >  ac_status=$?
16521 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 >  test $ac_status = 0; } ;; #(
16523 >  *) :
16524 >
16525 >     as_fn_append CFLAGS " $flag"
16526 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16527 >  (: CFLAGS="$CFLAGS") 2>&5
16528 >  ac_status=$?
16529 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 >  test $ac_status = 0; }
16531 >     ;;
16532 > esac
16533 >
16534 > else
16535 >
16536 >  CFLAGS=$flag
16537 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16538 >  (: CFLAGS="$CFLAGS") 2>&5
16539 >  ac_status=$?
16540 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16541 >  test $ac_status = 0; }
16542 >
16543 > fi
16544  
14520        else
14521                use_efnet="no"
14522  fi
14523   if test "$use_efnet" = "yes"; then
14524  EFNET_TRUE=
14525  EFNET_FALSE='#'
16545   else
16546 <  EFNET_TRUE='#'
14528 <  EFNET_FALSE=
16546 >  :
16547   fi
16548  
16549 + done
16550 +
16551 +
16552 + fi
16553  
16554  
16555 <  # Check whether --enable-halfops was given.
16556 < if test "${enable_halfops+set}" = set; then :
16557 <  enableval=$enable_halfops; halfops="$enableval"
16555 >  # Check whether --enable-efence was given.
16556 > if test "${enable_efence+set}" = set; then :
16557 >  enableval=$enable_efence; efence="$enableval"
16558   else
16559 <  halfops="no"
16559 >  efence="no"
16560   fi
16561  
14540  if test "$halfops" = "yes" ; then
16562  
16563 < $as_echo "#define HALFOPS 1" >>confdefs.h
16563 >  if test "$efence" = "yes"; then :
16564 >
16565 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16566 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16567 > if ${ac_cv_search_EF_Print+:} false; then :
16568 >  $as_echo_n "(cached) " >&6
16569 > else
16570 >  ac_func_search_save_LIBS=$LIBS
16571 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 > /* end confdefs.h.  */
16573  
16574 + /* Override any GCC internal prototype to avoid an error.
16575 +   Use char because int might match the return type of a GCC
16576 +   builtin and then its argument prototype would still apply.  */
16577 + #ifdef __cplusplus
16578 + extern "C"
16579 + #endif
16580 + char EF_Print ();
16581 + int
16582 + main ()
16583 + {
16584 + return EF_Print ();
16585 +  ;
16586 +  return 0;
16587 + }
16588 + _ACEOF
16589 + for ac_lib in '' efence; do
16590 +  if test -z "$ac_lib"; then
16591 +    ac_res="none required"
16592 +  else
16593 +    ac_res=-l$ac_lib
16594 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16595    fi
16596 +  if ac_fn_c_try_link "$LINENO"; then :
16597 +  ac_cv_search_EF_Print=$ac_res
16598 + fi
16599 + rm -f core conftest.err conftest.$ac_objext \
16600 +    conftest$ac_exeext
16601 +  if ${ac_cv_search_EF_Print+:} false; then :
16602 +  break
16603 + fi
16604 + done
16605 + if ${ac_cv_search_EF_Print+:} false; then :
16606  
16607 + else
16608 +  ac_cv_search_EF_Print=no
16609 + fi
16610 + rm conftest.$ac_ext
16611 + LIBS=$ac_func_search_save_LIBS
16612 + fi
16613 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16614 + $as_echo "$ac_cv_search_EF_Print" >&6; }
16615 + ac_res=$ac_cv_search_EF_Print
16616 + if test "$ac_res" != no; then :
16617 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16618  
14547  # Check whether --enable-debugging was given.
14548 if test "${enable_debugging+set}" = set; then :
14549  enableval=$enable_debugging; debugging="$enableval"
16619   else
16620 <  debugging="no"
16620 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16621 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16622 > as_fn_error $? "Electric Fence 'efence' library not found
16623 > See \`config.log' for more details" "$LINENO" 5; }
16624   fi
16625  
14554  if test "$debugging" = "yes" ; then
16626  
16627 < $as_echo "#define DEBUG 1" >>confdefs.h
16627 > fi
16628  
16629 <    CFLAGS="-Wall -g -O0"
16629 >
16630 >  # Check whether --enable-mempool was given.
16631 > if test "${enable_mempool+set}" = set; then :
16632 >  enableval=$enable_mempool; mempool=$enableval
16633 > else
16634 >  mempool="yes"
16635 > fi
16636 >
16637 >
16638 >  if test "$mempool" = "no"; then :
16639 >
16640 >
16641 > $as_echo "#define MEMPOOL_DISABLED 1" >>confdefs.h
16642 >
16643 >
16644 > fi
16645 >
16646 >
16647 > # Check whether --enable-openssl was given.
16648 > if test "${enable_openssl+set}" = set; then :
16649 >  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16650 > else
16651 >   cf_enable_openssl="auto"
16652 > fi
16653 >
16654 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16655 > $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16656 > if test "$cf_enable_openssl" != "no"; then
16657 >  cf_openssl_basedir=""
16658 >  if test "$cf_enable_openssl" != "auto" &&
16659 >     test "$cf_enable_openssl" != "yes"; then
16660 >          cf_openssl_basedir="${cf_enable_openssl}"
16661    else
16662 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16663 +                /opt /opt/openssl /usr/local/openssl; do
16664 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
16665 +        cf_openssl_basedir="${dirs}"
16666 +        break
16667 +      fi
16668 +    done
16669 +    unset dirs
16670 +  fi
16671  
16672 < $as_echo "#define NDEBUG 1" >>confdefs.h
16672 >    if test ! -z "$cf_openssl_basedir"; then
16673 >    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16674 >      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16675 >      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16676 >    else
16677 >                  cf_openssl_basedir=""
16678 >    fi
16679 >  else
16680 >                            if test -f "/usr/include/openssl/opensslv.h"; then
16681 >      cf_openssl_basedir="/usr"
16682 >    fi
16683 >  fi
16684  
16685 +      if test ! -z "$cf_openssl_basedir"; then
16686 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16687 + $as_echo "$cf_openssl_basedir" >&6; }
16688 +    cf_enable_openssl="yes"
16689 +  else
16690 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16691 + $as_echo "not found. Please check your path." >&6; }
16692 +    cf_enable_openssl="no"
16693    fi
16694 +  unset cf_openssl_basedir
16695 + else
16696 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16697 + $as_echo "disabled" >&6; }
16698 + fi
16699  
16700 + if test "$cf_enable_openssl" != "no"; then :
16701 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16702 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16703 +  if test "$cross_compiling" = yes; then :
16704 +  cf_openssl_version_ok=no
16705 + else
16706 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 + /* end confdefs.h.  */
16708  
16709 <  # Check whether --enable-warnings was given.
16710 < if test "${enable_warnings+set}" = set; then :
16711 <  enableval=$enable_warnings; warnings="$enableval"
16709 >
16710 >    #include <openssl/opensslv.h>
16711 >    #include <stdlib.h>
16712 > int
16713 > main ()
16714 > {
16715 > exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16716 >  ;
16717 >  return 0;
16718 > }
16719 > _ACEOF
16720 > if ac_fn_c_try_run "$LINENO"; then :
16721 >  cf_openssl_version_ok=yes
16722   else
16723 <  warnings="no"
16723 >  cf_openssl_version_ok=no
16724 > fi
16725 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16727   fi
16728  
14573  if test "$warnings" = "yes" ; then
14574    CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14575  fi
16729  
16730 +  if test "$cf_openssl_version_ok" = "yes"; then :
16731 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16732 + $as_echo "found" >&6; }
16733  
16734 <  for ac_header in syslog.h sys/syslog.h
16735 < do :
16736 <  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16737 < ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16738 < if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16734 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16735 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16736 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16737 >  $as_echo_n "(cached) " >&6
16738 > else
16739 >  ac_check_lib_save_LIBS=$LIBS
16740 > LIBS="-lcrypto  $LIBS"
16741 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 > /* end confdefs.h.  */
16743 >
16744 > /* Override any GCC internal prototype to avoid an error.
16745 >   Use char because int might match the return type of a GCC
16746 >   builtin and then its argument prototype would still apply.  */
16747 > #ifdef __cplusplus
16748 > extern "C"
16749 > #endif
16750 > char RSA_free ();
16751 > int
16752 > main ()
16753 > {
16754 > return RSA_free ();
16755 >  ;
16756 >  return 0;
16757 > }
16758 > _ACEOF
16759 > if ac_fn_c_try_link "$LINENO"; then :
16760 >  ac_cv_lib_crypto_RSA_free=yes
16761 > else
16762 >  ac_cv_lib_crypto_RSA_free=no
16763 > fi
16764 > rm -f core conftest.err conftest.$ac_objext \
16765 >    conftest$ac_exeext conftest.$ac_ext
16766 > LIBS=$ac_check_lib_save_LIBS
16767 > fi
16768 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16769 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16770 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16771    cat >>confdefs.h <<_ACEOF
16772 < #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 > #define HAVE_LIBCRYPTO 1
16773   _ACEOF
16774  
16775 +  LIBS="-lcrypto $LIBS"
16776 +
16777   fi
16778  
16779 < done
16779 >    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16780 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16781 > $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16782 > if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16783 >  $as_echo_n "(cached) " >&6
16784 > else
16785 >  ac_check_lib_save_LIBS=$LIBS
16786 > LIBS="-lssl  $LIBS"
16787 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 > /* end confdefs.h.  */
16789 >
16790 > /* Override any GCC internal prototype to avoid an error.
16791 >   Use char because int might match the return type of a GCC
16792 >   builtin and then its argument prototype would still apply.  */
16793 > #ifdef __cplusplus
16794 > extern "C"
16795 > #endif
16796 > char SSL_connect ();
16797 > int
16798 > main ()
16799 > {
16800 > return SSL_connect ();
16801 >  ;
16802 >  return 0;
16803 > }
16804 > _ACEOF
16805 > if ac_fn_c_try_link "$LINENO"; then :
16806 >  ac_cv_lib_ssl_SSL_connect=yes
16807 > else
16808 >  ac_cv_lib_ssl_SSL_connect=no
16809 > fi
16810 > rm -f core conftest.err conftest.$ac_objext \
16811 >    conftest$ac_exeext conftest.$ac_ext
16812 > LIBS=$ac_check_lib_save_LIBS
16813 > fi
16814 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16815 > $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16816 > if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16817 >  cat >>confdefs.h <<_ACEOF
16818 > #define HAVE_LIBSSL 1
16819 > _ACEOF
16820 >
16821 >  LIBS="-lssl $LIBS"
16822  
14591  # Check whether --enable-syslog was given.
14592 if test "${enable_syslog+set}" = set; then :
14593  enableval=$enable_syslog; syslog="$enableval"
14594 else
14595  syslog="no"
16823   fi
16824  
16825 <  if test "$enableval" != "no" ; then
16826 <    for option in $enableval ; do
16827 <      case "$option" in
16828 <        users)
16829 < $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
16830 < ;;
16831 <        oper)
16832 < $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
16833 < ;;
16834 <        yes) : ;;
16835 <        *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
16836 <      esac
16837 <    done
16825 > fi
16826 >
16827 > else
16828 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16829 > $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16830 >    cf_enable_openssl="no"
16831 > fi
16832 > fi
16833 >
16834 >
16835 > # Check whether --enable-gnutls was given.
16836 > if test "${enable_gnutls+set}" = set; then :
16837 >  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16838 > else
16839 >   cf_enable_gnutls="auto"
16840 > fi
16841 >
16842 >
16843 > if test "$cf_enable_openssl" != "auto" &&
16844 >   test "$cf_enable_openssl" != "yes"; then
16845 >  if test "$cf_enable_gnutls" != "no"; then
16846 >
16847 >    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16848 > if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16849 >
16850 >      if test "$cross_compiling" = yes; then :
16851 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 > as_fn_error $? "cannot run test program while cross compiling
16854 > See \`config.log' for more details" "$LINENO" 5; }
16855 > else
16856 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 > /* end confdefs.h.  */
16858 >
16859 >
16860 >          #include <gnutls/gnutls.h>
16861 >          #include <stdlib.h>
16862 > int
16863 > main ()
16864 > {
16865 >
16866 >          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16867 >  ;
16868 >  return 0;
16869 > }
16870 > _ACEOF
16871 > if ac_fn_c_try_run "$LINENO"; then :
16872 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16873 > $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16874 > if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16875 >  $as_echo_n "(cached) " >&6
16876 > else
16877 >  ac_check_lib_save_LIBS=$LIBS
16878 > LIBS="-lgnutls  $LIBS"
16879 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 > /* end confdefs.h.  */
16881 >
16882 > /* Override any GCC internal prototype to avoid an error.
16883 >   Use char because int might match the return type of a GCC
16884 >   builtin and then its argument prototype would still apply.  */
16885 > #ifdef __cplusplus
16886 > extern "C"
16887 > #endif
16888 > char gnutls_init ();
16889 > int
16890 > main ()
16891 > {
16892 > return gnutls_init ();
16893 >  ;
16894 >  return 0;
16895 > }
16896 > _ACEOF
16897 > if ac_fn_c_try_link "$LINENO"; then :
16898 >  ac_cv_lib_gnutls_gnutls_init=yes
16899 > else
16900 >  ac_cv_lib_gnutls_gnutls_init=no
16901 > fi
16902 > rm -f core conftest.err conftest.$ac_objext \
16903 >    conftest$ac_exeext conftest.$ac_ext
16904 > LIBS=$ac_check_lib_save_LIBS
16905 > fi
16906 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16907 > $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16908 > if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16909 >  cat >>confdefs.h <<_ACEOF
16910 > #define HAVE_LIBGNUTLS 1
16911 > _ACEOF
16912 >
16913 >  LIBS="-lgnutls $LIBS"
16914 >
16915 > fi
16916 >
16917 > fi
16918 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16919 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16920 > fi
16921 >
16922 > fi
16923  
16924 < $as_echo "#define USE_SYSLOG 1" >>confdefs.h
16924 >
16925 >
16926 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16927 > $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16928 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16929 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16930 > $as_echo "found" >&6; }
16931 > else
16932 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16933 > $as_echo "no - GnuTLS support disabled" >&6; }
16934 > fi
16935  
16936    fi
16937 + fi
16938  
16939  
16940  
# Line 14700 | Line 17023 | _ACEOF
17023    test "$exec_prefix_NONE" && exec_prefix=NONE
17024  
17025  
17026 < 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"
17026 > 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"
17027  
17028  
17029   cat >confcache <<\_ACEOF
# Line 14812 | Line 17135 | LIBOBJS=$ac_libobjs
17135   LTLIBOBJS=$ac_ltlibobjs
17136  
17137  
17138 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17139 + $as_echo_n "checking that generated files are newer than configure... " >&6; }
17140 +   if test -n "$am_sleep_pid"; then
17141 +     # Hide warnings about reused PIDs.
17142 +     wait $am_sleep_pid 2>/dev/null
17143 +   fi
17144 +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17145 + $as_echo "done" >&6; }
17146   if test -n "$EXEEXT"; then
17147    am__EXEEXT_TRUE=
17148    am__EXEEXT_FALSE='#'
# Line 14858 | Line 17189 | LT_CONFIG_H=config.h
17189  
17190  
17191  
14861 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14862  as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14864 fi
14865 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14866  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14868 fi
14869 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14870  as_fn_error $? "conditional \"EFNET\" was never defined.
14871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14872 fi
17192  
17193   : "${CONFIG_STATUS=./config.status}"
17194   ac_write_fail=0
# Line 15168 | Line 17487 | if (echo >conf$$.file) 2>/dev/null; then
17487      # ... but there are two gotchas:
17488      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17489      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17490 <    # In both cases, we have to default to `cp -p'.
17490 >    # In both cases, we have to default to `cp -pR'.
17491      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17492 <      as_ln_s='cp -p'
17492 >      as_ln_s='cp -pR'
17493    elif ln conf$$.file conf$$ 2>/dev/null; then
17494      as_ln_s=ln
17495    else
17496 <    as_ln_s='cp -p'
17496 >    as_ln_s='cp -pR'
17497    fi
17498   else
17499 <  as_ln_s='cp -p'
17499 >  as_ln_s='cp -pR'
17500   fi
17501   rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17502   rmdir conf$$.dir 2>/dev/null
# Line 15237 | Line 17556 | else
17556    as_mkdir_p=false
17557   fi
17558  
17559 < if test -x / >/dev/null 2>&1; then
17560 <  as_test_x='test -x'
17561 < else
17562 <  if ls -dL / >/dev/null 2>&1; then
17563 <    as_ls_L_option=L
17564 <  else
17565 <    as_ls_L_option=
17566 <  fi
17567 <  as_test_x='
17568 <    eval sh -c '\''
15250 <      if test -d "$1"; then
15251 <        test -d "$1/.";
15252 <      else
15253 <        case $1 in #(
15254 <        -*)set "./$1";;
15255 <        esac;
15256 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15257 <        ???[sx]*):;;*)false;;esac;fi
15258 <    '\'' sh
15259 <  '
15260 < fi
15261 < as_executable_p=$as_test_x
17559 >
17560 > # as_fn_executable_p FILE
17561 > # -----------------------
17562 > # Test if FILE is an executable regular file.
17563 > as_fn_executable_p ()
17564 > {
17565 >  test -f "$1" && test -x "$1"
17566 > } # as_fn_executable_p
17567 > as_test_x='test -x'
17568 > as_executable_p=as_fn_executable_p
17569  
17570   # Sed expression to map a string onto a valid CPP name.
17571   as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Line 15279 | Line 17586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17586   # report actual input values of CONFIG_FILES etc. instead of their
17587   # values after options handling.
17588   ac_log="
17589 < This file was extended by ircd-hybrid $as_me 8beta1, which was
17590 < generated by GNU Autoconf 2.68.  Invocation command line was
17589 > This file was extended by ircd-hybrid $as_me 8.2.23, which was
17590 > generated by GNU Autoconf 2.69.  Invocation command line was
17591  
17592    CONFIG_FILES    = $CONFIG_FILES
17593    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 15345 | Line 17652 | _ACEOF
17652   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17654   ac_cs_version="\\
17655 < ircd-hybrid config.status 8beta1
17656 < configured by $0, generated by GNU Autoconf 2.68,
17655 > ircd-hybrid config.status 8.2.23
17656 > configured by $0, generated by GNU Autoconf 2.69,
17657    with options \\"\$ac_cs_config\\"
17658  
17659 < Copyright (C) 2010 Free Software Foundation, Inc.
17659 > Copyright (C) 2012 Free Software Foundation, Inc.
17660   This config.status script is free software; the Free Software Foundation
17661   gives unlimited permission to copy, distribute and modify it."
17662  
# Line 15440 | Line 17747 | fi
17747   _ACEOF
17748   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17749   if \$ac_cs_recheck; then
17750 <  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17750 >  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17751    shift
17752    \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17753    CONFIG_SHELL='$SHELL'
# Line 15480 | Line 17787 | enable_static='`$ECHO "$enable_static" |
17787   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17788   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17789   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17790 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17791   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17792   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17793   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 15529 | Line 17837 | compiler='`$ECHO "$compiler" | $SED "$de
17837   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17838   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17839   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17840 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17841   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17842   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"`'
17843 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17844   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17845   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17846 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17847   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17848   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17849   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 15597 | Line 17908 | finish_cmds='`$ECHO "$finish_cmds" | $SE
17908   finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17909   hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17910   sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17911 < sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17911 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17912 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17913   hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17914   enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17915   enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
# Line 15648 | Line 17960 | CFLAGS \
17960   compiler \
17961   lt_cv_sys_global_symbol_pipe \
17962   lt_cv_sys_global_symbol_to_cdecl \
17963 + lt_cv_sys_global_symbol_to_import \
17964   lt_cv_sys_global_symbol_to_c_name_address \
17965   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17966 + lt_cv_nm_interface \
17967   nm_file_list_spec \
17968 + lt_cv_truncate_bin \
17969   lt_prog_compiler_no_builtin_flag \
17970   lt_prog_compiler_pic \
17971   lt_prog_compiler_wl \
# Line 15685 | Line 18000 | old_striplib \
18000   striplib; do
18001      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18002      *[\\\\\\\`\\"\\\$]*)
18003 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18003 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18004        ;;
18005      *)
18006        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15712 | Line 18027 | postinstall_cmds \
18027   postuninstall_cmds \
18028   finish_cmds \
18029   sys_lib_search_path_spec \
18030 < sys_lib_dlsearch_path_spec; do
18030 > configure_time_dlsearch_path \
18031 > configure_time_lt_sys_library_path; do
18032      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18033      *[\\\\\\\`\\"\\\$]*)
18034 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18034 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18035        ;;
18036      *)
18037        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 15724 | Line 18040 | sys_lib_dlsearch_path_spec; do
18040   done
18041  
18042   ac_aux_dir='$ac_aux_dir'
15727 xsi_shell='$xsi_shell'
15728 lt_shell_append='$lt_shell_append'
18043  
18044 < # See if we are running on zsh, and set the options which allow our
18044 > # See if we are running on zsh, and set the options that allow our
18045   # commands through without removal of \ escapes INIT.
18046 < if test -n "\${ZSH_VERSION+set}" ; then
18046 > if test -n "\${ZSH_VERSION+set}"; then
18047     setopt NO_GLOB_SUBST
18048   fi
18049  
18050  
18051      PACKAGE='$PACKAGE'
18052      VERSION='$VERSION'
15739    TIMESTAMP='$TIMESTAMP'
18053      RM='$RM'
18054      ofile='$ofile'
18055  
# Line 15755 | Line 18068 | do
18068      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18069      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18070      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15758    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15759    "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15760    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15761    "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
18071      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18072      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15764    "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
18073      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18074      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18075 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18076      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18077      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15769    "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15770    "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
18078      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18079  
18080    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
# Line 16365 | Line 18672 | $as_echo "$as_me: executing $ac_file com
18672  
18673    case $ac_file$ac_mode in
18674      "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18675 <  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18675 >  # Older Autoconf quotes --file arguments for eval, but not when files
18676    # are listed without --file.  Let's play safe and only enable the eval
18677    # if we detect the quoting.
18678    case $CONFIG_FILES in
# Line 16378 | Line 18685 | $as_echo "$as_me: executing $ac_file com
18685      # Strip MF so we end up with the name of the file.
18686      mf=`echo "$mf" | sed -e 's/:.*$//'`
18687      # Check whether this is an Automake generated Makefile or not.
18688 <    # We used to match only the files named `Makefile.in', but
18688 >    # We used to match only the files named 'Makefile.in', but
18689      # some people rename them; so instead we look at the file content.
18690      # Grep'ing the first line is not enough: some people post-process
18691      # each Makefile.in and add a new line on top of each file to say so.
# Line 16412 | Line 18719 | $as_echo X"$mf" |
18719        continue
18720      fi
18721      # Extract the definition of DEPDIR, am__include, and am__quote
18722 <    # from the Makefile without running `make'.
18722 >    # from the Makefile without running 'make'.
18723      DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18724      test -z "$DEPDIR" && continue
18725      am__include=`sed -n 's/^am__include = //p' < "$mf"`
18726 <    test -z "am__include" && continue
18726 >    test -z "$am__include" && continue
18727      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16421    # When using ansi2knr, U may be empty or an underscore; expand it
16422    U=`sed -n 's/^U = //p' < "$mf"`
18728      # Find all dependency output files, they are included files with
18729      # $(DEPDIR) in their names.  We invoke sed twice because it is the
18730      # simplest approach to changing $(DEPDIR) to its actual value in the
18731      # expansion.
18732      for file in `sed -n "
18733        s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18734 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18734 >         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18735        # Make sure the directory exists.
18736        test -f "$dirpart/$file" && continue
18737        fdir=`$as_dirname -- "$file" ||
# Line 16461 | Line 18766 | $as_echo X"$file" |
18766   ;;
18767      "libtool":C)
18768  
18769 <    # See if we are running on zsh, and set the options which allow our
18769 >    # See if we are running on zsh, and set the options that allow our
18770      # commands through without removal of \ escapes.
18771 <    if test -n "${ZSH_VERSION+set}" ; then
18771 >    if test -n "${ZSH_VERSION+set}"; then
18772        setopt NO_GLOB_SUBST
18773      fi
18774  
18775 <    cfgfile="${ofile}T"
18775 >    cfgfile=${ofile}T
18776      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18777      $RM "$cfgfile"
18778  
18779      cat <<_LT_EOF >> "$cfgfile"
18780   #! $SHELL
18781 <
16477 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16478 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18781 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18782   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18783   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18784 +
18785 + # Provide generalized library-building support services.
18786 + # Written by Gordon Matzigkeit, 1996
18787 +
18788 + # Copyright (C) 2014 Free Software Foundation, Inc.
18789 + # This is free software; see the source for copying conditions.  There is NO
18790 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18791 +
18792 + # GNU Libtool is free software; you can redistribute it and/or modify
18793 + # it under the terms of the GNU General Public License as published by
18794 + # the Free Software Foundation; either version 2 of of the License, or
18795 + # (at your option) any later version.
18796   #
18797 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18798 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18799 < #                 Foundation, Inc.
18800 < #   Written by Gordon Matzigkeit, 1996
16486 < #
16487 < #   This file is part of GNU Libtool.
16488 < #
16489 < # GNU Libtool is free software; you can redistribute it and/or
16490 < # modify it under the terms of the GNU General Public License as
16491 < # published by the Free Software Foundation; either version 2 of
16492 < # the License, or (at your option) any later version.
16493 < #
16494 < # As a special exception to the GNU General Public License,
16495 < # if you distribute this file as part of a program or library that
16496 < # is built using GNU Libtool, you may include this file under the
16497 < # same distribution terms that you use for the rest of that program.
18797 > # As a special exception to the GNU General Public License, if you
18798 > # distribute this file as part of a program or library that is built
18799 > # using GNU Libtool, you may include this file under the  same
18800 > # distribution terms that you use for the rest of that program.
18801   #
18802 < # GNU Libtool is distributed in the hope that it will be useful,
18803 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18802 > # GNU Libtool is distributed in the hope that it will be useful, but
18803 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18804   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18805   # GNU General Public License for more details.
18806   #
18807   # You should have received a copy of the GNU General Public License
18808 < # along with GNU Libtool; see the file COPYING.  If not, a copy
16506 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16507 < # obtained by writing to the Free Software Foundation, Inc.,
16508 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18808 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18809  
18810  
18811   # The names of the tagged configurations supported by this script.
18812 < available_tags=""
18812 > available_tags=''
18813 >
18814 > # Configured defaults for sys_lib_dlsearch_path munging.
18815 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18816  
18817   # ### BEGIN LIBTOOL CONFIG
18818  
# Line 16529 | Line 18832 | pic_mode=$pic_mode
18832   # Whether or not to optimize for fast installation.
18833   fast_install=$enable_fast_install
18834  
18835 + # Shared archive member basename,for filename based shared library versioning on AIX.
18836 + shared_archive_member_spec=$shared_archive_member_spec
18837 +
18838   # Shell to use when invoking shell scripts.
18839   SHELL=$lt_SHELL
18840  
# Line 16646 | Line 18952 | global_symbol_pipe=$lt_lt_cv_sys_global_
18952   # Transform the output of nm in a proper C declaration.
18953   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18954  
18955 + # Transform the output of nm into a list of symbols to manually relocate.
18956 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18957 +
18958   # Transform the output of nm in a C name address pair.
18959   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18960  
18961   # Transform the output of nm in a C name address pair when lib prefix is needed.
18962   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18963  
18964 + # The name lister interface.
18965 + nm_interface=$lt_lt_cv_nm_interface
18966 +
18967   # Specify filename containing input files for \$NM.
18968   nm_file_list_spec=$lt_nm_file_list_spec
18969  
18970 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18970 > # The root where to search for dependent libraries,and where our libraries should be installed.
18971   lt_sysroot=$lt_sysroot
18972  
18973 + # Command to truncate a binary pipe.
18974 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18975 +
18976   # The name of the directory that contains temporary libtool files.
18977   objdir=$objdir
18978  
# Line 16748 | Line 19063 | hardcode_into_libs=$hardcode_into_libs
19063   # Compile-time system search path for libraries.
19064   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19065  
19066 < # Run-time system search path for libraries.
19067 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066 > # Detected run-time system search path for libraries.
19067 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19068 >
19069 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19070 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19071  
19072   # Whether dlopen is supported.
19073   dlopen_support=$enable_dlopen
# Line 16842 | Line 19160 | hardcode_libdir_flag_spec=$lt_hardcode_l
19160   # Whether we need a single "-rpath" flag with a separated argument.
19161   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19162  
19163 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19163 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19164   # DIR into the resulting binary.
19165   hardcode_direct=$hardcode_direct
19166  
19167 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19167 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19168   # DIR into the resulting binary and the resulting library dependency is
19169 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19169 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19170   # library is relocated.
19171   hardcode_direct_absolute=$hardcode_direct_absolute
19172  
# Line 16900 | Line 19218 | hardcode_action=$hardcode_action
19218  
19219   _LT_EOF
19220  
19221 +    cat <<'_LT_EOF' >> "$cfgfile"
19222 +
19223 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19224 +
19225 + # func_munge_path_list VARIABLE PATH
19226 + # -----------------------------------
19227 + # VARIABLE is name of variable containing _space_ separated list of
19228 + # directories to be munged by the contents of PATH, which is string
19229 + # having a format:
19230 + # "DIR[:DIR]:"
19231 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19232 + # ":DIR[:DIR]"
19233 + #       string "DIR[ DIR]" will be appended to VARIABLE
19234 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19235 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19236 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19237 + # "DIR[:DIR]"
19238 + #       VARIABLE will be replaced by "DIR[ DIR]"
19239 + func_munge_path_list ()
19240 + {
19241 +    case x$2 in
19242 +    x)
19243 +        ;;
19244 +    *:)
19245 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19246 +        ;;
19247 +    x:*)
19248 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19249 +        ;;
19250 +    *::*)
19251 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19252 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19253 +        ;;
19254 +    *)
19255 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19256 +        ;;
19257 +    esac
19258 + }
19259 +
19260 +
19261 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19262 + func_cc_basename ()
19263 + {
19264 +    for cc_temp in $*""; do
19265 +      case $cc_temp in
19266 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19267 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19268 +        \-*) ;;
19269 +        *) break;;
19270 +      esac
19271 +    done
19272 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19273 + }
19274 +
19275 +
19276 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19277 +
19278 + _LT_EOF
19279 +
19280    case $host_os in
19281    aix3*)
19282      cat <<\_LT_EOF >> "$cfgfile"
19283   # AIX sometimes has problems with the GCC collect2 program.  For some
19284   # reason, if we set the COLLECT_NAMES environment variable, the problems
19285   # vanish in a puff of smoke.
19286 < if test "X${COLLECT_NAMES+set}" != Xset; then
19286 > if test set != "${COLLECT_NAMES+set}"; then
19287    COLLECT_NAMES=
19288    export COLLECT_NAMES
19289   fi
# Line 16915 | Line 19292 | _LT_EOF
19292    esac
19293  
19294  
19295 < ltmain="$ac_aux_dir/ltmain.sh"
19295 > ltmain=$ac_aux_dir/ltmain.sh
19296  
19297  
19298    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 16925 | Line 19302 | ltmain="$ac_aux_dir/ltmain.sh"
19302    sed '$q' "$ltmain" >> "$cfgfile" \
19303       || (rm -f "$cfgfile"; exit 1)
19304  
16928  if test x"$xsi_shell" = xyes; then
16929  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16930 func_dirname ()\
16931 {\
16932 \    case ${1} in\
16933 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16934 \      *  ) func_dirname_result="${3}" ;;\
16935 \    esac\
16936 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16937  && mv -f "$cfgfile.tmp" "$cfgfile" \
16938    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16939 test 0 -eq $? || _lt_function_replace_fail=:
16940
16941
16942  sed -e '/^func_basename ()$/,/^} # func_basename /c\
16943 func_basename ()\
16944 {\
16945 \    func_basename_result="${1##*/}"\
16946 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16947  && mv -f "$cfgfile.tmp" "$cfgfile" \
16948    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16949 test 0 -eq $? || _lt_function_replace_fail=:
16950
16951
16952  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16953 func_dirname_and_basename ()\
16954 {\
16955 \    case ${1} in\
16956 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16957 \      *  ) func_dirname_result="${3}" ;;\
16958 \    esac\
16959 \    func_basename_result="${1##*/}"\
16960 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16961  && mv -f "$cfgfile.tmp" "$cfgfile" \
16962    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16963 test 0 -eq $? || _lt_function_replace_fail=:
16964
16965
16966  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16967 func_stripname ()\
16968 {\
16969 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16970 \    # positional parameters, so assign one to ordinary parameter first.\
16971 \    func_stripname_result=${3}\
16972 \    func_stripname_result=${func_stripname_result#"${1}"}\
16973 \    func_stripname_result=${func_stripname_result%"${2}"}\
16974 } # Extended-shell func_stripname 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
16980  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16981 func_split_long_opt ()\
16982 {\
16983 \    func_split_long_opt_name=${1%%=*}\
16984 \    func_split_long_opt_arg=${1#*=}\
16985 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16986  && mv -f "$cfgfile.tmp" "$cfgfile" \
16987    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16988 test 0 -eq $? || _lt_function_replace_fail=:
16989
16990
16991  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16992 func_split_short_opt ()\
16993 {\
16994 \    func_split_short_opt_arg=${1#??}\
16995 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16996 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16997  && mv -f "$cfgfile.tmp" "$cfgfile" \
16998    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16999 test 0 -eq $? || _lt_function_replace_fail=:
17000
17001
17002  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17003 func_lo2o ()\
17004 {\
17005 \    case ${1} in\
17006 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17007 \      *)    func_lo2o_result=${1} ;;\
17008 \    esac\
17009 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17010  && mv -f "$cfgfile.tmp" "$cfgfile" \
17011    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17012 test 0 -eq $? || _lt_function_replace_fail=:
17013
17014
17015  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17016 func_xform ()\
17017 {\
17018    func_xform_result=${1%.*}.lo\
17019 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17020  && mv -f "$cfgfile.tmp" "$cfgfile" \
17021    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17022 test 0 -eq $? || _lt_function_replace_fail=:
17023
17024
17025  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17026 func_arith ()\
17027 {\
17028    func_arith_result=$(( $* ))\
17029 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17030  && mv -f "$cfgfile.tmp" "$cfgfile" \
17031    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17032 test 0 -eq $? || _lt_function_replace_fail=:
17033
17034
17035  sed -e '/^func_len ()$/,/^} # func_len /c\
17036 func_len ()\
17037 {\
17038    func_len_result=${#1}\
17039 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17040  && mv -f "$cfgfile.tmp" "$cfgfile" \
17041    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17042 test 0 -eq $? || _lt_function_replace_fail=:
17043
17044 fi
17045
17046 if test x"$lt_shell_append" = xyes; then
17047  sed -e '/^func_append ()$/,/^} # func_append /c\
17048 func_append ()\
17049 {\
17050    eval "${1}+=\\${2}"\
17051 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17052  && mv -f "$cfgfile.tmp" "$cfgfile" \
17053    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17054 test 0 -eq $? || _lt_function_replace_fail=:
17055
17056
17057  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17058 func_append_quoted ()\
17059 {\
17060 \    func_quote_for_eval "${2}"\
17061 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17062 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17063  && mv -f "$cfgfile.tmp" "$cfgfile" \
17064    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17065 test 0 -eq $? || _lt_function_replace_fail=:
17066
17067
17068  # Save a `func_append' function call where possible by direct use of '+='
17069  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17070    && mv -f "$cfgfile.tmp" "$cfgfile" \
17071      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17072  test 0 -eq $? || _lt_function_replace_fail=:
17073 else
17074  # Save a `func_append' function call even when '+=' is not available
17075  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17076    && mv -f "$cfgfile.tmp" "$cfgfile" \
17077      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17078  test 0 -eq $? || _lt_function_replace_fail=:
17079 fi
17080
17081 if test x"$_lt_function_replace_fail" = x":"; then
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17083 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17084 fi
17085
17086
19305     mv -f "$cfgfile" "$ofile" ||
19306      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19307    chmod +x "$ofile"
# Line 17127 | Line 19345 | if test -n "$ac_unrecognized_opts" && te
19345   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19346   fi
19347  
19348 +
19349 + echo "###############################################################################"
19350 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19351 + echo
19352 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19353 + echo "   ./configure --prefix=DIRECTORY"
19354 + echo "###############################################################################"

Comparing:
ircd-hybrid-8/configure (property svn:eol-style), Revision 1257 by michael, Sun Jan 15 06:28:46 2012 UTC vs.
ircd-hybrid/branches/8.2.x/configure (property svn:eol-style), Revision 8357 by michael, Sun Mar 4 13:57:37 2018 UTC

# Line 0 | Line 1
1 + native

Diff Legend

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