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

Comparing:
ircd-hybrid-7.2/configure (file contents), Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC vs.
ircd-hybrid/trunk/configure (file contents), Revision 8779 by michael, Sun Jan 13 11:32:53 2019 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 955 2009-07-27 00:27:20Z michael .
2 > # From configure.ac Id: configure.ac 8775 2019-01-06 18:17:35Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4 < # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
4 > # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5 > #
6 > # Report bugs to <bugs@ircd-hybrid.org>.
7 > #
8 > #
9 > # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10   #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
11   #
12   # This configure script is free software; the Free Software Foundation
13   # gives unlimited permission to copy, distribute and modify it.
# Line 88 | Line 90 | fi
90   IFS=" ""        $as_nl"
91  
92   # Find who we are.  Look in the path if we contain no directory separator.
93 + as_myself=
94   case $0 in #((
95    *[\\/]* ) as_myself=$0 ;;
96    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 132 | 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 165 | 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'\" &&
201    test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 +
203 +  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 +    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 +    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 +    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 +    PATH=/empty FPATH=/empty; export PATH FPATH
208 +    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 +      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210   test \$(( 1 + 1 )) = 2 || exit 1"
211    if (eval "$as_required") 2>/dev/null; then :
212    as_have_required=yes
# Line 210 | 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 <        BASH_ENV=/dev/null
254 <        ENV=/dev/null
255 <        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 <        export CONFIG_SHELL
257 <        exec "$CONFIG_SHELL" "$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 227 | Line 275 | fi
275      $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276      $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277    else
278 <    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
279 < $0: including any error possibly output before this
280 < $0: message. Then install a modern shell, or manually run
281 < $0: the script under such a shell if you do have one."
278 >    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 > $0: bugs@ircd-hybrid.org about your system, including any
280 > $0: error possibly output before this message. Then install
281 > $0: a modern shell, or manually run the script under such a
282 > $0: shell if you do have one."
283    fi
284    exit 1
285   fi
# Line 315 | Line 364 | $as_echo X"$as_dir" |
364        test -d "$as_dir" && break
365      done
366      test -z "$as_dirs" || eval "mkdir $as_dirs"
367 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
367 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $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 355 | Line 412 | else
412   fi # as_fn_arith
413  
414  
415 < # as_fn_error ERROR [LINENO LOG_FD]
416 < # ---------------------------------
415 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 > # ----------------------------------------
417   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 < # script with status $?, using 1 if that was 0.
419 > # script with STATUS, using 1 if that was 0.
420   as_fn_error ()
421   {
422 <  as_status=$?; test $as_status -eq 0 && as_status=1
423 <  if test "$3"; then
424 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
422 >  as_status=$1; test $as_status -eq 0 && as_status=1
423 >  if test "$4"; then
424 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426    fi
427 <  $as_echo "$as_me: error: $1" >&2
427 >  $as_echo "$as_me: error: $2" >&2
428    as_fn_exit $as_status
429   } # as_fn_error
430  
# Line 440 | 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 474 | 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 495 | 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'
500 < else
501 <  if ls -dL / >/dev/null 2>&1; then
502 <    as_ls_L_option=L
503 <  else
504 <    as_ls_L_option=
505 <  fi
506 <  as_test_x='
507 <    eval sh -c '\''
508 <      if test -d "$1"; then
509 <        test -d "$1/.";
510 <      else
511 <        case $1 in #(
512 <        -*)set "./$1";;
513 <        esac;
514 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 <        ???[sx]*):;;*)false;;esac;fi
516 <    '\'' sh
517 <  '
518 < fi
519 < 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 524 | Line 565 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P
565   # Sed expression to map a string onto a valid variable name.
566   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567  
568 + lt_ltdl_dir='libltdl'
569  
528
529 # Check that we are running under the correct shell.
570   SHELL=${CONFIG_SHELL-/bin/sh}
571  
532 case X$lt_ECHO in
533 X*--fallback-echo)
534  # Remove one level of quotation (which was required for Make).
535  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536  ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541  # Discard the --no-reexec flag, and continue.
542  shift
543 elif test "X$1" = X--fallback-echo; then
544  # Avoid inline document here, it may be left over
545  :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547  # Yippee, $ECHO works!
548  :
549 else
550  # Restart under the correct shell.
551  exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555  # used as fallback echo
556  shift
557  cat <<_LT_EOF
558 $*
559 _LT_EOF
560  exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568  if test "X${echo_test_string+set}" != Xset; then
569    # find a string as large as possible, as long as the shell can cope with it
570    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574      then
575        break
576      fi
577    done
578  fi
579
580  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582     test "X$echo_testing_string" = "X$echo_test_string"; then
583    :
584  else
585    # The Solaris, AIX, and Digital Unix default echo programs unquote
586    # backslashes.  This makes it impossible to quote backslashes using
587    #   echo "$something" | sed 's/\\/\\\\/g'
588    #
589    # So, first we look for a working echo in the user's PATH.
590
591    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592    for dir in $PATH /usr/ucb; do
593      IFS="$lt_save_ifs"
594      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597         test "X$echo_testing_string" = "X$echo_test_string"; then
598        ECHO="$dir/echo"
599        break
600      fi
601    done
602    IFS="$lt_save_ifs"
603
604    if test "X$ECHO" = Xecho; then
605      # We didn't find a better echo, so look for alternatives.
606      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608         test "X$echo_testing_string" = "X$echo_test_string"; then
609        # This shell has a builtin print -r that does the trick.
610        ECHO='print -r'
611      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612           test "X$CONFIG_SHELL" != X/bin/ksh; then
613        # If we have ksh, try running configure again with it.
614        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615        export ORIGINAL_CONFIG_SHELL
616        CONFIG_SHELL=/bin/ksh
617        export CONFIG_SHELL
618        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619      else
620        # Try using printf.
621        ECHO='printf %s\n'
622        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624           test "X$echo_testing_string" = "X$echo_test_string"; then
625          # Cool, printf works
626          :
627        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628             test "X$echo_testing_string" = 'X\t' &&
629             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630             test "X$echo_testing_string" = "X$echo_test_string"; then
631          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632          export CONFIG_SHELL
633          SHELL="$CONFIG_SHELL"
634          export SHELL
635          ECHO="$CONFIG_SHELL $0 --fallback-echo"
636        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637             test "X$echo_testing_string" = 'X\t' &&
638             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639             test "X$echo_testing_string" = "X$echo_test_string"; then
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        else
642          # maybe with a smaller string...
643          prev=:
644
645          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647            then
648              break
649            fi
650            prev="$cmd"
651          done
652
653          if test "$prev" != 'sed 50q "$0"'; then
654            echo_test_string=`eval $prev`
655            export echo_test_string
656            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657          else
658            # Oops.  We lost completely, so just stick with echo.
659            ECHO=echo
660          fi
661        fi
662      fi
663    fi
664  fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
572  
573 <
574 <
676 <
677 < lt_ltdl_dir='libltdl'
678 <
679 < lt_dlopen_dir="$lt_ltdl_dir"
680 <
681 < exec 7<&0 </dev/null 6>&1
573 > test -n "$DJDIR" || exec 7<&0 </dev/null
574 > exec 6>&1
575  
576   # Name of the host.
577 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
577 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578   # so uname gets run too.
579   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580  
# Line 700 | Line 593 | MAKEFLAGS=
593   # Identity of this package.
594   PACKAGE_NAME='ircd-hybrid'
595   PACKAGE_TARNAME='ircd-hybrid'
596 < PACKAGE_VERSION='7.2.4'
597 < PACKAGE_STRING='ircd-hybrid 7.2.4'
598 < PACKAGE_BUGREPORT=''
596 > PACKAGE_VERSION='TRUNK'
597 > PACKAGE_STRING='ircd-hybrid TRUNK'
598 > PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599   PACKAGE_URL=''
600  
601   ac_unique_file="src/ircd.c"
# Line 742 | Line 635 | ac_includes_default="\
635   # include <unistd.h>
636   #endif"
637  
745 enable_option_checking=no
638   ac_func_list=
639   ac_header_list=
640   ac_subst_vars='ltdl_LTLIBOBJS
# Line 756 | Line 648 | DATADIR
648   LIBDIR
649   SYSCONFDIR
650   PREFIX
759 EFNET_FALSE
760 EFNET_TRUE
761 ENABLE_SSL_FALSE
762 ENABLE_SSL_TRUE
763 HAVE_CRYPT_FALSE
764 HAVE_CRYPT_TRUE
651   LTDLOPEN
652   LT_CONFIG_H
767 subdirs
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 782 | Line 667 | LTDLINCL
667   LTDLDEPS
668   LIBLTDL
669   CPP
670 + LT_SYS_LIBRARY_PATH
671   OTOOL64
672   OTOOL
673   LIPO
674   NMEDIT
675   DSYMUTIL
676 < lt_ECHO
676 > MANIFEST_TOOL
677   RANLIB
678 + ac_ct_AR
679   AR
680 + DLLTOOL
681   OBJDUMP
682   LN_S
683   NM
# Line 817 | Line 705 | YACC
705   am__fastdepCC_FALSE
706   am__fastdepCC_TRUE
707   CCDEPMODE
708 + am__nodep
709   AMDEPBACKSLASH
710   AMDEP_FALSE
711   AMDEP_TRUE
823 am__quote
712   am__include
713   DEPDIR
714   OBJEXT
# Line 833 | Line 721 | CC
721   MAINT
722   MAINTAINER_MODE_FALSE
723   MAINTAINER_MODE_TRUE
724 + AM_BACKSLASH
725 + AM_DEFAULT_VERBOSITY
726 + AM_DEFAULT_V
727 + AM_V
728   am__untar
729   am__tar
730   AMTAR
# Line 893 | Line 785 | PACKAGE_VERSION
785   PACKAGE_TARNAME
786   PACKAGE_NAME
787   PATH_SEPARATOR
788 < SHELL'
788 > SHELL
789 > am__quote'
790   ac_subst_files=''
791   ac_user_opts='
792   enable_option_checking
793 + enable_silent_rules
794   enable_maintainer_mode
795   enable_dependency_tracking
902 enable_shared
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
804   with_included_ltdl
805   with_ltdl_include
806   with_ltdl_lib
807   enable_ltdl_install
912 with_zlib_path
913 enable_zlib
914 enable_openssl
915 enable_assert
916 enable_small_net
808   enable_kqueue
809   enable_epoll
810   enable_devpoll
920 enable_rtsigio
811   enable_poll
812 < enable_select
923 < with_nicklen
924 < with_topiclen
925 < with_syslog_facility
926 < enable_efnet
927 < enable_halfops
812 > enable_assert
813   enable_debugging
814   enable_warnings
815 < enable_syslog
815 > enable_efence
816 > enable_openssl
817 > enable_gnutls
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 939 | Line 826 | LIBS
826   CPPFLAGS
827   YACC
828   YFLAGS
829 + LT_SYS_LIBRARY_PATH
830   CPP'
831 < ac_subdirs_all='libltdl'
831 >
832  
833   # Initialize some variables set by options.
834   ac_init_help=
# Line 1002 | Line 890 | do
890    fi
891  
892    case $ac_option in
893 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 <  *)    ac_optarg=yes ;;
893 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 >  *=)   ac_optarg= ;;
895 >  *)    ac_optarg=yes ;;
896    esac
897  
898    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 1048 | Line 937 | do
937      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938      # Reject names that are not valid shell variable names.
939      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 <      as_fn_error "invalid feature name: $ac_useropt"
940 >      as_fn_error $? "invalid feature name: $ac_useropt"
941      ac_useropt_orig=$ac_useropt
942      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943      case $ac_user_opts in
# Line 1074 | Line 963 | do
963      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964      # Reject names that are not valid shell variable names.
965      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 <      as_fn_error "invalid feature name: $ac_useropt"
966 >      as_fn_error $? "invalid feature name: $ac_useropt"
967      ac_useropt_orig=$ac_useropt
968      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969      case $ac_user_opts in
# Line 1278 | Line 1167 | do
1167      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168      # Reject names that are not valid shell variable names.
1169      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 <      as_fn_error "invalid package name: $ac_useropt"
1170 >      as_fn_error $? "invalid package name: $ac_useropt"
1171      ac_useropt_orig=$ac_useropt
1172      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173      case $ac_user_opts in
# Line 1294 | Line 1183 | do
1183      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184      # Reject names that are not valid shell variable names.
1185      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 <      as_fn_error "invalid package name: $ac_useropt"
1186 >      as_fn_error $? "invalid package name: $ac_useropt"
1187      ac_useropt_orig=$ac_useropt
1188      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189      case $ac_user_opts in
# Line 1324 | Line 1213 | do
1213    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214      x_libraries=$ac_optarg ;;
1215  
1216 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1217 < Try \`$0 --help' for more information."
1216 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 > Try \`$0 --help' for more information"
1218      ;;
1219  
1220    *=*)
# Line 1333 | Line 1222 | Try \`$0 --help' for more information."
1222      # Reject names that are not valid shell variable names.
1223      case $ac_envvar in #(
1224        '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226      esac
1227      eval $ac_envvar=\$ac_optarg
1228      export $ac_envvar ;;
# Line 1343 | Line 1232 | Try \`$0 --help' for more information."
1232      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236      ;;
1237  
1238    esac
# Line 1351 | Line 1240 | done
1240  
1241   if test -n "$ac_prev"; then
1242    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 <  as_fn_error "missing argument to $ac_option"
1243 >  as_fn_error $? "missing argument to $ac_option"
1244   fi
1245  
1246   if test -n "$ac_unrecognized_opts"; then
1247    case $enable_option_checking in
1248      no) ;;
1249 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251    esac
1252   fi
# Line 1380 | Line 1269 | do
1269      [\\/$]* | ?:[\\/]* )  continue;;
1270      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271    esac
1272 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1272 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273   done
1274  
1275   # There might be people who depend on the old broken behavior: `$host'
# Line 1394 | Line 1283 | target=$target_alias
1283   if test "x$host_alias" != x; then
1284    if test "x$build_alias" = x; then
1285      cross_compiling=maybe
1397    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398    If a cross compiler is detected then cross compile mode will be used." >&2
1286    elif test "x$build_alias" != "x$host_alias"; then
1287      cross_compiling=yes
1288    fi
# Line 1410 | Line 1297 | test "$silent" = yes && exec 6>/dev/null
1297   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298   ac_ls_di=`ls -di .` &&
1299   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 <  as_fn_error "working directory cannot be determined"
1300 >  as_fn_error $? "working directory cannot be determined"
1301   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 <  as_fn_error "pwd does not report name of working directory"
1302 >  as_fn_error $? "pwd does not report name of working directory"
1303  
1304  
1305   # Find the source files, if location was not specified.
# Line 1451 | Line 1338 | else
1338   fi
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342   fi
1343   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344   ac_abs_confdir=`(
1345 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346          pwd)`
1347   # When building in place, set srcdir=.
1348   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1481 | Line 1368 | if test "$ac_init_help" = "long"; then
1368    # Omit some internal or obsolete options to make the list less imposing.
1369    # This message is too long to be a string in the A/UX 3.1 sh.
1370    cat <<_ACEOF
1371 < \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1371 > \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1372  
1373   Usage: $0 [OPTION]... [VAR=VALUE]...
1374  
# Line 1495 | Line 1382 | Configuration:
1382        --help=short        display options specific to this package
1383        --help=recursive    display the short help of all the included packages
1384    -V, --version           display version information and exit
1385 <  -q, --quiet, --silent   do not print \`checking...' messages
1385 >  -q, --quiet, --silent   do not print \`checking ...' messages
1386        --cache-file=FILE   cache test results in FILE [disabled]
1387    -C, --config-cache      alias for \`--cache-file=config.cache'
1388    -n, --no-create         do not create output files
# Line 1551 | Line 1438 | fi
1438  
1439   if test -n "$ac_init_help"; then
1440    case $ac_init_help in
1441 <     short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1441 >     short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1442     esac
1443    cat <<\_ACEOF
1444  
# Line 1559 | Line 1446 | Optional Features:
1446    --disable-option-checking  ignore unrecognized --enable/--with options
1447    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449 <  --enable-maintainer-mode  enable make rules and dependencies not useful
1450 <                          (and sometimes confusing) to the casual installer
1451 <  --disable-dependency-tracking  speeds up one-time build
1452 <  --enable-dependency-tracking   do not reject slow dependency extractors
1449 >  --enable-silent-rules   less verbose build output (undo: "make V=1")
1450 >  --disable-silent-rules  verbose build output (undo: "make V=0")
1451 >  --enable-maintainer-mode
1452 >                          enable make rules and dependencies not useful (and
1453 >                          sometimes confusing) to the casual installer
1454 >  --enable-dependency-tracking
1455 >                          do not reject slow dependency extractors
1456 >  --disable-dependency-tracking
1457 >                          speeds up one-time build
1458 >  --enable-static[=PKGS]  build static libraries [default=no]
1459    --enable-shared[=PKGS]  build shared libraries [default=yes]
1567  --enable-static[=PKGS]  build static libraries [default=yes]
1460    --enable-fast-install[=PKGS]
1461                            optimize for fast installation [default=yes]
1462    --disable-libtool-lock  avoid locking (might break parallel builds)
1463    --enable-ltdl-install   install libltdl
1572  --disable-zlib          Disable ziplinks support
1573  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1574  --disable-openssl            Disable OpenSSL support.
1575  --enable-assert         Enable assert() statements
1576  --enable-small-net      Enable small network support.
1464    --enable-kqueue         Force kqueue usage.
1465    --enable-epoll          Force epoll usage.
1466    --enable-devpoll        Force devpoll usage.
1580  --enable-rtsigio        Force rtsigio usage.
1467    --enable-poll           Force poll usage.
1468 <  --enable-select         Force select usage.
1583 <  --enable-efnet          For IRCDs running on EFnet.
1584 <  --enable-halfops        Enable halfops support.
1468 >  --enable-assert         Enable assert() statements
1469    --enable-debugging      Enable debugging.
1470    --enable-warnings       Enable compiler warnings.
1471 <  --enable-syslog="EVENTS"
1472 <                          Enable syslog for events: users oper (space
1473 <                          separated in quotes; default: disabled).
1471 >  --enable-efence         Enable linking with Electric Fence 'efence' memory
1472 >                          debugger library.
1473 >  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1474 >  --disable-openssl            Disable LibreSSL/OpenSSL support.
1475 >  --enable-gnutls             Enable GnuTLS support.
1476 >  --disable-gnutls             Disable GnuTLS support.
1477  
1478   Optional Packages:
1479    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481 <  --with-pic              try to use only PIC/non-PIC objects [default=use
1481 >  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1482                            both]
1483 +  --with-aix-soname=aix|svr4|both
1484 +                          shared library versioning (aka "SONAME") variant to
1485 +                          provide on AIX, [default=aix].
1486    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487 +  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1488 +                          compiler's sysroot if not specified).
1489    --with-included-ltdl    use the GNU ltdl sources included here
1490    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1491    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1600  --with-zlib-path=DIR    Path to libz.so for ziplinks support.
1601  --with-nicklen=<value>  Set nickname length (default 9).
1602  --with-topiclen=<value> Set topic length (default 160).
1603  --with-syslog-facility=LOG
1604                          Define the syslog facility to use (default:
1605                          LOG_LOCAL4)
1492  
1493   Some influential environment variables:
1494    CC          C compiler command
# Line 1610 | Line 1496 | Some influential environment variables:
1496    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497                nonstandard directory <lib dir>
1498    LIBS        libraries to pass to the linker, e.g. -l<library>
1499 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500                you have headers in a nonstandard directory <include dir>
1501 <  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1502 <              the first program found out of: `bison -y', `byacc', `yacc'.
1501 >  YACC        The `Yet Another Compiler Compiler' implementation to use.
1502 >              Defaults to the first program found out of: `bison -y', `byacc',
1503 >              `yacc'.
1504    YFLAGS      The list of arguments that will be passed by default to $YACC.
1505                This script will default YFLAGS to the empty string to avoid a
1506                default value of `-d' given by some make applications.
1507 +  LT_SYS_LIBRARY_PATH
1508 +              User-defined run-time library search path.
1509    CPP         C preprocessor
1510  
1511   Use these variables to override the choices made by `configure' or to help
1512   it to find libraries and programs with nonstandard names/locations.
1513  
1514 < Report bugs to the package provider.
1514 > Report bugs to <bugs@ircd-hybrid.org>.
1515   _ACEOF
1516   ac_status=$?
1517   fi
# Line 1685 | Line 1574 | fi
1574   test -n "$ac_init_help" && exit $ac_status
1575   if $ac_init_version; then
1576    cat <<\_ACEOF
1577 < ircd-hybrid configure 7.2.4
1578 < generated by GNU Autoconf 2.64
1577 > ircd-hybrid configure TRUNK
1578 > generated by GNU Autoconf 2.69
1579  
1580 < Copyright (C) 2009 Free Software Foundation, Inc.
1580 > Copyright (C) 2012 Free Software Foundation, Inc.
1581   This configure script is free software; the Free Software Foundation
1582   gives unlimited permission to copy, distribute and modify it.
1583   _ACEOF
# Line 1732 | Line 1621 | sed 's/^/| /' conftest.$ac_ext >&5
1621  
1622          ac_retval=1
1623   fi
1624 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 <  return $ac_retval
1624 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 >  as_fn_set_status $ac_retval
1626  
1627   } # ac_fn_c_try_compile
1628  
# Line 1764 | Line 1653 | $as_echo "$ac_try_echo"; } >&5
1653           test ! -s conftest.err
1654         } && test -s conftest$ac_exeext && {
1655           test "$cross_compiling" = yes ||
1656 <         $as_test_x conftest$ac_exeext
1656 >         test -x conftest$ac_exeext
1657         }; then :
1658    ac_retval=0
1659   else
# Line 1778 | Line 1667 | fi
1667    # interfere with the next link command; also delete a directory that is
1668    # left behind by Apple's compiler.  We do this before executing the actions.
1669    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 <  return $ac_retval
1670 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 >  as_fn_set_status $ac_retval
1672  
1673   } # ac_fn_c_try_link
1674  
# Line 1792 | Line 1681 | ac_fn_c_check_header_compile ()
1681    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683   $as_echo_n "checking for $2... " >&6; }
1684 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 > if eval \${$3+:} false; then :
1685    $as_echo_n "(cached) " >&6
1686   else
1687    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1810 | Line 1699 | fi
1699   eval ac_res=\$$3
1700                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701   $as_echo "$ac_res" >&6; }
1702 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  
1704   } # ac_fn_c_check_header_compile
1705  
# Line 1835 | Line 1724 | $as_echo "$ac_try_echo"; } >&5
1724      mv -f conftest.er1 conftest.err
1725    fi
1726    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 <  test $ac_status = 0; } >/dev/null && {
1727 >  test $ac_status = 0; } > conftest.i && {
1728           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729           test ! -s conftest.err
1730         }; then :
# Line 1846 | Line 1735 | sed 's/^/| /' conftest.$ac_ext >&5
1735  
1736      ac_retval=1
1737   fi
1738 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 <  return $ac_retval
1738 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 >  as_fn_set_status $ac_retval
1740  
1741   } # ac_fn_c_try_cpp
1742  
# Line 1888 | Line 1777 | sed 's/^/| /' conftest.$ac_ext >&5
1777         ac_retval=$ac_status
1778   fi
1779    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 <  return $ac_retval
1780 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 >  as_fn_set_status $ac_retval
1782  
1783   } # ac_fn_c_try_run
1784  
# Line 1901 | Line 1790 | ac_fn_c_check_func ()
1790    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792   $as_echo_n "checking for $2... " >&6; }
1793 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 > if eval \${$3+:} false; then :
1794    $as_echo_n "(cached) " >&6
1795   else
1796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1956 | Line 1845 | fi
1845   eval ac_res=\$$3
1846                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847   $as_echo "$ac_res" >&6; }
1848 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  
1850   } # ac_fn_c_check_func
1851  
1852 < # ac_fn_c_check_decl LINENO SYMBOL VAR
1853 < # ------------------------------------
1854 < # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1852 > # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1853 > # ---------------------------------------------
1854 > # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1855 > # accordingly.
1856   ac_fn_c_check_decl ()
1857   {
1858    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1860 < $as_echo_n "checking whether $2 is declared... " >&6; }
1861 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 >  as_decl_name=`echo $2|sed 's/ *(.*//'`
1860 >  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1861 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1862 > $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1863 > if eval \${$3+:} false; then :
1864    $as_echo_n "(cached) " >&6
1865   else
1866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1977 | Line 1869 | $4
1869   int
1870   main ()
1871   {
1872 < #ifndef $2
1873 <  (void) $2;
1872 > #ifndef $as_decl_name
1873 > #ifdef __cplusplus
1874 >  (void) $as_decl_use;
1875 > #else
1876 >  (void) $as_decl_name;
1877 > #endif
1878   #endif
1879  
1880    ;
# Line 1995 | Line 1891 | fi
1891   eval ac_res=\$$3
1892                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893   $as_echo "$ac_res" >&6; }
1894 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895  
1896   } # ac_fn_c_check_decl
1897  
# Line 2008 | Line 1904 | ac_fn_c_check_type ()
1904    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906   $as_echo_n "checking for $2... " >&6; }
1907 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 > if eval \${$3+:} false; then :
1908    $as_echo_n "(cached) " >&6
1909   else
1910    eval "$3=no"
# Line 2049 | Line 1945 | fi
1945   eval ac_res=\$$3
1946                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947   $as_echo "$ac_res" >&6; }
1948 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949  
1950   } # ac_fn_c_check_type
1951  
2056 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2057 # ----------------------------------------------------
2058 # Tries to find if the field MEMBER exists in type AGGR, after including
2059 # INCLUDES, setting cache variable VAR accordingly.
2060 ac_fn_c_check_member ()
2061 {
2062  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2064 $as_echo_n "checking for $2.$3... " >&6; }
2065 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2066  $as_echo_n "(cached) " >&6
2067 else
2068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 $5
2071 int
2072 main ()
2073 {
2074 static $2 ac_aggr;
2075 if (ac_aggr.$3)
2076 return 0;
2077  ;
2078  return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082  eval "$4=yes"
2083 else
2084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $5
2087 int
2088 main ()
2089 {
2090 static $2 ac_aggr;
2091 if (sizeof ac_aggr.$3)
2092 return 0;
2093  ;
2094  return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098  eval "$4=yes"
2099 else
2100  eval "$4=no"
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$4
2107               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_c_check_member
2112
2113 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2114 # --------------------------------------------
2115 # Tries to find the compile-time value of EXPR in a program that includes
2116 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 # computed
2118 ac_fn_c_compute_int ()
2119 {
2120  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121  if test "$cross_compiling" = yes; then
2122    # Depending upon the size, compute the lo and hi bounds.
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h.  */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) >= 0)];
2130 test_array [0] = 0
2131
2132  ;
2133  return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137  ac_lo=0 ac_mid=0
2138  while :; do
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h.  */
2141 $4
2142 int
2143 main ()
2144 {
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0
2147
2148  ;
2149  return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153  ac_hi=$ac_mid; break
2154 else
2155  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2156                        if test $ac_lo -le $ac_mid; then
2157                          ac_lo= ac_hi=
2158                          break
2159                        fi
2160                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163  done
2164 else
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) < 0)];
2172 test_array [0] = 0
2173
2174  ;
2175  return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_hi=-1 ac_mid=-1
2180  while :; do
2181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2188 test_array [0] = 0
2189
2190  ;
2191  return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195  ac_lo=$ac_mid; break
2196 else
2197  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198                        if test $ac_mid -le $ac_hi; then
2199                          ac_lo= ac_hi=
2200                          break
2201                        fi
2202                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205  done
2206 else
2207  ac_lo= ac_hi=
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 # Binary search between lo and hi bounds.
2213 while test "x$ac_lo" != "x$ac_hi"; do
2214  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0
2223
2224  ;
2225  return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229  ac_hi=$ac_mid
2230 else
2231  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239  else
2240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
2251  FILE *f = fopen ("conftest.val", "w");
2252  if (! f)
2253    return 1;
2254  if (($2) < 0)
2255    {
2256      long int i = longval ();
2257      if (i != ($2))
2258        return 1;
2259      fprintf (f, "%ld", i);
2260    }
2261  else
2262    {
2263      unsigned long int i = ulongval ();
2264      if (i != ($2))
2265        return 1;
2266      fprintf (f, "%lu", i);
2267    }
2268  /* Do not output a trailing newline, as this causes \r\n confusion
2269     on some platforms.  */
2270  return ferror (f) || fclose (f) != 0;
2271
2272  ;
2273  return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279  ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282  conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285  fi
2286  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287  return $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290
1952   # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1953   # -------------------------------------------------------
1954   # Tests whether HEADER exists, giving a warning if it cannot be compiled using
# Line 2296 | Line 1957 | rm -f conftest.val
1957   ac_fn_c_check_header_mongrel ()
1958   {
1959    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 >  if eval \${$3+:} false; then :
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962   $as_echo_n "checking for $2... " >&6; }
1963 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 > if eval \${$3+:} false; then :
1964    $as_echo_n "(cached) " >&6
1965   fi
1966   eval ac_res=\$$3
# Line 2335 | Line 1996 | if ac_fn_c_try_cpp "$LINENO"; then :
1996   else
1997    ac_header_preproc=no
1998   fi
1999 < rm -f conftest.err conftest.$ac_ext
1999 > rm -f conftest.err conftest.i conftest.$ac_ext
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001   $as_echo "$ac_header_preproc" >&6; }
2002  
# Line 2358 | Line 2019 | $as_echo "$as_me: WARNING: $2: see the A
2019   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2020      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 + ( $as_echo "## ----------------------------------- ##
2023 + ## Report this to bugs@ircd-hybrid.org ##
2024 + ## ----------------------------------- ##"
2025 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
2026      ;;
2027   esac
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029   $as_echo_n "checking for $2... " >&6; }
2030 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 > if eval \${$3+:} false; then :
2031    $as_echo_n "(cached) " >&6
2032   else
2033    eval "$3=\$ac_header_compiler"
# Line 2371 | Line 2036 | eval ac_res=\$$3
2036                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037   $as_echo "$ac_res" >&6; }
2038   fi
2039 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040  
2041   } # ac_fn_c_check_header_mongrel
2042   cat >config.log <<_ACEOF
2043   This file contains any messages produced by compilers while
2044   running configure, to aid debugging if configure makes a mistake.
2045  
2046 < It was created by ircd-hybrid $as_me 7.2.4, which was
2047 < generated by GNU Autoconf 2.64.  Invocation command line was
2046 > It was created by ircd-hybrid $as_me TRUNK, which was
2047 > generated by GNU Autoconf 2.69.  Invocation command line was
2048  
2049    $ $0 $@
2050  
# Line 2489 | Line 2154 | trap 'exit_status=$?
2154    {
2155      echo
2156  
2157 <    cat <<\_ASBOX
2493 < ## ---------------- ##
2157 >    $as_echo "## ---------------- ##
2158   ## Cache variables. ##
2159 < ## ---------------- ##
2496 < _ASBOX
2159 > ## ---------------- ##"
2160      echo
2161      # The following way of writing the cache mishandles newlines in values,
2162   (
# Line 2527 | Line 2190 | $as_echo "$as_me: WARNING: cache variabl
2190   )
2191      echo
2192  
2193 <    cat <<\_ASBOX
2531 < ## ----------------- ##
2193 >    $as_echo "## ----------------- ##
2194   ## Output variables. ##
2195 < ## ----------------- ##
2534 < _ASBOX
2195 > ## ----------------- ##"
2196      echo
2197      for ac_var in $ac_subst_vars
2198      do
# Line 2544 | Line 2205 | _ASBOX
2205      echo
2206  
2207      if test -n "$ac_subst_files"; then
2208 <      cat <<\_ASBOX
2548 < ## ------------------- ##
2208 >      $as_echo "## ------------------- ##
2209   ## File substitutions. ##
2210 < ## ------------------- ##
2551 < _ASBOX
2210 > ## ------------------- ##"
2211        echo
2212        for ac_var in $ac_subst_files
2213        do
# Line 2562 | Line 2221 | _ASBOX
2221      fi
2222  
2223      if test -s confdefs.h; then
2224 <      cat <<\_ASBOX
2566 < ## ----------- ##
2224 >      $as_echo "## ----------- ##
2225   ## confdefs.h. ##
2226 < ## ----------- ##
2569 < _ASBOX
2226 > ## ----------- ##"
2227        echo
2228        cat confdefs.h
2229        echo
# Line 2621 | Line 2278 | _ACEOF
2278   ac_site_file1=NONE
2279   ac_site_file2=NONE
2280   if test -n "$CONFIG_SITE"; then
2281 <  ac_site_file1=$CONFIG_SITE
2281 >  # We do not want a PATH search for config.site.
2282 >  case $CONFIG_SITE in #((
2283 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2284 >    */*) ac_site_file1=$CONFIG_SITE;;
2285 >    *)   ac_site_file1=./$CONFIG_SITE;;
2286 >  esac
2287   elif test "x$prefix" != xNONE; then
2288    ac_site_file1=$prefix/share/config.site
2289    ac_site_file2=$prefix/etc/config.site
# Line 2632 | Line 2294 | fi
2294   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295   do
2296    test "x$ac_site_file" = xNONE && continue
2297 <  if test -r "$ac_site_file"; then
2297 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300      sed 's/^/| /' "$ac_site_file" >&5
2301 <    . "$ac_site_file"
2301 >    . "$ac_site_file" \
2302 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 > as_fn_error $? "failed to load site script $ac_site_file
2305 > See \`config.log' for more details" "$LINENO" 5; }
2306    fi
2307   done
2308  
2309   if test -r "$cache_file"; then
2310 <  # Some versions of bash will fail to source /dev/null (special
2311 <  # files actually), so we avoid doing that.
2312 <  if test -f "$cache_file"; then
2310 >  # Some versions of bash will fail to source /dev/null (special files
2311 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2312 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314   $as_echo "$as_me: loading cache $cache_file" >&6;}
2315      case $cache_file in
# Line 2657 | Line 2323 | $as_echo "$as_me: creating cache $cache_
2323    >$cache_file
2324   fi
2325  
2326 < as_fn_append ac_func_list " snprintf"
2661 < as_fn_append ac_func_list " vsnprintf"
2662 < as_fn_append ac_func_list " lrand48"
2663 < as_fn_append ac_func_list " srand48"
2664 < as_fn_append ac_func_list " mmap"
2326 > as_fn_append ac_func_list " accept4"
2327   as_fn_append ac_func_list " strtok_r"
2666 as_fn_append ac_func_list " usleep"
2328   as_fn_append ac_func_list " strlcat"
2329   as_fn_append ac_func_list " strlcpy"
2669 as_fn_append ac_func_list " basename"
2330   as_fn_append ac_header_list " crypt.h"
2671 as_fn_append ac_header_list " inttypes.h"
2672 as_fn_append ac_header_list " stdint.h"
2673 as_fn_append ac_header_list " sys/resource.h"
2331   as_fn_append ac_header_list " sys/param.h"
2675 as_fn_append ac_header_list " errno.h"
2676 as_fn_append ac_header_list " sys/syslog.h"
2677 as_fn_append ac_header_list " stddef.h"
2678 as_fn_append ac_header_list " libgen.h"
2332   as_fn_append ac_header_list " types.h"
2333   as_fn_append ac_header_list " socket.h"
2334   as_fn_append ac_header_list " sys/wait.h"
2682 as_fn_append ac_header_list " wait.h"
2683 as_fn_append ac_header_list " link.h"
2335   # Check that the precious variables saved in the cache have kept the same
2336   # value.
2337   ac_cache_corrupted=false
# Line 2736 | Line 2387 | if $ac_cache_corrupted; then
2387   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391   fi
2392   ## -------------------- ##
2393   ## Main body of script. ##
# Line 2749 | Line 2400 | ac_link='$CC -o conftest$ac_exeext $CFLA
2400   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401  
2402  
2403 < am__api_version='1.11'
2403 > am__api_version='1.16'
2404  
2405   ac_aux_dir=
2406   for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2407 <  for ac_t in install-sh install.sh shtool; do
2408 <    if test -f "$ac_dir/$ac_t"; then
2409 <      ac_aux_dir=$ac_dir
2410 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2411 <      break 2
2412 <    fi
2413 <  done
2407 >  if test -f "$ac_dir/install-sh"; then
2408 >    ac_aux_dir=$ac_dir
2409 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2410 >    break
2411 >  elif test -f "$ac_dir/install.sh"; then
2412 >    ac_aux_dir=$ac_dir
2413 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2414 >    break
2415 >  elif test -f "$ac_dir/shtool"; then
2416 >    ac_aux_dir=$ac_dir
2417 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2418 >    break
2419 >  fi
2420   done
2421   if test -z "$ac_aux_dir"; then
2422 <  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2422 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2423   fi
2424  
2425   # These three variables are undocumented and unsupported,
# Line 2791 | Line 2448 | ac_configure="$SHELL $ac_aux_dir/configu
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449   $as_echo_n "checking for a BSD-compatible install... " >&6; }
2450   if test -z "$INSTALL"; then
2451 < if test "${ac_cv_path_install+set}" = set; then :
2451 > if ${ac_cv_path_install+:} false; then :
2452    $as_echo_n "(cached) " >&6
2453   else
2454    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 2811 | Line 2468 | case $as_dir/ in #((
2468      # by default.
2469      for ac_prog in ginstall scoinst install; do
2470        for ac_exec_ext in '' $ac_executable_extensions; do
2471 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2471 >        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2472            if test $ac_prog = install &&
2473              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474              # AIX install.  It has an incompatible calling convention.
# Line 2869 | Line 2526 | test -z "$INSTALL_DATA" && INSTALL_DATA=
2526  
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2528   $as_echo_n "checking whether build environment is sane... " >&6; }
2872 # Just in case
2873 sleep 1
2874 echo timestamp > conftest.file
2529   # Reject unsafe characters in $srcdir or the absolute working directory
2530   # name.  Accept space and tab only in the latter.
2531   am_lf='
2532   '
2533   case `pwd` in
2534    *[\\\"\#\$\&\'\`$am_lf]*)
2535 <    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2535 >    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536   esac
2537   case $srcdir in
2538    *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2539 <    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2539 >    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2540   esac
2541  
2542 < # Do `set' in a subshell so we don't clobber the current shell's
2542 > # Do 'set' in a subshell so we don't clobber the current shell's
2543   # arguments.  Must try -L first in case configure is actually a
2544   # symlink; some systems play weird games with the mod time of symlinks
2545   # (eg FreeBSD returns the mod time of the symlink's containing
2546   # directory).
2547   if (
2548 <   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549 <   if test "$*" = "X"; then
2550 <      # -L didn't work.
2551 <      set X `ls -t "$srcdir/configure" conftest.file`
2552 <   fi
2553 <   rm -f conftest.file
2554 <   if test "$*" != "X $srcdir/configure conftest.file" \
2555 <      && test "$*" != "X conftest.file $srcdir/configure"; then
2556 <
2557 <      # If neither matched, then we have a broken ls.  This can happen
2904 <      # if, for instance, CONFIG_SHELL is bash and it inherits a
2905 <      # broken ls alias from the environment.  This has actually
2906 <      # happened.  Such a system could not be considered "sane".
2907 <      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2908 < alias in your environment" "$LINENO" 5
2909 <   fi
2548 >   am_has_slept=no
2549 >   for am_try in 1 2; do
2550 >     echo "timestamp, slept: $am_has_slept" > conftest.file
2551 >     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2552 >     if test "$*" = "X"; then
2553 >        # -L didn't work.
2554 >        set X `ls -t "$srcdir/configure" conftest.file`
2555 >     fi
2556 >     if test "$*" != "X $srcdir/configure conftest.file" \
2557 >        && test "$*" != "X conftest.file $srcdir/configure"; then
2558  
2559 +        # If neither matched, then we have a broken ls.  This can happen
2560 +        # if, for instance, CONFIG_SHELL is bash and it inherits a
2561 +        # broken ls alias from the environment.  This has actually
2562 +        # happened.  Such a system could not be considered "sane".
2563 +        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2564 +  alias in your environment" "$LINENO" 5
2565 +     fi
2566 +     if test "$2" = conftest.file || test $am_try -eq 2; then
2567 +       break
2568 +     fi
2569 +     # Just in case.
2570 +     sleep 1
2571 +     am_has_slept=yes
2572 +   done
2573     test "$2" = conftest.file
2574     )
2575   then
2576     # Ok.
2577     :
2578   else
2579 <   as_fn_error "newly created file is older than distributed files!
2579 >   as_fn_error $? "newly created file is older than distributed files!
2580   Check your system clock" "$LINENO" 5
2581   fi
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583   $as_echo "yes" >&6; }
2584 + # If we didn't sleep, we still need to ensure time stamps of config.status and
2585 + # generated files are strictly newer.
2586 + am_sleep_pid=
2587 + if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2588 +  ( sleep 1 ) &
2589 +  am_sleep_pid=$!
2590 + fi
2591 +
2592 + rm -f conftest.file
2593 +
2594   test "$program_prefix" != NONE &&
2595    program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596   # Use a double $ so make ignores it.
# Line 2929 | Line 2601 | test "$program_suffix" != NONE &&
2601   ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602   program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2603  
2604 < # expand $ac_aux_dir to an absolute path
2605 < am_aux_dir=`cd $ac_aux_dir && pwd`
2604 > # Expand $ac_aux_dir to an absolute path.
2605 > am_aux_dir=`cd "$ac_aux_dir" && pwd`
2606  
2607   if test x"${MISSING+set}" != xset; then
2608    case $am_aux_dir in
# Line 2941 | Line 2613 | if test x"${MISSING+set}" != xset; then
2613    esac
2614   fi
2615   # Use eval to expand $SHELL
2616 < if eval "$MISSING --run true"; then
2617 <  am_missing_run="$MISSING --run "
2616 > if eval "$MISSING --is-lightweight"; then
2617 >  am_missing_run="$MISSING "
2618   else
2619    am_missing_run=
2620 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2621 < $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2620 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2621 > $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2622   fi
2623  
2624 < if test x"${install_sh}" != xset; then
2624 > if test x"${install_sh+set}" != xset; then
2625    case $am_aux_dir in
2626    *\ * | *\     *)
2627      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
# Line 2958 | Line 2630 | if test x"${install_sh}" != xset; then
2630    esac
2631   fi
2632  
2633 < # Installed binaries are usually stripped using `strip' when the user
2634 < # run `make install-strip'.  However `strip' might not be the right
2633 > # Installed binaries are usually stripped using 'strip' when the user
2634 > # run "make install-strip".  However 'strip' might not be the right
2635   # tool to use in cross-compilation environments, therefore Automake
2636 < # will honor the `STRIP' environment variable to overrule this program.
2636 > # will honor the 'STRIP' environment variable to overrule this program.
2637   if test "$cross_compiling" != no; then
2638    if test -n "$ac_tool_prefix"; then
2639    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640   set dummy ${ac_tool_prefix}strip; ac_word=$2
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642   $as_echo_n "checking for $ac_word... " >&6; }
2643 < if test "${ac_cv_prog_STRIP+set}" = set; then :
2643 > if ${ac_cv_prog_STRIP+:} false; then :
2644    $as_echo_n "(cached) " >&6
2645   else
2646    if test -n "$STRIP"; then
# Line 2980 | Line 2652 | do
2652    IFS=$as_save_IFS
2653    test -z "$as_dir" && as_dir=.
2654      for ac_exec_ext in '' $ac_executable_extensions; do
2655 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2657      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658      break 2
# Line 3008 | Line 2680 | if test -z "$ac_cv_prog_STRIP"; then
2680   set dummy strip; ac_word=$2
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682   $as_echo_n "checking for $ac_word... " >&6; }
2683 < if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2683 > if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2684    $as_echo_n "(cached) " >&6
2685   else
2686    if test -n "$ac_ct_STRIP"; then
# Line 3020 | Line 2692 | do
2692    IFS=$as_save_IFS
2693    test -z "$as_dir" && as_dir=.
2694      for ac_exec_ext in '' $ac_executable_extensions; do
2695 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696      ac_cv_prog_ac_ct_STRIP="strip"
2697      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698      break 2
# Line 3061 | Line 2733 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2734   $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2735   if test -z "$MKDIR_P"; then
2736 <  if test "${ac_cv_path_mkdir+set}" = set; then :
2736 >  if ${ac_cv_path_mkdir+:} false; then :
2737    $as_echo_n "(cached) " >&6
2738   else
2739    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 3071 | Line 2743 | do
2743    test -z "$as_dir" && as_dir=.
2744      for ac_prog in mkdir gmkdir; do
2745           for ac_exec_ext in '' $ac_executable_extensions; do
2746 <           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2746 >           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2747             case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748               'mkdir (GNU coreutils) '* | \
2749               'mkdir (coreutils) '* | \
# Line 3086 | Line 2758 | IFS=$as_save_IFS
2758  
2759   fi
2760  
2761 +  test -d ./--version && rmdir ./--version
2762    if test "${ac_cv_path_mkdir+set}" = set; then
2763      MKDIR_P="$ac_cv_path_mkdir -p"
2764    else
# Line 3093 | Line 2766 | fi
2766      # value for MKDIR_P within a source directory, because that will
2767      # break other packages using the cache if that directory is
2768      # removed, or if the value is a relative name.
3096    test -d ./--version && rmdir ./--version
2769      MKDIR_P="$ac_install_sh -d"
2770    fi
2771   fi
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2773   $as_echo "$MKDIR_P" >&6; }
2774  
3103 mkdir_p="$MKDIR_P"
3104 case $mkdir_p in
3105  [\\/$]* | ?:[\\/]*) ;;
3106  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107 esac
3108
2775   for ac_prog in gawk mawk nawk awk
2776   do
2777    # Extract the first word of "$ac_prog", so it can be a program name with args.
2778   set dummy $ac_prog; ac_word=$2
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780   $as_echo_n "checking for $ac_word... " >&6; }
2781 < if test "${ac_cv_prog_AWK+set}" = set; then :
2781 > if ${ac_cv_prog_AWK+:} false; then :
2782    $as_echo_n "(cached) " >&6
2783   else
2784    if test -n "$AWK"; then
# Line 3124 | Line 2790 | do
2790    IFS=$as_save_IFS
2791    test -z "$as_dir" && as_dir=.
2792      for ac_exec_ext in '' $ac_executable_extensions; do
2793 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794      ac_cv_prog_AWK="$ac_prog"
2795      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796      break 2
# Line 3152 | Line 2818 | done
2818   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819   set x ${MAKE-make}
2820   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2821 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2821 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2822    $as_echo_n "(cached) " >&6
2823   else
2824    cat >conftest.make <<\_ACEOF
# Line 3160 | Line 2826 | SHELL = /bin/sh
2826   all:
2827          @echo '@@@%%%=$(MAKE)=@@@%%%'
2828   _ACEOF
2829 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2830   case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831    *@@@%%%=?*=@@@%%%*)
2832      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 3188 | Line 2854 | else
2854   fi
2855   rmdir .tst 2>/dev/null
2856  
2857 + # Check whether --enable-silent-rules was given.
2858 + if test "${enable_silent_rules+set}" = set; then :
2859 +  enableval=$enable_silent_rules;
2860 + fi
2861 +
2862 + case $enable_silent_rules in # (((
2863 +  yes) AM_DEFAULT_VERBOSITY=0;;
2864 +   no) AM_DEFAULT_VERBOSITY=1;;
2865 +    *) AM_DEFAULT_VERBOSITY=1;;
2866 + esac
2867 + am_make=${MAKE-make}
2868 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2869 + $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2870 + if ${am_cv_make_support_nested_variables+:} false; then :
2871 +  $as_echo_n "(cached) " >&6
2872 + else
2873 +  if $as_echo 'TRUE=$(BAR$(V))
2874 + BAR0=false
2875 + BAR1=true
2876 + V=1
2877 + am__doit:
2878 +        @$(TRUE)
2879 + .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2880 +  am_cv_make_support_nested_variables=yes
2881 + else
2882 +  am_cv_make_support_nested_variables=no
2883 + fi
2884 + fi
2885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2886 + $as_echo "$am_cv_make_support_nested_variables" >&6; }
2887 + if test $am_cv_make_support_nested_variables = yes; then
2888 +    AM_V='$(V)'
2889 +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2890 + else
2891 +  AM_V=$AM_DEFAULT_VERBOSITY
2892 +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2893 + fi
2894 + AM_BACKSLASH='\'
2895 +
2896   if test "`cd $srcdir && pwd`" != "`pwd`"; then
2897    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2898    # is not polluted with repeated "-I."
2899    am__isrc=' -I$(srcdir)'
2900    # test to see if srcdir already configured
2901    if test -f $srcdir/config.status; then
2902 <    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902 >    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2903    fi
2904   fi
2905  
# Line 3210 | Line 2915 | fi
2915  
2916   # Define the identity of the package.
2917   PACKAGE='ircd-hybrid'
2918 < VERSION='7.2.4'
2918 > VERSION='TRUNK'
2919  
2920  
2921   cat >>confdefs.h <<_ACEOF
# Line 3238 | Line 2943 | AUTOHEADER=${AUTOHEADER-"${am_missing_ru
2943  
2944   MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945  
2946 < # We need awk for the "check" target.  The system "awk" is bad on
2947 < # some platforms.
2948 < # Always define AMTAR for backward compatibility.
2946 > # For better backward compatibility.  To be removed once Automake 1.9.x
2947 > # dies out for good.  For more background, see:
2948 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2949 > # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950 > mkdir_p='$(MKDIR_P)'
2951 >
2952 > # We need awk for the "check" target (and possibly the TAP driver).  The
2953 > # system "awk" is bad on some platforms.
2954 > # Always define AMTAR for backward compatibility.  Yes, it's still used
2955 > # in the wild :-(  We should find a proper way to deprecate it ...
2956 > AMTAR='$${TAR-tar}'
2957 >
2958 >
2959 > # We'll loop over all known methods to create a tar archive until one works.
2960 > _am_tools='gnutar  pax cpio none'
2961  
2962 < AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 > am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2963  
3247 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964  
2965  
2966  
2967  
2968  
2969 + # POSIX will say in a future version that running "rm -f" with no argument
2970 + # is OK; and we want to be able to make that assumption in our Makefile
2971 + # recipes.  So use an aggressive probe to check that the usage we want is
2972 + # actually supported "in the wild" to an acceptable degree.
2973 + # See automake bug#10828.
2974 + # To make any issue more visible, cause the running configure to be aborted
2975 + # by default if the 'rm' program in use doesn't match our expectations; the
2976 + # user can still override this though.
2977 + if rm -f && rm -fr && rm -rf; then : OK; else
2978 +  cat >&2 <<'END'
2979 + Oops!
2980 +
2981 + Your 'rm' program seems unable to run without file operands specified
2982 + on the command line, even when the '-f' option is present.  This is contrary
2983 + to the behaviour of most rm programs out there, and not conforming with
2984 + the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2985 +
2986 + Please tell bug-automake@gnu.org about your system, including the value
2987 + of your $PATH and any error possibly output before this message.  This
2988 + can help us improve future automake versions.
2989 +
2990 + END
2991 +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2992 +    echo 'Configuration will proceed anyway, since you have set the' >&2
2993 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2994 +    echo >&2
2995 +  else
2996 +    cat >&2 <<'END'
2997 + Aborting the configuration process, to ensure you take notice of the issue.
2998 +
2999 + You can download and install GNU coreutils to get an 'rm' implementation
3000 + that behaves properly: <https://www.gnu.org/software/coreutils/>.
3001 +
3002 + If you want to complete the configuration process using your problematic
3003 + 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3004 + to "yes", and re-run configure.
3005 +
3006 + END
3007 +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008 +  fi
3009 + fi
3010 +
3011  
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013   $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Line 3273 | Line 3031 | fi
3031    MAINT=$MAINTAINER_MODE_TRUE
3032  
3033  
3276 ac_config_headers="$ac_config_headers config.h"
3034  
3035 + ac_config_headers="$ac_config_headers config.h"
3036  
3037  
3038  
3039   # Checks for programs.
3040 + DEPDIR="${am__leading_dot}deps"
3041 +
3042 + ac_config_commands="$ac_config_commands depfiles"
3043 +
3044 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3045 + $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3046 + cat > confinc.mk << 'END'
3047 + am__doit:
3048 +        @echo this is the am__doit target >confinc.out
3049 + .PHONY: am__doit
3050 + END
3051 + am__include="#"
3052 + am__quote=
3053 + # BSD make does it like this.
3054 + echo '.include "confinc.mk" # ignored' > confmf.BSD
3055 + # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3056 + echo 'include confinc.mk # ignored' > confmf.GNU
3057 + _am_result=no
3058 + for s in GNU BSD; do
3059 +  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3060 +   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3061 +   ac_status=$?
3062 +   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 +   (exit $ac_status); }
3064 +  case $?:`cat confinc.out 2>/dev/null` in #(
3065 +  '0:this is the am__doit target') :
3066 +    case $s in #(
3067 +  BSD) :
3068 +    am__include='.include' am__quote='"' ;; #(
3069 +  *) :
3070 +    am__include='include' am__quote='' ;;
3071 + esac ;; #(
3072 +  *) :
3073 +     ;;
3074 + esac
3075 +  if test "$am__include" != "#"; then
3076 +    _am_result="yes ($s style)"
3077 +    break
3078 +  fi
3079 + done
3080 + rm -f confinc.* confmf.*
3081 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3082 + $as_echo "${_am_result}" >&6; }
3083 +
3084 + # Check whether --enable-dependency-tracking was given.
3085 + if test "${enable_dependency_tracking+set}" = set; then :
3086 +  enableval=$enable_dependency_tracking;
3087 + fi
3088 +
3089 + if test "x$enable_dependency_tracking" != xno; then
3090 +  am_depcomp="$ac_aux_dir/depcomp"
3091 +  AMDEPBACKSLASH='\'
3092 +  am__nodep='_no'
3093 + fi
3094 + if test "x$enable_dependency_tracking" != xno; then
3095 +  AMDEP_TRUE=
3096 +  AMDEP_FALSE='#'
3097 + else
3098 +  AMDEP_TRUE='#'
3099 +  AMDEP_FALSE=
3100 + fi
3101 +
3102 +
3103   ac_ext=c
3104   ac_cpp='$CPP $CPPFLAGS'
3105   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 3289 | Line 3110 | if test -n "$ac_tool_prefix"; then
3110   set dummy ${ac_tool_prefix}gcc; ac_word=$2
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112   $as_echo_n "checking for $ac_word... " >&6; }
3113 < if test "${ac_cv_prog_CC+set}" = set; then :
3113 > if ${ac_cv_prog_CC+:} false; then :
3114    $as_echo_n "(cached) " >&6
3115   else
3116    if test -n "$CC"; then
# Line 3301 | Line 3122 | do
3122    IFS=$as_save_IFS
3123    test -z "$as_dir" && as_dir=.
3124      for ac_exec_ext in '' $ac_executable_extensions; do
3125 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126      ac_cv_prog_CC="${ac_tool_prefix}gcc"
3127      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128      break 2
# Line 3329 | Line 3150 | if test -z "$ac_cv_prog_CC"; then
3150   set dummy gcc; ac_word=$2
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152   $as_echo_n "checking for $ac_word... " >&6; }
3153 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3154    $as_echo_n "(cached) " >&6
3155   else
3156    if test -n "$ac_ct_CC"; then
# Line 3341 | Line 3162 | do
3162    IFS=$as_save_IFS
3163    test -z "$as_dir" && as_dir=.
3164      for ac_exec_ext in '' $ac_executable_extensions; do
3165 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166      ac_cv_prog_ac_ct_CC="gcc"
3167      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168      break 2
# Line 3382 | Line 3203 | if test -z "$CC"; then
3203   set dummy ${ac_tool_prefix}cc; ac_word=$2
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205   $as_echo_n "checking for $ac_word... " >&6; }
3206 < if test "${ac_cv_prog_CC+set}" = set; then :
3206 > if ${ac_cv_prog_CC+:} false; then :
3207    $as_echo_n "(cached) " >&6
3208   else
3209    if test -n "$CC"; then
# Line 3394 | Line 3215 | do
3215    IFS=$as_save_IFS
3216    test -z "$as_dir" && as_dir=.
3217      for ac_exec_ext in '' $ac_executable_extensions; do
3218 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219      ac_cv_prog_CC="${ac_tool_prefix}cc"
3220      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221      break 2
# Line 3422 | Line 3243 | if test -z "$CC"; then
3243   set dummy cc; ac_word=$2
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245   $as_echo_n "checking for $ac_word... " >&6; }
3246 < if test "${ac_cv_prog_CC+set}" = set; then :
3246 > if ${ac_cv_prog_CC+:} false; then :
3247    $as_echo_n "(cached) " >&6
3248   else
3249    if test -n "$CC"; then
# Line 3435 | Line 3256 | do
3256    IFS=$as_save_IFS
3257    test -z "$as_dir" && as_dir=.
3258      for ac_exec_ext in '' $ac_executable_extensions; do
3259 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261         ac_prog_rejected=yes
3262         continue
# Line 3481 | Line 3302 | if test -z "$CC"; then
3302   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304   $as_echo_n "checking for $ac_word... " >&6; }
3305 < if test "${ac_cv_prog_CC+set}" = set; then :
3305 > if ${ac_cv_prog_CC+:} false; then :
3306    $as_echo_n "(cached) " >&6
3307   else
3308    if test -n "$CC"; then
# Line 3493 | Line 3314 | do
3314    IFS=$as_save_IFS
3315    test -z "$as_dir" && as_dir=.
3316      for ac_exec_ext in '' $ac_executable_extensions; do
3317 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320      break 2
# Line 3525 | Line 3346 | do
3346   set dummy $ac_prog; ac_word=$2
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348   $as_echo_n "checking for $ac_word... " >&6; }
3349 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3350    $as_echo_n "(cached) " >&6
3351   else
3352    if test -n "$ac_ct_CC"; then
# Line 3537 | Line 3358 | do
3358    IFS=$as_save_IFS
3359    test -z "$as_dir" && as_dir=.
3360      for ac_exec_ext in '' $ac_executable_extensions; do
3361 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362      ac_cv_prog_ac_ct_CC="$ac_prog"
3363      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364      break 2
# Line 3579 | Line 3400 | fi
3400  
3401   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 < as_fn_error "no acceptable C compiler found in \$PATH
3404 < See \`config.log' for more details." "$LINENO" 5; }
3403 > as_fn_error $? "no acceptable C compiler found in \$PATH
3404 > See \`config.log' for more details" "$LINENO" 5; }
3405  
3406   # Provide some information about the compiler.
3407   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 3601 | Line 3422 | $as_echo "$ac_try_echo"; } >&5
3422   ... rest of stderr output deleted ...
3423           10q' conftest.err >conftest.er1
3424      cat conftest.er1 >&5
3604    rm -f conftest.er1 conftest.err
3425    fi
3426 +  rm -f conftest.er1 conftest.err
3427    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428    test $ac_status = 0; }
3429   done
3430  
3431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432   /* end confdefs.h.  */
3433 < #include <stdio.h>
3433 >
3434   int
3435   main ()
3436   {
3616 FILE *f = fopen ("conftest.out", "w");
3617 return ferror (f) || fclose (f) != 0;
3437  
3438    ;
3439    return 0;
3440   }
3441   _ACEOF
3442   ac_clean_files_save=$ac_clean_files
3443 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3443 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3444   # Try to create an executable without -o first, disregard a.out.
3445   # It will help us diagnose broken compilers, and finding out an intuition
3446   # of exeext.
3447 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3448 < $as_echo_n "checking for C compiler default output file name... " >&6; }
3447 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3448 > $as_echo_n "checking whether the C compiler works... " >&6; }
3449   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3450  
3451   # The possible output files:
# Line 3688 | Line 3507 | test "$ac_cv_exeext" = no && ac_cv_exeex
3507   else
3508    ac_file=''
3509   fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3692 $as_echo "$ac_file" >&6; }
3510   if test -z "$ac_file"; then :
3511 <  $as_echo "$as_me: failed program was:" >&5
3511 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 > $as_echo "no" >&6; }
3513 > $as_echo "$as_me: failed program was:" >&5
3514   sed 's/^/| /' conftest.$ac_ext >&5
3515  
3516   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 < { as_fn_set_status 77
3519 < as_fn_error "C compiler cannot create executables
3520 < See \`config.log' for more details." "$LINENO" 5; }; }
3518 > as_fn_error 77 "C compiler cannot create executables
3519 > See \`config.log' for more details" "$LINENO" 5; }
3520 > else
3521 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 > $as_echo "yes" >&6; }
3523   fi
3524 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3525 + $as_echo_n "checking for C compiler default output file name... " >&6; }
3526 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3527 + $as_echo "$ac_file" >&6; }
3528   ac_exeext=$ac_cv_exeext
3529  
3530 < # Check that the compiler produces executables we can run.  If not, either
3706 < # the compiler is broken, or we cross compile.
3707 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3708 < $as_echo_n "checking whether the C compiler works... " >&6; }
3709 < # If not cross compiling, check that we can run a simple program.
3710 < if test "$cross_compiling" != yes; then
3711 <  if { ac_try='./$ac_file'
3712 <  { { case "(($ac_try" in
3713 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 <  *) ac_try_echo=$ac_try;;
3715 < esac
3716 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 < $as_echo "$ac_try_echo"; } >&5
3718 <  (eval "$ac_try") 2>&5
3719 <  ac_status=$?
3720 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 <  test $ac_status = 0; }; }; then
3722 <    cross_compiling=no
3723 <  else
3724 <    if test "$cross_compiling" = maybe; then
3725 <        cross_compiling=yes
3726 <    else
3727 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 < as_fn_error "cannot run C compiled programs.
3730 < If you meant to cross compile, use \`--host'.
3731 < See \`config.log' for more details." "$LINENO" 5; }
3732 <    fi
3733 <  fi
3734 < fi
3735 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3736 < $as_echo "yes" >&6; }
3737 <
3738 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3530 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3531   ac_clean_files=$ac_clean_files_save
3740 # Check that the compiler produces executables we can run.  If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3745 $as_echo "$cross_compiling" >&6; }
3746
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3533   $as_echo_n "checking for suffix of executables... " >&6; }
3534   if { { ac_try="$ac_link"
# Line 3773 | Line 3558 | done
3558   else
3559    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3562 < See \`config.log' for more details." "$LINENO" 5; }
3561 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3562 > See \`config.log' for more details" "$LINENO" 5; }
3563   fi
3564 < rm -f conftest$ac_cv_exeext
3564 > rm -f conftest conftest$ac_cv_exeext
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3566   $as_echo "$ac_cv_exeext" >&6; }
3567  
3568   rm -f conftest.$ac_ext
3569   EXEEXT=$ac_cv_exeext
3570   ac_exeext=$EXEEXT
3571 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 + /* end confdefs.h.  */
3573 + #include <stdio.h>
3574 + int
3575 + main ()
3576 + {
3577 + FILE *f = fopen ("conftest.out", "w");
3578 + return ferror (f) || fclose (f) != 0;
3579 +
3580 +  ;
3581 +  return 0;
3582 + }
3583 + _ACEOF
3584 + ac_clean_files="$ac_clean_files conftest.out"
3585 + # Check that the compiler produces executables we can run.  If not, either
3586 + # the compiler is broken, or we cross compile.
3587 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3588 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3589 + if test "$cross_compiling" != yes; then
3590 +  { { ac_try="$ac_link"
3591 + case "(($ac_try" in
3592 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 +  *) ac_try_echo=$ac_try;;
3594 + esac
3595 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 + $as_echo "$ac_try_echo"; } >&5
3597 +  (eval "$ac_link") 2>&5
3598 +  ac_status=$?
3599 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 +  test $ac_status = 0; }
3601 +  if { ac_try='./conftest$ac_cv_exeext'
3602 +  { { case "(($ac_try" in
3603 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 +  *) ac_try_echo=$ac_try;;
3605 + esac
3606 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 + $as_echo "$ac_try_echo"; } >&5
3608 +  (eval "$ac_try") 2>&5
3609 +  ac_status=$?
3610 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 +  test $ac_status = 0; }; }; then
3612 +    cross_compiling=no
3613 +  else
3614 +    if test "$cross_compiling" = maybe; then
3615 +        cross_compiling=yes
3616 +    else
3617 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 + as_fn_error $? "cannot run C compiled programs.
3620 + If you meant to cross compile, use \`--host'.
3621 + See \`config.log' for more details" "$LINENO" 5; }
3622 +    fi
3623 +  fi
3624 + fi
3625 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3626 + $as_echo "$cross_compiling" >&6; }
3627 +
3628 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3629 + ac_clean_files=$ac_clean_files_save
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3631   $as_echo_n "checking for suffix of object files... " >&6; }
3632 < if test "${ac_cv_objext+set}" = set; then :
3632 > if ${ac_cv_objext+:} false; then :
3633    $as_echo_n "(cached) " >&6
3634   else
3635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3825 | Line 3669 | sed 's/^/| /' conftest.$ac_ext >&5
3669  
3670   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 < as_fn_error "cannot compute suffix of object files: cannot compile
3673 < See \`config.log' for more details." "$LINENO" 5; }
3672 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3673 > See \`config.log' for more details" "$LINENO" 5; }
3674   fi
3675   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3676   fi
# Line 3836 | Line 3680 | OBJEXT=$ac_cv_objext
3680   ac_objext=$OBJEXT
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3682   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3683 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3683 > if ${ac_cv_c_compiler_gnu+:} false; then :
3684    $as_echo_n "(cached) " >&6
3685   else
3686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3873 | Line 3717 | ac_test_CFLAGS=${CFLAGS+set}
3717   ac_save_CFLAGS=$CFLAGS
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3719   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3720 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3720 > if ${ac_cv_prog_cc_g+:} false; then :
3721    $as_echo_n "(cached) " >&6
3722   else
3723    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 3951 | Line 3795 | else
3795   fi
3796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3797   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3798 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3798 > if ${ac_cv_prog_cc_c89+:} false; then :
3799    $as_echo_n "(cached) " >&6
3800   else
3801    ac_cv_prog_cc_c89=no
# Line 3960 | Line 3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_
3804   /* end confdefs.h.  */
3805   #include <stdarg.h>
3806   #include <stdio.h>
3807 < #include <sys/types.h>
3964 < #include <sys/stat.h>
3807 > struct stat;
3808   /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3809   struct buf { int x; };
3810   FILE * (*rcsopen) (struct buf *, struct stat *, int);
# Line 4045 | Line 3888 | ac_cpp='$CPP $CPPFLAGS'
3888   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 DEPDIR="${am__leading_dot}deps"
4049
4050 ac_config_commands="$ac_config_commands depfiles"
4051
4052
4053 am_make=${MAKE-make}
4054 cat > confinc << 'END'
4055 am__doit:
4056        @echo this is the am__doit target
4057 .PHONY: am__doit
4058 END
4059 # If we don't find an include directive, just comment out the code.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4061 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4062 am__include="#"
4063 am__quote=
4064 _am_result=none
4065 # First try GNU make style include.
4066 echo "include confinc" > confmf
4067 # Ignore all kinds of additional output from `make'.
4068 case `$am_make -s -f confmf 2> /dev/null` in #(
4069 *the\ am__doit\ target*)
4070  am__include=include
4071  am__quote=
4072  _am_result=GNU
4073  ;;
4074 esac
4075 # Now try BSD make style include.
4076 if test "$am__include" = "#"; then
4077   echo '.include "confinc"' > confmf
4078   case `$am_make -s -f confmf 2> /dev/null` in #(
4079   *the\ am__doit\ target*)
4080     am__include=.include
4081     am__quote="\""
4082     _am_result=BSD
4083     ;;
4084   esac
4085 fi
3891  
3892 + ac_ext=c
3893 + ac_cpp='$CPP $CPPFLAGS'
3894 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3898 + $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3899 + if ${am_cv_prog_cc_c_o+:} false; then :
3900 +  $as_echo_n "(cached) " >&6
3901 + else
3902 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 + /* end confdefs.h.  */
3904  
3905 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906 < $as_echo "$_am_result" >&6; }
3907 < rm -f confinc confmf
3905 > int
3906 > main ()
3907 > {
3908  
3909 < # Check whether --enable-dependency-tracking was given.
3910 < if test "${enable_dependency_tracking+set}" = set; then :
3911 <  enableval=$enable_dependency_tracking;
3909 >  ;
3910 >  return 0;
3911 > }
3912 > _ACEOF
3913 >  # Make sure it works both with $CC and with simple cc.
3914 >  # Following AC_PROG_CC_C_O, we do the test twice because some
3915 >  # compilers refuse to overwrite an existing .o file with -o,
3916 >  # though they will create one.
3917 >  am_cv_prog_cc_c_o=yes
3918 >  for am_i in 1 2; do
3919 >    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3920 >   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3921 >   ac_status=$?
3922 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 >   (exit $ac_status); } \
3924 >         && test -f conftest2.$ac_objext; then
3925 >      : OK
3926 >    else
3927 >      am_cv_prog_cc_c_o=no
3928 >      break
3929 >    fi
3930 >  done
3931 >  rm -f core conftest*
3932 >  unset am_i
3933   fi
3934 <
3935 < if test "x$enable_dependency_tracking" != xno; then
3936 <  am_depcomp="$ac_aux_dir/depcomp"
3937 <  AMDEPBACKSLASH='\'
3934 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3935 > $as_echo "$am_cv_prog_cc_c_o" >&6; }
3936 > if test "$am_cv_prog_cc_c_o" != yes; then
3937 >   # Losing compiler, so override with the script.
3938 >   # FIXME: It is wrong to rewrite CC.
3939 >   # But if we don't then we get into trouble of one sort or another.
3940 >   # A longer-term fix would be to have automake use am__CC in this case,
3941 >   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3942 >   CC="$am_aux_dir/compile $CC"
3943   fi
3944 < if test "x$enable_dependency_tracking" != xno; then
3945 <  AMDEP_TRUE=
3946 <  AMDEP_FALSE='#'
3947 < else
3948 <  AMDEP_TRUE='#'
4106 <  AMDEP_FALSE=
4107 < fi
4108 <
3944 > ac_ext=c
3945 > ac_cpp='$CPP $CPPFLAGS'
3946 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949  
3950  
3951   depcc="$CC"   am_compiler_list=
3952  
3953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3954   $as_echo_n "checking dependency style of $depcc... " >&6; }
3955 < if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3955 > if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3956    $as_echo_n "(cached) " >&6
3957   else
3958    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3959    # We make a subdir and do the tests there.  Otherwise we can end up
3960    # making bogus files that we don't know about and never remove.  For
3961    # instance it was reported that on HP-UX the gcc test will end up
3962 <  # making a dummy file named `D' -- because `-MD' means `put the output
3963 <  # in D'.
3962 >  # making a dummy file named 'D' -- because '-MD' means "put the output
3963 >  # in D".
3964 >  rm -rf conftest.dir
3965    mkdir conftest.dir
3966    # Copy depcomp to subdir because otherwise we won't find it if we're
3967    # using a relative directory.
# Line 4154 | Line 3995 | else
3995      : > sub/conftest.c
3996      for i in 1 2 3 4 5 6; do
3997        echo '#include "conftst'$i'.h"' >> sub/conftest.c
3998 <      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3999 <      # Solaris 8's {/usr,}/bin/sh.
4000 <      touch sub/conftst$i.h
3998 >      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3999 >      # Solaris 10 /bin/sh.
4000 >      echo '/* dummy */' > sub/conftst$i.h
4001      done
4002      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4003  
4004 <    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4004 >    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4005      # mode.  It turns out that the SunPro C++ compiler does not properly
4006 <    # handle `-M -o', and we need to detect this.  Also, some Intel
4007 <    # versions had trouble with output in subdirs
4006 >    # handle '-M -o', and we need to detect this.  Also, some Intel
4007 >    # versions had trouble with output in subdirs.
4008      am__obj=sub/conftest.${OBJEXT-o}
4009      am__minus_obj="-o $am__obj"
4010      case $depmode in
# Line 4172 | Line 4013 | else
4013        test "$am__universal" = false || continue
4014        ;;
4015      nosideeffect)
4016 <      # after this tag, mechanisms are not by side-effect, so they'll
4017 <      # only be used when explicitly requested
4016 >      # After this tag, mechanisms are not by side-effect, so they'll
4017 >      # only be used when explicitly requested.
4018        if test "x$enable_dependency_tracking" = xyes; then
4019          continue
4020        else
4021          break
4022        fi
4023        ;;
4024 <    msvisualcpp | msvcmsys)
4025 <      # This compiler won't grok `-c -o', but also, the minuso test has
4024 >    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4025 >      # This compiler won't grok '-c -o', but also, the minuso test has
4026        # not run yet.  These depmodes are late enough in the game, and
4027        # so weak that their functioning should not be impacted.
4028        am__obj=conftest.${OBJEXT-o}
# Line 4235 | Line 4076 | else
4076   fi
4077  
4078  
4079 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4080 + $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4081 + if ${ac_cv_prog_cc_c99+:} false; then :
4082 +  $as_echo_n "(cached) " >&6
4083 + else
4084 +  ac_cv_prog_cc_c99=no
4085 + ac_save_CC=$CC
4086 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 + /* end confdefs.h.  */
4088 + #include <stdarg.h>
4089 + #include <stdbool.h>
4090 + #include <stdlib.h>
4091 + #include <wchar.h>
4092 + #include <stdio.h>
4093 +
4094 + // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4095 + #define debug(...) fprintf (stderr, __VA_ARGS__)
4096 + #define showlist(...) puts (#__VA_ARGS__)
4097 + #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4098 + static void
4099 + test_varargs_macros (void)
4100 + {
4101 +  int x = 1234;
4102 +  int y = 5678;
4103 +  debug ("Flag");
4104 +  debug ("X = %d\n", x);
4105 +  showlist (The first, second, and third items.);
4106 +  report (x>y, "x is %d but y is %d", x, y);
4107 + }
4108 +
4109 + // Check long long types.
4110 + #define BIG64 18446744073709551615ull
4111 + #define BIG32 4294967295ul
4112 + #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4113 + #if !BIG_OK
4114 +  your preprocessor is broken;
4115 + #endif
4116 + #if BIG_OK
4117 + #else
4118 +  your preprocessor is broken;
4119 + #endif
4120 + static long long int bignum = -9223372036854775807LL;
4121 + static unsigned long long int ubignum = BIG64;
4122 +
4123 + struct incomplete_array
4124 + {
4125 +  int datasize;
4126 +  double data[];
4127 + };
4128 +
4129 + struct named_init {
4130 +  int number;
4131 +  const wchar_t *name;
4132 +  double average;
4133 + };
4134 +
4135 + typedef const char *ccp;
4136 +
4137 + static inline int
4138 + test_restrict (ccp restrict text)
4139 + {
4140 +  // See if C++-style comments work.
4141 +  // Iterate through items via the restricted pointer.
4142 +  // Also check for declarations in for loops.
4143 +  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4144 +    continue;
4145 +  return 0;
4146 + }
4147 +
4148 + // Check varargs and va_copy.
4149 + static void
4150 + test_varargs (const char *format, ...)
4151 + {
4152 +  va_list args;
4153 +  va_start (args, format);
4154 +  va_list args_copy;
4155 +  va_copy (args_copy, args);
4156 +
4157 +  const char *str;
4158 +  int number;
4159 +  float fnumber;
4160 +
4161 +  while (*format)
4162 +    {
4163 +      switch (*format++)
4164 +        {
4165 +        case 's': // string
4166 +          str = va_arg (args_copy, const char *);
4167 +          break;
4168 +        case 'd': // int
4169 +          number = va_arg (args_copy, int);
4170 +          break;
4171 +        case 'f': // float
4172 +          fnumber = va_arg (args_copy, double);
4173 +          break;
4174 +        default:
4175 +          break;
4176 +        }
4177 +    }
4178 +  va_end (args_copy);
4179 +  va_end (args);
4180 + }
4181 +
4182 + int
4183 + main ()
4184 + {
4185 +
4186 +  // Check bool.
4187 +  _Bool success = false;
4188 +
4189 +  // Check restrict.
4190 +  if (test_restrict ("String literal") == 0)
4191 +    success = true;
4192 +  char *restrict newvar = "Another string";
4193 +
4194 +  // Check varargs.
4195 +  test_varargs ("s, d' f .", "string", 65, 34.234);
4196 +  test_varargs_macros ();
4197 +
4198 +  // Check flexible array members.
4199 +  struct incomplete_array *ia =
4200 +    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4201 +  ia->datasize = 10;
4202 +  for (int i = 0; i < ia->datasize; ++i)
4203 +    ia->data[i] = i * 1.234;
4204 +
4205 +  // Check named initializers.
4206 +  struct named_init ni = {
4207 +    .number = 34,
4208 +    .name = L"Test wide string",
4209 +    .average = 543.34343,
4210 +  };
4211 +
4212 +  ni.number = 58;
4213 +
4214 +  int dynamic_array[ni.number];
4215 +  dynamic_array[ni.number - 1] = 543;
4216 +
4217 +  // work around unused variable warnings
4218 +  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4219 +          || dynamic_array[ni.number - 1] != 543);
4220 +
4221 +  ;
4222 +  return 0;
4223 + }
4224 + _ACEOF
4225 + for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4226 + do
4227 +  CC="$ac_save_CC $ac_arg"
4228 +  if ac_fn_c_try_compile "$LINENO"; then :
4229 +  ac_cv_prog_cc_c99=$ac_arg
4230 + fi
4231 + rm -f core conftest.err conftest.$ac_objext
4232 +  test "x$ac_cv_prog_cc_c99" != "xno" && break
4233 + done
4234 + rm -f conftest.$ac_ext
4235 + CC=$ac_save_CC
4236 +
4237 + fi
4238 + # AC_CACHE_VAL
4239 + case "x$ac_cv_prog_cc_c99" in
4240 +  x)
4241 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 + $as_echo "none needed" >&6; } ;;
4243 +  xno)
4244 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4245 + $as_echo "unsupported" >&6; } ;;
4246 +  *)
4247 +    CC="$CC $ac_cv_prog_cc_c99"
4248 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4249 + $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4250 + esac
4251 + if test "x$ac_cv_prog_cc_c99" != xno; then :
4252 +
4253 + fi
4254 +
4255 +
4256 + if test "$ac_cv_prog_cc_c99" = "no"; then :
4257 +  as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4258 + fi
4259   for ac_prog in 'bison -y' byacc
4260   do
4261    # Extract the first word of "$ac_prog", so it can be a program name with args.
4262   set dummy $ac_prog; ac_word=$2
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264   $as_echo_n "checking for $ac_word... " >&6; }
4265 < if test "${ac_cv_prog_YACC+set}" = set; then :
4265 > if ${ac_cv_prog_YACC+:} false; then :
4266    $as_echo_n "(cached) " >&6
4267   else
4268    if test -n "$YACC"; then
# Line 4253 | Line 4274 | do
4274    IFS=$as_save_IFS
4275    test -z "$as_dir" && as_dir=.
4276      for ac_exec_ext in '' $ac_executable_extensions; do
4277 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278      ac_cv_prog_YACC="$ac_prog"
4279      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280      break 2
# Line 4285 | Line 4306 | do
4306   set dummy $ac_prog; ac_word=$2
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308   $as_echo_n "checking for $ac_word... " >&6; }
4309 < if test "${ac_cv_prog_LEX+set}" = set; then :
4309 > if ${ac_cv_prog_LEX+:} false; then :
4310    $as_echo_n "(cached) " >&6
4311   else
4312    if test -n "$LEX"; then
# Line 4297 | Line 4318 | do
4318    IFS=$as_save_IFS
4319    test -z "$as_dir" && as_dir=.
4320      for ac_exec_ext in '' $ac_executable_extensions; do
4321 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322      ac_cv_prog_LEX="$ac_prog"
4323      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324      break 2
# Line 4329 | Line 4350 | a { ECHO; }
4350   b { REJECT; }
4351   c { yymore (); }
4352   d { yyless (1); }
4353 < e { yyless (input () != 0); }
4353 > e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4354 >    yyless ((input () != 0)); }
4355   f { unput (yytext[0]); }
4356   . { BEGIN INITIAL; }
4357   %%
# Line 4355 | Line 4377 | $as_echo "$ac_try_echo"; } >&5
4377    test $ac_status = 0; }
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4379   $as_echo_n "checking lex output file root... " >&6; }
4380 < if test "${ac_cv_prog_lex_root+set}" = set; then :
4380 > if ${ac_cv_prog_lex_root+:} false; then :
4381    $as_echo_n "(cached) " >&6
4382   else
4383  
# Line 4364 | Line 4386 | if test -f lex.yy.c; then
4386   elif test -f lexyy.c; then
4387    ac_cv_prog_lex_root=lexyy
4388   else
4389 <  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4389 >  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4390   fi
4391   fi
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
# Line 4374 | Line 4396 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4396   if test -z "${LEXLIB+set}"; then
4397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4398   $as_echo_n "checking lex library... " >&6; }
4399 < if test "${ac_cv_lib_lex+set}" = set; then :
4399 > if ${ac_cv_lib_lex+:} false; then :
4400    $as_echo_n "(cached) " >&6
4401   else
4402  
# Line 4404 | Line 4426 | fi
4426  
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4428   $as_echo_n "checking whether yytext is a pointer... " >&6; }
4429 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4429 > if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4430    $as_echo_n "(cached) " >&6
4431   else
4432    # POSIX says lex can declare yytext either as a pointer or an array; the
# Line 4415 | Line 4437 | ac_save_LIBS=$LIBS
4437   LIBS="$LEXLIB $ac_save_LIBS"
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439   /* end confdefs.h.  */
4440 < #define YYTEXT_POINTER 1
4440 >
4441 >  #define YYTEXT_POINTER 1
4442   `cat $LEX_OUTPUT_ROOT.c`
4443   _ACEOF
4444   if ac_fn_c_try_link "$LINENO"; then :
# Line 4441 | Line 4464 | if test "$LEX" = :; then
4464   fi
4465  
4466  
4467 + # Initializing libtool.
4468 +
4469 +
4470 +
4471 +
4472 +
4473 +
4474  
4445 #ltdl stuff
4475   case `pwd` in
4476    *\ * | *\     *)
4477      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
# Line 4451 | Line 4480 | esac
4480  
4481  
4482  
4483 < macro_version='2.2.6'
4484 < macro_revision='1.3012'
4483 > macro_version='2.4.6'
4484 > macro_revision='2.4.6'
4485  
4486  
4487  
# Line 4466 | Line 4495 | macro_revision='1.3012'
4495  
4496  
4497  
4498 < ltmain="$ac_aux_dir/ltmain.sh"
4498 > ltmain=$ac_aux_dir/ltmain.sh
4499  
4500   # Make sure we can run config.sub.
4501   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4502 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4502 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4503  
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4505   $as_echo_n "checking build system type... " >&6; }
4506 < if test "${ac_cv_build+set}" = set; then :
4506 > if ${ac_cv_build+:} false; then :
4507    $as_echo_n "(cached) " >&6
4508   else
4509    ac_build_alias=$build_alias
4510   test "x$ac_build_alias" = x &&
4511    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4512   test "x$ac_build_alias" = x &&
4513 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4513 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4514   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4515 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4515 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4516  
4517   fi
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4519   $as_echo "$ac_cv_build" >&6; }
4520   case $ac_cv_build in
4521   *-*-*) ;;
4522 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4522 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4523   esac
4524   build=$ac_cv_build
4525   ac_save_IFS=$IFS; IFS='-'
# Line 4508 | Line 4537 | case $build_os in *\ *) build_os=`echo "
4537  
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4539   $as_echo_n "checking host system type... " >&6; }
4540 < if test "${ac_cv_host+set}" = set; then :
4540 > if ${ac_cv_host+:} false; then :
4541    $as_echo_n "(cached) " >&6
4542   else
4543    if test "x$host_alias" = x; then
4544    ac_cv_host=$ac_cv_build
4545   else
4546    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4547 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4547 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4548   fi
4549  
4550   fi
# Line 4523 | Line 4552 | fi
4552   $as_echo "$ac_cv_host" >&6; }
4553   case $ac_cv_host in
4554   *-*-*) ;;
4555 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4555 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4556   esac
4557   host=$ac_cv_host
4558   ac_save_IFS=$IFS; IFS='-'
# Line 4539 | Line 4568 | IFS=$ac_save_IFS
4568   case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4569  
4570  
4571 + # Backslashify metacharacters that are still active within
4572 + # double-quoted strings.
4573 + sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4574 +
4575 + # Same as above, but do not quote variable references.
4576 + double_quote_subst='s/\(["`\\]\)/\\\1/g'
4577 +
4578 + # Sed substitution to delay expansion of an escaped shell variable in a
4579 + # double_quote_subst'ed string.
4580 + delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4581 +
4582 + # Sed substitution to delay expansion of an escaped single quote.
4583 + delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4584 +
4585 + # Sed substitution to avoid accidental globbing in evaled expressions
4586 + no_glob_subst='s/\*/\\\*/g'
4587 +
4588 + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589 + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590 + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4591 +
4592 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593 + $as_echo_n "checking how to print strings... " >&6; }
4594 + # Test print first, because it will be a builtin if present.
4595 + if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4596 +   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4597 +  ECHO='print -r --'
4598 + elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4599 +  ECHO='printf %s\n'
4600 + else
4601 +  # Use this function as a fallback that always works.
4602 +  func_fallback_echo ()
4603 +  {
4604 +    eval 'cat <<_LTECHO_EOF
4605 + $1
4606 + _LTECHO_EOF'
4607 +  }
4608 +  ECHO='func_fallback_echo'
4609 + fi
4610 +
4611 + # func_echo_all arg...
4612 + # Invoke $ECHO with all args, space-separated.
4613 + func_echo_all ()
4614 + {
4615 +    $ECHO ""
4616 + }
4617 +
4618 + case $ECHO in
4619 +  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620 + $as_echo "printf" >&6; } ;;
4621 +  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622 + $as_echo "print -r" >&6; } ;;
4623 +  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624 + $as_echo "cat" >&6; } ;;
4625 + esac
4626 +
4627 +
4628 +
4629 +
4630 +
4631 +
4632 +
4633 +
4634 +
4635 +
4636 +
4637 +
4638 +
4639 +
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641   $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642 < if test "${ac_cv_path_SED+set}" = set; then :
4642 > if ${ac_cv_path_SED+:} false; then :
4643    $as_echo_n "(cached) " >&6
4644   else
4645              ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
# Line 4561 | Line 4659 | do
4659      for ac_prog in sed gsed; do
4660      for ac_exec_ext in '' $ac_executable_extensions; do
4661        ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662 <      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4662 >      as_fn_executable_p "$ac_path_SED" || continue
4663   # Check for GNU ac_path_SED and select it if it is found.
4664    # Check for GNU $ac_path_SED
4665   case `"$ac_path_SED" --version 2>&1` in
# Line 4596 | Line 4694 | esac
4694    done
4695   IFS=$as_save_IFS
4696    if test -z "$ac_cv_path_SED"; then
4697 <    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4697 >    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698    fi
4699   else
4700    ac_cv_path_SED=$SED
# Line 4623 | Line 4721 | Xsed="$SED -e 1s/^X//"
4721  
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 < if test "${ac_cv_path_GREP+set}" = set; then :
4724 > if ${ac_cv_path_GREP+:} false; then :
4725    $as_echo_n "(cached) " >&6
4726   else
4727    if test -z "$GREP"; then
# Line 4637 | Line 4735 | do
4735      for ac_prog in grep ggrep; do
4736      for ac_exec_ext in '' $ac_executable_extensions; do
4737        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4738 >      as_fn_executable_p "$ac_path_GREP" || continue
4739   # Check for GNU ac_path_GREP and select it if it is found.
4740    # Check for GNU $ac_path_GREP
4741   case `"$ac_path_GREP" --version 2>&1` in
# Line 4672 | Line 4770 | esac
4770    done
4771   IFS=$as_save_IFS
4772    if test -z "$ac_cv_path_GREP"; then
4773 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774    fi
4775   else
4776    ac_cv_path_GREP=$GREP
# Line 4686 | Line 4784 | $as_echo "$ac_cv_path_GREP" >&6; }
4784  
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786   $as_echo_n "checking for egrep... " >&6; }
4787 < if test "${ac_cv_path_EGREP+set}" = set; then :
4787 > if ${ac_cv_path_EGREP+:} false; then :
4788    $as_echo_n "(cached) " >&6
4789   else
4790    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 4703 | Line 4801 | do
4801      for ac_prog in egrep; do
4802      for ac_exec_ext in '' $ac_executable_extensions; do
4803        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4804 >      as_fn_executable_p "$ac_path_EGREP" || continue
4805   # Check for GNU ac_path_EGREP and select it if it is found.
4806    # Check for GNU $ac_path_EGREP
4807   case `"$ac_path_EGREP" --version 2>&1` in
# Line 4738 | Line 4836 | esac
4836    done
4837   IFS=$as_save_IFS
4838    if test -z "$ac_cv_path_EGREP"; then
4839 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840    fi
4841   else
4842    ac_cv_path_EGREP=$EGREP
# Line 4753 | Line 4851 | $as_echo "$ac_cv_path_EGREP" >&6; }
4851  
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4853   $as_echo_n "checking for fgrep... " >&6; }
4854 < if test "${ac_cv_path_FGREP+set}" = set; then :
4854 > if ${ac_cv_path_FGREP+:} false; then :
4855    $as_echo_n "(cached) " >&6
4856   else
4857    if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
# Line 4770 | Line 4868 | do
4868      for ac_prog in fgrep; do
4869      for ac_exec_ext in '' $ac_executable_extensions; do
4870        ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4871 <      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4871 >      as_fn_executable_p "$ac_path_FGREP" || continue
4872   # Check for GNU ac_path_FGREP and select it if it is found.
4873    # Check for GNU $ac_path_FGREP
4874   case `"$ac_path_FGREP" --version 2>&1` in
# Line 4805 | Line 4903 | esac
4903    done
4904   IFS=$as_save_IFS
4905    if test -z "$ac_cv_path_FGREP"; then
4906 <    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 >    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907    fi
4908   else
4909    ac_cv_path_FGREP=$FGREP
# Line 4840 | Line 4938 | test -z "$GREP" && GREP=grep
4938  
4939   # Check whether --with-gnu-ld was given.
4940   if test "${with_gnu_ld+set}" = set; then :
4941 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4941 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4942   else
4943    with_gnu_ld=no
4944   fi
4945  
4946   ac_prog=ld
4947 < if test "$GCC" = yes; then
4947 > if test yes = "$GCC"; then
4948    # Check if gcc -print-prog-name=ld gives a path.
4949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4950   $as_echo_n "checking for ld used by $CC... " >&6; }
4951    case $host in
4952    *-*-mingw*)
4953 <    # gcc leaves a trailing carriage return which upsets mingw
4953 >    # gcc leaves a trailing carriage return, which upsets mingw
4954      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4955    *)
4956      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4866 | Line 4964 | $as_echo_n "checking for ld used by $CC.
4964        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4965          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4966        done
4967 <      test -z "$LD" && LD="$ac_prog"
4967 >      test -z "$LD" && LD=$ac_prog
4968        ;;
4969    "")
4970      # If it fails, then pretend we aren't using GCC.
# Line 4877 | Line 4975 | $as_echo_n "checking for ld used by $CC.
4975      with_gnu_ld=unknown
4976      ;;
4977    esac
4978 < elif test "$with_gnu_ld" = yes; then
4978 > elif test yes = "$with_gnu_ld"; then
4979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4980   $as_echo_n "checking for GNU ld... " >&6; }
4981   else
4982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4983   $as_echo_n "checking for non-GNU ld... " >&6; }
4984   fi
4985 < if test "${lt_cv_path_LD+set}" = set; then :
4985 > if ${lt_cv_path_LD+:} false; then :
4986    $as_echo_n "(cached) " >&6
4987   else
4988    if test -z "$LD"; then
4989 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4989 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4990    for ac_dir in $PATH; do
4991 <    IFS="$lt_save_ifs"
4991 >    IFS=$lt_save_ifs
4992      test -z "$ac_dir" && ac_dir=.
4993      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4994 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4994 >      lt_cv_path_LD=$ac_dir/$ac_prog
4995        # Check to see if the program is GNU ld.  I'd rather use --version,
4996        # but apparently some variants of GNU ld only accept -v.
4997        # Break only if it was the GNU/non-GNU ld that we prefer.
4998        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4999        *GNU* | *'with BFD'*)
5000 <        test "$with_gnu_ld" != no && break
5000 >        test no != "$with_gnu_ld" && break
5001          ;;
5002        *)
5003 <        test "$with_gnu_ld" != yes && break
5003 >        test yes != "$with_gnu_ld" && break
5004          ;;
5005        esac
5006      fi
5007    done
5008 <  IFS="$lt_save_ifs"
5008 >  IFS=$lt_save_ifs
5009   else
5010 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5010 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5011   fi
5012   fi
5013  
5014 < LD="$lt_cv_path_LD"
5014 > LD=$lt_cv_path_LD
5015   if test -n "$LD"; then
5016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5017   $as_echo "$LD" >&6; }
# Line 4921 | Line 5019 | else
5019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020   $as_echo "no" >&6; }
5021   fi
5022 < test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5022 > test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5024   $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5025 < if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5025 > if ${lt_cv_prog_gnu_ld+:} false; then :
5026    $as_echo_n "(cached) " >&6
5027   else
5028    # I'd rather use --version here, but apparently some GNU lds only accept -v.
# Line 4951 | Line 5049 | with_gnu_ld=$lt_cv_prog_gnu_ld
5049  
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5051   $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5052 < if test "${lt_cv_path_NM+set}" = set; then :
5052 > if ${lt_cv_path_NM+:} false; then :
5053    $as_echo_n "(cached) " >&6
5054   else
5055    if test -n "$NM"; then
5056    # Let the user override the test.
5057 <  lt_cv_path_NM="$NM"
5057 >  lt_cv_path_NM=$NM
5058   else
5059 <  lt_nm_to_check="${ac_tool_prefix}nm"
5059 >  lt_nm_to_check=${ac_tool_prefix}nm
5060    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061      lt_nm_to_check="$lt_nm_to_check nm"
5062    fi
5063    for lt_tmp_nm in $lt_nm_to_check; do
5064 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5065      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5066 <      IFS="$lt_save_ifs"
5066 >      IFS=$lt_save_ifs
5067        test -z "$ac_dir" && ac_dir=.
5068 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5069 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5068 >      tmp_nm=$ac_dir/$lt_tmp_nm
5069 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5070          # Check to see if the nm accepts a BSD-compat flag.
5071 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5072          #   nm: unknown option "B" ignored
5073          # Tru64's nm complains that /dev/null is an invalid object file
5074 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075 <        */dev/null* | *'Invalid file or object type'*)
5074 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5075 >        case $build_os in
5076 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5077 >        *) lt_bad_file=/dev/null ;;
5078 >        esac
5079 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5080 >        *$lt_bad_file* | *'Invalid file or object type'*)
5081            lt_cv_path_NM="$tmp_nm -B"
5082 <          break
5082 >          break 2
5083            ;;
5084          *)
5085            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5086            */dev/null*)
5087              lt_cv_path_NM="$tmp_nm -p"
5088 <            break
5088 >            break 2
5089              ;;
5090            *)
5091              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 4993 | Line 5096 | else
5096          esac
5097        fi
5098      done
5099 <    IFS="$lt_save_ifs"
5099 >    IFS=$lt_save_ifs
5100    done
5101    : ${lt_cv_path_NM=no}
5102   fi
5103   fi
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5105   $as_echo "$lt_cv_path_NM" >&6; }
5106 < if test "$lt_cv_path_NM" != "no"; then
5107 <  NM="$lt_cv_path_NM"
5106 > if test no != "$lt_cv_path_NM"; then
5107 >  NM=$lt_cv_path_NM
5108   else
5109    # Didn't find any BSD compatible name lister, look for dumpbin.
5110 <  if test -n "$ac_tool_prefix"; then
5111 <  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5110 >  if test -n "$DUMPBIN"; then :
5111 >    # Let the user override the test.
5112 >  else
5113 >    if test -n "$ac_tool_prefix"; then
5114 >  for ac_prog in dumpbin "link -dump"
5115    do
5116      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5117   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119   $as_echo_n "checking for $ac_word... " >&6; }
5120 < if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5120 > if ${ac_cv_prog_DUMPBIN+:} false; then :
5121    $as_echo_n "(cached) " >&6
5122   else
5123    if test -n "$DUMPBIN"; then
# Line 5023 | Line 5129 | do
5129    IFS=$as_save_IFS
5130    test -z "$as_dir" && as_dir=.
5131      for ac_exec_ext in '' $ac_executable_extensions; do
5132 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133      ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5134      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135      break 2
# Line 5049 | Line 5155 | fi
5155   fi
5156   if test -z "$DUMPBIN"; then
5157    ac_ct_DUMPBIN=$DUMPBIN
5158 <  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5158 >  for ac_prog in dumpbin "link -dump"
5159   do
5160    # Extract the first word of "$ac_prog", so it can be a program name with args.
5161   set dummy $ac_prog; ac_word=$2
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163   $as_echo_n "checking for $ac_word... " >&6; }
5164 < if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5164 > if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5165    $as_echo_n "(cached) " >&6
5166   else
5167    if test -n "$ac_ct_DUMPBIN"; then
# Line 5067 | Line 5173 | do
5173    IFS=$as_save_IFS
5174    test -z "$as_dir" && as_dir=.
5175      for ac_exec_ext in '' $ac_executable_extensions; do
5176 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177      ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5178      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179      break 2
# Line 5104 | Line 5210 | esac
5210    fi
5211   fi
5212  
5213 +    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5214 +    *COFF*)
5215 +      DUMPBIN="$DUMPBIN -symbols -headers"
5216 +      ;;
5217 +    *)
5218 +      DUMPBIN=:
5219 +      ;;
5220 +    esac
5221 +  fi
5222  
5223 <  if test "$DUMPBIN" != ":"; then
5224 <    NM="$DUMPBIN"
5223 >  if test : != "$DUMPBIN"; then
5224 >    NM=$DUMPBIN
5225    fi
5226   fi
5227   test -z "$NM" && NM=nm
# Line 5118 | Line 5233 | test -z "$NM" && NM=nm
5233  
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5235   $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5236 < if test "${lt_cv_nm_interface+set}" = set; then :
5236 > if ${lt_cv_nm_interface+:} false; then :
5237    $as_echo_n "(cached) " >&6
5238   else
5239    lt_cv_nm_interface="BSD nm"
5240    echo "int some_variable = 0;" > conftest.$ac_ext
5241 <  (eval echo "\"\$as_me:5126: $ac_compile\"" >&5)
5241 >  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5242    (eval "$ac_compile" 2>conftest.err)
5243    cat conftest.err >&5
5244 <  (eval echo "\"\$as_me:5129: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5244 >  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5245    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5246    cat conftest.err >&5
5247 <  (eval echo "\"\$as_me:5132: output\"" >&5)
5247 >  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5248    cat conftest.out >&5
5249    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5250      lt_cv_nm_interface="MS dumpbin"
# Line 5153 | Line 5268 | fi
5268   # find the maximum length of command line arguments
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5270   $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5271 < if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5271 > if ${lt_cv_sys_max_cmd_len+:} false; then :
5272    $as_echo_n "(cached) " >&6
5273   else
5274      i=0
5275 <  teststring="ABCD"
5275 >  teststring=ABCD
5276  
5277    case $build_os in
5278    msdosdjgpp*)
# Line 5186 | Line 5301 | else
5301      lt_cv_sys_max_cmd_len=8192;
5302      ;;
5303  
5304 +  mint*)
5305 +    # On MiNT this can take a long time and run out of memory.
5306 +    lt_cv_sys_max_cmd_len=8192;
5307 +    ;;
5308 +
5309    amigaos*)
5310      # On AmigaOS with pdksh, this test takes hours, literally.
5311      # So we just punt and use a minimum line length of 8192.
5312      lt_cv_sys_max_cmd_len=8192;
5313      ;;
5314  
5315 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5315 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5316      # This has been around since 386BSD, at least.  Likely further.
5317      if test -x /sbin/sysctl; then
5318        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5211 | Line 5331 | else
5331      lt_cv_sys_max_cmd_len=196608
5332      ;;
5333  
5334 +  os2*)
5335 +    # The test takes a long time on OS/2.
5336 +    lt_cv_sys_max_cmd_len=8192
5337 +    ;;
5338 +
5339    osf*)
5340      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5341      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
# Line 5237 | Line 5362 | else
5362      ;;
5363    *)
5364      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5365 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5365 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5366 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5367        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5368        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369      else
5370        # Make teststring a little bigger before we do anything with it.
5371        # a 1K string should be a reasonable start.
5372 <      for i in 1 2 3 4 5 6 7 8 ; do
5372 >      for i in 1 2 3 4 5 6 7 8; do
5373          teststring=$teststring$teststring
5374        done
5375        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5376        # If test is not a shell built-in, we'll probably end up computing a
5377        # maximum length that is only half of the actual maximum length, but
5378        # we can't tell.
5379 <      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5380 <                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5381 <              test $i != 17 # 1/2 MB should be enough
5379 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5380 >                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5381 >              test 17 != "$i" # 1/2 MB should be enough
5382        do
5383          i=`expr $i + 1`
5384          teststring=$teststring$teststring
# Line 5270 | Line 5396 | else
5396  
5397   fi
5398  
5399 < if test -n $lt_cv_sys_max_cmd_len ; then
5399 > if test -n "$lt_cv_sys_max_cmd_len"; then
5400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5401   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5402   else
# Line 5288 | Line 5414 | max_cmd_len=$lt_cv_sys_max_cmd_len
5414   : ${MV="mv -f"}
5415   : ${RM="rm -f"}
5416  
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5292 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5293 # Try some XSI features
5294 xsi_shell=no
5295 ( _lt_dummy="a/b/c"
5296  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5297      = c,a/b,, \
5298    && eval 'test $(( 1 + 1 )) -eq 2 \
5299    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5300  && xsi_shell=yes
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5302 $as_echo "$xsi_shell" >&6; }
5303
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5306 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5307 lt_shell_append=no
5308 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5309    >/dev/null 2>&1 \
5310  && lt_shell_append=yes
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5312 $as_echo "$lt_shell_append" >&6; }
5313
5314
5417   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5418    lt_unset=unset
5419   else
# Line 5343 | Line 5445 | esac
5445  
5446  
5447  
5448 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5449 + $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5450 + if ${lt_cv_to_host_file_cmd+:} false; then :
5451 +  $as_echo_n "(cached) " >&6
5452 + else
5453 +  case $host in
5454 +  *-*-mingw* )
5455 +    case $build in
5456 +      *-*-mingw* ) # actually msys
5457 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5458 +        ;;
5459 +      *-*-cygwin* )
5460 +        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5461 +        ;;
5462 +      * ) # otherwise, assume *nix
5463 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5464 +        ;;
5465 +    esac
5466 +    ;;
5467 +  *-*-cygwin* )
5468 +    case $build in
5469 +      *-*-mingw* ) # actually msys
5470 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5471 +        ;;
5472 +      *-*-cygwin* )
5473 +        lt_cv_to_host_file_cmd=func_convert_file_noop
5474 +        ;;
5475 +      * ) # otherwise, assume *nix
5476 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5477 +        ;;
5478 +    esac
5479 +    ;;
5480 +  * ) # unhandled hosts (and "normal" native builds)
5481 +    lt_cv_to_host_file_cmd=func_convert_file_noop
5482 +    ;;
5483 + esac
5484 +
5485 + fi
5486 +
5487 + to_host_file_cmd=$lt_cv_to_host_file_cmd
5488 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5489 + $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5490 +
5491 +
5492 +
5493 +
5494 +
5495 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5496 + $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5497 + if ${lt_cv_to_tool_file_cmd+:} false; then :
5498 +  $as_echo_n "(cached) " >&6
5499 + else
5500 +  #assume ordinary cross tools, or native build.
5501 + lt_cv_to_tool_file_cmd=func_convert_file_noop
5502 + case $host in
5503 +  *-*-mingw* )
5504 +    case $build in
5505 +      *-*-mingw* ) # actually msys
5506 +        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5507 +        ;;
5508 +    esac
5509 +    ;;
5510 + esac
5511 +
5512 + fi
5513 +
5514 + to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5515 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5516 + $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5517 +
5518 +
5519 +
5520 +
5521 +
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5523   $as_echo_n "checking for $LD option to reload object files... " >&6; }
5524 < if test "${lt_cv_ld_reload_flag+set}" = set; then :
5524 > if ${lt_cv_ld_reload_flag+:} false; then :
5525    $as_echo_n "(cached) " >&6
5526   else
5527    lt_cv_ld_reload_flag='-r'
# Line 5359 | Line 5535 | case $reload_flag in
5535   esac
5536   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5537   case $host_os in
5538 +  cygwin* | mingw* | pw32* | cegcc*)
5539 +    if test yes != "$GCC"; then
5540 +      reload_cmds=false
5541 +    fi
5542 +    ;;
5543    darwin*)
5544 <    if test "$GCC" = yes; then
5545 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5544 >    if test yes = "$GCC"; then
5545 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5546      else
5547        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548      fi
# Line 5381 | Line 5562 | if test -n "$ac_tool_prefix"; then
5562   set dummy ${ac_tool_prefix}objdump; ac_word=$2
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564   $as_echo_n "checking for $ac_word... " >&6; }
5565 < if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5565 > if ${ac_cv_prog_OBJDUMP+:} false; then :
5566    $as_echo_n "(cached) " >&6
5567   else
5568    if test -n "$OBJDUMP"; then
# Line 5393 | Line 5574 | do
5574    IFS=$as_save_IFS
5575    test -z "$as_dir" && as_dir=.
5576      for ac_exec_ext in '' $ac_executable_extensions; do
5577 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5579      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580      break 2
# Line 5421 | Line 5602 | if test -z "$ac_cv_prog_OBJDUMP"; then
5602   set dummy objdump; ac_word=$2
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604   $as_echo_n "checking for $ac_word... " >&6; }
5605 < if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5605 > if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5606    $as_echo_n "(cached) " >&6
5607   else
5608    if test -n "$ac_ct_OBJDUMP"; then
# Line 5433 | Line 5614 | do
5614    IFS=$as_save_IFS
5615    test -z "$as_dir" && as_dir=.
5616      for ac_exec_ext in '' $ac_executable_extensions; do
5617 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618      ac_cv_prog_ac_ct_OBJDUMP="objdump"
5619      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620      break 2
# Line 5480 | Line 5661 | test -z "$OBJDUMP" && OBJDUMP=objdump
5661  
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5663   $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5664 < if test "${lt_cv_deplibs_check_method+set}" = set; then :
5664 > if ${lt_cv_deplibs_check_method+:} false; then :
5665    $as_echo_n "(cached) " >&6
5666   else
5667    lt_cv_file_magic_cmd='$MAGIC_CMD'
# Line 5489 | Line 5670 | lt_cv_deplibs_check_method='unknown'
5670   # Need to set the preceding variable on all platforms that support
5671   # interlibrary dependencies.
5672   # 'none' -- dependencies not supported.
5673 < # `unknown' -- same as none, but documents that we really don't know.
5673 > # 'unknown' -- same as none, but documents that we really don't know.
5674   # 'pass_all' -- all dependencies passed with no checks.
5675   # 'test_compile' -- check by making test program.
5676   # 'file_magic [[regex]]' -- check by looking for files in library path
5677 < # which responds to the $file_magic_cmd with a given extended regex.
5678 < # If you have `file' or equivalent on your system and you're not sure
5679 < # whether `pass_all' will *always* work, you probably want this one.
5677 > # that responds to the $file_magic_cmd with a given extended regex.
5678 > # If you have 'file' or equivalent on your system and you're not sure
5679 > # whether 'pass_all' will *always* work, you probably want this one.
5680  
5681   case $host_os in
5682   aix[4-9]*)
# Line 5526 | Line 5707 | mingw* | pw32*)
5707      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5708      lt_cv_file_magic_cmd='func_win32_libid'
5709    else
5710 <    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5710 >    # Keep this pattern in sync with the one in func_win32_libid.
5711 >    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5712      lt_cv_file_magic_cmd='$OBJDUMP -f'
5713    fi
5714    ;;
5715  
5716 < cegcc)
5716 > cegcc*)
5717    # use the weaker test based on 'objdump'. See mingw*.
5718    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5719    lt_cv_file_magic_cmd='$OBJDUMP -f'
# Line 5557 | Line 5739 | freebsd* | dragonfly*)
5739    fi
5740    ;;
5741  
5742 < gnu*)
5742 > haiku*)
5743    lt_cv_deplibs_check_method=pass_all
5744    ;;
5745  
# Line 5569 | Line 5751 | hpux10.20* | hpux11*)
5751      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5752      ;;
5753    hppa*64*)
5754 <    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5754 >    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5755      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5756      ;;
5757    *)
5758 <    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5758 >    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5759      lt_cv_file_magic_test_file=/usr/lib/libc.sl
5760      ;;
5761    esac
# Line 5594 | Line 5776 | irix5* | irix6* | nonstopux*)
5776    lt_cv_deplibs_check_method=pass_all
5777    ;;
5778  
5779 < # This must be Linux ELF.
5780 < linux* | k*bsd*-gnu)
5779 > # This must be glibc/ELF.
5780 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5781    lt_cv_deplibs_check_method=pass_all
5782    ;;
5783  
# Line 5617 | Line 5799 | newos6*)
5799    lt_cv_deplibs_check_method=pass_all
5800    ;;
5801  
5802 < openbsd*)
5803 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802 > openbsd* | bitrig*)
5803 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5804      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5805    else
5806      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5671 | Line 5853 | sysv4 | sysv4.3*)
5853   tpf*)
5854    lt_cv_deplibs_check_method=pass_all
5855    ;;
5856 + os2*)
5857 +  lt_cv_deplibs_check_method=pass_all
5858 +  ;;
5859   esac
5860  
5861   fi
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5863   $as_echo "$lt_cv_deplibs_check_method" >&6; }
5864 +
5865 + file_magic_glob=
5866 + want_nocaseglob=no
5867 + if test "$build" = "$host"; then
5868 +  case $host_os in
5869 +  mingw* | pw32*)
5870 +    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5871 +      want_nocaseglob=yes
5872 +    else
5873 +      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5874 +    fi
5875 +    ;;
5876 +  esac
5877 + fi
5878 +
5879   file_magic_cmd=$lt_cv_file_magic_cmd
5880   deplibs_check_method=$lt_cv_deplibs_check_method
5881   test -z "$deplibs_check_method" && deplibs_check_method=unknown
# Line 5691 | Line 5891 | test -z "$deplibs_check_method" && depli
5891  
5892  
5893  
5894 +
5895 +
5896 +
5897 +
5898 +
5899 +
5900 +
5901 +
5902 +
5903 +
5904   if test -n "$ac_tool_prefix"; then
5905 <  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5906 < set dummy ${ac_tool_prefix}ar; ac_word=$2
5905 >  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5906 > set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5907 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 > $as_echo_n "checking for $ac_word... " >&6; }
5909 > if ${ac_cv_prog_DLLTOOL+:} false; then :
5910 >  $as_echo_n "(cached) " >&6
5911 > else
5912 >  if test -n "$DLLTOOL"; then
5913 >  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5914 > else
5915 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 > for as_dir in $PATH
5917 > do
5918 >  IFS=$as_save_IFS
5919 >  test -z "$as_dir" && as_dir=.
5920 >    for ac_exec_ext in '' $ac_executable_extensions; do
5921 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 >    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5923 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 >    break 2
5925 >  fi
5926 > done
5927 >  done
5928 > IFS=$as_save_IFS
5929 >
5930 > fi
5931 > fi
5932 > DLLTOOL=$ac_cv_prog_DLLTOOL
5933 > if test -n "$DLLTOOL"; then
5934 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5935 > $as_echo "$DLLTOOL" >&6; }
5936 > else
5937 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 > $as_echo "no" >&6; }
5939 > fi
5940 >
5941 >
5942 > fi
5943 > if test -z "$ac_cv_prog_DLLTOOL"; then
5944 >  ac_ct_DLLTOOL=$DLLTOOL
5945 >  # Extract the first word of "dlltool", so it can be a program name with args.
5946 > set dummy dlltool; ac_word=$2
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948   $as_echo_n "checking for $ac_word... " >&6; }
5949 < if test "${ac_cv_prog_AR+set}" = set; then :
5949 > if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5950 >  $as_echo_n "(cached) " >&6
5951 > else
5952 >  if test -n "$ac_ct_DLLTOOL"; then
5953 >  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5954 > else
5955 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 > for as_dir in $PATH
5957 > do
5958 >  IFS=$as_save_IFS
5959 >  test -z "$as_dir" && as_dir=.
5960 >    for ac_exec_ext in '' $ac_executable_extensions; do
5961 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 >    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5963 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 >    break 2
5965 >  fi
5966 > done
5967 >  done
5968 > IFS=$as_save_IFS
5969 >
5970 > fi
5971 > fi
5972 > ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5973 > if test -n "$ac_ct_DLLTOOL"; then
5974 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5975 > $as_echo "$ac_ct_DLLTOOL" >&6; }
5976 > else
5977 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 > $as_echo "no" >&6; }
5979 > fi
5980 >
5981 >  if test "x$ac_ct_DLLTOOL" = x; then
5982 >    DLLTOOL="false"
5983 >  else
5984 >    case $cross_compiling:$ac_tool_warned in
5985 > yes:)
5986 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 > ac_tool_warned=yes ;;
5989 > esac
5990 >    DLLTOOL=$ac_ct_DLLTOOL
5991 >  fi
5992 > else
5993 >  DLLTOOL="$ac_cv_prog_DLLTOOL"
5994 > fi
5995 >
5996 > test -z "$DLLTOOL" && DLLTOOL=dlltool
5997 >
5998 >
5999 >
6000 >
6001 >
6002 >
6003 >
6004 >
6005 >
6006 >
6007 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6008 > $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6009 > if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6010 >  $as_echo_n "(cached) " >&6
6011 > else
6012 >  lt_cv_sharedlib_from_linklib_cmd='unknown'
6013 >
6014 > case $host_os in
6015 > cygwin* | mingw* | pw32* | cegcc*)
6016 >  # two different shell functions defined in ltmain.sh;
6017 >  # decide which one to use based on capabilities of $DLLTOOL
6018 >  case `$DLLTOOL --help 2>&1` in
6019 >  *--identify-strict*)
6020 >    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6021 >    ;;
6022 >  *)
6023 >    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6024 >    ;;
6025 >  esac
6026 >  ;;
6027 > *)
6028 >  # fallback: assume linklib IS sharedlib
6029 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6030 >  ;;
6031 > esac
6032 >
6033 > fi
6034 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6035 > $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6036 > sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6037 > test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6038 >
6039 >
6040 >
6041 >
6042 >
6043 >
6044 >
6045 > if test -n "$ac_tool_prefix"; then
6046 >  for ac_prog in ar
6047 >  do
6048 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6049 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6050 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 > $as_echo_n "checking for $ac_word... " >&6; }
6052 > if ${ac_cv_prog_AR+:} false; then :
6053    $as_echo_n "(cached) " >&6
6054   else
6055    if test -n "$AR"; then
# Line 5708 | Line 6061 | do
6061    IFS=$as_save_IFS
6062    test -z "$as_dir" && as_dir=.
6063      for ac_exec_ext in '' $ac_executable_extensions; do
6064 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 <    ac_cv_prog_AR="${ac_tool_prefix}ar"
6064 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 >    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6066      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067      break 2
6068    fi
# Line 5729 | Line 6082 | $as_echo "no" >&6; }
6082   fi
6083  
6084  
6085 +    test -n "$AR" && break
6086 +  done
6087   fi
6088 < if test -z "$ac_cv_prog_AR"; then
6088 > if test -z "$AR"; then
6089    ac_ct_AR=$AR
6090 <  # Extract the first word of "ar", so it can be a program name with args.
6091 < set dummy ar; ac_word=$2
6090 >  for ac_prog in ar
6091 > do
6092 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 > set dummy $ac_prog; ac_word=$2
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095   $as_echo_n "checking for $ac_word... " >&6; }
6096 < if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6096 > if ${ac_cv_prog_ac_ct_AR+:} false; then :
6097    $as_echo_n "(cached) " >&6
6098   else
6099    if test -n "$ac_ct_AR"; then
# Line 5748 | Line 6105 | do
6105    IFS=$as_save_IFS
6106    test -z "$as_dir" && as_dir=.
6107      for ac_exec_ext in '' $ac_executable_extensions; do
6108 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 <    ac_cv_prog_ac_ct_AR="ar"
6108 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 >    ac_cv_prog_ac_ct_AR="$ac_prog"
6110      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111      break 2
6112    fi
# Line 5768 | Line 6125 | else
6125   $as_echo "no" >&6; }
6126   fi
6127  
6128 +
6129 +  test -n "$ac_ct_AR" && break
6130 + done
6131 +
6132    if test "x$ac_ct_AR" = x; then
6133      AR="false"
6134    else
# Line 5779 | Line 6140 | ac_tool_warned=yes ;;
6140   esac
6141      AR=$ac_ct_AR
6142    fi
5782 else
5783  AR="$ac_cv_prog_AR"
6143   fi
6144  
6145 < test -z "$AR" && AR=ar
6146 < test -z "$AR_FLAGS" && AR_FLAGS=cru
6145 > : ${AR=ar}
6146 > : ${AR_FLAGS=cru}
6147 >
6148  
6149  
6150  
# Line 5795 | Line 6155 | test -z "$AR_FLAGS" && AR_FLAGS=cru
6155  
6156  
6157  
6158 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6159 + $as_echo_n "checking for archiver @FILE support... " >&6; }
6160 + if ${lt_cv_ar_at_file+:} false; then :
6161 +  $as_echo_n "(cached) " >&6
6162 + else
6163 +  lt_cv_ar_at_file=no
6164 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 + /* end confdefs.h.  */
6166 +
6167 + int
6168 + main ()
6169 + {
6170 +
6171 +  ;
6172 +  return 0;
6173 + }
6174 + _ACEOF
6175 + if ac_fn_c_try_compile "$LINENO"; then :
6176 +  echo conftest.$ac_objext > conftest.lst
6177 +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6178 +      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6179 +  (eval $lt_ar_try) 2>&5
6180 +  ac_status=$?
6181 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 +  test $ac_status = 0; }
6183 +      if test 0 -eq "$ac_status"; then
6184 +        # Ensure the archiver fails upon bogus file names.
6185 +        rm -f conftest.$ac_objext libconftest.a
6186 +        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6187 +  (eval $lt_ar_try) 2>&5
6188 +  ac_status=$?
6189 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190 +  test $ac_status = 0; }
6191 +        if test 0 -ne "$ac_status"; then
6192 +          lt_cv_ar_at_file=@
6193 +        fi
6194 +      fi
6195 +      rm -f conftest.* libconftest.a
6196 +
6197 + fi
6198 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 +
6200 + fi
6201 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6202 + $as_echo "$lt_cv_ar_at_file" >&6; }
6203 +
6204 + if test no = "$lt_cv_ar_at_file"; then
6205 +  archiver_list_spec=
6206 + else
6207 +  archiver_list_spec=$lt_cv_ar_at_file
6208 + fi
6209 +
6210 +
6211 +
6212 +
6213 +
6214 +
6215  
6216   if test -n "$ac_tool_prefix"; then
6217    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6218   set dummy ${ac_tool_prefix}strip; ac_word=$2
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220   $as_echo_n "checking for $ac_word... " >&6; }
6221 < if test "${ac_cv_prog_STRIP+set}" = set; then :
6221 > if ${ac_cv_prog_STRIP+:} false; then :
6222    $as_echo_n "(cached) " >&6
6223   else
6224    if test -n "$STRIP"; then
# Line 5813 | Line 6230 | do
6230    IFS=$as_save_IFS
6231    test -z "$as_dir" && as_dir=.
6232      for ac_exec_ext in '' $ac_executable_extensions; do
6233 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6235      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236      break 2
# Line 5841 | Line 6258 | if test -z "$ac_cv_prog_STRIP"; then
6258   set dummy strip; ac_word=$2
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260   $as_echo_n "checking for $ac_word... " >&6; }
6261 < if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6261 > if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6262    $as_echo_n "(cached) " >&6
6263   else
6264    if test -n "$ac_ct_STRIP"; then
# Line 5853 | Line 6270 | do
6270    IFS=$as_save_IFS
6271    test -z "$as_dir" && as_dir=.
6272      for ac_exec_ext in '' $ac_executable_extensions; do
6273 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274      ac_cv_prog_ac_ct_STRIP="strip"
6275      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276      break 2
# Line 5900 | Line 6317 | if test -n "$ac_tool_prefix"; then
6317   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319   $as_echo_n "checking for $ac_word... " >&6; }
6320 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
6320 > if ${ac_cv_prog_RANLIB+:} false; then :
6321    $as_echo_n "(cached) " >&6
6322   else
6323    if test -n "$RANLIB"; then
# Line 5912 | Line 6329 | do
6329    IFS=$as_save_IFS
6330    test -z "$as_dir" && as_dir=.
6331      for ac_exec_ext in '' $ac_executable_extensions; do
6332 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6334      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335      break 2
# Line 5940 | Line 6357 | if test -z "$ac_cv_prog_RANLIB"; then
6357   set dummy ranlib; ac_word=$2
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359   $as_echo_n "checking for $ac_word... " >&6; }
6360 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6360 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6361    $as_echo_n "(cached) " >&6
6362   else
6363    if test -n "$ac_ct_RANLIB"; then
# Line 5952 | Line 6369 | do
6369    IFS=$as_save_IFS
6370    test -z "$as_dir" && as_dir=.
6371      for ac_exec_ext in '' $ac_executable_extensions; do
6372 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373      ac_cv_prog_ac_ct_RANLIB="ranlib"
6374      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375      break 2
# Line 6001 | Line 6418 | old_postuninstall_cmds=
6418  
6419   if test -n "$RANLIB"; then
6420    case $host_os in
6421 <  openbsd*)
6422 <    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6421 >  bitrig* | openbsd*)
6422 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6423      ;;
6424    *)
6425 <    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6425 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6426      ;;
6427    esac
6428 <  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6428 >  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6429   fi
6430  
6431 + case $host_os in
6432 +  darwin*)
6433 +    lock_old_archive_extraction=yes ;;
6434 +  *)
6435 +    lock_old_archive_extraction=no ;;
6436 + esac
6437 +
6438 +
6439 +
6440 +
6441 +
6442 +
6443  
6444  
6445  
# Line 6057 | Line 6486 | compiler=$CC
6486   # Check for command to grab the raw symbol name followed by C symbol from nm.
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6488   $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6489 < if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6489 > if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6490    $as_echo_n "(cached) " >&6
6491   else
6492  
# Line 6079 | Line 6508 | cygwin* | mingw* | pw32* | cegcc*)
6508    symcode='[ABCDGISTW]'
6509    ;;
6510   hpux*)
6511 <  if test "$host_cpu" = ia64; then
6511 >  if test ia64 = "$host_cpu"; then
6512      symcode='[ABCDEGRST]'
6513    fi
6514    ;;
# Line 6112 | Line 6541 | case `$NM -V 2>&1` in
6541    symcode='[ABCDGIRSTW]' ;;
6542   esac
6543  
6544 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545 +  # Gets list of data symbols to import.
6546 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6547 +  # Adjust the below global symbol transforms to fixup imported variables.
6548 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6549 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6550 +  lt_c_name_lib_hook="\
6551 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6552 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6553 + else
6554 +  # Disable hooks by default.
6555 +  lt_cv_sys_global_symbol_to_import=
6556 +  lt_cdecl_hook=
6557 +  lt_c_name_hook=
6558 +  lt_c_name_lib_hook=
6559 + fi
6560 +
6561   # Transform an extracted symbol line into a proper C declaration.
6562   # Some systems (esp. on ia64) link data and code symbols differently,
6563   # so use this general approach.
6564 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6565 > $lt_cdecl_hook\
6566 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6567 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6568  
6569   # Transform an extracted symbol line into symbol name and symbol address
6570 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6571 < 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'"
6570 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6571 > $lt_c_name_hook\
6572 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6573 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6574 >
6575 > # Transform an extracted symbol line into symbol name with lib prefix and
6576 > # symbol address.
6577 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6578 > $lt_c_name_lib_hook\
6579 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6580 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6581 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6582  
6583   # Handle CRLF in mingw tool chain
6584   opt_cr=
# Line 6137 | Line 6596 | for ac_symprfx in "" "_"; do
6596  
6597    # Write the raw and C identifiers.
6598    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6599 <    # Fake it for dumpbin and say T for any non-static function
6600 <    # and D for any global variable.
6599 >    # Fake it for dumpbin and say T for any non-static function,
6600 >    # D for any global variable and I for any imported variable.
6601      # Also find C++ and __fastcall symbols from MSVC++,
6602      # which start with @ or ?.
6603      lt_cv_sys_global_symbol_pipe="$AWK '"\
6604   "     {last_section=section; section=\$ 3};"\
6605 + "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6606   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6607 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6608 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6609 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6610   "     \$ 0!~/External *\|/{next};"\
6611   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6612   "     {if(hide[section]) next};"\
6613 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6614 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6615 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6616 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6613 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6614 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6615 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6616 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6617   "     ' prfx=^$ac_symprfx"
6618    else
6619      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6620    fi
6621 +  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6622  
6623    # Check to see that the pipe works correctly.
6624    pipe_works=no
# Line 6180 | Line 6644 | _LT_EOF
6644    test $ac_status = 0; }; then
6645      # Now try to grab the symbols.
6646      nlist=conftest.nm
6647 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6648 <  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6647 >    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6648 >  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6649    ac_status=$?
6650    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651    test $ac_status = 0; } && test -s "$nlist"; then
# Line 6196 | Line 6660 | _LT_EOF
6660        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6661          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6662            cat <<_LT_EOF > conftest.$ac_ext
6663 + /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6664 + #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6665 + /* DATA imports from DLLs on WIN32 can't be const, because runtime
6666 +   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6667 + # define LT_DLSYM_CONST
6668 + #elif defined __osf__
6669 + /* This system does not cope well with relocations in const data.  */
6670 + # define LT_DLSYM_CONST
6671 + #else
6672 + # define LT_DLSYM_CONST const
6673 + #endif
6674 +
6675   #ifdef __cplusplus
6676   extern "C" {
6677   #endif
# Line 6207 | Line 6683 | _LT_EOF
6683            cat <<_LT_EOF >> conftest.$ac_ext
6684  
6685   /* The mapping between symbol names and symbols.  */
6686 < const struct {
6686 > LT_DLSYM_CONST struct {
6687    const char *name;
6688    void       *address;
6689   }
# Line 6215 | Line 6691 | lt__PROGRAM__LTX_preloaded_symbols[] =
6691   {
6692    { "@PROGRAM@", (void *) 0 },
6693   _LT_EOF
6694 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6694 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6695            cat <<\_LT_EOF >> conftest.$ac_ext
6696    {0, (void *) 0}
6697   };
# Line 6233 | Line 6709 | static const void *lt_preloaded_setup()
6709   _LT_EOF
6710            # Now try linking the two files.
6711            mv conftest.$ac_objext conftstm.$ac_objext
6712 <          lt_save_LIBS="$LIBS"
6713 <          lt_save_CFLAGS="$CFLAGS"
6714 <          LIBS="conftstm.$ac_objext"
6712 >          lt_globsym_save_LIBS=$LIBS
6713 >          lt_globsym_save_CFLAGS=$CFLAGS
6714 >          LIBS=conftstm.$ac_objext
6715            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6716            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6717    (eval $ac_link) 2>&5
6718    ac_status=$?
6719    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6720 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6721              pipe_works=yes
6722            fi
6723 <          LIBS="$lt_save_LIBS"
6724 <          CFLAGS="$lt_save_CFLAGS"
6723 >          LIBS=$lt_globsym_save_LIBS
6724 >          CFLAGS=$lt_globsym_save_CFLAGS
6725          else
6726            echo "cannot find nm_test_func in $nlist" >&5
6727          fi
# Line 6262 | Line 6738 | _LT_EOF
6738    rm -rf conftest* conftst*
6739  
6740    # Do not use the global_symbol_pipe unless it works.
6741 <  if test "$pipe_works" = yes; then
6741 >  if test yes = "$pipe_works"; then
6742      break
6743    else
6744      lt_cv_sys_global_symbol_pipe=
# Line 6282 | Line 6758 | else
6758   $as_echo "ok" >&6; }
6759   fi
6760  
6761 + # Response file support.
6762 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6763 +  nm_file_list_spec='@'
6764 + elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6765 +  nm_file_list_spec='@'
6766 + fi
6767 +
6768 +
6769 +
6770 +
6771 +
6772 +
6773 +
6774 +
6775 +
6776 +
6777 +
6778 +
6779 +
6780 +
6781 +
6782 +
6783 +
6784 +
6785 +
6786 +
6787  
6788  
6789  
# Line 6299 | Line 6801 | fi
6801  
6802  
6803  
6804 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6805 + $as_echo_n "checking for sysroot... " >&6; }
6806 +
6807 + # Check whether --with-sysroot was given.
6808 + if test "${with_sysroot+set}" = set; then :
6809 +  withval=$with_sysroot;
6810 + else
6811 +  with_sysroot=no
6812 + fi
6813 +
6814 +
6815 + lt_sysroot=
6816 + case $with_sysroot in #(
6817 + yes)
6818 +   if test yes = "$GCC"; then
6819 +     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6820 +   fi
6821 +   ;; #(
6822 + /*)
6823 +   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6824 +   ;; #(
6825 + no|'')
6826 +   ;; #(
6827 + *)
6828 +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6829 + $as_echo "$with_sysroot" >&6; }
6830 +   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6831 +   ;;
6832 + esac
6833 +
6834 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6835 + $as_echo "${lt_sysroot:-no}" >&6; }
6836 +
6837 +
6838 +
6839 +
6840 +
6841 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6842 + $as_echo_n "checking for a working dd... " >&6; }
6843 + if ${ac_cv_path_lt_DD+:} false; then :
6844 +  $as_echo_n "(cached) " >&6
6845 + else
6846 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6847 + cat conftest.i conftest.i >conftest2.i
6848 + : ${lt_DD:=$DD}
6849 + if test -z "$lt_DD"; then
6850 +  ac_path_lt_DD_found=false
6851 +  # Loop through the user's path and test for each of PROGNAME-LIST
6852 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 + for as_dir in $PATH
6854 + do
6855 +  IFS=$as_save_IFS
6856 +  test -z "$as_dir" && as_dir=.
6857 +    for ac_prog in dd; do
6858 +    for ac_exec_ext in '' $ac_executable_extensions; do
6859 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6860 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6861 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6862 +  cmp -s conftest.i conftest.out \
6863 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6864 + fi
6865 +      $ac_path_lt_DD_found && break 3
6866 +    done
6867 +  done
6868 +  done
6869 + IFS=$as_save_IFS
6870 +  if test -z "$ac_cv_path_lt_DD"; then
6871 +    :
6872 +  fi
6873 + else
6874 +  ac_cv_path_lt_DD=$lt_DD
6875 + fi
6876 +
6877 + rm -f conftest.i conftest2.i conftest.out
6878 + fi
6879 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6880 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6881 +
6882 +
6883 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6884 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6885 + if ${lt_cv_truncate_bin+:} false; then :
6886 +  $as_echo_n "(cached) " >&6
6887 + else
6888 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6889 + cat conftest.i conftest.i >conftest2.i
6890 + lt_cv_truncate_bin=
6891 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6892 +  cmp -s conftest.i conftest.out \
6893 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6894 + fi
6895 + rm -f conftest.i conftest2.i conftest.out
6896 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6897 + fi
6898 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6899 + $as_echo "$lt_cv_truncate_bin" >&6; }
6900 +
6901 +
6902 +
6903 +
6904  
6905  
6906  
6907 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6908 + func_cc_basename ()
6909 + {
6910 +    for cc_temp in $*""; do
6911 +      case $cc_temp in
6912 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6913 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6914 +        \-*) ;;
6915 +        *) break;;
6916 +      esac
6917 +    done
6918 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6919 + }
6920  
6921   # Check whether --enable-libtool-lock was given.
6922   if test "${enable_libtool_lock+set}" = set; then :
6923    enableval=$enable_libtool_lock;
6924   fi
6925  
6926 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6926 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6927  
6928   # Some flags need to be propagated to the compiler or linker for good
6929   # libtool support.
6930   case $host in
6931   ia64-*-hpux*)
6932 <  # Find out which ABI we are using.
6932 >  # Find out what ABI is being produced by ac_compile, and set mode
6933 >  # options accordingly.
6934    echo 'int i;' > conftest.$ac_ext
6935    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936    (eval $ac_compile) 2>&5
# Line 6323 | Line 6939 | ia64-*-hpux*)
6939    test $ac_status = 0; }; then
6940      case `/usr/bin/file conftest.$ac_objext` in
6941        *ELF-32*)
6942 <        HPUX_IA64_MODE="32"
6942 >        HPUX_IA64_MODE=32
6943          ;;
6944        *ELF-64*)
6945 <        HPUX_IA64_MODE="64"
6945 >        HPUX_IA64_MODE=64
6946          ;;
6947      esac
6948    fi
6949    rm -rf conftest*
6950    ;;
6951   *-*-irix6*)
6952 <  # Find out which ABI we are using.
6953 <  echo '#line 6337 "configure"' > conftest.$ac_ext
6952 >  # Find out what ABI is being produced by ac_compile, and set linker
6953 >  # options accordingly.
6954 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6955    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956    (eval $ac_compile) 2>&5
6957    ac_status=$?
6958    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959    test $ac_status = 0; }; then
6960 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6960 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6961        case `/usr/bin/file conftest.$ac_objext` in
6962          *32-bit*)
6963            LD="${LD-ld} -melf32bsmip"
# Line 6369 | Line 6986 | ia64-*-hpux*)
6986    rm -rf conftest*
6987    ;;
6988  
6989 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6989 > mips64*-*linux*)
6990 >  # Find out what ABI is being produced by ac_compile, and set linker
6991 >  # options accordingly.
6992 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6993 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994 >  (eval $ac_compile) 2>&5
6995 >  ac_status=$?
6996 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 >  test $ac_status = 0; }; then
6998 >    emul=elf
6999 >    case `/usr/bin/file conftest.$ac_objext` in
7000 >      *32-bit*)
7001 >        emul="${emul}32"
7002 >        ;;
7003 >      *64-bit*)
7004 >        emul="${emul}64"
7005 >        ;;
7006 >    esac
7007 >    case `/usr/bin/file conftest.$ac_objext` in
7008 >      *MSB*)
7009 >        emul="${emul}btsmip"
7010 >        ;;
7011 >      *LSB*)
7012 >        emul="${emul}ltsmip"
7013 >        ;;
7014 >    esac
7015 >    case `/usr/bin/file conftest.$ac_objext` in
7016 >      *N32*)
7017 >        emul="${emul}n32"
7018 >        ;;
7019 >    esac
7020 >    LD="${LD-ld} -m $emul"
7021 >  fi
7022 >  rm -rf conftest*
7023 >  ;;
7024 >
7025 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7026   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7027 <  # Find out which ABI we are using.
7027 >  # Find out what ABI is being produced by ac_compile, and set linker
7028 >  # options accordingly.  Note that the listed cases only cover the
7029 >  # situations where additional linker options are needed (such as when
7030 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7031 >  # vice versa); the common cases where no linker options are needed do
7032 >  # not appear in the list.
7033    echo 'int i;' > conftest.$ac_ext
7034    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7035    (eval $ac_compile) 2>&5
# Line 6385 | Line 7043 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7043              LD="${LD-ld} -m elf_i386_fbsd"
7044              ;;
7045            x86_64-*linux*)
7046 <            LD="${LD-ld} -m elf_i386"
7046 >            case `/usr/bin/file conftest.o` in
7047 >              *x86-64*)
7048 >                LD="${LD-ld} -m elf32_x86_64"
7049 >                ;;
7050 >              *)
7051 >                LD="${LD-ld} -m elf_i386"
7052 >                ;;
7053 >            esac
7054 >            ;;
7055 >          powerpc64le-*linux*)
7056 >            LD="${LD-ld} -m elf32lppclinux"
7057              ;;
7058 <          ppc64-*linux*|powerpc64-*linux*)
7058 >          powerpc64-*linux*)
7059              LD="${LD-ld} -m elf32ppclinux"
7060              ;;
7061            s390x-*linux*)
# Line 6406 | Line 7074 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7074            x86_64-*linux*)
7075              LD="${LD-ld} -m elf_x86_64"
7076              ;;
7077 <          ppc*-*linux*|powerpc*-*linux*)
7077 >          powerpcle-*linux*)
7078 >            LD="${LD-ld} -m elf64lppc"
7079 >            ;;
7080 >          powerpc-*linux*)
7081              LD="${LD-ld} -m elf64ppc"
7082              ;;
7083            s390*-*linux*|s390*-*tpf*)
# Line 6424 | Line 7095 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7095  
7096   *-*-sco3.2v5*)
7097    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7098 <  SAVE_CFLAGS="$CFLAGS"
7098 >  SAVE_CFLAGS=$CFLAGS
7099    CFLAGS="$CFLAGS -belf"
7100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7101   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7102 < if test "${lt_cv_cc_needs_belf+set}" = set; then :
7102 > if ${lt_cv_cc_needs_belf+:} false; then :
7103    $as_echo_n "(cached) " >&6
7104   else
7105    ac_ext=c
# Line 6464 | Line 7135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135   fi
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7137   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7138 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7138 >  if test yes != "$lt_cv_cc_needs_belf"; then
7139      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7140 <    CFLAGS="$SAVE_CFLAGS"
7140 >    CFLAGS=$SAVE_CFLAGS
7141    fi
7142    ;;
7143 < sparc*-*solaris*)
7144 <  # Find out which ABI we are using.
7143 > *-*solaris*)
7144 >  # Find out what ABI is being produced by ac_compile, and set linker
7145 >  # options accordingly.
7146    echo 'int i;' > conftest.$ac_ext
7147    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7148    (eval $ac_compile) 2>&5
# Line 6480 | Line 7152 | sparc*-*solaris*)
7152      case `/usr/bin/file conftest.o` in
7153      *64-bit*)
7154        case $lt_cv_prog_gnu_ld in
7155 <      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7155 >      yes*)
7156 >        case $host in
7157 >        i?86-*-solaris*|x86_64-*-solaris*)
7158 >          LD="${LD-ld} -m elf_x86_64"
7159 >          ;;
7160 >        sparc*-*-solaris*)
7161 >          LD="${LD-ld} -m elf64_sparc"
7162 >          ;;
7163 >        esac
7164 >        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7165 >        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7166 >          LD=${LD-ld}_sol2
7167 >        fi
7168 >        ;;
7169        *)
7170          if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7171            LD="${LD-ld} -64"
# Line 6494 | Line 7179 | sparc*-*solaris*)
7179    ;;
7180   esac
7181  
7182 < need_locks="$enable_libtool_lock"
7182 > need_locks=$enable_libtool_lock
7183 >
7184 > if test -n "$ac_tool_prefix"; then
7185 >  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7186 > set dummy ${ac_tool_prefix}mt; ac_word=$2
7187 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 > $as_echo_n "checking for $ac_word... " >&6; }
7189 > if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7190 >  $as_echo_n "(cached) " >&6
7191 > else
7192 >  if test -n "$MANIFEST_TOOL"; then
7193 >  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7194 > else
7195 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 > for as_dir in $PATH
7197 > do
7198 >  IFS=$as_save_IFS
7199 >  test -z "$as_dir" && as_dir=.
7200 >    for ac_exec_ext in '' $ac_executable_extensions; do
7201 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 >    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7203 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 >    break 2
7205 >  fi
7206 > done
7207 >  done
7208 > IFS=$as_save_IFS
7209 >
7210 > fi
7211 > fi
7212 > MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7213 > if test -n "$MANIFEST_TOOL"; then
7214 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7215 > $as_echo "$MANIFEST_TOOL" >&6; }
7216 > else
7217 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 > $as_echo "no" >&6; }
7219 > fi
7220 >
7221 >
7222 > fi
7223 > if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7224 >  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7225 >  # Extract the first word of "mt", so it can be a program name with args.
7226 > set dummy mt; ac_word=$2
7227 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 > $as_echo_n "checking for $ac_word... " >&6; }
7229 > if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7230 >  $as_echo_n "(cached) " >&6
7231 > else
7232 >  if test -n "$ac_ct_MANIFEST_TOOL"; then
7233 >  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7234 > else
7235 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 > for as_dir in $PATH
7237 > do
7238 >  IFS=$as_save_IFS
7239 >  test -z "$as_dir" && as_dir=.
7240 >    for ac_exec_ext in '' $ac_executable_extensions; do
7241 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 >    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7243 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 >    break 2
7245 >  fi
7246 > done
7247 >  done
7248 > IFS=$as_save_IFS
7249 >
7250 > fi
7251 > fi
7252 > ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7253 > if test -n "$ac_ct_MANIFEST_TOOL"; then
7254 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7255 > $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7256 > else
7257 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 > $as_echo "no" >&6; }
7259 > fi
7260 >
7261 >  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7262 >    MANIFEST_TOOL=":"
7263 >  else
7264 >    case $cross_compiling:$ac_tool_warned in
7265 > yes:)
7266 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 > ac_tool_warned=yes ;;
7269 > esac
7270 >    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7271 >  fi
7272 > else
7273 >  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7274 > fi
7275 >
7276 > test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7277 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7278 > $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7279 > if ${lt_cv_path_mainfest_tool+:} false; then :
7280 >  $as_echo_n "(cached) " >&6
7281 > else
7282 >  lt_cv_path_mainfest_tool=no
7283 >  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7284 >  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7285 >  cat conftest.err >&5
7286 >  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7287 >    lt_cv_path_mainfest_tool=yes
7288 >  fi
7289 >  rm -f conftest*
7290 > fi
7291 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7292 > $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7293 > if test yes != "$lt_cv_path_mainfest_tool"; then
7294 >  MANIFEST_TOOL=:
7295 > fi
7296 >
7297 >
7298 >
7299 >
7300  
7301  
7302    case $host_os in
# Line 6504 | Line 7306 | need_locks="$enable_libtool_lock"
7306   set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308   $as_echo_n "checking for $ac_word... " >&6; }
7309 < if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7309 > if ${ac_cv_prog_DSYMUTIL+:} false; then :
7310    $as_echo_n "(cached) " >&6
7311   else
7312    if test -n "$DSYMUTIL"; then
# Line 6516 | Line 7318 | do
7318    IFS=$as_save_IFS
7319    test -z "$as_dir" && as_dir=.
7320      for ac_exec_ext in '' $ac_executable_extensions; do
7321 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322      ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7323      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324      break 2
# Line 6544 | Line 7346 | if test -z "$ac_cv_prog_DSYMUTIL"; then
7346   set dummy dsymutil; ac_word=$2
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348   $as_echo_n "checking for $ac_word... " >&6; }
7349 < if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7349 > if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7350    $as_echo_n "(cached) " >&6
7351   else
7352    if test -n "$ac_ct_DSYMUTIL"; then
# Line 6556 | Line 7358 | do
7358    IFS=$as_save_IFS
7359    test -z "$as_dir" && as_dir=.
7360      for ac_exec_ext in '' $ac_executable_extensions; do
7361 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362      ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7363      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364      break 2
# Line 6596 | Line 7398 | fi
7398   set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400   $as_echo_n "checking for $ac_word... " >&6; }
7401 < if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7401 > if ${ac_cv_prog_NMEDIT+:} false; then :
7402    $as_echo_n "(cached) " >&6
7403   else
7404    if test -n "$NMEDIT"; then
# Line 6608 | Line 7410 | do
7410    IFS=$as_save_IFS
7411    test -z "$as_dir" && as_dir=.
7412      for ac_exec_ext in '' $ac_executable_extensions; do
7413 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414      ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7415      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416      break 2
# Line 6636 | Line 7438 | if test -z "$ac_cv_prog_NMEDIT"; then
7438   set dummy nmedit; ac_word=$2
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440   $as_echo_n "checking for $ac_word... " >&6; }
7441 < if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7441 > if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7442    $as_echo_n "(cached) " >&6
7443   else
7444    if test -n "$ac_ct_NMEDIT"; then
# Line 6648 | Line 7450 | do
7450    IFS=$as_save_IFS
7451    test -z "$as_dir" && as_dir=.
7452      for ac_exec_ext in '' $ac_executable_extensions; do
7453 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454      ac_cv_prog_ac_ct_NMEDIT="nmedit"
7455      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456      break 2
# Line 6688 | Line 7490 | fi
7490   set dummy ${ac_tool_prefix}lipo; ac_word=$2
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492   $as_echo_n "checking for $ac_word... " >&6; }
7493 < if test "${ac_cv_prog_LIPO+set}" = set; then :
7493 > if ${ac_cv_prog_LIPO+:} false; then :
7494    $as_echo_n "(cached) " >&6
7495   else
7496    if test -n "$LIPO"; then
# Line 6700 | Line 7502 | do
7502    IFS=$as_save_IFS
7503    test -z "$as_dir" && as_dir=.
7504      for ac_exec_ext in '' $ac_executable_extensions; do
7505 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506      ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7507      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508      break 2
# Line 6728 | Line 7530 | if test -z "$ac_cv_prog_LIPO"; then
7530   set dummy lipo; ac_word=$2
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532   $as_echo_n "checking for $ac_word... " >&6; }
7533 < if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7533 > if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7534    $as_echo_n "(cached) " >&6
7535   else
7536    if test -n "$ac_ct_LIPO"; then
# Line 6740 | Line 7542 | do
7542    IFS=$as_save_IFS
7543    test -z "$as_dir" && as_dir=.
7544      for ac_exec_ext in '' $ac_executable_extensions; do
7545 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546      ac_cv_prog_ac_ct_LIPO="lipo"
7547      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548      break 2
# Line 6780 | Line 7582 | fi
7582   set dummy ${ac_tool_prefix}otool; ac_word=$2
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584   $as_echo_n "checking for $ac_word... " >&6; }
7585 < if test "${ac_cv_prog_OTOOL+set}" = set; then :
7585 > if ${ac_cv_prog_OTOOL+:} false; then :
7586    $as_echo_n "(cached) " >&6
7587   else
7588    if test -n "$OTOOL"; then
# Line 6792 | Line 7594 | do
7594    IFS=$as_save_IFS
7595    test -z "$as_dir" && as_dir=.
7596      for ac_exec_ext in '' $ac_executable_extensions; do
7597 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598      ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7599      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600      break 2
# Line 6820 | Line 7622 | if test -z "$ac_cv_prog_OTOOL"; then
7622   set dummy otool; ac_word=$2
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624   $as_echo_n "checking for $ac_word... " >&6; }
7625 < if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7625 > if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7626    $as_echo_n "(cached) " >&6
7627   else
7628    if test -n "$ac_ct_OTOOL"; then
# Line 6832 | Line 7634 | do
7634    IFS=$as_save_IFS
7635    test -z "$as_dir" && as_dir=.
7636      for ac_exec_ext in '' $ac_executable_extensions; do
7637 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638      ac_cv_prog_ac_ct_OTOOL="otool"
7639      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640      break 2
# Line 6872 | Line 7674 | fi
7674   set dummy ${ac_tool_prefix}otool64; ac_word=$2
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676   $as_echo_n "checking for $ac_word... " >&6; }
7677 < if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7677 > if ${ac_cv_prog_OTOOL64+:} false; then :
7678    $as_echo_n "(cached) " >&6
7679   else
7680    if test -n "$OTOOL64"; then
# Line 6884 | Line 7686 | do
7686    IFS=$as_save_IFS
7687    test -z "$as_dir" && as_dir=.
7688      for ac_exec_ext in '' $ac_executable_extensions; do
7689 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690      ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7691      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692      break 2
# Line 6912 | Line 7714 | if test -z "$ac_cv_prog_OTOOL64"; then
7714   set dummy otool64; ac_word=$2
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716   $as_echo_n "checking for $ac_word... " >&6; }
7717 < if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7717 > if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7718    $as_echo_n "(cached) " >&6
7719   else
7720    if test -n "$ac_ct_OTOOL64"; then
# Line 6924 | Line 7726 | do
7726    IFS=$as_save_IFS
7727    test -z "$as_dir" && as_dir=.
7728      for ac_exec_ext in '' $ac_executable_extensions; do
7729 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 >  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730      ac_cv_prog_ac_ct_OTOOL64="otool64"
7731      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732      break 2
# Line 6987 | Line 7789 | fi
7789  
7790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7791   $as_echo_n "checking for -single_module linker flag... " >&6; }
7792 < if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7792 > if ${lt_cv_apple_cc_single_mod+:} false; then :
7793    $as_echo_n "(cached) " >&6
7794   else
7795    lt_cv_apple_cc_single_mod=no
7796 <      if test -z "${LT_MULTI_MODULE}"; then
7796 >      if test -z "$LT_MULTI_MODULE"; then
7797          # By default we will add the -single_module flag. You can override
7798          # by either setting the environment variable LT_MULTI_MODULE
7799          # non-empty at configure time, or by adding -multi_module to the
# Line 7003 | Line 7805 | else
7805          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7806            -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7807          _lt_result=$?
7808 <        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7808 >        # If there is a non-empty error log, and "single_module"
7809 >        # appears in it, assume the flag caused a linker warning
7810 >        if test -s conftest.err && $GREP single_module conftest.err; then
7811 >          cat conftest.err >&5
7812 >        # Otherwise, if the output was created with a 0 exit code from
7813 >        # the compiler, it worked.
7814 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7815            lt_cv_apple_cc_single_mod=yes
7816          else
7817            cat conftest.err >&5
# Line 7014 | Line 7822 | else
7822   fi
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7824   $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7825 +
7826      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7827   $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7828 < if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7828 > if ${lt_cv_ld_exported_symbols_list+:} false; then :
7829    $as_echo_n "(cached) " >&6
7830   else
7831    lt_cv_ld_exported_symbols_list=no
# Line 7041 | Line 7850 | else
7850   fi
7851   rm -f core conftest.err conftest.$ac_objext \
7852      conftest$ac_exeext conftest.$ac_ext
7853 <        LDFLAGS="$save_LDFLAGS"
7853 >        LDFLAGS=$save_LDFLAGS
7854  
7855   fi
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7857   $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7858 +
7859 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7860 + $as_echo_n "checking for -force_load linker flag... " >&6; }
7861 + if ${lt_cv_ld_force_load+:} false; then :
7862 +  $as_echo_n "(cached) " >&6
7863 + else
7864 +  lt_cv_ld_force_load=no
7865 +      cat > conftest.c << _LT_EOF
7866 + int forced_loaded() { return 2;}
7867 + _LT_EOF
7868 +      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7869 +      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7870 +      echo "$AR cru libconftest.a conftest.o" >&5
7871 +      $AR cru libconftest.a conftest.o 2>&5
7872 +      echo "$RANLIB libconftest.a" >&5
7873 +      $RANLIB libconftest.a 2>&5
7874 +      cat > conftest.c << _LT_EOF
7875 + int main() { return 0;}
7876 + _LT_EOF
7877 +      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7878 +      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7879 +      _lt_result=$?
7880 +      if test -s conftest.err && $GREP force_load conftest.err; then
7881 +        cat conftest.err >&5
7882 +      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7883 +        lt_cv_ld_force_load=yes
7884 +      else
7885 +        cat conftest.err >&5
7886 +      fi
7887 +        rm -f conftest.err libconftest.a conftest conftest.c
7888 +        rm -rf conftest.dSYM
7889 +
7890 + fi
7891 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7892 + $as_echo "$lt_cv_ld_force_load" >&6; }
7893      case $host_os in
7894      rhapsody* | darwin1.[012])
7895 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7895 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7896      darwin1.*)
7897 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7897 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7898      darwin*) # darwin 5.x on
7899        # if running on 10.5 or later, the deployment target defaults
7900        # to the OS version, if on x86, and 10.4, the deployment
7901        # target defaults to 10.4. Don't you love it?
7902        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7903          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7904 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7905 <        10.[012]*)
7906 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7904 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7905 >        10.[012][,.]*)
7906 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7907          10.*)
7908 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7908 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7909        esac
7910      ;;
7911    esac
7912 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7912 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7913        _lt_dar_single_mod='$single_module'
7914      fi
7915 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7916 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7915 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7916 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7917      else
7918 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7918 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7919      fi
7920 <    if test "$DSYMUTIL" != ":"; then
7920 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7921        _lt_dsymutil='~$DSYMUTIL $lib || :'
7922      else
7923        _lt_dsymutil=
# Line 7081 | Line 7925 | $as_echo "$lt_cv_ld_exported_symbols_lis
7925      ;;
7926    esac
7927  
7928 + # func_munge_path_list VARIABLE PATH
7929 + # -----------------------------------
7930 + # VARIABLE is name of variable containing _space_ separated list of
7931 + # directories to be munged by the contents of PATH, which is string
7932 + # having a format:
7933 + # "DIR[:DIR]:"
7934 + #       string "DIR[ DIR]" will be prepended to VARIABLE
7935 + # ":DIR[:DIR]"
7936 + #       string "DIR[ DIR]" will be appended to VARIABLE
7937 + # "DIRP[:DIRP]::[DIRA:]DIRA"
7938 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7939 + #       "DIRA[ DIRA]" will be appended to VARIABLE
7940 + # "DIR[:DIR]"
7941 + #       VARIABLE will be replaced by "DIR[ DIR]"
7942 + func_munge_path_list ()
7943 + {
7944 +    case x$2 in
7945 +    x)
7946 +        ;;
7947 +    *:)
7948 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7949 +        ;;
7950 +    x:*)
7951 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7952 +        ;;
7953 +    *::*)
7954 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7955 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7956 +        ;;
7957 +    *)
7958 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7959 +        ;;
7960 +    esac
7961 + }
7962 +
7963   ac_ext=c
7964   ac_cpp='$CPP $CPPFLAGS'
7965   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 7093 | Line 7972 | if test -n "$CPP" && test -d "$CPP"; the
7972    CPP=
7973   fi
7974   if test -z "$CPP"; then
7975 <  if test "${ac_cv_prog_CPP+set}" = set; then :
7975 >  if ${ac_cv_prog_CPP+:} false; then :
7976    $as_echo_n "(cached) " >&6
7977   else
7978        # Double quotes because CPP needs to be expanded
# Line 7123 | Line 8002 | else
8002    # Broken: fails on valid input.
8003   continue
8004   fi
8005 < rm -f conftest.err conftest.$ac_ext
8005 > rm -f conftest.err conftest.i conftest.$ac_ext
8006  
8007    # OK, works on sane cases.  Now check whether nonexistent headers
8008    # can be detected and how.
# Line 7139 | Line 8018 | else
8018   ac_preproc_ok=:
8019   break
8020   fi
8021 < rm -f conftest.err conftest.$ac_ext
8021 > rm -f conftest.err conftest.i conftest.$ac_ext
8022  
8023   done
8024   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8025 < rm -f conftest.err conftest.$ac_ext
8025 > rm -f conftest.i conftest.err conftest.$ac_ext
8026   if $ac_preproc_ok; then :
8027    break
8028   fi
# Line 7182 | Line 8061 | else
8061    # Broken: fails on valid input.
8062   continue
8063   fi
8064 < rm -f conftest.err conftest.$ac_ext
8064 > rm -f conftest.err conftest.i conftest.$ac_ext
8065  
8066    # OK, works on sane cases.  Now check whether nonexistent headers
8067    # can be detected and how.
# Line 7198 | Line 8077 | else
8077   ac_preproc_ok=:
8078   break
8079   fi
8080 < rm -f conftest.err conftest.$ac_ext
8080 > rm -f conftest.err conftest.i conftest.$ac_ext
8081  
8082   done
8083   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8084 < rm -f conftest.err conftest.$ac_ext
8084 > rm -f conftest.i conftest.err conftest.$ac_ext
8085   if $ac_preproc_ok; then :
8086  
8087   else
8088    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8089   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8090 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
8091 < See \`config.log' for more details." "$LINENO" 5; }
8090 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8091 > See \`config.log' for more details" "$LINENO" 5; }
8092   fi
8093  
8094   ac_ext=c
# Line 7221 | Line 8100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100  
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8102   $as_echo_n "checking for ANSI C header files... " >&6; }
8103 < if test "${ac_cv_header_stdc+set}" = set; then :
8103 > if ${ac_cv_header_stdc+:} false; then :
8104    $as_echo_n "(cached) " >&6
8105   else
8106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 7338 | Line 8217 | do :
8217    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8219   "
8220 < eval as_val=\$$as_ac_Header
7342 <   if test "x$as_val" = x""yes; then :
8220 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8221    cat >>confdefs.h <<_ACEOF
8222   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8223   _ACEOF
# Line 7353 | Line 8231 | for ac_header in dlfcn.h
8231   do :
8232    ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8233   "
8234 < if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8234 > if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8235    cat >>confdefs.h <<_ACEOF
8236   #define HAVE_DLFCN_H 1
8237   _ACEOF
# Line 7364 | Line 8242 | done
8242  
8243  
8244  
7367 # Set options
7368 enable_dlopen=yes
7369
7370
7371
7372
7373  enable_win32_dll=no
8245  
8246  
8247 <            # Check whether --enable-shared was given.
8248 < if test "${enable_shared+set}" = set; then :
8249 <  enableval=$enable_shared; p=${PACKAGE-default}
8247 > # Set options
8248 > enable_dlopen=yes
8249 > # Check whether --enable-static was given.
8250 > if test "${enable_static+set}" = set; then :
8251 >  enableval=$enable_static; p=${PACKAGE-default}
8252      case $enableval in
8253 <    yes) enable_shared=yes ;;
8254 <    no) enable_shared=no ;;
8253 >    yes) enable_static=yes ;;
8254 >    no) enable_static=no ;;
8255      *)
8256 <      enable_shared=no
8256 >     enable_static=no
8257        # Look at the argument we got.  We use all the common list separators.
8258 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8258 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8259        for pkg in $enableval; do
8260 <        IFS="$lt_save_ifs"
8260 >        IFS=$lt_save_ifs
8261          if test "X$pkg" = "X$p"; then
8262 <          enable_shared=yes
8262 >          enable_static=yes
8263          fi
8264        done
8265 <      IFS="$lt_save_ifs"
8265 >      IFS=$lt_save_ifs
8266        ;;
8267      esac
8268   else
8269 <  enable_shared=yes
8269 >  enable_static=no
8270   fi
8271  
8272  
# Line 7404 | Line 8277 | fi
8277  
8278  
8279  
8280 <  # Check whether --enable-static was given.
8281 < if test "${enable_static+set}" = set; then :
8282 <  enableval=$enable_static; p=${PACKAGE-default}
8280 >
8281 >
8282 >  enable_win32_dll=no
8283 >
8284 >
8285 >            # Check whether --enable-shared was given.
8286 > if test "${enable_shared+set}" = set; then :
8287 >  enableval=$enable_shared; p=${PACKAGE-default}
8288      case $enableval in
8289 <    yes) enable_static=yes ;;
8290 <    no) enable_static=no ;;
8289 >    yes) enable_shared=yes ;;
8290 >    no) enable_shared=no ;;
8291      *)
8292 <     enable_static=no
8292 >      enable_shared=no
8293        # Look at the argument we got.  We use all the common list separators.
8294 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8294 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8295        for pkg in $enableval; do
8296 <        IFS="$lt_save_ifs"
8296 >        IFS=$lt_save_ifs
8297          if test "X$pkg" = "X$p"; then
8298 <          enable_static=yes
8298 >          enable_shared=yes
8299          fi
8300        done
8301 <      IFS="$lt_save_ifs"
8301 >      IFS=$lt_save_ifs
8302        ;;
8303      esac
8304   else
8305 <  enable_static=yes
8305 >  enable_shared=yes
8306   fi
8307  
8308  
# Line 7436 | Line 8314 | fi
8314  
8315  
8316  
8317 +
8318   # Check whether --with-pic was given.
8319   if test "${with_pic+set}" = set; then :
8320 <  withval=$with_pic; pic_mode="$withval"
8320 >  withval=$with_pic; lt_p=${PACKAGE-default}
8321 >    case $withval in
8322 >    yes|no) pic_mode=$withval ;;
8323 >    *)
8324 >      pic_mode=default
8325 >      # Look at the argument we got.  We use all the common list separators.
8326 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8327 >      for lt_pkg in $withval; do
8328 >        IFS=$lt_save_ifs
8329 >        if test "X$lt_pkg" = "X$lt_p"; then
8330 >          pic_mode=yes
8331 >        fi
8332 >      done
8333 >      IFS=$lt_save_ifs
8334 >      ;;
8335 >    esac
8336   else
8337    pic_mode=default
8338   fi
8339  
8340  
7447 test -z "$pic_mode" && pic_mode=default
7448
8341  
8342  
8343  
# Line 7461 | Line 8353 | if test "${enable_fast_install+set}" = s
8353      *)
8354        enable_fast_install=no
8355        # Look at the argument we got.  We use all the common list separators.
8356 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8356 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8357        for pkg in $enableval; do
8358 <        IFS="$lt_save_ifs"
8358 >        IFS=$lt_save_ifs
8359          if test "X$pkg" = "X$p"; then
8360            enable_fast_install=yes
8361          fi
8362        done
8363 <      IFS="$lt_save_ifs"
8363 >      IFS=$lt_save_ifs
8364        ;;
8365      esac
8366   else
# Line 7482 | Line 8374 | fi
8374  
8375  
8376  
8377 +  shared_archive_member_spec=
8378 + case $host,$enable_shared in
8379 + power*-*-aix[5-9]*,yes)
8380 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8381 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8382 +
8383 + # Check whether --with-aix-soname was given.
8384 + if test "${with_aix_soname+set}" = set; then :
8385 +  withval=$with_aix_soname; case $withval in
8386 +    aix|svr4|both)
8387 +      ;;
8388 +    *)
8389 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8390 +      ;;
8391 +    esac
8392 +    lt_cv_with_aix_soname=$with_aix_soname
8393 + else
8394 +  if ${lt_cv_with_aix_soname+:} false; then :
8395 +  $as_echo_n "(cached) " >&6
8396 + else
8397 +  lt_cv_with_aix_soname=aix
8398 + fi
8399 +
8400 +    with_aix_soname=$lt_cv_with_aix_soname
8401 + fi
8402 +
8403 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8404 + $as_echo "$with_aix_soname" >&6; }
8405 +  if test aix != "$with_aix_soname"; then
8406 +    # For the AIX way of multilib, we name the shared archive member
8407 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8408 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8409 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8410 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8411 +    if test 64 = "${OBJECT_MODE-32}"; then
8412 +      shared_archive_member_spec=shr_64
8413 +    else
8414 +      shared_archive_member_spec=shr
8415 +    fi
8416 +  fi
8417 +  ;;
8418 + *)
8419 +  with_aix_soname=aix
8420 +  ;;
8421 + esac
8422 +
8423 +
8424 +
8425 +
8426 +
8427 +
8428 +
8429  
8430  
8431  
8432   # This can be used to rebuild libtool when needed
8433 < LIBTOOL_DEPS="$ltmain"
8433 > LIBTOOL_DEPS=$ltmain
8434  
8435   # Always use our own libtool.
8436   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 7515 | Line 8459 | LIBTOOL='$(SHELL) $(top_builddir)/libtoo
8459  
8460  
8461  
8462 +
8463 +
8464 +
8465 +
8466 +
8467   test -z "$LN_S" && LN_S="ln -s"
8468  
8469  
# Line 7530 | Line 8479 | test -z "$LN_S" && LN_S="ln -s"
8479  
8480  
8481  
8482 < if test -n "${ZSH_VERSION+set}" ; then
8482 > if test -n "${ZSH_VERSION+set}"; then
8483     setopt NO_GLOB_SUBST
8484   fi
8485  
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8487   $as_echo_n "checking for objdir... " >&6; }
8488 < if test "${lt_cv_objdir+set}" = set; then :
8488 > if ${lt_cv_objdir+:} false; then :
8489    $as_echo_n "(cached) " >&6
8490   else
8491    rm -f .libs 2>/dev/null
# Line 7564 | Line 8513 | _ACEOF
8513  
8514  
8515  
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
8516   case $host_os in
8517   aix3*)
8518    # AIX sometimes has problems with the GCC collect2 program.  For some
8519    # reason, if we set the COLLECT_NAMES environment variable, the problems
8520    # vanish in a puff of smoke.
8521 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8521 >  if test set != "${COLLECT_NAMES+set}"; then
8522      COLLECT_NAMES=
8523      export COLLECT_NAMES
8524    fi
8525    ;;
8526   esac
8527  
7592 # Sed substitution that helps us do robust quoting.  It backslashifies
7593 # metacharacters that are still active within double-quoted strings.
7594 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7595
7596 # Same as above, but do not quote variable references.
7597 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7598
7599 # Sed substitution to delay expansion of an escaped shell variable in a
7600 # double_quote_subst'ed string.
7601 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7602
7603 # Sed substitution to delay expansion of an escaped single quote.
7604 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7605
7606 # Sed substitution to avoid accidental globbing in evaled expressions
7607 no_glob_subst='s/\*/\\\*/g'
7608
8528   # Global variables:
8529   ofile=libtool
8530   can_build_shared=yes
8531  
8532 < # All known linkers require a `.a' archive for static linking (except MSVC,
8532 > # All known linkers require a '.a' archive for static linking (except MSVC,
8533   # which needs '.lib').
8534   libext=a
8535  
8536 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8536 > with_gnu_ld=$lt_cv_prog_gnu_ld
8537  
8538 < old_CC="$CC"
8539 < old_CFLAGS="$CFLAGS"
8538 > old_CC=$CC
8539 > old_CFLAGS=$CFLAGS
8540  
8541   # Set sane defaults for various variables
8542   test -z "$CC" && CC=cc
# Line 7626 | Line 8545 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8545   test -z "$LD" && LD=ld
8546   test -z "$ac_objext" && ac_objext=o
8547  
8548 < for cc_temp in $compiler""; do
8549 <  case $cc_temp in
7631 <    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632 <    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7633 <    \-*) ;;
7634 <    *) break;;
7635 <  esac
7636 < done
7637 < cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8548 > func_cc_basename $compiler
8549 > cc_basename=$func_cc_basename_result
8550  
8551  
8552   # Only perform the check for file, if the check method requires it
# Line 7644 | Line 8556 | file_magic*)
8556    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8558   $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8559 < if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8559 > if ${lt_cv_path_MAGIC_CMD+:} false; then :
8560    $as_echo_n "(cached) " >&6
8561   else
8562    case $MAGIC_CMD in
8563   [\\/*] |  ?:[\\/]*)
8564 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8564 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8565    ;;
8566   *)
8567 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8567 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8568 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8569    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570    for ac_dir in $ac_dummy; do
8571 <    IFS="$lt_save_ifs"
8571 >    IFS=$lt_save_ifs
8572      test -z "$ac_dir" && ac_dir=.
8573 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8574 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8573 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8574 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8575        if test -n "$file_magic_test_file"; then
8576          case $deplibs_check_method in
8577          "file_magic "*)
8578            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8579 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8580            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581              $EGREP "$file_magic_regex" > /dev/null; then
8582              :
# Line 7687 | Line 8599 | _LT_EOF
8599        break
8600      fi
8601    done
8602 <  IFS="$lt_save_ifs"
8603 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8602 >  IFS=$lt_save_ifs
8603 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8604    ;;
8605   esac
8606   fi
8607  
8608 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8609   if test -n "$MAGIC_CMD"; then
8610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611   $as_echo "$MAGIC_CMD" >&6; }
# Line 7710 | Line 8622 | if test -z "$lt_cv_path_MAGIC_CMD"; then
8622    if test -n "$ac_tool_prefix"; then
8623      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8624   $as_echo_n "checking for file... " >&6; }
8625 < if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8625 > if ${lt_cv_path_MAGIC_CMD+:} false; then :
8626    $as_echo_n "(cached) " >&6
8627   else
8628    case $MAGIC_CMD in
8629   [\\/*] |  ?:[\\/]*)
8630 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8630 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8631    ;;
8632   *)
8633 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8634 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8633 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8634 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8635    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636    for ac_dir in $ac_dummy; do
8637 <    IFS="$lt_save_ifs"
8637 >    IFS=$lt_save_ifs
8638      test -z "$ac_dir" && ac_dir=.
8639 <    if test -f $ac_dir/file; then
8640 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8639 >    if test -f "$ac_dir/file"; then
8640 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8641        if test -n "$file_magic_test_file"; then
8642          case $deplibs_check_method in
8643          "file_magic "*)
8644            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8645 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8646            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647              $EGREP "$file_magic_regex" > /dev/null; then
8648              :
# Line 7753 | Line 8665 | _LT_EOF
8665        break
8666      fi
8667    done
8668 <  IFS="$lt_save_ifs"
8669 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8668 >  IFS=$lt_save_ifs
8669 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8670    ;;
8671   esac
8672   fi
8673  
8674 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8674 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8675   if test -n "$MAGIC_CMD"; then
8676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8677   $as_echo "$MAGIC_CMD" >&6; }
# Line 7780 | Line 8692 | esac
8692  
8693   # Use C for the default configuration in the libtool script
8694  
8695 < lt_save_CC="$CC"
8695 > lt_save_CC=$CC
8696   ac_ext=c
8697   ac_cpp='$CPP $CPPFLAGS'
8698   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 7834 | Line 8746 | _lt_linker_boilerplate=`cat conftest.err
8746   $RM -r conftest*
8747  
8748  
8749 + ## CAVEAT EMPTOR:
8750 + ## There is no encapsulation within the following macros, do not change
8751 + ## the running order or otherwise move them around unless you know exactly
8752 + ## what you are doing...
8753   if test -n "$compiler"; then
8754  
8755   lt_prog_compiler_no_builtin_flag=
8756  
8757 < if test "$GCC" = yes; then
8758 <  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8757 > if test yes = "$GCC"; then
8758 >  case $cc_basename in
8759 >  nvcc*)
8760 >    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8761 >  *)
8762 >    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8763 >  esac
8764  
8765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8766   $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8767 < if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8767 > if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8768    $as_echo_n "(cached) " >&6
8769   else
8770    lt_cv_prog_compiler_rtti_exceptions=no
8771     ac_outfile=conftest.$ac_objext
8772     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8773 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8774     # Insert the option either (1) after the last *FLAGS variable, or
8775     # (2) before a word containing "conftest.", or (3) at the end.
8776     # Note that $ac_compile itself does not contain backslashes and begins
# Line 7859 | Line 8780 | else
8780     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782     -e 's:$: $lt_compiler_flag:'`
8783 <   (eval echo "\"\$as_me:7862: $lt_compile\"" >&5)
8783 >   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784     (eval "$lt_compile" 2>conftest.err)
8785     ac_status=$?
8786     cat conftest.err >&5
8787 <   echo "$as_me:7866: \$? = $ac_status" >&5
8787 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788     if (exit $ac_status) && test -s "$ac_outfile"; then
8789       # The compiler can only warn and ignore the option if not recognized
8790       # So say no if there are warnings other than the usual output.
8791 <     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8791 >     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794         lt_cv_prog_compiler_rtti_exceptions=yes
# Line 7879 | Line 8800 | fi
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8801   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8802  
8803 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8803 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8804      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8805   else
8806      :
# Line 7896 | Line 8817 | fi
8817   lt_prog_compiler_pic=
8818   lt_prog_compiler_static=
8819  
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7900 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8820  
8821 <  if test "$GCC" = yes; then
8821 >  if test yes = "$GCC"; then
8822      lt_prog_compiler_wl='-Wl,'
8823      lt_prog_compiler_static='-static'
8824  
8825      case $host_os in
8826        aix*)
8827        # All AIX code is PIC.
8828 <      if test "$host_cpu" = ia64; then
8828 >      if test ia64 = "$host_cpu"; then
8829          # AIX 5 now supports IA64 processor
8830          lt_prog_compiler_static='-Bstatic'
8831        fi
8832 +      lt_prog_compiler_pic='-fPIC'
8833        ;;
8834  
8835      amigaos*)
# Line 7920 | Line 8840 | $as_echo_n "checking for $compiler optio
8840          ;;
8841        m68k)
8842              # FIXME: we need at least 68020 code to build shared libraries, but
8843 <            # adding the `-m68020' flag to GCC prevents building anything better,
8844 <            # like `-m68040'.
8843 >            # adding the '-m68020' flag to GCC prevents building anything better,
8844 >            # like '-m68040'.
8845              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8846          ;;
8847        esac
# Line 7937 | Line 8857 | $as_echo_n "checking for $compiler optio
8857        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8858        # (--disable-auto-import) libraries
8859        lt_prog_compiler_pic='-DDLL_EXPORT'
8860 +      case $host_os in
8861 +      os2*)
8862 +        lt_prog_compiler_static='$wl-static'
8863 +        ;;
8864 +      esac
8865        ;;
8866  
8867      darwin* | rhapsody*)
# Line 7945 | Line 8870 | $as_echo_n "checking for $compiler optio
8870        lt_prog_compiler_pic='-fno-common'
8871        ;;
8872  
8873 +    haiku*)
8874 +      # PIC is the default for Haiku.
8875 +      # The "-static" flag exists, but is broken.
8876 +      lt_prog_compiler_static=
8877 +      ;;
8878 +
8879      hpux*)
8880        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8881        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
# Line 7987 | Line 8918 | $as_echo_n "checking for $compiler optio
8918        lt_prog_compiler_pic='-fPIC'
8919        ;;
8920      esac
8921 +
8922 +    case $cc_basename in
8923 +    nvcc*) # Cuda Compiler Driver 2.2
8924 +      lt_prog_compiler_wl='-Xlinker '
8925 +      if test -n "$lt_prog_compiler_pic"; then
8926 +        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8927 +      fi
8928 +      ;;
8929 +    esac
8930    else
8931      # PORTME Check for flag to pass linker flags through the system compiler.
8932      case $host_os in
8933      aix*)
8934        lt_prog_compiler_wl='-Wl,'
8935 <      if test "$host_cpu" = ia64; then
8935 >      if test ia64 = "$host_cpu"; then
8936          # AIX 5 now supports IA64 processor
8937          lt_prog_compiler_static='-Bstatic'
8938        else
# Line 8000 | Line 8940 | $as_echo_n "checking for $compiler optio
8940        fi
8941        ;;
8942  
8943 +    darwin* | rhapsody*)
8944 +      # PIC is the default on this platform
8945 +      # Common symbols not allowed in MH_DYLIB files
8946 +      lt_prog_compiler_pic='-fno-common'
8947 +      case $cc_basename in
8948 +      nagfor*)
8949 +        # NAG Fortran compiler
8950 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8951 +        lt_prog_compiler_pic='-PIC'
8952 +        lt_prog_compiler_static='-Bstatic'
8953 +        ;;
8954 +      esac
8955 +      ;;
8956 +
8957      mingw* | cygwin* | pw32* | os2* | cegcc*)
8958        # This hack is so that the source file can tell whether it is being
8959        # built for inclusion in a dll (and should export symbols for example).
8960        lt_prog_compiler_pic='-DDLL_EXPORT'
8961 +      case $host_os in
8962 +      os2*)
8963 +        lt_prog_compiler_static='$wl-static'
8964 +        ;;
8965 +      esac
8966        ;;
8967  
8968      hpux9* | hpux10* | hpux11*)
# Line 8019 | Line 8978 | $as_echo_n "checking for $compiler optio
8978          ;;
8979        esac
8980        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8981 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8981 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8982        ;;
8983  
8984      irix5* | irix6* | nonstopux*)
# Line 8028 | Line 8987 | $as_echo_n "checking for $compiler optio
8987        lt_prog_compiler_static='-non_shared'
8988        ;;
8989  
8990 <    linux* | k*bsd*-gnu)
8990 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8991        case $cc_basename in
8992 <      # old Intel for x86_64 which still supported -KPIC.
8992 >      # old Intel for x86_64, which still supported -KPIC.
8993        ecc*)
8994          lt_prog_compiler_wl='-Wl,'
8995          lt_prog_compiler_pic='-KPIC'
# Line 8049 | Line 9008 | $as_echo_n "checking for $compiler optio
9008          lt_prog_compiler_pic='--shared'
9009          lt_prog_compiler_static='--static'
9010          ;;
9011 <      pgcc* | pgf77* | pgf90* | pgf95*)
9011 >      nagfor*)
9012 >        # NAG Fortran compiler
9013 >        lt_prog_compiler_wl='-Wl,-Wl,,'
9014 >        lt_prog_compiler_pic='-PIC'
9015 >        lt_prog_compiler_static='-Bstatic'
9016 >        ;;
9017 >      tcc*)
9018 >        # Fabrice Bellard et al's Tiny C Compiler
9019 >        lt_prog_compiler_wl='-Wl,'
9020 >        lt_prog_compiler_pic='-fPIC'
9021 >        lt_prog_compiler_static='-static'
9022 >        ;;
9023 >      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9024          # Portland Group compilers (*not* the Pentium gcc compiler,
9025          # which looks to be a dead project)
9026          lt_prog_compiler_wl='-Wl,'
# Line 8061 | Line 9032 | $as_echo_n "checking for $compiler optio
9032          # All Alpha code is PIC.
9033          lt_prog_compiler_static='-non_shared'
9034          ;;
9035 <      xl*)
9036 <        # IBM XL C 8.0/Fortran 10.1 on PPC
9035 >      xl* | bgxl* | bgf* | mpixl*)
9036 >        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9037          lt_prog_compiler_wl='-Wl,'
9038          lt_prog_compiler_pic='-qpic'
9039          lt_prog_compiler_static='-qstaticlink'
9040          ;;
9041        *)
9042          case `$CC -V 2>&1 | sed 5q` in
9043 +        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9044 +          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9045 +          lt_prog_compiler_pic='-KPIC'
9046 +          lt_prog_compiler_static='-Bstatic'
9047 +          lt_prog_compiler_wl=''
9048 +          ;;
9049 +        *Sun\ F* | *Sun*Fortran*)
9050 +          lt_prog_compiler_pic='-KPIC'
9051 +          lt_prog_compiler_static='-Bstatic'
9052 +          lt_prog_compiler_wl='-Qoption ld '
9053 +          ;;
9054          *Sun\ C*)
9055            # Sun C 5.9
9056            lt_prog_compiler_pic='-KPIC'
9057            lt_prog_compiler_static='-Bstatic'
9058            lt_prog_compiler_wl='-Wl,'
9059            ;;
9060 <        *Sun\ F*)
9061 <          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9062 <          lt_prog_compiler_pic='-KPIC'
9060 >        *Intel*\ [CF]*Compiler*)
9061 >          lt_prog_compiler_wl='-Wl,'
9062 >          lt_prog_compiler_pic='-fPIC'
9063 >          lt_prog_compiler_static='-static'
9064 >          ;;
9065 >        *Portland\ Group*)
9066 >          lt_prog_compiler_wl='-Wl,'
9067 >          lt_prog_compiler_pic='-fpic'
9068            lt_prog_compiler_static='-Bstatic'
8082          lt_prog_compiler_wl=''
9069            ;;
9070          esac
9071          ;;
# Line 8111 | Line 9097 | $as_echo_n "checking for $compiler optio
9097        lt_prog_compiler_pic='-KPIC'
9098        lt_prog_compiler_static='-Bstatic'
9099        case $cc_basename in
9100 <      f77* | f90* | f95*)
9100 >      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9101          lt_prog_compiler_wl='-Qoption ld ';;
9102        *)
9103          lt_prog_compiler_wl='-Wl,';;
# Line 8131 | Line 9117 | $as_echo_n "checking for $compiler optio
9117        ;;
9118  
9119      sysv4*MP*)
9120 <      if test -d /usr/nec ;then
9120 >      if test -d /usr/nec; then
9121          lt_prog_compiler_pic='-Kconform_pic'
9122          lt_prog_compiler_static='-Bstatic'
9123        fi
# Line 8160 | Line 9146 | $as_echo_n "checking for $compiler optio
9146    fi
9147  
9148   case $host_os in
9149 <  # For platforms which do not support PIC, -DPIC is meaningless:
9149 >  # For platforms that do not support PIC, -DPIC is meaningless:
9150    *djgpp*)
9151      lt_prog_compiler_pic=
9152      ;;
# Line 8168 | Line 9154 | case $host_os in
9154      lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9155      ;;
9156   esac
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8172 $as_echo "$lt_prog_compiler_pic" >&6; }
8173
8174
8175
8176
9157  
9158 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9159 + $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9160 + if ${lt_cv_prog_compiler_pic+:} false; then :
9161 +  $as_echo_n "(cached) " >&6
9162 + else
9163 +  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9164 + fi
9165 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9166 + $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9167 + lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9168  
9169   #
9170   # Check to make sure the PIC flag actually works.
# Line 8182 | Line 9172 | $as_echo "$lt_prog_compiler_pic" >&6; }
9172   if test -n "$lt_prog_compiler_pic"; then
9173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9174   $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9175 < if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9175 > if ${lt_cv_prog_compiler_pic_works+:} false; then :
9176    $as_echo_n "(cached) " >&6
9177   else
9178    lt_cv_prog_compiler_pic_works=no
9179     ac_outfile=conftest.$ac_objext
9180     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9181 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9182     # Insert the option either (1) after the last *FLAGS variable, or
9183     # (2) before a word containing "conftest.", or (3) at the end.
9184     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8198 | Line 9188 | else
9188     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190     -e 's:$: $lt_compiler_flag:'`
9191 <   (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
9191 >   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192     (eval "$lt_compile" 2>conftest.err)
9193     ac_status=$?
9194     cat conftest.err >&5
9195 <   echo "$as_me:8205: \$? = $ac_status" >&5
9195 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196     if (exit $ac_status) && test -s "$ac_outfile"; then
9197       # The compiler can only warn and ignore the option if not recognized
9198       # So say no if there are warnings other than the usual output.
9199 <     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9199 >     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202         lt_cv_prog_compiler_pic_works=yes
# Line 8218 | Line 9208 | fi
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9209   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9210  
9211 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9211 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9212      case $lt_prog_compiler_pic in
9213       "" | " "*) ;;
9214       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8235 | Line 9225 | fi
9225  
9226  
9227  
9228 +
9229 +
9230 +
9231 +
9232 +
9233   #
9234   # Check to make sure the static flag actually works.
9235   #
9236   wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9238   $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9239 < if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9239 > if ${lt_cv_prog_compiler_static_works+:} false; then :
9240    $as_echo_n "(cached) " >&6
9241   else
9242    lt_cv_prog_compiler_static_works=no
9243 <   save_LDFLAGS="$LDFLAGS"
9243 >   save_LDFLAGS=$LDFLAGS
9244     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9245     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9246     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8254 | Line 9249 | else
9249       if test -s conftest.err; then
9250         # Append any errors to the config.log.
9251         cat conftest.err 1>&5
9252 <       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9252 >       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9253         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9254         if diff conftest.exp conftest.er2 >/dev/null; then
9255           lt_cv_prog_compiler_static_works=yes
# Line 8264 | Line 9259 | else
9259       fi
9260     fi
9261     $RM -r conftest*
9262 <   LDFLAGS="$save_LDFLAGS"
9262 >   LDFLAGS=$save_LDFLAGS
9263  
9264   fi
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9266   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9267  
9268 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9268 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9269      :
9270   else
9271      lt_prog_compiler_static=
# Line 8284 | Line 9279 | fi
9279  
9280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9281   $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9282 < if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9282 > if ${lt_cv_prog_compiler_c_o+:} false; then :
9283    $as_echo_n "(cached) " >&6
9284   else
9285    lt_cv_prog_compiler_c_o=no
# Line 8303 | Line 9298 | else
9298     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300     -e 's:$: $lt_compiler_flag:'`
9301 <   (eval echo "\"\$as_me:8306: $lt_compile\"" >&5)
9301 >   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302     (eval "$lt_compile" 2>out/conftest.err)
9303     ac_status=$?
9304     cat out/conftest.err >&5
9305 <   echo "$as_me:8310: \$? = $ac_status" >&5
9305 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306     if (exit $ac_status) && test -s out/conftest2.$ac_objext
9307     then
9308       # The compiler can only warn and ignore the option if not recognized
9309       # So say no if there are warnings
9310 <     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9310 >     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9311       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313         lt_cv_prog_compiler_c_o=yes
# Line 8339 | Line 9334 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9334  
9335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9336   $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9337 < if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9337 > if ${lt_cv_prog_compiler_c_o+:} false; then :
9338    $as_echo_n "(cached) " >&6
9339   else
9340    lt_cv_prog_compiler_c_o=no
# Line 8358 | Line 9353 | else
9353     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9354     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9355     -e 's:$: $lt_compiler_flag:'`
9356 <   (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
9356 >   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9357     (eval "$lt_compile" 2>out/conftest.err)
9358     ac_status=$?
9359     cat out/conftest.err >&5
9360 <   echo "$as_me:8365: \$? = $ac_status" >&5
9360 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361     if (exit $ac_status) && test -s out/conftest2.$ac_objext
9362     then
9363       # The compiler can only warn and ignore the option if not recognized
9364       # So say no if there are warnings
9365 <     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9365 >     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9366       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9367       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9368         lt_cv_prog_compiler_c_o=yes
# Line 8390 | Line 9385 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9385  
9386  
9387  
9388 < hard_links="nottested"
9389 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9388 > hard_links=nottested
9389 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9390    # do not overwrite the value of need_locks provided by the user
9391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9392   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 8403 | Line 9398 | $as_echo_n "checking if we can lock with
9398    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9400   $as_echo "$hard_links" >&6; }
9401 <  if test "$hard_links" = no; then
9402 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9403 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9401 >  if test no = "$hard_links"; then
9402 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9403 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9404      need_locks=warn
9405    fi
9406   else
# Line 8433 | Line 9428 | $as_echo_n "checking whether the $compil
9428    hardcode_direct=no
9429    hardcode_direct_absolute=no
9430    hardcode_libdir_flag_spec=
8436  hardcode_libdir_flag_spec_ld=
9431    hardcode_libdir_separator=
9432    hardcode_minus_L=no
9433    hardcode_shlibpath_var=unsupported
# Line 8449 | Line 9443 | $as_echo_n "checking whether the $compil
9443    # included in the symbol list
9444    include_expsyms=
9445    # exclude_expsyms can be an extended regexp of symbols to exclude
9446 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9447 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9448 <  # as well as any symbol that contains `d'.
9446 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9447 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9448 >  # as well as any symbol that contains 'd'.
9449    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9450    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9451    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 8466 | Line 9460 | $as_echo_n "checking whether the $compil
9460      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9461      # When not using gcc, we currently assume that we are using
9462      # Microsoft Visual C++.
9463 <    if test "$GCC" != yes; then
9463 >    if test yes != "$GCC"; then
9464        with_gnu_ld=no
9465      fi
9466      ;;
# Line 8474 | Line 9468 | $as_echo_n "checking whether the $compil
9468      # we just hope/assume this is gcc and not c89 (= MSVC++)
9469      with_gnu_ld=yes
9470      ;;
9471 <  openbsd*)
9471 >  openbsd* | bitrig*)
9472      with_gnu_ld=no
9473      ;;
9474    esac
9475  
9476    ld_shlibs=yes
9477 <  if test "$with_gnu_ld" = yes; then
9477 >
9478 >  # On some targets, GNU ld is compatible enough with the native linker
9479 >  # that we're better off using the native interface for both.
9480 >  lt_use_gnu_ld_interface=no
9481 >  if test yes = "$with_gnu_ld"; then
9482 >    case $host_os in
9483 >      aix*)
9484 >        # The AIX port of GNU ld has always aspired to compatibility
9485 >        # with the native linker.  However, as the warning in the GNU ld
9486 >        # block says, versions before 2.19.5* couldn't really create working
9487 >        # shared libraries, regardless of the interface used.
9488 >        case `$LD -v 2>&1` in
9489 >          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9490 >          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9491 >          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9492 >          *)
9493 >            lt_use_gnu_ld_interface=yes
9494 >            ;;
9495 >        esac
9496 >        ;;
9497 >      *)
9498 >        lt_use_gnu_ld_interface=yes
9499 >        ;;
9500 >    esac
9501 >  fi
9502 >
9503 >  if test yes = "$lt_use_gnu_ld_interface"; then
9504      # If archive_cmds runs LD, not CC, wlarc should be empty
9505 <    wlarc='${wl}'
9505 >    wlarc='$wl'
9506  
9507      # Set some defaults for GNU ld with shared library support. These
9508      # are reset later if shared libraries are not supported. Putting them
9509      # here allows them to be overridden if necessary.
9510      runpath_var=LD_RUN_PATH
9511 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9511 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9512 >    export_dynamic_flag_spec='$wl--export-dynamic'
9513      # ancient GNU ld didn't support --whole-archive et. al.
9514      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9515 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9515 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9516      else
9517        whole_archive_flag_spec=
9518      fi
9519      supports_anon_versioning=no
9520 <    case `$LD -v 2>&1` in
9520 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9521 >      *GNU\ gold*) supports_anon_versioning=yes ;;
9522        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9523        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9524        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
# Line 8509 | Line 9530 | $as_echo_n "checking whether the $compil
9530      case $host_os in
9531      aix[3-9]*)
9532        # On AIX/PPC, the GNU linker is very broken
9533 <      if test "$host_cpu" != ia64; then
9533 >      if test ia64 != "$host_cpu"; then
9534          ld_shlibs=no
9535          cat <<_LT_EOF 1>&2
9536  
9537 < *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9537 > *** Warning: the GNU linker, at least up to release 2.19, is reported
9538   *** to be unable to reliably create shared libraries on AIX.
9539   *** Therefore, libtool is disabling shared libraries support.  If you
9540 < *** really care for shared libraries, you may want to modify your PATH
9541 < *** so that a non-GNU linker is found, and then restart.
9540 > *** really care for shared libraries, you may want to install binutils
9541 > *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9542 > *** You will then need to restart the configuration process.
9543  
9544   _LT_EOF
9545        fi
# Line 8527 | Line 9549 | _LT_EOF
9549        case $host_cpu in
9550        powerpc)
9551              # see comment about AmigaOS4 .so support
9552 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9553              archive_expsym_cmds=''
9554          ;;
9555        m68k)
# Line 8543 | Line 9565 | _LT_EOF
9565          allow_undefined_flag=unsupported
9566          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9567          # support --undefined.  This deserves some investigation.  FIXME
9568 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9569        else
9570          ld_shlibs=no
9571        fi
# Line 8553 | Line 9575 | _LT_EOF
9575        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9576        # as there is no search path for DLLs.
9577        hardcode_libdir_flag_spec='-L$libdir'
9578 +      export_dynamic_flag_spec='$wl--export-all-symbols'
9579        allow_undefined_flag=unsupported
9580        always_export_symbols=no
9581        enable_shared_with_static_runtimes=yes
9582 <      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9582 >      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9583 >      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9584  
9585        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9586 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 <        # If the export-symbols file already is a .def file (1st line
9588 <        # is EXPORTS), use it as is; otherwise, prepend...
9589 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9590 <          cp $export_symbols $output_objdir/$soname.def;
9591 <        else
9592 <          echo EXPORTS > $output_objdir/$soname.def;
9593 <          cat $export_symbols >> $output_objdir/$soname.def;
9594 <        fi~
9595 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9586 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 >        # If the export-symbols file already is a .def file, use it as
9588 >        # is; otherwise, prepend EXPORTS...
9589 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9590 >          cp $export_symbols $output_objdir/$soname.def;
9591 >        else
9592 >          echo EXPORTS > $output_objdir/$soname.def;
9593 >          cat $export_symbols >> $output_objdir/$soname.def;
9594 >        fi~
9595 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9596        else
9597          ld_shlibs=no
9598        fi
9599        ;;
9600  
9601 +    haiku*)
9602 +      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9603 +      link_all_deplibs=yes
9604 +      ;;
9605 +
9606 +    os2*)
9607 +      hardcode_libdir_flag_spec='-L$libdir'
9608 +      hardcode_minus_L=yes
9609 +      allow_undefined_flag=unsupported
9610 +      shrext_cmds=.dll
9611 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9612 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9613 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9614 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9615 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9616 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9617 +        emximp -o $lib $output_objdir/$libname.def'
9618 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9619 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9620 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9621 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9622 +        prefix_cmds="$SED"~
9623 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9624 +          prefix_cmds="$prefix_cmds -e 1d";
9625 +        fi~
9626 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9627 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9628 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9629 +        emximp -o $lib $output_objdir/$libname.def'
9630 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9631 +      enable_shared_with_static_runtimes=yes
9632 +      ;;
9633 +
9634      interix[3-9]*)
9635        hardcode_direct=no
9636        hardcode_shlibpath_var=no
9637 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638 <      export_dynamic_flag_spec='${wl}-E'
9637 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9638 >      export_dynamic_flag_spec='$wl-E'
9639        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9640        # Instead, shared libraries are loaded at an image base (0x10000000 by
9641        # default) and relocated if they conflict, which is a slow very memory
9642        # consuming and fragmenting process.  To avoid this, we pick a random,
9643        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9644        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9645 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9646 <      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'
9645 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9646 >      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'
9647        ;;
9648  
9649 <    gnu* | linux* | tpf* | k*bsd*-gnu)
9649 >    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9650        tmp_diet=no
9651 <      if test "$host_os" = linux-dietlibc; then
9651 >      if test linux-dietlibc = "$host_os"; then
9652          case $cc_basename in
9653            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9654          esac
9655        fi
9656        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9657 <         && test "$tmp_diet" = no
9657 >         && test no = "$tmp_diet"
9658        then
9659 <        tmp_addflag=
9659 >        tmp_addflag=' $pic_flag'
9660          tmp_sharedflag='-shared'
9661          case $cc_basename,$host_cpu in
9662          pgcc*)                          # Portland Group C compiler
9663 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9663 >          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            tmp_addflag=' $pic_flag'
9665            ;;
9666 <        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9667 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9666 >        pgf77* | pgf90* | pgf95* | pgfortran*)
9667 >                                        # Portland Group f77 and f90 compilers
9668 >          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            tmp_addflag=' $pic_flag -Mnomain' ;;
9670          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9671            tmp_addflag=' -i_dynamic' ;;
# Line 8618 | Line 9676 | _LT_EOF
9676          lf95*)                          # Lahey Fortran 8.1
9677            whole_archive_flag_spec=
9678            tmp_sharedflag='--shared' ;;
9679 <        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9679 >        nagfor*)                        # NAGFOR 5.3
9680 >          tmp_sharedflag='-Wl,-shared' ;;
9681 >        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9682            tmp_sharedflag='-qmkshrobj'
9683            tmp_addflag= ;;
9684 +        nvcc*)  # Cuda Compiler Driver 2.2
9685 +          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 +          compiler_needs_object=yes
9687 +          ;;
9688          esac
9689          case `$CC -V 2>&1 | sed 5q` in
9690          *Sun\ C*)                       # Sun C 5.9
9691 <          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9691 >          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            compiler_needs_object=yes
9693            tmp_sharedflag='-G' ;;
9694          *Sun\ F*)                       # Sun Fortran 8.3
9695            tmp_sharedflag='-G' ;;
9696          esac
9697 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9697 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698  
9699 <        if test "x$supports_anon_versioning" = xyes; then
9699 >        if test yes = "$supports_anon_versioning"; then
9700            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9701 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9702 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9703 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9701 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9702 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9703 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9704          fi
9705  
9706          case $cc_basename in
9707 <        xlf*)
9707 >        tcc*)
9708 >          export_dynamic_flag_spec='-rdynamic'
9709 >          ;;
9710 >        xlf* | bgf* | bgxlf* | mpixlf*)
9711            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9712            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9713 <          hardcode_libdir_flag_spec=
9714 <          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9715 <          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8649 <          if test "x$supports_anon_versioning" = xyes; then
9713 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9714 >          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9715 >          if test yes = "$supports_anon_versioning"; then
9716              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9717 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9718 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9719 <              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9717 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9718 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9719 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9720            fi
9721            ;;
9722          esac
# Line 8664 | Line 9730 | _LT_EOF
9730          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9731          wlarc=
9732        else
9733 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9733 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9734 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9735        fi
9736        ;;
9737  
# Line 8683 | Line 9749 | _LT_EOF
9749  
9750   _LT_EOF
9751        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9752 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9752 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9754        else
9755          ld_shlibs=no
9756        fi
# Line 8696 | Line 9762 | _LT_EOF
9762          ld_shlibs=no
9763          cat <<_LT_EOF 1>&2
9764  
9765 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9765 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9766   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9767   *** is disabling shared libraries support.  We urge you to upgrade GNU
9768   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 8711 | Line 9777 | _LT_EOF
9777            # DT_RUNPATH tag from executables and libraries.  But doing so
9778            # requires that you compile everything twice, which is a pain.
9779            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9780 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9780 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9781 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9782 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9783            else
9784              ld_shlibs=no
9785            fi
# Line 8730 | Line 9796 | _LT_EOF
9796  
9797      *)
9798        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9799 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9801        else
9802          ld_shlibs=no
9803        fi
9804        ;;
9805      esac
9806  
9807 <    if test "$ld_shlibs" = no; then
9807 >    if test no = "$ld_shlibs"; then
9808        runpath_var=
9809        hardcode_libdir_flag_spec=
9810        export_dynamic_flag_spec=
# Line 8754 | Line 9820 | _LT_EOF
9820        # Note: this linker hardcodes the directories in LIBPATH if there
9821        # are no directories specified by -L.
9822        hardcode_minus_L=yes
9823 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9823 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9824          # Neither direct hardcoding nor static linking is supported with a
9825          # broken collect2.
9826          hardcode_direct=unsupported
# Line 8762 | Line 9828 | _LT_EOF
9828        ;;
9829  
9830      aix[4-9]*)
9831 <      if test "$host_cpu" = ia64; then
9831 >      if test ia64 = "$host_cpu"; then
9832          # On IA64, the linker does run time linking by default, so we don't
9833          # have to do anything special.
9834          aix_use_runtimelinking=no
9835          exp_sym_flag='-Bexport'
9836 <        no_entry_flag=""
9836 >        no_entry_flag=
9837        else
9838          # If we're using GNU nm, then we don't want the "-C" option.
9839 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9839 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9840 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9841 >        # weak defined symbols like other global defined symbols, whereas
9842 >        # GNU nm marks them as "W".
9843 >        # While the 'weak' keyword is ignored in the Export File, we need
9844 >        # it in the Import File for the 'aix-soname' feature, so we have
9845 >        # to replace the "-B" option with "-P" for AIX nm.
9846          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9847 <          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9847 >          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'
9848          else
9849 <          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'
9849 >          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'
9850          fi
9851          aix_use_runtimelinking=no
9852  
9853          # Test if we are trying to use run time linking or normal
9854          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9855 <        # need to do runtime linking.
9855 >        # have runtime linking enabled, and use it for executables.
9856 >        # For shared libraries, we enable/disable runtime linking
9857 >        # depending on the kind of the shared library created -
9858 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9859 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9860 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9861 >        #            lib.a           static archive
9862 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9863 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9864 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9865 >        #            lib.a(lib.so.V) shared, rtl:no
9866 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9867 >        #            lib.a           static archive
9868          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9869            for ld_flag in $LDFLAGS; do
9870 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9870 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9871              aix_use_runtimelinking=yes
9872              break
9873            fi
9874            done
9875 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9876 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9877 +            # so we don't have lib.a shared libs to link our executables.
9878 +            # We have to force runtime linking in this case.
9879 +            aix_use_runtimelinking=yes
9880 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9881 +          fi
9882            ;;
9883          esac
9884  
# Line 8806 | Line 9897 | _LT_EOF
9897        hardcode_direct_absolute=yes
9898        hardcode_libdir_separator=':'
9899        link_all_deplibs=yes
9900 <      file_list_spec='${wl}-f,'
9900 >      file_list_spec='$wl-f,'
9901 >      case $with_aix_soname,$aix_use_runtimelinking in
9902 >      aix,*) ;; # traditional, no import file
9903 >      svr4,* | *,yes) # use import file
9904 >        # The Import File defines what to hardcode.
9905 >        hardcode_direct=no
9906 >        hardcode_direct_absolute=no
9907 >        ;;
9908 >      esac
9909  
9910 <      if test "$GCC" = yes; then
9910 >      if test yes = "$GCC"; then
9911          case $host_os in aix4.[012]|aix4.[012].*)
9912          # We only want to do this on AIX 4.2 and lower, the check
9913          # below for broken collect2 doesn't work under 4.3+
9914 <          collect2name=`${CC} -print-prog-name=collect2`
9914 >          collect2name=`$CC -print-prog-name=collect2`
9915            if test -f "$collect2name" &&
9916             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9917            then
# Line 8831 | Line 9930 | _LT_EOF
9930            ;;
9931          esac
9932          shared_flag='-shared'
9933 <        if test "$aix_use_runtimelinking" = yes; then
9934 <          shared_flag="$shared_flag "'${wl}-G'
9933 >        if test yes = "$aix_use_runtimelinking"; then
9934 >          shared_flag="$shared_flag "'$wl-G'
9935          fi
9936 <        link_all_deplibs=no
9936 >        # Need to ensure runtime linking is disabled for the traditional
9937 >        # shared library, or the linker may eventually find shared libraries
9938 >        # /with/ Import File - we do not want to mix them.
9939 >        shared_flag_aix='-shared'
9940 >        shared_flag_svr4='-shared $wl-G'
9941        else
9942          # not using gcc
9943 <        if test "$host_cpu" = ia64; then
9943 >        if test ia64 = "$host_cpu"; then
9944          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9945          # chokes on -Wl,-G. The following line is correct:
9946            shared_flag='-G'
9947          else
9948 <          if test "$aix_use_runtimelinking" = yes; then
9949 <            shared_flag='${wl}-G'
9948 >          if test yes = "$aix_use_runtimelinking"; then
9949 >            shared_flag='$wl-G'
9950            else
9951 <            shared_flag='${wl}-bM:SRE'
9951 >            shared_flag='$wl-bM:SRE'
9952            fi
9953 +          shared_flag_aix='$wl-bM:SRE'
9954 +          shared_flag_svr4='$wl-G'
9955          fi
9956        fi
9957  
9958 <      export_dynamic_flag_spec='${wl}-bexpall'
9958 >      export_dynamic_flag_spec='$wl-bexpall'
9959        # It seems that -bexpall does not export symbols beginning with
9960        # underscore (_), so it is better to generate a list of symbols to export.
9961        always_export_symbols=yes
9962 <      if test "$aix_use_runtimelinking" = yes; then
9962 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9963          # Warning - without using the other runtime loading flags (-brtl),
9964          # -berok will link without error, but may produce a broken library.
9965          allow_undefined_flag='-berok'
9966          # Determine the default libpath from the value encoded in an
9967          # empty executable.
9968 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 >        if test set = "${lt_cv_aix_libpath+set}"; then
9969 >  aix_libpath=$lt_cv_aix_libpath
9970 > else
9971 >  if ${lt_cv_aix_libpath_+:} false; then :
9972 >  $as_echo_n "(cached) " >&6
9973 > else
9974 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975   /* end confdefs.h.  */
9976  
9977   int
# Line 8873 | Line 9984 | main ()
9984   _ACEOF
9985   if ac_fn_c_try_link "$LINENO"; then :
9986  
9987 < lt_aix_libpath_sed='
9988 <    /Import File Strings/,/^$/ {
9989 <        /^0/ {
9990 <            s/^0  *\(.*\)$/\1/
9991 <            p
9992 <        }
9993 <    }'
9994 < aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995 < # Check for a 64-bit object if we didn't find anything.
9996 < if test -z "$aix_libpath"; then
9997 <  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 < fi
9987 >  lt_aix_libpath_sed='
9988 >      /Import File Strings/,/^$/ {
9989 >          /^0/ {
9990 >              s/^0  *\([^ ]*\) *$/\1/
9991 >              p
9992 >          }
9993 >      }'
9994 >  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995 >  # Check for a 64-bit object if we didn't find anything.
9996 >  if test -z "$lt_cv_aix_libpath_"; then
9997 >    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 >  fi
9999   fi
10000   rm -f core conftest.err conftest.$ac_objext \
10001      conftest$ac_exeext conftest.$ac_ext
10002 < if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10002 >  if test -z "$lt_cv_aix_libpath_"; then
10003 >    lt_cv_aix_libpath_=/usr/lib:/lib
10004 >  fi
10005 >
10006 > fi
10007 >
10008 >  aix_libpath=$lt_cv_aix_libpath_
10009 > fi
10010  
10011 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10012 <        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10011 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10012 >        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
10013        else
10014 <        if test "$host_cpu" = ia64; then
10015 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10014 >        if test ia64 = "$host_cpu"; then
10015 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10016            allow_undefined_flag="-z nodefs"
10017 <          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"
10017 >          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          else
10019           # Determine the default libpath from the value encoded in an
10020           # empty executable.
10021 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 >         if test set = "${lt_cv_aix_libpath+set}"; then
10022 >  aix_libpath=$lt_cv_aix_libpath
10023 > else
10024 >  if ${lt_cv_aix_libpath_+:} false; then :
10025 >  $as_echo_n "(cached) " >&6
10026 > else
10027 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028   /* end confdefs.h.  */
10029  
10030   int
# Line 8913 | Line 10037 | main ()
10037   _ACEOF
10038   if ac_fn_c_try_link "$LINENO"; then :
10039  
10040 < lt_aix_libpath_sed='
10041 <    /Import File Strings/,/^$/ {
10042 <        /^0/ {
10043 <            s/^0  *\(.*\)$/\1/
10044 <            p
10045 <        }
10046 <    }'
10047 < aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048 < # Check for a 64-bit object if we didn't find anything.
10049 < if test -z "$aix_libpath"; then
10050 <  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051 < fi
10040 >  lt_aix_libpath_sed='
10041 >      /Import File Strings/,/^$/ {
10042 >          /^0/ {
10043 >              s/^0  *\([^ ]*\) *$/\1/
10044 >              p
10045 >          }
10046 >      }'
10047 >  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048 >  # Check for a 64-bit object if we didn't find anything.
10049 >  if test -z "$lt_cv_aix_libpath_"; then
10050 >    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051 >  fi
10052   fi
10053   rm -f core conftest.err conftest.$ac_objext \
10054      conftest$ac_exeext conftest.$ac_ext
10055 < if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10055 >  if test -z "$lt_cv_aix_libpath_"; then
10056 >    lt_cv_aix_libpath_=/usr/lib:/lib
10057 >  fi
10058  
10059 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059 > fi
10060 >
10061 >  aix_libpath=$lt_cv_aix_libpath_
10062 > fi
10063 >
10064 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10065            # Warning - without using the other run time loading flags,
10066            # -berok will link without error, but may produce a broken library.
10067 <          no_undefined_flag=' ${wl}-bernotok'
10068 <          allow_undefined_flag=' ${wl}-berok'
10069 <          # Exported symbols can be pulled into shared objects from archives
10070 <          whole_archive_flag_spec='$convenience'
10067 >          no_undefined_flag=' $wl-bernotok'
10068 >          allow_undefined_flag=' $wl-berok'
10069 >          if test yes = "$with_gnu_ld"; then
10070 >            # We only use this code for GNU lds that support --whole-archive.
10071 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10072 >          else
10073 >            # Exported symbols can be pulled into shared objects from archives
10074 >            whole_archive_flag_spec='$convenience'
10075 >          fi
10076            archive_cmds_need_lc=yes
10077 <          # This is similar to how AIX traditionally builds its shared libraries.
10078 <          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'
10077 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10078 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10079 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10080 >          if test svr4 != "$with_aix_soname"; then
10081 >            # This is similar to how AIX traditionally builds its shared libraries.
10082 >            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'
10083 >          fi
10084 >          if test aix != "$with_aix_soname"; then
10085 >            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'
10086 >          else
10087 >            # used by -dlpreopen to get the symbols
10088 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10089 >          fi
10090 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10091          fi
10092        fi
10093        ;;
# Line 8948 | Line 10096 | if test -z "$aix_libpath"; then aix_libp
10096        case $host_cpu in
10097        powerpc)
10098              # see comment about AmigaOS4 .so support
10099 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10099 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10100              archive_expsym_cmds=''
10101          ;;
10102        m68k)
# Line 8968 | Line 10116 | if test -z "$aix_libpath"; then aix_libp
10116        # Microsoft Visual C++.
10117        # hardcode_libdir_flag_spec is actually meaningless, as there is
10118        # no search path for DLLs.
10119 <      hardcode_libdir_flag_spec=' '
10120 <      allow_undefined_flag=unsupported
10121 <      # Tell ltmain to make .lib files, not .a files.
10122 <      libext=lib
10123 <      # Tell ltmain to make .dll files, not .so files.
10124 <      shrext_cmds=".dll"
10125 <      # FIXME: Setting linknames here is a bad hack.
10126 <      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10127 <      # The linker will automatically build a .lib file if we build a DLL.
10128 <      old_archive_from_new_cmds='true'
10129 <      # FIXME: Should let the user specify the lib program.
10130 <      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10131 <      fix_srcfile_path='`cygpath -w "$srcfile"`'
10132 <      enable_shared_with_static_runtimes=yes
10119 >      case $cc_basename in
10120 >      cl*)
10121 >        # Native MSVC
10122 >        hardcode_libdir_flag_spec=' '
10123 >        allow_undefined_flag=unsupported
10124 >        always_export_symbols=yes
10125 >        file_list_spec='@'
10126 >        # Tell ltmain to make .lib files, not .a files.
10127 >        libext=lib
10128 >        # Tell ltmain to make .dll files, not .so files.
10129 >        shrext_cmds=.dll
10130 >        # FIXME: Setting linknames here is a bad hack.
10131 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10132 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10133 >            cp "$export_symbols" "$output_objdir/$soname.def";
10134 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10135 >          else
10136 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $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='
10140 >        # The linker will not automatically build a static lib if we build a DLL.
10141 >        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10142 >        enable_shared_with_static_runtimes=yes
10143 >        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10144 >        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10145 >        # Don't use ranlib
10146 >        old_postinstall_cmds='chmod 644 $oldlib'
10147 >        postlink_cmds='lt_outputfile="@OUTPUT@"~
10148 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10149 >          case $lt_outputfile in
10150 >            *.exe|*.EXE) ;;
10151 >            *)
10152 >              lt_outputfile=$lt_outputfile.exe
10153 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10154 >              ;;
10155 >          esac~
10156 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10157 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10158 >            $RM "$lt_outputfile.manifest";
10159 >          fi'
10160 >        ;;
10161 >      *)
10162 >        # Assume MSVC wrapper
10163 >        hardcode_libdir_flag_spec=' '
10164 >        allow_undefined_flag=unsupported
10165 >        # Tell ltmain to make .lib files, not .a files.
10166 >        libext=lib
10167 >        # Tell ltmain to make .dll files, not .so files.
10168 >        shrext_cmds=.dll
10169 >        # FIXME: Setting linknames here is a bad hack.
10170 >        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10171 >        # The linker will automatically build a .lib file if we build a DLL.
10172 >        old_archive_from_new_cmds='true'
10173 >        # FIXME: Should let the user specify the lib program.
10174 >        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10175 >        enable_shared_with_static_runtimes=yes
10176 >        ;;
10177 >      esac
10178        ;;
10179  
10180      darwin* | rhapsody*)
# Line 8991 | Line 10184 | if test -z "$aix_libpath"; then aix_libp
10184    hardcode_direct=no
10185    hardcode_automatic=yes
10186    hardcode_shlibpath_var=unsupported
10187 <  whole_archive_flag_spec=''
10187 >  if test yes = "$lt_cv_ld_force_load"; then
10188 >    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\"`'
10189 >
10190 >  else
10191 >    whole_archive_flag_spec=''
10192 >  fi
10193    link_all_deplibs=yes
10194 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10194 >  allow_undefined_flag=$_lt_dar_allow_undefined
10195    case $cc_basename in
10196 <     ifort*) _lt_dar_can_shared=yes ;;
10196 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10197       *) _lt_dar_can_shared=$GCC ;;
10198    esac
10199 <  if test "$_lt_dar_can_shared" = "yes"; then
10200 <    output_verbose_link_cmd=echo
10201 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10202 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10203 <    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}"
10204 <    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}"
10199 >  if test yes = "$_lt_dar_can_shared"; then
10200 >    output_verbose_link_cmd=func_echo_all
10201 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10202 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10203 >    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"
10204 >    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"
10205  
10206    else
10207    ld_shlibs=no
# Line 9017 | Line 10215 | if test -z "$aix_libpath"; then aix_libp
10215        hardcode_shlibpath_var=no
10216        ;;
10217  
9020    freebsd1*)
9021      ld_shlibs=no
9022      ;;
9023
10218      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10219      # support.  Future versions do this automatically, but an explicit c++rt0.o
10220      # does not break anything, and helps significantly (at the cost of a little
# Line 9033 | Line 10227 | if test -z "$aix_libpath"; then aix_libp
10227        ;;
10228  
10229      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10230 <    freebsd2*)
10230 >    freebsd2.*)
10231        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232        hardcode_direct=yes
10233        hardcode_minus_L=yes
# Line 9042 | Line 10236 | if test -z "$aix_libpath"; then aix_libp
10236  
10237      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10238      freebsd* | dragonfly*)
10239 <      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10239 >      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240        hardcode_libdir_flag_spec='-R$libdir'
10241        hardcode_direct=yes
10242        hardcode_shlibpath_var=no
10243        ;;
10244  
10245      hpux9*)
10246 <      if test "$GCC" = yes; then
10247 <        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10246 >      if test yes = "$GCC"; then
10247 >        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'
10248        else
10249 <        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'
10249 >        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'
10250        fi
10251 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10251 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10252        hardcode_libdir_separator=:
10253        hardcode_direct=yes
10254  
10255        # hardcode_minus_L: Not really in the search PATH,
10256        # but as the default location of the library.
10257        hardcode_minus_L=yes
10258 <      export_dynamic_flag_spec='${wl}-E'
10258 >      export_dynamic_flag_spec='$wl-E'
10259        ;;
10260  
10261      hpux10*)
10262 <      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10263 <        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10262 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10263 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10264        else
10265          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10266        fi
10267 <      if test "$with_gnu_ld" = no; then
10268 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075 <        hardcode_libdir_flag_spec_ld='+b $libdir'
10267 >      if test no = "$with_gnu_ld"; then
10268 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10269          hardcode_libdir_separator=:
10270          hardcode_direct=yes
10271          hardcode_direct_absolute=yes
10272 <        export_dynamic_flag_spec='${wl}-E'
10272 >        export_dynamic_flag_spec='$wl-E'
10273          # hardcode_minus_L: Not really in the search PATH,
10274          # but as the default location of the library.
10275          hardcode_minus_L=yes
# Line 9084 | Line 10277 | if test -z "$aix_libpath"; then aix_libp
10277        ;;
10278  
10279      hpux11*)
10280 <      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10280 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10281          case $host_cpu in
10282          hppa*64*)
10283 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10284            ;;
10285          ia64*)
10286 <          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10286 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287            ;;
10288          *)
10289 <          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10289 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290            ;;
10291          esac
10292        else
10293          case $host_cpu in
10294          hppa*64*)
10295 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10296            ;;
10297          ia64*)
10298 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10298 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299            ;;
10300          *)
10301 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301 >
10302 >          # Older versions of the 11.00 compiler do not understand -b yet
10303 >          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10304 >          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10305 > $as_echo_n "checking if $CC understands -b... " >&6; }
10306 > if ${lt_cv_prog_compiler__b+:} false; then :
10307 >  $as_echo_n "(cached) " >&6
10308 > else
10309 >  lt_cv_prog_compiler__b=no
10310 >   save_LDFLAGS=$LDFLAGS
10311 >   LDFLAGS="$LDFLAGS -b"
10312 >   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10313 >   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10314 >     # The linker can only warn and ignore the option if not recognized
10315 >     # So say no if there are warnings
10316 >     if test -s conftest.err; then
10317 >       # Append any errors to the config.log.
10318 >       cat conftest.err 1>&5
10319 >       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10320 >       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10321 >       if diff conftest.exp conftest.er2 >/dev/null; then
10322 >         lt_cv_prog_compiler__b=yes
10323 >       fi
10324 >     else
10325 >       lt_cv_prog_compiler__b=yes
10326 >     fi
10327 >   fi
10328 >   $RM -r conftest*
10329 >   LDFLAGS=$save_LDFLAGS
10330 >
10331 > fi
10332 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10333 > $as_echo "$lt_cv_prog_compiler__b" >&6; }
10334 >
10335 > if test yes = "$lt_cv_prog_compiler__b"; then
10336 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10337 > else
10338 >    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10339 > fi
10340 >
10341            ;;
10342          esac
10343        fi
10344 <      if test "$with_gnu_ld" = no; then
10345 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10344 >      if test no = "$with_gnu_ld"; then
10345 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10346          hardcode_libdir_separator=:
10347  
10348          case $host_cpu in
# Line 9121 | Line 10353 | if test -z "$aix_libpath"; then aix_libp
10353          *)
10354            hardcode_direct=yes
10355            hardcode_direct_absolute=yes
10356 <          export_dynamic_flag_spec='${wl}-E'
10356 >          export_dynamic_flag_spec='$wl-E'
10357  
10358            # hardcode_minus_L: Not really in the search PATH,
10359            # but as the default location of the library.
# Line 9132 | Line 10364 | if test -z "$aix_libpath"; then aix_libp
10364        ;;
10365  
10366      irix5* | irix6* | nonstopux*)
10367 <      if test "$GCC" = yes; then
10368 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10367 >      if test yes = "$GCC"; then
10368 >        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'
10369          # Try to use the -exported_symbol ld option, if it does not
10370          # work, assume that -exports_file does not work either and
10371          # implicitly export all symbols.
10372 <        save_LDFLAGS="$LDFLAGS"
10373 <        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10374 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 >        # This should be the same for all languages, so no per-tag cache variable.
10373 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10374 > $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10375 > if ${lt_cv_irix_exported_symbol+:} false; then :
10376 >  $as_echo_n "(cached) " >&6
10377 > else
10378 >  save_LDFLAGS=$LDFLAGS
10379 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10380 >           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381   /* end confdefs.h.  */
10382 < int foo(void) {}
10382 > int foo (void) { return 0; }
10383   _ACEOF
10384   if ac_fn_c_try_link "$LINENO"; then :
10385 <  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10386 <
10385 >  lt_cv_irix_exported_symbol=yes
10386 > else
10387 >  lt_cv_irix_exported_symbol=no
10388   fi
10389   rm -f core conftest.err conftest.$ac_objext \
10390      conftest$ac_exeext conftest.$ac_ext
10391 <        LDFLAGS="$save_LDFLAGS"
10391 >           LDFLAGS=$save_LDFLAGS
10392 > fi
10393 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10394 > $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10395 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10396 >          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'
10397 >        fi
10398        else
10399 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10400 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10399 >        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'
10400 >        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'
10401        fi
10402        archive_cmds_need_lc='no'
10403 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10403 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10404        hardcode_libdir_separator=:
10405        inherit_rpath=yes
10406        link_all_deplibs=yes
10407        ;;
10408  
10409 +    linux*)
10410 +      case $cc_basename in
10411 +      tcc*)
10412 +        # Fabrice Bellard et al's Tiny C Compiler
10413 +        ld_shlibs=yes
10414 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10415 +        ;;
10416 +      esac
10417 +      ;;
10418 +
10419      netbsd*)
10420        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10421          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 9175 | Line 10430 | rm -f core conftest.err conftest.$ac_obj
10430      newsos6)
10431        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432        hardcode_direct=yes
10433 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10434        hardcode_libdir_separator=:
10435        hardcode_shlibpath_var=no
10436        ;;
# Line 9183 | Line 10438 | rm -f core conftest.err conftest.$ac_obj
10438      *nto* | *qnx*)
10439        ;;
10440  
10441 <    openbsd*)
10441 >    openbsd* | bitrig*)
10442        if test -f /usr/libexec/ld.so; then
10443          hardcode_direct=yes
10444          hardcode_shlibpath_var=no
10445          hardcode_direct_absolute=yes
10446 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10446 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10447            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10448 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10449 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10450 <          export_dynamic_flag_spec='${wl}-E'
10448 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10449 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10450 >          export_dynamic_flag_spec='$wl-E'
10451          else
10452 <          case $host_os in
10453 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9199 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9200 <             hardcode_libdir_flag_spec='-R$libdir'
9201 <             ;;
9202 <           *)
9203 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9204 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 <             ;;
9206 <          esac
10452 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10453 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10454          fi
10455        else
10456          ld_shlibs=no
# Line 9214 | Line 10461 | rm -f core conftest.err conftest.$ac_obj
10461        hardcode_libdir_flag_spec='-L$libdir'
10462        hardcode_minus_L=yes
10463        allow_undefined_flag=unsupported
10464 <      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'
10465 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10464 >      shrext_cmds=.dll
10465 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10466 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10467 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10468 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10469 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10470 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10471 >        emximp -o $lib $output_objdir/$libname.def'
10472 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10473 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10474 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10475 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10476 >        prefix_cmds="$SED"~
10477 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10478 >          prefix_cmds="$prefix_cmds -e 1d";
10479 >        fi~
10480 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10481 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10482 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10483 >        emximp -o $lib $output_objdir/$libname.def'
10484 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10485 >      enable_shared_with_static_runtimes=yes
10486        ;;
10487  
10488      osf3*)
10489 <      if test "$GCC" = yes; then
10490 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10491 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10489 >      if test yes = "$GCC"; then
10490 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10491 >        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'
10492        else
10493          allow_undefined_flag=' -expect_unresolved \*'
10494 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10494 >        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        fi
10496        archive_cmds_need_lc='no'
10497 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10497 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10498        hardcode_libdir_separator=:
10499        ;;
10500  
10501      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10502 <      if test "$GCC" = yes; then
10503 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10504 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10505 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10502 >      if test yes = "$GCC"; then
10503 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10504 >        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'
10505 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10506        else
10507          allow_undefined_flag=' -expect_unresolved \*'
10508 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10508 >        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_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~
10510 <        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10510 >          $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  
10512          # Both c and cxx compiler support -rpath directly
10513          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 9251 | Line 10518 | rm -f core conftest.err conftest.$ac_obj
10518  
10519      solaris*)
10520        no_undefined_flag=' -z defs'
10521 <      if test "$GCC" = yes; then
10522 <        wlarc='${wl}'
10523 <        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 >      if test yes = "$GCC"; then
10522 >        wlarc='$wl'
10523 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10524          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10525 <          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525 >          $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        else
10527          case `$CC -V 2>&1` in
10528          *"Compilers 5.0"*)
10529            wlarc=''
10530 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10532 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10533            ;;
10534          *)
10535 <          wlarc='${wl}'
10536 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10535 >          wlarc='$wl'
10536 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10537            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10538 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10539            ;;
10540          esac
10541        fi
# Line 9278 | Line 10545 | rm -f core conftest.err conftest.$ac_obj
10545        solaris2.[0-5] | solaris2.[0-5].*) ;;
10546        *)
10547          # The compiler driver will combine and reorder linker options,
10548 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10548 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10549          # but is careful enough not to reorder.
10550          # Supported since Solaris 2.6 (maybe 2.5.1?)
10551 <        if test "$GCC" = yes; then
10552 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10551 >        if test yes = "$GCC"; then
10552 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10553          else
10554            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10555          fi
# Line 9292 | Line 10559 | rm -f core conftest.err conftest.$ac_obj
10559        ;;
10560  
10561      sunos4*)
10562 <      if test "x$host_vendor" = xsequent; then
10562 >      if test sequent = "$host_vendor"; then
10563          # Use $CC to link under sequent, because it throws in some extra .o
10564          # files that make .init and .fini sections work.
10565 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10565 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10566        else
10567          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10568        fi
# Line 9344 | Line 10611 | rm -f core conftest.err conftest.$ac_obj
10611        ;;
10612  
10613      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10614 <      no_undefined_flag='${wl}-z,text'
10614 >      no_undefined_flag='$wl-z,text'
10615        archive_cmds_need_lc=no
10616        hardcode_shlibpath_var=no
10617        runpath_var='LD_RUN_PATH'
10618  
10619 <      if test "$GCC" = yes; then
10620 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 >      if test yes = "$GCC"; then
10620 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622        else
10623 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625        fi
10626        ;;
10627  
10628      sysv5* | sco3.2v5* | sco5v6*)
10629 <      # Note: We can NOT use -z defs as we might desire, because we do not
10629 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10630        # link with -lc, and that would cause any symbols used from libc to
10631        # always be unresolved, which means just about no library would
10632        # ever link correctly.  If we're not using GNU ld we use -z text
10633        # though, which does catch some bad symbols but isn't as heavy-handed
10634        # as -z defs.
10635 <      no_undefined_flag='${wl}-z,text'
10636 <      allow_undefined_flag='${wl}-z,nodefs'
10635 >      no_undefined_flag='$wl-z,text'
10636 >      allow_undefined_flag='$wl-z,nodefs'
10637        archive_cmds_need_lc=no
10638        hardcode_shlibpath_var=no
10639 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10639 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10640        hardcode_libdir_separator=':'
10641        link_all_deplibs=yes
10642 <      export_dynamic_flag_spec='${wl}-Bexport'
10642 >      export_dynamic_flag_spec='$wl-Bexport'
10643        runpath_var='LD_RUN_PATH'
10644  
10645 <      if test "$GCC" = yes; then
10646 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 >      if test yes = "$GCC"; then
10646 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648        else
10649 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651        fi
10652        ;;
10653  
# Line 9395 | Line 10662 | rm -f core conftest.err conftest.$ac_obj
10662        ;;
10663      esac
10664  
10665 <    if test x$host_vendor = xsni; then
10665 >    if test sni = "$host_vendor"; then
10666        case $host in
10667        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10668 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10668 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10669          ;;
10670        esac
10671      fi
# Line 9406 | Line 10673 | rm -f core conftest.err conftest.$ac_obj
10673  
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10675   $as_echo "$ld_shlibs" >&6; }
10676 < test "$ld_shlibs" = no && can_build_shared=no
10676 > test no = "$ld_shlibs" && can_build_shared=no
10677  
10678   with_gnu_ld=$with_gnu_ld
10679  
# Line 9432 | Line 10699 | x|xyes)
10699    # Assume -lc should be added
10700    archive_cmds_need_lc=yes
10701  
10702 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10702 >  if test yes,yes = "$GCC,$enable_shared"; then
10703      case $archive_cmds in
10704      *'~'*)
10705        # FIXME: we may have to deal with multi-command sequences.
# Line 9443 | Line 10710 | x|xyes)
10710        # to ld, don't add -lc before -lgcc.
10711        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10712   $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10713 <      $RM conftest*
10714 <      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 > if ${lt_cv_archive_cmds_need_lc+:} false; then :
10714 >  $as_echo_n "(cached) " >&6
10715 > else
10716 >  $RM conftest*
10717 >        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10718  
10719 <      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10719 >        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10720    (eval $ac_compile) 2>&5
10721    ac_status=$?
10722    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723    test $ac_status = 0; } 2>conftest.err; then
10724 <        soname=conftest
10725 <        lib=conftest
10726 <        libobjs=conftest.$ac_objext
10727 <        deplibs=
10728 <        wl=$lt_prog_compiler_wl
10729 <        pic_flag=$lt_prog_compiler_pic
10730 <        compiler_flags=-v
10731 <        linker_flags=-v
10732 <        verstring=
10733 <        output_objdir=.
10734 <        libname=conftest
10735 <        lt_save_allow_undefined_flag=$allow_undefined_flag
10736 <        allow_undefined_flag=
10737 <        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10724 >          soname=conftest
10725 >          lib=conftest
10726 >          libobjs=conftest.$ac_objext
10727 >          deplibs=
10728 >          wl=$lt_prog_compiler_wl
10729 >          pic_flag=$lt_prog_compiler_pic
10730 >          compiler_flags=-v
10731 >          linker_flags=-v
10732 >          verstring=
10733 >          output_objdir=.
10734 >          libname=conftest
10735 >          lt_save_allow_undefined_flag=$allow_undefined_flag
10736 >          allow_undefined_flag=
10737 >          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10738    (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10739    ac_status=$?
10740    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741    test $ac_status = 0; }
10742 <        then
10743 <          archive_cmds_need_lc=no
10744 <        else
10745 <          archive_cmds_need_lc=yes
10746 <        fi
10747 <        allow_undefined_flag=$lt_save_allow_undefined_flag
10748 <      else
10749 <        cat conftest.err 1>&5
10750 <      fi
10751 <      $RM conftest*
10752 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10753 < $as_echo "$archive_cmds_need_lc" >&6; }
10742 >          then
10743 >            lt_cv_archive_cmds_need_lc=no
10744 >          else
10745 >            lt_cv_archive_cmds_need_lc=yes
10746 >          fi
10747 >          allow_undefined_flag=$lt_save_allow_undefined_flag
10748 >        else
10749 >          cat conftest.err 1>&5
10750 >        fi
10751 >        $RM conftest*
10752 >
10753 > fi
10754 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10755 > $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10756 >      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10757        ;;
10758      esac
10759    fi
# Line 9638 | Line 10911 | esac
10911  
10912  
10913  
9641
9642
9643
9644
9645
10914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10915   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10916  
10917 < if test "$GCC" = yes; then
10917 > if test yes = "$GCC"; then
10918 >  case $host_os in
10919 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10920 >    *) lt_awk_arg='/^libraries:/' ;;
10921 >  esac
10922    case $host_os in
10923 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10924 <    *) lt_awk_arg="/^libraries:/" ;;
10923 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10924 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10925    esac
10926 <  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10927 <  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10926 >  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10927 >  case $lt_search_path_spec in
10928 >  *\;*)
10929      # if the path contains ";" then we assume it to be the separator
10930      # otherwise default to the standard path separator (i.e. ":") - it is
10931      # assumed that no part of a normal pathname contains ";" but that should
10932      # okay in the real world where ";" in dirpaths is itself problematic.
10933 <    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10934 <  else
10935 <    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10936 <  fi
10933 >    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10934 >    ;;
10935 >  *)
10936 >    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10937 >    ;;
10938 >  esac
10939    # Ok, now we have the path, separated by spaces, we can step through it
10940 <  # and add multilib dir if necessary.
10940 >  # and add multilib dir if necessary...
10941    lt_tmp_lt_search_path_spec=
10942 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10942 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10943 >  # ...but if some path component already ends with the multilib dir we assume
10944 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10945 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10946 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10947 >    lt_multi_os_dir=
10948 >    ;;
10949 >  esac
10950    for lt_sys_path in $lt_search_path_spec; do
10951 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10952 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10953 <    else
10951 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10952 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10953 >    elif test -n "$lt_multi_os_dir"; then
10954        test -d "$lt_sys_path" && \
10955          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10956      fi
10957    done
10958 <  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10959 < BEGIN {RS=" "; FS="/|\n";} {
10960 <  lt_foo="";
10961 <  lt_count=0;
10958 >  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10959 > BEGIN {RS = " "; FS = "/|\n";} {
10960 >  lt_foo = "";
10961 >  lt_count = 0;
10962    for (lt_i = NF; lt_i > 0; lt_i--) {
10963      if ($lt_i != "" && $lt_i != ".") {
10964        if ($lt_i == "..") {
10965          lt_count++;
10966        } else {
10967          if (lt_count == 0) {
10968 <          lt_foo="/" $lt_i lt_foo;
10968 >          lt_foo = "/" $lt_i lt_foo;
10969          } else {
10970            lt_count--;
10971          }
# Line 9693 | Line 10975 | BEGIN {RS=" "; FS="/|\n";} {
10975    if (lt_foo != "") { lt_freq[lt_foo]++; }
10976    if (lt_freq[lt_foo] == 1) { print lt_foo; }
10977   }'`
10978 <  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10978 >  # AWK program above erroneously prepends '/' to C:/dos/paths
10979 >  # for these hosts.
10980 >  case $host_os in
10981 >    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10982 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10983 >  esac
10984 >  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10985   else
10986    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10987   fi
10988   library_names_spec=
10989   libname_spec='lib$name'
10990   soname_spec=
10991 < shrext_cmds=".so"
10991 > shrext_cmds=.so
10992   postinstall_cmds=
10993   postuninstall_cmds=
10994   finish_cmds=
# Line 9717 | Line 11005 | hardcode_into_libs=no
11005   # flags to be left without arguments
11006   need_version=unknown
11007  
11008 +
11009 +
11010   case $host_os in
11011   aix3*)
11012 <  version_type=linux
11013 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11012 >  version_type=linux # correct to gnu/linux during the next big refactor
11013 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11014    shlibpath_var=LIBPATH
11015  
11016    # AIX 3 has no versioning support, so we append a major version to the name.
11017 <  soname_spec='${libname}${release}${shared_ext}$major'
11017 >  soname_spec='$libname$release$shared_ext$major'
11018    ;;
11019  
11020   aix[4-9]*)
11021 <  version_type=linux
11021 >  version_type=linux # correct to gnu/linux during the next big refactor
11022    need_lib_prefix=no
11023    need_version=no
11024    hardcode_into_libs=yes
11025 <  if test "$host_cpu" = ia64; then
11025 >  if test ia64 = "$host_cpu"; then
11026      # AIX 5 supports IA64
11027 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11027 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11028      shlibpath_var=LD_LIBRARY_PATH
11029    else
11030      # With GCC up to 2.95.x, collect2 would create an import file
11031      # for dependence libraries.  The import file would start with
11032 <    # the line `#! .'.  This would cause the generated library to
11033 <    # depend on `.', always an invalid library.  This was fixed in
11032 >    # the line '#! .'.  This would cause the generated library to
11033 >    # depend on '.', always an invalid library.  This was fixed in
11034      # development snapshots of GCC prior to 3.0.
11035      case $host_os in
11036        aix4 | aix4.[01] | aix4.[01].*)
11037        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11038             echo ' yes '
11039 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11039 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11040          :
11041        else
11042          can_build_shared=no
11043        fi
11044        ;;
11045      esac
11046 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11046 >    # Using Import Files as archive members, it is possible to support
11047 >    # filename-based versioning of shared library archives on AIX. While
11048 >    # this would work for both with and without runtime linking, it will
11049 >    # prevent static linking of such archives. So we do filename-based
11050 >    # shared library versioning with .so extension only, which is used
11051 >    # when both runtime linking and shared linking is enabled.
11052 >    # Unfortunately, runtime linking may impact performance, so we do
11053 >    # not want this to be the default eventually. Also, we use the
11054 >    # versioned .so libs for executables only if there is the -brtl
11055 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11056 >    # To allow for filename-based versioning support, we need to create
11057 >    # libNAME.so.V as an archive file, containing:
11058 >    # *) an Import File, referring to the versioned filename of the
11059 >    #    archive as well as the shared archive member, telling the
11060 >    #    bitwidth (32 or 64) of that shared object, and providing the
11061 >    #    list of exported symbols of that shared object, eventually
11062 >    #    decorated with the 'weak' keyword
11063 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11064 >    #    it being seen by the linker.
11065 >    # At run time we better use the real file rather than another symlink,
11066 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11067 >
11068 >    case $with_aix_soname,$aix_use_runtimelinking in
11069 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11070      # soname into executable. Probably we can add versioning support to
11071      # collect2, so additional links can be useful in future.
11072 <    if test "$aix_use_runtimelinking" = yes; then
11072 >    aix,yes) # traditional libtool
11073 >      dynamic_linker='AIX unversionable lib.so'
11074        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11075        # instead of lib<name>.a to let people know that these are not
11076        # typical AIX shared libraries.
11077 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 <    else
11077 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078 >      ;;
11079 >    aix,no) # traditional AIX only
11080 >      dynamic_linker='AIX lib.a(lib.so.V)'
11081        # We preserve .a as extension for shared libraries through AIX4.2
11082        # and later when we are not doing run time linking.
11083 <      library_names_spec='${libname}${release}.a $libname.a'
11084 <      soname_spec='${libname}${release}${shared_ext}$major'
11085 <    fi
11083 >      library_names_spec='$libname$release.a $libname.a'
11084 >      soname_spec='$libname$release$shared_ext$major'
11085 >      ;;
11086 >    svr4,*) # full svr4 only
11087 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11088 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11089 >      # We do not specify a path in Import Files, so LIBPATH fires.
11090 >      shlibpath_overrides_runpath=yes
11091 >      ;;
11092 >    *,yes) # both, prefer svr4
11093 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11094 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11095 >      # unpreferred sharedlib libNAME.a needs extra handling
11096 >      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"'
11097 >      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"'
11098 >      # We do not specify a path in Import Files, so LIBPATH fires.
11099 >      shlibpath_overrides_runpath=yes
11100 >      ;;
11101 >    *,no) # both, prefer aix
11102 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11103 >      library_names_spec='$libname$release.a $libname.a'
11104 >      soname_spec='$libname$release$shared_ext$major'
11105 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11106 >      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)'
11107 >      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"'
11108 >      ;;
11109 >    esac
11110      shlibpath_var=LIBPATH
11111    fi
11112    ;;
# Line 9776 | Line 11116 | amigaos*)
11116    powerpc)
11117      # Since July 2007 AmigaOS4 officially supports .so libraries.
11118      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11119 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120      ;;
11121    m68k)
11122      library_names_spec='$libname.ixlibrary $libname.a'
11123      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11124 <    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11124 >    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'
11125      ;;
11126    esac
11127    ;;
11128  
11129   beos*)
11130 <  library_names_spec='${libname}${shared_ext}'
11130 >  library_names_spec='$libname$shared_ext'
11131    dynamic_linker="$host_os ld.so"
11132    shlibpath_var=LIBRARY_PATH
11133    ;;
11134  
11135   bsdi[45]*)
11136 <  version_type=linux
11136 >  version_type=linux # correct to gnu/linux during the next big refactor
11137    need_version=no
11138 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 <  soname_spec='${libname}${release}${shared_ext}$major'
11138 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 >  soname_spec='$libname$release$shared_ext$major'
11140    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11141    shlibpath_var=LD_LIBRARY_PATH
11142    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 9808 | Line 11148 | bsdi[45]*)
11148  
11149   cygwin* | mingw* | pw32* | cegcc*)
11150    version_type=windows
11151 <  shrext_cmds=".dll"
11151 >  shrext_cmds=.dll
11152    need_version=no
11153    need_lib_prefix=no
11154  
11155 <  case $GCC,$host_os in
11156 <  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11155 >  case $GCC,$cc_basename in
11156 >  yes,*)
11157 >    # gcc
11158      library_names_spec='$libname.dll.a'
11159      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11160 <    postinstall_cmds='base_file=`basename \${file}`~
11161 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11160 >    postinstall_cmds='base_file=`basename \$file`~
11161 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11162        dldir=$destdir/`dirname \$dlpath`~
11163        test -d \$dldir || mkdir -p \$dldir~
11164        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 9833 | Line 11174 | cygwin* | mingw* | pw32* | cegcc*)
11174      case $host_os in
11175      cygwin*)
11176        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11177 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11178 <      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11177 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11178 >
11179 >      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11180        ;;
11181      mingw* | cegcc*)
11182        # MinGW DLLs use traditional 'lib' prefix
11183 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11184 <      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11183 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11184 >      ;;
11185 >    pw32*)
11186 >      # pw32 DLLs use 'pw' prefix rather than 'lib'
11187 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11188 >      ;;
11189 >    esac
11190 >    dynamic_linker='Win32 ld.exe'
11191 >    ;;
11192 >
11193 >  *,cl*)
11194 >    # Native MSVC
11195 >    libname_spec='$name'
11196 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11197 >    library_names_spec='$libname.dll.lib'
11198 >
11199 >    case $build_os in
11200 >    mingw*)
11201 >      sys_lib_search_path_spec=
11202 >      lt_save_ifs=$IFS
11203 >      IFS=';'
11204 >      for lt_path in $LIB
11205 >      do
11206 >        IFS=$lt_save_ifs
11207 >        # Let DOS variable expansion print the short 8.3 style file name.
11208 >        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11209 >        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11210 >      done
11211 >      IFS=$lt_save_ifs
11212 >      # Convert to MSYS style.
11213 >      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11214 >      ;;
11215 >    cygwin*)
11216 >      # Convert to unix form, then to dos form, then back to unix form
11217 >      # but this time dos style (no spaces!) so that the unix form looks
11218 >      # like /cygdrive/c/PROGRA~1:/cygdr...
11219 >      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11220 >      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11221 >      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11222 >      ;;
11223 >    *)
11224 >      sys_lib_search_path_spec=$LIB
11225        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11226 <        # It is most probably a Windows format PATH printed by
9845 <        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846 <        # path with ; separators, and with drive letters. We can handle the
9847 <        # drive letters (cygwin fileutils understands them), so leave them,
9848 <        # especially as we might pass files found there to a mingw objdump,
9849 <        # which wouldn't understand a cygwinified path. Ahh.
11226 >        # It is most probably a Windows format PATH.
11227          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11228        else
11229 <        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11229 >        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11230        fi
11231 <      ;;
11232 <    pw32*)
9856 <      # pw32 DLLs use 'pw' prefix rather than 'lib'
9857 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11231 >      # FIXME: find the short name or the path components, as spaces are
11232 >      # common. (e.g. "Program Files" -> "PROGRA~1")
11233        ;;
11234      esac
11235 +
11236 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11237 +    postinstall_cmds='base_file=`basename \$file`~
11238 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11239 +      dldir=$destdir/`dirname \$dlpath`~
11240 +      test -d \$dldir || mkdir -p \$dldir~
11241 +      $install_prog $dir/$dlname \$dldir/$dlname'
11242 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11243 +      dlpath=$dir/\$dldll~
11244 +       $RM \$dlpath'
11245 +    shlibpath_overrides_runpath=yes
11246 +    dynamic_linker='Win32 link.exe'
11247      ;;
11248  
11249    *)
11250 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11250 >    # Assume MSVC wrapper
11251 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11252 >    dynamic_linker='Win32 ld.exe'
11253      ;;
11254    esac
9866  dynamic_linker='Win32 ld.exe'
11255    # FIXME: first we should search . and the directory the executable is in
11256    shlibpath_var=PATH
11257    ;;
# Line 9873 | Line 11261 | darwin* | rhapsody*)
11261    version_type=darwin
11262    need_lib_prefix=no
11263    need_version=no
11264 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11265 <  soname_spec='${libname}${release}${major}$shared_ext'
11264 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11265 >  soname_spec='$libname$release$major$shared_ext'
11266    shlibpath_overrides_runpath=yes
11267    shlibpath_var=DYLD_LIBRARY_PATH
11268    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 9884 | Line 11272 | darwin* | rhapsody*)
11272    ;;
11273  
11274   dgux*)
11275 <  version_type=linux
11275 >  version_type=linux # correct to gnu/linux during the next big refactor
11276    need_lib_prefix=no
11277    need_version=no
11278 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11279 <  soname_spec='${libname}${release}${shared_ext}$major'
11278 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279 >  soname_spec='$libname$release$shared_ext$major'
11280    shlibpath_var=LD_LIBRARY_PATH
11281    ;;
11282  
9895 freebsd1*)
9896  dynamic_linker=no
9897  ;;
9898
11283   freebsd* | dragonfly*)
11284    # DragonFly does not have aout.  When/if they implement a new
11285    # versioning mechanism, adjust this.
# Line 9903 | Line 11287 | freebsd* | dragonfly*)
11287      objformat=`/usr/bin/objformat`
11288    else
11289      case $host_os in
11290 <    freebsd[123]*) objformat=aout ;;
11290 >    freebsd[23].*) objformat=aout ;;
11291      *) objformat=elf ;;
11292      esac
11293    fi
11294    version_type=freebsd-$objformat
11295    case $version_type in
11296      freebsd-elf*)
11297 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298 >      soname_spec='$libname$release$shared_ext$major'
11299        need_version=no
11300        need_lib_prefix=no
11301        ;;
11302      freebsd-*)
11303 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11303 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11304        need_version=yes
11305        ;;
11306    esac
11307    shlibpath_var=LD_LIBRARY_PATH
11308    case $host_os in
11309 <  freebsd2*)
11309 >  freebsd2.*)
11310      shlibpath_overrides_runpath=yes
11311      ;;
11312    freebsd3.[01]* | freebsdelf3.[01]*)
# Line 9940 | Line 11325 | freebsd* | dragonfly*)
11325    esac
11326    ;;
11327  
11328 < gnu*)
11329 <  version_type=linux
11328 > haiku*)
11329 >  version_type=linux # correct to gnu/linux during the next big refactor
11330    need_lib_prefix=no
11331    need_version=no
11332 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11333 <  soname_spec='${libname}${release}${shared_ext}$major'
11334 <  shlibpath_var=LD_LIBRARY_PATH
11332 >  dynamic_linker="$host_os runtime_loader"
11333 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11334 >  soname_spec='$libname$release$shared_ext$major'
11335 >  shlibpath_var=LIBRARY_PATH
11336 >  shlibpath_overrides_runpath=no
11337 >  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11338    hardcode_into_libs=yes
11339    ;;
11340  
# Line 9963 | Line 11351 | hpux9* | hpux10* | hpux11*)
11351      dynamic_linker="$host_os dld.so"
11352      shlibpath_var=LD_LIBRARY_PATH
11353      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 <    soname_spec='${libname}${release}${shared_ext}$major'
11356 <    if test "X$HPUX_IA64_MODE" = X32; then
11354 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11355 >    soname_spec='$libname$release$shared_ext$major'
11356 >    if test 32 = "$HPUX_IA64_MODE"; then
11357        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11359      else
11360        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11361 +      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11362      fi
9973    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363      ;;
11364    hppa*64*)
11365      shrext_cmds='.sl'
# Line 9978 | Line 11367 | hpux9* | hpux10* | hpux11*)
11367      dynamic_linker="$host_os dld.sl"
11368      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11369      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 <    soname_spec='${libname}${release}${shared_ext}$major'
11370 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11371 >    soname_spec='$libname$release$shared_ext$major'
11372      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11373      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374      ;;
# Line 9988 | Line 11377 | hpux9* | hpux10* | hpux11*)
11377      dynamic_linker="$host_os dld.sl"
11378      shlibpath_var=SHLIB_PATH
11379      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11380 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 <    soname_spec='${libname}${release}${shared_ext}$major'
11380 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 >    soname_spec='$libname$release$shared_ext$major'
11382      ;;
11383    esac
11384 <  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384 >  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11385    postinstall_cmds='chmod 555 $lib'
11386 +  # or fails outright, so override atomically:
11387 +  install_override_mode=555
11388    ;;
11389  
11390   interix[3-9]*)
11391 <  version_type=linux
11391 >  version_type=linux # correct to gnu/linux during the next big refactor
11392    need_lib_prefix=no
11393    need_version=no
11394 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11395 <  soname_spec='${libname}${release}${shared_ext}$major'
11394 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11395 >  soname_spec='$libname$release$shared_ext$major'
11396    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11397    shlibpath_var=LD_LIBRARY_PATH
11398    shlibpath_overrides_runpath=no
# Line 10012 | Line 11403 | irix5* | irix6* | nonstopux*)
11403    case $host_os in
11404      nonstopux*) version_type=nonstopux ;;
11405      *)
11406 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11407 <                version_type=linux
11406 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11407 >                version_type=linux # correct to gnu/linux during the next big refactor
11408          else
11409                  version_type=irix
11410          fi ;;
11411    esac
11412    need_lib_prefix=no
11413    need_version=no
11414 <  soname_spec='${libname}${release}${shared_ext}$major'
11415 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11414 >  soname_spec='$libname$release$shared_ext$major'
11415 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11416    case $host_os in
11417    irix5* | nonstopux*)
11418      libsuff= shlibsuff=
# Line 10040 | Line 11431 | irix5* | irix6* | nonstopux*)
11431    esac
11432    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11433    shlibpath_overrides_runpath=no
11434 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11435 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11434 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11435 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11436    hardcode_into_libs=yes
11437    ;;
11438  
# Line 10050 | Line 11441 | linux*oldld* | linux*aout* | linux*coff*
11441    dynamic_linker=no
11442    ;;
11443  
11444 < # This must be Linux ELF.
11445 < linux* | k*bsd*-gnu)
11446 <  version_type=linux
11444 > linux*android*)
11445 >  version_type=none # Android doesn't support versioned libraries.
11446 >  need_lib_prefix=no
11447 >  need_version=no
11448 >  library_names_spec='$libname$release$shared_ext'
11449 >  soname_spec='$libname$release$shared_ext'
11450 >  finish_cmds=
11451 >  shlibpath_var=LD_LIBRARY_PATH
11452 >  shlibpath_overrides_runpath=yes
11453 >
11454 >  # This implies no fast_install, which is unacceptable.
11455 >  # Some rework will be needed to allow for fast_install
11456 >  # before this can be enabled.
11457 >  hardcode_into_libs=yes
11458 >
11459 >  dynamic_linker='Android linker'
11460 >  # Don't embed -rpath directories since the linker doesn't support them.
11461 >  hardcode_libdir_flag_spec='-L$libdir'
11462 >  ;;
11463 >
11464 > # This must be glibc/ELF.
11465 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11466 >  version_type=linux # correct to gnu/linux during the next big refactor
11467    need_lib_prefix=no
11468    need_version=no
11469 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 <  soname_spec='${libname}${release}${shared_ext}$major'
11469 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470 >  soname_spec='$libname$release$shared_ext$major'
11471    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11472    shlibpath_var=LD_LIBRARY_PATH
11473    shlibpath_overrides_runpath=no
11474 +
11475    # Some binutils ld are patched to set DT_RUNPATH
11476 <  save_LDFLAGS=$LDFLAGS
11477 <  save_libdir=$libdir
11478 <  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11479 <       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11480 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 >  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11477 >  $as_echo_n "(cached) " >&6
11478 > else
11479 >  lt_cv_shlibpath_overrides_runpath=no
11480 >    save_LDFLAGS=$LDFLAGS
11481 >    save_libdir=$libdir
11482 >    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11483 >         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11484 >    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485   /* end confdefs.h.  */
11486  
11487   int
# Line 10078 | Line 11494 | main ()
11494   _ACEOF
11495   if ac_fn_c_try_link "$LINENO"; then :
11496    if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11497 <  shlibpath_overrides_runpath=yes
11497 >  lt_cv_shlibpath_overrides_runpath=yes
11498   fi
11499   fi
11500   rm -f core conftest.err conftest.$ac_objext \
11501      conftest$ac_exeext conftest.$ac_ext
11502 <  LDFLAGS=$save_LDFLAGS
11503 <  libdir=$save_libdir
11502 >    LDFLAGS=$save_LDFLAGS
11503 >    libdir=$save_libdir
11504 >
11505 > fi
11506 >
11507 >  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11508  
11509    # This implies no fast_install, which is unacceptable.
11510    # Some rework will be needed to allow for fast_install
11511    # before this can be enabled.
11512    hardcode_into_libs=yes
11513  
11514 <  # find out which ABI we are using
11515 <  libsuff=
11516 <  case "$host_cpu" in
11517 <  x86_64*|s390x*|powerpc64*)
11518 <    echo '#line 10098 "configure"' > conftest.$ac_ext
11519 <    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10100 <  (eval $ac_compile) 2>&5
10101 <  ac_status=$?
10102 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 <  test $ac_status = 0; }; then
10104 <      case `/usr/bin/file conftest.$ac_objext` in
10105 <      *64-bit*)
10106 <        libsuff=64
10107 <        ;;
10108 <      esac
10109 <    fi
10110 <    rm -rf conftest*
10111 <    ;;
10112 <  esac
10113 <
10114 <  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10115 <
10116 <  # Append ld.so.conf contents to the search path
11514 >  # Ideally, we could use ldconfig to report *all* directores which are
11515 >  # searched for libraries, however this is still not possible.  Aside from not
11516 >  # being certain /sbin/ldconfig is available, command
11517 >  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11518 >  # even though it is searched at run-time.  Try to do the best guess by
11519 >  # appending ld.so.conf contents (and includes) to the search path.
11520    if test -f /etc/ld.so.conf; then
11521 <    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;/^$/d' | tr '\n' ' '`
11522 <    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11521 >    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' ' '`
11522 >    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11523    fi
11524  
11525    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 10133 | Line 11536 | netbsd*)
11536    need_lib_prefix=no
11537    need_version=no
11538    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11539 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11540      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11541      dynamic_linker='NetBSD (a.out) ld.so'
11542    else
11543 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11544 <    soname_spec='${libname}${release}${shared_ext}$major'
11543 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 >    soname_spec='$libname$release$shared_ext$major'
11545      dynamic_linker='NetBSD ld.elf_so'
11546    fi
11547    shlibpath_var=LD_LIBRARY_PATH
# Line 10147 | Line 11550 | netbsd*)
11550    ;;
11551  
11552   newsos6)
11553 <  version_type=linux
11554 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 >  version_type=linux # correct to gnu/linux during the next big refactor
11554 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555    shlibpath_var=LD_LIBRARY_PATH
11556    shlibpath_overrides_runpath=yes
11557    ;;
# Line 10157 | Line 11560 | newsos6)
11560    version_type=qnx
11561    need_lib_prefix=no
11562    need_version=no
11563 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 <  soname_spec='${libname}${release}${shared_ext}$major'
11563 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564 >  soname_spec='$libname$release$shared_ext$major'
11565    shlibpath_var=LD_LIBRARY_PATH
11566    shlibpath_overrides_runpath=no
11567    hardcode_into_libs=yes
11568    dynamic_linker='ldqnx.so'
11569    ;;
11570  
11571 < openbsd*)
11571 > openbsd* | bitrig*)
11572    version_type=sunos
11573 <  sys_lib_dlsearch_path_spec="/usr/lib"
11573 >  sys_lib_dlsearch_path_spec=/usr/lib
11574    need_lib_prefix=no
11575 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11576 <  case $host_os in
10174 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10175 <    *)                          need_version=no  ;;
10176 <  esac
10177 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10178 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10179 <  shlibpath_var=LD_LIBRARY_PATH
10180 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181 <    case $host_os in
10182 <      openbsd2.[89] | openbsd2.[89].*)
10183 <        shlibpath_overrides_runpath=no
10184 <        ;;
10185 <      *)
10186 <        shlibpath_overrides_runpath=yes
10187 <        ;;
10188 <      esac
11575 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11576 >    need_version=no
11577    else
11578 <    shlibpath_overrides_runpath=yes
11578 >    need_version=yes
11579    fi
11580 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11581 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11582 +  shlibpath_var=LD_LIBRARY_PATH
11583 +  shlibpath_overrides_runpath=yes
11584    ;;
11585  
11586   os2*)
11587    libname_spec='$name'
11588 <  shrext_cmds=".dll"
11588 >  version_type=windows
11589 >  shrext_cmds=.dll
11590 >  need_version=no
11591    need_lib_prefix=no
11592 <  library_names_spec='$libname${shared_ext} $libname.a'
11592 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11593 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11594 >    v=$($ECHO $release$versuffix | tr -d .-);
11595 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11596 >    $ECHO $n$v`$shared_ext'
11597 >  library_names_spec='${libname}_dll.$libext'
11598    dynamic_linker='OS/2 ld.exe'
11599 <  shlibpath_var=LIBPATH
11599 >  shlibpath_var=BEGINLIBPATH
11600 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11601 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11602 >  postinstall_cmds='base_file=`basename \$file`~
11603 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11604 >    dldir=$destdir/`dirname \$dlpath`~
11605 >    test -d \$dldir || mkdir -p \$dldir~
11606 >    $install_prog $dir/$dlname \$dldir/$dlname~
11607 >    chmod a+x \$dldir/$dlname~
11608 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11609 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11610 >    fi'
11611 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11612 >    dlpath=$dir/\$dldll~
11613 >    $RM \$dlpath'
11614    ;;
11615  
11616   osf3* | osf4* | osf5*)
11617    version_type=osf
11618    need_lib_prefix=no
11619    need_version=no
11620 <  soname_spec='${libname}${release}${shared_ext}$major'
11621 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 >  soname_spec='$libname$release$shared_ext$major'
11621 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622    shlibpath_var=LD_LIBRARY_PATH
11623    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11624 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11624 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625    ;;
11626  
11627   rdos*)
# Line 10216 | Line 11629 | rdos*)
11629    ;;
11630  
11631   solaris*)
11632 <  version_type=linux
11632 >  version_type=linux # correct to gnu/linux during the next big refactor
11633    need_lib_prefix=no
11634    need_version=no
11635 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 <  soname_spec='${libname}${release}${shared_ext}$major'
11635 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11636 >  soname_spec='$libname$release$shared_ext$major'
11637    shlibpath_var=LD_LIBRARY_PATH
11638    shlibpath_overrides_runpath=yes
11639    hardcode_into_libs=yes
# Line 10230 | Line 11643 | solaris*)
11643  
11644   sunos4*)
11645    version_type=sunos
11646 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11647    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11648    shlibpath_var=LD_LIBRARY_PATH
11649    shlibpath_overrides_runpath=yes
11650 <  if test "$with_gnu_ld" = yes; then
11650 >  if test yes = "$with_gnu_ld"; then
11651      need_lib_prefix=no
11652    fi
11653    need_version=yes
11654    ;;
11655  
11656   sysv4 | sysv4.3*)
11657 <  version_type=linux
11658 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 <  soname_spec='${libname}${release}${shared_ext}$major'
11657 >  version_type=linux # correct to gnu/linux during the next big refactor
11658 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 >  soname_spec='$libname$release$shared_ext$major'
11660    shlibpath_var=LD_LIBRARY_PATH
11661    case $host_vendor in
11662      sni)
# Line 10264 | Line 11677 | sysv4 | sysv4.3*)
11677    ;;
11678  
11679   sysv4*MP*)
11680 <  if test -d /usr/nec ;then
11681 <    version_type=linux
11682 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11683 <    soname_spec='$libname${shared_ext}.$major'
11680 >  if test -d /usr/nec; then
11681 >    version_type=linux # correct to gnu/linux during the next big refactor
11682 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11683 >    soname_spec='$libname$shared_ext.$major'
11684      shlibpath_var=LD_LIBRARY_PATH
11685    fi
11686    ;;
11687  
11688   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11689 <  version_type=freebsd-elf
11689 >  version_type=sco
11690    need_lib_prefix=no
11691    need_version=no
11692 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11693 <  soname_spec='${libname}${release}${shared_ext}$major'
11692 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11693 >  soname_spec='$libname$release$shared_ext$major'
11694    shlibpath_var=LD_LIBRARY_PATH
11695    shlibpath_overrides_runpath=yes
11696    hardcode_into_libs=yes
11697 <  if test "$with_gnu_ld" = yes; then
11697 >  if test yes = "$with_gnu_ld"; then
11698      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11699    else
11700      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 10296 | Line 11709 | sysv5* | sco3.2v5* | sco5v6* | unixware*
11709  
11710   tpf*)
11711    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11712 <  version_type=linux
11712 >  version_type=linux # correct to gnu/linux during the next big refactor
11713    need_lib_prefix=no
11714    need_version=no
11715 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716    shlibpath_var=LD_LIBRARY_PATH
11717    shlibpath_overrides_runpath=no
11718    hardcode_into_libs=yes
11719    ;;
11720  
11721   uts4*)
11722 <  version_type=linux
11723 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 <  soname_spec='${libname}${release}${shared_ext}$major'
11722 >  version_type=linux # correct to gnu/linux during the next big refactor
11723 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11724 >  soname_spec='$libname$release$shared_ext$major'
11725    shlibpath_var=LD_LIBRARY_PATH
11726    ;;
11727  
# Line 10318 | Line 11731 | uts4*)
11731   esac
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11733   $as_echo "$dynamic_linker" >&6; }
11734 < test "$dynamic_linker" = no && can_build_shared=no
11734 > test no = "$dynamic_linker" && can_build_shared=no
11735  
11736   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11737 < if test "$GCC" = yes; then
11737 > if test yes = "$GCC"; then
11738    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11739   fi
11740  
11741 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11742 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11741 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11742 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11743   fi
11744 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11745 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11744 >
11745 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11746 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11747   fi
11748  
11749 + # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11750 + configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11751 +
11752 + # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11753 + func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11754 +
11755 + # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11756 + configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11757 +
11758 +
11759 +
11760 +
11761 +
11762 +
11763 +
11764 +
11765 +
11766 +
11767 +
11768  
11769  
11770  
# Line 10423 | Line 11856 | $as_echo_n "checking how to hardcode lib
11856   hardcode_action=
11857   if test -n "$hardcode_libdir_flag_spec" ||
11858     test -n "$runpath_var" ||
11859 <   test "X$hardcode_automatic" = "Xyes" ; then
11859 >   test yes = "$hardcode_automatic"; then
11860  
11861    # We can hardcode non-existent directories.
11862 <  if test "$hardcode_direct" != no &&
11862 >  if test no != "$hardcode_direct" &&
11863       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11864       # have to relink, otherwise we might link with an installed library
11865       # when we should be linking with a yet-to-be-installed one
11866 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11867 <     test "$hardcode_minus_L" != no; then
11866 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11867 >     test no != "$hardcode_minus_L"; then
11868      # Linking always hardcodes the temporary library directory.
11869      hardcode_action=relink
11870    else
# Line 10446 | Line 11879 | fi
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11880   $as_echo "$hardcode_action" >&6; }
11881  
11882 < if test "$hardcode_action" = relink ||
11883 <   test "$inherit_rpath" = yes; then
11882 > if test relink = "$hardcode_action" ||
11883 >   test yes = "$inherit_rpath"; then
11884    # Fast installation is not supported
11885    enable_fast_install=no
11886 < elif test "$shlibpath_overrides_runpath" = yes ||
11887 <     test "$enable_shared" = no; then
11886 > elif test yes = "$shlibpath_overrides_runpath" ||
11887 >     test no = "$enable_shared"; then
11888    # Fast installation is not necessary
11889    enable_fast_install=needless
11890   fi
# Line 10461 | Line 11894 | fi
11894  
11895  
11896  
11897 <  if test "x$enable_dlopen" != xyes; then
11897 >  if test yes != "$enable_dlopen"; then
11898    enable_dlopen=unknown
11899    enable_dlopen_self=unknown
11900    enable_dlopen_self_static=unknown
# Line 10471 | Line 11904 | else
11904  
11905    case $host_os in
11906    beos*)
11907 <    lt_cv_dlopen="load_add_on"
11907 >    lt_cv_dlopen=load_add_on
11908      lt_cv_dlopen_libs=
11909      lt_cv_dlopen_self=yes
11910      ;;
11911  
11912    mingw* | pw32* | cegcc*)
11913 <    lt_cv_dlopen="LoadLibrary"
11913 >    lt_cv_dlopen=LoadLibrary
11914      lt_cv_dlopen_libs=
11915      ;;
11916  
11917    cygwin*)
11918 <    lt_cv_dlopen="dlopen"
11918 >    lt_cv_dlopen=dlopen
11919      lt_cv_dlopen_libs=
11920      ;;
11921  
11922    darwin*)
11923 <  # if libdl is installed we need to link against it
11923 >    # if libdl is installed we need to link against it
11924      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11925   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11926 < if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11926 > if ${ac_cv_lib_dl_dlopen+:} false; then :
11927    $as_echo_n "(cached) " >&6
11928   else
11929    ac_check_lib_save_LIBS=$LIBS
# Line 10524 | Line 11957 | LIBS=$ac_check_lib_save_LIBS
11957   fi
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11959   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11960 < if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11961 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960 > if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11961 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11962   else
11963  
11964 <    lt_cv_dlopen="dyld"
11964 >    lt_cv_dlopen=dyld
11965      lt_cv_dlopen_libs=
11966      lt_cv_dlopen_self=yes
11967  
# Line 10536 | Line 11969 | fi
11969  
11970      ;;
11971  
11972 +  tpf*)
11973 +    # Don't try to run any link tests for TPF.  We know it's impossible
11974 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11975 +    lt_cv_dlopen=dlopen
11976 +    lt_cv_dlopen_libs=
11977 +    lt_cv_dlopen_self=no
11978 +    ;;
11979 +
11980    *)
11981      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11982 < if test "x$ac_cv_func_shl_load" = x""yes; then :
11983 <  lt_cv_dlopen="shl_load"
11982 > if test "x$ac_cv_func_shl_load" = xyes; then :
11983 >  lt_cv_dlopen=shl_load
11984   else
11985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11986   $as_echo_n "checking for shl_load in -ldld... " >&6; }
11987 < if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11987 > if ${ac_cv_lib_dld_shl_load+:} false; then :
11988    $as_echo_n "(cached) " >&6
11989   else
11990    ac_check_lib_save_LIBS=$LIBS
# Line 10577 | Line 12018 | LIBS=$ac_check_lib_save_LIBS
12018   fi
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12020   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12021 < if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12022 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12021 > if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12022 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12023   else
12024    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12025 < if test "x$ac_cv_func_dlopen" = x""yes; then :
12026 <  lt_cv_dlopen="dlopen"
12025 > if test "x$ac_cv_func_dlopen" = xyes; then :
12026 >  lt_cv_dlopen=dlopen
12027   else
12028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12029   $as_echo_n "checking for dlopen in -ldl... " >&6; }
12030 < if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12030 > if ${ac_cv_lib_dl_dlopen+:} false; then :
12031    $as_echo_n "(cached) " >&6
12032   else
12033    ac_check_lib_save_LIBS=$LIBS
# Line 10620 | Line 12061 | LIBS=$ac_check_lib_save_LIBS
12061   fi
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12063   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12064 < if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12065 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12064 > if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12065 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12066   else
12067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12068   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12069 < if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12069 > if ${ac_cv_lib_svld_dlopen+:} false; then :
12070    $as_echo_n "(cached) " >&6
12071   else
12072    ac_check_lib_save_LIBS=$LIBS
# Line 10659 | Line 12100 | LIBS=$ac_check_lib_save_LIBS
12100   fi
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12102   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12103 < if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12104 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12103 > if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12104 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12105   else
12106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12107   $as_echo_n "checking for dld_link in -ldld... " >&6; }
12108 < if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12108 > if ${ac_cv_lib_dld_dld_link+:} false; then :
12109    $as_echo_n "(cached) " >&6
12110   else
12111    ac_check_lib_save_LIBS=$LIBS
# Line 10698 | Line 12139 | LIBS=$ac_check_lib_save_LIBS
12139   fi
12140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12141   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12142 < if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12143 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12142 > if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12143 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12144   fi
12145  
12146  
# Line 10720 | Line 12161 | fi
12161      ;;
12162    esac
12163  
12164 <  if test "x$lt_cv_dlopen" != xno; then
10724 <    enable_dlopen=yes
10725 <  else
12164 >  if test no = "$lt_cv_dlopen"; then
12165      enable_dlopen=no
12166 +  else
12167 +    enable_dlopen=yes
12168    fi
12169  
12170    case $lt_cv_dlopen in
12171    dlopen)
12172 <    save_CPPFLAGS="$CPPFLAGS"
12173 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12172 >    save_CPPFLAGS=$CPPFLAGS
12173 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12174  
12175 <    save_LDFLAGS="$LDFLAGS"
12175 >    save_LDFLAGS=$LDFLAGS
12176      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12177  
12178 <    save_LIBS="$LIBS"
12178 >    save_LIBS=$LIBS
12179      LIBS="$lt_cv_dlopen_libs $LIBS"
12180  
12181      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12182   $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12183 < if test "${lt_cv_dlopen_self+set}" = set; then :
12183 > if ${lt_cv_dlopen_self+:} false; then :
12184    $as_echo_n "(cached) " >&6
12185   else
12186 <          if test "$cross_compiling" = yes; then :
12186 >          if test yes = "$cross_compiling"; then :
12187    lt_cv_dlopen_self=cross
12188   else
12189    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190    lt_status=$lt_dlunknown
12191    cat > conftest.$ac_ext <<_LT_EOF
12192 < #line 10751 "configure"
12192 > #line $LINENO "configure"
12193   #include "confdefs.h"
12194  
12195   #if HAVE_DLFCN_H
# Line 10789 | Line 12230 | else
12230   #  endif
12231   #endif
12232  
12233 < void fnord() { int i=42;}
12233 > /* When -fvisibility=hidden is used, assume the code has been annotated
12234 >   correspondingly for the symbols needed.  */
12235 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 > int fnord () __attribute__((visibility("default")));
12237 > #endif
12238 >
12239 > int fnord () { return 42; }
12240   int main ()
12241   {
12242    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
# Line 10798 | Line 12245 | int main ()
12245    if (self)
12246      {
12247        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12248 <      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12248 >      else
12249 >        {
12250 >          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12251 >          else puts (dlerror ());
12252 >        }
12253        /* dlclose (self); */
12254      }
12255    else
# Line 10811 | Line 12262 | _LT_EOF
12262    (eval $ac_link) 2>&5
12263    ac_status=$?
12264    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12265 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12266      (./conftest; exit; ) >&5 2>/dev/null
12267      lt_status=$?
12268      case x$lt_status in
# Line 10831 | Line 12282 | fi
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12283   $as_echo "$lt_cv_dlopen_self" >&6; }
12284  
12285 <    if test "x$lt_cv_dlopen_self" = xyes; then
12285 >    if test yes = "$lt_cv_dlopen_self"; then
12286        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12287        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12288   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12289 < if test "${lt_cv_dlopen_self_static+set}" = set; then :
12289 > if ${lt_cv_dlopen_self_static+:} false; then :
12290    $as_echo_n "(cached) " >&6
12291   else
12292 <          if test "$cross_compiling" = yes; then :
12292 >          if test yes = "$cross_compiling"; then :
12293    lt_cv_dlopen_self_static=cross
12294   else
12295    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296    lt_status=$lt_dlunknown
12297    cat > conftest.$ac_ext <<_LT_EOF
12298 < #line 10847 "configure"
12298 > #line $LINENO "configure"
12299   #include "confdefs.h"
12300  
12301   #if HAVE_DLFCN_H
# Line 10885 | Line 12336 | else
12336   #  endif
12337   #endif
12338  
12339 < void fnord() { int i=42;}
12339 > /* When -fvisibility=hidden is used, assume the code has been annotated
12340 >   correspondingly for the symbols needed.  */
12341 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 > int fnord () __attribute__((visibility("default")));
12343 > #endif
12344 >
12345 > int fnord () { return 42; }
12346   int main ()
12347   {
12348    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
# Line 10894 | Line 12351 | int main ()
12351    if (self)
12352      {
12353        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12354 <      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12354 >      else
12355 >        {
12356 >          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12357 >          else puts (dlerror ());
12358 >        }
12359        /* dlclose (self); */
12360      }
12361    else
# Line 10907 | Line 12368 | _LT_EOF
12368    (eval $ac_link) 2>&5
12369    ac_status=$?
12370    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12371 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12372      (./conftest; exit; ) >&5 2>/dev/null
12373      lt_status=$?
12374      case x$lt_status in
# Line 10928 | Line 12389 | fi
12389   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12390      fi
12391  
12392 <    CPPFLAGS="$save_CPPFLAGS"
12393 <    LDFLAGS="$save_LDFLAGS"
12394 <    LIBS="$save_LIBS"
12392 >    CPPFLAGS=$save_CPPFLAGS
12393 >    LDFLAGS=$save_LDFLAGS
12394 >    LIBS=$save_LIBS
12395      ;;
12396    esac
12397  
# Line 10974 | Line 12435 | else
12435   # FIXME - insert some real tests, host_os isn't really good enough
12436    case $host_os in
12437    darwin*)
12438 <    if test -n "$STRIP" ; then
12438 >    if test -n "$STRIP"; then
12439        striplib="$STRIP -x"
12440        old_striplib="$STRIP -S"
12441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11002 | Line 12463 | fi
12463  
12464  
12465  
12466 <  # Report which library types will actually be built
12466 >  # Report what library types will actually be built
12467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12468   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11010 | Line 12471 | $as_echo "$can_build_shared" >&6; }
12471  
12472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12473   $as_echo_n "checking whether to build shared libraries... " >&6; }
12474 <  test "$can_build_shared" = "no" && enable_shared=no
12474 >  test no = "$can_build_shared" && enable_shared=no
12475  
12476    # On AIX, shared libraries and static libraries use the same namespace, and
12477    # are all built from PIC.
12478    case $host_os in
12479    aix3*)
12480 <    test "$enable_shared" = yes && enable_static=no
12480 >    test yes = "$enable_shared" && enable_static=no
12481      if test -n "$RANLIB"; then
12482        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12483        postinstall_cmds='$RANLIB $lib'
# Line 11024 | Line 12485 | $as_echo_n "checking whether to build sh
12485      ;;
12486  
12487    aix[4-9]*)
12488 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12489 <      test "$enable_shared" = yes && enable_static=no
12488 >    if test ia64 != "$host_cpu"; then
12489 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12490 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12491 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12492 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12493 >      esac
12494      fi
12495      ;;
12496    esac
# Line 11035 | Line 12500 | $as_echo "$enable_shared" >&6; }
12500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12501   $as_echo_n "checking whether to build static libraries... " >&6; }
12502    # Make sure either enable_shared or enable_static is yes.
12503 <  test "$enable_shared" = yes || enable_static=yes
12503 >  test yes = "$enable_shared" || enable_static=yes
12504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12505   $as_echo "$enable_static" >&6; }
12506  
# Line 11049 | Line 12514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12514   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516  
12517 < CC="$lt_save_CC"
12517 > CC=$lt_save_CC
12518 >
12519 >
12520  
12521  
12522  
# Line 11071 | Line 12538 | CC="$lt_save_CC"
12538   # Only expand once:
12539  
12540  
12541 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12542 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12543 < if test "${libltdl_cv_shlibext+set}" = set; then :
12541 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12542 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12543 > if ${libltdl_cv_shlibext+:} false; then :
12544    $as_echo_n "(cached) " >&6
12545   else
12546  
12547   module=yes
12548   eval libltdl_cv_shlibext=$shrext_cmds
12549 + module=no
12550 + eval libltdl_cv_shrext=$shrext_cmds
12551  
12552   fi
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
# Line 11090 | Line 12559 | cat >>confdefs.h <<_ACEOF
12559   _ACEOF
12560  
12561   fi
12562 + if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12563 +
12564 + cat >>confdefs.h <<_ACEOF
12565 + #define LT_SHARED_EXT "$libltdl_cv_shrext"
12566 + _ACEOF
12567 +
12568 + fi
12569 + if test -n "$shared_archive_member_spec"; then
12570  
12571 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12572 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12573 < if test "${lt_cv_module_path_var+set}" = set; then :
12571 > cat >>confdefs.h <<_ACEOF
12572 > #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12573 > _ACEOF
12574 >
12575 > fi
12576 >
12577 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12578 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12579 > if ${lt_cv_module_path_var+:} false; then :
12580    $as_echo_n "(cached) " >&6
12581   else
12582 <  lt_cv_module_path_var="$shlibpath_var"
12582 >  lt_cv_module_path_var=$shlibpath_var
12583   fi
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12585   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 11110 | Line 12593 | fi
12593  
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12595   $as_echo_n "checking for the default library search path... " >&6; }
12596 < if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
12596 > if ${lt_cv_sys_dlsearch_path+:} false; then :
12597    $as_echo_n "(cached) " >&6
12598   else
12599 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12599 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12600   fi
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12602   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 11121 | Line 12604 | if test -n "$lt_cv_sys_dlsearch_path"; t
12604    sys_dlsearch_path=
12605    for dir in $lt_cv_sys_dlsearch_path; do
12606      if test -z "$sys_dlsearch_path"; then
12607 <      sys_dlsearch_path="$dir"
12607 >      sys_dlsearch_path=$dir
12608      else
12609 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12609 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12610      fi
12611    done
12612  
# Line 11143 | Line 12626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12626   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628  
12629 + lt_dlload_save_LIBS=$LIBS
12630  
12631   LIBADD_DLOPEN=
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12633   $as_echo_n "checking for library containing dlopen... " >&6; }
12634 < if test "${ac_cv_search_dlopen+set}" = set; then :
12634 > if ${ac_cv_search_dlopen+:} false; then :
12635    $as_echo_n "(cached) " >&6
12636   else
12637    ac_func_search_save_LIBS=$LIBS
# Line 11181 | Line 12665 | for ac_lib in '' dl; do
12665   fi
12666   rm -f core conftest.err conftest.$ac_objext \
12667      conftest$ac_exeext
12668 <  if test "${ac_cv_search_dlopen+set}" = set; then :
12668 >  if ${ac_cv_search_dlopen+:} false; then :
12669    break
12670   fi
12671   done
12672 < if test "${ac_cv_search_dlopen+set}" = set; then :
12672 > if ${ac_cv_search_dlopen+:} false; then :
12673  
12674   else
12675    ac_cv_search_dlopen=no
# Line 11201 | Line 12685 | if test "$ac_res" != no; then :
12685  
12686   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12687  
12688 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12689 <          LIBADD_DLOPEN="-ldl"
12688 >        if test "$ac_cv_search_dlopen" != "none required"; then
12689 >          LIBADD_DLOPEN=-ldl
12690          fi
12691 <        libltdl_cv_lib_dl_dlopen="yes"
12691 >        libltdl_cv_lib_dl_dlopen=yes
12692          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12693   else
12694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 11225 | Line 12709 | if ac_fn_c_try_link "$LINENO"; then :
12709  
12710   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12711  
12712 <            libltdl_cv_func_dlopen="yes"
12712 >            libltdl_cv_func_dlopen=yes
12713              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12714   else
12715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12716   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12717 < if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12717 > if ${ac_cv_lib_svld_dlopen+:} false; then :
12718    $as_echo_n "(cached) " >&6
12719   else
12720    ac_check_lib_save_LIBS=$LIBS
# Line 11264 | Line 12748 | LIBS=$ac_check_lib_save_LIBS
12748   fi
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12750   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12751 < if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12751 > if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12752  
12753   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12754  
12755 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12755 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12756                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12757   fi
12758  
# Line 11277 | Line 12761 | rm -f core conftest.err conftest.$ac_obj
12761      conftest$ac_exeext conftest.$ac_ext
12762   fi
12763  
12764 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12764 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12765   then
12766 <  lt_save_LIBS="$LIBS"
12766 >  lt_save_LIBS=$LIBS
12767    LIBS="$LIBS $LIBADD_DLOPEN"
12768    for ac_func in dlerror
12769   do :
12770    ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12771 < if test "x$ac_cv_func_dlerror" = x""yes; then :
12771 > if test "x$ac_cv_func_dlerror" = xyes; then :
12772    cat >>confdefs.h <<_ACEOF
12773   #define HAVE_DLERROR 1
12774   _ACEOF
# Line 11292 | Line 12776 | _ACEOF
12776   fi
12777   done
12778  
12779 <  LIBS="$lt_save_LIBS"
12779 >  LIBS=$lt_save_LIBS
12780   fi
12781  
12782  
12783   LIBADD_SHL_LOAD=
12784   ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12785 < if test "x$ac_cv_func_shl_load" = x""yes; then :
12785 > if test "x$ac_cv_func_shl_load" = xyes; then :
12786  
12787   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12788  
# Line 11306 | Line 12790 | $as_echo "#define HAVE_SHL_LOAD 1" >>con
12790   else
12791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12792   $as_echo_n "checking for shl_load in -ldld... " >&6; }
12793 < if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12793 > if ${ac_cv_lib_dld_shl_load+:} false; then :
12794    $as_echo_n "(cached) " >&6
12795   else
12796    ac_check_lib_save_LIBS=$LIBS
# Line 11340 | Line 12824 | LIBS=$ac_check_lib_save_LIBS
12824   fi
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12826   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12827 < if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12827 > if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12828  
12829   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12830  
12831              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12832 <            LIBADD_SHL_LOAD="-ldld"
12832 >            LIBADD_SHL_LOAD=-ldld
12833   fi
12834  
12835   fi
# Line 11356 | Line 12840 | case $host_os in
12840   darwin[1567].*)
12841   # We only want this for pre-Mac OS X 10.4.
12842    ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12843 < if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
12843 > if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12844  
12845   $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12846  
# Line 11367 | Line 12851 | fi
12851   beos*)
12852    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12853    ;;
12854 < cygwin* | mingw* | os2* | pw32*)
12854 > cygwin* | mingw* | pw32*)
12855    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12856   "
12857 < if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
12857 > if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12858    ac_have_decl=1
12859   else
12860    ac_have_decl=0
# Line 11386 | Line 12870 | esac
12870  
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12872   $as_echo_n "checking for dld_link in -ldld... " >&6; }
12873 < if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12873 > if ${ac_cv_lib_dld_dld_link+:} false; then :
12874    $as_echo_n "(cached) " >&6
12875   else
12876    ac_check_lib_save_LIBS=$LIBS
# Line 11420 | Line 12904 | LIBS=$ac_check_lib_save_LIBS
12904   fi
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12906   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12907 < if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12907 > if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12908  
12909   $as_echo "#define HAVE_DLD 1" >>confdefs.h
12910  
# Line 11445 | Line 12929 | fi
12929   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12930  
12931  
12932 + LIBS=$lt_dlload_save_LIBS
12933   ac_ext=c
12934   ac_cpp='$CPP $CPPFLAGS'
12935   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 11454 | Line 12939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939  
12940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12941   $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12942 < if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
12942 > if ${lt_cv_sys_symbol_underscore+:} false; then :
12943    $as_echo_n "(cached) " >&6
12944   else
12945    lt_cv_sys_symbol_underscore=no
# Line 11499 | Line 12984 | $as_echo "$lt_cv_sys_symbol_underscore"
12984    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12985  
12986  
12987 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12988 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12989 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11505 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12987 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12988 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12989 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12990   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12991 < if test "${libltdl_cv_need_uscore+set}" = set; then :
12991 > if ${libltdl_cv_need_uscore+:} false; then :
12992    $as_echo_n "(cached) " >&6
12993   else
12994    libltdl_cv_need_uscore=unknown
12995 <          save_LIBS="$LIBS"
12996 <          LIBS="$LIBS $LIBADD_DLOPEN"
12997 <          if test "$cross_compiling" = yes; then :
12998 <  libltdl_cv_need_uscore=cross
12999 < else
11516 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 <  lt_status=$lt_dlunknown
11518 <  cat > conftest.$ac_ext <<_LT_EOF
11519 < #line 11519 "configure"
12995 >      dlsym_uscore_save_LIBS=$LIBS
12996 >      LIBS="$LIBS $LIBADD_DLOPEN"
12997 >      libname=conftmod # stay within 8.3 filename limits!
12998 >      cat >$libname.$ac_ext <<_LT_EOF
12999 > #line $LINENO "configure"
13000   #include "confdefs.h"
13001 + /* When -fvisibility=hidden is used, assume the code has been annotated
13002 +   correspondingly for the symbols needed.  */
13003 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13004 + int fnord () __attribute__((visibility("default")));
13005 + #endif
13006 + int fnord () { return 42; }
13007 + _LT_EOF
13008  
13009 +      # ltfn_module_cmds module_cmds
13010 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
13011 +      # $module_cmds or $archive_cmds type content.
13012 +      ltfn_module_cmds ()
13013 +      {( # subshell avoids polluting parent global environment
13014 +          module_cmds_save_ifs=$IFS; IFS='~'
13015 +          for cmd in $1; do
13016 +            IFS=$module_cmds_save_ifs
13017 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
13018 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
13019 +            major=; versuffix=; verstring=; deplibs=
13020 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
13021 +            eval $cmd
13022 +          done
13023 +          IFS=$module_cmds_save_ifs
13024 +      )}
13025 +
13026 +      # Compile a loadable module using libtool macro expansion results.
13027 +      $CC $pic_flag -c $libname.$ac_ext
13028 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
13029 +
13030 +      # Try to fetch fnord with dlsym().
13031 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
13032 +      cat >conftest.$ac_ext <<_LT_EOF
13033 + #line $LINENO "configure"
13034 + #include "confdefs.h"
13035   #if HAVE_DLFCN_H
13036   #include <dlfcn.h>
13037   #endif
11525
13038   #include <stdio.h>
13039 <
11528 < #ifdef RTLD_GLOBAL
11529 < #  define LT_DLGLOBAL           RTLD_GLOBAL
11530 < #else
13039 > #ifndef RTLD_GLOBAL
13040   #  ifdef DL_GLOBAL
13041 < #    define LT_DLGLOBAL         DL_GLOBAL
13041 > #    define RTLD_GLOBAL DL_GLOBAL
13042   #  else
13043 < #    define LT_DLGLOBAL         0
13043 > #    define RTLD_GLOBAL 0
13044   #  endif
13045   #endif
13046 <
13047 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13048 <   find out it does not work in some platform. */
11540 < #ifndef LT_DLLAZY_OR_NOW
11541 < #  ifdef RTLD_LAZY
11542 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13046 > #ifndef RTLD_NOW
13047 > #  ifdef DL_NOW
13048 > #    define RTLD_NOW DL_NOW
13049   #  else
13050 < #    ifdef DL_LAZY
11545 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
11546 < #    else
11547 < #      ifdef RTLD_NOW
11548 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11549 < #      else
11550 < #        ifdef DL_NOW
11551 < #          define LT_DLLAZY_OR_NOW      DL_NOW
11552 < #        else
11553 < #          define LT_DLLAZY_OR_NOW      0
11554 < #        endif
11555 < #      endif
11556 < #    endif
13050 > #    define RTLD_NOW 0
13051   #  endif
13052   #endif
13053 <
13054 < void fnord() { int i=42;}
13055 < int main ()
13056 < {
13057 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13058 <  int status = $lt_dlunknown;
13059 <
13060 <  if (self)
13061 <    {
13062 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13063 <      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 <      /* dlclose (self); */
13053 > int main () {
13054 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
13055 >  int status = $libltdl_dlunknown;
13056 >  if (handle) {
13057 >    if (dlsym (handle, "fnord"))
13058 >      status = $libltdl_dlnouscore;
13059 >    else {
13060 >      if (dlsym (handle, "_fnord"))
13061 >        status = $libltdl_dluscore;
13062 >      else
13063 >        puts (dlerror ());
13064      }
13065 <  else
13065 >    dlclose (handle);
13066 >  } else
13067      puts (dlerror ());
11574
13068    return status;
13069   }
13070   _LT_EOF
13071 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13071 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072    (eval $ac_link) 2>&5
13073    ac_status=$?
13074    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13076 <    (./conftest; exit; ) >&5 2>/dev/null
13077 <    lt_status=$?
13078 <    case x$lt_status in
13079 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13080 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13081 <      x$lt_dlunknown|x*)  ;;
13082 <    esac
13083 <  else :
13084 <    # compilation failed
13085 <
11593 <  fi
11594 < fi
11595 < rm -fr conftest*
11596 <
11597 <          LIBS="$save_LIBS"
13075 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13076 >        (./conftest; exit; ) >&5 2>/dev/null
13077 >        libltdl_status=$?
13078 >        case x$libltdl_status in
13079 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13080 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13081 >          x*) libltdl_cv_need_uscore=unknown ;;
13082 >        esac
13083 >      fi
13084 >      rm -rf conftest* $libname*
13085 >      LIBS=$dlsym_uscore_save_LIBS
13086  
13087   fi
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 11602 | Line 13090 | $as_echo "$libltdl_cv_need_uscore" >&6;
13090    fi
13091   fi
13092  
13093 < if test x"$libltdl_cv_need_uscore" = xyes; then
13093 > if test yes = "$libltdl_cv_need_uscore"; then
13094  
13095   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13096  
# Line 11610 | Line 13098 | fi
13098  
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
13100   $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
13101 < if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
13101 > if ${lt_cv_sys_dlopen_deplibs+:} false; then :
13102    $as_echo_n "(cached) " >&6
13103   else
13104    # PORTME does your system automatically load deplibs for dlopen?
# Line 11621 | Line 13109 | else
13109    case $host_os in
13110    aix3*|aix4.1.*|aix4.2.*)
13111      # Unknown whether this is true for these versions of AIX, but
13112 <    # we want this `case' here to explicitly catch those versions.
13112 >    # we want this 'case' here to explicitly catch those versions.
13113      lt_cv_sys_dlopen_deplibs=unknown
13114      ;;
13115    aix[4-9]*)
# Line 11634 | Line 13122 | else
13122        ;;
13123      esac
13124      ;;
13125 +  bitrig*)
13126 +    lt_cv_sys_dlopen_deplibs=yes
13127 +    ;;
13128    darwin*)
13129      # Assuming the user has installed a libdl from somewhere, this is true
13130      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 11642 | Line 13133 | else
13133    freebsd* | dragonfly*)
13134      lt_cv_sys_dlopen_deplibs=yes
13135      ;;
13136 <  gnu* | linux* | k*bsd*-gnu)
13136 >  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
13137      # GNU and its variants, using gnu ld.so (Glibc)
13138      lt_cv_sys_dlopen_deplibs=yes
13139      ;;
# Line 11671 | Line 13162 | else
13162    osf[1234]*)
13163      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13164      # it did *not* use an RPATH in a shared library to find objects the
13165 <    # library depends on, so we explicitly say `no'.
13165 >    # library depends on, so we explicitly say 'no'.
13166      lt_cv_sys_dlopen_deplibs=no
13167      ;;
13168    osf5.0|osf5.0a|osf5.1)
# Line 11680 | Line 13171 | else
13171      # that the library depends on, but there's no easy way to know if that
13172      # patch is installed.  Since this is the case, all we can really
13173      # say is unknown -- it depends on the patch being installed.  If
13174 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13174 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13175      lt_cv_sys_dlopen_deplibs=unknown
13176      ;;
13177    osf*)
13178      # the two cases above should catch all versions of osf <= 5.1.  Read
13179      # the comments above for what we know about them.
13180      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13181 <    # is used to find them so we can finally say `yes'.
13181 >    # is used to find them so we can finally say 'yes'.
13182      lt_cv_sys_dlopen_deplibs=yes
13183      ;;
13184    qnx*)
# Line 11704 | Line 13195 | else
13195   fi
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13197   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13198 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13198 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13199  
13200   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13201  
13202   fi
13203  
11713 :
13204  
13205   for ac_header in argz.h
13206   do :
13207    ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
13208   "
13209 < if test "x$ac_cv_header_argz_h" = x""yes; then :
13209 > if test "x$ac_cv_header_argz_h" = xyes; then :
13210    cat >>confdefs.h <<_ACEOF
13211   #define HAVE_ARGZ_H 1
13212   _ACEOF
# Line 11730 | Line 13220 | ac_fn_c_check_type "$LINENO" "error_t" "
13220   #  include <argz.h>
13221   #endif
13222   "
13223 < if test "x$ac_cv_type_error_t" = x""yes; then :
13223 > if test "x$ac_cv_type_error_t" = xyes; then :
13224  
13225   cat >>confdefs.h <<_ACEOF
13226   #define HAVE_ERROR_T 1
# Line 11747 | Line 13237 | $as_echo "#define __error_t_defined 1" >
13237   fi
13238  
13239  
13240 < ARGZ_H=
13240 > LT_ARGZ_H=
13241   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13242          argz_next argz_stringify
13243   do :
13244    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13246 < eval as_val=\$$as_ac_var
11757 <   if test "x$as_val" = x""yes; then :
13246 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13247    cat >>confdefs.h <<_ACEOF
13248   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13249   _ACEOF
13250  
13251   else
13252 <  ARGZ_H=argz.h;
13252 >  LT_ARGZ_H=lt__argz.h;
13253  
13254 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13254 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13255  
13256   fi
13257   done
13258  
13259  
13260 < if test -z "$ARGZ_H"; then :
13260 > if test -z "$LT_ARGZ_H"; then :
13261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13262   $as_echo_n "checking if argz actually works... " >&6; }
13263 < if test "${lt_cv_sys_argz_works+set}" = set; then :
13263 > if ${lt_cv_sys_argz_works+:} false; then :
13264    $as_echo_n "(cached) " >&6
13265   else
13266    case $host_os in #(
13267           *cygwin*)
13268             lt_cv_sys_argz_works=no
13269 <           if test "$cross_compiling" != no; then
13269 >           if test no != "$cross_compiling"; then
13270               lt_cv_sys_argz_works="guessing no"
13271             else
13272               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 11788 | Line 13277 | else
13277               lt_os_major=${2-0}
13278               lt_os_minor=${3-0}
13279               lt_os_micro=${4-0}
13280 <             if test "$lt_os_major" -gt 1 \
13281 <                || { test "$lt_os_major" -eq 1 \
13282 <                  && { test "$lt_os_minor" -gt 5 \
13283 <                    || { test "$lt_os_minor" -eq 5 \
13284 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13280 >             if test 1 -lt "$lt_os_major" \
13281 >                || { test 1 -eq "$lt_os_major" \
13282 >                  && { test 5 -lt "$lt_os_minor" \
13283 >                    || { test 5 -eq "$lt_os_minor" \
13284 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13285                 lt_cv_sys_argz_works=yes
13286               fi
13287             fi
# Line 11802 | Line 13291 | else
13291   fi
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13293   $as_echo "$lt_cv_sys_argz_works" >&6; }
13294 <     if test $lt_cv_sys_argz_works = yes; then :
13294 >     if test yes = "$lt_cv_sys_argz_works"; then :
13295  
13296   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13297  
13298   else
13299 <  ARGZ_H=argz.h
13299 >  LT_ARGZ_H=lt__argz.h
13300  
13301  
13302 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13302 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13303  
13304   fi
13305   fi
# Line 11819 | Line 13308 | fi
13308  
13309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13310   $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13311 < if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
13311 > if ${libltdl_cv_preloaded_symbols+:} false; then :
13312    $as_echo_n "(cached) " >&6
13313   else
13314    if test -n "$lt_cv_sys_global_symbol_pipe"; then
# Line 11831 | Line 13320 | else
13320   fi
13321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13322   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13323 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13323 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13324  
13325   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13326  
13327   fi
13328  
11840
11841
13329   # Set options
13330  
13331  
# Line 11851 | Line 13338 | fi
13338  
13339  
13340  
11854
13341   # Check whether --with-included_ltdl was given.
13342   if test "${with_included_ltdl+set}" = set; then :
13343    withval=$with_included_ltdl;
13344   fi
13345  
13346  
13347 < if test "x$with_included_ltdl" != xyes; then
13347 > if test yes != "$with_included_ltdl"; then
13348    # We are not being forced to use the included libltdl sources, so
13349    # decide whether there is a useful installed version we can use.
13350    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13351  
13352   "
13353 < if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13353 > if test "x$ac_cv_header_ltdl_h" = xyes; then :
13354    ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13355              #include <ltdl.h>
13356   "
13357 < if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
13357 > if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13359   $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13360 < if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
13360 > if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13361    $as_echo_n "(cached) " >&6
13362   else
13363    ac_check_lib_save_LIBS=$LIBS
# Line 11905 | Line 13391 | LIBS=$ac_check_lib_save_LIBS
13391   fi
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13393   $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13394 < if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
13394 > if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13395    with_included_ltdl=no
13396   else
13397    with_included_ltdl=yes
# Line 11925 | Line 13411 | fi
13411  
13412  
13413  
11928
11929
11930
11931
11932
13414   # Check whether --with-ltdl_include was given.
13415   if test "${with_ltdl_include+set}" = set; then :
13416    withval=$with_ltdl_include;
# Line 11939 | Line 13420 | fi
13420   if test -n "$with_ltdl_include"; then
13421    if test -f "$with_ltdl_include/ltdl.h"; then :
13422    else
13423 <    as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13423 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13424    fi
13425   else
13426    with_ltdl_include=no
# Line 11955 | Line 13436 | fi
13436   if test -n "$with_ltdl_lib"; then
13437    if test -f "$with_ltdl_lib/libltdl.la"; then :
13438    else
13439 <    as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13439 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13440    fi
13441   else
13442    with_ltdl_lib=no
# Line 11964 | Line 13445 | fi
13445   case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13446    ,yes,no,no,)
13447          case $enable_ltdl_convenience in
13448 <  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
13448 >  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13449    "") enable_ltdl_convenience=yes
13450        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13451   esac
13452 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13452 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13453   LTDLDEPS=$LIBLTDL
13454 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13454 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13455  
13456  
13457  
13458  
13459  
13460   # For backwards non-gettext consistent compatibility...
13461 < INCLTDL="$LTDLINCL"
13461 > INCLTDL=$LTDLINCL
13462  
13463  
13464          ;;
# Line 11992 | Line 13473 | $as_echo "#define HAVE_LTDL 1" >>confdef
13473          LTDLINCL=
13474          ;;
13475    ,no*,no,*)
13476 <        as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13476 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13477          ;;
13478    *)    with_included_ltdl=no
13479          LIBLTDL="-L$with_ltdl_lib -lltdl"
13480          LTDLDEPS=
13481 <        LTDLINCL="-I$with_ltdl_include"
13481 >        LTDLINCL=-I$with_ltdl_include
13482          ;;
13483   esac
13484 < INCLTDL="$LTDLINCL"
13484 > INCLTDL=$LTDLINCL
13485  
13486   # Report our decision...
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 12020 | Line 13501 | if test "${enable_ltdl_install+set}" = s
13501   fi
13502  
13503  
13504 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13504 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13505    *yes*) ;;
13506    *) enable_ltdl_convenience=yes ;;
13507   esac
13508  
13509 < if test x"${enable_ltdl_install-no}" != xno; then
13509 > if test no != "${enable_ltdl_install-no}"; then
13510    INSTALL_LTDL_TRUE=
13511    INSTALL_LTDL_FALSE='#'
13512   else
# Line 12033 | Line 13514 | else
13514    INSTALL_LTDL_FALSE=
13515   fi
13516  
13517 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13517 >  if test no != "${enable_ltdl_convenience-no}"; then
13518    CONVENIENCE_LTDL_TRUE=
13519    CONVENIENCE_LTDL_FALSE='#'
13520   else
# Line 12043 | Line 13524 | fi
13524  
13525  
13526  
12046    subdirs="$subdirs libltdl"
12047
12048
13527  
13528  
13529  
# Line 12062 | Line 13540 | do :
13540    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13541   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13542   "
13543 < eval as_val=\$$as_ac_Header
12066 <   if test "x$as_val" = x""yes; then :
13543 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13544    cat >>confdefs.h <<_ACEOF
13545   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13546   _ACEOF
# Line 12077 | Line 13554 | for ac_func in closedir opendir readdir
13554   do :
13555    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13556   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13557 < eval as_val=\$$as_ac_var
12081 <   if test "x$as_val" = x""yes; then :
13557 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13558    cat >>confdefs.h <<_ACEOF
13559   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13560   _ACEOF
# Line 12095 | Line 13571 | for ac_func in strlcat strlcpy
13571   do :
13572    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13573   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13574 < eval as_val=\$$as_ac_var
12099 <   if test "x$as_val" = x""yes; then :
13574 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13575    cat >>confdefs.h <<_ACEOF
13576   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13577   _ACEOF
# Line 12116 | Line 13591 | cat >>confdefs.h <<_ACEOF
13591   _ACEOF
13592  
13593  
13594 + name=
13595 + eval "lt_libprefix=\"$libname_spec\""
13596 +
13597 + cat >>confdefs.h <<_ACEOF
13598 + #define LT_LIBPREFIX "$lt_libprefix"
13599 + _ACEOF
13600 +
13601 +
13602   name=ltdl
13603 < LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
13603 > eval "LTDLOPEN=\"$libname_spec\""
13604  
13605  
13606  
# Line 12131 | Line 13614 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\
13614  
13615   LIBTOOL="$LIBTOOL --silent"
13616  
12134
13617   # Checks for libraries.
13618  
13619 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13620 < $as_echo_n "checking for library containing socket... " >&6; }
13621 < if test "${ac_cv_search_socket+set}" = set; then :
13619 >
13620 >  if test "X$CC" != "X"; then
13621 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
13622 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
13623 > if ${ssp_cv_cc+:} false; then :
13624 >  $as_echo_n "(cached) " >&6
13625 > else
13626 >  ssp_old_cflags="$CFLAGS"
13627 >       CFLAGS="$CFLAGS -fstack-protector-strong"
13628 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 > /* end confdefs.h.  */
13630 >
13631 > int
13632 > main ()
13633 > {
13634 >
13635 >  ;
13636 >  return 0;
13637 > }
13638 > _ACEOF
13639 > if ac_fn_c_try_compile "$LINENO"; then :
13640 >  ssp_cv_cc=yes
13641 > else
13642 >  ssp_cv_cc=no
13643 > fi
13644 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 >       CFLAGS="$ssp_old_cflags"
13646 >
13647 > fi
13648 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13649 > $as_echo "$ssp_cv_cc" >&6; }
13650 >    if test $ssp_cv_cc = yes; then
13651 >      CFLAGS="$CFLAGS -fstack-protector-strong"
13652 >
13653 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13654 >
13655 >    else
13656 >      unset ssp_cv_cc
13657 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13658 > $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13659 > if ${ssp_cv_cc+:} false; then :
13660 >  $as_echo_n "(cached) " >&6
13661 > else
13662 >  ssp_old_cflags="$CFLAGS"
13663 >         CFLAGS="$CFLAGS -fstack-protector"
13664 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 > /* end confdefs.h.  */
13666 >
13667 > int
13668 > main ()
13669 > {
13670 >
13671 >  ;
13672 >  return 0;
13673 > }
13674 > _ACEOF
13675 > if ac_fn_c_try_compile "$LINENO"; then :
13676 >  ssp_cv_cc=yes
13677 > else
13678 >  ssp_cv_cc=no
13679 > fi
13680 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 >         CFLAGS="$ssp_old_cflags"
13682 >
13683 > fi
13684 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13685 > $as_echo "$ssp_cv_cc" >&6; }
13686 >      if test $ssp_cv_cc = yes; then
13687 >        CFLAGS="$CFLAGS -fstack-protector"
13688 >
13689 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13690 >
13691 >      fi
13692 >    fi
13693 >  fi
13694 >
13695 >
13696 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13697 > $as_echo_n "checking whether libssp exists... " >&6; }
13698 > if ${ssp_cv_lib+:} false; then :
13699 >  $as_echo_n "(cached) " >&6
13700 > else
13701 >  ssp_old_libs="$LIBS"
13702 >     LIBS="$LIBS -lssp"
13703 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 > /* end confdefs.h.  */
13705 >
13706 > int
13707 > main ()
13708 > {
13709 >
13710 >  ;
13711 >  return 0;
13712 > }
13713 > _ACEOF
13714 > if ac_fn_c_try_link "$LINENO"; then :
13715 >  ssp_cv_lib=yes
13716 > else
13717 >  ssp_cv_lib=no
13718 > fi
13719 > rm -f core conftest.err conftest.$ac_objext \
13720 >    conftest$ac_exeext conftest.$ac_ext
13721 >     LIBS="$ssp_old_libs"
13722 >
13723 > fi
13724 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13725 > $as_echo "$ssp_cv_lib" >&6; }
13726 >  if test $ssp_cv_lib = yes; then
13727 >    LIBS="$LIBS -lssp"
13728 >  fi
13729 >
13730 >
13731 >  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13732 > if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13733 >
13734 > else
13735 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13736 > $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13737 > if ${ac_cv_search_getaddrinfo+:} false; then :
13738    $as_echo_n "(cached) " >&6
13739   else
13740    ac_func_search_save_LIBS=$LIBS
# Line 12149 | Line 13747 | cat confdefs.h - <<_ACEOF >conftest.$ac_
13747   #ifdef __cplusplus
13748   extern "C"
13749   #endif
13750 < char socket ();
13750 > char getaddrinfo ();
13751   int
13752   main ()
13753   {
13754 < return socket ();
13754 > return getaddrinfo ();
13755    ;
13756    return 0;
13757   }
13758   _ACEOF
13759 < for ac_lib in '' socket; do
13759 > for ac_lib in '' nsl; do
13760    if test -z "$ac_lib"; then
13761      ac_res="none required"
13762    else
# Line 12166 | Line 13764 | for ac_lib in '' socket; do
13764      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13765    fi
13766    if ac_fn_c_try_link "$LINENO"; then :
13767 <  ac_cv_search_socket=$ac_res
13767 >  ac_cv_search_getaddrinfo=$ac_res
13768   fi
13769   rm -f core conftest.err conftest.$ac_objext \
13770      conftest$ac_exeext
13771 <  if test "${ac_cv_search_socket+set}" = set; then :
13771 >  if ${ac_cv_search_getaddrinfo+:} false; then :
13772    break
13773   fi
13774   done
13775 < if test "${ac_cv_search_socket+set}" = set; then :
13775 > if ${ac_cv_search_getaddrinfo+:} false; then :
13776  
13777   else
13778 <  ac_cv_search_socket=no
13778 >  ac_cv_search_getaddrinfo=no
13779   fi
13780   rm conftest.$ac_ext
13781   LIBS=$ac_func_search_save_LIBS
13782   fi
13783 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13784 < $as_echo "$ac_cv_search_socket" >&6; }
13785 < ac_res=$ac_cv_search_socket
13783 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13784 > $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13785 > ac_res=$ac_cv_search_getaddrinfo
13786   if test "$ac_res" != no; then :
13787    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13788  
12191 else
12192  as_fn_error "socket library not found" "$LINENO" 5
13789   fi
13790  
12195  for ac_func in inet_aton inet_ntop inet_pton
12196 do :
12197  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12199 eval as_val=\$$as_ac_var
12200   if test "x$as_val" = x""yes; then :
12201  cat >>confdefs.h <<_ACEOF
12202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203 _ACEOF
12204
13791   fi
12206 done
13792  
13793 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13794 <   #include <sys/socket.h>
12210 <   #include <netdb.h>
13793 >  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13794 > if test "x$ac_cv_func_getnameinfo" = xyes; then :
13795  
13796 < "
13797 < if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
13796 > else
13797 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13798 > $as_echo_n "checking for library containing getnameinfo... " >&6; }
13799 > if ${ac_cv_search_getnameinfo+:} false; then :
13800 >  $as_echo_n "(cached) " >&6
13801 > else
13802 >  ac_func_search_save_LIBS=$LIBS
13803 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 > /* end confdefs.h.  */
13805  
13806 < cat >>confdefs.h <<_ACEOF
13807 < #define HAVE_STRUCT_SOCKADDR_IN 1
13806 > /* Override any GCC internal prototype to avoid an error.
13807 >   Use char because int might match the return type of a GCC
13808 >   builtin and then its argument prototype would still apply.  */
13809 > #ifdef __cplusplus
13810 > extern "C"
13811 > #endif
13812 > char getnameinfo ();
13813 > int
13814 > main ()
13815 > {
13816 > return getnameinfo ();
13817 >  ;
13818 >  return 0;
13819 > }
13820   _ACEOF
13821 <
13822 <
13821 > for ac_lib in '' nsl; do
13822 >  if test -z "$ac_lib"; then
13823 >    ac_res="none required"
13824 >  else
13825 >    ac_res=-l$ac_lib
13826 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13827 >  fi
13828 >  if ac_fn_c_try_link "$LINENO"; then :
13829 >  ac_cv_search_getnameinfo=$ac_res
13830   fi
13831 < ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13832 <   #include <sys/socket.h>
13833 <   #include <netdb.h>
13834 <
12225 < "
12226 < if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12227 <
12228 < cat >>confdefs.h <<_ACEOF
12229 < #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12230 < _ACEOF
12231 <
12232 <
13831 > rm -f core conftest.err conftest.$ac_objext \
13832 >    conftest$ac_exeext
13833 >  if ${ac_cv_search_getnameinfo+:} false; then :
13834 >  break
13835   fi
13836 < ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13837 <   #include <sys/socket.h>
12236 <   #include <netdb.h>
12237 <
12238 < "
12239 < if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12240 <
12241 < cat >>confdefs.h <<_ACEOF
12242 < #define HAVE_STRUCT_ADDRINFO 1
12243 < _ACEOF
12244 <
13836 > done
13837 > if ${ac_cv_search_getnameinfo+:} false; then :
13838  
13839 + else
13840 +  ac_cv_search_getnameinfo=no
13841   fi
13842 <
13843 <  ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12249 <  <sys/socket.h>
12250 < "
12251 < if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12252 <
12253 < cat >>confdefs.h <<_ACEOF
12254 < #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12255 < _ACEOF
12256 <
12257 <
13842 > rm conftest.$ac_ext
13843 > LIBS=$ac_func_search_save_LIBS
13844   fi
13845 <
13846 <
13847 <
13848 <  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
13849 < if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12264 <
12265 < cat >>confdefs.h <<_ACEOF
12266 < #define HAVE_STRUCT_SOCKADDR_IN6 1
12267 < _ACEOF
12268 <
12269 <
12270 < else
12271 <
12272 < $as_echo "#define IPV6 1" >>confdefs.h
13845 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13846 > $as_echo "$ac_cv_search_getnameinfo" >&6; }
13847 > ac_res=$ac_cv_search_getnameinfo
13848 > if test "$ac_res" != no; then :
13849 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13850  
13851   fi
13852  
13853 + fi
13854  
13855 <
13856 <
13857 < # Checks for typedefs, structures, and compiler characteristics.
12280 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12281 < $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12282 < if test "${ac_cv_c_const+set}" = set; then :
13855 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13856 > $as_echo_n "checking for library containing socket... " >&6; }
13857 > if ${ac_cv_search_socket+:} false; then :
13858    $as_echo_n "(cached) " >&6
13859   else
13860 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 >  ac_func_search_save_LIBS=$LIBS
13861 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862   /* end confdefs.h.  */
13863  
13864 + /* Override any GCC internal prototype to avoid an error.
13865 +   Use char because int might match the return type of a GCC
13866 +   builtin and then its argument prototype would still apply.  */
13867 + #ifdef __cplusplus
13868 + extern "C"
13869 + #endif
13870 + char socket ();
13871   int
13872   main ()
13873   {
13874 < /* FIXME: Include the comments suggested by Paul. */
12292 < #ifndef __cplusplus
12293 <  /* Ultrix mips cc rejects this.  */
12294 <  typedef int charset[2];
12295 <  const charset cs;
12296 <  /* SunOS 4.1.1 cc rejects this.  */
12297 <  char const *const *pcpcc;
12298 <  char **ppc;
12299 <  /* NEC SVR4.0.2 mips cc rejects this.  */
12300 <  struct point {int x, y;};
12301 <  static struct point const zero = {0,0};
12302 <  /* AIX XL C 1.02.0.0 rejects this.
12303 <     It does not let you subtract one const X* pointer from another in
12304 <     an arm of an if-expression whose if-part is not a constant
12305 <     expression */
12306 <  const char *g = "string";
12307 <  pcpcc = &g + (g ? g-g : 0);
12308 <  /* HPUX 7.0 cc rejects these. */
12309 <  ++pcpcc;
12310 <  ppc = (char**) pcpcc;
12311 <  pcpcc = (char const *const *) ppc;
12312 <  { /* SCO 3.2v4 cc rejects this.  */
12313 <    char *t;
12314 <    char const *s = 0 ? (char *) 0 : (char const *) 0;
12315 <
12316 <    *t++ = 0;
12317 <    if (s) return 0;
12318 <  }
12319 <  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12320 <    int x[] = {25, 17};
12321 <    const int *foo = &x[0];
12322 <    ++foo;
12323 <  }
12324 <  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12325 <    typedef const int *iptr;
12326 <    iptr p = 0;
12327 <    ++p;
12328 <  }
12329 <  { /* AIX XL C 1.02.0.0 rejects this saying
12330 <       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12331 <    struct s { int j; const int *ap[3]; };
12332 <    struct s *b; b->j = 5;
12333 <  }
12334 <  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12335 <    const int foo = 10;
12336 <    if (!foo) return 0;
12337 <  }
12338 <  return !cs[0] && !zero.x;
12339 < #endif
12340 <
13874 > return socket ();
13875    ;
13876    return 0;
13877   }
13878   _ACEOF
13879 < if ac_fn_c_try_compile "$LINENO"; then :
13880 <  ac_cv_c_const=yes
13881 < else
13882 <  ac_cv_c_const=no
13879 > for ac_lib in '' socket; do
13880 >  if test -z "$ac_lib"; then
13881 >    ac_res="none required"
13882 >  else
13883 >    ac_res=-l$ac_lib
13884 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13885 >  fi
13886 >  if ac_fn_c_try_link "$LINENO"; then :
13887 >  ac_cv_search_socket=$ac_res
13888   fi
13889 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 > rm -f core conftest.err conftest.$ac_objext \
13890 >    conftest$ac_exeext
13891 >  if ${ac_cv_search_socket+:} false; then :
13892 >  break
13893   fi
13894 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13895 < $as_echo "$ac_cv_c_const" >&6; }
12354 < if test $ac_cv_c_const = no; then
12355 <
12356 < $as_echo "#define const /**/" >>confdefs.h
13894 > done
13895 > if ${ac_cv_search_socket+:} false; then :
13896  
13897 + else
13898 +  ac_cv_search_socket=no
13899 + fi
13900 + rm conftest.$ac_ext
13901 + LIBS=$ac_func_search_save_LIBS
13902   fi
13903 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13904 + $as_echo "$ac_cv_search_socket" >&6; }
13905 + ac_res=$ac_cv_search_socket
13906 + if test "$ac_res" != no; then :
13907 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908  
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12361 $as_echo_n "checking for inline... " >&6; }
12362 if test "${ac_cv_c_inline+set}" = set; then :
12363  $as_echo_n "(cached) " >&6
13909   else
13910 <  ac_cv_c_inline=no
12366 < for ac_kw in inline __inline__ __inline; do
12367 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 < /* end confdefs.h.  */
12369 < #ifndef __cplusplus
12370 < typedef int foo_t;
12371 < static $ac_kw foo_t static_foo () {return 0; }
12372 < $ac_kw foo_t foo () {return 0; }
12373 < #endif
12374 <
12375 < _ACEOF
12376 < if ac_fn_c_try_compile "$LINENO"; then :
12377 <  ac_cv_c_inline=$ac_kw
13910 >  as_fn_error $? "socket library not found" "$LINENO" 5
13911   fi
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380  test "$ac_cv_c_inline" != no && break
12381 done
13912  
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12385 $as_echo "$ac_cv_c_inline" >&6; }
13913  
12387 case $ac_cv_c_inline in
12388  inline | yes) ;;
12389  *)
12390    case $ac_cv_c_inline in
12391      no) ac_val=;;
12392      *) ac_val=$ac_cv_c_inline;;
12393    esac
12394    cat >>confdefs.h <<_ACEOF
12395 #ifndef __cplusplus
12396 #define inline $ac_val
12397 #endif
12398 _ACEOF
12399    ;;
12400 esac
13914  
13915 + # Checks for typedefs, structures, and compiler characteristics.
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13917   $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13918 < if test "${ac_cv_c_bigendian+set}" = set; then :
13918 > if ${ac_cv_c_bigendian+:} false; then :
13919    $as_echo_n "(cached) " >&6
13920   else
13921    ac_cv_c_bigendian=unknown
# Line 12619 | Line 14133 | $as_echo "#define AC_APPLE_UNIVERSAL_BUI
14133  
14134       ;; #(
14135     *)
14136 <     as_fn_error "unknown endianness
14136 >     as_fn_error $? "unknown endianness
14137   presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14138   esac
14139  
14140  
14141 < # The cast to long int works around a bug in the HP C Compiler
14142 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14143 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14144 < # This bug is HP SR number 8606223364.
14145 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
14146 < $as_echo_n "checking size of int64_t... " >&6; }
14147 < if test "${ac_cv_sizeof_int64_t+set}" = set; then :
14141 > # Checks for library functions.
14142 >
14143 >
14144 >
14145 >  for ac_func in $ac_func_list
14146 > do :
14147 >  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14148 > ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14149 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14150 >  cat >>confdefs.h <<_ACEOF
14151 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14152 > _ACEOF
14153 >
14154 > fi
14155 > done
14156 >
14157 >
14158 >
14159 >
14160 >
14161 >
14162 >
14163 >
14164 >
14165 >
14166 >
14167 > # Checks for header files.
14168 >
14169 >
14170 >
14171 >  for ac_header in $ac_header_list
14172 > do :
14173 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14174 > ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14175 > "
14176 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14177 >  cat >>confdefs.h <<_ACEOF
14178 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14179 > _ACEOF
14180 >
14181 > fi
14182 >
14183 > done
14184 >
14185 >
14186 >
14187 >
14188 >
14189 >
14190 >
14191 >
14192 >
14193 >
14194 >
14195 >
14196 >
14197 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14198 > $as_echo_n "checking for library containing crypt... " >&6; }
14199 > if ${ac_cv_search_crypt+:} false; then :
14200    $as_echo_n "(cached) " >&6
14201   else
14202 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
14202 >  ac_func_search_save_LIBS=$LIBS
14203 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 > /* end confdefs.h.  */
14205 >
14206 > /* Override any GCC internal prototype to avoid an error.
14207 >   Use char because int might match the return type of a GCC
14208 >   builtin and then its argument prototype would still apply.  */
14209 > #ifdef __cplusplus
14210 > extern "C"
14211 > #endif
14212 > char crypt ();
14213 > int
14214 > main ()
14215 > {
14216 > return crypt ();
14217 >  ;
14218 >  return 0;
14219 > }
14220 > _ACEOF
14221 > for ac_lib in '' crypt; do
14222 >  if test -z "$ac_lib"; then
14223 >    ac_res="none required"
14224 >  else
14225 >    ac_res=-l$ac_lib
14226 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14227 >  fi
14228 >  if ac_fn_c_try_link "$LINENO"; then :
14229 >  ac_cv_search_crypt=$ac_res
14230 > fi
14231 > rm -f core conftest.err conftest.$ac_objext \
14232 >    conftest$ac_exeext
14233 >  if ${ac_cv_search_crypt+:} false; then :
14234 >  break
14235 > fi
14236 > done
14237 > if ${ac_cv_search_crypt+:} false; then :
14238  
14239   else
14240 <  if test "$ac_cv_type_int64_t" = yes; then
14241 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14242 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14243 < { as_fn_set_status 77
14244 < as_fn_error "cannot compute sizeof (int64_t)
14245 < See \`config.log' for more details." "$LINENO" 5; }; }
14246 <   else
14247 <     ac_cv_sizeof_int64_t=0
14248 <   fi
14240 >  ac_cv_search_crypt=no
14241 > fi
14242 > rm conftest.$ac_ext
14243 > LIBS=$ac_func_search_save_LIBS
14244 > fi
14245 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14246 > $as_echo "$ac_cv_search_crypt" >&6; }
14247 > ac_res=$ac_cv_search_crypt
14248 > if test "$ac_res" != no; then :
14249 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14250 >
14251 > fi
14252 >
14253 >
14254 > # Argument processing.
14255 >
14256 >  desired_iopoll_mechanism="none"
14257 >
14258 >  # Check whether --enable-kqueue was given.
14259 > if test "${enable_kqueue+set}" = set; then :
14260 >  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14261 > fi
14262 >
14263 >  # Check whether --enable-epoll was given.
14264 > if test "${enable_epoll+set}" = set; then :
14265 >  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14266 > fi
14267 >
14268 >  # Check whether --enable-devpoll was given.
14269 > if test "${enable_devpoll+set}" = set; then :
14270 >  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14271   fi
14272  
14273 +  # Check whether --enable-poll was given.
14274 + if test "${enable_poll+set}" = set; then :
14275 +  enableval=$enable_poll; desired_iopoll_mechanism="poll"
14276   fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12652 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
14277  
14278  
14279 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14280 + $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14281 +
14282 +  iopoll_mechanism_none=0
14283  
14284   cat >>confdefs.h <<_ACEOF
14285 < #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
14285 > #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14286   _ACEOF
14287  
14288  
14289 < # The cast to long int works around a bug in the HP C Compiler
14290 < # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14291 < # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14292 < # This bug is HP SR number 8606223364.
14293 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14294 < $as_echo_n "checking size of long long... " >&6; }
14295 < if test "${ac_cv_sizeof_long_long+set}" = set; then :
14296 <  $as_echo_n "(cached) " >&6
14289 >  iopoll_mechanism_kqueue=1
14290 >
14291 > cat >>confdefs.h <<_ACEOF
14292 > #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14293 > _ACEOF
14294 >
14295 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 > /* end confdefs.h.  */
14297 > /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14298 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14299 > #define kevent innocuous_kevent
14300 >
14301 > /* System header to define __stub macros and hopefully few prototypes,
14302 >    which can conflict with char kevent (); below.
14303 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14304 >    <limits.h> exists even on freestanding compilers.  */
14305 >
14306 > #ifdef __STDC__
14307 > # include <limits.h>
14308 > #else
14309 > # include <assert.h>
14310 > #endif
14311 >
14312 > #undef kevent
14313 >
14314 > /* Override any GCC internal prototype to avoid an error.
14315 >   Use char because int might match the return type of a GCC
14316 >   builtin and then its argument prototype would still apply.  */
14317 > #ifdef __cplusplus
14318 > extern "C"
14319 > #endif
14320 > char kevent ();
14321 > /* The GNU C library defines this for functions which it implements
14322 >    to always fail with ENOSYS.  Some functions are actually named
14323 >    something starting with __ and the normal name is an alias.  */
14324 > #if defined __stub_kevent || defined __stub___kevent
14325 > choke me
14326 > #endif
14327 >
14328 > int
14329 > main ()
14330 > {
14331 > return kevent ();
14332 >  ;
14333 >  return 0;
14334 > }
14335 > _ACEOF
14336 > if ac_fn_c_try_link "$LINENO"; then :
14337 >  is_kqueue_mechanism_available="yes"
14338   else
14339 <  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14339 >  is_kqueue_mechanism_available="no"
14340 > fi
14341 > rm -f core conftest.err conftest.$ac_objext \
14342 >    conftest$ac_exeext conftest.$ac_ext
14343 >
14344 >  iopoll_mechanism_epoll=2
14345 >
14346 > cat >>confdefs.h <<_ACEOF
14347 > #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14348 > _ACEOF
14349  
14350 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 + /* end confdefs.h.  */
14352 + #include <sys/epoll.h>
14353 + int
14354 + main ()
14355 + {
14356 + epoll_create1(EPOLL_CLOEXEC);
14357 +  ;
14358 +  return 0;
14359 + }
14360 + _ACEOF
14361 + if ac_fn_c_try_link "$LINENO"; then :
14362 +  is_epoll_mechanism_available="yes"
14363   else
14364 <  if test "$ac_cv_type_long_long" = yes; then
14365 <     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14366 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14367 < { as_fn_set_status 77
14368 < as_fn_error "cannot compute sizeof (long long)
14369 < See \`config.log' for more details." "$LINENO" 5; }; }
14370 <   else
14371 <     ac_cv_sizeof_long_long=0
14372 <   fi
14364 >  is_epoll_mechanism_available="no"
14365 > fi
14366 > rm -f core conftest.err conftest.$ac_objext \
14367 >    conftest$ac_exeext conftest.$ac_ext
14368 >
14369 >  iopoll_mechanism_devpoll=3
14370 >
14371 > cat >>confdefs.h <<_ACEOF
14372 > #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14373 > _ACEOF
14374 >
14375 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 > /* end confdefs.h.  */
14377 > #include <devpoll.h>
14378 > int
14379 > main ()
14380 > {
14381 >
14382 >  ;
14383 >  return 0;
14384 > }
14385 > _ACEOF
14386 > if ac_fn_c_try_compile "$LINENO"; then :
14387 >  is_devpoll_mechanism_available="yes"
14388 > else
14389 >  is_devpoll_mechanism_available="no"
14390 > fi
14391 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 >  if test "$is_devpoll_mechanism_available" = "yes" ; then
14393 >
14394 > $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14395 >
14396 >  fi
14397 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 > /* end confdefs.h.  */
14399 > #include <sys/devpoll.h>
14400 > int
14401 > main ()
14402 > {
14403 >
14404 >  ;
14405 >  return 0;
14406 > }
14407 > _ACEOF
14408 > if ac_fn_c_try_compile "$LINENO"; then :
14409 >  is_devpoll_mechanism_available="yes"
14410 > else
14411 >  is_devpoll_mechanism_available="no"
14412   fi
14413 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 +  if test "$is_devpoll_mechanism_available" = "yes" ; then
14415 +
14416 + $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14417 +
14418 +  fi
14419 +
14420 +  iopoll_mechanism_poll=4
14421 +
14422 + cat >>confdefs.h <<_ACEOF
14423 + #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14424 + _ACEOF
14425  
14426 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 + /* end confdefs.h.  */
14428 + /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14429 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14430 + #define poll innocuous_poll
14431 +
14432 + /* System header to define __stub macros and hopefully few prototypes,
14433 +    which can conflict with char poll (); below.
14434 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14435 +    <limits.h> exists even on freestanding compilers.  */
14436 +
14437 + #ifdef __STDC__
14438 + # include <limits.h>
14439 + #else
14440 + # include <assert.h>
14441 + #endif
14442 +
14443 + #undef poll
14444 +
14445 + /* Override any GCC internal prototype to avoid an error.
14446 +   Use char because int might match the return type of a GCC
14447 +   builtin and then its argument prototype would still apply.  */
14448 + #ifdef __cplusplus
14449 + extern "C"
14450 + #endif
14451 + char poll ();
14452 + /* The GNU C library defines this for functions which it implements
14453 +    to always fail with ENOSYS.  Some functions are actually named
14454 +    something starting with __ and the normal name is an alias.  */
14455 + #if defined __stub_poll || defined __stub___poll
14456 + choke me
14457 + #endif
14458 +
14459 + int
14460 + main ()
14461 + {
14462 + return poll ();
14463 +  ;
14464 +  return 0;
14465 + }
14466 + _ACEOF
14467 + if ac_fn_c_try_link "$LINENO"; then :
14468 +  is_poll_mechanism_available="yes"
14469 + else
14470 +  is_poll_mechanism_available="no"
14471   fi
14472 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14473 < $as_echo "$ac_cv_sizeof_long_long" >&6; }
14472 > rm -f core conftest.err conftest.$ac_objext \
14473 >    conftest$ac_exeext conftest.$ac_ext
14474  
14475 +  optimal_iopoll_mechanism="none"
14476 +  for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14477 +    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14478 +    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14479 +      optimal_iopoll_mechanism="$mechanism"
14480 +      break
14481 +    fi
14482 +  done
14483  
14484 +  if test "$desired_iopoll_mechanism" = "none" ; then
14485 +    if test "$optimal_iopoll_mechanism" = "none" ; then
14486 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14487 + $as_echo "none" >&6; }
14488 +      as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14489 +    else
14490 +      selected_iopoll_mechanism=$optimal_iopoll_mechanism
14491 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14492 + $as_echo "$selected_iopoll_mechanism" >&6; }
14493 +    fi
14494 +  else
14495 +    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14496 +    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14497 +      selected_iopoll_mechanism=$desired_iopoll_mechanism
14498 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14499 + $as_echo "$selected_iopoll_mechanism" >&6; }
14500 +    else
14501 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14502 + $as_echo "none" >&6; }
14503 +      as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14504 +    fi
14505 +  fi
14506 +
14507 +  eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14508  
14509   cat >>confdefs.h <<_ACEOF
14510 < #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14510 > #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14511   _ACEOF
14512  
14513  
14514  
14515 < if test "$ac_cv_sizeof_int64_t" = 8; then
14516 <  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14517 < if test "x$ac_cv_type_uint64_t" = x""yes; then :
14515 >  # Check whether --enable-assert was given.
14516 > if test "${enable_assert+set}" = set; then :
14517 >  enableval=$enable_assert; assert=$enableval
14518 > else
14519 >  assert=no
14520 > fi
14521 >
14522 >
14523 >  if test "$assert" = "no"; then :
14524 >
14525 > $as_echo "#define NDEBUG 1" >>confdefs.h
14526  
14527   fi
14528  
12702  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12703 if test "x$ac_cv_type_int64_t" = x""yes; then :
14529  
14530 +  # Check whether --enable-debugging was given.
14531 + if test "${enable_debugging+set}" = set; then :
14532 +  enableval=$enable_debugging; debugging="$enableval"
14533 + else
14534 +  debugging="no"
14535   fi
14536  
12707 elif test "$ac_cv_sizeof_long_long" = 8; then
12708  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12709 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14537  
14538 +  if test "$debugging" = "yes"; then :
14539 +
14540 +    CFLAGS="-Wall -g -O0"
14541 +
14542 + fi
14543 +
14544 +
14545 +  # Check whether --enable-warnings was given.
14546 + if test "${enable_warnings+set}" = set; then :
14547 +  enableval=$enable_warnings; warnings="$enableval"
14548   else
14549 +  warnings="no"
14550 + fi
14551  
14552 < cat >>confdefs.h <<_ACEOF
14553 < #define uint64_t unsigned long long
14552 >
14553 >  if test "$warnings" = "yes"; then :
14554 >
14555 >
14556 >
14557 >
14558 >
14559 > for flag in -Wall; do
14560 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14561 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14562 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14563 > if eval \${$as_CACHEVAR+:} false; then :
14564 >  $as_echo_n "(cached) " >&6
14565 > else
14566 >
14567 >  ax_check_save_flags=$CFLAGS
14568 >  CFLAGS="$CFLAGS  $flag"
14569 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 > /* end confdefs.h.  */
14571 >
14572 > int
14573 > main ()
14574 > {
14575 >
14576 >  ;
14577 >  return 0;
14578 > }
14579   _ACEOF
14580 + if ac_fn_c_try_compile "$LINENO"; then :
14581 +  eval "$as_CACHEVAR=yes"
14582 + else
14583 +  eval "$as_CACHEVAR=no"
14584 + fi
14585 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 +  CFLAGS=$ax_check_save_flags
14587 + fi
14588 + eval ac_res=\$$as_CACHEVAR
14589 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14590 + $as_echo "$ac_res" >&6; }
14591 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14592 +
14593 + if ${CFLAGS+:} false; then :
14594 +
14595 +  case " $CFLAGS " in #(
14596 +  *" $flag "*) :
14597 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14598 +  (: CFLAGS already contains $flag) 2>&5
14599 +  ac_status=$?
14600 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601 +  test $ac_status = 0; } ;; #(
14602 +  *) :
14603 +
14604 +     as_fn_append CFLAGS " $flag"
14605 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14606 +  (: CFLAGS="$CFLAGS") 2>&5
14607 +  ac_status=$?
14608 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 +  test $ac_status = 0; }
14610 +     ;;
14611 + esac
14612 +
14613 + else
14614 +
14615 +  CFLAGS=$flag
14616 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14617 +  (: CFLAGS="$CFLAGS") 2>&5
14618 +  ac_status=$?
14619 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620 +  test $ac_status = 0; }
14621  
14622   fi
14623  
14624 <  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14625 < if test "x$ac_cv_type_int64_t" = x""yes; then :
14624 > else
14625 >  :
14626 > fi
14627 >
14628 > done
14629 >
14630 >
14631 >
14632 >
14633  
14634 + for flag in -Wbad-function-cast; do
14635 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14636 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14637 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14638 + if eval \${$as_CACHEVAR+:} false; then :
14639 +  $as_echo_n "(cached) " >&6
14640   else
14641  
14642 < cat >>confdefs.h <<_ACEOF
14643 < #define int64_t long long
14642 >  ax_check_save_flags=$CFLAGS
14643 >  CFLAGS="$CFLAGS  $flag"
14644 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 > /* end confdefs.h.  */
14646 >
14647 > int
14648 > main ()
14649 > {
14650 >
14651 >  ;
14652 >  return 0;
14653 > }
14654   _ACEOF
14655 + if ac_fn_c_try_compile "$LINENO"; then :
14656 +  eval "$as_CACHEVAR=yes"
14657 + else
14658 +  eval "$as_CACHEVAR=no"
14659 + fi
14660 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 +  CFLAGS=$ax_check_save_flags
14662 + fi
14663 + eval ac_res=\$$as_CACHEVAR
14664 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14665 + $as_echo "$ac_res" >&6; }
14666 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14667 +
14668 + if ${CFLAGS+:} false; then :
14669 +
14670 +  case " $CFLAGS " in #(
14671 +  *" $flag "*) :
14672 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14673 +  (: CFLAGS already contains $flag) 2>&5
14674 +  ac_status=$?
14675 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 +  test $ac_status = 0; } ;; #(
14677 +  *) :
14678 +
14679 +     as_fn_append CFLAGS " $flag"
14680 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14681 +  (: CFLAGS="$CFLAGS") 2>&5
14682 +  ac_status=$?
14683 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684 +  test $ac_status = 0; }
14685 +     ;;
14686 + esac
14687 +
14688 + else
14689 +
14690 +  CFLAGS=$flag
14691 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14692 +  (: CFLAGS="$CFLAGS") 2>&5
14693 +  ac_status=$?
14694 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695 +  test $ac_status = 0; }
14696  
14697   fi
14698  
14699   else
14700 <  as_fn_error "Your system doesn't appear to have 64 bit integers.  Aborting." "$LINENO" 5
14700 >  :
14701   fi
14702  
14703 + done
14704  
12735 # Checks for library functions.
14705  
14706  
14707  
14708 <  for ac_func in $ac_func_list
14709 < do :
14710 <  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14711 < ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14712 < eval as_val=\$$as_ac_var
14713 <   if test "x$as_val" = x""yes; then :
14714 <  cat >>confdefs.h <<_ACEOF
14715 < #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 >
14709 > for flag in -Wcast-align; do
14710 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14711 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14712 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14713 > if eval \${$as_CACHEVAR+:} false; then :
14714 >  $as_echo_n "(cached) " >&6
14715 > else
14716 >
14717 >  ax_check_save_flags=$CFLAGS
14718 >  CFLAGS="$CFLAGS  $flag"
14719 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 > /* end confdefs.h.  */
14721 >
14722 > int
14723 > main ()
14724 > {
14725 >
14726 >  ;
14727 >  return 0;
14728 > }
14729   _ACEOF
14730 + if ac_fn_c_try_compile "$LINENO"; then :
14731 +  eval "$as_CACHEVAR=yes"
14732 + else
14733 +  eval "$as_CACHEVAR=no"
14734 + fi
14735 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 +  CFLAGS=$ax_check_save_flags
14737 + fi
14738 + eval ac_res=\$$as_CACHEVAR
14739 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14740 + $as_echo "$ac_res" >&6; }
14741 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14742 +
14743 + if ${CFLAGS+:} false; then :
14744 +
14745 +  case " $CFLAGS " in #(
14746 +  *" $flag "*) :
14747 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14748 +  (: CFLAGS already contains $flag) 2>&5
14749 +  ac_status=$?
14750 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 +  test $ac_status = 0; } ;; #(
14752 +  *) :
14753 +
14754 +     as_fn_append CFLAGS " $flag"
14755 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14756 +  (: CFLAGS="$CFLAGS") 2>&5
14757 +  ac_status=$?
14758 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14759 +  test $ac_status = 0; }
14760 +     ;;
14761 + esac
14762 +
14763 + else
14764 +
14765 +  CFLAGS=$flag
14766 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14767 +  (: CFLAGS="$CFLAGS") 2>&5
14768 +  ac_status=$?
14769 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14770 +  test $ac_status = 0; }
14771  
14772   fi
12750 done
14773  
14774 + else
14775 +  :
14776 + fi
14777  
14778 + done
14779  
14780  
14781  
14782  
14783  
14784 + for flag in -Wcast-function-type; do
14785 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14786 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14787 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14788 + if eval \${$as_CACHEVAR+:} false; then :
14789 +  $as_echo_n "(cached) " >&6
14790 + else
14791  
14792 +  ax_check_save_flags=$CFLAGS
14793 +  CFLAGS="$CFLAGS  $flag"
14794 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 + /* end confdefs.h.  */
14796  
14797 + int
14798 + main ()
14799 + {
14800  
14801 +  ;
14802 +  return 0;
14803 + }
14804 + _ACEOF
14805 + if ac_fn_c_try_compile "$LINENO"; then :
14806 +  eval "$as_CACHEVAR=yes"
14807 + else
14808 +  eval "$as_CACHEVAR=no"
14809 + fi
14810 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 +  CFLAGS=$ax_check_save_flags
14812 + fi
14813 + eval ac_res=\$$as_CACHEVAR
14814 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14815 + $as_echo "$ac_res" >&6; }
14816 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14817  
14818 + if ${CFLAGS+:} false; then :
14819  
14820 +  case " $CFLAGS " in #(
14821 +  *" $flag "*) :
14822 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14823 +  (: CFLAGS already contains $flag) 2>&5
14824 +  ac_status=$?
14825 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14826 +  test $ac_status = 0; } ;; #(
14827 +  *) :
14828  
14829 +     as_fn_append CFLAGS " $flag"
14830 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14831 +  (: CFLAGS="$CFLAGS") 2>&5
14832 +  ac_status=$?
14833 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 +  test $ac_status = 0; }
14835 +     ;;
14836 + esac
14837  
14838 + else
14839  
14840 +  CFLAGS=$flag
14841 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14842 +  (: CFLAGS="$CFLAGS") 2>&5
14843 +  ac_status=$?
14844 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845 +  test $ac_status = 0; }
14846  
14847 + fi
14848  
14849 + else
14850 +  :
14851 + fi
14852  
14853 + done
14854  
14855  
14856  
14857  
14858  
14859 < # Checks for header files.
14859 > for flag in -Wcast-qual; do
14860 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14861 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14862 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14863 > if eval \${$as_CACHEVAR+:} false; then :
14864 >  $as_echo_n "(cached) " >&6
14865 > else
14866  
14867 +  ax_check_save_flags=$CFLAGS
14868 +  CFLAGS="$CFLAGS  $flag"
14869 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 + /* end confdefs.h.  */
14871  
14872 + int
14873 + main ()
14874 + {
14875  
14876 <  for ac_header in $ac_header_list
14877 < do :
14878 <  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 < ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12782 < "
12783 < eval as_val=\$$as_ac_Header
12784 <   if test "x$as_val" = x""yes; then :
12785 <  cat >>confdefs.h <<_ACEOF
12786 < #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14876 >  ;
14877 >  return 0;
14878 > }
14879   _ACEOF
14880 + if ac_fn_c_try_compile "$LINENO"; then :
14881 +  eval "$as_CACHEVAR=yes"
14882 + else
14883 +  eval "$as_CACHEVAR=no"
14884 + fi
14885 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 +  CFLAGS=$ax_check_save_flags
14887 + fi
14888 + eval ac_res=\$$as_CACHEVAR
14889 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14890 + $as_echo "$ac_res" >&6; }
14891 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14892 +
14893 + if ${CFLAGS+:} false; then :
14894 +
14895 +  case " $CFLAGS " in #(
14896 +  *" $flag "*) :
14897 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14898 +  (: CFLAGS already contains $flag) 2>&5
14899 +  ac_status=$?
14900 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14901 +  test $ac_status = 0; } ;; #(
14902 +  *) :
14903 +
14904 +     as_fn_append CFLAGS " $flag"
14905 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14906 +  (: CFLAGS="$CFLAGS") 2>&5
14907 +  ac_status=$?
14908 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 +  test $ac_status = 0; }
14910 +     ;;
14911 + esac
14912 +
14913 + else
14914 +
14915 +  CFLAGS=$flag
14916 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14917 +  (: CFLAGS="$CFLAGS") 2>&5
14918 +  ac_status=$?
14919 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 +  test $ac_status = 0; }
14921  
14922   fi
14923  
14924 + else
14925 +  :
14926 + fi
14927 +
14928   done
14929  
14930  
14931  
14932  
14933  
14934 + for flag in -Wclobbered; do
14935 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14936 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14937 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14938 + if eval \${$as_CACHEVAR+:} false; then :
14939 +  $as_echo_n "(cached) " >&6
14940 + else
14941 +
14942 +  ax_check_save_flags=$CFLAGS
14943 +  CFLAGS="$CFLAGS  $flag"
14944 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 + /* end confdefs.h.  */
14946 +
14947 + int
14948 + main ()
14949 + {
14950 +
14951 +  ;
14952 +  return 0;
14953 + }
14954 + _ACEOF
14955 + if ac_fn_c_try_compile "$LINENO"; then :
14956 +  eval "$as_CACHEVAR=yes"
14957 + else
14958 +  eval "$as_CACHEVAR=no"
14959 + fi
14960 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961 +  CFLAGS=$ax_check_save_flags
14962 + fi
14963 + eval ac_res=\$$as_CACHEVAR
14964 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14965 + $as_echo "$ac_res" >&6; }
14966 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14967 +
14968 + if ${CFLAGS+:} false; then :
14969 +
14970 +  case " $CFLAGS " in #(
14971 +  *" $flag "*) :
14972 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14973 +  (: CFLAGS already contains $flag) 2>&5
14974 +  ac_status=$?
14975 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14976 +  test $ac_status = 0; } ;; #(
14977 +  *) :
14978 +
14979 +     as_fn_append CFLAGS " $flag"
14980 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14981 +  (: CFLAGS="$CFLAGS") 2>&5
14982 +  ac_status=$?
14983 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14984 +  test $ac_status = 0; }
14985 +     ;;
14986 + esac
14987 +
14988 + else
14989 +
14990 +  CFLAGS=$flag
14991 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14992 +  (: CFLAGS="$CFLAGS") 2>&5
14993 +  ac_status=$?
14994 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14995 +  test $ac_status = 0; }
14996 +
14997 + fi
14998  
14999 + else
15000 +  :
15001 + fi
15002  
15003 + done
15004  
15005  
15006  
15007  
15008  
15009 + for flag in -Wduplicated-cond; do
15010 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15011 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15012 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15013 + if eval \${$as_CACHEVAR+:} false; then :
15014 +  $as_echo_n "(cached) " >&6
15015 + else
15016  
15017 +  ax_check_save_flags=$CFLAGS
15018 +  CFLAGS="$CFLAGS  $flag"
15019 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 + /* end confdefs.h.  */
15021  
15022 + int
15023 + main ()
15024 + {
15025  
15026 +  ;
15027 +  return 0;
15028 + }
15029 + _ACEOF
15030 + if ac_fn_c_try_compile "$LINENO"; then :
15031 +  eval "$as_CACHEVAR=yes"
15032 + else
15033 +  eval "$as_CACHEVAR=no"
15034 + fi
15035 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 +  CFLAGS=$ax_check_save_flags
15037 + fi
15038 + eval ac_res=\$$as_CACHEVAR
15039 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15040 + $as_echo "$ac_res" >&6; }
15041 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15042  
15043 + if ${CFLAGS+:} false; then :
15044  
15045 +  case " $CFLAGS " in #(
15046 +  *" $flag "*) :
15047 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15048 +  (: CFLAGS already contains $flag) 2>&5
15049 +  ac_status=$?
15050 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 +  test $ac_status = 0; } ;; #(
15052 +  *) :
15053  
15054 +     as_fn_append CFLAGS " $flag"
15055 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15056 +  (: CFLAGS="$CFLAGS") 2>&5
15057 +  ac_status=$?
15058 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15059 +  test $ac_status = 0; }
15060 +     ;;
15061 + esac
15062  
15063 + else
15064  
15065 +  CFLAGS=$flag
15066 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15067 +  (: CFLAGS="$CFLAGS") 2>&5
15068 +  ac_status=$?
15069 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 +  test $ac_status = 0; }
15071  
15072 + fi
15073  
15074 + else
15075 +  :
15076 + fi
15077  
15078 + done
15079  
15080  
15081  
15082  
15083  
15084 + for flag in -Wempty-body; do
15085 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15086 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15087 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15088 + if eval \${$as_CACHEVAR+:} false; then :
15089 +  $as_echo_n "(cached) " >&6
15090 + else
15091  
15092 +  ax_check_save_flags=$CFLAGS
15093 +  CFLAGS="$CFLAGS  $flag"
15094 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 + /* end confdefs.h.  */
15096 +
15097 + int
15098 + main ()
15099 + {
15100 +
15101 +  ;
15102 +  return 0;
15103 + }
15104 + _ACEOF
15105 + if ac_fn_c_try_compile "$LINENO"; then :
15106 +  eval "$as_CACHEVAR=yes"
15107 + else
15108 +  eval "$as_CACHEVAR=no"
15109 + fi
15110 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 +  CFLAGS=$ax_check_save_flags
15112 + fi
15113 + eval ac_res=\$$as_CACHEVAR
15114 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15115 + $as_echo "$ac_res" >&6; }
15116 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15117  
15118 + if ${CFLAGS+:} false; then :
15119  
15120 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
15121 < $as_echo_n "checking for /dev/null... " >&6; }
15122 < if test -c /dev/null ; then
15120 >  case " $CFLAGS " in #(
15121 >  *" $flag "*) :
15122 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15123 >  (: CFLAGS already contains $flag) 2>&5
15124 >  ac_status=$?
15125 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 >  test $ac_status = 0; } ;; #(
15127 >  *) :
15128  
15129 < $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
15129 >     as_fn_append CFLAGS " $flag"
15130 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15131 >  (: CFLAGS="$CFLAGS") 2>&5
15132 >  ac_status=$?
15133 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15134 >  test $ac_status = 0; }
15135 >     ;;
15136 > esac
15137  
12829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830 $as_echo "yes" >&6; }
15138   else
15139  
15140 < $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
15140 >  CFLAGS=$flag
15141 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15142 >  (: CFLAGS="$CFLAGS") 2>&5
15143 >  ac_status=$?
15144 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15145 >  test $ac_status = 0; }
15146 >
15147 > fi
15148  
15149 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
15150 < $as_echo "no - using devnull.log" >&6; }
15149 > else
15150 >  :
15151   fi
15152  
15153 + done
15154  
15155 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15156 < $as_echo_n "checking for library containing crypt... " >&6; }
15157 < if test "${ac_cv_search_crypt+set}" = set; then :
15155 >
15156 >
15157 >
15158 >
15159 > for flag in -Wignored-qualifiers; do
15160 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15161 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15162 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15163 > if eval \${$as_CACHEVAR+:} false; then :
15164    $as_echo_n "(cached) " >&6
15165   else
15166 <  ac_func_search_save_LIBS=$LIBS
15167 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 >
15167 >  ax_check_save_flags=$CFLAGS
15168 >  CFLAGS="$CFLAGS  $flag"
15169 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170   /* end confdefs.h.  */
15171  
12849 /* Override any GCC internal prototype to avoid an error.
12850   Use char because int might match the return type of a GCC
12851   builtin and then its argument prototype would still apply.  */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 char crypt ();
15172   int
15173   main ()
15174   {
15175 < return crypt ();
15175 >
15176    ;
15177    return 0;
15178   }
15179   _ACEOF
15180 < for ac_lib in '' crypt descrypt; do
15181 <  if test -z "$ac_lib"; then
15182 <    ac_res="none required"
15183 <  else
12868 <    ac_res=-l$ac_lib
12869 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12870 <  fi
12871 <  if ac_fn_c_try_link "$LINENO"; then :
12872 <  ac_cv_search_crypt=$ac_res
15180 > if ac_fn_c_try_compile "$LINENO"; then :
15181 >  eval "$as_CACHEVAR=yes"
15182 > else
15183 >  eval "$as_CACHEVAR=no"
15184   fi
15185 < rm -f core conftest.err conftest.$ac_objext \
15186 <    conftest$ac_exeext
15187 <  if test "${ac_cv_search_crypt+set}" = set; then :
15188 <  break
15185 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 >  CFLAGS=$ax_check_save_flags
15187 > fi
15188 > eval ac_res=\$$as_CACHEVAR
15189 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15190 > $as_echo "$ac_res" >&6; }
15191 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15192 >
15193 > if ${CFLAGS+:} false; then :
15194 >
15195 >  case " $CFLAGS " in #(
15196 >  *" $flag "*) :
15197 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15198 >  (: CFLAGS already contains $flag) 2>&5
15199 >  ac_status=$?
15200 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201 >  test $ac_status = 0; } ;; #(
15202 >  *) :
15203 >
15204 >     as_fn_append CFLAGS " $flag"
15205 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15206 >  (: CFLAGS="$CFLAGS") 2>&5
15207 >  ac_status=$?
15208 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 >  test $ac_status = 0; }
15210 >     ;;
15211 > esac
15212 >
15213 > else
15214 >
15215 >  CFLAGS=$flag
15216 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15217 >  (: CFLAGS="$CFLAGS") 2>&5
15218 >  ac_status=$?
15219 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15220 >  test $ac_status = 0; }
15221 >
15222 > fi
15223 >
15224 > else
15225 >  :
15226   fi
15227 +
15228   done
12880 if test "${ac_cv_search_crypt+set}" = set; then :
15229  
15230 +
15231 +
15232 +
15233 +
15234 + for flag in -Wlogical-op; do
15235 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15236 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15237 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15238 + if eval \${$as_CACHEVAR+:} false; then :
15239 +  $as_echo_n "(cached) " >&6
15240   else
15241 <  ac_cv_search_crypt=no
15241 >
15242 >  ax_check_save_flags=$CFLAGS
15243 >  CFLAGS="$CFLAGS  $flag"
15244 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 > /* end confdefs.h.  */
15246 >
15247 > int
15248 > main ()
15249 > {
15250 >
15251 >  ;
15252 >  return 0;
15253 > }
15254 > _ACEOF
15255 > if ac_fn_c_try_compile "$LINENO"; then :
15256 >  eval "$as_CACHEVAR=yes"
15257 > else
15258 >  eval "$as_CACHEVAR=no"
15259   fi
15260 < rm conftest.$ac_ext
15261 < LIBS=$ac_func_search_save_LIBS
15260 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 >  CFLAGS=$ax_check_save_flags
15262   fi
15263 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15264 < $as_echo "$ac_cv_search_crypt" >&6; }
15265 < ac_res=$ac_cv_search_crypt
15266 < if test "$ac_res" != no; then :
15267 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15263 > eval ac_res=\$$as_CACHEVAR
15264 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15265 > $as_echo "$ac_res" >&6; }
15266 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15267 >
15268 > if ${CFLAGS+:} false; then :
15269 >
15270 >  case " $CFLAGS " in #(
15271 >  *" $flag "*) :
15272 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15273 >  (: CFLAGS already contains $flag) 2>&5
15274 >  ac_status=$?
15275 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15276 >  test $ac_status = 0; } ;; #(
15277 >  *) :
15278 >
15279 >     as_fn_append CFLAGS " $flag"
15280 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15281 >  (: CFLAGS="$CFLAGS") 2>&5
15282 >  ac_status=$?
15283 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284 >  test $ac_status = 0; }
15285 >     ;;
15286 > esac
15287 >
15288 > else
15289 >
15290 >  CFLAGS=$flag
15291 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15292 >  (: CFLAGS="$CFLAGS") 2>&5
15293 >  ac_status=$?
15294 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15295 >  test $ac_status = 0; }
15296  
15297   fi
15298  
12896 if test "$ac_cv_search_crypt" = "none required"; then
12897  HAVE_CRYPT_TRUE=
12898  HAVE_CRYPT_FALSE='#'
15299   else
15300 <  HAVE_CRYPT_TRUE='#'
12901 <  HAVE_CRYPT_FALSE=
15300 >  :
15301   fi
15302  
15303 + done
15304 +
15305 +
15306 +
15307 +
15308  
15309 + for flag in -Wmissing-declarations; do
15310 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15311 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15312 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15313 + if eval \${$as_CACHEVAR+:} false; then :
15314 +  $as_echo_n "(cached) " >&6
15315 + else
15316 +
15317 +  ax_check_save_flags=$CFLAGS
15318 +  CFLAGS="$CFLAGS  $flag"
15319 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 + /* end confdefs.h.  */
15321  
15322 + int
15323 + main ()
15324 + {
15325  
15326 < # Check whether --with-zlib-path was given.
15327 < if test "${with_zlib_path+set}" = set; then :
15328 <  withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
15326 >  ;
15327 >  return 0;
15328 > }
15329 > _ACEOF
15330 > if ac_fn_c_try_compile "$LINENO"; then :
15331 >  eval "$as_CACHEVAR=yes"
15332 > else
15333 >  eval "$as_CACHEVAR=no"
15334 > fi
15335 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 >  CFLAGS=$ax_check_save_flags
15337   fi
15338 + eval ac_res=\$$as_CACHEVAR
15339 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15340 + $as_echo "$ac_res" >&6; }
15341 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15342  
15343 + if ${CFLAGS+:} false; then :
15344 +
15345 +  case " $CFLAGS " in #(
15346 +  *" $flag "*) :
15347 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15348 +  (: CFLAGS already contains $flag) 2>&5
15349 +  ac_status=$?
15350 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15351 +  test $ac_status = 0; } ;; #(
15352 +  *) :
15353 +
15354 +     as_fn_append CFLAGS " $flag"
15355 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15356 +  (: CFLAGS="$CFLAGS") 2>&5
15357 +  ac_status=$?
15358 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15359 +  test $ac_status = 0; }
15360 +     ;;
15361 + esac
15362  
12913 # Check whether --enable-zlib was given.
12914 if test "${enable_zlib+set}" = set; then :
12915  enableval=$enable_zlib; zlib=$enableval
15363   else
15364 <  zlib=yes
15364 >
15365 >  CFLAGS=$flag
15366 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15367 >  (: CFLAGS="$CFLAGS") 2>&5
15368 >  ac_status=$?
15369 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15370 >  test $ac_status = 0; }
15371 >
15372   fi
15373  
15374 + else
15375 +  :
15376 + fi
15377  
15378 < if test "$zlib" = yes; then
15379 <  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15380 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
15381 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
15382 < $as_echo_n "checking for zlibVersion in -lz... " >&6; }
15383 < if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
15378 > done
15379 >
15380 >
15381 >
15382 >
15383 >
15384 > for flag in -Wmissing-field-initializers; do
15385 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15386 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15387 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15388 > if eval \${$as_CACHEVAR+:} false; then :
15389    $as_echo_n "(cached) " >&6
15390   else
15391 <  ac_check_lib_save_LIBS=$LIBS
15392 < LIBS="-lz  $LIBS"
15393 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 >
15392 >  ax_check_save_flags=$CFLAGS
15393 >  CFLAGS="$CFLAGS  $flag"
15394 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395   /* end confdefs.h.  */
15396  
12934 /* Override any GCC internal prototype to avoid an error.
12935   Use char because int might match the return type of a GCC
12936   builtin and then its argument prototype would still apply.  */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char zlibVersion ();
15397   int
15398   main ()
15399   {
15400 < return zlibVersion ();
15400 >
15401    ;
15402    return 0;
15403   }
15404   _ACEOF
15405 < if ac_fn_c_try_link "$LINENO"; then :
15406 <  ac_cv_lib_z_zlibVersion=yes
15405 > if ac_fn_c_try_compile "$LINENO"; then :
15406 >  eval "$as_CACHEVAR=yes"
15407   else
15408 <  ac_cv_lib_z_zlibVersion=no
15408 >  eval "$as_CACHEVAR=no"
15409   fi
15410 < rm -f core conftest.err conftest.$ac_objext \
15411 <    conftest$ac_exeext conftest.$ac_ext
12956 < LIBS=$ac_check_lib_save_LIBS
15410 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 >  CFLAGS=$ax_check_save_flags
15412   fi
15413 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
15414 < $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
15415 < if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
15413 > eval ac_res=\$$as_CACHEVAR
15414 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15415 > $as_echo "$ac_res" >&6; }
15416 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15417  
15418 <      LIBS="-lz $LIBS"
15418 > if ${CFLAGS+:} false; then :
15419  
15420 < $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
15420 >  case " $CFLAGS " in #(
15421 >  *" $flag "*) :
15422 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15423 >  (: CFLAGS already contains $flag) 2>&5
15424 >  ac_status=$?
15425 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426 >  test $ac_status = 0; } ;; #(
15427 >  *) :
15428  
15429 +     as_fn_append CFLAGS " $flag"
15430 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15431 +  (: CFLAGS="$CFLAGS") 2>&5
15432 +  ac_status=$?
15433 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15434 +  test $ac_status = 0; }
15435 +     ;;
15436 + esac
15437  
15438   else
12968  zlib=no
12969 fi
15439  
15440 +  CFLAGS=$flag
15441 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15442 +  (: CFLAGS="$CFLAGS") 2>&5
15443 +  ac_status=$?
15444 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15445 +  test $ac_status = 0; }
15446 +
15447 + fi
15448  
15449   else
15450 <  zlib=no
15450 >  :
15451   fi
15452  
15453 + done
15454 +
15455 +
15456  
15457 +
15458 +
15459 + for flag in -Wmissing-include-dirs; do
15460 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15461 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15462 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15463 + if eval \${$as_CACHEVAR+:} false; then :
15464 +  $as_echo_n "(cached) " >&6
15465 + else
15466 +
15467 +  ax_check_save_flags=$CFLAGS
15468 +  CFLAGS="$CFLAGS  $flag"
15469 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 + /* end confdefs.h.  */
15471 +
15472 + int
15473 + main ()
15474 + {
15475 +
15476 +  ;
15477 +  return 0;
15478 + }
15479 + _ACEOF
15480 + if ac_fn_c_try_compile "$LINENO"; then :
15481 +  eval "$as_CACHEVAR=yes"
15482 + else
15483 +  eval "$as_CACHEVAR=no"
15484 + fi
15485 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 +  CFLAGS=$ax_check_save_flags
15487   fi
15488 + eval ac_res=\$$as_CACHEVAR
15489 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15490 + $as_echo "$ac_res" >&6; }
15491 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15492  
15493 + if ${CFLAGS+:} false; then :
15494 +
15495 +  case " $CFLAGS " in #(
15496 +  *" $flag "*) :
15497 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15498 +  (: CFLAGS already contains $flag) 2>&5
15499 +  ac_status=$?
15500 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15501 +  test $ac_status = 0; } ;; #(
15502 +  *) :
15503 +
15504 +     as_fn_append CFLAGS " $flag"
15505 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15506 +  (: CFLAGS="$CFLAGS") 2>&5
15507 +  ac_status=$?
15508 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15509 +  test $ac_status = 0; }
15510 +     ;;
15511 + esac
15512  
12980 # Check whether --enable-openssl was given.
12981 if test "${enable_openssl+set}" = set; then :
12982  enableval=$enable_openssl;  cf_enable_openssl=$enableval
15513   else
15514 <   cf_enable_openssl="auto"
15514 >
15515 >  CFLAGS=$flag
15516 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15517 >  (: CFLAGS="$CFLAGS") 2>&5
15518 >  ac_status=$?
15519 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15520 >  test $ac_status = 0; }
15521 >
15522   fi
15523  
15524 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15525 < $as_echo_n "checking for OpenSSL... " >&6; }
15526 < if test "$cf_enable_openssl" != "no"; then
12990 <  cf_openssl_basedir=""
12991 <  if test "$cf_enable_openssl" != "auto" &&
12992 <     test "$cf_enable_openssl" != "yes"; then
12993 <          cf_openssl_basedir="${cf_enable_openssl}"
12994 <  else
12995 <        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12996 <                /opt /opt/openssl /usr/local/openssl; do
12997 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
12998 <        cf_openssl_basedir="${dirs}"
12999 <        break
13000 <      fi
13001 <    done
13002 <    unset dirs
13003 <  fi
15524 > else
15525 >  :
15526 > fi
15527  
15528 <    if test ! -z "$cf_openssl_basedir"; then
13006 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13007 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13008 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13009 <    else
13010 <                  cf_openssl_basedir=""
13011 <    fi
13012 <  else
13013 <                            if test -f "/usr/include/openssl/opensslv.h"; then
13014 <      cf_openssl_basedir="/usr"
13015 <    fi
13016 <  fi
15528 > done
15529  
13018      if test ! -z "$cf_openssl_basedir"; then
13019    LIBS="-lcrypto -lssl $LIBS"
13020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13021 $as_echo "$cf_openssl_basedir" >&6; }
13022    cf_enable_openssl="yes"
15530  
13024 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15531  
15532 <  else
15533 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found.  Please check your path." >&5
15534 < $as_echo "not found.  Please check your path." >&6; }
15535 <    cf_enable_openssl="no"
15536 <  fi
15537 <  unset cf_openssl_basedir
15532 >
15533 >
15534 > for flag in -Wmissing-parameter-type; do
15535 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15536 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15537 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15538 > if eval \${$as_CACHEVAR+:} false; then :
15539 >  $as_echo_n "(cached) " >&6
15540   else
15541 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15542 < $as_echo "disabled" >&6; }
15541 >
15542 >  ax_check_save_flags=$CFLAGS
15543 >  CFLAGS="$CFLAGS  $flag"
15544 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 > /* end confdefs.h.  */
15546 >
15547 > int
15548 > main ()
15549 > {
15550 >
15551 >  ;
15552 >  return 0;
15553 > }
15554 > _ACEOF
15555 > if ac_fn_c_try_compile "$LINENO"; then :
15556 >  eval "$as_CACHEVAR=yes"
15557 > else
15558 >  eval "$as_CACHEVAR=no"
15559 > fi
15560 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 >  CFLAGS=$ax_check_save_flags
15562 > fi
15563 > eval ac_res=\$$as_CACHEVAR
15564 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15565 > $as_echo "$ac_res" >&6; }
15566 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15567 >
15568 > if ${CFLAGS+:} false; then :
15569 >
15570 >  case " $CFLAGS " in #(
15571 >  *" $flag "*) :
15572 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15573 >  (: CFLAGS already contains $flag) 2>&5
15574 >  ac_status=$?
15575 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15576 >  test $ac_status = 0; } ;; #(
15577 >  *) :
15578 >
15579 >     as_fn_append CFLAGS " $flag"
15580 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15581 >  (: CFLAGS="$CFLAGS") 2>&5
15582 >  ac_status=$?
15583 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15584 >  test $ac_status = 0; }
15585 >     ;;
15586 > esac
15587 >
15588 > else
15589 >
15590 >  CFLAGS=$flag
15591 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15592 >  (: CFLAGS="$CFLAGS") 2>&5
15593 >  ac_status=$?
15594 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15595 >  test $ac_status = 0; }
15596 >
15597   fi
15598 < if test "$cf_enable_openssl" = yes; then
13037 <  ENABLE_SSL_TRUE=
13038 <  ENABLE_SSL_FALSE='#'
15598 >
15599   else
15600 <  ENABLE_SSL_TRUE='#'
13041 <  ENABLE_SSL_FALSE=
15600 >  :
15601   fi
15602  
15603 + done
15604  
15605  
15606 < # Check whether --enable-assert was given.
15607 < if test "${enable_assert+set}" = set; then :
15608 <  enableval=$enable_assert; assert=$enableval
15606 >
15607 >
15608 >
15609 > for flag in -Wmissing-prototypes; do
15610 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15611 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15612 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15613 > if eval \${$as_CACHEVAR+:} false; then :
15614 >  $as_echo_n "(cached) " >&6
15615   else
15616 <  assert=no
15616 >
15617 >  ax_check_save_flags=$CFLAGS
15618 >  CFLAGS="$CFLAGS  $flag"
15619 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 > /* end confdefs.h.  */
15621 >
15622 > int
15623 > main ()
15624 > {
15625 >
15626 >  ;
15627 >  return 0;
15628 > }
15629 > _ACEOF
15630 > if ac_fn_c_try_compile "$LINENO"; then :
15631 >  eval "$as_CACHEVAR=yes"
15632 > else
15633 >  eval "$as_CACHEVAR=no"
15634   fi
15635 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636 +  CFLAGS=$ax_check_save_flags
15637 + fi
15638 + eval ac_res=\$$as_CACHEVAR
15639 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15640 + $as_echo "$ac_res" >&6; }
15641 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15642  
15643 < if test "$assert" = no; then
15643 > if ${CFLAGS+:} false; then :
15644  
15645 < $as_echo "#define NDEBUG 1" >>confdefs.h
15645 >  case " $CFLAGS " in #(
15646 >  *" $flag "*) :
15647 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15648 >  (: CFLAGS already contains $flag) 2>&5
15649 >  ac_status=$?
15650 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15651 >  test $ac_status = 0; } ;; #(
15652 >  *) :
15653 >
15654 >     as_fn_append CFLAGS " $flag"
15655 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15656 >  (: CFLAGS="$CFLAGS") 2>&5
15657 >  ac_status=$?
15658 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15659 >  test $ac_status = 0; }
15660 >     ;;
15661 > esac
15662 >
15663 > else
15664 >
15665 >  CFLAGS=$flag
15666 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15667 >  (: CFLAGS="$CFLAGS") 2>&5
15668 >  ac_status=$?
15669 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15670 >  test $ac_status = 0; }
15671 >
15672 > fi
15673  
15674 + else
15675 +  :
15676   fi
15677  
15678 + done
15679 +
15680 +
15681 +
15682 +
15683 +
15684 + for flag in -Wnested-externs; do
15685 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15686 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15687 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15688 + if eval \${$as_CACHEVAR+:} false; then :
15689 +  $as_echo_n "(cached) " >&6
15690 + else
15691 +
15692 +  ax_check_save_flags=$CFLAGS
15693 +  CFLAGS="$CFLAGS  $flag"
15694 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 + /* end confdefs.h.  */
15696 +
15697 + int
15698 + main ()
15699 + {
15700  
15701 < # Check whether --enable-small-net was given.
15702 < if test "${enable_small_net+set}" = set; then :
15703 <  enableval=$enable_small_net; small_net=$enableval
15701 >  ;
15702 >  return 0;
15703 > }
15704 > _ACEOF
15705 > if ac_fn_c_try_compile "$LINENO"; then :
15706 >  eval "$as_CACHEVAR=yes"
15707   else
15708 <  small_net=no
15708 >  eval "$as_CACHEVAR=no"
15709 > fi
15710 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 >  CFLAGS=$ax_check_save_flags
15712   fi
15713 + eval ac_res=\$$as_CACHEVAR
15714 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15715 + $as_echo "$ac_res" >&6; }
15716 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15717  
15718 + if ${CFLAGS+:} false; then :
15719  
15720 < if test "$small_net" = yes; then
15720 >  case " $CFLAGS " in #(
15721 >  *" $flag "*) :
15722 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15723 >  (: CFLAGS already contains $flag) 2>&5
15724 >  ac_status=$?
15725 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 >  test $ac_status = 0; } ;; #(
15727 >  *) :
15728  
15729 < $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
15729 >     as_fn_append CFLAGS " $flag"
15730 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15731 >  (: CFLAGS="$CFLAGS") 2>&5
15732 >  ac_status=$?
15733 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734 >  test $ac_status = 0; }
15735 >     ;;
15736 > esac
15737  
15738 + else
15739  
15740 < $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
15740 >  CFLAGS=$flag
15741 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15742 >  (: CFLAGS="$CFLAGS") 2>&5
15743 >  ac_status=$?
15744 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15745 >  test $ac_status = 0; }
15746  
15747 + fi
15748 +
15749 + else
15750 +  :
15751 + fi
15752 +
15753 + done
15754  
13076 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
15755  
15756  
13079 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
15757  
15758  
15759 < $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
15759 > for flag in -Wold-style-declaration; do
15760 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15761 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15762 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15763 > if eval \${$as_CACHEVAR+:} false; then :
15764 >  $as_echo_n "(cached) " >&6
15765 > else
15766 >
15767 >  ax_check_save_flags=$CFLAGS
15768 >  CFLAGS="$CFLAGS  $flag"
15769 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 > /* end confdefs.h.  */
15771 >
15772 > int
15773 > main ()
15774 > {
15775 >
15776 >  ;
15777 >  return 0;
15778 > }
15779 > _ACEOF
15780 > if ac_fn_c_try_compile "$LINENO"; then :
15781 >  eval "$as_CACHEVAR=yes"
15782 > else
15783 >  eval "$as_CACHEVAR=no"
15784 > fi
15785 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 >  CFLAGS=$ax_check_save_flags
15787 > fi
15788 > eval ac_res=\$$as_CACHEVAR
15789 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15790 > $as_echo "$ac_res" >&6; }
15791 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15792  
15793 + if ${CFLAGS+:} false; then :
15794  
15795 < $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
15795 >  case " $CFLAGS " in #(
15796 >  *" $flag "*) :
15797 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15798 >  (: CFLAGS already contains $flag) 2>&5
15799 >  ac_status=$?
15800 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801 >  test $ac_status = 0; } ;; #(
15802 >  *) :
15803  
15804 +     as_fn_append CFLAGS " $flag"
15805 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15806 +  (: CFLAGS="$CFLAGS") 2>&5
15807 +  ac_status=$?
15808 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 +  test $ac_status = 0; }
15810 +     ;;
15811 + esac
15812  
15813 < $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
15813 > else
15814  
15815 +  CFLAGS=$flag
15816 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15817 +  (: CFLAGS="$CFLAGS") 2>&5
15818 +  ac_status=$?
15819 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820 +  test $ac_status = 0; }
15821  
15822 < $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
15822 > fi
15823  
15824   else
15825 +  :
15826 + fi
15827  
15828 < $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
15828 > done
15829  
15830  
13098 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
15831  
15832  
13101 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
15833  
15834 + for flag in -Woverride-init; do
15835 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15836 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15837 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15838 + if eval \${$as_CACHEVAR+:} false; then :
15839 +  $as_echo_n "(cached) " >&6
15840 + else
15841  
15842 < $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
15842 >  ax_check_save_flags=$CFLAGS
15843 >  CFLAGS="$CFLAGS  $flag"
15844 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 > /* end confdefs.h.  */
15846  
15847 + int
15848 + main ()
15849 + {
15850  
15851 < $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
15851 >  ;
15852 >  return 0;
15853 > }
15854 > _ACEOF
15855 > if ac_fn_c_try_compile "$LINENO"; then :
15856 >  eval "$as_CACHEVAR=yes"
15857 > else
15858 >  eval "$as_CACHEVAR=no"
15859 > fi
15860 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 >  CFLAGS=$ax_check_save_flags
15862 > fi
15863 > eval ac_res=\$$as_CACHEVAR
15864 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15865 > $as_echo "$ac_res" >&6; }
15866 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15867  
15868 + if ${CFLAGS+:} false; then :
15869  
15870 < $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
15870 >  case " $CFLAGS " in #(
15871 >  *" $flag "*) :
15872 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15873 >  (: CFLAGS already contains $flag) 2>&5
15874 >  ac_status=$?
15875 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876 >  test $ac_status = 0; } ;; #(
15877 >  *) :
15878  
15879 +     as_fn_append CFLAGS " $flag"
15880 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15881 +  (: CFLAGS="$CFLAGS") 2>&5
15882 +  ac_status=$?
15883 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15884 +  test $ac_status = 0; }
15885 +     ;;
15886 + esac
15887  
15888 < $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
15888 > else
15889  
15890 +  CFLAGS=$flag
15891 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15892 +  (: CFLAGS="$CFLAGS") 2>&5
15893 +  ac_status=$?
15894 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15895 +  test $ac_status = 0; }
15896  
15897 < $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
15897 > fi
15898  
15899 + else
15900 +  :
15901   fi
15902  
15903 + done
15904  
13121 # Argument processing.
15905  
15906 <    desired_iopoll_mechanism="none"
15907 <    # Check whether --enable-kqueue was given.
15908 < if test "${enable_kqueue+set}" = set; then :
15909 <  enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
15906 >
15907 >
15908 >
15909 > for flag in -Wpointer-arith; do
15910 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15911 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15912 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15913 > if eval \${$as_CACHEVAR+:} false; then :
15914 >  $as_echo_n "(cached) " >&6
15915 > else
15916 >
15917 >  ax_check_save_flags=$CFLAGS
15918 >  CFLAGS="$CFLAGS  $flag"
15919 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 > /* end confdefs.h.  */
15921 >
15922 > int
15923 > main ()
15924 > {
15925 >
15926 >  ;
15927 >  return 0;
15928 > }
15929 > _ACEOF
15930 > if ac_fn_c_try_compile "$LINENO"; then :
15931 >  eval "$as_CACHEVAR=yes"
15932 > else
15933 >  eval "$as_CACHEVAR=no"
15934 > fi
15935 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 >  CFLAGS=$ax_check_save_flags
15937   fi
15938 + eval ac_res=\$$as_CACHEVAR
15939 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15940 + $as_echo "$ac_res" >&6; }
15941 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15942 +
15943 + if ${CFLAGS+:} false; then :
15944 +
15945 +  case " $CFLAGS " in #(
15946 +  *" $flag "*) :
15947 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15948 +  (: CFLAGS already contains $flag) 2>&5
15949 +  ac_status=$?
15950 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15951 +  test $ac_status = 0; } ;; #(
15952 +  *) :
15953 +
15954 +     as_fn_append CFLAGS " $flag"
15955 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15956 +  (: CFLAGS="$CFLAGS") 2>&5
15957 +  ac_status=$?
15958 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15959 +  test $ac_status = 0; }
15960 +     ;;
15961 + esac
15962 +
15963 + else
15964 +
15965 +  CFLAGS=$flag
15966 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15967 +  (: CFLAGS="$CFLAGS") 2>&5
15968 +  ac_status=$?
15969 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 +  test $ac_status = 0; }
15971  
13129  # Check whether --enable-epoll was given.
13130 if test "${enable_epoll+set}" = set; then :
13131  enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
15972   fi
15973  
15974 <  # Check whether --enable-devpoll was given.
15975 < if test "${enable_devpoll+set}" = set; then :
13136 <  enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
15974 > else
15975 >  :
15976   fi
15977  
15978 <  # Check whether --enable-rtsigio was given.
15979 < if test "${enable_rtsigio+set}" = set; then :
15980 <  enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
15978 > done
15979 >
15980 >
15981 >
15982 >
15983 >
15984 > for flag in -Wredundant-decls; do
15985 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15986 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15987 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15988 > if eval \${$as_CACHEVAR+:} false; then :
15989 >  $as_echo_n "(cached) " >&6
15990 > else
15991 >
15992 >  ax_check_save_flags=$CFLAGS
15993 >  CFLAGS="$CFLAGS  $flag"
15994 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 > /* end confdefs.h.  */
15996 >
15997 > int
15998 > main ()
15999 > {
16000 >
16001 >  ;
16002 >  return 0;
16003 > }
16004 > _ACEOF
16005 > if ac_fn_c_try_compile "$LINENO"; then :
16006 >  eval "$as_CACHEVAR=yes"
16007 > else
16008 >  eval "$as_CACHEVAR=no"
16009 > fi
16010 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 >  CFLAGS=$ax_check_save_flags
16012   fi
16013 + eval ac_res=\$$as_CACHEVAR
16014 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16015 + $as_echo "$ac_res" >&6; }
16016 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16017 +
16018 + if ${CFLAGS+:} false; then :
16019 +
16020 +  case " $CFLAGS " in #(
16021 +  *" $flag "*) :
16022 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16023 +  (: CFLAGS already contains $flag) 2>&5
16024 +  ac_status=$?
16025 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 +  test $ac_status = 0; } ;; #(
16027 +  *) :
16028 +
16029 +     as_fn_append CFLAGS " $flag"
16030 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16031 +  (: CFLAGS="$CFLAGS") 2>&5
16032 +  ac_status=$?
16033 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16034 +  test $ac_status = 0; }
16035 +     ;;
16036 + esac
16037 +
16038 + else
16039 +
16040 +  CFLAGS=$flag
16041 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16042 +  (: CFLAGS="$CFLAGS") 2>&5
16043 +  ac_status=$?
16044 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16045 +  test $ac_status = 0; }
16046  
13144  # Check whether --enable-poll was given.
13145 if test "${enable_poll+set}" = set; then :
13146  enableval=$enable_poll; desired_iopoll_mechanism="poll"
16047   fi
16048  
16049 <  # Check whether --enable-select was given.
16050 < if test "${enable_select+set}" = set; then :
13151 <  enableval=$enable_select; desired_iopoll_mechanism="select"
16049 > else
16050 >  :
16051   fi
16052  
16053 <      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13155 < $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13156 <  iopoll_mechanism_none=0
16053 > done
16054  
13158 cat >>confdefs.h <<_ACEOF
13159 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13160 _ACEOF
16055  
13162      iopoll_mechanism_kqueue=1
16056  
13164 cat >>confdefs.h <<_ACEOF
13165 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13166 _ACEOF
16057  
16058 +
16059 + for flag in -Wshadow; do
16060 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16061 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16062 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16063 + if eval \${$as_CACHEVAR+:} false; then :
16064 +  $as_echo_n "(cached) " >&6
16065 + else
16066 +
16067 +  ax_check_save_flags=$CFLAGS
16068 +  CFLAGS="$CFLAGS  $flag"
16069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070   /* end confdefs.h.  */
13170 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13172 #define kevent innocuous_kevent
16071  
16072 < /* System header to define __stub macros and hopefully few prototypes,
16073 <    which can conflict with char kevent (); below.
16074 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13177 <    <limits.h> exists even on freestanding compilers.  */
16072 > int
16073 > main ()
16074 > {
16075  
16076 < #ifdef __STDC__
16077 < # include <limits.h>
16078 < #else
16079 < # include <assert.h>
16080 < #endif
16076 >  ;
16077 >  return 0;
16078 > }
16079 > _ACEOF
16080 > if ac_fn_c_try_compile "$LINENO"; then :
16081 >  eval "$as_CACHEVAR=yes"
16082 > else
16083 >  eval "$as_CACHEVAR=no"
16084 > fi
16085 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 >  CFLAGS=$ax_check_save_flags
16087 > fi
16088 > eval ac_res=\$$as_CACHEVAR
16089 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16090 > $as_echo "$ac_res" >&6; }
16091 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16092  
16093 < #undef kevent
16093 > if ${CFLAGS+:} false; then :
16094  
16095 < /* Override any GCC internal prototype to avoid an error.
16096 <   Use char because int might match the return type of a GCC
16097 <   builtin and then its argument prototype would still apply.  */
16098 < #ifdef __cplusplus
16099 < extern "C"
16100 < #endif
16101 < char kevent ();
16102 < /* The GNU C library defines this for functions which it implements
16103 <    to always fail with ENOSYS.  Some functions are actually named
16104 <    something starting with __ and the normal name is an alias.  */
16105 < #if defined __stub_kevent || defined __stub___kevent
16106 < choke me
16107 < #endif
16095 >  case " $CFLAGS " in #(
16096 >  *" $flag "*) :
16097 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16098 >  (: CFLAGS already contains $flag) 2>&5
16099 >  ac_status=$?
16100 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16101 >  test $ac_status = 0; } ;; #(
16102 >  *) :
16103 >
16104 >     as_fn_append CFLAGS " $flag"
16105 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16106 >  (: CFLAGS="$CFLAGS") 2>&5
16107 >  ac_status=$?
16108 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16109 >  test $ac_status = 0; }
16110 >     ;;
16111 > esac
16112 >
16113 > else
16114 >
16115 >  CFLAGS=$flag
16116 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16117 >  (: CFLAGS="$CFLAGS") 2>&5
16118 >  ac_status=$?
16119 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16120 >  test $ac_status = 0; }
16121 >
16122 > fi
16123 >
16124 > else
16125 >  :
16126 > fi
16127 >
16128 > done
16129 >
16130 >
16131 >
16132 >
16133 >
16134 > for flag in -Wshift-negative-value; do
16135 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16136 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16137 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16138 > if eval \${$as_CACHEVAR+:} false; then :
16139 >  $as_echo_n "(cached) " >&6
16140 > else
16141 >
16142 >  ax_check_save_flags=$CFLAGS
16143 >  CFLAGS="$CFLAGS  $flag"
16144 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 > /* end confdefs.h.  */
16146  
16147   int
16148   main ()
16149   {
16150 < return kevent ();
16150 >
16151    ;
16152    return 0;
16153   }
16154   _ACEOF
16155 < if ac_fn_c_try_link "$LINENO"; then :
16156 <  is_kqueue_mechanism_available="yes"
16155 > if ac_fn_c_try_compile "$LINENO"; then :
16156 >  eval "$as_CACHEVAR=yes"
16157   else
16158 <  is_kqueue_mechanism_available="no"
16158 >  eval "$as_CACHEVAR=no"
16159   fi
16160 < rm -f core conftest.err conftest.$ac_objext \
16161 <    conftest$ac_exeext conftest.$ac_ext
16162 <      iopoll_mechanism_epoll=2
16160 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 >  CFLAGS=$ax_check_save_flags
16162 > fi
16163 > eval ac_res=\$$as_CACHEVAR
16164 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16165 > $as_echo "$ac_res" >&6; }
16166 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16167  
16168 < cat >>confdefs.h <<_ACEOF
16169 < #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
16170 < _ACEOF
16168 > if ${CFLAGS+:} false; then :
16169 >
16170 >  case " $CFLAGS " in #(
16171 >  *" $flag "*) :
16172 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16173 >  (: CFLAGS already contains $flag) 2>&5
16174 >  ac_status=$?
16175 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16176 >  test $ac_status = 0; } ;; #(
16177 >  *) :
16178 >
16179 >     as_fn_append CFLAGS " $flag"
16180 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16181 >  (: CFLAGS="$CFLAGS") 2>&5
16182 >  ac_status=$?
16183 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16184 >  test $ac_status = 0; }
16185 >     ;;
16186 > esac
16187 >
16188 > else
16189 >
16190 >  CFLAGS=$flag
16191 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16192 >  (: CFLAGS="$CFLAGS") 2>&5
16193 >  ac_status=$?
16194 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16195 >  test $ac_status = 0; }
16196 >
16197 > fi
16198  
13222  if test "$cross_compiling" = yes; then :
13223  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13225 as_fn_error "cannot run test program while cross compiling
13226 See \`config.log' for more details." "$LINENO" 5; }
16199   else
16200 +  :
16201 + fi
16202 +
16203 + done
16204 +
16205 +
16206 +
16207 +
16208 +
16209 + for flag in -Wsign-compare; do
16210 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16211 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16212 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16213 + if eval \${$as_CACHEVAR+:} false; then :
16214 +  $as_echo_n "(cached) " >&6
16215 + else
16216 +
16217 +  ax_check_save_flags=$CFLAGS
16218 +  CFLAGS="$CFLAGS  $flag"
16219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220   /* end confdefs.h.  */
16221  
16222 < #include <sys/epoll.h>
16223 < #include <sys/syscall.h>
16224 < #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13234 < #if !defined(__NR_epoll_create)
13235 < #if defined(__ia64__)
13236 < #define __NR_epoll_create 1243
13237 < #elif defined(__x86_64__)
13238 < #define __NR_epoll_create 214
13239 < #elif defined(__sparc64__) || defined(__sparc__)
13240 < #define __NR_epoll_create 193
13241 < #elif defined(__s390__) || defined(__m68k__)
13242 < #define __NR_epoll_create 249
13243 < #elif defined(__ppc64__) || defined(__ppc__)
13244 < #define __NR_epoll_create 236
13245 < #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13246 < #define __NR_epoll_create 224
13247 < #elif defined(__alpha__)
13248 < #define __NR_epoll_create 407
13249 < #elif defined(__sh64__)
13250 < #define __NR_epoll_create 282
13251 < #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13252 < #define __NR_epoll_create 254
13253 < #else
13254 < #error No system call numbers defined for epoll family.
13255 < #endif
13256 < #endif
13257 < _syscall1(int, epoll_create, int, size)
13258 < #endif
13259 < main() { return epoll_create(256) == -1 ? 1 : 0; }
16222 > int
16223 > main ()
16224 > {
16225  
16226 +  ;
16227 +  return 0;
16228 + }
16229   _ACEOF
16230 < if ac_fn_c_try_run "$LINENO"; then :
16231 <  is_epoll_mechanism_available="yes"
16230 > if ac_fn_c_try_compile "$LINENO"; then :
16231 >  eval "$as_CACHEVAR=yes"
16232   else
16233 <  is_epoll_mechanism_available="no"
16233 >  eval "$as_CACHEVAR=no"
16234   fi
16235 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16236 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16235 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 >  CFLAGS=$ax_check_save_flags
16237   fi
16238 + eval ac_res=\$$as_CACHEVAR
16239 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16240 + $as_echo "$ac_res" >&6; }
16241 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16242  
16243 <      iopoll_mechanism_devpoll=3
16243 > if ${CFLAGS+:} false; then :
16244 >
16245 >  case " $CFLAGS " in #(
16246 >  *" $flag "*) :
16247 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16248 >  (: CFLAGS already contains $flag) 2>&5
16249 >  ac_status=$?
16250 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16251 >  test $ac_status = 0; } ;; #(
16252 >  *) :
16253 >
16254 >     as_fn_append CFLAGS " $flag"
16255 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16256 >  (: CFLAGS="$CFLAGS") 2>&5
16257 >  ac_status=$?
16258 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259 >  test $ac_status = 0; }
16260 >     ;;
16261 > esac
16262 >
16263 > else
16264 >
16265 >  CFLAGS=$flag
16266 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16267 >  (: CFLAGS="$CFLAGS") 2>&5
16268 >  ac_status=$?
16269 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16270 >  test $ac_status = 0; }
16271 >
16272 > fi
16273 >
16274 > else
16275 >  :
16276 > fi
16277 >
16278 > done
16279  
13273 cat >>confdefs.h <<_ACEOF
13274 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13275 _ACEOF
16280  
16281 +
16282 +
16283 +
16284 + for flag in -Wtype-limits; do
16285 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16286 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16287 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16288 + if eval \${$as_CACHEVAR+:} false; then :
16289 +  $as_echo_n "(cached) " >&6
16290 + else
16291 +
16292 +  ax_check_save_flags=$CFLAGS
16293 +  CFLAGS="$CFLAGS  $flag"
16294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295   /* end confdefs.h.  */
16296 < #include <devpoll.h>
16296 >
16297   int
16298   main ()
16299   {
# Line 13286 | Line 16303 | main ()
16303   }
16304   _ACEOF
16305   if ac_fn_c_try_compile "$LINENO"; then :
16306 <  is_devpoll_mechanism_available="yes"
16306 >  eval "$as_CACHEVAR=yes"
16307   else
16308 <  is_devpoll_mechanism_available="no"
16308 >  eval "$as_CACHEVAR=no"
16309   fi
16310   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16311 >  CFLAGS=$ax_check_save_flags
16312 > fi
16313 > eval ac_res=\$$as_CACHEVAR
16314 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16315 > $as_echo "$ac_res" >&6; }
16316 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16317  
16318 < $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
16318 > if ${CFLAGS+:} false; then :
16319  
16320 <  fi
16320 >  case " $CFLAGS " in #(
16321 >  *" $flag "*) :
16322 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16323 >  (: CFLAGS already contains $flag) 2>&5
16324 >  ac_status=$?
16325 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16326 >  test $ac_status = 0; } ;; #(
16327 >  *) :
16328 >
16329 >     as_fn_append CFLAGS " $flag"
16330 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16331 >  (: CFLAGS="$CFLAGS") 2>&5
16332 >  ac_status=$?
16333 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16334 >  test $ac_status = 0; }
16335 >     ;;
16336 > esac
16337 >
16338 > else
16339 >
16340 >  CFLAGS=$flag
16341 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16342 >  (: CFLAGS="$CFLAGS") 2>&5
16343 >  ac_status=$?
16344 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16345 >  test $ac_status = 0; }
16346 >
16347 > fi
16348 >
16349 > else
16350 >  :
16351 > fi
16352 >
16353 > done
16354 >
16355 >
16356 >
16357 >
16358 >
16359 > for flag in -Wundef; do
16360 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16361 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16362 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16363 > if eval \${$as_CACHEVAR+:} false; then :
16364 >  $as_echo_n "(cached) " >&6
16365 > else
16366 >
16367 >  ax_check_save_flags=$CFLAGS
16368 >  CFLAGS="$CFLAGS  $flag"
16369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370   /* end confdefs.h.  */
16371 < #include <sys/devpoll.h>
16371 >
16372   int
16373   main ()
16374   {
# Line 13308 | Line 16378 | main ()
16378   }
16379   _ACEOF
16380   if ac_fn_c_try_compile "$LINENO"; then :
16381 <  is_devpoll_mechanism_available="yes"
16381 >  eval "$as_CACHEVAR=yes"
16382   else
16383 <  is_devpoll_mechanism_available="no"
16383 >  eval "$as_CACHEVAR=no"
16384   fi
16385   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 <  if test "$is_devpoll_mechanism_available" = "yes" ; then
16386 >  CFLAGS=$ax_check_save_flags
16387 > fi
16388 > eval ac_res=\$$as_CACHEVAR
16389 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16390 > $as_echo "$ac_res" >&6; }
16391 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16392  
16393 < $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
16393 > if ${CFLAGS+:} false; then :
16394  
16395 <  fi
16396 <      iopoll_mechanism_rtsigio=4
16395 >  case " $CFLAGS " in #(
16396 >  *" $flag "*) :
16397 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16398 >  (: CFLAGS already contains $flag) 2>&5
16399 >  ac_status=$?
16400 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16401 >  test $ac_status = 0; } ;; #(
16402 >  *) :
16403  
16404 < cat >>confdefs.h <<_ACEOF
16405 < #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
16406 < _ACEOF
16404 >     as_fn_append CFLAGS " $flag"
16405 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16406 >  (: CFLAGS="$CFLAGS") 2>&5
16407 >  ac_status=$?
16408 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16409 >  test $ac_status = 0; }
16410 >     ;;
16411 > esac
16412  
13327  if test "$cross_compiling" = yes; then :
13328  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error "cannot run test program while cross compiling
13331 See \`config.log' for more details." "$LINENO" 5; }
16413   else
16414 +
16415 +  CFLAGS=$flag
16416 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16417 +  (: CFLAGS="$CFLAGS") 2>&5
16418 +  ac_status=$?
16419 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16420 +  test $ac_status = 0; }
16421 +
16422 + fi
16423 +
16424 + else
16425 +  :
16426 + fi
16427 +
16428 + done
16429 +
16430 +
16431 +
16432 +
16433 +
16434 + for flag in -Wuninitialized; do
16435 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16436 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16437 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16438 + if eval \${$as_CACHEVAR+:} false; then :
16439 +  $as_echo_n "(cached) " >&6
16440 + else
16441 +
16442 +  ax_check_save_flags=$CFLAGS
16443 +  CFLAGS="$CFLAGS  $flag"
16444    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445   /* end confdefs.h.  */
16446  
13336 #include <fcntl.h>
13337 #ifdef F_SETSIG
13338 main () { return 0; } /* F_SETSIG defined */
13339 #else
13340 main () { return 1; } /* F_SETSIG not defined */
13341 #endif
13342
16447   int
16448   main ()
16449   {
# Line 13348 | Line 16452 | main ()
16452    return 0;
16453   }
16454   _ACEOF
16455 < if ac_fn_c_try_run "$LINENO"; then :
16456 <  is_rtsigio_mechanism_available="yes"
16455 > if ac_fn_c_try_compile "$LINENO"; then :
16456 >  eval "$as_CACHEVAR=yes"
16457   else
16458 <  is_rtsigio_mechanism_available="no"
16458 >  eval "$as_CACHEVAR=no"
16459   fi
16460 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16461 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
16460 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 >  CFLAGS=$ax_check_save_flags
16462   fi
16463 + eval ac_res=\$$as_CACHEVAR
16464 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16465 + $as_echo "$ac_res" >&6; }
16466 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16467  
16468 <      iopoll_mechanism_poll=5
16468 > if ${CFLAGS+:} false; then :
16469  
16470 < cat >>confdefs.h <<_ACEOF
16471 < #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
16472 < _ACEOF
16470 >  case " $CFLAGS " in #(
16471 >  *" $flag "*) :
16472 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16473 >  (: CFLAGS already contains $flag) 2>&5
16474 >  ac_status=$?
16475 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16476 >  test $ac_status = 0; } ;; #(
16477 >  *) :
16478 >
16479 >     as_fn_append CFLAGS " $flag"
16480 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16481 >  (: CFLAGS="$CFLAGS") 2>&5
16482 >  ac_status=$?
16483 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16484 >  test $ac_status = 0; }
16485 >     ;;
16486 > esac
16487 >
16488 > else
16489 >
16490 >  CFLAGS=$flag
16491 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16492 >  (: CFLAGS="$CFLAGS") 2>&5
16493 >  ac_status=$?
16494 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16495 >  test $ac_status = 0; }
16496  
16497 + fi
16498 +
16499 + else
16500 +  :
16501 + fi
16502 +
16503 + done
16504 +
16505 +
16506 +
16507 +
16508 +
16509 + for flag in -Wwrite-strings; do
16510 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16511 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16512 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16513 + if eval \${$as_CACHEVAR+:} false; then :
16514 +  $as_echo_n "(cached) " >&6
16515 + else
16516 +
16517 +  ax_check_save_flags=$CFLAGS
16518 +  CFLAGS="$CFLAGS  $flag"
16519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520   /* end confdefs.h.  */
13368 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13369   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13370 #define poll innocuous_poll
16521  
16522 < /* System header to define __stub macros and hopefully few prototypes,
16523 <    which can conflict with char poll (); below.
16524 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13375 <    <limits.h> exists even on freestanding compilers.  */
16522 > int
16523 > main ()
16524 > {
16525  
16526 < #ifdef __STDC__
16527 < # include <limits.h>
16528 < #else
16529 < # include <assert.h>
16530 < #endif
16526 >  ;
16527 >  return 0;
16528 > }
16529 > _ACEOF
16530 > if ac_fn_c_try_compile "$LINENO"; then :
16531 >  eval "$as_CACHEVAR=yes"
16532 > else
16533 >  eval "$as_CACHEVAR=no"
16534 > fi
16535 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536 >  CFLAGS=$ax_check_save_flags
16537 > fi
16538 > eval ac_res=\$$as_CACHEVAR
16539 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16540 > $as_echo "$ac_res" >&6; }
16541 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16542  
16543 < #undef poll
16543 > if ${CFLAGS+:} false; then :
16544 >
16545 >  case " $CFLAGS " in #(
16546 >  *" $flag "*) :
16547 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16548 >  (: CFLAGS already contains $flag) 2>&5
16549 >  ac_status=$?
16550 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 >  test $ac_status = 0; } ;; #(
16552 >  *) :
16553 >
16554 >     as_fn_append CFLAGS " $flag"
16555 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16556 >  (: CFLAGS="$CFLAGS") 2>&5
16557 >  ac_status=$?
16558 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16559 >  test $ac_status = 0; }
16560 >     ;;
16561 > esac
16562 >
16563 > else
16564 >
16565 >  CFLAGS=$flag
16566 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16567 >  (: CFLAGS="$CFLAGS") 2>&5
16568 >  ac_status=$?
16569 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16570 >  test $ac_status = 0; }
16571 >
16572 > fi
16573 >
16574 > else
16575 >  :
16576 > fi
16577 >
16578 > done
16579 >
16580 >
16581 > fi
16582 >
16583 >
16584 >  # Check whether --enable-efence was given.
16585 > if test "${enable_efence+set}" = set; then :
16586 >  enableval=$enable_efence; efence="$enableval"
16587 > else
16588 >  efence="no"
16589 > fi
16590 >
16591 >
16592 >  if test "$efence" = "yes"; then :
16593 >
16594 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
16595 > $as_echo_n "checking for library containing EF_Print... " >&6; }
16596 > if ${ac_cv_search_EF_Print+:} false; then :
16597 >  $as_echo_n "(cached) " >&6
16598 > else
16599 >  ac_func_search_save_LIBS=$LIBS
16600 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 > /* end confdefs.h.  */
16602  
16603   /* Override any GCC internal prototype to avoid an error.
16604     Use char because int might match the return type of a GCC
# Line 13388 | Line 16606 | _ACEOF
16606   #ifdef __cplusplus
16607   extern "C"
16608   #endif
16609 < char poll ();
13392 < /* The GNU C library defines this for functions which it implements
13393 <    to always fail with ENOSYS.  Some functions are actually named
13394 <    something starting with __ and the normal name is an alias.  */
13395 < #if defined __stub_poll || defined __stub___poll
13396 < choke me
13397 < #endif
13398 <
16609 > char EF_Print ();
16610   int
16611   main ()
16612   {
16613 < return poll ();
16613 > return EF_Print ();
16614    ;
16615    return 0;
16616   }
16617   _ACEOF
16618 < if ac_fn_c_try_link "$LINENO"; then :
16619 <  is_poll_mechanism_available="yes"
16620 < else
16621 <  is_poll_mechanism_available="no"
16618 > for ac_lib in '' efence; do
16619 >  if test -z "$ac_lib"; then
16620 >    ac_res="none required"
16621 >  else
16622 >    ac_res=-l$ac_lib
16623 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16624 >  fi
16625 >  if ac_fn_c_try_link "$LINENO"; then :
16626 >  ac_cv_search_EF_Print=$ac_res
16627   fi
16628   rm -f core conftest.err conftest.$ac_objext \
16629 <    conftest$ac_exeext conftest.$ac_ext
16630 <      iopoll_mechanism_select=6
16629 >    conftest$ac_exeext
16630 >  if ${ac_cv_search_EF_Print+:} false; then :
16631 >  break
16632 > fi
16633 > done
16634 > if ${ac_cv_search_EF_Print+:} false; then :
16635  
16636 < cat >>confdefs.h <<_ACEOF
16637 < #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
16638 < _ACEOF
16636 > else
16637 >  ac_cv_search_EF_Print=no
16638 > fi
16639 > rm conftest.$ac_ext
16640 > LIBS=$ac_func_search_save_LIBS
16641 > fi
16642 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
16643 > $as_echo "$ac_cv_search_EF_Print" >&6; }
16644 > ac_res=$ac_cv_search_EF_Print
16645 > if test "$ac_res" != no; then :
16646 >  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16647 >
16648 > else
16649 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16650 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16651 > as_fn_error $? "Electric Fence 'efence' library not found
16652 > See \`config.log' for more details" "$LINENO" 5; }
16653 > fi
16654 >
16655 >
16656 > fi
16657 >
16658 >
16659 > # Check whether --enable-openssl was given.
16660 > if test "${enable_openssl+set}" = set; then :
16661 >  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16662 > else
16663 >   cf_enable_openssl="auto"
16664 > fi
16665 >
16666 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16667 > $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16668 > if test "$cf_enable_openssl" != "no"; then
16669 >  cf_openssl_basedir=""
16670 >  if test "$cf_enable_openssl" != "auto" &&
16671 >     test "$cf_enable_openssl" != "yes"; then
16672 >          cf_openssl_basedir="${cf_enable_openssl}"
16673 >  else
16674 >        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16675 >                /opt /opt/openssl /usr/local/openssl; do
16676 >      if test -f "${dirs}/include/openssl/opensslv.h"; then
16677 >        cf_openssl_basedir="${dirs}"
16678 >        break
16679 >      fi
16680 >    done
16681 >    unset dirs
16682 >  fi
16683 >
16684 >    if test ! -z "$cf_openssl_basedir"; then
16685 >    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16686 >      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16687 >      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16688 >    else
16689 >                  cf_openssl_basedir=""
16690 >    fi
16691 >  else
16692 >                            if test -f "/usr/include/openssl/opensslv.h"; then
16693 >      cf_openssl_basedir="/usr"
16694 >    fi
16695 >  fi
16696 >
16697 >      if test ! -z "$cf_openssl_basedir"; then
16698 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16699 > $as_echo "$cf_openssl_basedir" >&6; }
16700 >    cf_enable_openssl="yes"
16701 >  else
16702 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16703 > $as_echo "not found. Please check your path." >&6; }
16704 >    cf_enable_openssl="no"
16705 >  fi
16706 >  unset cf_openssl_basedir
16707 > else
16708 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16709 > $as_echo "disabled" >&6; }
16710 > fi
16711  
16712 + if test "$cf_enable_openssl" != "no"; then :
16713 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
16714 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
16715 +  if test "$cross_compiling" = yes; then :
16716 +  cf_openssl_version_ok=no
16717 + else
16718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719   /* end confdefs.h.  */
13422 /* Define select to an innocuous variant, in case <limits.h> declares select.
13423   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13424 #define select innocuous_select
16720  
13426 /* System header to define __stub macros and hopefully few prototypes,
13427    which can conflict with char select (); below.
13428    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13429    <limits.h> exists even on freestanding compilers.  */
16721  
16722 < #ifdef __STDC__
16723 < # include <limits.h>
16724 < #else
16725 < # include <assert.h>
16726 < #endif
16722 >    #include <openssl/opensslv.h>
16723 >    #include <stdlib.h>
16724 > int
16725 > main ()
16726 > {
16727 > exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
16728 >  ;
16729 >  return 0;
16730 > }
16731 > _ACEOF
16732 > if ac_fn_c_try_run "$LINENO"; then :
16733 >  cf_openssl_version_ok=yes
16734 > else
16735 >  cf_openssl_version_ok=no
16736 > fi
16737 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16738 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16739 > fi
16740  
16741 < #undef select
16741 >
16742 >  if test "$cf_openssl_version_ok" = "yes"; then :
16743 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16744 > $as_echo "found" >&6; }
16745 >
16746 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16747 > $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16748 > if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16749 >  $as_echo_n "(cached) " >&6
16750 > else
16751 >  ac_check_lib_save_LIBS=$LIBS
16752 > LIBS="-lcrypto  $LIBS"
16753 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 > /* end confdefs.h.  */
16755  
16756   /* Override any GCC internal prototype to avoid an error.
16757     Use char because int might match the return type of a GCC
# Line 13442 | Line 16759 | _ACEOF
16759   #ifdef __cplusplus
16760   extern "C"
16761   #endif
16762 < char select ();
13446 < /* The GNU C library defines this for functions which it implements
13447 <    to always fail with ENOSYS.  Some functions are actually named
13448 <    something starting with __ and the normal name is an alias.  */
13449 < #if defined __stub_select || defined __stub___select
13450 < choke me
13451 < #endif
13452 <
16762 > char RSA_free ();
16763   int
16764   main ()
16765   {
16766 < return select ();
16766 > return RSA_free ();
16767    ;
16768    return 0;
16769   }
16770   _ACEOF
16771   if ac_fn_c_try_link "$LINENO"; then :
16772 <  is_select_mechanism_available="yes"
16772 >  ac_cv_lib_crypto_RSA_free=yes
16773   else
16774 <  is_select_mechanism_available="no"
16774 >  ac_cv_lib_crypto_RSA_free=no
16775   fi
16776   rm -f core conftest.err conftest.$ac_objext \
16777      conftest$ac_exeext conftest.$ac_ext
16778 <      optimal_iopoll_mechanism="none"
16779 <  for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
16780 <    eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
16781 <    if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
16782 <      optimal_iopoll_mechanism="$mechanism"
16783 <      break
16784 <    fi
13475 <  done
13476 <      if test "$desired_iopoll_mechanism" = "none" ; then
13477 <    if test "$optimal_iopoll_mechanism" = "none" ; then
13478 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13479 < $as_echo "none" >&6; }
13480 <      as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13481 <    else
13482 <      selected_iopoll_mechanism=$optimal_iopoll_mechanism
13483 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13484 < $as_echo "$selected_iopoll_mechanism" >&6; }
13485 <    fi
13486 <  else
13487 <    eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13488 <    if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13489 <      selected_iopoll_mechanism=$desired_iopoll_mechanism
13490 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13491 < $as_echo "$selected_iopoll_mechanism" >&6; }
13492 <    else
13493 <      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13494 < $as_echo "none" >&6; }
13495 <      as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13496 <    fi
13497 <  fi
13498 <      eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13499 <
13500 < cat >>confdefs.h <<_ACEOF
13501 < #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
16778 > LIBS=$ac_check_lib_save_LIBS
16779 > fi
16780 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16781 > $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16782 > if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16783 >  cat >>confdefs.h <<_ACEOF
16784 > #define HAVE_LIBCRYPTO 1
16785   _ACEOF
16786  
16787 +  LIBS="-lcrypto $LIBS"
16788  
16789 + fi
16790  
16791 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16792 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16793 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16794 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16795 +  $as_echo_n "(cached) " >&6
16796 + else
16797 +  ac_check_lib_save_LIBS=$LIBS
16798 + LIBS="-lssl  $LIBS"
16799 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800 + /* end confdefs.h.  */
16801  
16802 < # Check whether --with-nicklen was given.
16803 < if test "${with_nicklen+set}" = set; then :
16804 <  withval=$with_nicklen; nicklen="$withval"
16802 > /* Override any GCC internal prototype to avoid an error.
16803 >   Use char because int might match the return type of a GCC
16804 >   builtin and then its argument prototype would still apply.  */
16805 > #ifdef __cplusplus
16806 > extern "C"
16807 > #endif
16808 > char SSL_connect ();
16809 > int
16810 > main ()
16811 > {
16812 > return SSL_connect ();
16813 >  ;
16814 >  return 0;
16815 > }
16816 > _ACEOF
16817 > if ac_fn_c_try_link "$LINENO"; then :
16818 >  ac_cv_lib_ssl_SSL_connect=yes
16819   else
16820 <  nicklen="9"
16820 >  ac_cv_lib_ssl_SSL_connect=no
16821   fi
16822 <
16823 <
16824 < cat >>confdefs.h <<_ACEOF
16825 < #define NICKLEN ($nicklen+1)
16822 > rm -f core conftest.err conftest.$ac_objext \
16823 >    conftest$ac_exeext conftest.$ac_ext
16824 > LIBS=$ac_check_lib_save_LIBS
16825 > fi
16826 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16827 > $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16828 > if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16829 >  cat >>confdefs.h <<_ACEOF
16830 > #define HAVE_LIBSSL 1
16831   _ACEOF
16832  
16833 +  LIBS="-lssl $LIBS"
16834  
16835 + fi
16836  
16837 + fi
16838  
13522 # Check whether --with-topiclen was given.
13523 if test "${with_topiclen+set}" = set; then :
13524  withval=$with_topiclen; topiclen="$withval"
16839   else
16840 <  topiclen="160"
16840 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16841 > $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16842 >    cf_enable_openssl="no"
16843 > fi
16844   fi
16845  
16846  
16847 < cat >>confdefs.h <<_ACEOF
16848 < #define TOPICLEN ($topiclen+1)
16849 < _ACEOF
16847 > # Check whether --enable-gnutls was given.
16848 > if test "${enable_gnutls+set}" = set; then :
16849 >  enableval=$enable_gnutls;  cf_enable_gnutls=$enableval
16850 > else
16851 >   cf_enable_gnutls="auto"
16852 > fi
16853  
16854  
16855 + if test "$cf_enable_openssl" != "auto" &&
16856 +   test "$cf_enable_openssl" != "yes"; then
16857 +  if test "$cf_enable_gnutls" != "no"; then
16858  
16859 +    ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
16860 + if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
16861  
16862 < # Check whether --with-syslog-facility was given.
16863 < if test "${with_syslog_facility+set}" = set; then :
16864 <  withval=$with_syslog_facility; syslog_facility="$withval"
16862 >      if test "$cross_compiling" = yes; then :
16863 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16864 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16865 > as_fn_error $? "cannot run test program while cross compiling
16866 > See \`config.log' for more details" "$LINENO" 5; }
16867   else
16868 <  syslog_facility="LOG_LOCAL4"
16869 < fi
16868 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 > /* end confdefs.h.  */
16870  
16871  
16872 < cat >>confdefs.h <<_ACEOF
16873 < #define LOG_FACILITY $syslog_facility
16874 < _ACEOF
16875 <
16872 >          #include <gnutls/gnutls.h>
16873 >          #include <stdlib.h>
16874 > int
16875 > main ()
16876 > {
16877  
16878 +          exit(!(GNUTLS_VERSION_NUMBER >= 0x030308));
16879 +  ;
16880 +  return 0;
16881 + }
16882 + _ACEOF
16883 + if ac_fn_c_try_run "$LINENO"; then :
16884 +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
16885 + $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
16886 + if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
16887 +  $as_echo_n "(cached) " >&6
16888 + else
16889 +  ac_check_lib_save_LIBS=$LIBS
16890 + LIBS="-lgnutls  $LIBS"
16891 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 + /* end confdefs.h.  */
16893  
16894 <  # Check whether --enable-efnet was given.
16895 < if test "${enable_efnet+set}" = set; then :
16896 <  enableval=$enable_efnet; efnet="$enableval"
16894 > /* Override any GCC internal prototype to avoid an error.
16895 >   Use char because int might match the return type of a GCC
16896 >   builtin and then its argument prototype would still apply.  */
16897 > #ifdef __cplusplus
16898 > extern "C"
16899 > #endif
16900 > char gnutls_init ();
16901 > int
16902 > main ()
16903 > {
16904 > return gnutls_init ();
16905 >  ;
16906 >  return 0;
16907 > }
16908 > _ACEOF
16909 > if ac_fn_c_try_link "$LINENO"; then :
16910 >  ac_cv_lib_gnutls_gnutls_init=yes
16911   else
16912 <  efnet="no"
16912 >  ac_cv_lib_gnutls_gnutls_init=no
16913   fi
16914 + rm -f core conftest.err conftest.$ac_objext \
16915 +    conftest$ac_exeext conftest.$ac_ext
16916 + LIBS=$ac_check_lib_save_LIBS
16917 + fi
16918 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
16919 + $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
16920 + if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
16921 +  cat >>confdefs.h <<_ACEOF
16922 + #define HAVE_LIBGNUTLS 1
16923 + _ACEOF
16924  
16925 <  if test "$efnet" = "yes" ; then
13559 <                use_efnet="yes"
13560 <
13561 < $as_echo "#define EFNET 1" >>confdefs.h
13562 <
13563 <
13564 < $as_echo "#define TS5_ONLY 1" >>confdefs.h
16925 >  LIBS="-lgnutls $LIBS"
16926  
16927 <        else
16927 > fi
16928  
16929 < $as_echo "#define INVARIANTS 1" >>confdefs.h
16929 > fi
16930 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16931 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
16932 > fi
16933  
13570                use_efnet="no"
13571  fi
13572   if test "$use_efnet" = "yes"; then
13573  EFNET_TRUE=
13574  EFNET_FALSE='#'
13575 else
13576  EFNET_TRUE='#'
13577  EFNET_FALSE=
16934   fi
16935  
16936  
16937  
16938 <  # Check whether --enable-halfops was given.
16939 < if test "${enable_halfops+set}" = set; then :
16940 <  enableval=$enable_halfops; halfops="$enableval"
16938 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS 3.3.8 and above" >&5
16939 > $as_echo_n "checking for GnuTLS 3.3.8 and above... " >&6; }
16940 >    if test "$ac_cv_lib_gnutls_gnutls_init" = "yes"; then :
16941 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16942 > $as_echo "found" >&6; }
16943   else
16944 <  halfops="no"
16944 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - GnuTLS support disabled" >&5
16945 > $as_echo "no - GnuTLS support disabled" >&6; }
16946   fi
16947  
13589  if test "$halfops" = "yes" ; then
13590
13591 $as_echo "#define HALFOPS 1" >>confdefs.h
13592
16948    fi
16949 + fi
16950  
16951  
16952 <  # Check whether --enable-debugging was given.
13597 < if test "${enable_debugging+set}" = set; then :
13598 <  enableval=$enable_debugging; debugging="$enableval"
13599 < else
13600 <  debugging="no"
13601 < fi
16952 > # Disable -Wformat-truncation
16953  
13603  if test "$debugging" = "yes" ; then
16954  
13605 $as_echo "#define DEBUG 1" >>confdefs.h
16955  
13607    CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13608  else
16956  
16957 < $as_echo "#define NDEBUG 1" >>confdefs.h
16957 > for flag in -Wno-format-truncation; do
16958 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16959 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16960 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16961 > if eval \${$as_CACHEVAR+:} false; then :
16962 >  $as_echo_n "(cached) " >&6
16963 > else
16964  
16965 <  fi
16965 >  ax_check_save_flags=$CFLAGS
16966 >  CFLAGS="$CFLAGS  $flag"
16967 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 > /* end confdefs.h.  */
16969  
16970 + int
16971 + main ()
16972 + {
16973  
16974 <  # Check whether --enable-warnings was given.
16975 < if test "${enable_warnings+set}" = set; then :
16976 <  enableval=$enable_warnings; warnings="$enableval"
16974 >  ;
16975 >  return 0;
16976 > }
16977 > _ACEOF
16978 > if ac_fn_c_try_compile "$LINENO"; then :
16979 >  eval "$as_CACHEVAR=yes"
16980   else
16981 <  warnings="no"
16981 >  eval "$as_CACHEVAR=no"
16982 > fi
16983 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 >  CFLAGS=$ax_check_save_flags
16985   fi
16986 + eval ac_res=\$$as_CACHEVAR
16987 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16988 + $as_echo "$ac_res" >&6; }
16989 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16990  
16991 <  if test "$warnings" = "yes" ; then
13623 <    CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused"
13624 <  fi
16991 > if ${CFLAGS+:} false; then :
16992  
16993 +  case " $CFLAGS " in #(
16994 +  *" $flag "*) :
16995 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16996 +  (: CFLAGS already contains $flag) 2>&5
16997 +  ac_status=$?
16998 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16999 +  test $ac_status = 0; } ;; #(
17000 +  *) :
17001  
17002 <  for ac_header in syslog.h sys/syslog.h
17003 < do :
17004 <  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17005 < ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17006 < eval as_val=\$$as_ac_Header
17007 <   if test "x$as_val" = x""yes; then :
17008 <  cat >>confdefs.h <<_ACEOF
17009 < #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13635 < _ACEOF
17002 >     as_fn_append CFLAGS " $flag"
17003 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17004 >  (: CFLAGS="$CFLAGS") 2>&5
17005 >  ac_status=$?
17006 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17007 >  test $ac_status = 0; }
17008 >     ;;
17009 > esac
17010  
17011 < fi
17011 > else
17012  
17013 < done
17013 >  CFLAGS=$flag
17014 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17015 >  (: CFLAGS="$CFLAGS") 2>&5
17016 >  ac_status=$?
17017 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17018 >  test $ac_status = 0; }
17019  
13641  # Check whether --enable-syslog was given.
13642 if test "${enable_syslog+set}" = set; then :
13643  enableval=$enable_syslog; syslog="$enableval"
13644 else
13645  syslog="no"
17020   fi
17021  
17022 <  if test "$enableval" != "no" ; then
17023 <    for option in $enableval ; do
17024 <      case "$option" in
13651 <        users)
13652 < $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13653 < ;;
13654 <        oper)
13655 < $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13656 < ;;
13657 <        yes) : ;;
13658 <        *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13659 <      esac
13660 <    done
13661 <
13662 < $as_echo "#define USE_SYSLOG 1" >>confdefs.h
17022 > else
17023 >  :
17024 > fi
17025  
17026 <  fi
17026 > done
17027  
17028  
17029  
# Line 13750 | Line 17112 | _ACEOF
17112    test "$exec_prefix_NONE" && exec_prefix=NONE
17113  
17114  
17115 < ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile lib/Makefile lib/pcre/Makefile tools/Makefile"
17115 > 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"
17116  
17117  
17118   cat >confcache <<\_ACEOF
# Line 13817 | Line 17179 | $as_echo "$as_me: WARNING: cache variabl
17179       :end' >>confcache
17180   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17181    if test -w "$cache_file"; then
17182 <    test "x$cache_file" != "x/dev/null" &&
17182 >    if test "x$cache_file" != "x/dev/null"; then
17183        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17184   $as_echo "$as_me: updating cache $cache_file" >&6;}
17185 <    cat confcache >$cache_file
17185 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
17186 >        cat confcache >"$cache_file"
17187 >      else
17188 >        case $cache_file in #(
17189 >        */* | ?:*)
17190 >          mv -f confcache "$cache_file"$$ &&
17191 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
17192 >        *)
17193 >          mv -f confcache "$cache_file" ;;
17194 >        esac
17195 >      fi
17196 >    fi
17197    else
17198      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17199   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 13836 | Line 17209 | DEFS=-DHAVE_CONFIG_H
17209  
17210   ac_libobjs=
17211   ac_ltlibobjs=
17212 + U=
17213   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17214    # 1. Remove the extension, and $U if already installed.
17215    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 13850 | Line 17224 | LIBOBJS=$ac_libobjs
17224   LTLIBOBJS=$ac_ltlibobjs
17225  
17226  
17227 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17228 + $as_echo_n "checking that generated files are newer than configure... " >&6; }
17229 +   if test -n "$am_sleep_pid"; then
17230 +     # Hide warnings about reused PIDs.
17231 +     wait $am_sleep_pid 2>/dev/null
17232 +   fi
17233 +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17234 + $as_echo "done" >&6; }
17235   if test -n "$EXEEXT"; then
17236    am__EXEEXT_TRUE=
17237    am__EXEEXT_FALSE='#'
# Line 13859 | Line 17241 | else
17241   fi
17242  
17243   if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17244 <  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17244 >  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17245   Usually this means the macro was only invoked conditionally." "$LINENO" 5
17246   fi
17247   if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17248 <  as_fn_error "conditional \"AMDEP\" was never defined.
17248 >  as_fn_error $? "conditional \"AMDEP\" was never defined.
17249   Usually this means the macro was only invoked conditionally." "$LINENO" 5
17250   fi
17251   if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17252 <  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17252 >  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17253   Usually this means the macro was only invoked conditionally." "$LINENO" 5
17254   fi
17255   if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17256 <  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
17256 >  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
17257   Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258   fi
17259   if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17260 <  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
17260 >  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
17261   Usually this means the macro was only invoked conditionally." "$LINENO" 5
17262   fi
17263   LT_CONFIG_H=config.h
# Line 13896 | Line 17278 | LT_CONFIG_H=config.h
17278  
17279  
17280  
13899 if test -z "${HAVE_CRYPT_TRUE}" && test -z "${HAVE_CRYPT_FALSE}"; then
13900  as_fn_error "conditional \"HAVE_CRYPT\" was never defined.
13901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13902 fi
13903 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13904  as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13906 fi
13907 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13908  as_fn_error "conditional \"EFNET\" was never defined.
13909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13910 fi
17281  
17282 < : ${CONFIG_STATUS=./config.status}
17282 > : "${CONFIG_STATUS=./config.status}"
17283   ac_write_fail=0
17284   ac_clean_files_save=$ac_clean_files
17285   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 14010 | Line 17380 | fi
17380   IFS=" ""        $as_nl"
17381  
17382   # Find who we are.  Look in the path if we contain no directory separator.
17383 + as_myself=
17384   case $0 in #((
17385    *[\\/]* ) as_myself=$0 ;;
17386    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 14055 | Line 17426 | export LANGUAGE
17426   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17427  
17428  
17429 < # as_fn_error ERROR [LINENO LOG_FD]
17430 < # ---------------------------------
17429 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
17430 > # ----------------------------------------
17431   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17432   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17433 < # script with status $?, using 1 if that was 0.
17433 > # script with STATUS, using 1 if that was 0.
17434   as_fn_error ()
17435   {
17436 <  as_status=$?; test $as_status -eq 0 && as_status=1
17437 <  if test "$3"; then
17438 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17439 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17436 >  as_status=$1; test $as_status -eq 0 && as_status=1
17437 >  if test "$4"; then
17438 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17439 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17440    fi
17441 <  $as_echo "$as_me: error: $1" >&2
17441 >  $as_echo "$as_me: error: $2" >&2
17442    as_fn_exit $as_status
17443   } # as_fn_error
17444  
# Line 14205 | Line 17576 | if (echo >conf$$.file) 2>/dev/null; then
17576      # ... but there are two gotchas:
17577      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17578      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17579 <    # In both cases, we have to default to `cp -p'.
17579 >    # In both cases, we have to default to `cp -pR'.
17580      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17581 <      as_ln_s='cp -p'
17581 >      as_ln_s='cp -pR'
17582    elif ln conf$$.file conf$$ 2>/dev/null; then
17583      as_ln_s=ln
17584    else
17585 <    as_ln_s='cp -p'
17585 >    as_ln_s='cp -pR'
17586    fi
17587   else
17588 <  as_ln_s='cp -p'
17588 >  as_ln_s='cp -pR'
17589   fi
17590   rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17591   rmdir conf$$.dir 2>/dev/null
# Line 14263 | Line 17634 | $as_echo X"$as_dir" |
17634        test -d "$as_dir" && break
17635      done
17636      test -z "$as_dirs" || eval "mkdir $as_dirs"
17637 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17637 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17638  
17639  
17640   } # as_fn_mkdir_p
# Line 14274 | Line 17645 | else
17645    as_mkdir_p=false
17646   fi
17647  
17648 < if test -x / >/dev/null 2>&1; then
17649 <  as_test_x='test -x'
17650 < else
17651 <  if ls -dL / >/dev/null 2>&1; then
17652 <    as_ls_L_option=L
17653 <  else
17654 <    as_ls_L_option=
17655 <  fi
17656 <  as_test_x='
17657 <    eval sh -c '\''
14287 <      if test -d "$1"; then
14288 <        test -d "$1/.";
14289 <      else
14290 <        case $1 in #(
14291 <        -*)set "./$1";;
14292 <        esac;
14293 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14294 <        ???[sx]*):;;*)false;;esac;fi
14295 <    '\'' sh
14296 <  '
14297 < fi
14298 < as_executable_p=$as_test_x
17648 >
17649 > # as_fn_executable_p FILE
17650 > # -----------------------
17651 > # Test if FILE is an executable regular file.
17652 > as_fn_executable_p ()
17653 > {
17654 >  test -f "$1" && test -x "$1"
17655 > } # as_fn_executable_p
17656 > as_test_x='test -x'
17657 > as_executable_p=as_fn_executable_p
17658  
17659   # Sed expression to map a string onto a valid CPP name.
17660   as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Line 14316 | Line 17675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
17675   # report actual input values of CONFIG_FILES etc. instead of their
17676   # values after options handling.
17677   ac_log="
17678 < This file was extended by ircd-hybrid $as_me 7.2.4, which was
17679 < generated by GNU Autoconf 2.64.  Invocation command line was
17678 > This file was extended by ircd-hybrid $as_me TRUNK, which was
17679 > generated by GNU Autoconf 2.69.  Invocation command line was
17680  
17681    CONFIG_FILES    = $CONFIG_FILES
17682    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 14357 | Line 17716 | Usage: $0 [OPTION]... [TAG]...
17716  
17717    -h, --help       print this help, then exit
17718    -V, --version    print version number and configuration settings, then exit
17719 +      --config     print configuration, then exit
17720    -q, --quiet, --silent
17721                     do not print progress messages
17722    -d, --debug      don't remove temporary files
# Line 14375 | Line 17735 | $config_headers
17735   Configuration commands:
17736   $config_commands
17737  
17738 < Report bugs to the package provider."
17738 > Report bugs to <bugs@ircd-hybrid.org>."
17739  
17740   _ACEOF
17741   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17742 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17743   ac_cs_version="\\
17744 < ircd-hybrid config.status 7.2.4
17745 < configured by $0, generated by GNU Autoconf 2.64,
17746 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17744 > ircd-hybrid config.status TRUNK
17745 > configured by $0, generated by GNU Autoconf 2.69,
17746 >  with options \\"\$ac_cs_config\\"
17747  
17748 < Copyright (C) 2009 Free Software Foundation, Inc.
17748 > Copyright (C) 2012 Free Software Foundation, Inc.
17749   This config.status script is free software; the Free Software Foundation
17750   gives unlimited permission to copy, distribute and modify it."
17751  
# Line 14402 | Line 17763 | ac_need_defaults=:
17763   while test $# != 0
17764   do
17765    case $1 in
17766 <  --*=*)
17766 >  --*=?*)
17767      ac_option=`expr "X$1" : 'X\([^=]*\)='`
17768      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17769      ac_shift=:
17770      ;;
17771 +  --*=)
17772 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17773 +    ac_optarg=
17774 +    ac_shift=:
17775 +    ;;
17776    *)
17777      ac_option=$1
17778      ac_optarg=$2
# Line 14420 | Line 17786 | do
17786      ac_cs_recheck=: ;;
17787    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17788      $as_echo "$ac_cs_version"; exit ;;
17789 +  --config | --confi | --conf | --con | --co | --c )
17790 +    $as_echo "$ac_cs_config"; exit ;;
17791    --debug | --debu | --deb | --de | --d | -d )
17792      debug=: ;;
17793    --file | --fil | --fi | --f )
17794      $ac_shift
17795      case $ac_optarg in
17796      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17797 +    '') as_fn_error $? "missing file argument" ;;
17798      esac
17799      as_fn_append CONFIG_FILES " '$ac_optarg'"
17800      ac_need_defaults=false;;
# Line 14438 | Line 17807 | do
17807      ac_need_defaults=false;;
17808    --he | --h)
17809      # Conflict between --help and --header
17810 <    as_fn_error "ambiguous option: \`$1'
17810 >    as_fn_error $? "ambiguous option: \`$1'
17811   Try \`$0 --help' for more information.";;
17812    --help | --hel | -h )
17813      $as_echo "$ac_cs_usage"; exit ;;
# Line 14447 | Line 17816 | Try \`$0 --help' for more information.";
17816      ac_cs_silent=: ;;
17817  
17818    # This is an error.
17819 <  -*) as_fn_error "unrecognized option: \`$1'
17819 >  -*) as_fn_error $? "unrecognized option: \`$1'
17820   Try \`$0 --help' for more information." ;;
17821  
17822    *) as_fn_append ac_config_targets " $1"
# Line 14467 | Line 17836 | fi
17836   _ACEOF
17837   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17838   if \$ac_cs_recheck; then
17839 <  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17839 >  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17840    shift
17841    \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17842    CONFIG_SHELL='$SHELL'
# Line 14491 | Line 17860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
17860   #
17861   # INIT-COMMANDS
17862   #
17863 < AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17863 > AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17864  
17865  
17866   # The HP-UX ksh and POSIX shell print the target directory to stdout
# Line 14501 | Line 17870 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac
17870   sed_quote_subst='$sed_quote_subst'
17871   double_quote_subst='$double_quote_subst'
17872   delay_variable_subst='$delay_variable_subst'
17873 < macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17874 < macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17875 < enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17876 < enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17877 < pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17878 < enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17879 < host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17880 < host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17881 < host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17882 < build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17883 < build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17884 < build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17885 < SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17886 < Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17887 < GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17888 < EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17889 < FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17890 < LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17891 < NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17892 < LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17893 < max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17894 < ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17895 < exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17896 < lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17897 < lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17898 < lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17899 < reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17900 < reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17901 < OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17902 < deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17903 < file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17904 < AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17905 < AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17906 < STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17907 < RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17908 < old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17909 < old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17910 < old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17911 < CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17912 < CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17913 < compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17914 < GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17915 < lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17916 < lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17917 < lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17918 < lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17919 < objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17920 < SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17921 < ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17922 < MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17923 < lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17924 < lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17925 < lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17926 < lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17927 < lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17928 < need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17929 < DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17930 < NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17931 < LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17932 < OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17933 < OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17934 < libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17935 < shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17936 < extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17937 < archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17938 < enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17939 < export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17940 < whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17941 < compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17942 < old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17943 < old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17944 < archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17945 < archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17946 < module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17947 < module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17948 < with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17949 < allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17950 < no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17951 < hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17952 < hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17953 < hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17954 < hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17955 < hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17956 < hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17957 < hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17958 < hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17959 < inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17960 < link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17961 < fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17962 < always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17963 < export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17964 < exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17965 < include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17966 < prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17967 < file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17968 < variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17969 < need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17970 < need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17971 < version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17972 < runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17973 < shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17974 < shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17975 < libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17976 < library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17977 < soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17978 < postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17979 < postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17980 < finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17981 < finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17982 < hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17983 < sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17984 < sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17985 < hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17986 < enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17987 < enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17988 < enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17989 < old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17990 < striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17873 > macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17874 > macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17875 > enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17876 > enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17877 > pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17878 > enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17879 > shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17880 > SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17881 > ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17882 > PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17883 > host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17884 > host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17885 > host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17886 > build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17887 > build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17888 > build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17889 > SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17890 > Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17891 > GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17892 > EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17893 > FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17894 > LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17895 > NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17896 > LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17897 > max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17898 > ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17899 > exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17900 > lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17901 > lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17902 > lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17903 > lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17904 > lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17905 > reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17906 > reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17907 > OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17908 > deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17909 > file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17910 > file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17911 > want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17912 > DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17913 > sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17914 > AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17915 > AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17916 > archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17917 > STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17918 > RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17919 > old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17920 > old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17921 > old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17922 > lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17923 > CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17924 > CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17925 > compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17926 > GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17927 > lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17928 > lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17929 > lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17930 > lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17931 > 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"`'
17932 > lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17933 > nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17934 > lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17935 > lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17936 > objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17937 > MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17938 > lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17939 > lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17940 > lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17941 > lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17942 > lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17943 > need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17944 > MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17945 > DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17946 > NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17947 > LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17948 > OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17949 > OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17950 > libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17951 > shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17952 > extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17953 > archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17954 > enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17955 > export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17956 > whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17957 > compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17958 > old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17959 > old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17960 > archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17961 > archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17962 > module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17963 > module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17964 > with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17965 > allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17966 > no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17967 > hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17968 > hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17969 > hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17970 > hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17971 > hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17972 > hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17973 > hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17974 > inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17975 > link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17976 > always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17977 > export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17978 > exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17979 > include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17980 > prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17981 > postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17982 > file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17983 > variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17984 > need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17985 > need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17986 > version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17987 > runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17988 > shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17989 > shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17990 > libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17991 > library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17992 > soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17993 > install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17994 > postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17995 > postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17996 > finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17997 > finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17998 > hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17999 > sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18000 > configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18001 > configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18002 > hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18003 > enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18004 > enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18005 > enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18006 > old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18007 > striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18008  
18009   LTCC='$LTCC'
18010   LTCFLAGS='$LTCFLAGS'
18011   compiler='$compiler_DEFAULT'
18012  
18013 + # A function that is used when there is no print builtin or printf.
18014 + func_fallback_echo ()
18015 + {
18016 +  eval 'cat <<_LTECHO_EOF
18017 + \$1
18018 + _LTECHO_EOF'
18019 + }
18020 +
18021   # Quote evaled strings.
18022 < for var in SED \
18022 > for var in SHELL \
18023 > ECHO \
18024 > PATH_SEPARATOR \
18025 > SED \
18026   GREP \
18027   EGREP \
18028   FGREP \
# Line 14638 | Line 18035 | reload_flag \
18035   OBJDUMP \
18036   deplibs_check_method \
18037   file_magic_cmd \
18038 + file_magic_glob \
18039 + want_nocaseglob \
18040 + DLLTOOL \
18041 + sharedlib_from_linklib_cmd \
18042   AR \
18043   AR_FLAGS \
18044 + archiver_list_spec \
18045   STRIP \
18046   RANLIB \
18047   CC \
# Line 14647 | Line 18049 | CFLAGS \
18049   compiler \
18050   lt_cv_sys_global_symbol_pipe \
18051   lt_cv_sys_global_symbol_to_cdecl \
18052 + lt_cv_sys_global_symbol_to_import \
18053   lt_cv_sys_global_symbol_to_c_name_address \
18054   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18055 < SHELL \
18056 < ECHO \
18055 > lt_cv_nm_interface \
18056 > nm_file_list_spec \
18057 > lt_cv_truncate_bin \
18058   lt_prog_compiler_no_builtin_flag \
14655 lt_prog_compiler_wl \
18059   lt_prog_compiler_pic \
18060 + lt_prog_compiler_wl \
18061   lt_prog_compiler_static \
18062   lt_cv_prog_compiler_c_o \
18063   need_locks \
18064 + MANIFEST_TOOL \
18065   DSYMUTIL \
18066   NMEDIT \
18067   LIPO \
# Line 14670 | Line 18075 | with_gnu_ld \
18075   allow_undefined_flag \
18076   no_undefined_flag \
18077   hardcode_libdir_flag_spec \
14673 hardcode_libdir_flag_spec_ld \
18078   hardcode_libdir_separator \
14675 fix_srcfile_path \
18079   exclude_expsyms \
18080   include_expsyms \
18081   file_list_spec \
# Line 14680 | Line 18083 | variables_saved_for_relink \
18083   libname_spec \
18084   library_names_spec \
18085   soname_spec \
18086 + install_override_mode \
18087   finish_eval \
18088   old_striplib \
18089   striplib; do
18090 <    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18090 >    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18091      *[\\\\\\\`\\"\\\$]*)
18092 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18092 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18093        ;;
18094      *)
18095        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 14707 | Line 18111 | module_cmds \
18111   module_expsym_cmds \
18112   export_symbols_cmds \
18113   prelink_cmds \
18114 + postlink_cmds \
18115   postinstall_cmds \
18116   postuninstall_cmds \
18117   finish_cmds \
18118   sys_lib_search_path_spec \
18119 < sys_lib_dlsearch_path_spec; do
18120 <    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18119 > configure_time_dlsearch_path \
18120 > configure_time_lt_sys_library_path; do
18121 >    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18122      *[\\\\\\\`\\"\\\$]*)
18123 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18123 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18124        ;;
18125      *)
18126        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 14722 | Line 18128 | sys_lib_dlsearch_path_spec; do
18128      esac
18129   done
18130  
14725 # Fix-up fallback echo if it was mangled by the above quoting rules.
14726 case \$lt_ECHO in
14727 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14728  ;;
14729 esac
14730
18131   ac_aux_dir='$ac_aux_dir'
14732 xsi_shell='$xsi_shell'
14733 lt_shell_append='$lt_shell_append'
18132  
18133 < # See if we are running on zsh, and set the options which allow our
18133 > # See if we are running on zsh, and set the options that allow our
18134   # commands through without removal of \ escapes INIT.
18135 < if test -n "\${ZSH_VERSION+set}" ; then
18135 > if test -n "\${ZSH_VERSION+set}"; then
18136     setopt NO_GLOB_SUBST
18137   fi
18138  
18139  
18140      PACKAGE='$PACKAGE'
18141      VERSION='$VERSION'
14744    TIMESTAMP='$TIMESTAMP'
18142      RM='$RM'
18143      ofile='$ofile'
18144  
# Line 14760 | Line 18157 | do
18157      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18158      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18159      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14763    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14764    "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14765    "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14766    "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14767    "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14768    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14769    "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
18160      "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18161 <    "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
18161 >    "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
18162      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18163      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
18164 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
18165      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18166      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14776    "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14777    "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14778    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14779    "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
18167      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18168  
18169 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18169 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18170    esac
18171   done
18172  
# Line 14802 | Line 18189 | fi
18189   # after its creation but before its name has been assigned to `$tmp'.
18190   $debug ||
18191   {
18192 <  tmp=
18192 >  tmp= ac_tmp=
18193    trap 'exit_status=$?
18194 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18194 >  : "${ac_tmp:=$tmp}"
18195 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18196   ' 0
18197    trap 'as_fn_exit 1' 1 2 13 15
18198   }
# Line 14812 | Line 18200 | $debug ||
18200  
18201   {
18202    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18203 <  test -n "$tmp" && test -d "$tmp"
18203 >  test -d "$tmp"
18204   }  ||
18205   {
18206    tmp=./conf$$-$RANDOM
18207    (umask 077 && mkdir "$tmp")
18208 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18208 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18209 > ac_tmp=$tmp
18210  
18211   # Set up the scripts for CONFIG_FILES section.
18212   # No need to generate them if there are no CONFIG_FILES.
# Line 14834 | Line 18223 | if test "x$ac_cr" = x; then
18223   fi
18224   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18225   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18226 <  ac_cs_awk_cr='\r'
18226 >  ac_cs_awk_cr='\\r'
18227   else
18228    ac_cs_awk_cr=$ac_cr
18229   fi
18230  
18231 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
18231 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18232   _ACEOF
18233  
18234  
# Line 14848 | Line 18237 | _ACEOF
18237    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18238    echo "_ACEOF"
18239   } >conf$$subs.sh ||
18240 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18241 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18240 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18241 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18242   ac_delim='%!_!# '
18243   for ac_last_try in false false false false false :; do
18244    . ./conf$$subs.sh ||
18245 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18245 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18246  
18247    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18248    if test $ac_delim_n = $ac_delim_num; then
18249      break
18250    elif $ac_last_try; then
18251 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18251 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18252    else
18253      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18254    fi
# Line 14867 | Line 18256 | done
18256   rm -f conf$$subs.sh
18257  
18258   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18259 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18259 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18260   _ACEOF
18261   sed -n '
18262   h
# Line 14881 | Line 18270 | s/'"$ac_delim"'$//
18270   t delim
18271   :nl
18272   h
18273 < s/\(.\{148\}\).*/\1/
18273 > s/\(.\{148\}\)..*/\1/
18274   t more1
18275   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18276   p
# Line 14895 | Line 18284 | s/.\{148\}//
18284   t nl
18285   :delim
18286   h
18287 < s/\(.\{148\}\).*/\1/
18287 > s/\(.\{148\}\)..*/\1/
18288   t more2
18289   s/["\\]/\\&/g; s/^/"/; s/$/"/
18290   p
# Line 14915 | Line 18304 | t delim
18304   rm -f conf$$subs.awk
18305   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306   _ACAWK
18307 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18307 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18308    for (key in S) S_is_set[key] = 1
18309    FS = ""
18310  
# Line 14947 | Line 18336 | if sed "s/$ac_cr//" < /dev/null > /dev/n
18336    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18337   else
18338    cat
18339 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18340 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18339 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18340 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18341   _ACEOF
18342  
18343 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
18344 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18343 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18344 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18345   # trailing colons and then remove the whole line if VPATH becomes empty
18346   # (actually we leave an empty line to preserve line numbers).
18347   if test "x$srcdir" = x.; then
18348 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18349 < s/:*\$(srcdir):*/:/
18350 < s/:*\${srcdir}:*/:/
18351 < s/:*@srcdir@:*/:/
18352 < s/^\([^=]*=[     ]*\):*/\1/
18348 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18349 > h
18350 > s///
18351 > s/^/:/
18352 > s/[      ]*$/:/
18353 > s/:\$(srcdir):/:/g
18354 > s/:\${srcdir}:/:/g
18355 > s/:@srcdir@:/:/g
18356 > s/^:*//
18357   s/:*$//
18358 + x
18359 + s/\(=[   ]*\).*/\1/
18360 + G
18361 + s/\n//
18362   s/^[^=]*=[       ]*$//
18363   }'
18364   fi
# Line 14973 | Line 18370 | fi # test -n "$CONFIG_FILES"
18370   # No need to generate them if there are no CONFIG_HEADERS.
18371   # This happens for instance with `./config.status Makefile'.
18372   if test -n "$CONFIG_HEADERS"; then
18373 < cat >"$tmp/defines.awk" <<\_ACAWK ||
18373 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18374   BEGIN {
18375   _ACEOF
18376  
# Line 14985 | Line 18382 | _ACEOF
18382   # handling of long lines.
18383   ac_delim='%!_!# '
18384   for ac_last_try in false false :; do
18385 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18386 <  if test -z "$ac_t"; then
18385 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18386 >  if test -z "$ac_tt"; then
18387      break
18388    elif $ac_last_try; then
18389 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18389 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18390    else
18391      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18392    fi
# Line 15074 | Line 18471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
18471   _ACAWK
18472   _ACEOF
18473   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18474 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18475   fi # test -n "$CONFIG_HEADERS"
18476  
18477  
# Line 15087 | Line 18484 | do
18484    esac
18485    case $ac_mode$ac_tag in
18486    :[FHL]*:*);;
18487 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18487 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18488    :[FH]-) ac_tag=-:-;;
18489    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18490    esac
# Line 15106 | Line 18503 | do
18503      for ac_f
18504      do
18505        case $ac_f in
18506 <      -) ac_f="$tmp/stdin";;
18506 >      -) ac_f="$ac_tmp/stdin";;
18507        *) # Look for the file first in the build tree, then in the source tree
18508           # (if the path is not absolute).  The absolute path cannot be DOS-style,
18509           # because $ac_f cannot contain `:'.
# Line 15115 | Line 18512 | do
18512             [\\/$]*) false;;
18513             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18514             esac ||
18515 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18515 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18516        esac
18517        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18518        as_fn_append ac_file_inputs " '$ac_f'"
# Line 15141 | Line 18538 | $as_echo "$as_me: creating $ac_file" >&6
18538      esac
18539  
18540      case $ac_tag in
18541 <    *:-:* | *:-) cat >"$tmp/stdin" \
18542 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18541 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18542 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18543      esac
18544      ;;
18545    esac
# Line 15278 | Line 18675 | s&@INSTALL@&$ac_INSTALL&;t t
18675   s&@MKDIR_P@&$ac_MKDIR_P&;t t
18676   $ac_datarootdir_hack
18677   "
18678 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18679 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
18678 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18679 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18680  
18681   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18682 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18683 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18682 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18683 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18684 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18686 < which seems to be undefined.  Please make sure it is defined." >&5
18686 > which seems to be undefined.  Please make sure it is defined" >&5
18687   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18688 < which seems to be undefined.  Please make sure it is defined." >&2;}
18688 > which seems to be undefined.  Please make sure it is defined" >&2;}
18689  
18690 <  rm -f "$tmp/stdin"
18690 >  rm -f "$ac_tmp/stdin"
18691    case $ac_file in
18692 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
18693 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18692 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18693 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18694    esac \
18695 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
18695 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18696   ;;
18697    :H)
18698    #
# Line 15303 | Line 18701 | which seems to be undefined.  Please mak
18701    if test x"$ac_file" != x-; then
18702      {
18703        $as_echo "/* $configure_input  */" \
18704 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18705 <    } >"$tmp/config.h" \
18706 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
18707 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18704 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18705 >    } >"$ac_tmp/config.h" \
18706 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18707 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18708        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18709   $as_echo "$as_me: $ac_file is unchanged" >&6;}
18710      else
18711        rm -f "$ac_file"
18712 <      mv "$tmp/config.h" "$ac_file" \
18713 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
18712 >      mv "$ac_tmp/config.h" "$ac_file" \
18713 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18714      fi
18715    else
18716      $as_echo "/* $configure_input  */" \
18717 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18718 <      || as_fn_error "could not create -" "$LINENO" 5
18717 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18718 >      || as_fn_error $? "could not create -" "$LINENO" 5
18719    fi
18720   # Compute "$ac_file"'s index in $config_headers.
18721   _am_arg="$ac_file"
# Line 15363 | Line 18761 | $as_echo "$as_me: executing $ac_file com
18761  
18762    case $ac_file$ac_mode in
18763      "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18764 <  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18764 >  # Older Autoconf quotes --file arguments for eval, but not when files
18765    # are listed without --file.  Let's play safe and only enable the eval
18766    # if we detect the quoting.
18767 <  case $CONFIG_FILES in
18768 <  *\'*) eval set x "$CONFIG_FILES" ;;
18769 <  *)   set x $CONFIG_FILES ;;
18770 <  esac
18767 >  # TODO: see whether this extra hack can be removed once we start
18768 >  # requiring Autoconf 2.70 or later.
18769 >  case $CONFIG_FILES in #(
18770 >  *\'*) :
18771 >    eval set x "$CONFIG_FILES" ;; #(
18772 >  *) :
18773 >    set x $CONFIG_FILES ;; #(
18774 >  *) :
18775 >     ;;
18776 > esac
18777    shift
18778 <  for mf
18778 >  # Used to flag and report bootstrapping failures.
18779 >  am_rc=0
18780 >  for am_mf
18781    do
18782      # Strip MF so we end up with the name of the file.
18783 <    mf=`echo "$mf" | sed -e 's/:.*$//'`
18784 <    # Check whether this is an Automake generated Makefile or not.
18785 <    # We used to match only the files named `Makefile.in', but
18786 <    # some people rename them; so instead we look at the file content.
15381 <    # Grep'ing the first line is not enough: some people post-process
15382 <    # each Makefile.in and add a new line on top of each file to say so.
15383 <    # Grep'ing the whole file is not good either: AIX grep has a line
18783 >    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18784 >    # Check whether this is an Automake generated Makefile which includes
18785 >    # dependency-tracking related rules and includes.
18786 >    # Grep'ing the whole file directly is not great: AIX grep has a line
18787      # limit of 2048, but all sed's we know have understand at least 4000.
18788 <    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18789 <      dirpart=`$as_dirname -- "$mf" ||
18790 < $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18791 <         X"$mf" : 'X\(//\)[^/]' \| \
18792 <         X"$mf" : 'X\(//\)$' \| \
18793 <         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18794 < $as_echo X"$mf" |
18788 >    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18789 >      || continue
18790 >    am_dirpart=`$as_dirname -- "$am_mf" ||
18791 > $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18792 >         X"$am_mf" : 'X\(//\)[^/]' \| \
18793 >         X"$am_mf" : 'X\(//\)$' \| \
18794 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18795 > $as_echo X"$am_mf" |
18796      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18797              s//\1/
18798              q
# Line 15406 | Line 18810 | $as_echo X"$mf" |
18810              q
18811            }
18812            s/.*/./; q'`
18813 <    else
18814 <      continue
18815 <    fi
18816 <    # Extract the definition of DEPDIR, am__include, and am__quote
18817 <    # from the Makefile without running `make'.
18818 <    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15415 <    test -z "$DEPDIR" && continue
15416 <    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15417 <    test -z "am__include" && continue
15418 <    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15419 <    # When using ansi2knr, U may be empty or an underscore; expand it
15420 <    U=`sed -n 's/^U = //p' < "$mf"`
15421 <    # Find all dependency output files, they are included files with
15422 <    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15423 <    # simplest approach to changing $(DEPDIR) to its actual value in the
15424 <    # expansion.
15425 <    for file in `sed -n "
15426 <      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15427 <         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15428 <      # Make sure the directory exists.
15429 <      test -f "$dirpart/$file" && continue
15430 <      fdir=`$as_dirname -- "$file" ||
15431 < $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15432 <         X"$file" : 'X\(//\)[^/]' \| \
15433 <         X"$file" : 'X\(//\)$' \| \
15434 <         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15435 < $as_echo X"$file" |
15436 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15437 <            s//\1/
15438 <            q
15439 <          }
15440 <          /^X\(\/\/\)[^/].*/{
18813 >    am_filepart=`$as_basename -- "$am_mf" ||
18814 > $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18815 >         X"$am_mf" : 'X\(//\)$' \| \
18816 >         X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18817 > $as_echo X/"$am_mf" |
18818 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
18819              s//\1/
18820              q
18821            }
18822 <          /^X\(\/\/\)$/{
18822 >          /^X\/\(\/\/\)$/{
18823              s//\1/
18824              q
18825            }
18826 <          /^X\(\/\).*/{
18826 >          /^X\/\(\/\).*/{
18827              s//\1/
18828              q
18829            }
18830            s/.*/./; q'`
18831 <      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18832 <      # echo "creating $dirpart/$file"
18833 <      echo '# dummy' > "$dirpart/$file"
18834 <    done
18831 >    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18832 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18833 >        | $MAKE -f - am--depfiles" >&5
18834 >   (cd "$am_dirpart" \
18835 >      && sed -e '/# am--include-marker/d' "$am_filepart" \
18836 >        | $MAKE -f - am--depfiles) >&5 2>&5
18837 >   ac_status=$?
18838 >   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 >   (exit $ac_status); } || am_rc=$?
18840    done
18841 +  if test $am_rc -ne 0; then
18842 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18843 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18844 + as_fn_error $? "Something went wrong bootstrapping makefile fragments
18845 +    for automatic dependency tracking.  Try re-running configure with the
18846 +    '--disable-dependency-tracking' option to at least be able to build
18847 +    the package (albeit without support for automatic dependency tracking).
18848 + See \`config.log' for more details" "$LINENO" 5; }
18849 +  fi
18850 +  { am_dirpart=; unset am_dirpart;}
18851 +  { am_filepart=; unset am_filepart;}
18852 +  { am_mf=; unset am_mf;}
18853 +  { am_rc=; unset am_rc;}
18854 +  rm -f conftest-deps.mk
18855   }
18856   ;;
18857      "libtool":C)
18858  
18859 <    # See if we are running on zsh, and set the options which allow our
18859 >    # See if we are running on zsh, and set the options that allow our
18860      # commands through without removal of \ escapes.
18861 <    if test -n "${ZSH_VERSION+set}" ; then
18861 >    if test -n "${ZSH_VERSION+set}"; then
18862        setopt NO_GLOB_SUBST
18863      fi
18864  
18865 <    cfgfile="${ofile}T"
18865 >    cfgfile=${ofile}T
18866      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18867      $RM "$cfgfile"
18868  
18869      cat <<_LT_EOF >> "$cfgfile"
18870   #! $SHELL
18871 <
15475 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15476 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18871 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18872   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18873   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18874 +
18875 + # Provide generalized library-building support services.
18876 + # Written by Gordon Matzigkeit, 1996
18877 +
18878 + # Copyright (C) 2014 Free Software Foundation, Inc.
18879 + # This is free software; see the source for copying conditions.  There is NO
18880 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18881 +
18882 + # GNU Libtool is free software; you can redistribute it and/or modify
18883 + # it under the terms of the GNU General Public License as published by
18884 + # the Free Software Foundation; either version 2 of of the License, or
18885 + # (at your option) any later version.
18886   #
18887 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18888 < #                 2006, 2007, 2008 Free Software Foundation, Inc.
18889 < #   Written by Gordon Matzigkeit, 1996
18890 < #
15484 < #   This file is part of GNU Libtool.
15485 < #
15486 < # GNU Libtool is free software; you can redistribute it and/or
15487 < # modify it under the terms of the GNU General Public License as
15488 < # published by the Free Software Foundation; either version 2 of
15489 < # the License, or (at your option) any later version.
15490 < #
15491 < # As a special exception to the GNU General Public License,
15492 < # if you distribute this file as part of a program or library that
15493 < # is built using GNU Libtool, you may include this file under the
15494 < # same distribution terms that you use for the rest of that program.
18887 > # As a special exception to the GNU General Public License, if you
18888 > # distribute this file as part of a program or library that is built
18889 > # using GNU Libtool, you may include this file under the  same
18890 > # distribution terms that you use for the rest of that program.
18891   #
18892 < # GNU Libtool is distributed in the hope that it will be useful,
18893 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18892 > # GNU Libtool is distributed in the hope that it will be useful, but
18893 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18894   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18895   # GNU General Public License for more details.
18896   #
18897   # You should have received a copy of the GNU General Public License
18898 < # along with GNU Libtool; see the file COPYING.  If not, a copy
15503 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 < # obtained by writing to the Free Software Foundation, Inc.,
15505 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18898 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18899  
18900  
18901   # The names of the tagged configurations supported by this script.
18902 < available_tags=""
18902 > available_tags=''
18903 >
18904 > # Configured defaults for sys_lib_dlsearch_path munging.
18905 > : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18906  
18907   # ### BEGIN LIBTOOL CONFIG
18908  
# Line 15514 | Line 18910 | available_tags=""
18910   macro_version=$macro_version
18911   macro_revision=$macro_revision
18912  
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15519
18913   # Whether or not to build static libraries.
18914   build_old_libs=$enable_static
18915  
18916 + # Whether or not to build shared libraries.
18917 + build_libtool_libs=$enable_shared
18918 +
18919   # What type of objects to build.
18920   pic_mode=$pic_mode
18921  
18922   # Whether or not to optimize for fast installation.
18923   fast_install=$enable_fast_install
18924  
18925 + # Shared archive member basename,for filename based shared library versioning on AIX.
18926 + shared_archive_member_spec=$shared_archive_member_spec
18927 +
18928 + # Shell to use when invoking shell scripts.
18929 + SHELL=$lt_SHELL
18930 +
18931 + # An echo program that protects backslashes.
18932 + ECHO=$lt_ECHO
18933 +
18934 + # The PATH separator for the build system.
18935 + PATH_SEPARATOR=$lt_PATH_SEPARATOR
18936 +
18937   # The host system.
18938   host_alias=$host_alias
18939   host=$host
# Line 15575 | Line 18983 | SP2NL=$lt_lt_SP2NL
18983   # turn newlines into spaces.
18984   NL2SP=$lt_lt_NL2SP
18985  
18986 < # How to create reloadable object files.
18987 < reload_flag=$lt_reload_flag
18988 < reload_cmds=$lt_reload_cmds
18986 > # convert \$build file names to \$host format.
18987 > to_host_file_cmd=$lt_cv_to_host_file_cmd
18988 >
18989 > # convert \$build files to toolchain format.
18990 > to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18991  
18992   # An object symbol dumper.
18993   OBJDUMP=$lt_OBJDUMP
# Line 15585 | Line 18995 | OBJDUMP=$lt_OBJDUMP
18995   # Method to check whether dependent libraries are shared objects.
18996   deplibs_check_method=$lt_deplibs_check_method
18997  
18998 < # Command to use when deplibs_check_method == "file_magic".
18998 > # Command to use when deplibs_check_method = "file_magic".
18999   file_magic_cmd=$lt_file_magic_cmd
19000  
19001 + # How to find potential files when deplibs_check_method = "file_magic".
19002 + file_magic_glob=$lt_file_magic_glob
19003 +
19004 + # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19005 + want_nocaseglob=$lt_want_nocaseglob
19006 +
19007 + # DLL creation program.
19008 + DLLTOOL=$lt_DLLTOOL
19009 +
19010 + # Command to associate shared and link libraries.
19011 + sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19012 +
19013   # The archiver.
19014   AR=$lt_AR
19015 +
19016 + # Flags to create an archive.
19017   AR_FLAGS=$lt_AR_FLAGS
19018  
19019 + # How to feed a file listing to the archiver.
19020 + archiver_list_spec=$lt_archiver_list_spec
19021 +
19022   # A symbol stripping program.
19023   STRIP=$lt_STRIP
19024  
# Line 15600 | Line 19027 | RANLIB=$lt_RANLIB
19027   old_postinstall_cmds=$lt_old_postinstall_cmds
19028   old_postuninstall_cmds=$lt_old_postuninstall_cmds
19029  
19030 + # Whether to use a lock for old archive extraction.
19031 + lock_old_archive_extraction=$lock_old_archive_extraction
19032 +
19033   # A C compiler.
19034   LTCC=$lt_CC
19035  
# Line 15612 | Line 19042 | global_symbol_pipe=$lt_lt_cv_sys_global_
19042   # Transform the output of nm in a proper C declaration.
19043   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19044  
19045 + # Transform the output of nm into a list of symbols to manually relocate.
19046 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19047 +
19048   # Transform the output of nm in a C name address pair.
19049   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19050  
19051   # Transform the output of nm in a C name address pair when lib prefix is needed.
19052   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19053  
19054 < # The name of the directory that contains temporary libtool files.
19055 < objdir=$objdir
19054 > # The name lister interface.
19055 > nm_interface=$lt_lt_cv_nm_interface
19056  
19057 < # Shell to use when invoking shell scripts.
19058 < SHELL=$lt_SHELL
19057 > # Specify filename containing input files for \$NM.
19058 > nm_file_list_spec=$lt_nm_file_list_spec
19059  
19060 < # An echo program that does not interpret backslashes.
19061 < ECHO=$lt_ECHO
19060 > # The root where to search for dependent libraries,and where our libraries should be installed.
19061 > lt_sysroot=$lt_sysroot
19062 >
19063 > # Command to truncate a binary pipe.
19064 > lt_truncate_bin=$lt_lt_cv_truncate_bin
19065 >
19066 > # The name of the directory that contains temporary libtool files.
19067 > objdir=$objdir
19068  
19069   # Used to examine libraries when file_magic_cmd begins with "file".
19070   MAGIC_CMD=$MAGIC_CMD
# Line 15633 | Line 19072 | MAGIC_CMD=$MAGIC_CMD
19072   # Must we lock files when doing compilation?
19073   need_locks=$lt_need_locks
19074  
19075 + # Manifest tool.
19076 + MANIFEST_TOOL=$lt_MANIFEST_TOOL
19077 +
19078   # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19079   DSYMUTIL=$lt_DSYMUTIL
19080  
# Line 15689 | Line 19131 | library_names_spec=$lt_library_names_spe
19131   # The coded name of the library, if different from the real name.
19132   soname_spec=$lt_soname_spec
19133  
19134 + # Permission mode override for installation of shared libraries.
19135 + install_override_mode=$lt_install_override_mode
19136 +
19137   # Command to use after installation of a shared archive.
19138   postinstall_cmds=$lt_postinstall_cmds
19139  
# Line 15708 | Line 19153 | hardcode_into_libs=$hardcode_into_libs
19153   # Compile-time system search path for libraries.
19154   sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19155  
19156 < # Run-time system search path for libraries.
19157 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19156 > # Detected run-time system search path for libraries.
19157 > sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19158 >
19159 > # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19160 > configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19161  
19162   # Whether dlopen is supported.
19163   dlopen_support=$enable_dlopen
# Line 15728 | Line 19176 | striplib=$lt_striplib
19176   # The linker used to build libraries.
19177   LD=$lt_LD
19178  
19179 + # How to create reloadable object files.
19180 + reload_flag=$lt_reload_flag
19181 + reload_cmds=$lt_reload_cmds
19182 +
19183   # Commands used to build an old-style archive.
19184   old_archive_cmds=$lt_old_archive_cmds
19185  
# Line 15740 | Line 19192 | with_gcc=$GCC
19192   # Compiler flag to turn off builtin functions.
19193   no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19194  
15743 # How to pass a linker flag through the compiler.
15744 wl=$lt_lt_prog_compiler_wl
15745
19195   # Additional compiler flags for building library objects.
19196   pic_flag=$lt_lt_prog_compiler_pic
19197  
19198 + # How to pass a linker flag through the compiler.
19199 + wl=$lt_lt_prog_compiler_wl
19200 +
19201   # Compiler flag to prevent dynamic linking.
19202   link_static_flag=$lt_lt_prog_compiler_static
19203  
# Line 15795 | Line 19247 | no_undefined_flag=$lt_no_undefined_flag
19247   # This must work even if \$libdir does not exist
19248   hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19249  
15798 # If ld is used when linking, flag to hardcode \$libdir into a binary
15799 # during linking.  This must work even if \$libdir does not exist.
15800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15801
19250   # Whether we need a single "-rpath" flag with a separated argument.
19251   hardcode_libdir_separator=$lt_hardcode_libdir_separator
19252  
19253 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19253 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19254   # DIR into the resulting binary.
19255   hardcode_direct=$hardcode_direct
19256  
19257 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19257 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19258   # DIR into the resulting binary and the resulting library dependency is
19259 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19259 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19260   # library is relocated.
19261   hardcode_direct_absolute=$hardcode_direct_absolute
19262  
# Line 15832 | Line 19280 | inherit_rpath=$inherit_rpath
19280   # Whether libtool must link a program against all its dependency libraries.
19281   link_all_deplibs=$link_all_deplibs
19282  
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path=$lt_fix_srcfile_path
15837
19283   # Set to "yes" if exported symbols are required.
19284   always_export_symbols=$always_export_symbols
19285  
# Line 15850 | Line 19295 | include_expsyms=$lt_include_expsyms
19295   # Commands necessary for linking programs (against libraries) with templates.
19296   prelink_cmds=$lt_prelink_cmds
19297  
19298 + # Commands necessary for finishing linking programs.
19299 + postlink_cmds=$lt_postlink_cmds
19300 +
19301   # Specify filename containing input files.
19302   file_list_spec=$lt_file_list_spec
19303  
# Line 15860 | Line 19308 | hardcode_action=$hardcode_action
19308  
19309   _LT_EOF
19310  
19311 +    cat <<'_LT_EOF' >> "$cfgfile"
19312 +
19313 + # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19314 +
19315 + # func_munge_path_list VARIABLE PATH
19316 + # -----------------------------------
19317 + # VARIABLE is name of variable containing _space_ separated list of
19318 + # directories to be munged by the contents of PATH, which is string
19319 + # having a format:
19320 + # "DIR[:DIR]:"
19321 + #       string "DIR[ DIR]" will be prepended to VARIABLE
19322 + # ":DIR[:DIR]"
19323 + #       string "DIR[ DIR]" will be appended to VARIABLE
19324 + # "DIRP[:DIRP]::[DIRA:]DIRA"
19325 + #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19326 + #       "DIRA[ DIRA]" will be appended to VARIABLE
19327 + # "DIR[:DIR]"
19328 + #       VARIABLE will be replaced by "DIR[ DIR]"
19329 + func_munge_path_list ()
19330 + {
19331 +    case x$2 in
19332 +    x)
19333 +        ;;
19334 +    *:)
19335 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19336 +        ;;
19337 +    x:*)
19338 +        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19339 +        ;;
19340 +    *::*)
19341 +        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19342 +        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19343 +        ;;
19344 +    *)
19345 +        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19346 +        ;;
19347 +    esac
19348 + }
19349 +
19350 +
19351 + # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19352 + func_cc_basename ()
19353 + {
19354 +    for cc_temp in $*""; do
19355 +      case $cc_temp in
19356 +        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19357 +        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19358 +        \-*) ;;
19359 +        *) break;;
19360 +      esac
19361 +    done
19362 +    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19363 + }
19364 +
19365 +
19366 + # ### END FUNCTIONS SHARED WITH CONFIGURE
19367 +
19368 + _LT_EOF
19369 +
19370    case $host_os in
19371    aix3*)
19372      cat <<\_LT_EOF >> "$cfgfile"
19373   # AIX sometimes has problems with the GCC collect2 program.  For some
19374   # reason, if we set the COLLECT_NAMES environment variable, the problems
19375   # vanish in a puff of smoke.
19376 < if test "X${COLLECT_NAMES+set}" != Xset; then
19376 > if test set != "${COLLECT_NAMES+set}"; then
19377    COLLECT_NAMES=
19378    export COLLECT_NAMES
19379   fi
# Line 15875 | Line 19382 | _LT_EOF
19382    esac
19383  
19384  
19385 < ltmain="$ac_aux_dir/ltmain.sh"
19385 > ltmain=$ac_aux_dir/ltmain.sh
19386  
19387  
19388    # We use sed instead of cat because bash on DJGPP gets confused if
19389    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19390    # text mode, it properly converts lines to CR/LF.  This bash problem
19391    # is reportedly fixed, but why not run on old versions too?
19392 <  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19393 <    || (rm -f "$cfgfile"; exit 1)
15887 <
15888 <  case $xsi_shell in
15889 <  yes)
15890 <    cat << \_LT_EOF >> "$cfgfile"
15891 <
15892 < # func_dirname file append nondir_replacement
15893 < # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15894 < # otherwise set result to NONDIR_REPLACEMENT.
15895 < func_dirname ()
15896 < {
15897 <  case ${1} in
15898 <    */*) func_dirname_result="${1%/*}${2}" ;;
15899 <    *  ) func_dirname_result="${3}" ;;
15900 <  esac
15901 < }
15902 <
15903 < # func_basename file
15904 < func_basename ()
15905 < {
15906 <  func_basename_result="${1##*/}"
15907 < }
15908 <
15909 < # func_dirname_and_basename file append nondir_replacement
15910 < # perform func_basename and func_dirname in a single function
15911 < # call:
15912 < #   dirname:  Compute the dirname of FILE.  If nonempty,
15913 < #             add APPEND to the result, otherwise set result
15914 < #             to NONDIR_REPLACEMENT.
15915 < #             value returned in "$func_dirname_result"
15916 < #   basename: Compute filename of FILE.
15917 < #             value retuned in "$func_basename_result"
15918 < # Implementation must be kept synchronized with func_dirname
15919 < # and func_basename. For efficiency, we do not delegate to
15920 < # those functions but instead duplicate the functionality here.
15921 < func_dirname_and_basename ()
15922 < {
15923 <  case ${1} in
15924 <    */*) func_dirname_result="${1%/*}${2}" ;;
15925 <    *  ) func_dirname_result="${3}" ;;
15926 <  esac
15927 <  func_basename_result="${1##*/}"
15928 < }
15929 <
15930 < # func_stripname prefix suffix name
15931 < # strip PREFIX and SUFFIX off of NAME.
15932 < # PREFIX and SUFFIX must not contain globbing or regex special
15933 < # characters, hashes, percent signs, but SUFFIX may contain a leading
15934 < # dot (in which case that matches only a dot).
15935 < func_stripname ()
15936 < {
15937 <  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15938 <  # positional parameters, so assign one to ordinary parameter first.
15939 <  func_stripname_result=${3}
15940 <  func_stripname_result=${func_stripname_result#"${1}"}
15941 <  func_stripname_result=${func_stripname_result%"${2}"}
15942 < }
15943 <
15944 < # func_opt_split
15945 < func_opt_split ()
15946 < {
15947 <  func_opt_split_opt=${1%%=*}
15948 <  func_opt_split_arg=${1#*=}
15949 < }
15950 <
15951 < # func_lo2o object
15952 < func_lo2o ()
15953 < {
15954 <  case ${1} in
15955 <    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15956 <    *)    func_lo2o_result=${1} ;;
15957 <  esac
15958 < }
15959 <
15960 < # func_xform libobj-or-source
15961 < func_xform ()
15962 < {
15963 <  func_xform_result=${1%.*}.lo
15964 < }
15965 <
15966 < # func_arith arithmetic-term...
15967 < func_arith ()
15968 < {
15969 <  func_arith_result=$(( $* ))
15970 < }
15971 <
15972 < # func_len string
15973 < # STRING may not start with a hyphen.
15974 < func_len ()
15975 < {
15976 <  func_len_result=${#1}
15977 < }
15978 <
15979 < _LT_EOF
15980 <    ;;
15981 <  *) # Bourne compatible functions.
15982 <    cat << \_LT_EOF >> "$cfgfile"
15983 <
15984 < # func_dirname file append nondir_replacement
15985 < # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15986 < # otherwise set result to NONDIR_REPLACEMENT.
15987 < func_dirname ()
15988 < {
15989 <  # Extract subdirectory from the argument.
15990 <  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15991 <  if test "X$func_dirname_result" = "X${1}"; then
15992 <    func_dirname_result="${3}"
15993 <  else
15994 <    func_dirname_result="$func_dirname_result${2}"
15995 <  fi
15996 < }
15997 <
15998 < # func_basename file
15999 < func_basename ()
16000 < {
16001 <  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16002 < }
16003 <
19392 >  sed '$q' "$ltmain" >> "$cfgfile" \
19393 >     || (rm -f "$cfgfile"; exit 1)
19394  
19395 < # func_stripname prefix suffix name
16006 < # strip PREFIX and SUFFIX off of NAME.
16007 < # PREFIX and SUFFIX must not contain globbing or regex special
16008 < # characters, hashes, percent signs, but SUFFIX may contain a leading
16009 < # dot (in which case that matches only a dot).
16010 < # func_strip_suffix prefix name
16011 < func_stripname ()
16012 < {
16013 <  case ${2} in
16014 <    .*) func_stripname_result=`$ECHO "X${3}" \
16015 <           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16016 <    *)  func_stripname_result=`$ECHO "X${3}" \
16017 <           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16018 <  esac
16019 < }
16020 <
16021 < # sed scripts:
16022 < my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16023 < my_sed_long_arg='1s/^-[^=]*=//'
16024 <
16025 < # func_opt_split
16026 < func_opt_split ()
16027 < {
16028 <  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16029 <  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16030 < }
16031 <
16032 < # func_lo2o object
16033 < func_lo2o ()
16034 < {
16035 <  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16036 < }
16037 <
16038 < # func_xform libobj-or-source
16039 < func_xform ()
16040 < {
16041 <  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16042 < }
16043 <
16044 < # func_arith arithmetic-term...
16045 < func_arith ()
16046 < {
16047 <  func_arith_result=`expr "$@"`
16048 < }
16049 <
16050 < # func_len string
16051 < # STRING may not start with a hyphen.
16052 < func_len ()
16053 < {
16054 <  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16055 < }
16056 <
16057 < _LT_EOF
16058 < esac
16059 <
16060 < case $lt_shell_append in
16061 <  yes)
16062 <    cat << \_LT_EOF >> "$cfgfile"
16063 <
16064 < # func_append var value
16065 < # Append VALUE to the end of shell variable VAR.
16066 < func_append ()
16067 < {
16068 <  eval "$1+=\$2"
16069 < }
16070 < _LT_EOF
16071 <    ;;
16072 <  *)
16073 <    cat << \_LT_EOF >> "$cfgfile"
16074 <
16075 < # func_append var value
16076 < # Append VALUE to the end of shell variable VAR.
16077 < func_append ()
16078 < {
16079 <  eval "$1=\$$1\$2"
16080 < }
16081 <
16082 < _LT_EOF
16083 <    ;;
16084 <  esac
16085 <
16086 <
16087 <  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16088 <    || (rm -f "$cfgfile"; exit 1)
16089 <
16090 <  mv -f "$cfgfile" "$ofile" ||
19395 >   mv -f "$cfgfile" "$ofile" ||
19396      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19397    chmod +x "$ofile"
19398  
# Line 16102 | Line 19407 | _ACEOF
19407   ac_clean_files=$ac_clean_files_save
19408  
19409   test $ac_write_fail = 0 ||
19410 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19410 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19411  
19412  
19413   # configure is writing to config.log, and then calls config.status.
# Line 16123 | Line 19428 | if test "$no_create" != yes; then
19428    exec 5>>config.log
19429    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19430    # would make configure fail if this is the last instruction.
19431 <  $ac_cs_success || as_fn_exit $?
16127 < fi
16128 <
16129 < #
16130 < # CONFIG_SUBDIRS section.
16131 < #
16132 < if test "$no_recursion" != yes; then
16133 <
16134 <  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16135 <  # so they do not pile up.
16136 <  ac_sub_configure_args=
16137 <  ac_prev=
16138 <  eval "set x $ac_configure_args"
16139 <  shift
16140 <  for ac_arg
16141 <  do
16142 <    if test -n "$ac_prev"; then
16143 <      ac_prev=
16144 <      continue
16145 <    fi
16146 <    case $ac_arg in
16147 <    -cache-file | --cache-file | --cache-fil | --cache-fi \
16148 <    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16149 <      ac_prev=cache_file ;;
16150 <    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16151 <    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16152 <    | --c=*)
16153 <      ;;
16154 <    --config-cache | -C)
16155 <      ;;
16156 <    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16157 <      ac_prev=srcdir ;;
16158 <    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16159 <      ;;
16160 <    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16161 <      ac_prev=prefix ;;
16162 <    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16163 <      ;;
16164 <    --disable-option-checking)
16165 <      ;;
16166 <    *)
16167 <      case $ac_arg in
16168 <      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16169 <      esac
16170 <      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16171 <    esac
16172 <  done
16173 <
16174 <  # Always prepend --prefix to ensure using the same prefix
16175 <  # in subdir configurations.
16176 <  ac_arg="--prefix=$prefix"
16177 <  case $ac_arg in
16178 <  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16179 <  esac
16180 <  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16181 <
16182 <  # Pass --silent
16183 <  if test "$silent" = yes; then
16184 <    ac_sub_configure_args="--silent $ac_sub_configure_args"
16185 <  fi
16186 <
16187 <  # Always prepend --disable-option-checking to silence warnings, since
16188 <  # different subdirs can have different --enable and --with options.
16189 <  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16190 <
16191 <  ac_popdir=`pwd`
16192 <  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16193 <
16194 <    # Do not complain, so a configure script can configure whichever
16195 <    # parts of a large source tree are present.
16196 <    test -d "$srcdir/$ac_dir" || continue
16197 <
16198 <    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16199 <    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16200 <    $as_echo "$ac_msg" >&6
16201 <    as_dir="$ac_dir"; as_fn_mkdir_p
16202 <    ac_builddir=.
16203 <
16204 < case "$ac_dir" in
16205 < .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16206 < *)
16207 <  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16208 <  # A ".." for each directory in $ac_dir_suffix.
16209 <  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16210 <  case $ac_top_builddir_sub in
16211 <  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16212 <  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16213 <  esac ;;
16214 < esac
16215 < ac_abs_top_builddir=$ac_pwd
16216 < ac_abs_builddir=$ac_pwd$ac_dir_suffix
16217 < # for backward compatibility:
16218 < ac_top_builddir=$ac_top_build_prefix
16219 <
16220 < case $srcdir in
16221 <  .)  # We are building in place.
16222 <    ac_srcdir=.
16223 <    ac_top_srcdir=$ac_top_builddir_sub
16224 <    ac_abs_top_srcdir=$ac_pwd ;;
16225 <  [\\/]* | ?:[\\/]* )  # Absolute name.
16226 <    ac_srcdir=$srcdir$ac_dir_suffix;
16227 <    ac_top_srcdir=$srcdir
16228 <    ac_abs_top_srcdir=$srcdir ;;
16229 <  *) # Relative name.
16230 <    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16231 <    ac_top_srcdir=$ac_top_build_prefix$srcdir
16232 <    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16233 < esac
16234 < ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16235 <
16236 <
16237 <    cd "$ac_dir"
16238 <
16239 <    # Check for guested configure; otherwise get Cygnus style configure.
16240 <    if test -f "$ac_srcdir/configure.gnu"; then
16241 <      ac_sub_configure=$ac_srcdir/configure.gnu
16242 <    elif test -f "$ac_srcdir/configure"; then
16243 <      ac_sub_configure=$ac_srcdir/configure
16244 <    elif test -f "$ac_srcdir/configure.in"; then
16245 <      # This should be Cygnus configure.
16246 <      ac_sub_configure=$ac_aux_dir/configure
16247 <    else
16248 <      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16249 < $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16250 <      ac_sub_configure=
16251 <    fi
16252 <
16253 <    # The recursion is here.
16254 <    if test -n "$ac_sub_configure"; then
16255 <      # Make the cache file name correct relative to the subdirectory.
16256 <      case $cache_file in
16257 <      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16258 <      *) # Relative name.
16259 <        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16260 <      esac
16261 <
16262 <      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16263 < $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16264 <      # The eval makes quoting arguments work.
16265 <      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16266 <           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16267 <        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16268 <    fi
16269 <
16270 <    cd "$ac_popdir"
16271 <  done
19431 >  $ac_cs_success || as_fn_exit 1
19432   fi
19433   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19434    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19435   $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19436   fi
19437  
19438 +
19439 + echo "###############################################################################"
19440 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
19441 + echo
19442 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
19443 + echo "   ./configure --prefix=DIRECTORY"
19444 + echo "###############################################################################"

Comparing:
ircd-hybrid-7.2/configure (property svn:eol-style), Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC vs.
ircd-hybrid/trunk/configure (property svn:eol-style), Revision 8779 by michael, Sun Jan 13 11:32:53 2019 UTC

# Line 0 | Line 1
1 + native

Diff Legend

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