Home | History | Annotate | Download | only in libevent
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for libevent 2.1.8-stable.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1
    200 
    201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    205     PATH=/empty FPATH=/empty; export PATH FPATH
    206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    208   if (eval "$as_required") 2>/dev/null; then :
    209   as_have_required=yes
    210 else
    211   as_have_required=no
    212 fi
    213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    214 
    215 else
    216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    217 as_found=false
    218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    219 do
    220   IFS=$as_save_IFS
    221   test -z "$as_dir" && as_dir=.
    222   as_found=:
    223   case $as_dir in #(
    224 	 /*)
    225 	   for as_base in sh bash ksh sh5; do
    226 	     # Try only shells that exist, to save several forks.
    227 	     as_shell=$as_dir/$as_base
    228 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    229 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    230   CONFIG_SHELL=$as_shell as_have_required=yes
    231 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    232   break 2
    233 fi
    234 fi
    235 	   done;;
    236        esac
    237   as_found=false
    238 done
    239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    240 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    241   CONFIG_SHELL=$SHELL as_have_required=yes
    242 fi; }
    243 IFS=$as_save_IFS
    244 
    245 
    246       if test "x$CONFIG_SHELL" != x; then :
    247   export CONFIG_SHELL
    248              # We cannot yet assume a decent shell, so we have to provide a
    249 # neutralization value for shells without unset; and this also
    250 # works around shells that cannot unset nonexistent variables.
    251 # Preserve -v and -x to the replacement shell.
    252 BASH_ENV=/dev/null
    253 ENV=/dev/null
    254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    255 case $- in # ((((
    256   *v*x* | *x*v* ) as_opts=-vx ;;
    257   *v* ) as_opts=-v ;;
    258   *x* ) as_opts=-x ;;
    259   * ) as_opts= ;;
    260 esac
    261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    262 # Admittedly, this is quite paranoid, since all the known shells bail
    263 # out after a failed `exec'.
    264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    265 exit 255
    266 fi
    267 
    268     if test x$as_have_required = xno; then :
    269   $as_echo "$0: This script requires a shell more modern than all"
    270   $as_echo "$0: the shells that I found on your system."
    271   if test x${ZSH_VERSION+set} = xset ; then
    272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    274   else
    275     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    276 $0: including any error possibly output before this
    277 $0: message. Then install a modern shell, or manually run
    278 $0: the script under such a shell if you do have one."
    279   fi
    280   exit 1
    281 fi
    282 fi
    283 fi
    284 SHELL=${CONFIG_SHELL-/bin/sh}
    285 export SHELL
    286 # Unset more variables known to interfere with behavior of common tools.
    287 CLICOLOR_FORCE= GREP_OPTIONS=
    288 unset CLICOLOR_FORCE GREP_OPTIONS
    289 
    290 ## --------------------- ##
    291 ## M4sh Shell Functions. ##
    292 ## --------------------- ##
    293 # as_fn_unset VAR
    294 # ---------------
    295 # Portably unset VAR.
    296 as_fn_unset ()
    297 {
    298   { eval $1=; unset $1;}
    299 }
    300 as_unset=as_fn_unset
    301 
    302 # as_fn_set_status STATUS
    303 # -----------------------
    304 # Set $? to STATUS, without forking.
    305 as_fn_set_status ()
    306 {
    307   return $1
    308 } # as_fn_set_status
    309 
    310 # as_fn_exit STATUS
    311 # -----------------
    312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    313 as_fn_exit ()
    314 {
    315   set +e
    316   as_fn_set_status $1
    317   exit $1
    318 } # as_fn_exit
    319 
    320 # as_fn_mkdir_p
    321 # -------------
    322 # Create "$as_dir" as a directory, including parents if necessary.
    323 as_fn_mkdir_p ()
    324 {
    325 
    326   case $as_dir in #(
    327   -*) as_dir=./$as_dir;;
    328   esac
    329   test -d "$as_dir" || eval $as_mkdir_p || {
    330     as_dirs=
    331     while :; do
    332       case $as_dir in #(
    333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    334       *) as_qdir=$as_dir;;
    335       esac
    336       as_dirs="'$as_qdir' $as_dirs"
    337       as_dir=`$as_dirname -- "$as_dir" ||
    338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    339 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    340 	 X"$as_dir" : 'X\(//\)$' \| \
    341 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    342 $as_echo X"$as_dir" |
    343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\/\)[^/].*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  /^X\(\/\/\)$/{
    352 	    s//\1/
    353 	    q
    354 	  }
    355 	  /^X\(\/\).*/{
    356 	    s//\1/
    357 	    q
    358 	  }
    359 	  s/.*/./; q'`
    360       test -d "$as_dir" && break
    361     done
    362     test -z "$as_dirs" || eval "mkdir $as_dirs"
    363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    364 
    365 
    366 } # as_fn_mkdir_p
    367 
    368 # as_fn_executable_p FILE
    369 # -----------------------
    370 # Test if FILE is an executable regular file.
    371 as_fn_executable_p ()
    372 {
    373   test -f "$1" && test -x "$1"
    374 } # as_fn_executable_p
    375 # as_fn_append VAR VALUE
    376 # ----------------------
    377 # Append the text in VALUE to the end of the definition contained in VAR. Take
    378 # advantage of any shell optimizations that allow amortized linear growth over
    379 # repeated appends, instead of the typical quadratic growth present in naive
    380 # implementations.
    381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    382   eval 'as_fn_append ()
    383   {
    384     eval $1+=\$2
    385   }'
    386 else
    387   as_fn_append ()
    388   {
    389     eval $1=\$$1\$2
    390   }
    391 fi # as_fn_append
    392 
    393 # as_fn_arith ARG...
    394 # ------------------
    395 # Perform arithmetic evaluation on the ARGs, and store the result in the
    396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    397 # must be portable across $(()) and expr.
    398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    399   eval 'as_fn_arith ()
    400   {
    401     as_val=$(( $* ))
    402   }'
    403 else
    404   as_fn_arith ()
    405   {
    406     as_val=`expr "$@" || test $? -eq 1`
    407   }
    408 fi # as_fn_arith
    409 
    410 
    411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    412 # ----------------------------------------
    413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    415 # script with STATUS, using 1 if that was 0.
    416 as_fn_error ()
    417 {
    418   as_status=$1; test $as_status -eq 0 && as_status=1
    419   if test "$4"; then
    420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    422   fi
    423   $as_echo "$as_me: error: $2" >&2
    424   as_fn_exit $as_status
    425 } # as_fn_error
    426 
    427 if expr a : '\(a\)' >/dev/null 2>&1 &&
    428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    429   as_expr=expr
    430 else
    431   as_expr=false
    432 fi
    433 
    434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    435   as_basename=basename
    436 else
    437   as_basename=false
    438 fi
    439 
    440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    441   as_dirname=dirname
    442 else
    443   as_dirname=false
    444 fi
    445 
    446 as_me=`$as_basename -- "$0" ||
    447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    448 	 X"$0" : 'X\(//\)$' \| \
    449 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    450 $as_echo X/"$0" |
    451     sed '/^.*\/\([^/][^/]*\)\/*$/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  /^X\/\(\/\/\)$/{
    456 	    s//\1/
    457 	    q
    458 	  }
    459 	  /^X\/\(\/\).*/{
    460 	    s//\1/
    461 	    q
    462 	  }
    463 	  s/.*/./; q'`
    464 
    465 # Avoid depending upon Character Ranges.
    466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    469 as_cr_digits='0123456789'
    470 as_cr_alnum=$as_cr_Letters$as_cr_digits
    471 
    472 
    473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    478   sed -n '
    479     p
    480     /[$]LINENO/=
    481   ' <$as_myself |
    482     sed '
    483       s/[$]LINENO.*/&-/
    484       t lineno
    485       b
    486       :lineno
    487       N
    488       :loop
    489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    490       t loop
    491       s/-\n.*//
    492     ' >$as_me.lineno &&
    493   chmod +x "$as_me.lineno" ||
    494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    495 
    496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    497   # already done that, so ensure we don't try to do so again and fall
    498   # in an infinite loop.  This has already happened in practice.
    499   _as_can_reexec=no; export _as_can_reexec
    500   # Don't try to exec as it changes $[0], causing all sort of problems
    501   # (the dirname of $[0] is not the place where we might find the
    502   # original and so on.  Autoconf is especially sensitive to this).
    503   . "./$as_me.lineno"
    504   # Exit status is that of the last command.
    505   exit
    506 }
    507 
    508 ECHO_C= ECHO_N= ECHO_T=
    509 case `echo -n x` in #(((((
    510 -n*)
    511   case `echo 'xy\c'` in
    512   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    513   xy)  ECHO_C='\c';;
    514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    515        ECHO_T='	';;
    516   esac;;
    517 *)
    518   ECHO_N='-n';;
    519 esac
    520 
    521 rm -f conf$$ conf$$.exe conf$$.file
    522 if test -d conf$$.dir; then
    523   rm -f conf$$.dir/conf$$.file
    524 else
    525   rm -f conf$$.dir
    526   mkdir conf$$.dir 2>/dev/null
    527 fi
    528 if (echo >conf$$.file) 2>/dev/null; then
    529   if ln -s conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s='ln -s'
    531     # ... but there are two gotchas:
    532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    534     # In both cases, we have to default to `cp -pR'.
    535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    536       as_ln_s='cp -pR'
    537   elif ln conf$$.file conf$$ 2>/dev/null; then
    538     as_ln_s=ln
    539   else
    540     as_ln_s='cp -pR'
    541   fi
    542 else
    543   as_ln_s='cp -pR'
    544 fi
    545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    546 rmdir conf$$.dir 2>/dev/null
    547 
    548 if mkdir -p . 2>/dev/null; then
    549   as_mkdir_p='mkdir -p "$as_dir"'
    550 else
    551   test -d ./-p && rmdir ./-p
    552   as_mkdir_p=false
    553 fi
    554 
    555 as_test_x='test -x'
    556 as_executable_p=as_fn_executable_p
    557 
    558 # Sed expression to map a string onto a valid CPP name.
    559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    560 
    561 # Sed expression to map a string onto a valid variable name.
    562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    563 
    564 SHELL=${CONFIG_SHELL-/bin/sh}
    565 
    566 
    567 test -n "$DJDIR" || exec 7<&0 </dev/null
    568 exec 6>&1
    569 
    570 # Name of the host.
    571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    572 # so uname gets run too.
    573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    574 
    575 #
    576 # Initializations.
    577 #
    578 ac_default_prefix=/usr/local
    579 ac_clean_files=
    580 ac_config_libobj_dir=.
    581 LIBOBJS=
    582 cross_compiling=no
    583 subdirs=
    584 MFLAGS=
    585 MAKEFLAGS=
    586 
    587 # Identity of this package.
    588 PACKAGE_NAME='libevent'
    589 PACKAGE_TARNAME='libevent'
    590 PACKAGE_VERSION='2.1.8-stable'
    591 PACKAGE_STRING='libevent 2.1.8-stable'
    592 PACKAGE_BUGREPORT=''
    593 PACKAGE_URL=''
    594 
    595 ac_unique_file="event.c"
    596 # Factoring default headers for most tests.
    597 ac_includes_default="\
    598 #include <stdio.h>
    599 #ifdef HAVE_SYS_TYPES_H
    600 # include <sys/types.h>
    601 #endif
    602 #ifdef HAVE_SYS_STAT_H
    603 # include <sys/stat.h>
    604 #endif
    605 #ifdef STDC_HEADERS
    606 # include <stdlib.h>
    607 # include <stddef.h>
    608 #else
    609 # ifdef HAVE_STDLIB_H
    610 #  include <stdlib.h>
    611 # endif
    612 #endif
    613 #ifdef HAVE_STRING_H
    614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    615 #  include <memory.h>
    616 # endif
    617 # include <string.h>
    618 #endif
    619 #ifdef HAVE_STRINGS_H
    620 # include <strings.h>
    621 #endif
    622 #ifdef HAVE_INTTYPES_H
    623 # include <inttypes.h>
    624 #endif
    625 #ifdef HAVE_STDINT_H
    626 # include <stdint.h>
    627 #endif
    628 #ifdef HAVE_UNISTD_H
    629 # include <unistd.h>
    630 #endif"
    631 
    632 ac_subst_vars='am__EXEEXT_FALSE
    633 am__EXEEXT_TRUE
    634 LTLIBOBJS
    635 INSTALL_LIBEVENT_FALSE
    636 INSTALL_LIBEVENT_TRUE
    637 LIBEVENT_GC_SECTIONS
    638 PTHREADS_FALSE
    639 PTHREADS_TRUE
    640 THREADS_FALSE
    641 THREADS_TRUE
    642 PTHREAD_CFLAGS
    643 PTHREAD_LIBS
    644 PTHREAD_CC
    645 acx_pthread_config
    646 SIGNAL_SUPPORT_FALSE
    647 SIGNAL_SUPPORT_TRUE
    648 EVPORT_BACKEND_FALSE
    649 EVPORT_BACKEND_TRUE
    650 EPOLL_BACKEND_FALSE
    651 EPOLL_BACKEND_TRUE
    652 LIBOBJS
    653 KQUEUE_BACKEND_FALSE
    654 KQUEUE_BACKEND_TRUE
    655 DEVPOLL_BACKEND_FALSE
    656 DEVPOLL_BACKEND_TRUE
    657 POLL_BACKEND_FALSE
    658 POLL_BACKEND_TRUE
    659 SELECT_BACKEND_FALSE
    660 SELECT_BACKEND_TRUE
    661 STRLCPY_IMPL_FALSE
    662 STRLCPY_IMPL_TRUE
    663 BUILD_WITH_NO_UNDEFINED_FALSE
    664 BUILD_WITH_NO_UNDEFINED_TRUE
    665 BUILD_CYGWIN_FALSE
    666 BUILD_CYGWIN_TRUE
    667 BUILD_WIN32_FALSE
    668 BUILD_WIN32_TRUE
    669 OPENSSL_FALSE
    670 OPENSSL_TRUE
    671 OPENSSL_LIBS
    672 OPENSSL_INCS
    673 PKG_CONFIG
    674 OPENSSL_LIBADD
    675 EV_LIB_GDI
    676 EV_LIB_WS32
    677 ZLIB_REGRESS_FALSE
    678 ZLIB_REGRESS_TRUE
    679 ZLIB_LIBS
    680 BUILD_REGRESS_FALSE
    681 BUILD_REGRESS_TRUE
    682 BUILD_SAMPLES_FALSE
    683 BUILD_SAMPLES_TRUE
    684 LIBTOOL_DEPS
    685 LT_SYS_LIBRARY_PATH
    686 OTOOL64
    687 OTOOL
    688 LIPO
    689 NMEDIT
    690 DSYMUTIL
    691 MANIFEST_TOOL
    692 RANLIB
    693 ac_ct_AR
    694 AR
    695 DLLTOOL
    696 OBJDUMP
    697 NM
    698 ac_ct_DUMPBIN
    699 DUMPBIN
    700 LD
    701 FGREP
    702 LIBTOOL
    703 SED
    704 LN_S
    705 host_os
    706 host_vendor
    707 host_cpu
    708 host
    709 build_os
    710 build_vendor
    711 build_cpu
    712 build
    713 EGREP
    714 GREP
    715 CPP
    716 am__fastdepCC_FALSE
    717 am__fastdepCC_TRUE
    718 CCDEPMODE
    719 am__nodep
    720 AMDEPBACKSLASH
    721 AMDEP_FALSE
    722 AMDEP_TRUE
    723 am__quote
    724 am__include
    725 DEPDIR
    726 OBJEXT
    727 EXEEXT
    728 ac_ct_CC
    729 CPPFLAGS
    730 LDFLAGS
    731 CFLAGS
    732 CC
    733 AM_BACKSLASH
    734 AM_DEFAULT_VERBOSITY
    735 AM_DEFAULT_V
    736 AM_V
    737 am__untar
    738 am__tar
    739 AMTAR
    740 am__leading_dot
    741 SET_MAKE
    742 AWK
    743 mkdir_p
    744 MKDIR_P
    745 INSTALL_STRIP_PROGRAM
    746 STRIP
    747 install_sh
    748 MAKEINFO
    749 AUTOHEADER
    750 AUTOMAKE
    751 AUTOCONF
    752 ACLOCAL
    753 VERSION
    754 PACKAGE
    755 CYGPATH_W
    756 am__isrc
    757 INSTALL_DATA
    758 INSTALL_SCRIPT
    759 INSTALL_PROGRAM
    760 target_alias
    761 host_alias
    762 build_alias
    763 LIBS
    764 ECHO_T
    765 ECHO_N
    766 ECHO_C
    767 DEFS
    768 mandir
    769 localedir
    770 libdir
    771 psdir
    772 pdfdir
    773 dvidir
    774 htmldir
    775 infodir
    776 docdir
    777 oldincludedir
    778 includedir
    779 localstatedir
    780 sharedstatedir
    781 sysconfdir
    782 datadir
    783 datarootdir
    784 libexecdir
    785 sbindir
    786 bindir
    787 program_transform_name
    788 prefix
    789 exec_prefix
    790 PACKAGE_URL
    791 PACKAGE_BUGREPORT
    792 PACKAGE_STRING
    793 PACKAGE_VERSION
    794 PACKAGE_TARNAME
    795 PACKAGE_NAME
    796 PATH_SEPARATOR
    797 SHELL'
    798 ac_subst_files=''
    799 ac_user_opts='
    800 enable_option_checking
    801 enable_silent_rules
    802 enable_dependency_tracking
    803 enable_gcc_warnings
    804 enable_gcc_hardening
    805 enable_thread_support
    806 enable_malloc_replacement
    807 enable_openssl
    808 enable_debug_mode
    809 enable_libevent_install
    810 enable_libevent_regress
    811 enable_samples
    812 enable_function_sections
    813 enable_verbose_debug
    814 enable_clock_gettime
    815 enable_shared
    816 enable_static
    817 with_pic
    818 enable_fast_install
    819 with_aix_soname
    820 with_gnu_ld
    821 with_sysroot
    822 enable_libtool_lock
    823 enable_largefile
    824 '
    825       ac_precious_vars='build_alias
    826 host_alias
    827 target_alias
    828 CC
    829 CFLAGS
    830 LDFLAGS
    831 LIBS
    832 CPPFLAGS
    833 CPP
    834 LT_SYS_LIBRARY_PATH'
    835 
    836 
    837 # Initialize some variables set by options.
    838 ac_init_help=
    839 ac_init_version=false
    840 ac_unrecognized_opts=
    841 ac_unrecognized_sep=
    842 # The variables have the same names as the options, with
    843 # dashes changed to underlines.
    844 cache_file=/dev/null
    845 exec_prefix=NONE
    846 no_create=
    847 no_recursion=
    848 prefix=NONE
    849 program_prefix=NONE
    850 program_suffix=NONE
    851 program_transform_name=s,x,x,
    852 silent=
    853 site=
    854 srcdir=
    855 verbose=
    856 x_includes=NONE
    857 x_libraries=NONE
    858 
    859 # Installation directory options.
    860 # These are left unexpanded so users can "make install exec_prefix=/foo"
    861 # and all the variables that are supposed to be based on exec_prefix
    862 # by default will actually change.
    863 # Use braces instead of parens because sh, perl, etc. also accept them.
    864 # (The list follows the same order as the GNU Coding Standards.)
    865 bindir='${exec_prefix}/bin'
    866 sbindir='${exec_prefix}/sbin'
    867 libexecdir='${exec_prefix}/libexec'
    868 datarootdir='${prefix}/share'
    869 datadir='${datarootdir}'
    870 sysconfdir='${prefix}/etc'
    871 sharedstatedir='${prefix}/com'
    872 localstatedir='${prefix}/var'
    873 includedir='${prefix}/include'
    874 oldincludedir='/usr/include'
    875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    876 infodir='${datarootdir}/info'
    877 htmldir='${docdir}'
    878 dvidir='${docdir}'
    879 pdfdir='${docdir}'
    880 psdir='${docdir}'
    881 libdir='${exec_prefix}/lib'
    882 localedir='${datarootdir}/locale'
    883 mandir='${datarootdir}/man'
    884 
    885 ac_prev=
    886 ac_dashdash=
    887 for ac_option
    888 do
    889   # If the previous option needs an argument, assign it.
    890   if test -n "$ac_prev"; then
    891     eval $ac_prev=\$ac_option
    892     ac_prev=
    893     continue
    894   fi
    895 
    896   case $ac_option in
    897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    898   *=)   ac_optarg= ;;
    899   *)    ac_optarg=yes ;;
    900   esac
    901 
    902   # Accept the important Cygnus configure options, so we can diagnose typos.
    903 
    904   case $ac_dashdash$ac_option in
    905   --)
    906     ac_dashdash=yes ;;
    907 
    908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    909     ac_prev=bindir ;;
    910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    911     bindir=$ac_optarg ;;
    912 
    913   -build | --build | --buil | --bui | --bu)
    914     ac_prev=build_alias ;;
    915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    916     build_alias=$ac_optarg ;;
    917 
    918   -cache-file | --cache-file | --cache-fil | --cache-fi \
    919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    920     ac_prev=cache_file ;;
    921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    923     cache_file=$ac_optarg ;;
    924 
    925   --config-cache | -C)
    926     cache_file=config.cache ;;
    927 
    928   -datadir | --datadir | --datadi | --datad)
    929     ac_prev=datadir ;;
    930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    931     datadir=$ac_optarg ;;
    932 
    933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    934   | --dataroo | --dataro | --datar)
    935     ac_prev=datarootdir ;;
    936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    938     datarootdir=$ac_optarg ;;
    939 
    940   -disable-* | --disable-*)
    941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    942     # Reject names that are not valid shell variable names.
    943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    944       as_fn_error $? "invalid feature name: $ac_useropt"
    945     ac_useropt_orig=$ac_useropt
    946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    947     case $ac_user_opts in
    948       *"
    949 "enable_$ac_useropt"
    950 "*) ;;
    951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    952 	 ac_unrecognized_sep=', ';;
    953     esac
    954     eval enable_$ac_useropt=no ;;
    955 
    956   -docdir | --docdir | --docdi | --doc | --do)
    957     ac_prev=docdir ;;
    958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    959     docdir=$ac_optarg ;;
    960 
    961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    962     ac_prev=dvidir ;;
    963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    964     dvidir=$ac_optarg ;;
    965 
    966   -enable-* | --enable-*)
    967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    968     # Reject names that are not valid shell variable names.
    969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    970       as_fn_error $? "invalid feature name: $ac_useropt"
    971     ac_useropt_orig=$ac_useropt
    972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    973     case $ac_user_opts in
    974       *"
    975 "enable_$ac_useropt"
    976 "*) ;;
    977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    978 	 ac_unrecognized_sep=', ';;
    979     esac
    980     eval enable_$ac_useropt=\$ac_optarg ;;
    981 
    982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    984   | --exec | --exe | --ex)
    985     ac_prev=exec_prefix ;;
    986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    988   | --exec=* | --exe=* | --ex=*)
    989     exec_prefix=$ac_optarg ;;
    990 
    991   -gas | --gas | --ga | --g)
    992     # Obsolete; use --with-gas.
    993     with_gas=yes ;;
    994 
    995   -help | --help | --hel | --he | -h)
    996     ac_init_help=long ;;
    997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    998     ac_init_help=recursive ;;
    999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1000     ac_init_help=short ;;
   1001 
   1002   -host | --host | --hos | --ho)
   1003     ac_prev=host_alias ;;
   1004   -host=* | --host=* | --hos=* | --ho=*)
   1005     host_alias=$ac_optarg ;;
   1006 
   1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1008     ac_prev=htmldir ;;
   1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1010   | --ht=*)
   1011     htmldir=$ac_optarg ;;
   1012 
   1013   -includedir | --includedir | --includedi | --included | --include \
   1014   | --includ | --inclu | --incl | --inc)
   1015     ac_prev=includedir ;;
   1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1018     includedir=$ac_optarg ;;
   1019 
   1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1021     ac_prev=infodir ;;
   1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1023     infodir=$ac_optarg ;;
   1024 
   1025   -libdir | --libdir | --libdi | --libd)
   1026     ac_prev=libdir ;;
   1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1028     libdir=$ac_optarg ;;
   1029 
   1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1031   | --libexe | --libex | --libe)
   1032     ac_prev=libexecdir ;;
   1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1034   | --libexe=* | --libex=* | --libe=*)
   1035     libexecdir=$ac_optarg ;;
   1036 
   1037   -localedir | --localedir | --localedi | --localed | --locale)
   1038     ac_prev=localedir ;;
   1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1040     localedir=$ac_optarg ;;
   1041 
   1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1043   | --localstate | --localstat | --localsta | --localst | --locals)
   1044     ac_prev=localstatedir ;;
   1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1047     localstatedir=$ac_optarg ;;
   1048 
   1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1050     ac_prev=mandir ;;
   1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1052     mandir=$ac_optarg ;;
   1053 
   1054   -nfp | --nfp | --nf)
   1055     # Obsolete; use --without-fp.
   1056     with_fp=no ;;
   1057 
   1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1059   | --no-cr | --no-c | -n)
   1060     no_create=yes ;;
   1061 
   1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1064     no_recursion=yes ;;
   1065 
   1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1068   | --oldin | --oldi | --old | --ol | --o)
   1069     ac_prev=oldincludedir ;;
   1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1073     oldincludedir=$ac_optarg ;;
   1074 
   1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1076     ac_prev=prefix ;;
   1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1078     prefix=$ac_optarg ;;
   1079 
   1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1081   | --program-pre | --program-pr | --program-p)
   1082     ac_prev=program_prefix ;;
   1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1085     program_prefix=$ac_optarg ;;
   1086 
   1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1088   | --program-suf | --program-su | --program-s)
   1089     ac_prev=program_suffix ;;
   1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1092     program_suffix=$ac_optarg ;;
   1093 
   1094   -program-transform-name | --program-transform-name \
   1095   | --program-transform-nam | --program-transform-na \
   1096   | --program-transform-n | --program-transform- \
   1097   | --program-transform | --program-transfor \
   1098   | --program-transfo | --program-transf \
   1099   | --program-trans | --program-tran \
   1100   | --progr-tra | --program-tr | --program-t)
   1101     ac_prev=program_transform_name ;;
   1102   -program-transform-name=* | --program-transform-name=* \
   1103   | --program-transform-nam=* | --program-transform-na=* \
   1104   | --program-transform-n=* | --program-transform-=* \
   1105   | --program-transform=* | --program-transfor=* \
   1106   | --program-transfo=* | --program-transf=* \
   1107   | --program-trans=* | --program-tran=* \
   1108   | --progr-tra=* | --program-tr=* | --program-t=*)
   1109     program_transform_name=$ac_optarg ;;
   1110 
   1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1112     ac_prev=pdfdir ;;
   1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1114     pdfdir=$ac_optarg ;;
   1115 
   1116   -psdir | --psdir | --psdi | --psd | --ps)
   1117     ac_prev=psdir ;;
   1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1119     psdir=$ac_optarg ;;
   1120 
   1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1122   | -silent | --silent | --silen | --sile | --sil)
   1123     silent=yes ;;
   1124 
   1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1126     ac_prev=sbindir ;;
   1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1128   | --sbi=* | --sb=*)
   1129     sbindir=$ac_optarg ;;
   1130 
   1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1133   | --sharedst | --shareds | --shared | --share | --shar \
   1134   | --sha | --sh)
   1135     ac_prev=sharedstatedir ;;
   1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1139   | --sha=* | --sh=*)
   1140     sharedstatedir=$ac_optarg ;;
   1141 
   1142   -site | --site | --sit)
   1143     ac_prev=site ;;
   1144   -site=* | --site=* | --sit=*)
   1145     site=$ac_optarg ;;
   1146 
   1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1148     ac_prev=srcdir ;;
   1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1150     srcdir=$ac_optarg ;;
   1151 
   1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1153   | --syscon | --sysco | --sysc | --sys | --sy)
   1154     ac_prev=sysconfdir ;;
   1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1157     sysconfdir=$ac_optarg ;;
   1158 
   1159   -target | --target | --targe | --targ | --tar | --ta | --t)
   1160     ac_prev=target_alias ;;
   1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1162     target_alias=$ac_optarg ;;
   1163 
   1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1165     verbose=yes ;;
   1166 
   1167   -version | --version | --versio | --versi | --vers | -V)
   1168     ac_init_version=: ;;
   1169 
   1170   -with-* | --with-*)
   1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1172     # Reject names that are not valid shell variable names.
   1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1174       as_fn_error $? "invalid package name: $ac_useropt"
   1175     ac_useropt_orig=$ac_useropt
   1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1177     case $ac_user_opts in
   1178       *"
   1179 "with_$ac_useropt"
   1180 "*) ;;
   1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1182 	 ac_unrecognized_sep=', ';;
   1183     esac
   1184     eval with_$ac_useropt=\$ac_optarg ;;
   1185 
   1186   -without-* | --without-*)
   1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1188     # Reject names that are not valid shell variable names.
   1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1190       as_fn_error $? "invalid package name: $ac_useropt"
   1191     ac_useropt_orig=$ac_useropt
   1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1193     case $ac_user_opts in
   1194       *"
   1195 "with_$ac_useropt"
   1196 "*) ;;
   1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1198 	 ac_unrecognized_sep=', ';;
   1199     esac
   1200     eval with_$ac_useropt=no ;;
   1201 
   1202   --x)
   1203     # Obsolete; use --with-x.
   1204     with_x=yes ;;
   1205 
   1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1207   | --x-incl | --x-inc | --x-in | --x-i)
   1208     ac_prev=x_includes ;;
   1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1211     x_includes=$ac_optarg ;;
   1212 
   1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1215     ac_prev=x_libraries ;;
   1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1218     x_libraries=$ac_optarg ;;
   1219 
   1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1221 Try \`$0 --help' for more information"
   1222     ;;
   1223 
   1224   *=*)
   1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1226     # Reject names that are not valid shell variable names.
   1227     case $ac_envvar in #(
   1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1230     esac
   1231     eval $ac_envvar=\$ac_optarg
   1232     export $ac_envvar ;;
   1233 
   1234   *)
   1235     # FIXME: should be removed in autoconf 3.0.
   1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1240     ;;
   1241 
   1242   esac
   1243 done
   1244 
   1245 if test -n "$ac_prev"; then
   1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1247   as_fn_error $? "missing argument to $ac_option"
   1248 fi
   1249 
   1250 if test -n "$ac_unrecognized_opts"; then
   1251   case $enable_option_checking in
   1252     no) ;;
   1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1255   esac
   1256 fi
   1257 
   1258 # Check all directory arguments for consistency.
   1259 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1260 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1261 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1262 		libdir localedir mandir
   1263 do
   1264   eval ac_val=\$$ac_var
   1265   # Remove trailing slashes.
   1266   case $ac_val in
   1267     */ )
   1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1269       eval $ac_var=\$ac_val;;
   1270   esac
   1271   # Be sure to have absolute directory names.
   1272   case $ac_val in
   1273     [\\/$]* | ?:[\\/]* )  continue;;
   1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1275   esac
   1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1277 done
   1278 
   1279 # There might be people who depend on the old broken behavior: `$host'
   1280 # used to hold the argument of --host etc.
   1281 # FIXME: To remove some day.
   1282 build=$build_alias
   1283 host=$host_alias
   1284 target=$target_alias
   1285 
   1286 # FIXME: To remove some day.
   1287 if test "x$host_alias" != x; then
   1288   if test "x$build_alias" = x; then
   1289     cross_compiling=maybe
   1290   elif test "x$build_alias" != "x$host_alias"; then
   1291     cross_compiling=yes
   1292   fi
   1293 fi
   1294 
   1295 ac_tool_prefix=
   1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1297 
   1298 test "$silent" = yes && exec 6>/dev/null
   1299 
   1300 
   1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1302 ac_ls_di=`ls -di .` &&
   1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1304   as_fn_error $? "working directory cannot be determined"
   1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1306   as_fn_error $? "pwd does not report name of working directory"
   1307 
   1308 
   1309 # Find the source files, if location was not specified.
   1310 if test -z "$srcdir"; then
   1311   ac_srcdir_defaulted=yes
   1312   # Try the directory containing this script, then the parent directory.
   1313   ac_confdir=`$as_dirname -- "$as_myself" ||
   1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1315 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1316 	 X"$as_myself" : 'X\(//\)$' \| \
   1317 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1318 $as_echo X"$as_myself" |
   1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1320 	    s//\1/
   1321 	    q
   1322 	  }
   1323 	  /^X\(\/\/\)[^/].*/{
   1324 	    s//\1/
   1325 	    q
   1326 	  }
   1327 	  /^X\(\/\/\)$/{
   1328 	    s//\1/
   1329 	    q
   1330 	  }
   1331 	  /^X\(\/\).*/{
   1332 	    s//\1/
   1333 	    q
   1334 	  }
   1335 	  s/.*/./; q'`
   1336   srcdir=$ac_confdir
   1337   if test ! -r "$srcdir/$ac_unique_file"; then
   1338     srcdir=..
   1339   fi
   1340 else
   1341   ac_srcdir_defaulted=no
   1342 fi
   1343 if test ! -r "$srcdir/$ac_unique_file"; then
   1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1346 fi
   1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1348 ac_abs_confdir=`(
   1349 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1350 	pwd)`
   1351 # When building in place, set srcdir=.
   1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1353   srcdir=.
   1354 fi
   1355 # Remove unnecessary trailing slashes from srcdir.
   1356 # Double slashes in file names in object file debugging info
   1357 # mess up M-x gdb in Emacs.
   1358 case $srcdir in
   1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1360 esac
   1361 for ac_var in $ac_precious_vars; do
   1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1363   eval ac_env_${ac_var}_value=\$${ac_var}
   1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1366 done
   1367 
   1368 #
   1369 # Report the --help message.
   1370 #
   1371 if test "$ac_init_help" = "long"; then
   1372   # Omit some internal or obsolete options to make the list less imposing.
   1373   # This message is too long to be a string in the A/UX 3.1 sh.
   1374   cat <<_ACEOF
   1375 \`configure' configures libevent 2.1.8-stable to adapt to many kinds of systems.
   1376 
   1377 Usage: $0 [OPTION]... [VAR=VALUE]...
   1378 
   1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1381 
   1382 Defaults for the options are specified in brackets.
   1383 
   1384 Configuration:
   1385   -h, --help              display this help and exit
   1386       --help=short        display options specific to this package
   1387       --help=recursive    display the short help of all the included packages
   1388   -V, --version           display version information and exit
   1389   -q, --quiet, --silent   do not print \`checking ...' messages
   1390       --cache-file=FILE   cache test results in FILE [disabled]
   1391   -C, --config-cache      alias for \`--cache-file=config.cache'
   1392   -n, --no-create         do not create output files
   1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1394 
   1395 Installation directories:
   1396   --prefix=PREFIX         install architecture-independent files in PREFIX
   1397                           [$ac_default_prefix]
   1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1399                           [PREFIX]
   1400 
   1401 By default, \`make install' will install all the files in
   1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1404 for instance \`--prefix=\$HOME'.
   1405 
   1406 For better control, use the options below.
   1407 
   1408 Fine tuning of the installation directories:
   1409   --bindir=DIR            user executables [EPREFIX/bin]
   1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1415   --libdir=DIR            object code libraries [EPREFIX/lib]
   1416   --includedir=DIR        C header files [PREFIX/include]
   1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
   1424   --htmldir=DIR           html documentation [DOCDIR]
   1425   --dvidir=DIR            dvi documentation [DOCDIR]
   1426   --pdfdir=DIR            pdf documentation [DOCDIR]
   1427   --psdir=DIR             ps documentation [DOCDIR]
   1428 _ACEOF
   1429 
   1430   cat <<\_ACEOF
   1431 
   1432 Program names:
   1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1436 
   1437 System types:
   1438   --build=BUILD     configure for building on BUILD [guessed]
   1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1440 _ACEOF
   1441 fi
   1442 
   1443 if test -n "$ac_init_help"; then
   1444   case $ac_init_help in
   1445      short | recursive ) echo "Configuration of libevent 2.1.8-stable:";;
   1446    esac
   1447   cat <<\_ACEOF
   1448 
   1449 Optional Features:
   1450   --disable-option-checking  ignore unrecognized --enable/--with options
   1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1453   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1454   --disable-silent-rules  verbose build output (undo: "make V=0")
   1455   --enable-dependency-tracking
   1456                           do not reject slow dependency extractors
   1457   --disable-dependency-tracking
   1458                           speeds up one-time build
   1459   --disable-gcc-warnings  disable verbose warnings with GCC
   1460   --enable-gcc-hardening  enable compiler security checks
   1461   --disable-thread-support
   1462                           disable support for threading
   1463   --disable-malloc-replacement
   1464                           disable support for replacing the memory mgt
   1465                           functions
   1466   --disable-openssl       disable support for openssl encryption
   1467   --disable-debug-mode    disable support for running in debug mode
   1468   --disable-libevent-install, disable installation of libevent
   1469 
   1470   --disable-libevent-regress, skip regress in make check
   1471 
   1472   --disable-samples, skip building of sample programs
   1473 
   1474   --enable-function-sections, make static library allow smaller binaries with --gc-sections
   1475 
   1476   --enable-verbose-debug, verbose debug logging
   1477 
   1478   --disable-clock-gettime do not use clock_gettime even if it is available
   1479   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1480   --enable-static[=PKGS]  build static libraries [default=yes]
   1481   --enable-fast-install[=PKGS]
   1482                           optimize for fast installation [default=yes]
   1483   --disable-libtool-lock  avoid locking (might break parallel builds)
   1484   --disable-largefile     omit support for large files
   1485 
   1486 Optional Packages:
   1487   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1488   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1489   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1490                           both]
   1491   --with-aix-soname=aix|svr4|both
   1492                           shared library versioning (aka "SONAME") variant to
   1493                           provide on AIX, [default=aix].
   1494   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1495   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1496                           compiler's sysroot if not specified).
   1497 
   1498 Some influential environment variables:
   1499   CC          C compiler command
   1500   CFLAGS      C compiler flags
   1501   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1502               nonstandard directory <lib dir>
   1503   LIBS        libraries to pass to the linker, e.g. -l<library>
   1504   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1505               you have headers in a nonstandard directory <include dir>
   1506   CPP         C preprocessor
   1507   LT_SYS_LIBRARY_PATH
   1508               User-defined run-time library search path.
   1509 
   1510 Use these variables to override the choices made by `configure' or to help
   1511 it to find libraries and programs with nonstandard names/locations.
   1512 
   1513 Report bugs to the package provider.
   1514 _ACEOF
   1515 ac_status=$?
   1516 fi
   1517 
   1518 if test "$ac_init_help" = "recursive"; then
   1519   # If there are subdirs, report their specific --help.
   1520   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1521     test -d "$ac_dir" ||
   1522       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1523       continue
   1524     ac_builddir=.
   1525 
   1526 case "$ac_dir" in
   1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1528 *)
   1529   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1530   # A ".." for each directory in $ac_dir_suffix.
   1531   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1532   case $ac_top_builddir_sub in
   1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1535   esac ;;
   1536 esac
   1537 ac_abs_top_builddir=$ac_pwd
   1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1539 # for backward compatibility:
   1540 ac_top_builddir=$ac_top_build_prefix
   1541 
   1542 case $srcdir in
   1543   .)  # We are building in place.
   1544     ac_srcdir=.
   1545     ac_top_srcdir=$ac_top_builddir_sub
   1546     ac_abs_top_srcdir=$ac_pwd ;;
   1547   [\\/]* | ?:[\\/]* )  # Absolute name.
   1548     ac_srcdir=$srcdir$ac_dir_suffix;
   1549     ac_top_srcdir=$srcdir
   1550     ac_abs_top_srcdir=$srcdir ;;
   1551   *) # Relative name.
   1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1555 esac
   1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1557 
   1558     cd "$ac_dir" || { ac_status=$?; continue; }
   1559     # Check for guested configure.
   1560     if test -f "$ac_srcdir/configure.gnu"; then
   1561       echo &&
   1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1563     elif test -f "$ac_srcdir/configure"; then
   1564       echo &&
   1565       $SHELL "$ac_srcdir/configure" --help=recursive
   1566     else
   1567       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1568     fi || ac_status=$?
   1569     cd "$ac_pwd" || { ac_status=$?; break; }
   1570   done
   1571 fi
   1572 
   1573 test -n "$ac_init_help" && exit $ac_status
   1574 if $ac_init_version; then
   1575   cat <<\_ACEOF
   1576 libevent configure 2.1.8-stable
   1577 generated by GNU Autoconf 2.69
   1578 
   1579 Copyright (C) 2012 Free Software Foundation, Inc.
   1580 This configure script is free software; the Free Software Foundation
   1581 gives unlimited permission to copy, distribute and modify it.
   1582 _ACEOF
   1583   exit
   1584 fi
   1585 
   1586 ## ------------------------ ##
   1587 ## Autoconf initialization. ##
   1588 ## ------------------------ ##
   1589 
   1590 # ac_fn_c_try_compile LINENO
   1591 # --------------------------
   1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1593 ac_fn_c_try_compile ()
   1594 {
   1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1596   rm -f conftest.$ac_objext
   1597   if { { ac_try="$ac_compile"
   1598 case "(($ac_try" in
   1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1600   *) ac_try_echo=$ac_try;;
   1601 esac
   1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1603 $as_echo "$ac_try_echo"; } >&5
   1604   (eval "$ac_compile") 2>conftest.err
   1605   ac_status=$?
   1606   if test -s conftest.err; then
   1607     grep -v '^ *+' conftest.err >conftest.er1
   1608     cat conftest.er1 >&5
   1609     mv -f conftest.er1 conftest.err
   1610   fi
   1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1612   test $ac_status = 0; } && {
   1613 	 test -z "$ac_c_werror_flag" ||
   1614 	 test ! -s conftest.err
   1615        } && test -s conftest.$ac_objext; then :
   1616   ac_retval=0
   1617 else
   1618   $as_echo "$as_me: failed program was:" >&5
   1619 sed 's/^/| /' conftest.$ac_ext >&5
   1620 
   1621 	ac_retval=1
   1622 fi
   1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1624   as_fn_set_status $ac_retval
   1625 
   1626 } # ac_fn_c_try_compile
   1627 
   1628 # ac_fn_c_try_cpp LINENO
   1629 # ----------------------
   1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1631 ac_fn_c_try_cpp ()
   1632 {
   1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1634   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1635 case "(($ac_try" in
   1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1637   *) ac_try_echo=$ac_try;;
   1638 esac
   1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1640 $as_echo "$ac_try_echo"; } >&5
   1641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1642   ac_status=$?
   1643   if test -s conftest.err; then
   1644     grep -v '^ *+' conftest.err >conftest.er1
   1645     cat conftest.er1 >&5
   1646     mv -f conftest.er1 conftest.err
   1647   fi
   1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1649   test $ac_status = 0; } > conftest.i && {
   1650 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1651 	 test ! -s conftest.err
   1652        }; then :
   1653   ac_retval=0
   1654 else
   1655   $as_echo "$as_me: failed program was:" >&5
   1656 sed 's/^/| /' conftest.$ac_ext >&5
   1657 
   1658     ac_retval=1
   1659 fi
   1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1661   as_fn_set_status $ac_retval
   1662 
   1663 } # ac_fn_c_try_cpp
   1664 
   1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1666 # -------------------------------------------------------
   1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1668 # the include files in INCLUDES and setting the cache variable VAR
   1669 # accordingly.
   1670 ac_fn_c_check_header_mongrel ()
   1671 {
   1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1673   if eval \${$3+:} false; then :
   1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1675 $as_echo_n "checking for $2... " >&6; }
   1676 if eval \${$3+:} false; then :
   1677   $as_echo_n "(cached) " >&6
   1678 fi
   1679 eval ac_res=\$$3
   1680 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1681 $as_echo "$ac_res" >&6; }
   1682 else
   1683   # Is the header compilable?
   1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1685 $as_echo_n "checking $2 usability... " >&6; }
   1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1687 /* end confdefs.h.  */
   1688 $4
   1689 #include <$2>
   1690 _ACEOF
   1691 if ac_fn_c_try_compile "$LINENO"; then :
   1692   ac_header_compiler=yes
   1693 else
   1694   ac_header_compiler=no
   1695 fi
   1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1698 $as_echo "$ac_header_compiler" >&6; }
   1699 
   1700 # Is the header present?
   1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1702 $as_echo_n "checking $2 presence... " >&6; }
   1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1704 /* end confdefs.h.  */
   1705 #include <$2>
   1706 _ACEOF
   1707 if ac_fn_c_try_cpp "$LINENO"; then :
   1708   ac_header_preproc=yes
   1709 else
   1710   ac_header_preproc=no
   1711 fi
   1712 rm -f conftest.err conftest.i conftest.$ac_ext
   1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1714 $as_echo "$ac_header_preproc" >&6; }
   1715 
   1716 # So?  What about this header?
   1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1718   yes:no: )
   1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1723     ;;
   1724   no:yes:* )
   1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1728 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1732 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1735     ;;
   1736 esac
   1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1738 $as_echo_n "checking for $2... " >&6; }
   1739 if eval \${$3+:} false; then :
   1740   $as_echo_n "(cached) " >&6
   1741 else
   1742   eval "$3=\$ac_header_compiler"
   1743 fi
   1744 eval ac_res=\$$3
   1745 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1746 $as_echo "$ac_res" >&6; }
   1747 fi
   1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1749 
   1750 } # ac_fn_c_check_header_mongrel
   1751 
   1752 # ac_fn_c_try_run LINENO
   1753 # ----------------------
   1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1755 # that executables *can* be run.
   1756 ac_fn_c_try_run ()
   1757 {
   1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1759   if { { ac_try="$ac_link"
   1760 case "(($ac_try" in
   1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1762   *) ac_try_echo=$ac_try;;
   1763 esac
   1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1765 $as_echo "$ac_try_echo"; } >&5
   1766   (eval "$ac_link") 2>&5
   1767   ac_status=$?
   1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1769   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1770   { { case "(($ac_try" in
   1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1772   *) ac_try_echo=$ac_try;;
   1773 esac
   1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1775 $as_echo "$ac_try_echo"; } >&5
   1776   (eval "$ac_try") 2>&5
   1777   ac_status=$?
   1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1779   test $ac_status = 0; }; }; then :
   1780   ac_retval=0
   1781 else
   1782   $as_echo "$as_me: program exited with status $ac_status" >&5
   1783        $as_echo "$as_me: failed program was:" >&5
   1784 sed 's/^/| /' conftest.$ac_ext >&5
   1785 
   1786        ac_retval=$ac_status
   1787 fi
   1788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1790   as_fn_set_status $ac_retval
   1791 
   1792 } # ac_fn_c_try_run
   1793 
   1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1795 # -------------------------------------------------------
   1796 # Tests whether HEADER exists and can be compiled using the include files in
   1797 # INCLUDES, setting the cache variable VAR accordingly.
   1798 ac_fn_c_check_header_compile ()
   1799 {
   1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1802 $as_echo_n "checking for $2... " >&6; }
   1803 if eval \${$3+:} false; then :
   1804   $as_echo_n "(cached) " >&6
   1805 else
   1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1807 /* end confdefs.h.  */
   1808 $4
   1809 #include <$2>
   1810 _ACEOF
   1811 if ac_fn_c_try_compile "$LINENO"; then :
   1812   eval "$3=yes"
   1813 else
   1814   eval "$3=no"
   1815 fi
   1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1817 fi
   1818 eval ac_res=\$$3
   1819 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1820 $as_echo "$ac_res" >&6; }
   1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1822 
   1823 } # ac_fn_c_check_header_compile
   1824 
   1825 # ac_fn_c_try_link LINENO
   1826 # -----------------------
   1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1828 ac_fn_c_try_link ()
   1829 {
   1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1831   rm -f conftest.$ac_objext conftest$ac_exeext
   1832   if { { ac_try="$ac_link"
   1833 case "(($ac_try" in
   1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1835   *) ac_try_echo=$ac_try;;
   1836 esac
   1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1838 $as_echo "$ac_try_echo"; } >&5
   1839   (eval "$ac_link") 2>conftest.err
   1840   ac_status=$?
   1841   if test -s conftest.err; then
   1842     grep -v '^ *+' conftest.err >conftest.er1
   1843     cat conftest.er1 >&5
   1844     mv -f conftest.er1 conftest.err
   1845   fi
   1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1847   test $ac_status = 0; } && {
   1848 	 test -z "$ac_c_werror_flag" ||
   1849 	 test ! -s conftest.err
   1850        } && test -s conftest$ac_exeext && {
   1851 	 test "$cross_compiling" = yes ||
   1852 	 test -x conftest$ac_exeext
   1853        }; then :
   1854   ac_retval=0
   1855 else
   1856   $as_echo "$as_me: failed program was:" >&5
   1857 sed 's/^/| /' conftest.$ac_ext >&5
   1858 
   1859 	ac_retval=1
   1860 fi
   1861   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1862   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1863   # interfere with the next link command; also delete a directory that is
   1864   # left behind by Apple's compiler.  We do this before executing the actions.
   1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1867   as_fn_set_status $ac_retval
   1868 
   1869 } # ac_fn_c_try_link
   1870 
   1871 # ac_fn_c_check_func LINENO FUNC VAR
   1872 # ----------------------------------
   1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1874 ac_fn_c_check_func ()
   1875 {
   1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1878 $as_echo_n "checking for $2... " >&6; }
   1879 if eval \${$3+:} false; then :
   1880   $as_echo_n "(cached) " >&6
   1881 else
   1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1883 /* end confdefs.h.  */
   1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1886 #define $2 innocuous_$2
   1887 
   1888 /* System header to define __stub macros and hopefully few prototypes,
   1889     which can conflict with char $2 (); below.
   1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1891     <limits.h> exists even on freestanding compilers.  */
   1892 
   1893 #ifdef __STDC__
   1894 # include <limits.h>
   1895 #else
   1896 # include <assert.h>
   1897 #endif
   1898 
   1899 #undef $2
   1900 
   1901 /* Override any GCC internal prototype to avoid an error.
   1902    Use char because int might match the return type of a GCC
   1903    builtin and then its argument prototype would still apply.  */
   1904 #ifdef __cplusplus
   1905 extern "C"
   1906 #endif
   1907 char $2 ();
   1908 /* The GNU C library defines this for functions which it implements
   1909     to always fail with ENOSYS.  Some functions are actually named
   1910     something starting with __ and the normal name is an alias.  */
   1911 #if defined __stub_$2 || defined __stub___$2
   1912 choke me
   1913 #endif
   1914 
   1915 int
   1916 main ()
   1917 {
   1918 return $2 ();
   1919   ;
   1920   return 0;
   1921 }
   1922 _ACEOF
   1923 if ac_fn_c_try_link "$LINENO"; then :
   1924   eval "$3=yes"
   1925 else
   1926   eval "$3=no"
   1927 fi
   1928 rm -f core conftest.err conftest.$ac_objext \
   1929     conftest$ac_exeext conftest.$ac_ext
   1930 fi
   1931 eval ac_res=\$$3
   1932 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1933 $as_echo "$ac_res" >&6; }
   1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1935 
   1936 } # ac_fn_c_check_func
   1937 
   1938 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1939 # ---------------------------------------------
   1940 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1941 # accordingly.
   1942 ac_fn_c_check_decl ()
   1943 {
   1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1945   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1946   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1948 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1949 if eval \${$3+:} false; then :
   1950   $as_echo_n "(cached) " >&6
   1951 else
   1952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1953 /* end confdefs.h.  */
   1954 $4
   1955 int
   1956 main ()
   1957 {
   1958 #ifndef $as_decl_name
   1959 #ifdef __cplusplus
   1960   (void) $as_decl_use;
   1961 #else
   1962   (void) $as_decl_name;
   1963 #endif
   1964 #endif
   1965 
   1966   ;
   1967   return 0;
   1968 }
   1969 _ACEOF
   1970 if ac_fn_c_try_compile "$LINENO"; then :
   1971   eval "$3=yes"
   1972 else
   1973   eval "$3=no"
   1974 fi
   1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1976 fi
   1977 eval ac_res=\$$3
   1978 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1979 $as_echo "$ac_res" >&6; }
   1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1981 
   1982 } # ac_fn_c_check_decl
   1983 
   1984 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1985 # -------------------------------------------
   1986 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1987 # variable VAR accordingly.
   1988 ac_fn_c_check_type ()
   1989 {
   1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1992 $as_echo_n "checking for $2... " >&6; }
   1993 if eval \${$3+:} false; then :
   1994   $as_echo_n "(cached) " >&6
   1995 else
   1996   eval "$3=no"
   1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1998 /* end confdefs.h.  */
   1999 $4
   2000 int
   2001 main ()
   2002 {
   2003 if (sizeof ($2))
   2004 	 return 0;
   2005   ;
   2006   return 0;
   2007 }
   2008 _ACEOF
   2009 if ac_fn_c_try_compile "$LINENO"; then :
   2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2011 /* end confdefs.h.  */
   2012 $4
   2013 int
   2014 main ()
   2015 {
   2016 if (sizeof (($2)))
   2017 	    return 0;
   2018   ;
   2019   return 0;
   2020 }
   2021 _ACEOF
   2022 if ac_fn_c_try_compile "$LINENO"; then :
   2023 
   2024 else
   2025   eval "$3=yes"
   2026 fi
   2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2028 fi
   2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2030 fi
   2031 eval ac_res=\$$3
   2032 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2033 $as_echo "$ac_res" >&6; }
   2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2035 
   2036 } # ac_fn_c_check_type
   2037 
   2038 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2039 # --------------------------------------------
   2040 # Tries to find the compile-time value of EXPR in a program that includes
   2041 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2042 # computed
   2043 ac_fn_c_compute_int ()
   2044 {
   2045   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2046   if test "$cross_compiling" = yes; then
   2047     # Depending upon the size, compute the lo and hi bounds.
   2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2049 /* end confdefs.h.  */
   2050 $4
   2051 int
   2052 main ()
   2053 {
   2054 static int test_array [1 - 2 * !(($2) >= 0)];
   2055 test_array [0] = 0;
   2056 return test_array [0];
   2057 
   2058   ;
   2059   return 0;
   2060 }
   2061 _ACEOF
   2062 if ac_fn_c_try_compile "$LINENO"; then :
   2063   ac_lo=0 ac_mid=0
   2064   while :; do
   2065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2066 /* end confdefs.h.  */
   2067 $4
   2068 int
   2069 main ()
   2070 {
   2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2072 test_array [0] = 0;
   2073 return test_array [0];
   2074 
   2075   ;
   2076   return 0;
   2077 }
   2078 _ACEOF
   2079 if ac_fn_c_try_compile "$LINENO"; then :
   2080   ac_hi=$ac_mid; break
   2081 else
   2082   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2083 			if test $ac_lo -le $ac_mid; then
   2084 			  ac_lo= ac_hi=
   2085 			  break
   2086 			fi
   2087 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2088 fi
   2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2090   done
   2091 else
   2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2093 /* end confdefs.h.  */
   2094 $4
   2095 int
   2096 main ()
   2097 {
   2098 static int test_array [1 - 2 * !(($2) < 0)];
   2099 test_array [0] = 0;
   2100 return test_array [0];
   2101 
   2102   ;
   2103   return 0;
   2104 }
   2105 _ACEOF
   2106 if ac_fn_c_try_compile "$LINENO"; then :
   2107   ac_hi=-1 ac_mid=-1
   2108   while :; do
   2109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2110 /* end confdefs.h.  */
   2111 $4
   2112 int
   2113 main ()
   2114 {
   2115 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2116 test_array [0] = 0;
   2117 return test_array [0];
   2118 
   2119   ;
   2120   return 0;
   2121 }
   2122 _ACEOF
   2123 if ac_fn_c_try_compile "$LINENO"; then :
   2124   ac_lo=$ac_mid; break
   2125 else
   2126   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2127 			if test $ac_mid -le $ac_hi; then
   2128 			  ac_lo= ac_hi=
   2129 			  break
   2130 			fi
   2131 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2132 fi
   2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2134   done
   2135 else
   2136   ac_lo= ac_hi=
   2137 fi
   2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2139 fi
   2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2141 # Binary search between lo and hi bounds.
   2142 while test "x$ac_lo" != "x$ac_hi"; do
   2143   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2145 /* end confdefs.h.  */
   2146 $4
   2147 int
   2148 main ()
   2149 {
   2150 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2151 test_array [0] = 0;
   2152 return test_array [0];
   2153 
   2154   ;
   2155   return 0;
   2156 }
   2157 _ACEOF
   2158 if ac_fn_c_try_compile "$LINENO"; then :
   2159   ac_hi=$ac_mid
   2160 else
   2161   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2162 fi
   2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2164 done
   2165 case $ac_lo in #((
   2166 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2167 '') ac_retval=1 ;;
   2168 esac
   2169   else
   2170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2171 /* end confdefs.h.  */
   2172 $4
   2173 static long int longval () { return $2; }
   2174 static unsigned long int ulongval () { return $2; }
   2175 #include <stdio.h>
   2176 #include <stdlib.h>
   2177 int
   2178 main ()
   2179 {
   2180 
   2181   FILE *f = fopen ("conftest.val", "w");
   2182   if (! f)
   2183     return 1;
   2184   if (($2) < 0)
   2185     {
   2186       long int i = longval ();
   2187       if (i != ($2))
   2188 	return 1;
   2189       fprintf (f, "%ld", i);
   2190     }
   2191   else
   2192     {
   2193       unsigned long int i = ulongval ();
   2194       if (i != ($2))
   2195 	return 1;
   2196       fprintf (f, "%lu", i);
   2197     }
   2198   /* Do not output a trailing newline, as this causes \r\n confusion
   2199      on some platforms.  */
   2200   return ferror (f) || fclose (f) != 0;
   2201 
   2202   ;
   2203   return 0;
   2204 }
   2205 _ACEOF
   2206 if ac_fn_c_try_run "$LINENO"; then :
   2207   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2208 else
   2209   ac_retval=1
   2210 fi
   2211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2212   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2213 rm -f conftest.val
   2214 
   2215   fi
   2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2217   as_fn_set_status $ac_retval
   2218 
   2219 } # ac_fn_c_compute_int
   2220 
   2221 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2222 # ----------------------------------------------------
   2223 # Tries to find if the field MEMBER exists in type AGGR, after including
   2224 # INCLUDES, setting cache variable VAR accordingly.
   2225 ac_fn_c_check_member ()
   2226 {
   2227   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2229 $as_echo_n "checking for $2.$3... " >&6; }
   2230 if eval \${$4+:} false; then :
   2231   $as_echo_n "(cached) " >&6
   2232 else
   2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2234 /* end confdefs.h.  */
   2235 $5
   2236 int
   2237 main ()
   2238 {
   2239 static $2 ac_aggr;
   2240 if (ac_aggr.$3)
   2241 return 0;
   2242   ;
   2243   return 0;
   2244 }
   2245 _ACEOF
   2246 if ac_fn_c_try_compile "$LINENO"; then :
   2247   eval "$4=yes"
   2248 else
   2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2250 /* end confdefs.h.  */
   2251 $5
   2252 int
   2253 main ()
   2254 {
   2255 static $2 ac_aggr;
   2256 if (sizeof ac_aggr.$3)
   2257 return 0;
   2258   ;
   2259   return 0;
   2260 }
   2261 _ACEOF
   2262 if ac_fn_c_try_compile "$LINENO"; then :
   2263   eval "$4=yes"
   2264 else
   2265   eval "$4=no"
   2266 fi
   2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2268 fi
   2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2270 fi
   2271 eval ac_res=\$$4
   2272 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2273 $as_echo "$ac_res" >&6; }
   2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2275 
   2276 } # ac_fn_c_check_member
   2277 cat >config.log <<_ACEOF
   2278 This file contains any messages produced by compilers while
   2279 running configure, to aid debugging if configure makes a mistake.
   2280 
   2281 It was created by libevent $as_me 2.1.8-stable, which was
   2282 generated by GNU Autoconf 2.69.  Invocation command line was
   2283 
   2284   $ $0 $@
   2285 
   2286 _ACEOF
   2287 exec 5>>config.log
   2288 {
   2289 cat <<_ASUNAME
   2290 ## --------- ##
   2291 ## Platform. ##
   2292 ## --------- ##
   2293 
   2294 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2295 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2296 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2297 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2298 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2299 
   2300 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2301 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2302 
   2303 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2304 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2305 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2306 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2307 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2308 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2309 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2310 
   2311 _ASUNAME
   2312 
   2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2314 for as_dir in $PATH
   2315 do
   2316   IFS=$as_save_IFS
   2317   test -z "$as_dir" && as_dir=.
   2318     $as_echo "PATH: $as_dir"
   2319   done
   2320 IFS=$as_save_IFS
   2321 
   2322 } >&5
   2323 
   2324 cat >&5 <<_ACEOF
   2325 
   2326 
   2327 ## ----------- ##
   2328 ## Core tests. ##
   2329 ## ----------- ##
   2330 
   2331 _ACEOF
   2332 
   2333 
   2334 # Keep a trace of the command line.
   2335 # Strip out --no-create and --no-recursion so they do not pile up.
   2336 # Strip out --silent because we don't want to record it for future runs.
   2337 # Also quote any args containing shell meta-characters.
   2338 # Make two passes to allow for proper duplicate-argument suppression.
   2339 ac_configure_args=
   2340 ac_configure_args0=
   2341 ac_configure_args1=
   2342 ac_must_keep_next=false
   2343 for ac_pass in 1 2
   2344 do
   2345   for ac_arg
   2346   do
   2347     case $ac_arg in
   2348     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2349     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2350     | -silent | --silent | --silen | --sile | --sil)
   2351       continue ;;
   2352     *\'*)
   2353       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2354     esac
   2355     case $ac_pass in
   2356     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2357     2)
   2358       as_fn_append ac_configure_args1 " '$ac_arg'"
   2359       if test $ac_must_keep_next = true; then
   2360 	ac_must_keep_next=false # Got value, back to normal.
   2361       else
   2362 	case $ac_arg in
   2363 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2364 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2365 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2366 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2367 	    case "$ac_configure_args0 " in
   2368 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2369 	    esac
   2370 	    ;;
   2371 	  -* ) ac_must_keep_next=true ;;
   2372 	esac
   2373       fi
   2374       as_fn_append ac_configure_args " '$ac_arg'"
   2375       ;;
   2376     esac
   2377   done
   2378 done
   2379 { ac_configure_args0=; unset ac_configure_args0;}
   2380 { ac_configure_args1=; unset ac_configure_args1;}
   2381 
   2382 # When interrupted or exit'd, cleanup temporary files, and complete
   2383 # config.log.  We remove comments because anyway the quotes in there
   2384 # would cause problems or look ugly.
   2385 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2386 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2387 trap 'exit_status=$?
   2388   # Save into config.log some information that might help in debugging.
   2389   {
   2390     echo
   2391 
   2392     $as_echo "## ---------------- ##
   2393 ## Cache variables. ##
   2394 ## ---------------- ##"
   2395     echo
   2396     # The following way of writing the cache mishandles newlines in values,
   2397 (
   2398   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2399     eval ac_val=\$$ac_var
   2400     case $ac_val in #(
   2401     *${as_nl}*)
   2402       case $ac_var in #(
   2403       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2405       esac
   2406       case $ac_var in #(
   2407       _ | IFS | as_nl) ;; #(
   2408       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2409       *) { eval $ac_var=; unset $ac_var;} ;;
   2410       esac ;;
   2411     esac
   2412   done
   2413   (set) 2>&1 |
   2414     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2415     *${as_nl}ac_space=\ *)
   2416       sed -n \
   2417 	"s/'\''/'\''\\\\'\'''\''/g;
   2418 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2419       ;; #(
   2420     *)
   2421       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2422       ;;
   2423     esac |
   2424     sort
   2425 )
   2426     echo
   2427 
   2428     $as_echo "## ----------------- ##
   2429 ## Output variables. ##
   2430 ## ----------------- ##"
   2431     echo
   2432     for ac_var in $ac_subst_vars
   2433     do
   2434       eval ac_val=\$$ac_var
   2435       case $ac_val in
   2436       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2437       esac
   2438       $as_echo "$ac_var='\''$ac_val'\''"
   2439     done | sort
   2440     echo
   2441 
   2442     if test -n "$ac_subst_files"; then
   2443       $as_echo "## ------------------- ##
   2444 ## File substitutions. ##
   2445 ## ------------------- ##"
   2446       echo
   2447       for ac_var in $ac_subst_files
   2448       do
   2449 	eval ac_val=\$$ac_var
   2450 	case $ac_val in
   2451 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2452 	esac
   2453 	$as_echo "$ac_var='\''$ac_val'\''"
   2454       done | sort
   2455       echo
   2456     fi
   2457 
   2458     if test -s confdefs.h; then
   2459       $as_echo "## ----------- ##
   2460 ## confdefs.h. ##
   2461 ## ----------- ##"
   2462       echo
   2463       cat confdefs.h
   2464       echo
   2465     fi
   2466     test "$ac_signal" != 0 &&
   2467       $as_echo "$as_me: caught signal $ac_signal"
   2468     $as_echo "$as_me: exit $exit_status"
   2469   } >&5
   2470   rm -f core *.core core.conftest.* &&
   2471     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2472     exit $exit_status
   2473 ' 0
   2474 for ac_signal in 1 2 13 15; do
   2475   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2476 done
   2477 ac_signal=0
   2478 
   2479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2480 rm -f -r conftest* confdefs.h
   2481 
   2482 $as_echo "/* confdefs.h */" > confdefs.h
   2483 
   2484 # Predefined preprocessor variables.
   2485 
   2486 cat >>confdefs.h <<_ACEOF
   2487 #define PACKAGE_NAME "$PACKAGE_NAME"
   2488 _ACEOF
   2489 
   2490 cat >>confdefs.h <<_ACEOF
   2491 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2492 _ACEOF
   2493 
   2494 cat >>confdefs.h <<_ACEOF
   2495 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2496 _ACEOF
   2497 
   2498 cat >>confdefs.h <<_ACEOF
   2499 #define PACKAGE_STRING "$PACKAGE_STRING"
   2500 _ACEOF
   2501 
   2502 cat >>confdefs.h <<_ACEOF
   2503 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2504 _ACEOF
   2505 
   2506 cat >>confdefs.h <<_ACEOF
   2507 #define PACKAGE_URL "$PACKAGE_URL"
   2508 _ACEOF
   2509 
   2510 
   2511 # Let the site file select an alternate cache file if it wants to.
   2512 # Prefer an explicitly selected file to automatically selected ones.
   2513 ac_site_file1=NONE
   2514 ac_site_file2=NONE
   2515 if test -n "$CONFIG_SITE"; then
   2516   # We do not want a PATH search for config.site.
   2517   case $CONFIG_SITE in #((
   2518     -*)  ac_site_file1=./$CONFIG_SITE;;
   2519     */*) ac_site_file1=$CONFIG_SITE;;
   2520     *)   ac_site_file1=./$CONFIG_SITE;;
   2521   esac
   2522 elif test "x$prefix" != xNONE; then
   2523   ac_site_file1=$prefix/share/config.site
   2524   ac_site_file2=$prefix/etc/config.site
   2525 else
   2526   ac_site_file1=$ac_default_prefix/share/config.site
   2527   ac_site_file2=$ac_default_prefix/etc/config.site
   2528 fi
   2529 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2530 do
   2531   test "x$ac_site_file" = xNONE && continue
   2532   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2533     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2534 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2535     sed 's/^/| /' "$ac_site_file" >&5
   2536     . "$ac_site_file" \
   2537       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2539 as_fn_error $? "failed to load site script $ac_site_file
   2540 See \`config.log' for more details" "$LINENO" 5; }
   2541   fi
   2542 done
   2543 
   2544 if test -r "$cache_file"; then
   2545   # Some versions of bash will fail to source /dev/null (special files
   2546   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2547   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2548     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2549 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2550     case $cache_file in
   2551       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2552       *)                      . "./$cache_file";;
   2553     esac
   2554   fi
   2555 else
   2556   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2557 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2558   >$cache_file
   2559 fi
   2560 
   2561 # Check that the precious variables saved in the cache have kept the same
   2562 # value.
   2563 ac_cache_corrupted=false
   2564 for ac_var in $ac_precious_vars; do
   2565   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2566   eval ac_new_set=\$ac_env_${ac_var}_set
   2567   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2568   eval ac_new_val=\$ac_env_${ac_var}_value
   2569   case $ac_old_set,$ac_new_set in
   2570     set,)
   2571       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2572 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2573       ac_cache_corrupted=: ;;
   2574     ,set)
   2575       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2576 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2577       ac_cache_corrupted=: ;;
   2578     ,);;
   2579     *)
   2580       if test "x$ac_old_val" != "x$ac_new_val"; then
   2581 	# differences in whitespace do not lead to failure.
   2582 	ac_old_val_w=`echo x $ac_old_val`
   2583 	ac_new_val_w=`echo x $ac_new_val`
   2584 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2585 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2586 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2587 	  ac_cache_corrupted=:
   2588 	else
   2589 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2590 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2591 	  eval $ac_var=\$ac_old_val
   2592 	fi
   2593 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2594 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2595 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2596 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2597       fi;;
   2598   esac
   2599   # Pass precious variables to config.status.
   2600   if test "$ac_new_set" = set; then
   2601     case $ac_new_val in
   2602     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2603     *) ac_arg=$ac_var=$ac_new_val ;;
   2604     esac
   2605     case " $ac_configure_args " in
   2606       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2607       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2608     esac
   2609   fi
   2610 done
   2611 if $ac_cache_corrupted; then
   2612   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2614   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2615 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2616   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2617 fi
   2618 ## -------------------- ##
   2619 ## Main body of script. ##
   2620 ## -------------------- ##
   2621 
   2622 ac_ext=c
   2623 ac_cpp='$CPP $CPPFLAGS'
   2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2627 
   2628 
   2629 
   2630 
   2631 
   2632 
   2633 am__api_version='1.15'
   2634 
   2635 ac_aux_dir=
   2636 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2637   if test -f "$ac_dir/install-sh"; then
   2638     ac_aux_dir=$ac_dir
   2639     ac_install_sh="$ac_aux_dir/install-sh -c"
   2640     break
   2641   elif test -f "$ac_dir/install.sh"; then
   2642     ac_aux_dir=$ac_dir
   2643     ac_install_sh="$ac_aux_dir/install.sh -c"
   2644     break
   2645   elif test -f "$ac_dir/shtool"; then
   2646     ac_aux_dir=$ac_dir
   2647     ac_install_sh="$ac_aux_dir/shtool install -c"
   2648     break
   2649   fi
   2650 done
   2651 if test -z "$ac_aux_dir"; then
   2652   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2653 fi
   2654 
   2655 # These three variables are undocumented and unsupported,
   2656 # and are intended to be withdrawn in a future Autoconf release.
   2657 # They can cause serious problems if a builder's source tree is in a directory
   2658 # whose full name contains unusual characters.
   2659 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2660 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2661 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2662 
   2663 
   2664 # Find a good install program.  We prefer a C program (faster),
   2665 # so one script is as good as another.  But avoid the broken or
   2666 # incompatible versions:
   2667 # SysV /etc/install, /usr/sbin/install
   2668 # SunOS /usr/etc/install
   2669 # IRIX /sbin/install
   2670 # AIX /bin/install
   2671 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2675 # OS/2's system install, which has a completely different semantic
   2676 # ./install, which can be erroneously created by make from ./install.sh.
   2677 # Reject install programs that cannot install multiple files.
   2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2679 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2680 if test -z "$INSTALL"; then
   2681 if ${ac_cv_path_install+:} false; then :
   2682   $as_echo_n "(cached) " >&6
   2683 else
   2684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2685 for as_dir in $PATH
   2686 do
   2687   IFS=$as_save_IFS
   2688   test -z "$as_dir" && as_dir=.
   2689     # Account for people who put trailing slashes in PATH elements.
   2690 case $as_dir/ in #((
   2691   ./ | .// | /[cC]/* | \
   2692   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2693   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2694   /usr/ucb/* ) ;;
   2695   *)
   2696     # OSF1 and SCO ODT 3.0 have their own names for install.
   2697     # Don't use installbsd from OSF since it installs stuff as root
   2698     # by default.
   2699     for ac_prog in ginstall scoinst install; do
   2700       for ac_exec_ext in '' $ac_executable_extensions; do
   2701 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2702 	  if test $ac_prog = install &&
   2703 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2704 	    # AIX install.  It has an incompatible calling convention.
   2705 	    :
   2706 	  elif test $ac_prog = install &&
   2707 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2708 	    # program-specific install script used by HP pwplus--don't use.
   2709 	    :
   2710 	  else
   2711 	    rm -rf conftest.one conftest.two conftest.dir
   2712 	    echo one > conftest.one
   2713 	    echo two > conftest.two
   2714 	    mkdir conftest.dir
   2715 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2716 	      test -s conftest.one && test -s conftest.two &&
   2717 	      test -s conftest.dir/conftest.one &&
   2718 	      test -s conftest.dir/conftest.two
   2719 	    then
   2720 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2721 	      break 3
   2722 	    fi
   2723 	  fi
   2724 	fi
   2725       done
   2726     done
   2727     ;;
   2728 esac
   2729 
   2730   done
   2731 IFS=$as_save_IFS
   2732 
   2733 rm -rf conftest.one conftest.two conftest.dir
   2734 
   2735 fi
   2736   if test "${ac_cv_path_install+set}" = set; then
   2737     INSTALL=$ac_cv_path_install
   2738   else
   2739     # As a last resort, use the slow shell script.  Don't cache a
   2740     # value for INSTALL within a source directory, because that will
   2741     # break other packages using the cache if that directory is
   2742     # removed, or if the value is a relative name.
   2743     INSTALL=$ac_install_sh
   2744   fi
   2745 fi
   2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2747 $as_echo "$INSTALL" >&6; }
   2748 
   2749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2750 # It thinks the first close brace ends the variable substitution.
   2751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2752 
   2753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2754 
   2755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2756 
   2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2758 $as_echo_n "checking whether build environment is sane... " >&6; }
   2759 # Reject unsafe characters in $srcdir or the absolute working directory
   2760 # name.  Accept space and tab only in the latter.
   2761 am_lf='
   2762 '
   2763 case `pwd` in
   2764   *[\\\"\#\$\&\'\`$am_lf]*)
   2765     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2766 esac
   2767 case $srcdir in
   2768   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2769     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   2770 esac
   2771 
   2772 # Do 'set' in a subshell so we don't clobber the current shell's
   2773 # arguments.  Must try -L first in case configure is actually a
   2774 # symlink; some systems play weird games with the mod time of symlinks
   2775 # (eg FreeBSD returns the mod time of the symlink's containing
   2776 # directory).
   2777 if (
   2778    am_has_slept=no
   2779    for am_try in 1 2; do
   2780      echo "timestamp, slept: $am_has_slept" > conftest.file
   2781      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2782      if test "$*" = "X"; then
   2783 	# -L didn't work.
   2784 	set X `ls -t "$srcdir/configure" conftest.file`
   2785      fi
   2786      if test "$*" != "X $srcdir/configure conftest.file" \
   2787 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   2788 
   2789 	# If neither matched, then we have a broken ls.  This can happen
   2790 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   2791 	# broken ls alias from the environment.  This has actually
   2792 	# happened.  Such a system could not be considered "sane".
   2793 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2794   alias in your environment" "$LINENO" 5
   2795      fi
   2796      if test "$2" = conftest.file || test $am_try -eq 2; then
   2797        break
   2798      fi
   2799      # Just in case.
   2800      sleep 1
   2801      am_has_slept=yes
   2802    done
   2803    test "$2" = conftest.file
   2804    )
   2805 then
   2806    # Ok.
   2807    :
   2808 else
   2809    as_fn_error $? "newly created file is older than distributed files!
   2810 Check your system clock" "$LINENO" 5
   2811 fi
   2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2813 $as_echo "yes" >&6; }
   2814 # If we didn't sleep, we still need to ensure time stamps of config.status and
   2815 # generated files are strictly newer.
   2816 am_sleep_pid=
   2817 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   2818   ( sleep 1 ) &
   2819   am_sleep_pid=$!
   2820 fi
   2821 
   2822 rm -f conftest.file
   2823 
   2824 test "$program_prefix" != NONE &&
   2825   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2826 # Use a double $ so make ignores it.
   2827 test "$program_suffix" != NONE &&
   2828   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2829 # Double any \ or $.
   2830 # By default was `s,x,x', remove it if useless.
   2831 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2832 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2833 
   2834 # Expand $ac_aux_dir to an absolute path.
   2835 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2836 
   2837 if test x"${MISSING+set}" != xset; then
   2838   case $am_aux_dir in
   2839   *\ * | *\	*)
   2840     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2841   *)
   2842     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2843   esac
   2844 fi
   2845 # Use eval to expand $SHELL
   2846 if eval "$MISSING --is-lightweight"; then
   2847   am_missing_run="$MISSING "
   2848 else
   2849   am_missing_run=
   2850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   2851 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   2852 fi
   2853 
   2854 if test x"${install_sh+set}" != xset; then
   2855   case $am_aux_dir in
   2856   *\ * | *\	*)
   2857     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2858   *)
   2859     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2860   esac
   2861 fi
   2862 
   2863 # Installed binaries are usually stripped using 'strip' when the user
   2864 # run "make install-strip".  However 'strip' might not be the right
   2865 # tool to use in cross-compilation environments, therefore Automake
   2866 # will honor the 'STRIP' environment variable to overrule this program.
   2867 if test "$cross_compiling" != no; then
   2868   if test -n "$ac_tool_prefix"; then
   2869   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2870 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2872 $as_echo_n "checking for $ac_word... " >&6; }
   2873 if ${ac_cv_prog_STRIP+:} false; then :
   2874   $as_echo_n "(cached) " >&6
   2875 else
   2876   if test -n "$STRIP"; then
   2877   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2878 else
   2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2880 for as_dir in $PATH
   2881 do
   2882   IFS=$as_save_IFS
   2883   test -z "$as_dir" && as_dir=.
   2884     for ac_exec_ext in '' $ac_executable_extensions; do
   2885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2886     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2888     break 2
   2889   fi
   2890 done
   2891   done
   2892 IFS=$as_save_IFS
   2893 
   2894 fi
   2895 fi
   2896 STRIP=$ac_cv_prog_STRIP
   2897 if test -n "$STRIP"; then
   2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2899 $as_echo "$STRIP" >&6; }
   2900 else
   2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2902 $as_echo "no" >&6; }
   2903 fi
   2904 
   2905 
   2906 fi
   2907 if test -z "$ac_cv_prog_STRIP"; then
   2908   ac_ct_STRIP=$STRIP
   2909   # Extract the first word of "strip", so it can be a program name with args.
   2910 set dummy strip; ac_word=$2
   2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2912 $as_echo_n "checking for $ac_word... " >&6; }
   2913 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2914   $as_echo_n "(cached) " >&6
   2915 else
   2916   if test -n "$ac_ct_STRIP"; then
   2917   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2918 else
   2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2920 for as_dir in $PATH
   2921 do
   2922   IFS=$as_save_IFS
   2923   test -z "$as_dir" && as_dir=.
   2924     for ac_exec_ext in '' $ac_executable_extensions; do
   2925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2926     ac_cv_prog_ac_ct_STRIP="strip"
   2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2928     break 2
   2929   fi
   2930 done
   2931   done
   2932 IFS=$as_save_IFS
   2933 
   2934 fi
   2935 fi
   2936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2937 if test -n "$ac_ct_STRIP"; then
   2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2939 $as_echo "$ac_ct_STRIP" >&6; }
   2940 else
   2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2942 $as_echo "no" >&6; }
   2943 fi
   2944 
   2945   if test "x$ac_ct_STRIP" = x; then
   2946     STRIP=":"
   2947   else
   2948     case $cross_compiling:$ac_tool_warned in
   2949 yes:)
   2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2952 ac_tool_warned=yes ;;
   2953 esac
   2954     STRIP=$ac_ct_STRIP
   2955   fi
   2956 else
   2957   STRIP="$ac_cv_prog_STRIP"
   2958 fi
   2959 
   2960 fi
   2961 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2962 
   2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2964 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2965 if test -z "$MKDIR_P"; then
   2966   if ${ac_cv_path_mkdir+:} false; then :
   2967   $as_echo_n "(cached) " >&6
   2968 else
   2969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2970 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2971 do
   2972   IFS=$as_save_IFS
   2973   test -z "$as_dir" && as_dir=.
   2974     for ac_prog in mkdir gmkdir; do
   2975 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2976 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   2977 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2978 	     'mkdir (GNU coreutils) '* | \
   2979 	     'mkdir (coreutils) '* | \
   2980 	     'mkdir (fileutils) '4.1*)
   2981 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2982 	       break 3;;
   2983 	   esac
   2984 	 done
   2985        done
   2986   done
   2987 IFS=$as_save_IFS
   2988 
   2989 fi
   2990 
   2991   test -d ./--version && rmdir ./--version
   2992   if test "${ac_cv_path_mkdir+set}" = set; then
   2993     MKDIR_P="$ac_cv_path_mkdir -p"
   2994   else
   2995     # As a last resort, use the slow shell script.  Don't cache a
   2996     # value for MKDIR_P within a source directory, because that will
   2997     # break other packages using the cache if that directory is
   2998     # removed, or if the value is a relative name.
   2999     MKDIR_P="$ac_install_sh -d"
   3000   fi
   3001 fi
   3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   3003 $as_echo "$MKDIR_P" >&6; }
   3004 
   3005 for ac_prog in gawk mawk nawk awk
   3006 do
   3007   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3008 set dummy $ac_prog; ac_word=$2
   3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3010 $as_echo_n "checking for $ac_word... " >&6; }
   3011 if ${ac_cv_prog_AWK+:} false; then :
   3012   $as_echo_n "(cached) " >&6
   3013 else
   3014   if test -n "$AWK"; then
   3015   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   3016 else
   3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3018 for as_dir in $PATH
   3019 do
   3020   IFS=$as_save_IFS
   3021   test -z "$as_dir" && as_dir=.
   3022     for ac_exec_ext in '' $ac_executable_extensions; do
   3023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3024     ac_cv_prog_AWK="$ac_prog"
   3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3026     break 2
   3027   fi
   3028 done
   3029   done
   3030 IFS=$as_save_IFS
   3031 
   3032 fi
   3033 fi
   3034 AWK=$ac_cv_prog_AWK
   3035 if test -n "$AWK"; then
   3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   3037 $as_echo "$AWK" >&6; }
   3038 else
   3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3040 $as_echo "no" >&6; }
   3041 fi
   3042 
   3043 
   3044   test -n "$AWK" && break
   3045 done
   3046 
   3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3048 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3049 set x ${MAKE-make}
   3050 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3051 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3052   $as_echo_n "(cached) " >&6
   3053 else
   3054   cat >conftest.make <<\_ACEOF
   3055 SHELL = /bin/sh
   3056 all:
   3057 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3058 _ACEOF
   3059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3061   *@@@%%%=?*=@@@%%%*)
   3062     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3063   *)
   3064     eval ac_cv_prog_make_${ac_make}_set=no;;
   3065 esac
   3066 rm -f conftest.make
   3067 fi
   3068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3070 $as_echo "yes" >&6; }
   3071   SET_MAKE=
   3072 else
   3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3074 $as_echo "no" >&6; }
   3075   SET_MAKE="MAKE=${MAKE-make}"
   3076 fi
   3077 
   3078 rm -rf .tst 2>/dev/null
   3079 mkdir .tst 2>/dev/null
   3080 if test -d .tst; then
   3081   am__leading_dot=.
   3082 else
   3083   am__leading_dot=_
   3084 fi
   3085 rmdir .tst 2>/dev/null
   3086 
   3087 # Check whether --enable-silent-rules was given.
   3088 if test "${enable_silent_rules+set}" = set; then :
   3089   enableval=$enable_silent_rules;
   3090 fi
   3091 
   3092 case $enable_silent_rules in # (((
   3093   yes) AM_DEFAULT_VERBOSITY=0;;
   3094    no) AM_DEFAULT_VERBOSITY=1;;
   3095     *) AM_DEFAULT_VERBOSITY=1;;
   3096 esac
   3097 am_make=${MAKE-make}
   3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   3099 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   3100 if ${am_cv_make_support_nested_variables+:} false; then :
   3101   $as_echo_n "(cached) " >&6
   3102 else
   3103   if $as_echo 'TRUE=$(BAR$(V))
   3104 BAR0=false
   3105 BAR1=true
   3106 V=1
   3107 am__doit:
   3108 	@$(TRUE)
   3109 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   3110   am_cv_make_support_nested_variables=yes
   3111 else
   3112   am_cv_make_support_nested_variables=no
   3113 fi
   3114 fi
   3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   3116 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   3117 if test $am_cv_make_support_nested_variables = yes; then
   3118     AM_V='$(V)'
   3119   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   3120 else
   3121   AM_V=$AM_DEFAULT_VERBOSITY
   3122   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   3123 fi
   3124 AM_BACKSLASH='\'
   3125 
   3126 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   3127   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   3128   # is not polluted with repeated "-I."
   3129   am__isrc=' -I$(srcdir)'
   3130   # test to see if srcdir already configured
   3131   if test -f $srcdir/config.status; then
   3132     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   3133   fi
   3134 fi
   3135 
   3136 # test whether we have cygpath
   3137 if test -z "$CYGPATH_W"; then
   3138   if (cygpath --version) >/dev/null 2>/dev/null; then
   3139     CYGPATH_W='cygpath -w'
   3140   else
   3141     CYGPATH_W=echo
   3142   fi
   3143 fi
   3144 
   3145 
   3146 # Define the identity of the package.
   3147  PACKAGE='libevent'
   3148  VERSION='2.1.8-stable'
   3149 
   3150 
   3151 cat >>confdefs.h <<_ACEOF
   3152 #define PACKAGE "$PACKAGE"
   3153 _ACEOF
   3154 
   3155 
   3156 cat >>confdefs.h <<_ACEOF
   3157 #define VERSION "$VERSION"
   3158 _ACEOF
   3159 
   3160 # Some tools Automake needs.
   3161 
   3162 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   3163 
   3164 
   3165 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   3166 
   3167 
   3168 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   3169 
   3170 
   3171 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   3172 
   3173 
   3174 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   3175 
   3176 # For better backward compatibility.  To be removed once Automake 1.9.x
   3177 # dies out for good.  For more background, see:
   3178 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   3179 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   3180 mkdir_p='$(MKDIR_P)'
   3181 
   3182 # We need awk for the "check" target (and possibly the TAP driver).  The
   3183 # system "awk" is bad on some platforms.
   3184 # Always define AMTAR for backward compatibility.  Yes, it's still used
   3185 # in the wild :-(  We should find a proper way to deprecate it ...
   3186 AMTAR='$${TAR-tar}'
   3187 
   3188 
   3189 # We'll loop over all known methods to create a tar archive until one works.
   3190 _am_tools='gnutar  pax cpio none'
   3191 
   3192 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   3193 
   3194 
   3195 
   3196 
   3197 
   3198 
   3199 # POSIX will say in a future version that running "rm -f" with no argument
   3200 # is OK; and we want to be able to make that assumption in our Makefile
   3201 # recipes.  So use an aggressive probe to check that the usage we want is
   3202 # actually supported "in the wild" to an acceptable degree.
   3203 # See automake bug#10828.
   3204 # To make any issue more visible, cause the running configure to be aborted
   3205 # by default if the 'rm' program in use doesn't match our expectations; the
   3206 # user can still override this though.
   3207 if rm -f && rm -fr && rm -rf; then : OK; else
   3208   cat >&2 <<'END'
   3209 Oops!
   3210 
   3211 Your 'rm' program seems unable to run without file operands specified
   3212 on the command line, even when the '-f' option is present.  This is contrary
   3213 to the behaviour of most rm programs out there, and not conforming with
   3214 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   3215 
   3216 Please tell bug-automake@gnu.org about your system, including the value
   3217 of your $PATH and any error possibly output before this message.  This
   3218 can help us improve future automake versions.
   3219 
   3220 END
   3221   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   3222     echo 'Configuration will proceed anyway, since you have set the' >&2
   3223     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   3224     echo >&2
   3225   else
   3226     cat >&2 <<'END'
   3227 Aborting the configuration process, to ensure you take notice of the issue.
   3228 
   3229 You can download and install GNU coreutils to get an 'rm' implementation
   3230 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   3231 
   3232 If you want to complete the configuration process using your problematic
   3233 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   3234 to "yes", and re-run configure.
   3235 
   3236 END
   3237     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   3238   fi
   3239 fi
   3240 
   3241 # Check whether --enable-silent-rules was given.
   3242 if test "${enable_silent_rules+set}" = set; then :
   3243   enableval=$enable_silent_rules;
   3244 fi
   3245 
   3246 case $enable_silent_rules in # (((
   3247   yes) AM_DEFAULT_VERBOSITY=0;;
   3248    no) AM_DEFAULT_VERBOSITY=1;;
   3249     *) AM_DEFAULT_VERBOSITY=0;;
   3250 esac
   3251 am_make=${MAKE-make}
   3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   3253 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   3254 if ${am_cv_make_support_nested_variables+:} false; then :
   3255   $as_echo_n "(cached) " >&6
   3256 else
   3257   if $as_echo 'TRUE=$(BAR$(V))
   3258 BAR0=false
   3259 BAR1=true
   3260 V=1
   3261 am__doit:
   3262 	@$(TRUE)
   3263 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   3264   am_cv_make_support_nested_variables=yes
   3265 else
   3266   am_cv_make_support_nested_variables=no
   3267 fi
   3268 fi
   3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   3270 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   3271 if test $am_cv_make_support_nested_variables = yes; then
   3272     AM_V='$(V)'
   3273   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   3274 else
   3275   AM_V=$AM_DEFAULT_VERBOSITY
   3276   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   3277 fi
   3278 AM_BACKSLASH='\'
   3279 
   3280 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
   3281 
   3282 
   3283 $as_echo "#define NUMERIC_VERSION 0x02010800" >>confdefs.h
   3284 
   3285 
   3286 if test "$prefix" = "NONE"; then
   3287    prefix="/usr/local"
   3288 fi
   3289 
   3290 
   3291 DEPDIR="${am__leading_dot}deps"
   3292 
   3293 ac_config_commands="$ac_config_commands depfiles"
   3294 
   3295 
   3296 am_make=${MAKE-make}
   3297 cat > confinc << 'END'
   3298 am__doit:
   3299 	@echo this is the am__doit target
   3300 .PHONY: am__doit
   3301 END
   3302 # If we don't find an include directive, just comment out the code.
   3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   3304 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   3305 am__include="#"
   3306 am__quote=
   3307 _am_result=none
   3308 # First try GNU make style include.
   3309 echo "include confinc" > confmf
   3310 # Ignore all kinds of additional output from 'make'.
   3311 case `$am_make -s -f confmf 2> /dev/null` in #(
   3312 *the\ am__doit\ target*)
   3313   am__include=include
   3314   am__quote=
   3315   _am_result=GNU
   3316   ;;
   3317 esac
   3318 # Now try BSD make style include.
   3319 if test "$am__include" = "#"; then
   3320    echo '.include "confinc"' > confmf
   3321    case `$am_make -s -f confmf 2> /dev/null` in #(
   3322    *the\ am__doit\ target*)
   3323      am__include=.include
   3324      am__quote="\""
   3325      _am_result=BSD
   3326      ;;
   3327    esac
   3328 fi
   3329 
   3330 
   3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   3332 $as_echo "$_am_result" >&6; }
   3333 rm -f confinc confmf
   3334 
   3335 # Check whether --enable-dependency-tracking was given.
   3336 if test "${enable_dependency_tracking+set}" = set; then :
   3337   enableval=$enable_dependency_tracking;
   3338 fi
   3339 
   3340 if test "x$enable_dependency_tracking" != xno; then
   3341   am_depcomp="$ac_aux_dir/depcomp"
   3342   AMDEPBACKSLASH='\'
   3343   am__nodep='_no'
   3344 fi
   3345  if test "x$enable_dependency_tracking" != xno; then
   3346   AMDEP_TRUE=
   3347   AMDEP_FALSE='#'
   3348 else
   3349   AMDEP_TRUE='#'
   3350   AMDEP_FALSE=
   3351 fi
   3352 
   3353 
   3354 ac_ext=c
   3355 ac_cpp='$CPP $CPPFLAGS'
   3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3359 if test -n "$ac_tool_prefix"; then
   3360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3363 $as_echo_n "checking for $ac_word... " >&6; }
   3364 if ${ac_cv_prog_CC+:} false; then :
   3365   $as_echo_n "(cached) " >&6
   3366 else
   3367   if test -n "$CC"; then
   3368   ac_cv_prog_CC="$CC" # Let the user override the test.
   3369 else
   3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3371 for as_dir in $PATH
   3372 do
   3373   IFS=$as_save_IFS
   3374   test -z "$as_dir" && as_dir=.
   3375     for ac_exec_ext in '' $ac_executable_extensions; do
   3376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3379     break 2
   3380   fi
   3381 done
   3382   done
   3383 IFS=$as_save_IFS
   3384 
   3385 fi
   3386 fi
   3387 CC=$ac_cv_prog_CC
   3388 if test -n "$CC"; then
   3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3390 $as_echo "$CC" >&6; }
   3391 else
   3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3393 $as_echo "no" >&6; }
   3394 fi
   3395 
   3396 
   3397 fi
   3398 if test -z "$ac_cv_prog_CC"; then
   3399   ac_ct_CC=$CC
   3400   # Extract the first word of "gcc", so it can be a program name with args.
   3401 set dummy gcc; ac_word=$2
   3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3403 $as_echo_n "checking for $ac_word... " >&6; }
   3404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3405   $as_echo_n "(cached) " >&6
   3406 else
   3407   if test -n "$ac_ct_CC"; then
   3408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3409 else
   3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3411 for as_dir in $PATH
   3412 do
   3413   IFS=$as_save_IFS
   3414   test -z "$as_dir" && as_dir=.
   3415     for ac_exec_ext in '' $ac_executable_extensions; do
   3416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3417     ac_cv_prog_ac_ct_CC="gcc"
   3418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3419     break 2
   3420   fi
   3421 done
   3422   done
   3423 IFS=$as_save_IFS
   3424 
   3425 fi
   3426 fi
   3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3428 if test -n "$ac_ct_CC"; then
   3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3430 $as_echo "$ac_ct_CC" >&6; }
   3431 else
   3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3433 $as_echo "no" >&6; }
   3434 fi
   3435 
   3436   if test "x$ac_ct_CC" = x; then
   3437     CC=""
   3438   else
   3439     case $cross_compiling:$ac_tool_warned in
   3440 yes:)
   3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3443 ac_tool_warned=yes ;;
   3444 esac
   3445     CC=$ac_ct_CC
   3446   fi
   3447 else
   3448   CC="$ac_cv_prog_CC"
   3449 fi
   3450 
   3451 if test -z "$CC"; then
   3452           if test -n "$ac_tool_prefix"; then
   3453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3454 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3456 $as_echo_n "checking for $ac_word... " >&6; }
   3457 if ${ac_cv_prog_CC+:} false; then :
   3458   $as_echo_n "(cached) " >&6
   3459 else
   3460   if test -n "$CC"; then
   3461   ac_cv_prog_CC="$CC" # Let the user override the test.
   3462 else
   3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3464 for as_dir in $PATH
   3465 do
   3466   IFS=$as_save_IFS
   3467   test -z "$as_dir" && as_dir=.
   3468     for ac_exec_ext in '' $ac_executable_extensions; do
   3469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3470     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3472     break 2
   3473   fi
   3474 done
   3475   done
   3476 IFS=$as_save_IFS
   3477 
   3478 fi
   3479 fi
   3480 CC=$ac_cv_prog_CC
   3481 if test -n "$CC"; then
   3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3483 $as_echo "$CC" >&6; }
   3484 else
   3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3486 $as_echo "no" >&6; }
   3487 fi
   3488 
   3489 
   3490   fi
   3491 fi
   3492 if test -z "$CC"; then
   3493   # Extract the first word of "cc", so it can be a program name with args.
   3494 set dummy cc; ac_word=$2
   3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3496 $as_echo_n "checking for $ac_word... " >&6; }
   3497 if ${ac_cv_prog_CC+:} false; then :
   3498   $as_echo_n "(cached) " >&6
   3499 else
   3500   if test -n "$CC"; then
   3501   ac_cv_prog_CC="$CC" # Let the user override the test.
   3502 else
   3503   ac_prog_rejected=no
   3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3505 for as_dir in $PATH
   3506 do
   3507   IFS=$as_save_IFS
   3508   test -z "$as_dir" && as_dir=.
   3509     for ac_exec_ext in '' $ac_executable_extensions; do
   3510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3512        ac_prog_rejected=yes
   3513        continue
   3514      fi
   3515     ac_cv_prog_CC="cc"
   3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3517     break 2
   3518   fi
   3519 done
   3520   done
   3521 IFS=$as_save_IFS
   3522 
   3523 if test $ac_prog_rejected = yes; then
   3524   # We found a bogon in the path, so make sure we never use it.
   3525   set dummy $ac_cv_prog_CC
   3526   shift
   3527   if test $# != 0; then
   3528     # We chose a different compiler from the bogus one.
   3529     # However, it has the same basename, so the bogon will be chosen
   3530     # first if we set CC to just the basename; use the full file name.
   3531     shift
   3532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3533   fi
   3534 fi
   3535 fi
   3536 fi
   3537 CC=$ac_cv_prog_CC
   3538 if test -n "$CC"; then
   3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3540 $as_echo "$CC" >&6; }
   3541 else
   3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3543 $as_echo "no" >&6; }
   3544 fi
   3545 
   3546 
   3547 fi
   3548 if test -z "$CC"; then
   3549   if test -n "$ac_tool_prefix"; then
   3550   for ac_prog in cl.exe
   3551   do
   3552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3555 $as_echo_n "checking for $ac_word... " >&6; }
   3556 if ${ac_cv_prog_CC+:} false; then :
   3557   $as_echo_n "(cached) " >&6
   3558 else
   3559   if test -n "$CC"; then
   3560   ac_cv_prog_CC="$CC" # Let the user override the test.
   3561 else
   3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3563 for as_dir in $PATH
   3564 do
   3565   IFS=$as_save_IFS
   3566   test -z "$as_dir" && as_dir=.
   3567     for ac_exec_ext in '' $ac_executable_extensions; do
   3568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3571     break 2
   3572   fi
   3573 done
   3574   done
   3575 IFS=$as_save_IFS
   3576 
   3577 fi
   3578 fi
   3579 CC=$ac_cv_prog_CC
   3580 if test -n "$CC"; then
   3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3582 $as_echo "$CC" >&6; }
   3583 else
   3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3585 $as_echo "no" >&6; }
   3586 fi
   3587 
   3588 
   3589     test -n "$CC" && break
   3590   done
   3591 fi
   3592 if test -z "$CC"; then
   3593   ac_ct_CC=$CC
   3594   for ac_prog in cl.exe
   3595 do
   3596   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3597 set dummy $ac_prog; ac_word=$2
   3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3599 $as_echo_n "checking for $ac_word... " >&6; }
   3600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3601   $as_echo_n "(cached) " >&6
   3602 else
   3603   if test -n "$ac_ct_CC"; then
   3604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3605 else
   3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3607 for as_dir in $PATH
   3608 do
   3609   IFS=$as_save_IFS
   3610   test -z "$as_dir" && as_dir=.
   3611     for ac_exec_ext in '' $ac_executable_extensions; do
   3612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3613     ac_cv_prog_ac_ct_CC="$ac_prog"
   3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3615     break 2
   3616   fi
   3617 done
   3618   done
   3619 IFS=$as_save_IFS
   3620 
   3621 fi
   3622 fi
   3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3624 if test -n "$ac_ct_CC"; then
   3625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3626 $as_echo "$ac_ct_CC" >&6; }
   3627 else
   3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3629 $as_echo "no" >&6; }
   3630 fi
   3631 
   3632 
   3633   test -n "$ac_ct_CC" && break
   3634 done
   3635 
   3636   if test "x$ac_ct_CC" = x; then
   3637     CC=""
   3638   else
   3639     case $cross_compiling:$ac_tool_warned in
   3640 yes:)
   3641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3643 ac_tool_warned=yes ;;
   3644 esac
   3645     CC=$ac_ct_CC
   3646   fi
   3647 fi
   3648 
   3649 fi
   3650 
   3651 
   3652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3654 as_fn_error $? "no acceptable C compiler found in \$PATH
   3655 See \`config.log' for more details" "$LINENO" 5; }
   3656 
   3657 # Provide some information about the compiler.
   3658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3659 set X $ac_compile
   3660 ac_compiler=$2
   3661 for ac_option in --version -v -V -qversion; do
   3662   { { ac_try="$ac_compiler $ac_option >&5"
   3663 case "(($ac_try" in
   3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3665   *) ac_try_echo=$ac_try;;
   3666 esac
   3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3668 $as_echo "$ac_try_echo"; } >&5
   3669   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3670   ac_status=$?
   3671   if test -s conftest.err; then
   3672     sed '10a\
   3673 ... rest of stderr output deleted ...
   3674          10q' conftest.err >conftest.er1
   3675     cat conftest.er1 >&5
   3676   fi
   3677   rm -f conftest.er1 conftest.err
   3678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3679   test $ac_status = 0; }
   3680 done
   3681 
   3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3683 /* end confdefs.h.  */
   3684 
   3685 int
   3686 main ()
   3687 {
   3688 
   3689   ;
   3690   return 0;
   3691 }
   3692 _ACEOF
   3693 ac_clean_files_save=$ac_clean_files
   3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3695 # Try to create an executable without -o first, disregard a.out.
   3696 # It will help us diagnose broken compilers, and finding out an intuition
   3697 # of exeext.
   3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3699 $as_echo_n "checking whether the C compiler works... " >&6; }
   3700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3701 
   3702 # The possible output files:
   3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3704 
   3705 ac_rmfiles=
   3706 for ac_file in $ac_files
   3707 do
   3708   case $ac_file in
   3709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3710     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3711   esac
   3712 done
   3713 rm -f $ac_rmfiles
   3714 
   3715 if { { ac_try="$ac_link_default"
   3716 case "(($ac_try" in
   3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3718   *) ac_try_echo=$ac_try;;
   3719 esac
   3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3721 $as_echo "$ac_try_echo"; } >&5
   3722   (eval "$ac_link_default") 2>&5
   3723   ac_status=$?
   3724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3725   test $ac_status = 0; }; then :
   3726   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3728 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3729 # so that the user can short-circuit this test for compilers unknown to
   3730 # Autoconf.
   3731 for ac_file in $ac_files ''
   3732 do
   3733   test -f "$ac_file" || continue
   3734   case $ac_file in
   3735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3736 	;;
   3737     [ab].out )
   3738 	# We found the default executable, but exeext='' is most
   3739 	# certainly right.
   3740 	break;;
   3741     *.* )
   3742 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3743 	then :; else
   3744 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3745 	fi
   3746 	# We set ac_cv_exeext here because the later test for it is not
   3747 	# safe: cross compilers may not add the suffix if given an `-o'
   3748 	# argument, so we may need to know it at that point already.
   3749 	# Even if this section looks crufty: it has the advantage of
   3750 	# actually working.
   3751 	break;;
   3752     * )
   3753 	break;;
   3754   esac
   3755 done
   3756 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3757 
   3758 else
   3759   ac_file=''
   3760 fi
   3761 if test -z "$ac_file"; then :
   3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3763 $as_echo "no" >&6; }
   3764 $as_echo "$as_me: failed program was:" >&5
   3765 sed 's/^/| /' conftest.$ac_ext >&5
   3766 
   3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3769 as_fn_error 77 "C compiler cannot create executables
   3770 See \`config.log' for more details" "$LINENO" 5; }
   3771 else
   3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3773 $as_echo "yes" >&6; }
   3774 fi
   3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3776 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3778 $as_echo "$ac_file" >&6; }
   3779 ac_exeext=$ac_cv_exeext
   3780 
   3781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3782 ac_clean_files=$ac_clean_files_save
   3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3784 $as_echo_n "checking for suffix of executables... " >&6; }
   3785 if { { ac_try="$ac_link"
   3786 case "(($ac_try" in
   3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3788   *) ac_try_echo=$ac_try;;
   3789 esac
   3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3791 $as_echo "$ac_try_echo"; } >&5
   3792   (eval "$ac_link") 2>&5
   3793   ac_status=$?
   3794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3795   test $ac_status = 0; }; then :
   3796   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3797 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3798 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3799 # `rm'.
   3800 for ac_file in conftest.exe conftest conftest.*; do
   3801   test -f "$ac_file" || continue
   3802   case $ac_file in
   3803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3804     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3805 	  break;;
   3806     * ) break;;
   3807   esac
   3808 done
   3809 else
   3810   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3813 See \`config.log' for more details" "$LINENO" 5; }
   3814 fi
   3815 rm -f conftest conftest$ac_cv_exeext
   3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3817 $as_echo "$ac_cv_exeext" >&6; }
   3818 
   3819 rm -f conftest.$ac_ext
   3820 EXEEXT=$ac_cv_exeext
   3821 ac_exeext=$EXEEXT
   3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3823 /* end confdefs.h.  */
   3824 #include <stdio.h>
   3825 int
   3826 main ()
   3827 {
   3828 FILE *f = fopen ("conftest.out", "w");
   3829  return ferror (f) || fclose (f) != 0;
   3830 
   3831   ;
   3832   return 0;
   3833 }
   3834 _ACEOF
   3835 ac_clean_files="$ac_clean_files conftest.out"
   3836 # Check that the compiler produces executables we can run.  If not, either
   3837 # the compiler is broken, or we cross compile.
   3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3839 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3840 if test "$cross_compiling" != yes; then
   3841   { { ac_try="$ac_link"
   3842 case "(($ac_try" in
   3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3844   *) ac_try_echo=$ac_try;;
   3845 esac
   3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3847 $as_echo "$ac_try_echo"; } >&5
   3848   (eval "$ac_link") 2>&5
   3849   ac_status=$?
   3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3851   test $ac_status = 0; }
   3852   if { ac_try='./conftest$ac_cv_exeext'
   3853   { { case "(($ac_try" in
   3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3855   *) ac_try_echo=$ac_try;;
   3856 esac
   3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3858 $as_echo "$ac_try_echo"; } >&5
   3859   (eval "$ac_try") 2>&5
   3860   ac_status=$?
   3861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3862   test $ac_status = 0; }; }; then
   3863     cross_compiling=no
   3864   else
   3865     if test "$cross_compiling" = maybe; then
   3866 	cross_compiling=yes
   3867     else
   3868 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3870 as_fn_error $? "cannot run C compiled programs.
   3871 If you meant to cross compile, use \`--host'.
   3872 See \`config.log' for more details" "$LINENO" 5; }
   3873     fi
   3874   fi
   3875 fi
   3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3877 $as_echo "$cross_compiling" >&6; }
   3878 
   3879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3880 ac_clean_files=$ac_clean_files_save
   3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3882 $as_echo_n "checking for suffix of object files... " >&6; }
   3883 if ${ac_cv_objext+:} false; then :
   3884   $as_echo_n "(cached) " >&6
   3885 else
   3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3887 /* end confdefs.h.  */
   3888 
   3889 int
   3890 main ()
   3891 {
   3892 
   3893   ;
   3894   return 0;
   3895 }
   3896 _ACEOF
   3897 rm -f conftest.o conftest.obj
   3898 if { { ac_try="$ac_compile"
   3899 case "(($ac_try" in
   3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3901   *) ac_try_echo=$ac_try;;
   3902 esac
   3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3904 $as_echo "$ac_try_echo"; } >&5
   3905   (eval "$ac_compile") 2>&5
   3906   ac_status=$?
   3907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3908   test $ac_status = 0; }; then :
   3909   for ac_file in conftest.o conftest.obj conftest.*; do
   3910   test -f "$ac_file" || continue;
   3911   case $ac_file in
   3912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3913     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3914        break;;
   3915   esac
   3916 done
   3917 else
   3918   $as_echo "$as_me: failed program was:" >&5
   3919 sed 's/^/| /' conftest.$ac_ext >&5
   3920 
   3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3923 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3924 See \`config.log' for more details" "$LINENO" 5; }
   3925 fi
   3926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3927 fi
   3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3929 $as_echo "$ac_cv_objext" >&6; }
   3930 OBJEXT=$ac_cv_objext
   3931 ac_objext=$OBJEXT
   3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3934 if ${ac_cv_c_compiler_gnu+:} false; then :
   3935   $as_echo_n "(cached) " >&6
   3936 else
   3937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3938 /* end confdefs.h.  */
   3939 
   3940 int
   3941 main ()
   3942 {
   3943 #ifndef __GNUC__
   3944        choke me
   3945 #endif
   3946 
   3947   ;
   3948   return 0;
   3949 }
   3950 _ACEOF
   3951 if ac_fn_c_try_compile "$LINENO"; then :
   3952   ac_compiler_gnu=yes
   3953 else
   3954   ac_compiler_gnu=no
   3955 fi
   3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3958 
   3959 fi
   3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3962 if test $ac_compiler_gnu = yes; then
   3963   GCC=yes
   3964 else
   3965   GCC=
   3966 fi
   3967 ac_test_CFLAGS=${CFLAGS+set}
   3968 ac_save_CFLAGS=$CFLAGS
   3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3971 if ${ac_cv_prog_cc_g+:} false; then :
   3972   $as_echo_n "(cached) " >&6
   3973 else
   3974   ac_save_c_werror_flag=$ac_c_werror_flag
   3975    ac_c_werror_flag=yes
   3976    ac_cv_prog_cc_g=no
   3977    CFLAGS="-g"
   3978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3979 /* end confdefs.h.  */
   3980 
   3981 int
   3982 main ()
   3983 {
   3984 
   3985   ;
   3986   return 0;
   3987 }
   3988 _ACEOF
   3989 if ac_fn_c_try_compile "$LINENO"; then :
   3990   ac_cv_prog_cc_g=yes
   3991 else
   3992   CFLAGS=""
   3993       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3994 /* end confdefs.h.  */
   3995 
   3996 int
   3997 main ()
   3998 {
   3999 
   4000   ;
   4001   return 0;
   4002 }
   4003 _ACEOF
   4004 if ac_fn_c_try_compile "$LINENO"; then :
   4005 
   4006 else
   4007   ac_c_werror_flag=$ac_save_c_werror_flag
   4008 	 CFLAGS="-g"
   4009 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4010 /* end confdefs.h.  */
   4011 
   4012 int
   4013 main ()
   4014 {
   4015 
   4016   ;
   4017   return 0;
   4018 }
   4019 _ACEOF
   4020 if ac_fn_c_try_compile "$LINENO"; then :
   4021   ac_cv_prog_cc_g=yes
   4022 fi
   4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4024 fi
   4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4026 fi
   4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4028    ac_c_werror_flag=$ac_save_c_werror_flag
   4029 fi
   4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4031 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4032 if test "$ac_test_CFLAGS" = set; then
   4033   CFLAGS=$ac_save_CFLAGS
   4034 elif test $ac_cv_prog_cc_g = yes; then
   4035   if test "$GCC" = yes; then
   4036     CFLAGS="-g -O2"
   4037   else
   4038     CFLAGS="-g"
   4039   fi
   4040 else
   4041   if test "$GCC" = yes; then
   4042     CFLAGS="-O2"
   4043   else
   4044     CFLAGS=
   4045   fi
   4046 fi
   4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4049 if ${ac_cv_prog_cc_c89+:} false; then :
   4050   $as_echo_n "(cached) " >&6
   4051 else
   4052   ac_cv_prog_cc_c89=no
   4053 ac_save_CC=$CC
   4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4055 /* end confdefs.h.  */
   4056 #include <stdarg.h>
   4057 #include <stdio.h>
   4058 struct stat;
   4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4060 struct buf { int x; };
   4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4062 static char *e (p, i)
   4063      char **p;
   4064      int i;
   4065 {
   4066   return p[i];
   4067 }
   4068 static char *f (char * (*g) (char **, int), char **p, ...)
   4069 {
   4070   char *s;
   4071   va_list v;
   4072   va_start (v,p);
   4073   s = g (p, va_arg (v,int));
   4074   va_end (v);
   4075   return s;
   4076 }
   4077 
   4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4079    function prototypes and stuff, but not '\xHH' hex character constants.
   4080    These don't provoke an error unfortunately, instead are silently treated
   4081    as 'x'.  The following induces an error, until -std is added to get
   4082    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4083    array size at least.  It's necessary to write '\x00'==0 to get something
   4084    that's true only with -std.  */
   4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4086 
   4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4088    inside strings and character constants.  */
   4089 #define FOO(x) 'x'
   4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4091 
   4092 int test (int i, double x);
   4093 struct s1 {int (*f) (int a);};
   4094 struct s2 {int (*f) (double a);};
   4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4096 int argc;
   4097 char **argv;
   4098 int
   4099 main ()
   4100 {
   4101 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4102   ;
   4103   return 0;
   4104 }
   4105 _ACEOF
   4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4107 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4108 do
   4109   CC="$ac_save_CC $ac_arg"
   4110   if ac_fn_c_try_compile "$LINENO"; then :
   4111   ac_cv_prog_cc_c89=$ac_arg
   4112 fi
   4113 rm -f core conftest.err conftest.$ac_objext
   4114   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4115 done
   4116 rm -f conftest.$ac_ext
   4117 CC=$ac_save_CC
   4118 
   4119 fi
   4120 # AC_CACHE_VAL
   4121 case "x$ac_cv_prog_cc_c89" in
   4122   x)
   4123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4124 $as_echo "none needed" >&6; } ;;
   4125   xno)
   4126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4127 $as_echo "unsupported" >&6; } ;;
   4128   *)
   4129     CC="$CC $ac_cv_prog_cc_c89"
   4130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4132 esac
   4133 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4134 
   4135 fi
   4136 
   4137 ac_ext=c
   4138 ac_cpp='$CPP $CPPFLAGS'
   4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4142 
   4143 ac_ext=c
   4144 ac_cpp='$CPP $CPPFLAGS'
   4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   4149 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
   4150 if ${am_cv_prog_cc_c_o+:} false; then :
   4151   $as_echo_n "(cached) " >&6
   4152 else
   4153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4154 /* end confdefs.h.  */
   4155 
   4156 int
   4157 main ()
   4158 {
   4159 
   4160   ;
   4161   return 0;
   4162 }
   4163 _ACEOF
   4164   # Make sure it works both with $CC and with simple cc.
   4165   # Following AC_PROG_CC_C_O, we do the test twice because some
   4166   # compilers refuse to overwrite an existing .o file with -o,
   4167   # though they will create one.
   4168   am_cv_prog_cc_c_o=yes
   4169   for am_i in 1 2; do
   4170     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   4171    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   4172    ac_status=$?
   4173    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4174    (exit $ac_status); } \
   4175          && test -f conftest2.$ac_objext; then
   4176       : OK
   4177     else
   4178       am_cv_prog_cc_c_o=no
   4179       break
   4180     fi
   4181   done
   4182   rm -f core conftest*
   4183   unset am_i
   4184 fi
   4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   4186 $as_echo "$am_cv_prog_cc_c_o" >&6; }
   4187 if test "$am_cv_prog_cc_c_o" != yes; then
   4188    # Losing compiler, so override with the script.
   4189    # FIXME: It is wrong to rewrite CC.
   4190    # But if we don't then we get into trouble of one sort or another.
   4191    # A longer-term fix would be to have automake use am__CC in this case,
   4192    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   4193    CC="$am_aux_dir/compile $CC"
   4194 fi
   4195 ac_ext=c
   4196 ac_cpp='$CPP $CPPFLAGS'
   4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4200 
   4201 
   4202 depcc="$CC"   am_compiler_list=
   4203 
   4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4205 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4206 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   4207   $as_echo_n "(cached) " >&6
   4208 else
   4209   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4210   # We make a subdir and do the tests there.  Otherwise we can end up
   4211   # making bogus files that we don't know about and never remove.  For
   4212   # instance it was reported that on HP-UX the gcc test will end up
   4213   # making a dummy file named 'D' -- because '-MD' means "put the output
   4214   # in D".
   4215   rm -rf conftest.dir
   4216   mkdir conftest.dir
   4217   # Copy depcomp to subdir because otherwise we won't find it if we're
   4218   # using a relative directory.
   4219   cp "$am_depcomp" conftest.dir
   4220   cd conftest.dir
   4221   # We will build objects and dependencies in a subdirectory because
   4222   # it helps to detect inapplicable dependency modes.  For instance
   4223   # both Tru64's cc and ICC support -MD to output dependencies as a
   4224   # side effect of compilation, but ICC will put the dependencies in
   4225   # the current directory while Tru64 will put them in the object
   4226   # directory.
   4227   mkdir sub
   4228 
   4229   am_cv_CC_dependencies_compiler_type=none
   4230   if test "$am_compiler_list" = ""; then
   4231      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4232   fi
   4233   am__universal=false
   4234   case " $depcc " in #(
   4235      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4236      esac
   4237 
   4238   for depmode in $am_compiler_list; do
   4239     # Setup a source with many dependencies, because some compilers
   4240     # like to wrap large dependency lists on column 80 (with \), and
   4241     # we should not choose a depcomp mode which is confused by this.
   4242     #
   4243     # We need to recreate these files for each test, as the compiler may
   4244     # overwrite some of them when testing with obscure command lines.
   4245     # This happens at least with the AIX C compiler.
   4246     : > sub/conftest.c
   4247     for i in 1 2 3 4 5 6; do
   4248       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4249       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4250       # Solaris 10 /bin/sh.
   4251       echo '/* dummy */' > sub/conftst$i.h
   4252     done
   4253     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4254 
   4255     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4256     # mode.  It turns out that the SunPro C++ compiler does not properly
   4257     # handle '-M -o', and we need to detect this.  Also, some Intel
   4258     # versions had trouble with output in subdirs.
   4259     am__obj=sub/conftest.${OBJEXT-o}
   4260     am__minus_obj="-o $am__obj"
   4261     case $depmode in
   4262     gcc)
   4263       # This depmode causes a compiler race in universal mode.
   4264       test "$am__universal" = false || continue
   4265       ;;
   4266     nosideeffect)
   4267       # After this tag, mechanisms are not by side-effect, so they'll
   4268       # only be used when explicitly requested.
   4269       if test "x$enable_dependency_tracking" = xyes; then
   4270 	continue
   4271       else
   4272 	break
   4273       fi
   4274       ;;
   4275     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4276       # This compiler won't grok '-c -o', but also, the minuso test has
   4277       # not run yet.  These depmodes are late enough in the game, and
   4278       # so weak that their functioning should not be impacted.
   4279       am__obj=conftest.${OBJEXT-o}
   4280       am__minus_obj=
   4281       ;;
   4282     none) break ;;
   4283     esac
   4284     if depmode=$depmode \
   4285        source=sub/conftest.c object=$am__obj \
   4286        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4287        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4288          >/dev/null 2>conftest.err &&
   4289        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4290        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4291        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4292        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4293       # icc doesn't choke on unknown options, it will just issue warnings
   4294       # or remarks (even with -Werror).  So we grep stderr for any message
   4295       # that says an option was ignored or not supported.
   4296       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4297       #   icc: Command line warning: ignoring option '-M'; no argument required
   4298       # The diagnosis changed in icc 8.0:
   4299       #   icc: Command line remark: option '-MP' not supported
   4300       if (grep 'ignoring option' conftest.err ||
   4301           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4302         am_cv_CC_dependencies_compiler_type=$depmode
   4303         break
   4304       fi
   4305     fi
   4306   done
   4307 
   4308   cd ..
   4309   rm -rf conftest.dir
   4310 else
   4311   am_cv_CC_dependencies_compiler_type=none
   4312 fi
   4313 
   4314 fi
   4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4316 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4317 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4318 
   4319  if
   4320   test "x$enable_dependency_tracking" != xno \
   4321   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4322   am__fastdepCC_TRUE=
   4323   am__fastdepCC_FALSE='#'
   4324 else
   4325   am__fastdepCC_TRUE='#'
   4326   am__fastdepCC_FALSE=
   4327 fi
   4328 
   4329 
   4330 
   4331 ac_ext=c
   4332 ac_cpp='$CPP $CPPFLAGS'
   4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4338 # On Suns, sometimes $CPP names a directory.
   4339 if test -n "$CPP" && test -d "$CPP"; then
   4340   CPP=
   4341 fi
   4342 if test -z "$CPP"; then
   4343   if ${ac_cv_prog_CPP+:} false; then :
   4344   $as_echo_n "(cached) " >&6
   4345 else
   4346       # Double quotes because CPP needs to be expanded
   4347     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4348     do
   4349       ac_preproc_ok=false
   4350 for ac_c_preproc_warn_flag in '' yes
   4351 do
   4352   # Use a header file that comes with gcc, so configuring glibc
   4353   # with a fresh cross-compiler works.
   4354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4355   # <limits.h> exists even on freestanding compilers.
   4356   # On the NeXT, cc -E runs the code through the compiler's parser,
   4357   # not just through cpp. "Syntax error" is here to catch this case.
   4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4359 /* end confdefs.h.  */
   4360 #ifdef __STDC__
   4361 # include <limits.h>
   4362 #else
   4363 # include <assert.h>
   4364 #endif
   4365 		     Syntax error
   4366 _ACEOF
   4367 if ac_fn_c_try_cpp "$LINENO"; then :
   4368 
   4369 else
   4370   # Broken: fails on valid input.
   4371 continue
   4372 fi
   4373 rm -f conftest.err conftest.i conftest.$ac_ext
   4374 
   4375   # OK, works on sane cases.  Now check whether nonexistent headers
   4376   # can be detected and how.
   4377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4378 /* end confdefs.h.  */
   4379 #include <ac_nonexistent.h>
   4380 _ACEOF
   4381 if ac_fn_c_try_cpp "$LINENO"; then :
   4382   # Broken: success on invalid input.
   4383 continue
   4384 else
   4385   # Passes both tests.
   4386 ac_preproc_ok=:
   4387 break
   4388 fi
   4389 rm -f conftest.err conftest.i conftest.$ac_ext
   4390 
   4391 done
   4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4393 rm -f conftest.i conftest.err conftest.$ac_ext
   4394 if $ac_preproc_ok; then :
   4395   break
   4396 fi
   4397 
   4398     done
   4399     ac_cv_prog_CPP=$CPP
   4400 
   4401 fi
   4402   CPP=$ac_cv_prog_CPP
   4403 else
   4404   ac_cv_prog_CPP=$CPP
   4405 fi
   4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4407 $as_echo "$CPP" >&6; }
   4408 ac_preproc_ok=false
   4409 for ac_c_preproc_warn_flag in '' yes
   4410 do
   4411   # Use a header file that comes with gcc, so configuring glibc
   4412   # with a fresh cross-compiler works.
   4413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4414   # <limits.h> exists even on freestanding compilers.
   4415   # On the NeXT, cc -E runs the code through the compiler's parser,
   4416   # not just through cpp. "Syntax error" is here to catch this case.
   4417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4418 /* end confdefs.h.  */
   4419 #ifdef __STDC__
   4420 # include <limits.h>
   4421 #else
   4422 # include <assert.h>
   4423 #endif
   4424 		     Syntax error
   4425 _ACEOF
   4426 if ac_fn_c_try_cpp "$LINENO"; then :
   4427 
   4428 else
   4429   # Broken: fails on valid input.
   4430 continue
   4431 fi
   4432 rm -f conftest.err conftest.i conftest.$ac_ext
   4433 
   4434   # OK, works on sane cases.  Now check whether nonexistent headers
   4435   # can be detected and how.
   4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4437 /* end confdefs.h.  */
   4438 #include <ac_nonexistent.h>
   4439 _ACEOF
   4440 if ac_fn_c_try_cpp "$LINENO"; then :
   4441   # Broken: success on invalid input.
   4442 continue
   4443 else
   4444   # Passes both tests.
   4445 ac_preproc_ok=:
   4446 break
   4447 fi
   4448 rm -f conftest.err conftest.i conftest.$ac_ext
   4449 
   4450 done
   4451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4452 rm -f conftest.i conftest.err conftest.$ac_ext
   4453 if $ac_preproc_ok; then :
   4454 
   4455 else
   4456   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4459 See \`config.log' for more details" "$LINENO" 5; }
   4460 fi
   4461 
   4462 ac_ext=c
   4463 ac_cpp='$CPP $CPPFLAGS'
   4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4467 
   4468 
   4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4470 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4471 if ${ac_cv_path_GREP+:} false; then :
   4472   $as_echo_n "(cached) " >&6
   4473 else
   4474   if test -z "$GREP"; then
   4475   ac_path_GREP_found=false
   4476   # Loop through the user's path and test for each of PROGNAME-LIST
   4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4479 do
   4480   IFS=$as_save_IFS
   4481   test -z "$as_dir" && as_dir=.
   4482     for ac_prog in grep ggrep; do
   4483     for ac_exec_ext in '' $ac_executable_extensions; do
   4484       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4485       as_fn_executable_p "$ac_path_GREP" || continue
   4486 # Check for GNU ac_path_GREP and select it if it is found.
   4487   # Check for GNU $ac_path_GREP
   4488 case `"$ac_path_GREP" --version 2>&1` in
   4489 *GNU*)
   4490   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4491 *)
   4492   ac_count=0
   4493   $as_echo_n 0123456789 >"conftest.in"
   4494   while :
   4495   do
   4496     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4497     mv "conftest.tmp" "conftest.in"
   4498     cp "conftest.in" "conftest.nl"
   4499     $as_echo 'GREP' >> "conftest.nl"
   4500     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4502     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4503     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4504       # Best one so far, save it but keep looking for a better one
   4505       ac_cv_path_GREP="$ac_path_GREP"
   4506       ac_path_GREP_max=$ac_count
   4507     fi
   4508     # 10*(2^10) chars as input seems more than enough
   4509     test $ac_count -gt 10 && break
   4510   done
   4511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4512 esac
   4513 
   4514       $ac_path_GREP_found && break 3
   4515     done
   4516   done
   4517   done
   4518 IFS=$as_save_IFS
   4519   if test -z "$ac_cv_path_GREP"; then
   4520     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4521   fi
   4522 else
   4523   ac_cv_path_GREP=$GREP
   4524 fi
   4525 
   4526 fi
   4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4528 $as_echo "$ac_cv_path_GREP" >&6; }
   4529  GREP="$ac_cv_path_GREP"
   4530 
   4531 
   4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4533 $as_echo_n "checking for egrep... " >&6; }
   4534 if ${ac_cv_path_EGREP+:} false; then :
   4535   $as_echo_n "(cached) " >&6
   4536 else
   4537   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4538    then ac_cv_path_EGREP="$GREP -E"
   4539    else
   4540      if test -z "$EGREP"; then
   4541   ac_path_EGREP_found=false
   4542   # Loop through the user's path and test for each of PROGNAME-LIST
   4543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4545 do
   4546   IFS=$as_save_IFS
   4547   test -z "$as_dir" && as_dir=.
   4548     for ac_prog in egrep; do
   4549     for ac_exec_ext in '' $ac_executable_extensions; do
   4550       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4551       as_fn_executable_p "$ac_path_EGREP" || continue
   4552 # Check for GNU ac_path_EGREP and select it if it is found.
   4553   # Check for GNU $ac_path_EGREP
   4554 case `"$ac_path_EGREP" --version 2>&1` in
   4555 *GNU*)
   4556   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4557 *)
   4558   ac_count=0
   4559   $as_echo_n 0123456789 >"conftest.in"
   4560   while :
   4561   do
   4562     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4563     mv "conftest.tmp" "conftest.in"
   4564     cp "conftest.in" "conftest.nl"
   4565     $as_echo 'EGREP' >> "conftest.nl"
   4566     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4567     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4568     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4569     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4570       # Best one so far, save it but keep looking for a better one
   4571       ac_cv_path_EGREP="$ac_path_EGREP"
   4572       ac_path_EGREP_max=$ac_count
   4573     fi
   4574     # 10*(2^10) chars as input seems more than enough
   4575     test $ac_count -gt 10 && break
   4576   done
   4577   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4578 esac
   4579 
   4580       $ac_path_EGREP_found && break 3
   4581     done
   4582   done
   4583   done
   4584 IFS=$as_save_IFS
   4585   if test -z "$ac_cv_path_EGREP"; then
   4586     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4587   fi
   4588 else
   4589   ac_cv_path_EGREP=$EGREP
   4590 fi
   4591 
   4592    fi
   4593 fi
   4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4595 $as_echo "$ac_cv_path_EGREP" >&6; }
   4596  EGREP="$ac_cv_path_EGREP"
   4597 
   4598 
   4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4600 $as_echo_n "checking for ANSI C header files... " >&6; }
   4601 if ${ac_cv_header_stdc+:} false; then :
   4602   $as_echo_n "(cached) " >&6
   4603 else
   4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4605 /* end confdefs.h.  */
   4606 #include <stdlib.h>
   4607 #include <stdarg.h>
   4608 #include <string.h>
   4609 #include <float.h>
   4610 
   4611 int
   4612 main ()
   4613 {
   4614 
   4615   ;
   4616   return 0;
   4617 }
   4618 _ACEOF
   4619 if ac_fn_c_try_compile "$LINENO"; then :
   4620   ac_cv_header_stdc=yes
   4621 else
   4622   ac_cv_header_stdc=no
   4623 fi
   4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4625 
   4626 if test $ac_cv_header_stdc = yes; then
   4627   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4629 /* end confdefs.h.  */
   4630 #include <string.h>
   4631 
   4632 _ACEOF
   4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4634   $EGREP "memchr" >/dev/null 2>&1; then :
   4635 
   4636 else
   4637   ac_cv_header_stdc=no
   4638 fi
   4639 rm -f conftest*
   4640 
   4641 fi
   4642 
   4643 if test $ac_cv_header_stdc = yes; then
   4644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4646 /* end confdefs.h.  */
   4647 #include <stdlib.h>
   4648 
   4649 _ACEOF
   4650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4651   $EGREP "free" >/dev/null 2>&1; then :
   4652 
   4653 else
   4654   ac_cv_header_stdc=no
   4655 fi
   4656 rm -f conftest*
   4657 
   4658 fi
   4659 
   4660 if test $ac_cv_header_stdc = yes; then
   4661   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4662   if test "$cross_compiling" = yes; then :
   4663   :
   4664 else
   4665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4666 /* end confdefs.h.  */
   4667 #include <ctype.h>
   4668 #include <stdlib.h>
   4669 #if ((' ' & 0x0FF) == 0x020)
   4670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4672 #else
   4673 # define ISLOWER(c) \
   4674 		   (('a' <= (c) && (c) <= 'i') \
   4675 		     || ('j' <= (c) && (c) <= 'r') \
   4676 		     || ('s' <= (c) && (c) <= 'z'))
   4677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4678 #endif
   4679 
   4680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4681 int
   4682 main ()
   4683 {
   4684   int i;
   4685   for (i = 0; i < 256; i++)
   4686     if (XOR (islower (i), ISLOWER (i))
   4687 	|| toupper (i) != TOUPPER (i))
   4688       return 2;
   4689   return 0;
   4690 }
   4691 _ACEOF
   4692 if ac_fn_c_try_run "$LINENO"; then :
   4693 
   4694 else
   4695   ac_cv_header_stdc=no
   4696 fi
   4697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4698   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4699 fi
   4700 
   4701 fi
   4702 fi
   4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4704 $as_echo "$ac_cv_header_stdc" >&6; }
   4705 if test $ac_cv_header_stdc = yes; then
   4706 
   4707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4708 
   4709 fi
   4710 
   4711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4713 		  inttypes.h stdint.h unistd.h
   4714 do :
   4715   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4717 "
   4718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4719   cat >>confdefs.h <<_ACEOF
   4720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4721 _ACEOF
   4722 
   4723 fi
   4724 
   4725 done
   4726 
   4727 
   4728 
   4729   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4730 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4731   MINIX=yes
   4732 else
   4733   MINIX=
   4734 fi
   4735 
   4736 
   4737   if test "$MINIX" = yes; then
   4738 
   4739 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4740 
   4741 
   4742 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4743 
   4744 
   4745 $as_echo "#define _MINIX 1" >>confdefs.h
   4746 
   4747   fi
   4748 
   4749 
   4750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4751 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4752 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4753   $as_echo_n "(cached) " >&6
   4754 else
   4755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4756 /* end confdefs.h.  */
   4757 
   4758 #         define __EXTENSIONS__ 1
   4759           $ac_includes_default
   4760 int
   4761 main ()
   4762 {
   4763 
   4764   ;
   4765   return 0;
   4766 }
   4767 _ACEOF
   4768 if ac_fn_c_try_compile "$LINENO"; then :
   4769   ac_cv_safe_to_define___extensions__=yes
   4770 else
   4771   ac_cv_safe_to_define___extensions__=no
   4772 fi
   4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4774 fi
   4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4776 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4777   test $ac_cv_safe_to_define___extensions__ = yes &&
   4778     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4779 
   4780   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4781 
   4782   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4783 
   4784   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4785 
   4786   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4787 
   4788 
   4789 
   4790 
   4791 # Make sure we can run config.sub.
   4792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4793   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4794 
   4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4796 $as_echo_n "checking build system type... " >&6; }
   4797 if ${ac_cv_build+:} false; then :
   4798   $as_echo_n "(cached) " >&6
   4799 else
   4800   ac_build_alias=$build_alias
   4801 test "x$ac_build_alias" = x &&
   4802   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4803 test "x$ac_build_alias" = x &&
   4804   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4805 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4806   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4807 
   4808 fi
   4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4810 $as_echo "$ac_cv_build" >&6; }
   4811 case $ac_cv_build in
   4812 *-*-*) ;;
   4813 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4814 esac
   4815 build=$ac_cv_build
   4816 ac_save_IFS=$IFS; IFS='-'
   4817 set x $ac_cv_build
   4818 shift
   4819 build_cpu=$1
   4820 build_vendor=$2
   4821 shift; shift
   4822 # Remember, the first character of IFS is used to create $*,
   4823 # except with old shells:
   4824 build_os=$*
   4825 IFS=$ac_save_IFS
   4826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4827 
   4828 
   4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4830 $as_echo_n "checking host system type... " >&6; }
   4831 if ${ac_cv_host+:} false; then :
   4832   $as_echo_n "(cached) " >&6
   4833 else
   4834   if test "x$host_alias" = x; then
   4835   ac_cv_host=$ac_cv_build
   4836 else
   4837   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4838     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4839 fi
   4840 
   4841 fi
   4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4843 $as_echo "$ac_cv_host" >&6; }
   4844 case $ac_cv_host in
   4845 *-*-*) ;;
   4846 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4847 esac
   4848 host=$ac_cv_host
   4849 ac_save_IFS=$IFS; IFS='-'
   4850 set x $ac_cv_host
   4851 shift
   4852 host_cpu=$1
   4853 host_vendor=$2
   4854 shift; shift
   4855 # Remember, the first character of IFS is used to create $*,
   4856 # except with old shells:
   4857 host_os=$*
   4858 IFS=$ac_save_IFS
   4859 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4860 
   4861 
   4862 
   4863 #case "$host_os" in
   4864 #
   4865 # osf5*)
   4866 #    CFLAGS="$CFLAGS -D_OSF_SOURCE"
   4867 #    ;;
   4868 #esac
   4869 
   4870 
   4871 
   4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4873 $as_echo_n "checking whether ln -s works... " >&6; }
   4874 LN_S=$as_ln_s
   4875 if test "$LN_S" = "ln -s"; then
   4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4877 $as_echo "yes" >&6; }
   4878 else
   4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4880 $as_echo "no, using $LN_S" >&6; }
   4881 fi
   4882 
   4883 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
   4884 
   4885 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
   4886 # versions
   4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4889 if ${ac_cv_path_SED+:} false; then :
   4890   $as_echo_n "(cached) " >&6
   4891 else
   4892             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4893      for ac_i in 1 2 3 4 5 6 7; do
   4894        ac_script="$ac_script$as_nl$ac_script"
   4895      done
   4896      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4897      { ac_script=; unset ac_script;}
   4898      if test -z "$SED"; then
   4899   ac_path_SED_found=false
   4900   # Loop through the user's path and test for each of PROGNAME-LIST
   4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4902 for as_dir in $PATH
   4903 do
   4904   IFS=$as_save_IFS
   4905   test -z "$as_dir" && as_dir=.
   4906     for ac_prog in sed gsed; do
   4907     for ac_exec_ext in '' $ac_executable_extensions; do
   4908       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4909       as_fn_executable_p "$ac_path_SED" || continue
   4910 # Check for GNU ac_path_SED and select it if it is found.
   4911   # Check for GNU $ac_path_SED
   4912 case `"$ac_path_SED" --version 2>&1` in
   4913 *GNU*)
   4914   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4915 *)
   4916   ac_count=0
   4917   $as_echo_n 0123456789 >"conftest.in"
   4918   while :
   4919   do
   4920     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4921     mv "conftest.tmp" "conftest.in"
   4922     cp "conftest.in" "conftest.nl"
   4923     $as_echo '' >> "conftest.nl"
   4924     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4926     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4927     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4928       # Best one so far, save it but keep looking for a better one
   4929       ac_cv_path_SED="$ac_path_SED"
   4930       ac_path_SED_max=$ac_count
   4931     fi
   4932     # 10*(2^10) chars as input seems more than enough
   4933     test $ac_count -gt 10 && break
   4934   done
   4935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4936 esac
   4937 
   4938       $ac_path_SED_found && break 3
   4939     done
   4940   done
   4941   done
   4942 IFS=$as_save_IFS
   4943   if test -z "$ac_cv_path_SED"; then
   4944     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4945   fi
   4946 else
   4947   ac_cv_path_SED=$SED
   4948 fi
   4949 
   4950 fi
   4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4952 $as_echo "$ac_cv_path_SED" >&6; }
   4953  SED="$ac_cv_path_SED"
   4954   rm -f conftest.sed
   4955 
   4956 
   4957 if test $ac_cv_c_compiler_gnu = yes; then
   4958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
   4959 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
   4960 if ${ac_cv_prog_gcc_traditional+:} false; then :
   4961   $as_echo_n "(cached) " >&6
   4962 else
   4963     ac_pattern="Autoconf.*'x'"
   4964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4965 /* end confdefs.h.  */
   4966 #include <sgtty.h>
   4967 Autoconf TIOCGETP
   4968 _ACEOF
   4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4970   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
   4971   ac_cv_prog_gcc_traditional=yes
   4972 else
   4973   ac_cv_prog_gcc_traditional=no
   4974 fi
   4975 rm -f conftest*
   4976 
   4977 
   4978   if test $ac_cv_prog_gcc_traditional = no; then
   4979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4980 /* end confdefs.h.  */
   4981 #include <termio.h>
   4982 Autoconf TCGETA
   4983 _ACEOF
   4984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4985   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
   4986   ac_cv_prog_gcc_traditional=yes
   4987 fi
   4988 rm -f conftest*
   4989 
   4990   fi
   4991 fi
   4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
   4993 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
   4994   if test $ac_cv_prog_gcc_traditional = yes; then
   4995     CC="$CC -traditional"
   4996   fi
   4997 fi
   4998 
   4999 
   5000 # We need to test for at least gcc 2.95 here, because older versions don't
   5001 # have -fno-strict-aliasing
   5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5003 /* end confdefs.h.  */
   5004 
   5005 int
   5006 main ()
   5007 {
   5008 
   5009 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
   5010 #error
   5011 #endif
   5012   ;
   5013   return 0;
   5014 }
   5015 _ACEOF
   5016 if ac_fn_c_try_compile "$LINENO"; then :
   5017   have_gcc295=yes
   5018 else
   5019   have_gcc295=no
   5020 fi
   5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5022 
   5023 if test "$GCC" = "yes" ; then
   5024         # Enable many gcc warnings by default...
   5025         CFLAGS="$CFLAGS -Wall"
   5026 	# And disable the strict-aliasing optimization, since it breaks
   5027 	# our sockaddr-handling code in strange ways.
   5028 	if test x$have_gcc295 = xyes; then
   5029 		CFLAGS="$CFLAGS -fno-strict-aliasing"
   5030 	fi
   5031 fi
   5032 
   5033 # OS X Lion started deprecating the system openssl. Let's just disable
   5034 # all deprecation warnings on OS X; but do so only for gcc...
   5035 if test "$GCC" = "yes" ; then
   5036 	case "$host_os" in
   5037 	 darwin*)
   5038 	    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
   5039 	    ;;
   5040 	esac
   5041 fi
   5042 
   5043 # Check whether --enable-gcc-warnings was given.
   5044 if test "${enable_gcc_warnings+set}" = set; then :
   5045   enableval=$enable_gcc_warnings;
   5046 fi
   5047 
   5048 
   5049 # Check whether --enable-gcc-hardening was given.
   5050 if test "${enable_gcc_hardening+set}" = set; then :
   5051   enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
   5052     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
   5053     CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
   5054     CFLAGS="$CFLAGS --param ssp-buffer-size=1"
   5055 fi
   5056 fi
   5057 
   5058 
   5059 # Check whether --enable-thread-support was given.
   5060 if test "${enable_thread_support+set}" = set; then :
   5061   enableval=$enable_thread_support;
   5062 else
   5063   enable_thread_support=yes
   5064 fi
   5065 
   5066 # Check whether --enable-malloc-replacement was given.
   5067 if test "${enable_malloc_replacement+set}" = set; then :
   5068   enableval=$enable_malloc_replacement;
   5069 else
   5070   enable_malloc_replacement=yes
   5071 fi
   5072 
   5073 # Check whether --enable-openssl was given.
   5074 if test "${enable_openssl+set}" = set; then :
   5075   enableval=$enable_openssl;
   5076 else
   5077   enable_openssl=yes
   5078 fi
   5079 
   5080 # Check whether --enable-debug-mode was given.
   5081 if test "${enable_debug_mode+set}" = set; then :
   5082   enableval=$enable_debug_mode;
   5083 else
   5084   enable_debug_mode=yes
   5085 fi
   5086 
   5087 # Check whether --enable-libevent-install was given.
   5088 if test "${enable_libevent_install+set}" = set; then :
   5089   enableval=$enable_libevent_install;
   5090 else
   5091   enable_libevent_install=yes
   5092 fi
   5093 
   5094 # Check whether --enable-libevent-regress was given.
   5095 if test "${enable_libevent_regress+set}" = set; then :
   5096   enableval=$enable_libevent_regress;
   5097 else
   5098   enable_libevent_regress=yes
   5099 fi
   5100 
   5101 # Check whether --enable-samples was given.
   5102 if test "${enable_samples+set}" = set; then :
   5103   enableval=$enable_samples;
   5104 else
   5105   enable_samples=yes
   5106 fi
   5107 
   5108 # Check whether --enable-function-sections was given.
   5109 if test "${enable_function_sections+set}" = set; then :
   5110   enableval=$enable_function_sections;
   5111 else
   5112   enable_function_sections=no
   5113 fi
   5114 
   5115 # Check whether --enable-verbose-debug was given.
   5116 if test "${enable_verbose_debug+set}" = set; then :
   5117   enableval=$enable_verbose_debug;
   5118 else
   5119   enable_verbose_debug=no
   5120 fi
   5121 
   5122 # Check whether --enable-clock-gettime was given.
   5123 if test "${enable_clock_gettime+set}" = set; then :
   5124   enableval=$enable_clock_gettime;
   5125 else
   5126   enable_clock_gettime=yes
   5127 fi
   5128 
   5129 
   5130 
   5131 case `pwd` in
   5132   *\ * | *\	*)
   5133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   5134 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   5135 esac
   5136 
   5137 
   5138 
   5139 macro_version='2.4.6'
   5140 macro_revision='2.4.6'
   5141 
   5142 
   5143 
   5144 
   5145 
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 
   5152 
   5153 
   5154 ltmain=$ac_aux_dir/ltmain.sh
   5155 
   5156 # Backslashify metacharacters that are still active within
   5157 # double-quoted strings.
   5158 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   5159 
   5160 # Same as above, but do not quote variable references.
   5161 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   5162 
   5163 # Sed substitution to delay expansion of an escaped shell variable in a
   5164 # double_quote_subst'ed string.
   5165 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   5166 
   5167 # Sed substitution to delay expansion of an escaped single quote.
   5168 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   5169 
   5170 # Sed substitution to avoid accidental globbing in evaled expressions
   5171 no_glob_subst='s/\*/\\\*/g'
   5172 
   5173 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   5174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   5175 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   5176 
   5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   5178 $as_echo_n "checking how to print strings... " >&6; }
   5179 # Test print first, because it will be a builtin if present.
   5180 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   5181    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   5182   ECHO='print -r --'
   5183 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   5184   ECHO='printf %s\n'
   5185 else
   5186   # Use this function as a fallback that always works.
   5187   func_fallback_echo ()
   5188   {
   5189     eval 'cat <<_LTECHO_EOF
   5190 $1
   5191 _LTECHO_EOF'
   5192   }
   5193   ECHO='func_fallback_echo'
   5194 fi
   5195 
   5196 # func_echo_all arg...
   5197 # Invoke $ECHO with all args, space-separated.
   5198 func_echo_all ()
   5199 {
   5200     $ECHO ""
   5201 }
   5202 
   5203 case $ECHO in
   5204   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   5205 $as_echo "printf" >&6; } ;;
   5206   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   5207 $as_echo "print -r" >&6; } ;;
   5208   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   5209 $as_echo "cat" >&6; } ;;
   5210 esac
   5211 
   5212 
   5213 
   5214 
   5215 
   5216 
   5217 
   5218 
   5219 
   5220 
   5221 
   5222 
   5223 
   5224 
   5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   5226 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   5227 if ${ac_cv_path_SED+:} false; then :
   5228   $as_echo_n "(cached) " >&6
   5229 else
   5230             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   5231      for ac_i in 1 2 3 4 5 6 7; do
   5232        ac_script="$ac_script$as_nl$ac_script"
   5233      done
   5234      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   5235      { ac_script=; unset ac_script;}
   5236      if test -z "$SED"; then
   5237   ac_path_SED_found=false
   5238   # Loop through the user's path and test for each of PROGNAME-LIST
   5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5240 for as_dir in $PATH
   5241 do
   5242   IFS=$as_save_IFS
   5243   test -z "$as_dir" && as_dir=.
   5244     for ac_prog in sed gsed; do
   5245     for ac_exec_ext in '' $ac_executable_extensions; do
   5246       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   5247       as_fn_executable_p "$ac_path_SED" || continue
   5248 # Check for GNU ac_path_SED and select it if it is found.
   5249   # Check for GNU $ac_path_SED
   5250 case `"$ac_path_SED" --version 2>&1` in
   5251 *GNU*)
   5252   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   5253 *)
   5254   ac_count=0
   5255   $as_echo_n 0123456789 >"conftest.in"
   5256   while :
   5257   do
   5258     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5259     mv "conftest.tmp" "conftest.in"
   5260     cp "conftest.in" "conftest.nl"
   5261     $as_echo '' >> "conftest.nl"
   5262     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5263     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5264     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5265     if test $ac_count -gt ${ac_path_SED_max-0}; then
   5266       # Best one so far, save it but keep looking for a better one
   5267       ac_cv_path_SED="$ac_path_SED"
   5268       ac_path_SED_max=$ac_count
   5269     fi
   5270     # 10*(2^10) chars as input seems more than enough
   5271     test $ac_count -gt 10 && break
   5272   done
   5273   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5274 esac
   5275 
   5276       $ac_path_SED_found && break 3
   5277     done
   5278   done
   5279   done
   5280 IFS=$as_save_IFS
   5281   if test -z "$ac_cv_path_SED"; then
   5282     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   5283   fi
   5284 else
   5285   ac_cv_path_SED=$SED
   5286 fi
   5287 
   5288 fi
   5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   5290 $as_echo "$ac_cv_path_SED" >&6; }
   5291  SED="$ac_cv_path_SED"
   5292   rm -f conftest.sed
   5293 
   5294 test -z "$SED" && SED=sed
   5295 Xsed="$SED -e 1s/^X//"
   5296 
   5297 
   5298 
   5299 
   5300 
   5301 
   5302 
   5303 
   5304 
   5305 
   5306 
   5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   5308 $as_echo_n "checking for fgrep... " >&6; }
   5309 if ${ac_cv_path_FGREP+:} false; then :
   5310   $as_echo_n "(cached) " >&6
   5311 else
   5312   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   5313    then ac_cv_path_FGREP="$GREP -F"
   5314    else
   5315      if test -z "$FGREP"; then
   5316   ac_path_FGREP_found=false
   5317   # Loop through the user's path and test for each of PROGNAME-LIST
   5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5320 do
   5321   IFS=$as_save_IFS
   5322   test -z "$as_dir" && as_dir=.
   5323     for ac_prog in fgrep; do
   5324     for ac_exec_ext in '' $ac_executable_extensions; do
   5325       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   5326       as_fn_executable_p "$ac_path_FGREP" || continue
   5327 # Check for GNU ac_path_FGREP and select it if it is found.
   5328   # Check for GNU $ac_path_FGREP
   5329 case `"$ac_path_FGREP" --version 2>&1` in
   5330 *GNU*)
   5331   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   5332 *)
   5333   ac_count=0
   5334   $as_echo_n 0123456789 >"conftest.in"
   5335   while :
   5336   do
   5337     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5338     mv "conftest.tmp" "conftest.in"
   5339     cp "conftest.in" "conftest.nl"
   5340     $as_echo 'FGREP' >> "conftest.nl"
   5341     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5343     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5344     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   5345       # Best one so far, save it but keep looking for a better one
   5346       ac_cv_path_FGREP="$ac_path_FGREP"
   5347       ac_path_FGREP_max=$ac_count
   5348     fi
   5349     # 10*(2^10) chars as input seems more than enough
   5350     test $ac_count -gt 10 && break
   5351   done
   5352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5353 esac
   5354 
   5355       $ac_path_FGREP_found && break 3
   5356     done
   5357   done
   5358   done
   5359 IFS=$as_save_IFS
   5360   if test -z "$ac_cv_path_FGREP"; then
   5361     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5362   fi
   5363 else
   5364   ac_cv_path_FGREP=$FGREP
   5365 fi
   5366 
   5367    fi
   5368 fi
   5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   5370 $as_echo "$ac_cv_path_FGREP" >&6; }
   5371  FGREP="$ac_cv_path_FGREP"
   5372 
   5373 
   5374 test -z "$GREP" && GREP=grep
   5375 
   5376 
   5377 
   5378 
   5379 
   5380 
   5381 
   5382 
   5383 
   5384 
   5385 
   5386 
   5387 
   5388 
   5389 
   5390 
   5391 
   5392 
   5393 
   5394 # Check whether --with-gnu-ld was given.
   5395 if test "${with_gnu_ld+set}" = set; then :
   5396   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   5397 else
   5398   with_gnu_ld=no
   5399 fi
   5400 
   5401 ac_prog=ld
   5402 if test yes = "$GCC"; then
   5403   # Check if gcc -print-prog-name=ld gives a path.
   5404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   5405 $as_echo_n "checking for ld used by $CC... " >&6; }
   5406   case $host in
   5407   *-*-mingw*)
   5408     # gcc leaves a trailing carriage return, which upsets mingw
   5409     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   5410   *)
   5411     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   5412   esac
   5413   case $ac_prog in
   5414     # Accept absolute paths.
   5415     [\\/]* | ?:[\\/]*)
   5416       re_direlt='/[^/][^/]*/\.\./'
   5417       # Canonicalize the pathname of ld
   5418       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   5419       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   5420 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   5421       done
   5422       test -z "$LD" && LD=$ac_prog
   5423       ;;
   5424   "")
   5425     # If it fails, then pretend we aren't using GCC.
   5426     ac_prog=ld
   5427     ;;
   5428   *)
   5429     # If it is relative, then search for the first ld in PATH.
   5430     with_gnu_ld=unknown
   5431     ;;
   5432   esac
   5433 elif test yes = "$with_gnu_ld"; then
   5434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   5435 $as_echo_n "checking for GNU ld... " >&6; }
   5436 else
   5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   5438 $as_echo_n "checking for non-GNU ld... " >&6; }
   5439 fi
   5440 if ${lt_cv_path_LD+:} false; then :
   5441   $as_echo_n "(cached) " >&6
   5442 else
   5443   if test -z "$LD"; then
   5444   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   5445   for ac_dir in $PATH; do
   5446     IFS=$lt_save_ifs
   5447     test -z "$ac_dir" && ac_dir=.
   5448     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   5449       lt_cv_path_LD=$ac_dir/$ac_prog
   5450       # Check to see if the program is GNU ld.  I'd rather use --version,
   5451       # but apparently some variants of GNU ld only accept -v.
   5452       # Break only if it was the GNU/non-GNU ld that we prefer.
   5453       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   5454       *GNU* | *'with BFD'*)
   5455 	test no != "$with_gnu_ld" && break
   5456 	;;
   5457       *)
   5458 	test yes != "$with_gnu_ld" && break
   5459 	;;
   5460       esac
   5461     fi
   5462   done
   5463   IFS=$lt_save_ifs
   5464 else
   5465   lt_cv_path_LD=$LD # Let the user override the test with a path.
   5466 fi
   5467 fi
   5468 
   5469 LD=$lt_cv_path_LD
   5470 if test -n "$LD"; then
   5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   5472 $as_echo "$LD" >&6; }
   5473 else
   5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5475 $as_echo "no" >&6; }
   5476 fi
   5477 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   5479 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   5480 if ${lt_cv_prog_gnu_ld+:} false; then :
   5481   $as_echo_n "(cached) " >&6
   5482 else
   5483   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   5484 case `$LD -v 2>&1 </dev/null` in
   5485 *GNU* | *'with BFD'*)
   5486   lt_cv_prog_gnu_ld=yes
   5487   ;;
   5488 *)
   5489   lt_cv_prog_gnu_ld=no
   5490   ;;
   5491 esac
   5492 fi
   5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   5494 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   5495 with_gnu_ld=$lt_cv_prog_gnu_ld
   5496 
   5497 
   5498 
   5499 
   5500 
   5501 
   5502 
   5503 
   5504 
   5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   5506 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   5507 if ${lt_cv_path_NM+:} false; then :
   5508   $as_echo_n "(cached) " >&6
   5509 else
   5510   if test -n "$NM"; then
   5511   # Let the user override the test.
   5512   lt_cv_path_NM=$NM
   5513 else
   5514   lt_nm_to_check=${ac_tool_prefix}nm
   5515   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5516     lt_nm_to_check="$lt_nm_to_check nm"
   5517   fi
   5518   for lt_tmp_nm in $lt_nm_to_check; do
   5519     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   5520     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5521       IFS=$lt_save_ifs
   5522       test -z "$ac_dir" && ac_dir=.
   5523       tmp_nm=$ac_dir/$lt_tmp_nm
   5524       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   5525 	# Check to see if the nm accepts a BSD-compat flag.
   5526 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   5527 	#   nm: unknown option "B" ignored
   5528 	# Tru64's nm complains that /dev/null is an invalid object file
   5529 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   5530 	case $build_os in
   5531 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   5532 	*) lt_bad_file=/dev/null ;;
   5533 	esac
   5534 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   5535 	*$lt_bad_file* | *'Invalid file or object type'*)
   5536 	  lt_cv_path_NM="$tmp_nm -B"
   5537 	  break 2
   5538 	  ;;
   5539 	*)
   5540 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   5541 	  */dev/null*)
   5542 	    lt_cv_path_NM="$tmp_nm -p"
   5543 	    break 2
   5544 	    ;;
   5545 	  *)
   5546 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5547 	    continue # so that we can try to find one that supports BSD flags
   5548 	    ;;
   5549 	  esac
   5550 	  ;;
   5551 	esac
   5552       fi
   5553     done
   5554     IFS=$lt_save_ifs
   5555   done
   5556   : ${lt_cv_path_NM=no}
   5557 fi
   5558 fi
   5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   5560 $as_echo "$lt_cv_path_NM" >&6; }
   5561 if test no != "$lt_cv_path_NM"; then
   5562   NM=$lt_cv_path_NM
   5563 else
   5564   # Didn't find any BSD compatible name lister, look for dumpbin.
   5565   if test -n "$DUMPBIN"; then :
   5566     # Let the user override the test.
   5567   else
   5568     if test -n "$ac_tool_prefix"; then
   5569   for ac_prog in dumpbin "link -dump"
   5570   do
   5571     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5574 $as_echo_n "checking for $ac_word... " >&6; }
   5575 if ${ac_cv_prog_DUMPBIN+:} false; then :
   5576   $as_echo_n "(cached) " >&6
   5577 else
   5578   if test -n "$DUMPBIN"; then
   5579   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   5580 else
   5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5582 for as_dir in $PATH
   5583 do
   5584   IFS=$as_save_IFS
   5585   test -z "$as_dir" && as_dir=.
   5586     for ac_exec_ext in '' $ac_executable_extensions; do
   5587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5588     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5590     break 2
   5591   fi
   5592 done
   5593   done
   5594 IFS=$as_save_IFS
   5595 
   5596 fi
   5597 fi
   5598 DUMPBIN=$ac_cv_prog_DUMPBIN
   5599 if test -n "$DUMPBIN"; then
   5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   5601 $as_echo "$DUMPBIN" >&6; }
   5602 else
   5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5604 $as_echo "no" >&6; }
   5605 fi
   5606 
   5607 
   5608     test -n "$DUMPBIN" && break
   5609   done
   5610 fi
   5611 if test -z "$DUMPBIN"; then
   5612   ac_ct_DUMPBIN=$DUMPBIN
   5613   for ac_prog in dumpbin "link -dump"
   5614 do
   5615   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5616 set dummy $ac_prog; ac_word=$2
   5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5618 $as_echo_n "checking for $ac_word... " >&6; }
   5619 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   5620   $as_echo_n "(cached) " >&6
   5621 else
   5622   if test -n "$ac_ct_DUMPBIN"; then
   5623   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   5624 else
   5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5626 for as_dir in $PATH
   5627 do
   5628   IFS=$as_save_IFS
   5629   test -z "$as_dir" && as_dir=.
   5630     for ac_exec_ext in '' $ac_executable_extensions; do
   5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5632     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5634     break 2
   5635   fi
   5636 done
   5637   done
   5638 IFS=$as_save_IFS
   5639 
   5640 fi
   5641 fi
   5642 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   5643 if test -n "$ac_ct_DUMPBIN"; then
   5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   5645 $as_echo "$ac_ct_DUMPBIN" >&6; }
   5646 else
   5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5648 $as_echo "no" >&6; }
   5649 fi
   5650 
   5651 
   5652   test -n "$ac_ct_DUMPBIN" && break
   5653 done
   5654 
   5655   if test "x$ac_ct_DUMPBIN" = x; then
   5656     DUMPBIN=":"
   5657   else
   5658     case $cross_compiling:$ac_tool_warned in
   5659 yes:)
   5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5662 ac_tool_warned=yes ;;
   5663 esac
   5664     DUMPBIN=$ac_ct_DUMPBIN
   5665   fi
   5666 fi
   5667 
   5668     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   5669     *COFF*)
   5670       DUMPBIN="$DUMPBIN -symbols -headers"
   5671       ;;
   5672     *)
   5673       DUMPBIN=:
   5674       ;;
   5675     esac
   5676   fi
   5677 
   5678   if test : != "$DUMPBIN"; then
   5679     NM=$DUMPBIN
   5680   fi
   5681 fi
   5682 test -z "$NM" && NM=nm
   5683 
   5684 
   5685 
   5686 
   5687 
   5688 
   5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   5690 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   5691 if ${lt_cv_nm_interface+:} false; then :
   5692   $as_echo_n "(cached) " >&6
   5693 else
   5694   lt_cv_nm_interface="BSD nm"
   5695   echo "int some_variable = 0;" > conftest.$ac_ext
   5696   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   5697   (eval "$ac_compile" 2>conftest.err)
   5698   cat conftest.err >&5
   5699   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   5700   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   5701   cat conftest.err >&5
   5702   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   5703   cat conftest.out >&5
   5704   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   5705     lt_cv_nm_interface="MS dumpbin"
   5706   fi
   5707   rm -f conftest*
   5708 fi
   5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   5710 $as_echo "$lt_cv_nm_interface" >&6; }
   5711 
   5712 # find the maximum length of command line arguments
   5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   5714 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   5715 if ${lt_cv_sys_max_cmd_len+:} false; then :
   5716   $as_echo_n "(cached) " >&6
   5717 else
   5718     i=0
   5719   teststring=ABCD
   5720 
   5721   case $build_os in
   5722   msdosdjgpp*)
   5723     # On DJGPP, this test can blow up pretty badly due to problems in libc
   5724     # (any single argument exceeding 2000 bytes causes a buffer overrun
   5725     # during glob expansion).  Even if it were fixed, the result of this
   5726     # check would be larger than it should be.
   5727     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   5728     ;;
   5729 
   5730   gnu*)
   5731     # Under GNU Hurd, this test is not required because there is
   5732     # no limit to the length of command line arguments.
   5733     # Libtool will interpret -1 as no limit whatsoever
   5734     lt_cv_sys_max_cmd_len=-1;
   5735     ;;
   5736 
   5737   cygwin* | mingw* | cegcc*)
   5738     # On Win9x/ME, this test blows up -- it succeeds, but takes
   5739     # about 5 minutes as the teststring grows exponentially.
   5740     # Worse, since 9x/ME are not pre-emptively multitasking,
   5741     # you end up with a "frozen" computer, even though with patience
   5742     # the test eventually succeeds (with a max line length of 256k).
   5743     # Instead, let's just punt: use the minimum linelength reported by
   5744     # all of the supported platforms: 8192 (on NT/2K/XP).
   5745     lt_cv_sys_max_cmd_len=8192;
   5746     ;;
   5747 
   5748   mint*)
   5749     # On MiNT this can take a long time and run out of memory.
   5750     lt_cv_sys_max_cmd_len=8192;
   5751     ;;
   5752 
   5753   amigaos*)
   5754     # On AmigaOS with pdksh, this test takes hours, literally.
   5755     # So we just punt and use a minimum line length of 8192.
   5756     lt_cv_sys_max_cmd_len=8192;
   5757     ;;
   5758 
   5759   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   5760     # This has been around since 386BSD, at least.  Likely further.
   5761     if test -x /sbin/sysctl; then
   5762       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   5763     elif test -x /usr/sbin/sysctl; then
   5764       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   5765     else
   5766       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   5767     fi
   5768     # And add a safety zone
   5769     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5770     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5771     ;;
   5772 
   5773   interix*)
   5774     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   5775     lt_cv_sys_max_cmd_len=196608
   5776     ;;
   5777 
   5778   os2*)
   5779     # The test takes a long time on OS/2.
   5780     lt_cv_sys_max_cmd_len=8192
   5781     ;;
   5782 
   5783   osf*)
   5784     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   5785     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   5786     # nice to cause kernel panics so lets avoid the loop below.
   5787     # First set a reasonable default.
   5788     lt_cv_sys_max_cmd_len=16384
   5789     #
   5790     if test -x /sbin/sysconfig; then
   5791       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   5792         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   5793       esac
   5794     fi
   5795     ;;
   5796   sco3.2v5*)
   5797     lt_cv_sys_max_cmd_len=102400
   5798     ;;
   5799   sysv5* | sco5v6* | sysv4.2uw2*)
   5800     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   5801     if test -n "$kargmax"; then
   5802       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   5803     else
   5804       lt_cv_sys_max_cmd_len=32768
   5805     fi
   5806     ;;
   5807   *)
   5808     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   5809     if test -n "$lt_cv_sys_max_cmd_len" && \
   5810        test undefined != "$lt_cv_sys_max_cmd_len"; then
   5811       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5812       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5813     else
   5814       # Make teststring a little bigger before we do anything with it.
   5815       # a 1K string should be a reasonable start.
   5816       for i in 1 2 3 4 5 6 7 8; do
   5817         teststring=$teststring$teststring
   5818       done
   5819       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5820       # If test is not a shell built-in, we'll probably end up computing a
   5821       # maximum length that is only half of the actual maximum length, but
   5822       # we can't tell.
   5823       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   5824 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5825 	      test 17 != "$i" # 1/2 MB should be enough
   5826       do
   5827         i=`expr $i + 1`
   5828         teststring=$teststring$teststring
   5829       done
   5830       # Only check the string length outside the loop.
   5831       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5832       teststring=
   5833       # Add a significant safety factor because C++ compilers can tack on
   5834       # massive amounts of additional arguments before passing them to the
   5835       # linker.  It appears as though 1/2 is a usable value.
   5836       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5837     fi
   5838     ;;
   5839   esac
   5840 
   5841 fi
   5842 
   5843 if test -n "$lt_cv_sys_max_cmd_len"; then
   5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5845 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   5846 else
   5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5848 $as_echo "none" >&6; }
   5849 fi
   5850 max_cmd_len=$lt_cv_sys_max_cmd_len
   5851 
   5852 
   5853 
   5854 
   5855 
   5856 
   5857 : ${CP="cp -f"}
   5858 : ${MV="mv -f"}
   5859 : ${RM="rm -f"}
   5860 
   5861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5862   lt_unset=unset
   5863 else
   5864   lt_unset=false
   5865 fi
   5866 
   5867 
   5868 
   5869 
   5870 
   5871 # test EBCDIC or ASCII
   5872 case `echo X|tr X '\101'` in
   5873  A) # ASCII based system
   5874     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5875   lt_SP2NL='tr \040 \012'
   5876   lt_NL2SP='tr \015\012 \040\040'
   5877   ;;
   5878  *) # EBCDIC based system
   5879   lt_SP2NL='tr \100 \n'
   5880   lt_NL2SP='tr \r\n \100\100'
   5881   ;;
   5882 esac
   5883 
   5884 
   5885 
   5886 
   5887 
   5888 
   5889 
   5890 
   5891 
   5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5893 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   5894 if ${lt_cv_to_host_file_cmd+:} false; then :
   5895   $as_echo_n "(cached) " >&6
   5896 else
   5897   case $host in
   5898   *-*-mingw* )
   5899     case $build in
   5900       *-*-mingw* ) # actually msys
   5901         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5902         ;;
   5903       *-*-cygwin* )
   5904         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5905         ;;
   5906       * ) # otherwise, assume *nix
   5907         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5908         ;;
   5909     esac
   5910     ;;
   5911   *-*-cygwin* )
   5912     case $build in
   5913       *-*-mingw* ) # actually msys
   5914         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5915         ;;
   5916       *-*-cygwin* )
   5917         lt_cv_to_host_file_cmd=func_convert_file_noop
   5918         ;;
   5919       * ) # otherwise, assume *nix
   5920         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5921         ;;
   5922     esac
   5923     ;;
   5924   * ) # unhandled hosts (and "normal" native builds)
   5925     lt_cv_to_host_file_cmd=func_convert_file_noop
   5926     ;;
   5927 esac
   5928 
   5929 fi
   5930 
   5931 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5933 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   5934 
   5935 
   5936 
   5937 
   5938 
   5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5940 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   5941 if ${lt_cv_to_tool_file_cmd+:} false; then :
   5942   $as_echo_n "(cached) " >&6
   5943 else
   5944   #assume ordinary cross tools, or native build.
   5945 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5946 case $host in
   5947   *-*-mingw* )
   5948     case $build in
   5949       *-*-mingw* ) # actually msys
   5950         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5951         ;;
   5952     esac
   5953     ;;
   5954 esac
   5955 
   5956 fi
   5957 
   5958 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5960 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   5961 
   5962 
   5963 
   5964 
   5965 
   5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5967 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   5968 if ${lt_cv_ld_reload_flag+:} false; then :
   5969   $as_echo_n "(cached) " >&6
   5970 else
   5971   lt_cv_ld_reload_flag='-r'
   5972 fi
   5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5974 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   5975 reload_flag=$lt_cv_ld_reload_flag
   5976 case $reload_flag in
   5977 "" | " "*) ;;
   5978 *) reload_flag=" $reload_flag" ;;
   5979 esac
   5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5981 case $host_os in
   5982   cygwin* | mingw* | pw32* | cegcc*)
   5983     if test yes != "$GCC"; then
   5984       reload_cmds=false
   5985     fi
   5986     ;;
   5987   darwin*)
   5988     if test yes = "$GCC"; then
   5989       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   5990     else
   5991       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5992     fi
   5993     ;;
   5994 esac
   5995 
   5996 
   5997 
   5998 
   5999 
   6000 
   6001 
   6002 
   6003 
   6004 if test -n "$ac_tool_prefix"; then
   6005   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   6006 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6008 $as_echo_n "checking for $ac_word... " >&6; }
   6009 if ${ac_cv_prog_OBJDUMP+:} false; then :
   6010   $as_echo_n "(cached) " >&6
   6011 else
   6012   if test -n "$OBJDUMP"; then
   6013   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   6014 else
   6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6016 for as_dir in $PATH
   6017 do
   6018   IFS=$as_save_IFS
   6019   test -z "$as_dir" && as_dir=.
   6020     for ac_exec_ext in '' $ac_executable_extensions; do
   6021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6022     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6024     break 2
   6025   fi
   6026 done
   6027   done
   6028 IFS=$as_save_IFS
   6029 
   6030 fi
   6031 fi
   6032 OBJDUMP=$ac_cv_prog_OBJDUMP
   6033 if test -n "$OBJDUMP"; then
   6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   6035 $as_echo "$OBJDUMP" >&6; }
   6036 else
   6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6038 $as_echo "no" >&6; }
   6039 fi
   6040 
   6041 
   6042 fi
   6043 if test -z "$ac_cv_prog_OBJDUMP"; then
   6044   ac_ct_OBJDUMP=$OBJDUMP
   6045   # Extract the first word of "objdump", so it can be a program name with args.
   6046 set dummy objdump; ac_word=$2
   6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6048 $as_echo_n "checking for $ac_word... " >&6; }
   6049 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   6050   $as_echo_n "(cached) " >&6
   6051 else
   6052   if test -n "$ac_ct_OBJDUMP"; then
   6053   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   6054 else
   6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6056 for as_dir in $PATH
   6057 do
   6058   IFS=$as_save_IFS
   6059   test -z "$as_dir" && as_dir=.
   6060     for ac_exec_ext in '' $ac_executable_extensions; do
   6061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6062     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   6063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6064     break 2
   6065   fi
   6066 done
   6067   done
   6068 IFS=$as_save_IFS
   6069 
   6070 fi
   6071 fi
   6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   6073 if test -n "$ac_ct_OBJDUMP"; then
   6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   6075 $as_echo "$ac_ct_OBJDUMP" >&6; }
   6076 else
   6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6078 $as_echo "no" >&6; }
   6079 fi
   6080 
   6081   if test "x$ac_ct_OBJDUMP" = x; then
   6082     OBJDUMP="false"
   6083   else
   6084     case $cross_compiling:$ac_tool_warned in
   6085 yes:)
   6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6088 ac_tool_warned=yes ;;
   6089 esac
   6090     OBJDUMP=$ac_ct_OBJDUMP
   6091   fi
   6092 else
   6093   OBJDUMP="$ac_cv_prog_OBJDUMP"
   6094 fi
   6095 
   6096 test -z "$OBJDUMP" && OBJDUMP=objdump
   6097 
   6098 
   6099 
   6100 
   6101 
   6102 
   6103 
   6104 
   6105 
   6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   6107 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   6108 if ${lt_cv_deplibs_check_method+:} false; then :
   6109   $as_echo_n "(cached) " >&6
   6110 else
   6111   lt_cv_file_magic_cmd='$MAGIC_CMD'
   6112 lt_cv_file_magic_test_file=
   6113 lt_cv_deplibs_check_method='unknown'
   6114 # Need to set the preceding variable on all platforms that support
   6115 # interlibrary dependencies.
   6116 # 'none' -- dependencies not supported.
   6117 # 'unknown' -- same as none, but documents that we really don't know.
   6118 # 'pass_all' -- all dependencies passed with no checks.
   6119 # 'test_compile' -- check by making test program.
   6120 # 'file_magic [[regex]]' -- check by looking for files in library path
   6121 # that responds to the $file_magic_cmd with a given extended regex.
   6122 # If you have 'file' or equivalent on your system and you're not sure
   6123 # whether 'pass_all' will *always* work, you probably want this one.
   6124 
   6125 case $host_os in
   6126 aix[4-9]*)
   6127   lt_cv_deplibs_check_method=pass_all
   6128   ;;
   6129 
   6130 beos*)
   6131   lt_cv_deplibs_check_method=pass_all
   6132   ;;
   6133 
   6134 bsdi[45]*)
   6135   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   6136   lt_cv_file_magic_cmd='/usr/bin/file -L'
   6137   lt_cv_file_magic_test_file=/shlib/libc.so
   6138   ;;
   6139 
   6140 cygwin*)
   6141   # func_win32_libid is a shell function defined in ltmain.sh
   6142   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6143   lt_cv_file_magic_cmd='func_win32_libid'
   6144   ;;
   6145 
   6146 mingw* | pw32*)
   6147   # Base MSYS/MinGW do not provide the 'file' command needed by
   6148   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   6149   # unless we find 'file', for example because we are cross-compiling.
   6150   if ( file / ) >/dev/null 2>&1; then
   6151     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6152     lt_cv_file_magic_cmd='func_win32_libid'
   6153   else
   6154     # Keep this pattern in sync with the one in func_win32_libid.
   6155     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   6156     lt_cv_file_magic_cmd='$OBJDUMP -f'
   6157   fi
   6158   ;;
   6159 
   6160 cegcc*)
   6161   # use the weaker test based on 'objdump'. See mingw*.
   6162   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   6163   lt_cv_file_magic_cmd='$OBJDUMP -f'
   6164   ;;
   6165 
   6166 darwin* | rhapsody*)
   6167   lt_cv_deplibs_check_method=pass_all
   6168   ;;
   6169 
   6170 freebsd* | dragonfly*)
   6171   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6172     case $host_cpu in
   6173     i*86 )
   6174       # Not sure whether the presence of OpenBSD here was a mistake.
   6175       # Let's accept both of them until this is cleared up.
   6176       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   6177       lt_cv_file_magic_cmd=/usr/bin/file
   6178       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   6179       ;;
   6180     esac
   6181   else
   6182     lt_cv_deplibs_check_method=pass_all
   6183   fi
   6184   ;;
   6185 
   6186 haiku*)
   6187   lt_cv_deplibs_check_method=pass_all
   6188   ;;
   6189 
   6190 hpux10.20* | hpux11*)
   6191   lt_cv_file_magic_cmd=/usr/bin/file
   6192   case $host_cpu in
   6193   ia64*)
   6194     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   6195     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   6196     ;;
   6197   hppa*64*)
   6198     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]'
   6199     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   6200     ;;
   6201   *)
   6202     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   6203     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   6204     ;;
   6205   esac
   6206   ;;
   6207 
   6208 interix[3-9]*)
   6209   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   6210   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   6211   ;;
   6212 
   6213 irix5* | irix6* | nonstopux*)
   6214   case $LD in
   6215   *-32|*"-32 ") libmagic=32-bit;;
   6216   *-n32|*"-n32 ") libmagic=N32;;
   6217   *-64|*"-64 ") libmagic=64-bit;;
   6218   *) libmagic=never-match;;
   6219   esac
   6220   lt_cv_deplibs_check_method=pass_all
   6221   ;;
   6222 
   6223 # This must be glibc/ELF.
   6224 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   6225   lt_cv_deplibs_check_method=pass_all
   6226   ;;
   6227 
   6228 netbsd*)
   6229   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6230     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6231   else
   6232     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   6233   fi
   6234   ;;
   6235 
   6236 newos6*)
   6237   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   6238   lt_cv_file_magic_cmd=/usr/bin/file
   6239   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   6240   ;;
   6241 
   6242 *nto* | *qnx*)
   6243   lt_cv_deplibs_check_method=pass_all
   6244   ;;
   6245 
   6246 openbsd* | bitrig*)
   6247   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   6248     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   6249   else
   6250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6251   fi
   6252   ;;
   6253 
   6254 osf3* | osf4* | osf5*)
   6255   lt_cv_deplibs_check_method=pass_all
   6256   ;;
   6257 
   6258 rdos*)
   6259   lt_cv_deplibs_check_method=pass_all
   6260   ;;
   6261 
   6262 solaris*)
   6263   lt_cv_deplibs_check_method=pass_all
   6264   ;;
   6265 
   6266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   6267   lt_cv_deplibs_check_method=pass_all
   6268   ;;
   6269 
   6270 sysv4 | sysv4.3*)
   6271   case $host_vendor in
   6272   motorola)
   6273     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
   6274     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   6275     ;;
   6276   ncr)
   6277     lt_cv_deplibs_check_method=pass_all
   6278     ;;
   6279   sequent)
   6280     lt_cv_file_magic_cmd='/bin/file'
   6281     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   6282     ;;
   6283   sni)
   6284     lt_cv_file_magic_cmd='/bin/file'
   6285     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   6286     lt_cv_file_magic_test_file=/lib/libc.so
   6287     ;;
   6288   siemens)
   6289     lt_cv_deplibs_check_method=pass_all
   6290     ;;
   6291   pc)
   6292     lt_cv_deplibs_check_method=pass_all
   6293     ;;
   6294   esac
   6295   ;;
   6296 
   6297 tpf*)
   6298   lt_cv_deplibs_check_method=pass_all
   6299   ;;
   6300 os2*)
   6301   lt_cv_deplibs_check_method=pass_all
   6302   ;;
   6303 esac
   6304 
   6305 fi
   6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   6307 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   6308 
   6309 file_magic_glob=
   6310 want_nocaseglob=no
   6311 if test "$build" = "$host"; then
   6312   case $host_os in
   6313   mingw* | pw32*)
   6314     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   6315       want_nocaseglob=yes
   6316     else
   6317       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   6318     fi
   6319     ;;
   6320   esac
   6321 fi
   6322 
   6323 file_magic_cmd=$lt_cv_file_magic_cmd
   6324 deplibs_check_method=$lt_cv_deplibs_check_method
   6325 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   6326 
   6327 
   6328 
   6329 
   6330 
   6331 
   6332 
   6333 
   6334 
   6335 
   6336 
   6337 
   6338 
   6339 
   6340 
   6341 
   6342 
   6343 
   6344 
   6345 
   6346 
   6347 
   6348 if test -n "$ac_tool_prefix"; then
   6349   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6350 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6352 $as_echo_n "checking for $ac_word... " >&6; }
   6353 if ${ac_cv_prog_DLLTOOL+:} false; then :
   6354   $as_echo_n "(cached) " >&6
   6355 else
   6356   if test -n "$DLLTOOL"; then
   6357   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6358 else
   6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6360 for as_dir in $PATH
   6361 do
   6362   IFS=$as_save_IFS
   6363   test -z "$as_dir" && as_dir=.
   6364     for ac_exec_ext in '' $ac_executable_extensions; do
   6365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6366     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6368     break 2
   6369   fi
   6370 done
   6371   done
   6372 IFS=$as_save_IFS
   6373 
   6374 fi
   6375 fi
   6376 DLLTOOL=$ac_cv_prog_DLLTOOL
   6377 if test -n "$DLLTOOL"; then
   6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6379 $as_echo "$DLLTOOL" >&6; }
   6380 else
   6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6382 $as_echo "no" >&6; }
   6383 fi
   6384 
   6385 
   6386 fi
   6387 if test -z "$ac_cv_prog_DLLTOOL"; then
   6388   ac_ct_DLLTOOL=$DLLTOOL
   6389   # Extract the first word of "dlltool", so it can be a program name with args.
   6390 set dummy dlltool; ac_word=$2
   6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6392 $as_echo_n "checking for $ac_word... " >&6; }
   6393 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   6394   $as_echo_n "(cached) " >&6
   6395 else
   6396   if test -n "$ac_ct_DLLTOOL"; then
   6397   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6398 else
   6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6400 for as_dir in $PATH
   6401 do
   6402   IFS=$as_save_IFS
   6403   test -z "$as_dir" && as_dir=.
   6404     for ac_exec_ext in '' $ac_executable_extensions; do
   6405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6406     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6408     break 2
   6409   fi
   6410 done
   6411   done
   6412 IFS=$as_save_IFS
   6413 
   6414 fi
   6415 fi
   6416 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6417 if test -n "$ac_ct_DLLTOOL"; then
   6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6419 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6420 else
   6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6422 $as_echo "no" >&6; }
   6423 fi
   6424 
   6425   if test "x$ac_ct_DLLTOOL" = x; then
   6426     DLLTOOL="false"
   6427   else
   6428     case $cross_compiling:$ac_tool_warned in
   6429 yes:)
   6430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6432 ac_tool_warned=yes ;;
   6433 esac
   6434     DLLTOOL=$ac_ct_DLLTOOL
   6435   fi
   6436 else
   6437   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6438 fi
   6439 
   6440 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6441 
   6442 
   6443 
   6444 
   6445 
   6446 
   6447 
   6448 
   6449 
   6450 
   6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   6452 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   6453 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   6454   $as_echo_n "(cached) " >&6
   6455 else
   6456   lt_cv_sharedlib_from_linklib_cmd='unknown'
   6457 
   6458 case $host_os in
   6459 cygwin* | mingw* | pw32* | cegcc*)
   6460   # two different shell functions defined in ltmain.sh;
   6461   # decide which one to use based on capabilities of $DLLTOOL
   6462   case `$DLLTOOL --help 2>&1` in
   6463   *--identify-strict*)
   6464     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   6465     ;;
   6466   *)
   6467     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   6468     ;;
   6469   esac
   6470   ;;
   6471 *)
   6472   # fallback: assume linklib IS sharedlib
   6473   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   6474   ;;
   6475 esac
   6476 
   6477 fi
   6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   6479 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   6480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   6481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   6482 
   6483 
   6484 
   6485 
   6486 
   6487 
   6488 
   6489 if test -n "$ac_tool_prefix"; then
   6490   for ac_prog in ar
   6491   do
   6492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   6493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6495 $as_echo_n "checking for $ac_word... " >&6; }
   6496 if ${ac_cv_prog_AR+:} false; then :
   6497   $as_echo_n "(cached) " >&6
   6498 else
   6499   if test -n "$AR"; then
   6500   ac_cv_prog_AR="$AR" # Let the user override the test.
   6501 else
   6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6503 for as_dir in $PATH
   6504 do
   6505   IFS=$as_save_IFS
   6506   test -z "$as_dir" && as_dir=.
   6507     for ac_exec_ext in '' $ac_executable_extensions; do
   6508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6509     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   6510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6511     break 2
   6512   fi
   6513 done
   6514   done
   6515 IFS=$as_save_IFS
   6516 
   6517 fi
   6518 fi
   6519 AR=$ac_cv_prog_AR
   6520 if test -n "$AR"; then
   6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6522 $as_echo "$AR" >&6; }
   6523 else
   6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6525 $as_echo "no" >&6; }
   6526 fi
   6527 
   6528 
   6529     test -n "$AR" && break
   6530   done
   6531 fi
   6532 if test -z "$AR"; then
   6533   ac_ct_AR=$AR
   6534   for ac_prog in ar
   6535 do
   6536   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6537 set dummy $ac_prog; ac_word=$2
   6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6539 $as_echo_n "checking for $ac_word... " >&6; }
   6540 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   6541   $as_echo_n "(cached) " >&6
   6542 else
   6543   if test -n "$ac_ct_AR"; then
   6544   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6545 else
   6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6547 for as_dir in $PATH
   6548 do
   6549   IFS=$as_save_IFS
   6550   test -z "$as_dir" && as_dir=.
   6551     for ac_exec_ext in '' $ac_executable_extensions; do
   6552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6553     ac_cv_prog_ac_ct_AR="$ac_prog"
   6554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6555     break 2
   6556   fi
   6557 done
   6558   done
   6559 IFS=$as_save_IFS
   6560 
   6561 fi
   6562 fi
   6563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6564 if test -n "$ac_ct_AR"; then
   6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6566 $as_echo "$ac_ct_AR" >&6; }
   6567 else
   6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6569 $as_echo "no" >&6; }
   6570 fi
   6571 
   6572 
   6573   test -n "$ac_ct_AR" && break
   6574 done
   6575 
   6576   if test "x$ac_ct_AR" = x; then
   6577     AR="false"
   6578   else
   6579     case $cross_compiling:$ac_tool_warned in
   6580 yes:)
   6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6583 ac_tool_warned=yes ;;
   6584 esac
   6585     AR=$ac_ct_AR
   6586   fi
   6587 fi
   6588 
   6589 : ${AR=ar}
   6590 : ${AR_FLAGS=cru}
   6591 
   6592 
   6593 
   6594 
   6595 
   6596 
   6597 
   6598 
   6599 
   6600 
   6601 
   6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   6603 $as_echo_n "checking for archiver @FILE support... " >&6; }
   6604 if ${lt_cv_ar_at_file+:} false; then :
   6605   $as_echo_n "(cached) " >&6
   6606 else
   6607   lt_cv_ar_at_file=no
   6608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6609 /* end confdefs.h.  */
   6610 
   6611 int
   6612 main ()
   6613 {
   6614 
   6615   ;
   6616   return 0;
   6617 }
   6618 _ACEOF
   6619 if ac_fn_c_try_compile "$LINENO"; then :
   6620   echo conftest.$ac_objext > conftest.lst
   6621       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   6622       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6623   (eval $lt_ar_try) 2>&5
   6624   ac_status=$?
   6625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6626   test $ac_status = 0; }
   6627       if test 0 -eq "$ac_status"; then
   6628 	# Ensure the archiver fails upon bogus file names.
   6629 	rm -f conftest.$ac_objext libconftest.a
   6630 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6631   (eval $lt_ar_try) 2>&5
   6632   ac_status=$?
   6633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6634   test $ac_status = 0; }
   6635 	if test 0 -ne "$ac_status"; then
   6636           lt_cv_ar_at_file=@
   6637         fi
   6638       fi
   6639       rm -f conftest.* libconftest.a
   6640 
   6641 fi
   6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6643 
   6644 fi
   6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   6646 $as_echo "$lt_cv_ar_at_file" >&6; }
   6647 
   6648 if test no = "$lt_cv_ar_at_file"; then
   6649   archiver_list_spec=
   6650 else
   6651   archiver_list_spec=$lt_cv_ar_at_file
   6652 fi
   6653 
   6654 
   6655 
   6656 
   6657 
   6658 
   6659 
   6660 if test -n "$ac_tool_prefix"; then
   6661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6664 $as_echo_n "checking for $ac_word... " >&6; }
   6665 if ${ac_cv_prog_STRIP+:} false; then :
   6666   $as_echo_n "(cached) " >&6
   6667 else
   6668   if test -n "$STRIP"; then
   6669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6670 else
   6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6672 for as_dir in $PATH
   6673 do
   6674   IFS=$as_save_IFS
   6675   test -z "$as_dir" && as_dir=.
   6676     for ac_exec_ext in '' $ac_executable_extensions; do
   6677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6680     break 2
   6681   fi
   6682 done
   6683   done
   6684 IFS=$as_save_IFS
   6685 
   6686 fi
   6687 fi
   6688 STRIP=$ac_cv_prog_STRIP
   6689 if test -n "$STRIP"; then
   6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   6691 $as_echo "$STRIP" >&6; }
   6692 else
   6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6694 $as_echo "no" >&6; }
   6695 fi
   6696 
   6697 
   6698 fi
   6699 if test -z "$ac_cv_prog_STRIP"; then
   6700   ac_ct_STRIP=$STRIP
   6701   # Extract the first word of "strip", so it can be a program name with args.
   6702 set dummy strip; ac_word=$2
   6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6704 $as_echo_n "checking for $ac_word... " >&6; }
   6705 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   6706   $as_echo_n "(cached) " >&6
   6707 else
   6708   if test -n "$ac_ct_STRIP"; then
   6709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6710 else
   6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6712 for as_dir in $PATH
   6713 do
   6714   IFS=$as_save_IFS
   6715   test -z "$as_dir" && as_dir=.
   6716     for ac_exec_ext in '' $ac_executable_extensions; do
   6717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6718     ac_cv_prog_ac_ct_STRIP="strip"
   6719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6720     break 2
   6721   fi
   6722 done
   6723   done
   6724 IFS=$as_save_IFS
   6725 
   6726 fi
   6727 fi
   6728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6729 if test -n "$ac_ct_STRIP"; then
   6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   6731 $as_echo "$ac_ct_STRIP" >&6; }
   6732 else
   6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6734 $as_echo "no" >&6; }
   6735 fi
   6736 
   6737   if test "x$ac_ct_STRIP" = x; then
   6738     STRIP=":"
   6739   else
   6740     case $cross_compiling:$ac_tool_warned in
   6741 yes:)
   6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6744 ac_tool_warned=yes ;;
   6745 esac
   6746     STRIP=$ac_ct_STRIP
   6747   fi
   6748 else
   6749   STRIP="$ac_cv_prog_STRIP"
   6750 fi
   6751 
   6752 test -z "$STRIP" && STRIP=:
   6753 
   6754 
   6755 
   6756 
   6757 
   6758 
   6759 if test -n "$ac_tool_prefix"; then
   6760   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6763 $as_echo_n "checking for $ac_word... " >&6; }
   6764 if ${ac_cv_prog_RANLIB+:} false; then :
   6765   $as_echo_n "(cached) " >&6
   6766 else
   6767   if test -n "$RANLIB"; then
   6768   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6769 else
   6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6771 for as_dir in $PATH
   6772 do
   6773   IFS=$as_save_IFS
   6774   test -z "$as_dir" && as_dir=.
   6775     for ac_exec_ext in '' $ac_executable_extensions; do
   6776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6777     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6779     break 2
   6780   fi
   6781 done
   6782   done
   6783 IFS=$as_save_IFS
   6784 
   6785 fi
   6786 fi
   6787 RANLIB=$ac_cv_prog_RANLIB
   6788 if test -n "$RANLIB"; then
   6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6790 $as_echo "$RANLIB" >&6; }
   6791 else
   6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6793 $as_echo "no" >&6; }
   6794 fi
   6795 
   6796 
   6797 fi
   6798 if test -z "$ac_cv_prog_RANLIB"; then
   6799   ac_ct_RANLIB=$RANLIB
   6800   # Extract the first word of "ranlib", so it can be a program name with args.
   6801 set dummy ranlib; ac_word=$2
   6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6803 $as_echo_n "checking for $ac_word... " >&6; }
   6804 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   6805   $as_echo_n "(cached) " >&6
   6806 else
   6807   if test -n "$ac_ct_RANLIB"; then
   6808   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6809 else
   6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6811 for as_dir in $PATH
   6812 do
   6813   IFS=$as_save_IFS
   6814   test -z "$as_dir" && as_dir=.
   6815     for ac_exec_ext in '' $ac_executable_extensions; do
   6816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6817     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6819     break 2
   6820   fi
   6821 done
   6822   done
   6823 IFS=$as_save_IFS
   6824 
   6825 fi
   6826 fi
   6827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6828 if test -n "$ac_ct_RANLIB"; then
   6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6830 $as_echo "$ac_ct_RANLIB" >&6; }
   6831 else
   6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6833 $as_echo "no" >&6; }
   6834 fi
   6835 
   6836   if test "x$ac_ct_RANLIB" = x; then
   6837     RANLIB=":"
   6838   else
   6839     case $cross_compiling:$ac_tool_warned in
   6840 yes:)
   6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6843 ac_tool_warned=yes ;;
   6844 esac
   6845     RANLIB=$ac_ct_RANLIB
   6846   fi
   6847 else
   6848   RANLIB="$ac_cv_prog_RANLIB"
   6849 fi
   6850 
   6851 test -z "$RANLIB" && RANLIB=:
   6852 
   6853 
   6854 
   6855 
   6856 
   6857 
   6858 # Determine commands to create old-style static archives.
   6859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6860 old_postinstall_cmds='chmod 644 $oldlib'
   6861 old_postuninstall_cmds=
   6862 
   6863 if test -n "$RANLIB"; then
   6864   case $host_os in
   6865   bitrig* | openbsd*)
   6866     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6867     ;;
   6868   *)
   6869     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6870     ;;
   6871   esac
   6872   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6873 fi
   6874 
   6875 case $host_os in
   6876   darwin*)
   6877     lock_old_archive_extraction=yes ;;
   6878   *)
   6879     lock_old_archive_extraction=no ;;
   6880 esac
   6881 
   6882 
   6883 
   6884 
   6885 
   6886 
   6887 
   6888 
   6889 
   6890 
   6891 
   6892 
   6893 
   6894 
   6895 
   6896 
   6897 
   6898 
   6899 
   6900 
   6901 
   6902 
   6903 
   6904 
   6905 
   6906 
   6907 
   6908 
   6909 
   6910 
   6911 
   6912 
   6913 
   6914 
   6915 
   6916 
   6917 
   6918 
   6919 
   6920 # If no C compiler was specified, use CC.
   6921 LTCC=${LTCC-"$CC"}
   6922 
   6923 # If no C compiler flags were specified, use CFLAGS.
   6924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6925 
   6926 # Allow CC to be a program name with arguments.
   6927 compiler=$CC
   6928 
   6929 
   6930 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6932 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   6933 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   6934   $as_echo_n "(cached) " >&6
   6935 else
   6936 
   6937 # These are sane defaults that work on at least a few old systems.
   6938 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6939 
   6940 # Character class describing NM global symbol codes.
   6941 symcode='[BCDEGRST]'
   6942 
   6943 # Regexp to match symbols that can be accessed directly from C.
   6944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6945 
   6946 # Define system-specific variables.
   6947 case $host_os in
   6948 aix*)
   6949   symcode='[BCDT]'
   6950   ;;
   6951 cygwin* | mingw* | pw32* | cegcc*)
   6952   symcode='[ABCDGISTW]'
   6953   ;;
   6954 hpux*)
   6955   if test ia64 = "$host_cpu"; then
   6956     symcode='[ABCDEGRST]'
   6957   fi
   6958   ;;
   6959 irix* | nonstopux*)
   6960   symcode='[BCDEGRST]'
   6961   ;;
   6962 osf*)
   6963   symcode='[BCDEGQRST]'
   6964   ;;
   6965 solaris*)
   6966   symcode='[BDRT]'
   6967   ;;
   6968 sco3.2v5*)
   6969   symcode='[DT]'
   6970   ;;
   6971 sysv4.2uw2*)
   6972   symcode='[DT]'
   6973   ;;
   6974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6975   symcode='[ABDT]'
   6976   ;;
   6977 sysv4)
   6978   symcode='[DFNSTU]'
   6979   ;;
   6980 esac
   6981 
   6982 # If we're using GNU nm, then use its standard symbol codes.
   6983 case `$NM -V 2>&1` in
   6984 *GNU* | *'with BFD'*)
   6985   symcode='[ABCDGIRSTW]' ;;
   6986 esac
   6987 
   6988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6989   # Gets list of data symbols to import.
   6990   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   6991   # Adjust the below global symbol transforms to fixup imported variables.
   6992   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   6993   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   6994   lt_c_name_lib_hook="\
   6995   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   6996   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   6997 else
   6998   # Disable hooks by default.
   6999   lt_cv_sys_global_symbol_to_import=
   7000   lt_cdecl_hook=
   7001   lt_c_name_hook=
   7002   lt_c_name_lib_hook=
   7003 fi
   7004 
   7005 # Transform an extracted symbol line into a proper C declaration.
   7006 # Some systems (esp. on ia64) link data and code symbols differently,
   7007 # so use this general approach.
   7008 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   7009 $lt_cdecl_hook\
   7010 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   7011 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   7012 
   7013 # Transform an extracted symbol line into symbol name and symbol address
   7014 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   7015 $lt_c_name_hook\
   7016 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   7017 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   7018 
   7019 # Transform an extracted symbol line into symbol name with lib prefix and
   7020 # symbol address.
   7021 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   7022 $lt_c_name_lib_hook\
   7023 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   7024 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   7025 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   7026 
   7027 # Handle CRLF in mingw tool chain
   7028 opt_cr=
   7029 case $build_os in
   7030 mingw*)
   7031   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   7032   ;;
   7033 esac
   7034 
   7035 # Try without a prefix underscore, then with it.
   7036 for ac_symprfx in "" "_"; do
   7037 
   7038   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   7039   symxfrm="\\1 $ac_symprfx\\2 \\2"
   7040 
   7041   # Write the raw and C identifiers.
   7042   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   7043     # Fake it for dumpbin and say T for any non-static function,
   7044     # D for any global variable and I for any imported variable.
   7045     # Also find C++ and __fastcall symbols from MSVC++,
   7046     # which start with @ or ?.
   7047     lt_cv_sys_global_symbol_pipe="$AWK '"\
   7048 "     {last_section=section; section=\$ 3};"\
   7049 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   7050 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   7051 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   7052 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   7053 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   7054 "     \$ 0!~/External *\|/{next};"\
   7055 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   7056 "     {if(hide[section]) next};"\
   7057 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   7058 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   7059 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   7060 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   7061 "     ' prfx=^$ac_symprfx"
   7062   else
   7063     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   7064   fi
   7065   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   7066 
   7067   # Check to see that the pipe works correctly.
   7068   pipe_works=no
   7069 
   7070   rm -f conftest*
   7071   cat > conftest.$ac_ext <<_LT_EOF
   7072 #ifdef __cplusplus
   7073 extern "C" {
   7074 #endif
   7075 char nm_test_var;
   7076 void nm_test_func(void);
   7077 void nm_test_func(void){}
   7078 #ifdef __cplusplus
   7079 }
   7080 #endif
   7081 int main(){nm_test_var='a';nm_test_func();return(0);}
   7082 _LT_EOF
   7083 
   7084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7085   (eval $ac_compile) 2>&5
   7086   ac_status=$?
   7087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7088   test $ac_status = 0; }; then
   7089     # Now try to grab the symbols.
   7090     nlist=conftest.nm
   7091     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   7092   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   7093   ac_status=$?
   7094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7095   test $ac_status = 0; } && test -s "$nlist"; then
   7096       # Try sorting and uniquifying the output.
   7097       if sort "$nlist" | uniq > "$nlist"T; then
   7098 	mv -f "$nlist"T "$nlist"
   7099       else
   7100 	rm -f "$nlist"T
   7101       fi
   7102 
   7103       # Make sure that we snagged all the symbols we need.
   7104       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   7105 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   7106 	  cat <<_LT_EOF > conftest.$ac_ext
   7107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   7108 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   7109 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   7110    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   7111 # define LT_DLSYM_CONST
   7112 #elif defined __osf__
   7113 /* This system does not cope well with relocations in const data.  */
   7114 # define LT_DLSYM_CONST
   7115 #else
   7116 # define LT_DLSYM_CONST const
   7117 #endif
   7118 
   7119 #ifdef __cplusplus
   7120 extern "C" {
   7121 #endif
   7122 
   7123 _LT_EOF
   7124 	  # Now generate the symbol file.
   7125 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   7126 
   7127 	  cat <<_LT_EOF >> conftest.$ac_ext
   7128 
   7129 /* The mapping between symbol names and symbols.  */
   7130 LT_DLSYM_CONST struct {
   7131   const char *name;
   7132   void       *address;
   7133 }
   7134 lt__PROGRAM__LTX_preloaded_symbols[] =
   7135 {
   7136   { "@PROGRAM@", (void *) 0 },
   7137 _LT_EOF
   7138 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   7139 	  cat <<\_LT_EOF >> conftest.$ac_ext
   7140   {0, (void *) 0}
   7141 };
   7142 
   7143 /* This works around a problem in FreeBSD linker */
   7144 #ifdef FREEBSD_WORKAROUND
   7145 static const void *lt_preloaded_setup() {
   7146   return lt__PROGRAM__LTX_preloaded_symbols;
   7147 }
   7148 #endif
   7149 
   7150 #ifdef __cplusplus
   7151 }
   7152 #endif
   7153 _LT_EOF
   7154 	  # Now try linking the two files.
   7155 	  mv conftest.$ac_objext conftstm.$ac_objext
   7156 	  lt_globsym_save_LIBS=$LIBS
   7157 	  lt_globsym_save_CFLAGS=$CFLAGS
   7158 	  LIBS=conftstm.$ac_objext
   7159 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   7160 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   7161   (eval $ac_link) 2>&5
   7162   ac_status=$?
   7163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7164   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   7165 	    pipe_works=yes
   7166 	  fi
   7167 	  LIBS=$lt_globsym_save_LIBS
   7168 	  CFLAGS=$lt_globsym_save_CFLAGS
   7169 	else
   7170 	  echo "cannot find nm_test_func in $nlist" >&5
   7171 	fi
   7172       else
   7173 	echo "cannot find nm_test_var in $nlist" >&5
   7174       fi
   7175     else
   7176       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   7177     fi
   7178   else
   7179     echo "$progname: failed program was:" >&5
   7180     cat conftest.$ac_ext >&5
   7181   fi
   7182   rm -rf conftest* conftst*
   7183 
   7184   # Do not use the global_symbol_pipe unless it works.
   7185   if test yes = "$pipe_works"; then
   7186     break
   7187   else
   7188     lt_cv_sys_global_symbol_pipe=
   7189   fi
   7190 done
   7191 
   7192 fi
   7193 
   7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   7195   lt_cv_sys_global_symbol_to_cdecl=
   7196 fi
   7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   7199 $as_echo "failed" >&6; }
   7200 else
   7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   7202 $as_echo "ok" >&6; }
   7203 fi
   7204 
   7205 # Response file support.
   7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   7207   nm_file_list_spec='@'
   7208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   7209   nm_file_list_spec='@'
   7210 fi
   7211 
   7212 
   7213 
   7214 
   7215 
   7216 
   7217 
   7218 
   7219 
   7220 
   7221 
   7222 
   7223 
   7224 
   7225 
   7226 
   7227 
   7228 
   7229 
   7230 
   7231 
   7232 
   7233 
   7234 
   7235 
   7236 
   7237 
   7238 
   7239 
   7240 
   7241 
   7242 
   7243 
   7244 
   7245 
   7246 
   7247 
   7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   7249 $as_echo_n "checking for sysroot... " >&6; }
   7250 
   7251 # Check whether --with-sysroot was given.
   7252 if test "${with_sysroot+set}" = set; then :
   7253   withval=$with_sysroot;
   7254 else
   7255   with_sysroot=no
   7256 fi
   7257 
   7258 
   7259 lt_sysroot=
   7260 case $with_sysroot in #(
   7261  yes)
   7262    if test yes = "$GCC"; then
   7263      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   7264    fi
   7265    ;; #(
   7266  /*)
   7267    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   7268    ;; #(
   7269  no|'')
   7270    ;; #(
   7271  *)
   7272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   7273 $as_echo "$with_sysroot" >&6; }
   7274    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   7275    ;;
   7276 esac
   7277 
   7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   7279 $as_echo "${lt_sysroot:-no}" >&6; }
   7280 
   7281 
   7282 
   7283 
   7284 
   7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   7286 $as_echo_n "checking for a working dd... " >&6; }
   7287 if ${ac_cv_path_lt_DD+:} false; then :
   7288   $as_echo_n "(cached) " >&6
   7289 else
   7290   printf 0123456789abcdef0123456789abcdef >conftest.i
   7291 cat conftest.i conftest.i >conftest2.i
   7292 : ${lt_DD:=$DD}
   7293 if test -z "$lt_DD"; then
   7294   ac_path_lt_DD_found=false
   7295   # Loop through the user's path and test for each of PROGNAME-LIST
   7296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7297 for as_dir in $PATH
   7298 do
   7299   IFS=$as_save_IFS
   7300   test -z "$as_dir" && as_dir=.
   7301     for ac_prog in dd; do
   7302     for ac_exec_ext in '' $ac_executable_extensions; do
   7303       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   7304       as_fn_executable_p "$ac_path_lt_DD" || continue
   7305 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   7306   cmp -s conftest.i conftest.out \
   7307   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   7308 fi
   7309       $ac_path_lt_DD_found && break 3
   7310     done
   7311   done
   7312   done
   7313 IFS=$as_save_IFS
   7314   if test -z "$ac_cv_path_lt_DD"; then
   7315     :
   7316   fi
   7317 else
   7318   ac_cv_path_lt_DD=$lt_DD
   7319 fi
   7320 
   7321 rm -f conftest.i conftest2.i conftest.out
   7322 fi
   7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   7324 $as_echo "$ac_cv_path_lt_DD" >&6; }
   7325 
   7326 
   7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   7328 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   7329 if ${lt_cv_truncate_bin+:} false; then :
   7330   $as_echo_n "(cached) " >&6
   7331 else
   7332   printf 0123456789abcdef0123456789abcdef >conftest.i
   7333 cat conftest.i conftest.i >conftest2.i
   7334 lt_cv_truncate_bin=
   7335 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   7336   cmp -s conftest.i conftest.out \
   7337   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   7338 fi
   7339 rm -f conftest.i conftest2.i conftest.out
   7340 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   7341 fi
   7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   7343 $as_echo "$lt_cv_truncate_bin" >&6; }
   7344 
   7345 
   7346 
   7347 
   7348 
   7349 
   7350 
   7351 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   7352 func_cc_basename ()
   7353 {
   7354     for cc_temp in $*""; do
   7355       case $cc_temp in
   7356         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   7357         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   7358         \-*) ;;
   7359         *) break;;
   7360       esac
   7361     done
   7362     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   7363 }
   7364 
   7365 # Check whether --enable-libtool-lock was given.
   7366 if test "${enable_libtool_lock+set}" = set; then :
   7367   enableval=$enable_libtool_lock;
   7368 fi
   7369 
   7370 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   7371 
   7372 # Some flags need to be propagated to the compiler or linker for good
   7373 # libtool support.
   7374 case $host in
   7375 ia64-*-hpux*)
   7376   # Find out what ABI is being produced by ac_compile, and set mode
   7377   # options accordingly.
   7378   echo 'int i;' > conftest.$ac_ext
   7379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7380   (eval $ac_compile) 2>&5
   7381   ac_status=$?
   7382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7383   test $ac_status = 0; }; then
   7384     case `/usr/bin/file conftest.$ac_objext` in
   7385       *ELF-32*)
   7386 	HPUX_IA64_MODE=32
   7387 	;;
   7388       *ELF-64*)
   7389 	HPUX_IA64_MODE=64
   7390 	;;
   7391     esac
   7392   fi
   7393   rm -rf conftest*
   7394   ;;
   7395 *-*-irix6*)
   7396   # Find out what ABI is being produced by ac_compile, and set linker
   7397   # options accordingly.
   7398   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   7399   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7400   (eval $ac_compile) 2>&5
   7401   ac_status=$?
   7402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7403   test $ac_status = 0; }; then
   7404     if test yes = "$lt_cv_prog_gnu_ld"; then
   7405       case `/usr/bin/file conftest.$ac_objext` in
   7406 	*32-bit*)
   7407 	  LD="${LD-ld} -melf32bsmip"
   7408 	  ;;
   7409 	*N32*)
   7410 	  LD="${LD-ld} -melf32bmipn32"
   7411 	  ;;
   7412 	*64-bit*)
   7413 	  LD="${LD-ld} -melf64bmip"
   7414 	;;
   7415       esac
   7416     else
   7417       case `/usr/bin/file conftest.$ac_objext` in
   7418 	*32-bit*)
   7419 	  LD="${LD-ld} -32"
   7420 	  ;;
   7421 	*N32*)
   7422 	  LD="${LD-ld} -n32"
   7423 	  ;;
   7424 	*64-bit*)
   7425 	  LD="${LD-ld} -64"
   7426 	  ;;
   7427       esac
   7428     fi
   7429   fi
   7430   rm -rf conftest*
   7431   ;;
   7432 
   7433 mips64*-*linux*)
   7434   # Find out what ABI is being produced by ac_compile, and set linker
   7435   # options accordingly.
   7436   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   7437   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7438   (eval $ac_compile) 2>&5
   7439   ac_status=$?
   7440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7441   test $ac_status = 0; }; then
   7442     emul=elf
   7443     case `/usr/bin/file conftest.$ac_objext` in
   7444       *32-bit*)
   7445 	emul="${emul}32"
   7446 	;;
   7447       *64-bit*)
   7448 	emul="${emul}64"
   7449 	;;
   7450     esac
   7451     case `/usr/bin/file conftest.$ac_objext` in
   7452       *MSB*)
   7453 	emul="${emul}btsmip"
   7454 	;;
   7455       *LSB*)
   7456 	emul="${emul}ltsmip"
   7457 	;;
   7458     esac
   7459     case `/usr/bin/file conftest.$ac_objext` in
   7460       *N32*)
   7461 	emul="${emul}n32"
   7462 	;;
   7463     esac
   7464     LD="${LD-ld} -m $emul"
   7465   fi
   7466   rm -rf conftest*
   7467   ;;
   7468 
   7469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   7470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   7471   # Find out what ABI is being produced by ac_compile, and set linker
   7472   # options accordingly.  Note that the listed cases only cover the
   7473   # situations where additional linker options are needed (such as when
   7474   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   7475   # vice versa); the common cases where no linker options are needed do
   7476   # not appear in the list.
   7477   echo 'int i;' > conftest.$ac_ext
   7478   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7479   (eval $ac_compile) 2>&5
   7480   ac_status=$?
   7481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7482   test $ac_status = 0; }; then
   7483     case `/usr/bin/file conftest.o` in
   7484       *32-bit*)
   7485 	case $host in
   7486 	  x86_64-*kfreebsd*-gnu)
   7487 	    LD="${LD-ld} -m elf_i386_fbsd"
   7488 	    ;;
   7489 	  x86_64-*linux*)
   7490 	    case `/usr/bin/file conftest.o` in
   7491 	      *x86-64*)
   7492 		LD="${LD-ld} -m elf32_x86_64"
   7493 		;;
   7494 	      *)
   7495 		LD="${LD-ld} -m elf_i386"
   7496 		;;
   7497 	    esac
   7498 	    ;;
   7499 	  powerpc64le-*linux*)
   7500 	    LD="${LD-ld} -m elf32lppclinux"
   7501 	    ;;
   7502 	  powerpc64-*linux*)
   7503 	    LD="${LD-ld} -m elf32ppclinux"
   7504 	    ;;
   7505 	  s390x-*linux*)
   7506 	    LD="${LD-ld} -m elf_s390"
   7507 	    ;;
   7508 	  sparc64-*linux*)
   7509 	    LD="${LD-ld} -m elf32_sparc"
   7510 	    ;;
   7511 	esac
   7512 	;;
   7513       *64-bit*)
   7514 	case $host in
   7515 	  x86_64-*kfreebsd*-gnu)
   7516 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   7517 	    ;;
   7518 	  x86_64-*linux*)
   7519 	    LD="${LD-ld} -m elf_x86_64"
   7520 	    ;;
   7521 	  powerpcle-*linux*)
   7522 	    LD="${LD-ld} -m elf64lppc"
   7523 	    ;;
   7524 	  powerpc-*linux*)
   7525 	    LD="${LD-ld} -m elf64ppc"
   7526 	    ;;
   7527 	  s390*-*linux*|s390*-*tpf*)
   7528 	    LD="${LD-ld} -m elf64_s390"
   7529 	    ;;
   7530 	  sparc*-*linux*)
   7531 	    LD="${LD-ld} -m elf64_sparc"
   7532 	    ;;
   7533 	esac
   7534 	;;
   7535     esac
   7536   fi
   7537   rm -rf conftest*
   7538   ;;
   7539 
   7540 *-*-sco3.2v5*)
   7541   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   7542   SAVE_CFLAGS=$CFLAGS
   7543   CFLAGS="$CFLAGS -belf"
   7544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   7545 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   7546 if ${lt_cv_cc_needs_belf+:} false; then :
   7547   $as_echo_n "(cached) " >&6
   7548 else
   7549   ac_ext=c
   7550 ac_cpp='$CPP $CPPFLAGS'
   7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7554 
   7555      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7556 /* end confdefs.h.  */
   7557 
   7558 int
   7559 main ()
   7560 {
   7561 
   7562   ;
   7563   return 0;
   7564 }
   7565 _ACEOF
   7566 if ac_fn_c_try_link "$LINENO"; then :
   7567   lt_cv_cc_needs_belf=yes
   7568 else
   7569   lt_cv_cc_needs_belf=no
   7570 fi
   7571 rm -f core conftest.err conftest.$ac_objext \
   7572     conftest$ac_exeext conftest.$ac_ext
   7573      ac_ext=c
   7574 ac_cpp='$CPP $CPPFLAGS'
   7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7578 
   7579 fi
   7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   7581 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   7582   if test yes != "$lt_cv_cc_needs_belf"; then
   7583     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   7584     CFLAGS=$SAVE_CFLAGS
   7585   fi
   7586   ;;
   7587 *-*solaris*)
   7588   # Find out what ABI is being produced by ac_compile, and set linker
   7589   # options accordingly.
   7590   echo 'int i;' > conftest.$ac_ext
   7591   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7592   (eval $ac_compile) 2>&5
   7593   ac_status=$?
   7594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7595   test $ac_status = 0; }; then
   7596     case `/usr/bin/file conftest.o` in
   7597     *64-bit*)
   7598       case $lt_cv_prog_gnu_ld in
   7599       yes*)
   7600         case $host in
   7601         i?86-*-solaris*|x86_64-*-solaris*)
   7602           LD="${LD-ld} -m elf_x86_64"
   7603           ;;
   7604         sparc*-*-solaris*)
   7605           LD="${LD-ld} -m elf64_sparc"
   7606           ;;
   7607         esac
   7608         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   7609         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   7610           LD=${LD-ld}_sol2
   7611         fi
   7612         ;;
   7613       *)
   7614 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   7615 	  LD="${LD-ld} -64"
   7616 	fi
   7617 	;;
   7618       esac
   7619       ;;
   7620     esac
   7621   fi
   7622   rm -rf conftest*
   7623   ;;
   7624 esac
   7625 
   7626 need_locks=$enable_libtool_lock
   7627 
   7628 if test -n "$ac_tool_prefix"; then
   7629   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   7630 set dummy ${ac_tool_prefix}mt; ac_word=$2
   7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7632 $as_echo_n "checking for $ac_word... " >&6; }
   7633 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   7634   $as_echo_n "(cached) " >&6
   7635 else
   7636   if test -n "$MANIFEST_TOOL"; then
   7637   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   7638 else
   7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7640 for as_dir in $PATH
   7641 do
   7642   IFS=$as_save_IFS
   7643   test -z "$as_dir" && as_dir=.
   7644     for ac_exec_ext in '' $ac_executable_extensions; do
   7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7646     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7648     break 2
   7649   fi
   7650 done
   7651   done
   7652 IFS=$as_save_IFS
   7653 
   7654 fi
   7655 fi
   7656 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   7657 if test -n "$MANIFEST_TOOL"; then
   7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   7659 $as_echo "$MANIFEST_TOOL" >&6; }
   7660 else
   7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7662 $as_echo "no" >&6; }
   7663 fi
   7664 
   7665 
   7666 fi
   7667 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   7668   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   7669   # Extract the first word of "mt", so it can be a program name with args.
   7670 set dummy mt; ac_word=$2
   7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7672 $as_echo_n "checking for $ac_word... " >&6; }
   7673 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   7674   $as_echo_n "(cached) " >&6
   7675 else
   7676   if test -n "$ac_ct_MANIFEST_TOOL"; then
   7677   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   7678 else
   7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7680 for as_dir in $PATH
   7681 do
   7682   IFS=$as_save_IFS
   7683   test -z "$as_dir" && as_dir=.
   7684     for ac_exec_ext in '' $ac_executable_extensions; do
   7685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7686     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   7687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7688     break 2
   7689   fi
   7690 done
   7691   done
   7692 IFS=$as_save_IFS
   7693 
   7694 fi
   7695 fi
   7696 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   7697 if test -n "$ac_ct_MANIFEST_TOOL"; then
   7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   7699 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   7700 else
   7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7702 $as_echo "no" >&6; }
   7703 fi
   7704 
   7705   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   7706     MANIFEST_TOOL=":"
   7707   else
   7708     case $cross_compiling:$ac_tool_warned in
   7709 yes:)
   7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7712 ac_tool_warned=yes ;;
   7713 esac
   7714     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   7715   fi
   7716 else
   7717   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   7718 fi
   7719 
   7720 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   7722 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   7723 if ${lt_cv_path_mainfest_tool+:} false; then :
   7724   $as_echo_n "(cached) " >&6
   7725 else
   7726   lt_cv_path_mainfest_tool=no
   7727   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   7728   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   7729   cat conftest.err >&5
   7730   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   7731     lt_cv_path_mainfest_tool=yes
   7732   fi
   7733   rm -f conftest*
   7734 fi
   7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   7736 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   7737 if test yes != "$lt_cv_path_mainfest_tool"; then
   7738   MANIFEST_TOOL=:
   7739 fi
   7740 
   7741 
   7742 
   7743 
   7744 
   7745 
   7746   case $host_os in
   7747     rhapsody* | darwin*)
   7748     if test -n "$ac_tool_prefix"; then
   7749   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   7750 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7752 $as_echo_n "checking for $ac_word... " >&6; }
   7753 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   7754   $as_echo_n "(cached) " >&6
   7755 else
   7756   if test -n "$DSYMUTIL"; then
   7757   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   7758 else
   7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7760 for as_dir in $PATH
   7761 do
   7762   IFS=$as_save_IFS
   7763   test -z "$as_dir" && as_dir=.
   7764     for ac_exec_ext in '' $ac_executable_extensions; do
   7765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7766     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   7767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7768     break 2
   7769   fi
   7770 done
   7771   done
   7772 IFS=$as_save_IFS
   7773 
   7774 fi
   7775 fi
   7776 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7777 if test -n "$DSYMUTIL"; then
   7778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7779 $as_echo "$DSYMUTIL" >&6; }
   7780 else
   7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7782 $as_echo "no" >&6; }
   7783 fi
   7784 
   7785 
   7786 fi
   7787 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7788   ac_ct_DSYMUTIL=$DSYMUTIL
   7789   # Extract the first word of "dsymutil", so it can be a program name with args.
   7790 set dummy dsymutil; ac_word=$2
   7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7792 $as_echo_n "checking for $ac_word... " >&6; }
   7793 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   7794   $as_echo_n "(cached) " >&6
   7795 else
   7796   if test -n "$ac_ct_DSYMUTIL"; then
   7797   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7798 else
   7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7800 for as_dir in $PATH
   7801 do
   7802   IFS=$as_save_IFS
   7803   test -z "$as_dir" && as_dir=.
   7804     for ac_exec_ext in '' $ac_executable_extensions; do
   7805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7806     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7808     break 2
   7809   fi
   7810 done
   7811   done
   7812 IFS=$as_save_IFS
   7813 
   7814 fi
   7815 fi
   7816 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7817 if test -n "$ac_ct_DSYMUTIL"; then
   7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7819 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   7820 else
   7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7822 $as_echo "no" >&6; }
   7823 fi
   7824 
   7825   if test "x$ac_ct_DSYMUTIL" = x; then
   7826     DSYMUTIL=":"
   7827   else
   7828     case $cross_compiling:$ac_tool_warned in
   7829 yes:)
   7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7832 ac_tool_warned=yes ;;
   7833 esac
   7834     DSYMUTIL=$ac_ct_DSYMUTIL
   7835   fi
   7836 else
   7837   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7838 fi
   7839 
   7840     if test -n "$ac_tool_prefix"; then
   7841   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7842 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7844 $as_echo_n "checking for $ac_word... " >&6; }
   7845 if ${ac_cv_prog_NMEDIT+:} false; then :
   7846   $as_echo_n "(cached) " >&6
   7847 else
   7848   if test -n "$NMEDIT"; then
   7849   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7850 else
   7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7852 for as_dir in $PATH
   7853 do
   7854   IFS=$as_save_IFS
   7855   test -z "$as_dir" && as_dir=.
   7856     for ac_exec_ext in '' $ac_executable_extensions; do
   7857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7858     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7860     break 2
   7861   fi
   7862 done
   7863   done
   7864 IFS=$as_save_IFS
   7865 
   7866 fi
   7867 fi
   7868 NMEDIT=$ac_cv_prog_NMEDIT
   7869 if test -n "$NMEDIT"; then
   7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7871 $as_echo "$NMEDIT" >&6; }
   7872 else
   7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7874 $as_echo "no" >&6; }
   7875 fi
   7876 
   7877 
   7878 fi
   7879 if test -z "$ac_cv_prog_NMEDIT"; then
   7880   ac_ct_NMEDIT=$NMEDIT
   7881   # Extract the first word of "nmedit", so it can be a program name with args.
   7882 set dummy nmedit; ac_word=$2
   7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7884 $as_echo_n "checking for $ac_word... " >&6; }
   7885 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   7886   $as_echo_n "(cached) " >&6
   7887 else
   7888   if test -n "$ac_ct_NMEDIT"; then
   7889   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7890 else
   7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7892 for as_dir in $PATH
   7893 do
   7894   IFS=$as_save_IFS
   7895   test -z "$as_dir" && as_dir=.
   7896     for ac_exec_ext in '' $ac_executable_extensions; do
   7897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7898     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7900     break 2
   7901   fi
   7902 done
   7903   done
   7904 IFS=$as_save_IFS
   7905 
   7906 fi
   7907 fi
   7908 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7909 if test -n "$ac_ct_NMEDIT"; then
   7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7911 $as_echo "$ac_ct_NMEDIT" >&6; }
   7912 else
   7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7914 $as_echo "no" >&6; }
   7915 fi
   7916 
   7917   if test "x$ac_ct_NMEDIT" = x; then
   7918     NMEDIT=":"
   7919   else
   7920     case $cross_compiling:$ac_tool_warned in
   7921 yes:)
   7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7924 ac_tool_warned=yes ;;
   7925 esac
   7926     NMEDIT=$ac_ct_NMEDIT
   7927   fi
   7928 else
   7929   NMEDIT="$ac_cv_prog_NMEDIT"
   7930 fi
   7931 
   7932     if test -n "$ac_tool_prefix"; then
   7933   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7934 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7936 $as_echo_n "checking for $ac_word... " >&6; }
   7937 if ${ac_cv_prog_LIPO+:} false; then :
   7938   $as_echo_n "(cached) " >&6
   7939 else
   7940   if test -n "$LIPO"; then
   7941   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7942 else
   7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7944 for as_dir in $PATH
   7945 do
   7946   IFS=$as_save_IFS
   7947   test -z "$as_dir" && as_dir=.
   7948     for ac_exec_ext in '' $ac_executable_extensions; do
   7949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7950     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7952     break 2
   7953   fi
   7954 done
   7955   done
   7956 IFS=$as_save_IFS
   7957 
   7958 fi
   7959 fi
   7960 LIPO=$ac_cv_prog_LIPO
   7961 if test -n "$LIPO"; then
   7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7963 $as_echo "$LIPO" >&6; }
   7964 else
   7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7966 $as_echo "no" >&6; }
   7967 fi
   7968 
   7969 
   7970 fi
   7971 if test -z "$ac_cv_prog_LIPO"; then
   7972   ac_ct_LIPO=$LIPO
   7973   # Extract the first word of "lipo", so it can be a program name with args.
   7974 set dummy lipo; ac_word=$2
   7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7976 $as_echo_n "checking for $ac_word... " >&6; }
   7977 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   7978   $as_echo_n "(cached) " >&6
   7979 else
   7980   if test -n "$ac_ct_LIPO"; then
   7981   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   7982 else
   7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7984 for as_dir in $PATH
   7985 do
   7986   IFS=$as_save_IFS
   7987   test -z "$as_dir" && as_dir=.
   7988     for ac_exec_ext in '' $ac_executable_extensions; do
   7989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7990     ac_cv_prog_ac_ct_LIPO="lipo"
   7991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7992     break 2
   7993   fi
   7994 done
   7995   done
   7996 IFS=$as_save_IFS
   7997 
   7998 fi
   7999 fi
   8000 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   8001 if test -n "$ac_ct_LIPO"; then
   8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   8003 $as_echo "$ac_ct_LIPO" >&6; }
   8004 else
   8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8006 $as_echo "no" >&6; }
   8007 fi
   8008 
   8009   if test "x$ac_ct_LIPO" = x; then
   8010     LIPO=":"
   8011   else
   8012     case $cross_compiling:$ac_tool_warned in
   8013 yes:)
   8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8016 ac_tool_warned=yes ;;
   8017 esac
   8018     LIPO=$ac_ct_LIPO
   8019   fi
   8020 else
   8021   LIPO="$ac_cv_prog_LIPO"
   8022 fi
   8023 
   8024     if test -n "$ac_tool_prefix"; then
   8025   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   8026 set dummy ${ac_tool_prefix}otool; ac_word=$2
   8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8028 $as_echo_n "checking for $ac_word... " >&6; }
   8029 if ${ac_cv_prog_OTOOL+:} false; then :
   8030   $as_echo_n "(cached) " >&6
   8031 else
   8032   if test -n "$OTOOL"; then
   8033   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   8034 else
   8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8036 for as_dir in $PATH
   8037 do
   8038   IFS=$as_save_IFS
   8039   test -z "$as_dir" && as_dir=.
   8040     for ac_exec_ext in '' $ac_executable_extensions; do
   8041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8042     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   8043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8044     break 2
   8045   fi
   8046 done
   8047   done
   8048 IFS=$as_save_IFS
   8049 
   8050 fi
   8051 fi
   8052 OTOOL=$ac_cv_prog_OTOOL
   8053 if test -n "$OTOOL"; then
   8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   8055 $as_echo "$OTOOL" >&6; }
   8056 else
   8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8058 $as_echo "no" >&6; }
   8059 fi
   8060 
   8061 
   8062 fi
   8063 if test -z "$ac_cv_prog_OTOOL"; then
   8064   ac_ct_OTOOL=$OTOOL
   8065   # Extract the first word of "otool", so it can be a program name with args.
   8066 set dummy otool; ac_word=$2
   8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8068 $as_echo_n "checking for $ac_word... " >&6; }
   8069 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   8070   $as_echo_n "(cached) " >&6
   8071 else
   8072   if test -n "$ac_ct_OTOOL"; then
   8073   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   8074 else
   8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8076 for as_dir in $PATH
   8077 do
   8078   IFS=$as_save_IFS
   8079   test -z "$as_dir" && as_dir=.
   8080     for ac_exec_ext in '' $ac_executable_extensions; do
   8081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8082     ac_cv_prog_ac_ct_OTOOL="otool"
   8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8084     break 2
   8085   fi
   8086 done
   8087   done
   8088 IFS=$as_save_IFS
   8089 
   8090 fi
   8091 fi
   8092 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   8093 if test -n "$ac_ct_OTOOL"; then
   8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   8095 $as_echo "$ac_ct_OTOOL" >&6; }
   8096 else
   8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8098 $as_echo "no" >&6; }
   8099 fi
   8100 
   8101   if test "x$ac_ct_OTOOL" = x; then
   8102     OTOOL=":"
   8103   else
   8104     case $cross_compiling:$ac_tool_warned in
   8105 yes:)
   8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8108 ac_tool_warned=yes ;;
   8109 esac
   8110     OTOOL=$ac_ct_OTOOL
   8111   fi
   8112 else
   8113   OTOOL="$ac_cv_prog_OTOOL"
   8114 fi
   8115 
   8116     if test -n "$ac_tool_prefix"; then
   8117   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   8118 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8120 $as_echo_n "checking for $ac_word... " >&6; }
   8121 if ${ac_cv_prog_OTOOL64+:} false; then :
   8122   $as_echo_n "(cached) " >&6
   8123 else
   8124   if test -n "$OTOOL64"; then
   8125   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   8126 else
   8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8128 for as_dir in $PATH
   8129 do
   8130   IFS=$as_save_IFS
   8131   test -z "$as_dir" && as_dir=.
   8132     for ac_exec_ext in '' $ac_executable_extensions; do
   8133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8134     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   8135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8136     break 2
   8137   fi
   8138 done
   8139   done
   8140 IFS=$as_save_IFS
   8141 
   8142 fi
   8143 fi
   8144 OTOOL64=$ac_cv_prog_OTOOL64
   8145 if test -n "$OTOOL64"; then
   8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   8147 $as_echo "$OTOOL64" >&6; }
   8148 else
   8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8150 $as_echo "no" >&6; }
   8151 fi
   8152 
   8153 
   8154 fi
   8155 if test -z "$ac_cv_prog_OTOOL64"; then
   8156   ac_ct_OTOOL64=$OTOOL64
   8157   # Extract the first word of "otool64", so it can be a program name with args.
   8158 set dummy otool64; ac_word=$2
   8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8160 $as_echo_n "checking for $ac_word... " >&6; }
   8161 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   8162   $as_echo_n "(cached) " >&6
   8163 else
   8164   if test -n "$ac_ct_OTOOL64"; then
   8165   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   8166 else
   8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8168 for as_dir in $PATH
   8169 do
   8170   IFS=$as_save_IFS
   8171   test -z "$as_dir" && as_dir=.
   8172     for ac_exec_ext in '' $ac_executable_extensions; do
   8173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8174     ac_cv_prog_ac_ct_OTOOL64="otool64"
   8175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8176     break 2
   8177   fi
   8178 done
   8179   done
   8180 IFS=$as_save_IFS
   8181 
   8182 fi
   8183 fi
   8184 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   8185 if test -n "$ac_ct_OTOOL64"; then
   8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   8187 $as_echo "$ac_ct_OTOOL64" >&6; }
   8188 else
   8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8190 $as_echo "no" >&6; }
   8191 fi
   8192 
   8193   if test "x$ac_ct_OTOOL64" = x; then
   8194     OTOOL64=":"
   8195   else
   8196     case $cross_compiling:$ac_tool_warned in
   8197 yes:)
   8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8200 ac_tool_warned=yes ;;
   8201 esac
   8202     OTOOL64=$ac_ct_OTOOL64
   8203   fi
   8204 else
   8205   OTOOL64="$ac_cv_prog_OTOOL64"
   8206 fi
   8207 
   8208 
   8209 
   8210 
   8211 
   8212 
   8213 
   8214 
   8215 
   8216 
   8217 
   8218 
   8219 
   8220 
   8221 
   8222 
   8223 
   8224 
   8225 
   8226 
   8227 
   8228 
   8229 
   8230 
   8231 
   8232 
   8233 
   8234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   8235 $as_echo_n "checking for -single_module linker flag... " >&6; }
   8236 if ${lt_cv_apple_cc_single_mod+:} false; then :
   8237   $as_echo_n "(cached) " >&6
   8238 else
   8239   lt_cv_apple_cc_single_mod=no
   8240       if test -z "$LT_MULTI_MODULE"; then
   8241 	# By default we will add the -single_module flag. You can override
   8242 	# by either setting the environment variable LT_MULTI_MODULE
   8243 	# non-empty at configure time, or by adding -multi_module to the
   8244 	# link flags.
   8245 	rm -rf libconftest.dylib*
   8246 	echo "int foo(void){return 1;}" > conftest.c
   8247 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   8248 -dynamiclib -Wl,-single_module conftest.c" >&5
   8249 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   8250 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   8251         _lt_result=$?
   8252 	# If there is a non-empty error log, and "single_module"
   8253 	# appears in it, assume the flag caused a linker warning
   8254         if test -s conftest.err && $GREP single_module conftest.err; then
   8255 	  cat conftest.err >&5
   8256 	# Otherwise, if the output was created with a 0 exit code from
   8257 	# the compiler, it worked.
   8258 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   8259 	  lt_cv_apple_cc_single_mod=yes
   8260 	else
   8261 	  cat conftest.err >&5
   8262 	fi
   8263 	rm -rf libconftest.dylib*
   8264 	rm -f conftest.*
   8265       fi
   8266 fi
   8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   8268 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   8269 
   8270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   8271 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   8272 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   8273   $as_echo_n "(cached) " >&6
   8274 else
   8275   lt_cv_ld_exported_symbols_list=no
   8276       save_LDFLAGS=$LDFLAGS
   8277       echo "_main" > conftest.sym
   8278       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   8279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8280 /* end confdefs.h.  */
   8281 
   8282 int
   8283 main ()
   8284 {
   8285 
   8286   ;
   8287   return 0;
   8288 }
   8289 _ACEOF
   8290 if ac_fn_c_try_link "$LINENO"; then :
   8291   lt_cv_ld_exported_symbols_list=yes
   8292 else
   8293   lt_cv_ld_exported_symbols_list=no
   8294 fi
   8295 rm -f core conftest.err conftest.$ac_objext \
   8296     conftest$ac_exeext conftest.$ac_ext
   8297 	LDFLAGS=$save_LDFLAGS
   8298 
   8299 fi
   8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   8301 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   8302 
   8303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   8304 $as_echo_n "checking for -force_load linker flag... " >&6; }
   8305 if ${lt_cv_ld_force_load+:} false; then :
   8306   $as_echo_n "(cached) " >&6
   8307 else
   8308   lt_cv_ld_force_load=no
   8309       cat > conftest.c << _LT_EOF
   8310 int forced_loaded() { return 2;}
   8311 _LT_EOF
   8312       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   8313       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   8314       echo "$AR cru libconftest.a conftest.o" >&5
   8315       $AR cru libconftest.a conftest.o 2>&5
   8316       echo "$RANLIB libconftest.a" >&5
   8317       $RANLIB libconftest.a 2>&5
   8318       cat > conftest.c << _LT_EOF
   8319 int main() { return 0;}
   8320 _LT_EOF
   8321       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   8322       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   8323       _lt_result=$?
   8324       if test -s conftest.err && $GREP force_load conftest.err; then
   8325 	cat conftest.err >&5
   8326       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   8327 	lt_cv_ld_force_load=yes
   8328       else
   8329 	cat conftest.err >&5
   8330       fi
   8331         rm -f conftest.err libconftest.a conftest conftest.c
   8332         rm -rf conftest.dSYM
   8333 
   8334 fi
   8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   8336 $as_echo "$lt_cv_ld_force_load" >&6; }
   8337     case $host_os in
   8338     rhapsody* | darwin1.[012])
   8339       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   8340     darwin1.*)
   8341       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   8342     darwin*) # darwin 5.x on
   8343       # if running on 10.5 or later, the deployment target defaults
   8344       # to the OS version, if on x86, and 10.4, the deployment
   8345       # target defaults to 10.4. Don't you love it?
   8346       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   8347 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   8348 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   8349 	10.[012][,.]*)
   8350 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   8351 	10.*)
   8352 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   8353       esac
   8354     ;;
   8355   esac
   8356     if test yes = "$lt_cv_apple_cc_single_mod"; then
   8357       _lt_dar_single_mod='$single_module'
   8358     fi
   8359     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   8360       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   8361     else
   8362       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   8363     fi
   8364     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   8365       _lt_dsymutil='~$DSYMUTIL $lib || :'
   8366     else
   8367       _lt_dsymutil=
   8368     fi
   8369     ;;
   8370   esac
   8371 
   8372 # func_munge_path_list VARIABLE PATH
   8373 # -----------------------------------
   8374 # VARIABLE is name of variable containing _space_ separated list of
   8375 # directories to be munged by the contents of PATH, which is string
   8376 # having a format:
   8377 # "DIR[:DIR]:"
   8378 #       string "DIR[ DIR]" will be prepended to VARIABLE
   8379 # ":DIR[:DIR]"
   8380 #       string "DIR[ DIR]" will be appended to VARIABLE
   8381 # "DIRP[:DIRP]::[DIRA:]DIRA"
   8382 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   8383 #       "DIRA[ DIRA]" will be appended to VARIABLE
   8384 # "DIR[:DIR]"
   8385 #       VARIABLE will be replaced by "DIR[ DIR]"
   8386 func_munge_path_list ()
   8387 {
   8388     case x$2 in
   8389     x)
   8390         ;;
   8391     *:)
   8392         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   8393         ;;
   8394     x:*)
   8395         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   8396         ;;
   8397     *::*)
   8398         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   8399         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   8400         ;;
   8401     *)
   8402         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   8403         ;;
   8404     esac
   8405 }
   8406 
   8407 for ac_header in dlfcn.h
   8408 do :
   8409   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   8410 "
   8411 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   8412   cat >>confdefs.h <<_ACEOF
   8413 #define HAVE_DLFCN_H 1
   8414 _ACEOF
   8415 
   8416 fi
   8417 
   8418 done
   8419 
   8420 
   8421 
   8422 
   8423 
   8424 # Set options
   8425 
   8426 
   8427 
   8428         enable_dlopen=no
   8429 
   8430 
   8431   enable_win32_dll=no
   8432 
   8433 
   8434             # Check whether --enable-shared was given.
   8435 if test "${enable_shared+set}" = set; then :
   8436   enableval=$enable_shared; p=${PACKAGE-default}
   8437     case $enableval in
   8438     yes) enable_shared=yes ;;
   8439     no) enable_shared=no ;;
   8440     *)
   8441       enable_shared=no
   8442       # Look at the argument we got.  We use all the common list separators.
   8443       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8444       for pkg in $enableval; do
   8445 	IFS=$lt_save_ifs
   8446 	if test "X$pkg" = "X$p"; then
   8447 	  enable_shared=yes
   8448 	fi
   8449       done
   8450       IFS=$lt_save_ifs
   8451       ;;
   8452     esac
   8453 else
   8454   enable_shared=yes
   8455 fi
   8456 
   8457 
   8458 
   8459 
   8460 
   8461 
   8462 
   8463 
   8464 
   8465   # Check whether --enable-static was given.
   8466 if test "${enable_static+set}" = set; then :
   8467   enableval=$enable_static; p=${PACKAGE-default}
   8468     case $enableval in
   8469     yes) enable_static=yes ;;
   8470     no) enable_static=no ;;
   8471     *)
   8472      enable_static=no
   8473       # Look at the argument we got.  We use all the common list separators.
   8474       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8475       for pkg in $enableval; do
   8476 	IFS=$lt_save_ifs
   8477 	if test "X$pkg" = "X$p"; then
   8478 	  enable_static=yes
   8479 	fi
   8480       done
   8481       IFS=$lt_save_ifs
   8482       ;;
   8483     esac
   8484 else
   8485   enable_static=yes
   8486 fi
   8487 
   8488 
   8489 
   8490 
   8491 
   8492 
   8493 
   8494 
   8495 
   8496 
   8497 # Check whether --with-pic was given.
   8498 if test "${with_pic+set}" = set; then :
   8499   withval=$with_pic; lt_p=${PACKAGE-default}
   8500     case $withval in
   8501     yes|no) pic_mode=$withval ;;
   8502     *)
   8503       pic_mode=default
   8504       # Look at the argument we got.  We use all the common list separators.
   8505       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8506       for lt_pkg in $withval; do
   8507 	IFS=$lt_save_ifs
   8508 	if test "X$lt_pkg" = "X$lt_p"; then
   8509 	  pic_mode=yes
   8510 	fi
   8511       done
   8512       IFS=$lt_save_ifs
   8513       ;;
   8514     esac
   8515 else
   8516   pic_mode=default
   8517 fi
   8518 
   8519 
   8520 
   8521 
   8522 
   8523 
   8524 
   8525 
   8526   # Check whether --enable-fast-install was given.
   8527 if test "${enable_fast_install+set}" = set; then :
   8528   enableval=$enable_fast_install; p=${PACKAGE-default}
   8529     case $enableval in
   8530     yes) enable_fast_install=yes ;;
   8531     no) enable_fast_install=no ;;
   8532     *)
   8533       enable_fast_install=no
   8534       # Look at the argument we got.  We use all the common list separators.
   8535       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8536       for pkg in $enableval; do
   8537 	IFS=$lt_save_ifs
   8538 	if test "X$pkg" = "X$p"; then
   8539 	  enable_fast_install=yes
   8540 	fi
   8541       done
   8542       IFS=$lt_save_ifs
   8543       ;;
   8544     esac
   8545 else
   8546   enable_fast_install=yes
   8547 fi
   8548 
   8549 
   8550 
   8551 
   8552 
   8553 
   8554 
   8555 
   8556   shared_archive_member_spec=
   8557 case $host,$enable_shared in
   8558 power*-*-aix[5-9]*,yes)
   8559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   8560 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   8561 
   8562 # Check whether --with-aix-soname was given.
   8563 if test "${with_aix_soname+set}" = set; then :
   8564   withval=$with_aix_soname; case $withval in
   8565     aix|svr4|both)
   8566       ;;
   8567     *)
   8568       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   8569       ;;
   8570     esac
   8571     lt_cv_with_aix_soname=$with_aix_soname
   8572 else
   8573   if ${lt_cv_with_aix_soname+:} false; then :
   8574   $as_echo_n "(cached) " >&6
   8575 else
   8576   lt_cv_with_aix_soname=aix
   8577 fi
   8578 
   8579     with_aix_soname=$lt_cv_with_aix_soname
   8580 fi
   8581 
   8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   8583 $as_echo "$with_aix_soname" >&6; }
   8584   if test aix != "$with_aix_soname"; then
   8585     # For the AIX way of multilib, we name the shared archive member
   8586     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   8587     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   8588     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   8589     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   8590     if test 64 = "${OBJECT_MODE-32}"; then
   8591       shared_archive_member_spec=shr_64
   8592     else
   8593       shared_archive_member_spec=shr
   8594     fi
   8595   fi
   8596   ;;
   8597 *)
   8598   with_aix_soname=aix
   8599   ;;
   8600 esac
   8601 
   8602 
   8603 
   8604 
   8605 
   8606 
   8607 
   8608 
   8609 
   8610 
   8611 # This can be used to rebuild libtool when needed
   8612 LIBTOOL_DEPS=$ltmain
   8613 
   8614 # Always use our own libtool.
   8615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   8616 
   8617 
   8618 
   8619 
   8620 
   8621 
   8622 
   8623 
   8624 
   8625 
   8626 
   8627 
   8628 
   8629 
   8630 
   8631 
   8632 
   8633 
   8634 
   8635 
   8636 
   8637 
   8638 
   8639 
   8640 
   8641 
   8642 
   8643 
   8644 
   8645 
   8646 test -z "$LN_S" && LN_S="ln -s"
   8647 
   8648 
   8649 
   8650 
   8651 
   8652 
   8653 
   8654 
   8655 
   8656 
   8657 
   8658 
   8659 
   8660 
   8661 if test -n "${ZSH_VERSION+set}"; then
   8662    setopt NO_GLOB_SUBST
   8663 fi
   8664 
   8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   8666 $as_echo_n "checking for objdir... " >&6; }
   8667 if ${lt_cv_objdir+:} false; then :
   8668   $as_echo_n "(cached) " >&6
   8669 else
   8670   rm -f .libs 2>/dev/null
   8671 mkdir .libs 2>/dev/null
   8672 if test -d .libs; then
   8673   lt_cv_objdir=.libs
   8674 else
   8675   # MS-DOS does not allow filenames that begin with a dot.
   8676   lt_cv_objdir=_libs
   8677 fi
   8678 rmdir .libs 2>/dev/null
   8679 fi
   8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   8681 $as_echo "$lt_cv_objdir" >&6; }
   8682 objdir=$lt_cv_objdir
   8683 
   8684 
   8685 
   8686 
   8687 
   8688 cat >>confdefs.h <<_ACEOF
   8689 #define LT_OBJDIR "$lt_cv_objdir/"
   8690 _ACEOF
   8691 
   8692 
   8693 
   8694 
   8695 case $host_os in
   8696 aix3*)
   8697   # AIX sometimes has problems with the GCC collect2 program.  For some
   8698   # reason, if we set the COLLECT_NAMES environment variable, the problems
   8699   # vanish in a puff of smoke.
   8700   if test set != "${COLLECT_NAMES+set}"; then
   8701     COLLECT_NAMES=
   8702     export COLLECT_NAMES
   8703   fi
   8704   ;;
   8705 esac
   8706 
   8707 # Global variables:
   8708 ofile=libtool
   8709 can_build_shared=yes
   8710 
   8711 # All known linkers require a '.a' archive for static linking (except MSVC,
   8712 # which needs '.lib').
   8713 libext=a
   8714 
   8715 with_gnu_ld=$lt_cv_prog_gnu_ld
   8716 
   8717 old_CC=$CC
   8718 old_CFLAGS=$CFLAGS
   8719 
   8720 # Set sane defaults for various variables
   8721 test -z "$CC" && CC=cc
   8722 test -z "$LTCC" && LTCC=$CC
   8723 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   8724 test -z "$LD" && LD=ld
   8725 test -z "$ac_objext" && ac_objext=o
   8726 
   8727 func_cc_basename $compiler
   8728 cc_basename=$func_cc_basename_result
   8729 
   8730 
   8731 # Only perform the check for file, if the check method requires it
   8732 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   8733 case $deplibs_check_method in
   8734 file_magic*)
   8735   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   8736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   8737 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   8738 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8739   $as_echo_n "(cached) " >&6
   8740 else
   8741   case $MAGIC_CMD in
   8742 [\\/*] |  ?:[\\/]*)
   8743   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8744   ;;
   8745 *)
   8746   lt_save_MAGIC_CMD=$MAGIC_CMD
   8747   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8748   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8749   for ac_dir in $ac_dummy; do
   8750     IFS=$lt_save_ifs
   8751     test -z "$ac_dir" && ac_dir=.
   8752     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   8753       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   8754       if test -n "$file_magic_test_file"; then
   8755 	case $deplibs_check_method in
   8756 	"file_magic "*)
   8757 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8758 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8759 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8760 	    $EGREP "$file_magic_regex" > /dev/null; then
   8761 	    :
   8762 	  else
   8763 	    cat <<_LT_EOF 1>&2
   8764 
   8765 *** Warning: the command libtool uses to detect shared libraries,
   8766 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8767 *** The result is that libtool may fail to recognize shared libraries
   8768 *** as such.  This will affect the creation of libtool libraries that
   8769 *** depend on shared libraries, but programs linked with such libtool
   8770 *** libraries will work regardless of this problem.  Nevertheless, you
   8771 *** may want to report the problem to your system manager and/or to
   8772 *** bug-libtool (at] gnu.org
   8773 
   8774 _LT_EOF
   8775 	  fi ;;
   8776 	esac
   8777       fi
   8778       break
   8779     fi
   8780   done
   8781   IFS=$lt_save_ifs
   8782   MAGIC_CMD=$lt_save_MAGIC_CMD
   8783   ;;
   8784 esac
   8785 fi
   8786 
   8787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8788 if test -n "$MAGIC_CMD"; then
   8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8790 $as_echo "$MAGIC_CMD" >&6; }
   8791 else
   8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8793 $as_echo "no" >&6; }
   8794 fi
   8795 
   8796 
   8797 
   8798 
   8799 
   8800 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8801   if test -n "$ac_tool_prefix"; then
   8802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8803 $as_echo_n "checking for file... " >&6; }
   8804 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8805   $as_echo_n "(cached) " >&6
   8806 else
   8807   case $MAGIC_CMD in
   8808 [\\/*] |  ?:[\\/]*)
   8809   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8810   ;;
   8811 *)
   8812   lt_save_MAGIC_CMD=$MAGIC_CMD
   8813   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8814   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8815   for ac_dir in $ac_dummy; do
   8816     IFS=$lt_save_ifs
   8817     test -z "$ac_dir" && ac_dir=.
   8818     if test -f "$ac_dir/file"; then
   8819       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8820       if test -n "$file_magic_test_file"; then
   8821 	case $deplibs_check_method in
   8822 	"file_magic "*)
   8823 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8824 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8825 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8826 	    $EGREP "$file_magic_regex" > /dev/null; then
   8827 	    :
   8828 	  else
   8829 	    cat <<_LT_EOF 1>&2
   8830 
   8831 *** Warning: the command libtool uses to detect shared libraries,
   8832 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8833 *** The result is that libtool may fail to recognize shared libraries
   8834 *** as such.  This will affect the creation of libtool libraries that
   8835 *** depend on shared libraries, but programs linked with such libtool
   8836 *** libraries will work regardless of this problem.  Nevertheless, you
   8837 *** may want to report the problem to your system manager and/or to
   8838 *** bug-libtool (at] gnu.org
   8839 
   8840 _LT_EOF
   8841 	  fi ;;
   8842 	esac
   8843       fi
   8844       break
   8845     fi
   8846   done
   8847   IFS=$lt_save_ifs
   8848   MAGIC_CMD=$lt_save_MAGIC_CMD
   8849   ;;
   8850 esac
   8851 fi
   8852 
   8853 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8854 if test -n "$MAGIC_CMD"; then
   8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8856 $as_echo "$MAGIC_CMD" >&6; }
   8857 else
   8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8859 $as_echo "no" >&6; }
   8860 fi
   8861 
   8862 
   8863   else
   8864     MAGIC_CMD=:
   8865   fi
   8866 fi
   8867 
   8868   fi
   8869   ;;
   8870 esac
   8871 
   8872 # Use C for the default configuration in the libtool script
   8873 
   8874 lt_save_CC=$CC
   8875 ac_ext=c
   8876 ac_cpp='$CPP $CPPFLAGS'
   8877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8880 
   8881 
   8882 # Source file extension for C test sources.
   8883 ac_ext=c
   8884 
   8885 # Object file extension for compiled C test sources.
   8886 objext=o
   8887 objext=$objext
   8888 
   8889 # Code to be used in simple compile tests
   8890 lt_simple_compile_test_code="int some_variable = 0;"
   8891 
   8892 # Code to be used in simple link tests
   8893 lt_simple_link_test_code='int main(){return(0);}'
   8894 
   8895 
   8896 
   8897 
   8898 
   8899 
   8900 
   8901 # If no C compiler was specified, use CC.
   8902 LTCC=${LTCC-"$CC"}
   8903 
   8904 # If no C compiler flags were specified, use CFLAGS.
   8905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8906 
   8907 # Allow CC to be a program name with arguments.
   8908 compiler=$CC
   8909 
   8910 # Save the default compiler, since it gets overwritten when the other
   8911 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8912 compiler_DEFAULT=$CC
   8913 
   8914 # save warnings/boilerplate of simple test code
   8915 ac_outfile=conftest.$ac_objext
   8916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8918 _lt_compiler_boilerplate=`cat conftest.err`
   8919 $RM conftest*
   8920 
   8921 ac_outfile=conftest.$ac_objext
   8922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8924 _lt_linker_boilerplate=`cat conftest.err`
   8925 $RM -r conftest*
   8926 
   8927 
   8928 ## CAVEAT EMPTOR:
   8929 ## There is no encapsulation within the following macros, do not change
   8930 ## the running order or otherwise move them around unless you know exactly
   8931 ## what you are doing...
   8932 if test -n "$compiler"; then
   8933 
   8934 lt_prog_compiler_no_builtin_flag=
   8935 
   8936 if test yes = "$GCC"; then
   8937   case $cc_basename in
   8938   nvcc*)
   8939     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8940   *)
   8941     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8942   esac
   8943 
   8944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8945 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8946 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8947   $as_echo_n "(cached) " >&6
   8948 else
   8949   lt_cv_prog_compiler_rtti_exceptions=no
   8950    ac_outfile=conftest.$ac_objext
   8951    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8952    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   8953    # Insert the option either (1) after the last *FLAGS variable, or
   8954    # (2) before a word containing "conftest.", or (3) at the end.
   8955    # Note that $ac_compile itself does not contain backslashes and begins
   8956    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8957    # The option is referenced via a variable to avoid confusing sed.
   8958    lt_compile=`echo "$ac_compile" | $SED \
   8959    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8961    -e 's:$: $lt_compiler_flag:'`
   8962    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8963    (eval "$lt_compile" 2>conftest.err)
   8964    ac_status=$?
   8965    cat conftest.err >&5
   8966    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8967    if (exit $ac_status) && test -s "$ac_outfile"; then
   8968      # The compiler can only warn and ignore the option if not recognized
   8969      # So say no if there are warnings other than the usual output.
   8970      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8971      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8972      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8973        lt_cv_prog_compiler_rtti_exceptions=yes
   8974      fi
   8975    fi
   8976    $RM conftest*
   8977 
   8978 fi
   8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8980 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8981 
   8982 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   8983     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8984 else
   8985     :
   8986 fi
   8987 
   8988 fi
   8989 
   8990 
   8991 
   8992 
   8993 
   8994 
   8995   lt_prog_compiler_wl=
   8996 lt_prog_compiler_pic=
   8997 lt_prog_compiler_static=
   8998 
   8999 
   9000   if test yes = "$GCC"; then
   9001     lt_prog_compiler_wl='-Wl,'
   9002     lt_prog_compiler_static='-static'
   9003 
   9004     case $host_os in
   9005       aix*)
   9006       # All AIX code is PIC.
   9007       if test ia64 = "$host_cpu"; then
   9008 	# AIX 5 now supports IA64 processor
   9009 	lt_prog_compiler_static='-Bstatic'
   9010       fi
   9011       lt_prog_compiler_pic='-fPIC'
   9012       ;;
   9013 
   9014     amigaos*)
   9015       case $host_cpu in
   9016       powerpc)
   9017             # see comment about AmigaOS4 .so support
   9018             lt_prog_compiler_pic='-fPIC'
   9019         ;;
   9020       m68k)
   9021             # FIXME: we need at least 68020 code to build shared libraries, but
   9022             # adding the '-m68020' flag to GCC prevents building anything better,
   9023             # like '-m68040'.
   9024             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   9025         ;;
   9026       esac
   9027       ;;
   9028 
   9029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   9030       # PIC is the default for these OSes.
   9031       ;;
   9032 
   9033     mingw* | cygwin* | pw32* | os2* | cegcc*)
   9034       # This hack is so that the source file can tell whether it is being
   9035       # built for inclusion in a dll (and should export symbols for example).
   9036       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   9037       # (--disable-auto-import) libraries
   9038       lt_prog_compiler_pic='-DDLL_EXPORT'
   9039       case $host_os in
   9040       os2*)
   9041 	lt_prog_compiler_static='$wl-static'
   9042 	;;
   9043       esac
   9044       ;;
   9045 
   9046     darwin* | rhapsody*)
   9047       # PIC is the default on this platform
   9048       # Common symbols not allowed in MH_DYLIB files
   9049       lt_prog_compiler_pic='-fno-common'
   9050       ;;
   9051 
   9052     haiku*)
   9053       # PIC is the default for Haiku.
   9054       # The "-static" flag exists, but is broken.
   9055       lt_prog_compiler_static=
   9056       ;;
   9057 
   9058     hpux*)
   9059       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   9060       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   9061       # sets the default TLS model and affects inlining.
   9062       case $host_cpu in
   9063       hppa*64*)
   9064 	# +Z the default
   9065 	;;
   9066       *)
   9067 	lt_prog_compiler_pic='-fPIC'
   9068 	;;
   9069       esac
   9070       ;;
   9071 
   9072     interix[3-9]*)
   9073       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   9074       # Instead, we relocate shared libraries at runtime.
   9075       ;;
   9076 
   9077     msdosdjgpp*)
   9078       # Just because we use GCC doesn't mean we suddenly get shared libraries
   9079       # on systems that don't support them.
   9080       lt_prog_compiler_can_build_shared=no
   9081       enable_shared=no
   9082       ;;
   9083 
   9084     *nto* | *qnx*)
   9085       # QNX uses GNU C++, but need to define -shared option too, otherwise
   9086       # it will coredump.
   9087       lt_prog_compiler_pic='-fPIC -shared'
   9088       ;;
   9089 
   9090     sysv4*MP*)
   9091       if test -d /usr/nec; then
   9092 	lt_prog_compiler_pic=-Kconform_pic
   9093       fi
   9094       ;;
   9095 
   9096     *)
   9097       lt_prog_compiler_pic='-fPIC'
   9098       ;;
   9099     esac
   9100 
   9101     case $cc_basename in
   9102     nvcc*) # Cuda Compiler Driver 2.2
   9103       lt_prog_compiler_wl='-Xlinker '
   9104       if test -n "$lt_prog_compiler_pic"; then
   9105         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   9106       fi
   9107       ;;
   9108     esac
   9109   else
   9110     # PORTME Check for flag to pass linker flags through the system compiler.
   9111     case $host_os in
   9112     aix*)
   9113       lt_prog_compiler_wl='-Wl,'
   9114       if test ia64 = "$host_cpu"; then
   9115 	# AIX 5 now supports IA64 processor
   9116 	lt_prog_compiler_static='-Bstatic'
   9117       else
   9118 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   9119       fi
   9120       ;;
   9121 
   9122     darwin* | rhapsody*)
   9123       # PIC is the default on this platform
   9124       # Common symbols not allowed in MH_DYLIB files
   9125       lt_prog_compiler_pic='-fno-common'
   9126       case $cc_basename in
   9127       nagfor*)
   9128         # NAG Fortran compiler
   9129         lt_prog_compiler_wl='-Wl,-Wl,,'
   9130         lt_prog_compiler_pic='-PIC'
   9131         lt_prog_compiler_static='-Bstatic'
   9132         ;;
   9133       esac
   9134       ;;
   9135 
   9136     mingw* | cygwin* | pw32* | os2* | cegcc*)
   9137       # This hack is so that the source file can tell whether it is being
   9138       # built for inclusion in a dll (and should export symbols for example).
   9139       lt_prog_compiler_pic='-DDLL_EXPORT'
   9140       case $host_os in
   9141       os2*)
   9142 	lt_prog_compiler_static='$wl-static'
   9143 	;;
   9144       esac
   9145       ;;
   9146 
   9147     hpux9* | hpux10* | hpux11*)
   9148       lt_prog_compiler_wl='-Wl,'
   9149       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   9150       # not for PA HP-UX.
   9151       case $host_cpu in
   9152       hppa*64*|ia64*)
   9153 	# +Z the default
   9154 	;;
   9155       *)
   9156 	lt_prog_compiler_pic='+Z'
   9157 	;;
   9158       esac
   9159       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   9160       lt_prog_compiler_static='$wl-a ${wl}archive'
   9161       ;;
   9162 
   9163     irix5* | irix6* | nonstopux*)
   9164       lt_prog_compiler_wl='-Wl,'
   9165       # PIC (with -KPIC) is the default.
   9166       lt_prog_compiler_static='-non_shared'
   9167       ;;
   9168 
   9169     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   9170       case $cc_basename in
   9171       # old Intel for x86_64, which still supported -KPIC.
   9172       ecc*)
   9173 	lt_prog_compiler_wl='-Wl,'
   9174 	lt_prog_compiler_pic='-KPIC'
   9175 	lt_prog_compiler_static='-static'
   9176         ;;
   9177       # icc used to be incompatible with GCC.
   9178       # ICC 10 doesn't accept -KPIC any more.
   9179       icc* | ifort*)
   9180 	lt_prog_compiler_wl='-Wl,'
   9181 	lt_prog_compiler_pic='-fPIC'
   9182 	lt_prog_compiler_static='-static'
   9183         ;;
   9184       # Lahey Fortran 8.1.
   9185       lf95*)
   9186 	lt_prog_compiler_wl='-Wl,'
   9187 	lt_prog_compiler_pic='--shared'
   9188 	lt_prog_compiler_static='--static'
   9189 	;;
   9190       nagfor*)
   9191 	# NAG Fortran compiler
   9192 	lt_prog_compiler_wl='-Wl,-Wl,,'
   9193 	lt_prog_compiler_pic='-PIC'
   9194 	lt_prog_compiler_static='-Bstatic'
   9195 	;;
   9196       tcc*)
   9197 	# Fabrice Bellard et al's Tiny C Compiler
   9198 	lt_prog_compiler_wl='-Wl,'
   9199 	lt_prog_compiler_pic='-fPIC'
   9200 	lt_prog_compiler_static='-static'
   9201 	;;
   9202       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   9203         # Portland Group compilers (*not* the Pentium gcc compiler,
   9204 	# which looks to be a dead project)
   9205 	lt_prog_compiler_wl='-Wl,'
   9206 	lt_prog_compiler_pic='-fpic'
   9207 	lt_prog_compiler_static='-Bstatic'
   9208         ;;
   9209       ccc*)
   9210         lt_prog_compiler_wl='-Wl,'
   9211         # All Alpha code is PIC.
   9212         lt_prog_compiler_static='-non_shared'
   9213         ;;
   9214       xl* | bgxl* | bgf* | mpixl*)
   9215 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   9216 	lt_prog_compiler_wl='-Wl,'
   9217 	lt_prog_compiler_pic='-qpic'
   9218 	lt_prog_compiler_static='-qstaticlink'
   9219 	;;
   9220       *)
   9221 	case `$CC -V 2>&1 | sed 5q` in
   9222 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   9223 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   9224 	  lt_prog_compiler_pic='-KPIC'
   9225 	  lt_prog_compiler_static='-Bstatic'
   9226 	  lt_prog_compiler_wl=''
   9227 	  ;;
   9228 	*Sun\ F* | *Sun*Fortran*)
   9229 	  lt_prog_compiler_pic='-KPIC'
   9230 	  lt_prog_compiler_static='-Bstatic'
   9231 	  lt_prog_compiler_wl='-Qoption ld '
   9232 	  ;;
   9233 	*Sun\ C*)
   9234 	  # Sun C 5.9
   9235 	  lt_prog_compiler_pic='-KPIC'
   9236 	  lt_prog_compiler_static='-Bstatic'
   9237 	  lt_prog_compiler_wl='-Wl,'
   9238 	  ;;
   9239         *Intel*\ [CF]*Compiler*)
   9240 	  lt_prog_compiler_wl='-Wl,'
   9241 	  lt_prog_compiler_pic='-fPIC'
   9242 	  lt_prog_compiler_static='-static'
   9243 	  ;;
   9244 	*Portland\ Group*)
   9245 	  lt_prog_compiler_wl='-Wl,'
   9246 	  lt_prog_compiler_pic='-fpic'
   9247 	  lt_prog_compiler_static='-Bstatic'
   9248 	  ;;
   9249 	esac
   9250 	;;
   9251       esac
   9252       ;;
   9253 
   9254     newsos6)
   9255       lt_prog_compiler_pic='-KPIC'
   9256       lt_prog_compiler_static='-Bstatic'
   9257       ;;
   9258 
   9259     *nto* | *qnx*)
   9260       # QNX uses GNU C++, but need to define -shared option too, otherwise
   9261       # it will coredump.
   9262       lt_prog_compiler_pic='-fPIC -shared'
   9263       ;;
   9264 
   9265     osf3* | osf4* | osf5*)
   9266       lt_prog_compiler_wl='-Wl,'
   9267       # All OSF/1 code is PIC.
   9268       lt_prog_compiler_static='-non_shared'
   9269       ;;
   9270 
   9271     rdos*)
   9272       lt_prog_compiler_static='-non_shared'
   9273       ;;
   9274 
   9275     solaris*)
   9276       lt_prog_compiler_pic='-KPIC'
   9277       lt_prog_compiler_static='-Bstatic'
   9278       case $cc_basename in
   9279       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   9280 	lt_prog_compiler_wl='-Qoption ld ';;
   9281       *)
   9282 	lt_prog_compiler_wl='-Wl,';;
   9283       esac
   9284       ;;
   9285 
   9286     sunos4*)
   9287       lt_prog_compiler_wl='-Qoption ld '
   9288       lt_prog_compiler_pic='-PIC'
   9289       lt_prog_compiler_static='-Bstatic'
   9290       ;;
   9291 
   9292     sysv4 | sysv4.2uw2* | sysv4.3*)
   9293       lt_prog_compiler_wl='-Wl,'
   9294       lt_prog_compiler_pic='-KPIC'
   9295       lt_prog_compiler_static='-Bstatic'
   9296       ;;
   9297 
   9298     sysv4*MP*)
   9299       if test -d /usr/nec; then
   9300 	lt_prog_compiler_pic='-Kconform_pic'
   9301 	lt_prog_compiler_static='-Bstatic'
   9302       fi
   9303       ;;
   9304 
   9305     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   9306       lt_prog_compiler_wl='-Wl,'
   9307       lt_prog_compiler_pic='-KPIC'
   9308       lt_prog_compiler_static='-Bstatic'
   9309       ;;
   9310 
   9311     unicos*)
   9312       lt_prog_compiler_wl='-Wl,'
   9313       lt_prog_compiler_can_build_shared=no
   9314       ;;
   9315 
   9316     uts4*)
   9317       lt_prog_compiler_pic='-pic'
   9318       lt_prog_compiler_static='-Bstatic'
   9319       ;;
   9320 
   9321     *)
   9322       lt_prog_compiler_can_build_shared=no
   9323       ;;
   9324     esac
   9325   fi
   9326 
   9327 case $host_os in
   9328   # For platforms that do not support PIC, -DPIC is meaningless:
   9329   *djgpp*)
   9330     lt_prog_compiler_pic=
   9331     ;;
   9332   *)
   9333     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   9334     ;;
   9335 esac
   9336 
   9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   9338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   9339 if ${lt_cv_prog_compiler_pic+:} false; then :
   9340   $as_echo_n "(cached) " >&6
   9341 else
   9342   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   9343 fi
   9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   9345 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   9346 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   9347 
   9348 #
   9349 # Check to make sure the PIC flag actually works.
   9350 #
   9351 if test -n "$lt_prog_compiler_pic"; then
   9352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   9353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   9354 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   9355   $as_echo_n "(cached) " >&6
   9356 else
   9357   lt_cv_prog_compiler_pic_works=no
   9358    ac_outfile=conftest.$ac_objext
   9359    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9360    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   9361    # Insert the option either (1) after the last *FLAGS variable, or
   9362    # (2) before a word containing "conftest.", or (3) at the end.
   9363    # Note that $ac_compile itself does not contain backslashes and begins
   9364    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9365    # The option is referenced via a variable to avoid confusing sed.
   9366    lt_compile=`echo "$ac_compile" | $SED \
   9367    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9368    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9369    -e 's:$: $lt_compiler_flag:'`
   9370    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9371    (eval "$lt_compile" 2>conftest.err)
   9372    ac_status=$?
   9373    cat conftest.err >&5
   9374    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9375    if (exit $ac_status) && test -s "$ac_outfile"; then
   9376      # The compiler can only warn and ignore the option if not recognized
   9377      # So say no if there are warnings other than the usual output.
   9378      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   9379      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9380      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   9381        lt_cv_prog_compiler_pic_works=yes
   9382      fi
   9383    fi
   9384    $RM conftest*
   9385 
   9386 fi
   9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   9388 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   9389 
   9390 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   9391     case $lt_prog_compiler_pic in
   9392      "" | " "*) ;;
   9393      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   9394      esac
   9395 else
   9396     lt_prog_compiler_pic=
   9397      lt_prog_compiler_can_build_shared=no
   9398 fi
   9399 
   9400 fi
   9401 
   9402 
   9403 
   9404 
   9405 
   9406 
   9407 
   9408 
   9409 
   9410 
   9411 
   9412 #
   9413 # Check to make sure the static flag actually works.
   9414 #
   9415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   9417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   9418 if ${lt_cv_prog_compiler_static_works+:} false; then :
   9419   $as_echo_n "(cached) " >&6
   9420 else
   9421   lt_cv_prog_compiler_static_works=no
   9422    save_LDFLAGS=$LDFLAGS
   9423    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   9424    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9425    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9426      # The linker can only warn and ignore the option if not recognized
   9427      # So say no if there are warnings
   9428      if test -s conftest.err; then
   9429        # Append any errors to the config.log.
   9430        cat conftest.err 1>&5
   9431        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9432        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9433        if diff conftest.exp conftest.er2 >/dev/null; then
   9434          lt_cv_prog_compiler_static_works=yes
   9435        fi
   9436      else
   9437        lt_cv_prog_compiler_static_works=yes
   9438      fi
   9439    fi
   9440    $RM -r conftest*
   9441    LDFLAGS=$save_LDFLAGS
   9442 
   9443 fi
   9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   9445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   9446 
   9447 if test yes = "$lt_cv_prog_compiler_static_works"; then
   9448     :
   9449 else
   9450     lt_prog_compiler_static=
   9451 fi
   9452 
   9453 
   9454 
   9455 
   9456 
   9457 
   9458 
   9459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9461 if ${lt_cv_prog_compiler_c_o+:} false; then :
   9462   $as_echo_n "(cached) " >&6
   9463 else
   9464   lt_cv_prog_compiler_c_o=no
   9465    $RM -r conftest 2>/dev/null
   9466    mkdir conftest
   9467    cd conftest
   9468    mkdir out
   9469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9470 
   9471    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9472    # Insert the option either (1) after the last *FLAGS variable, or
   9473    # (2) before a word containing "conftest.", or (3) at the end.
   9474    # Note that $ac_compile itself does not contain backslashes and begins
   9475    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9476    lt_compile=`echo "$ac_compile" | $SED \
   9477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9479    -e 's:$: $lt_compiler_flag:'`
   9480    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9481    (eval "$lt_compile" 2>out/conftest.err)
   9482    ac_status=$?
   9483    cat out/conftest.err >&5
   9484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9485    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9486    then
   9487      # The compiler can only warn and ignore the option if not recognized
   9488      # So say no if there are warnings
   9489      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9490      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9491      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9492        lt_cv_prog_compiler_c_o=yes
   9493      fi
   9494    fi
   9495    chmod u+w . 2>&5
   9496    $RM conftest*
   9497    # SGI C++ compiler will create directory out/ii_files/ for
   9498    # template instantiation
   9499    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9500    $RM out/* && rmdir out
   9501    cd ..
   9502    $RM -r conftest
   9503    $RM conftest*
   9504 
   9505 fi
   9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   9508 
   9509 
   9510 
   9511 
   9512 
   9513 
   9514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9516 if ${lt_cv_prog_compiler_c_o+:} false; then :
   9517   $as_echo_n "(cached) " >&6
   9518 else
   9519   lt_cv_prog_compiler_c_o=no
   9520    $RM -r conftest 2>/dev/null
   9521    mkdir conftest
   9522    cd conftest
   9523    mkdir out
   9524    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9525 
   9526    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9527    # Insert the option either (1) after the last *FLAGS variable, or
   9528    # (2) before a word containing "conftest.", or (3) at the end.
   9529    # Note that $ac_compile itself does not contain backslashes and begins
   9530    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9531    lt_compile=`echo "$ac_compile" | $SED \
   9532    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9534    -e 's:$: $lt_compiler_flag:'`
   9535    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9536    (eval "$lt_compile" 2>out/conftest.err)
   9537    ac_status=$?
   9538    cat out/conftest.err >&5
   9539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9541    then
   9542      # The compiler can only warn and ignore the option if not recognized
   9543      # So say no if there are warnings
   9544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9545      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9546      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9547        lt_cv_prog_compiler_c_o=yes
   9548      fi
   9549    fi
   9550    chmod u+w . 2>&5
   9551    $RM conftest*
   9552    # SGI C++ compiler will create directory out/ii_files/ for
   9553    # template instantiation
   9554    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9555    $RM out/* && rmdir out
   9556    cd ..
   9557    $RM -r conftest
   9558    $RM conftest*
   9559 
   9560 fi
   9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   9563 
   9564 
   9565 
   9566 
   9567 hard_links=nottested
   9568 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   9569   # do not overwrite the value of need_locks provided by the user
   9570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   9571 $as_echo_n "checking if we can lock with hard links... " >&6; }
   9572   hard_links=yes
   9573   $RM conftest*
   9574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9575   touch conftest.a
   9576   ln conftest.a conftest.b 2>&5 || hard_links=no
   9577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   9579 $as_echo "$hard_links" >&6; }
   9580   if test no = "$hard_links"; then
   9581     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   9582 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   9583     need_locks=warn
   9584   fi
   9585 else
   9586   need_locks=no
   9587 fi
   9588 
   9589 
   9590 
   9591 
   9592 
   9593 
   9594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   9595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   9596 
   9597   runpath_var=
   9598   allow_undefined_flag=
   9599   always_export_symbols=no
   9600   archive_cmds=
   9601   archive_expsym_cmds=
   9602   compiler_needs_object=no
   9603   enable_shared_with_static_runtimes=no
   9604   export_dynamic_flag_spec=
   9605   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   9606   hardcode_automatic=no
   9607   hardcode_direct=no
   9608   hardcode_direct_absolute=no
   9609   hardcode_libdir_flag_spec=
   9610   hardcode_libdir_separator=
   9611   hardcode_minus_L=no
   9612   hardcode_shlibpath_var=unsupported
   9613   inherit_rpath=no
   9614   link_all_deplibs=unknown
   9615   module_cmds=
   9616   module_expsym_cmds=
   9617   old_archive_from_new_cmds=
   9618   old_archive_from_expsyms_cmds=
   9619   thread_safe_flag_spec=
   9620   whole_archive_flag_spec=
   9621   # include_expsyms should be a list of space-separated symbols to be *always*
   9622   # included in the symbol list
   9623   include_expsyms=
   9624   # exclude_expsyms can be an extended regexp of symbols to exclude
   9625   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   9626   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   9627   # as well as any symbol that contains 'd'.
   9628   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   9629   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   9630   # platforms (ab)use it in PIC code, but their linkers get confused if
   9631   # the symbol is explicitly referenced.  Since portable code cannot
   9632   # rely on this symbol name, it's probably fine to never include it in
   9633   # preloaded symbol tables.
   9634   # Exclude shared library initialization/finalization symbols.
   9635   extract_expsyms_cmds=
   9636 
   9637   case $host_os in
   9638   cygwin* | mingw* | pw32* | cegcc*)
   9639     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   9640     # When not using gcc, we currently assume that we are using
   9641     # Microsoft Visual C++.
   9642     if test yes != "$GCC"; then
   9643       with_gnu_ld=no
   9644     fi
   9645     ;;
   9646   interix*)
   9647     # we just hope/assume this is gcc and not c89 (= MSVC++)
   9648     with_gnu_ld=yes
   9649     ;;
   9650   openbsd* | bitrig*)
   9651     with_gnu_ld=no
   9652     ;;
   9653   esac
   9654 
   9655   ld_shlibs=yes
   9656 
   9657   # On some targets, GNU ld is compatible enough with the native linker
   9658   # that we're better off using the native interface for both.
   9659   lt_use_gnu_ld_interface=no
   9660   if test yes = "$with_gnu_ld"; then
   9661     case $host_os in
   9662       aix*)
   9663 	# The AIX port of GNU ld has always aspired to compatibility
   9664 	# with the native linker.  However, as the warning in the GNU ld
   9665 	# block says, versions before 2.19.5* couldn't really create working
   9666 	# shared libraries, regardless of the interface used.
   9667 	case `$LD -v 2>&1` in
   9668 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   9669 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   9670 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   9671 	  *)
   9672 	    lt_use_gnu_ld_interface=yes
   9673 	    ;;
   9674 	esac
   9675 	;;
   9676       *)
   9677 	lt_use_gnu_ld_interface=yes
   9678 	;;
   9679     esac
   9680   fi
   9681 
   9682   if test yes = "$lt_use_gnu_ld_interface"; then
   9683     # If archive_cmds runs LD, not CC, wlarc should be empty
   9684     wlarc='$wl'
   9685 
   9686     # Set some defaults for GNU ld with shared library support. These
   9687     # are reset later if shared libraries are not supported. Putting them
   9688     # here allows them to be overridden if necessary.
   9689     runpath_var=LD_RUN_PATH
   9690     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9691     export_dynamic_flag_spec='$wl--export-dynamic'
   9692     # ancient GNU ld didn't support --whole-archive et. al.
   9693     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   9694       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   9695     else
   9696       whole_archive_flag_spec=
   9697     fi
   9698     supports_anon_versioning=no
   9699     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   9700       *GNU\ gold*) supports_anon_versioning=yes ;;
   9701       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   9702       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   9703       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   9704       *\ 2.11.*) ;; # other 2.11 versions
   9705       *) supports_anon_versioning=yes ;;
   9706     esac
   9707 
   9708     # See if GNU ld supports shared libraries.
   9709     case $host_os in
   9710     aix[3-9]*)
   9711       # On AIX/PPC, the GNU linker is very broken
   9712       if test ia64 != "$host_cpu"; then
   9713 	ld_shlibs=no
   9714 	cat <<_LT_EOF 1>&2
   9715 
   9716 *** Warning: the GNU linker, at least up to release 2.19, is reported
   9717 *** to be unable to reliably create shared libraries on AIX.
   9718 *** Therefore, libtool is disabling shared libraries support.  If you
   9719 *** really care for shared libraries, you may want to install binutils
   9720 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   9721 *** You will then need to restart the configuration process.
   9722 
   9723 _LT_EOF
   9724       fi
   9725       ;;
   9726 
   9727     amigaos*)
   9728       case $host_cpu in
   9729       powerpc)
   9730             # see comment about AmigaOS4 .so support
   9731             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9732             archive_expsym_cmds=''
   9733         ;;
   9734       m68k)
   9735             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   9736             hardcode_libdir_flag_spec='-L$libdir'
   9737             hardcode_minus_L=yes
   9738         ;;
   9739       esac
   9740       ;;
   9741 
   9742     beos*)
   9743       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9744 	allow_undefined_flag=unsupported
   9745 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   9746 	# support --undefined.  This deserves some investigation.  FIXME
   9747 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9748       else
   9749 	ld_shlibs=no
   9750       fi
   9751       ;;
   9752 
   9753     cygwin* | mingw* | pw32* | cegcc*)
   9754       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   9755       # as there is no search path for DLLs.
   9756       hardcode_libdir_flag_spec='-L$libdir'
   9757       export_dynamic_flag_spec='$wl--export-all-symbols'
   9758       allow_undefined_flag=unsupported
   9759       always_export_symbols=no
   9760       enable_shared_with_static_runtimes=yes
   9761       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'
   9762       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   9763 
   9764       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   9765         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9766 	# If the export-symbols file already is a .def file, use it as
   9767 	# is; otherwise, prepend EXPORTS...
   9768 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9769           cp $export_symbols $output_objdir/$soname.def;
   9770         else
   9771           echo EXPORTS > $output_objdir/$soname.def;
   9772           cat $export_symbols >> $output_objdir/$soname.def;
   9773         fi~
   9774         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9775       else
   9776 	ld_shlibs=no
   9777       fi
   9778       ;;
   9779 
   9780     haiku*)
   9781       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9782       link_all_deplibs=yes
   9783       ;;
   9784 
   9785     os2*)
   9786       hardcode_libdir_flag_spec='-L$libdir'
   9787       hardcode_minus_L=yes
   9788       allow_undefined_flag=unsupported
   9789       shrext_cmds=.dll
   9790       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9791 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9792 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9793 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9794 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9795 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9796 	emximp -o $lib $output_objdir/$libname.def'
   9797       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9798 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9799 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9800 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9801 	prefix_cmds="$SED"~
   9802 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9803 	  prefix_cmds="$prefix_cmds -e 1d";
   9804 	fi~
   9805 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9806 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9807 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9808 	emximp -o $lib $output_objdir/$libname.def'
   9809       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9810       enable_shared_with_static_runtimes=yes
   9811       ;;
   9812 
   9813     interix[3-9]*)
   9814       hardcode_direct=no
   9815       hardcode_shlibpath_var=no
   9816       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9817       export_dynamic_flag_spec='$wl-E'
   9818       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9819       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9820       # default) and relocated if they conflict, which is a slow very memory
   9821       # consuming and fragmenting process.  To avoid this, we pick a random,
   9822       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9823       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9824       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9825       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'
   9826       ;;
   9827 
   9828     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9829       tmp_diet=no
   9830       if test linux-dietlibc = "$host_os"; then
   9831 	case $cc_basename in
   9832 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9833 	esac
   9834       fi
   9835       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9836 	 && test no = "$tmp_diet"
   9837       then
   9838 	tmp_addflag=' $pic_flag'
   9839 	tmp_sharedflag='-shared'
   9840 	case $cc_basename,$host_cpu in
   9841         pgcc*)				# Portland Group C compiler
   9842 	  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'
   9843 	  tmp_addflag=' $pic_flag'
   9844 	  ;;
   9845 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9846 					# Portland Group f77 and f90 compilers
   9847 	  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'
   9848 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9849 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9850 	  tmp_addflag=' -i_dynamic' ;;
   9851 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9852 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9853 	ifc* | ifort*)			# Intel Fortran compiler
   9854 	  tmp_addflag=' -nofor_main' ;;
   9855 	lf95*)				# Lahey Fortran 8.1
   9856 	  whole_archive_flag_spec=
   9857 	  tmp_sharedflag='--shared' ;;
   9858         nagfor*)                        # NAGFOR 5.3
   9859           tmp_sharedflag='-Wl,-shared' ;;
   9860 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9861 	  tmp_sharedflag='-qmkshrobj'
   9862 	  tmp_addflag= ;;
   9863 	nvcc*)	# Cuda Compiler Driver 2.2
   9864 	  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'
   9865 	  compiler_needs_object=yes
   9866 	  ;;
   9867 	esac
   9868 	case `$CC -V 2>&1 | sed 5q` in
   9869 	*Sun\ C*)			# Sun C 5.9
   9870 	  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'
   9871 	  compiler_needs_object=yes
   9872 	  tmp_sharedflag='-G' ;;
   9873 	*Sun\ F*)			# Sun Fortran 8.3
   9874 	  tmp_sharedflag='-G' ;;
   9875 	esac
   9876 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9877 
   9878         if test yes = "$supports_anon_versioning"; then
   9879           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9880             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9881             echo "local: *; };" >> $output_objdir/$libname.ver~
   9882             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9883         fi
   9884 
   9885 	case $cc_basename in
   9886 	tcc*)
   9887 	  export_dynamic_flag_spec='-rdynamic'
   9888 	  ;;
   9889 	xlf* | bgf* | bgxlf* | mpixlf*)
   9890 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9891 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9892 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9893 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9894 	  if test yes = "$supports_anon_versioning"; then
   9895 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9896               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9897               echo "local: *; };" >> $output_objdir/$libname.ver~
   9898               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9899 	  fi
   9900 	  ;;
   9901 	esac
   9902       else
   9903         ld_shlibs=no
   9904       fi
   9905       ;;
   9906 
   9907     netbsd*)
   9908       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9909 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9910 	wlarc=
   9911       else
   9912 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9913 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9914       fi
   9915       ;;
   9916 
   9917     solaris*)
   9918       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9919 	ld_shlibs=no
   9920 	cat <<_LT_EOF 1>&2
   9921 
   9922 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9923 *** create shared libraries on Solaris systems.  Therefore, libtool
   9924 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9925 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9926 *** your PATH or compiler configuration so that the native linker is
   9927 *** used, and then restart.
   9928 
   9929 _LT_EOF
   9930       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9931 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9932 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9933       else
   9934 	ld_shlibs=no
   9935       fi
   9936       ;;
   9937 
   9938     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9939       case `$LD -v 2>&1` in
   9940         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9941 	ld_shlibs=no
   9942 	cat <<_LT_EOF 1>&2
   9943 
   9944 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   9945 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9946 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9947 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9948 *** your PATH or compiler configuration so that the native linker is
   9949 *** used, and then restart.
   9950 
   9951 _LT_EOF
   9952 	;;
   9953 	*)
   9954 	  # For security reasons, it is highly recommended that you always
   9955 	  # use absolute paths for naming shared libraries, and exclude the
   9956 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9957 	  # requires that you compile everything twice, which is a pain.
   9958 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9959 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9960 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9961 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9962 	  else
   9963 	    ld_shlibs=no
   9964 	  fi
   9965 	;;
   9966       esac
   9967       ;;
   9968 
   9969     sunos4*)
   9970       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9971       wlarc=
   9972       hardcode_direct=yes
   9973       hardcode_shlibpath_var=no
   9974       ;;
   9975 
   9976     *)
   9977       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9978 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9979 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9980       else
   9981 	ld_shlibs=no
   9982       fi
   9983       ;;
   9984     esac
   9985 
   9986     if test no = "$ld_shlibs"; then
   9987       runpath_var=
   9988       hardcode_libdir_flag_spec=
   9989       export_dynamic_flag_spec=
   9990       whole_archive_flag_spec=
   9991     fi
   9992   else
   9993     # PORTME fill in a description of your system's linker (not GNU ld)
   9994     case $host_os in
   9995     aix3*)
   9996       allow_undefined_flag=unsupported
   9997       always_export_symbols=yes
   9998       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   9999       # Note: this linker hardcodes the directories in LIBPATH if there
   10000       # are no directories specified by -L.
   10001       hardcode_minus_L=yes
   10002       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   10003 	# Neither direct hardcoding nor static linking is supported with a
   10004 	# broken collect2.
   10005 	hardcode_direct=unsupported
   10006       fi
   10007       ;;
   10008 
   10009     aix[4-9]*)
   10010       if test ia64 = "$host_cpu"; then
   10011 	# On IA64, the linker does run time linking by default, so we don't
   10012 	# have to do anything special.
   10013 	aix_use_runtimelinking=no
   10014 	exp_sym_flag='-Bexport'
   10015 	no_entry_flag=
   10016       else
   10017 	# If we're using GNU nm, then we don't want the "-C" option.
   10018 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   10019 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   10020 	# weak defined symbols like other global defined symbols, whereas
   10021 	# GNU nm marks them as "W".
   10022 	# While the 'weak' keyword is ignored in the Export File, we need
   10023 	# it in the Import File for the 'aix-soname' feature, so we have
   10024 	# to replace the "-B" option with "-P" for AIX nm.
   10025 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   10026 	  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'
   10027 	else
   10028 	  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'
   10029 	fi
   10030 	aix_use_runtimelinking=no
   10031 
   10032 	# Test if we are trying to use run time linking or normal
   10033 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   10034 	# have runtime linking enabled, and use it for executables.
   10035 	# For shared libraries, we enable/disable runtime linking
   10036 	# depending on the kind of the shared library created -
   10037 	# when "with_aix_soname,aix_use_runtimelinking" is:
   10038 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   10039 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   10040 	#            lib.a           static archive
   10041 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   10042 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   10043 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   10044 	#            lib.a(lib.so.V) shared, rtl:no
   10045 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   10046 	#            lib.a           static archive
   10047 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   10048 	  for ld_flag in $LDFLAGS; do
   10049 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   10050 	    aix_use_runtimelinking=yes
   10051 	    break
   10052 	  fi
   10053 	  done
   10054 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   10055 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   10056 	    # so we don't have lib.a shared libs to link our executables.
   10057 	    # We have to force runtime linking in this case.
   10058 	    aix_use_runtimelinking=yes
   10059 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   10060 	  fi
   10061 	  ;;
   10062 	esac
   10063 
   10064 	exp_sym_flag='-bexport'
   10065 	no_entry_flag='-bnoentry'
   10066       fi
   10067 
   10068       # When large executables or shared objects are built, AIX ld can
   10069       # have problems creating the table of contents.  If linking a library
   10070       # or program results in "error TOC overflow" add -mminimal-toc to
   10071       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   10072       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   10073 
   10074       archive_cmds=''
   10075       hardcode_direct=yes
   10076       hardcode_direct_absolute=yes
   10077       hardcode_libdir_separator=':'
   10078       link_all_deplibs=yes
   10079       file_list_spec='$wl-f,'
   10080       case $with_aix_soname,$aix_use_runtimelinking in
   10081       aix,*) ;; # traditional, no import file
   10082       svr4,* | *,yes) # use import file
   10083 	# The Import File defines what to hardcode.
   10084 	hardcode_direct=no
   10085 	hardcode_direct_absolute=no
   10086 	;;
   10087       esac
   10088 
   10089       if test yes = "$GCC"; then
   10090 	case $host_os in aix4.[012]|aix4.[012].*)
   10091 	# We only want to do this on AIX 4.2 and lower, the check
   10092 	# below for broken collect2 doesn't work under 4.3+
   10093 	  collect2name=`$CC -print-prog-name=collect2`
   10094 	  if test -f "$collect2name" &&
   10095 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   10096 	  then
   10097 	  # We have reworked collect2
   10098 	  :
   10099 	  else
   10100 	  # We have old collect2
   10101 	  hardcode_direct=unsupported
   10102 	  # It fails to find uninstalled libraries when the uninstalled
   10103 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   10104 	  # to unsupported forces relinking
   10105 	  hardcode_minus_L=yes
   10106 	  hardcode_libdir_flag_spec='-L$libdir'
   10107 	  hardcode_libdir_separator=
   10108 	  fi
   10109 	  ;;
   10110 	esac
   10111 	shared_flag='-shared'
   10112 	if test yes = "$aix_use_runtimelinking"; then
   10113 	  shared_flag="$shared_flag "'$wl-G'
   10114 	fi
   10115 	# Need to ensure runtime linking is disabled for the traditional
   10116 	# shared library, or the linker may eventually find shared libraries
   10117 	# /with/ Import File - we do not want to mix them.
   10118 	shared_flag_aix='-shared'
   10119 	shared_flag_svr4='-shared $wl-G'
   10120       else
   10121 	# not using gcc
   10122 	if test ia64 = "$host_cpu"; then
   10123 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   10124 	# chokes on -Wl,-G. The following line is correct:
   10125 	  shared_flag='-G'
   10126 	else
   10127 	  if test yes = "$aix_use_runtimelinking"; then
   10128 	    shared_flag='$wl-G'
   10129 	  else
   10130 	    shared_flag='$wl-bM:SRE'
   10131 	  fi
   10132 	  shared_flag_aix='$wl-bM:SRE'
   10133 	  shared_flag_svr4='$wl-G'
   10134 	fi
   10135       fi
   10136 
   10137       export_dynamic_flag_spec='$wl-bexpall'
   10138       # It seems that -bexpall does not export symbols beginning with
   10139       # underscore (_), so it is better to generate a list of symbols to export.
   10140       always_export_symbols=yes
   10141       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   10142 	# Warning - without using the other runtime loading flags (-brtl),
   10143 	# -berok will link without error, but may produce a broken library.
   10144 	allow_undefined_flag='-berok'
   10145         # Determine the default libpath from the value encoded in an
   10146         # empty executable.
   10147         if test set = "${lt_cv_aix_libpath+set}"; then
   10148   aix_libpath=$lt_cv_aix_libpath
   10149 else
   10150   if ${lt_cv_aix_libpath_+:} false; then :
   10151   $as_echo_n "(cached) " >&6
   10152 else
   10153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10154 /* end confdefs.h.  */
   10155 
   10156 int
   10157 main ()
   10158 {
   10159 
   10160   ;
   10161   return 0;
   10162 }
   10163 _ACEOF
   10164 if ac_fn_c_try_link "$LINENO"; then :
   10165 
   10166   lt_aix_libpath_sed='
   10167       /Import File Strings/,/^$/ {
   10168 	  /^0/ {
   10169 	      s/^0  *\([^ ]*\) *$/\1/
   10170 	      p
   10171 	  }
   10172       }'
   10173   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10174   # Check for a 64-bit object if we didn't find anything.
   10175   if test -z "$lt_cv_aix_libpath_"; then
   10176     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10177   fi
   10178 fi
   10179 rm -f core conftest.err conftest.$ac_objext \
   10180     conftest$ac_exeext conftest.$ac_ext
   10181   if test -z "$lt_cv_aix_libpath_"; then
   10182     lt_cv_aix_libpath_=/usr/lib:/lib
   10183   fi
   10184 
   10185 fi
   10186 
   10187   aix_libpath=$lt_cv_aix_libpath_
   10188 fi
   10189 
   10190         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   10191         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
   10192       else
   10193 	if test ia64 = "$host_cpu"; then
   10194 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   10195 	  allow_undefined_flag="-z nodefs"
   10196 	  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"
   10197 	else
   10198 	 # Determine the default libpath from the value encoded in an
   10199 	 # empty executable.
   10200 	 if test set = "${lt_cv_aix_libpath+set}"; then
   10201   aix_libpath=$lt_cv_aix_libpath
   10202 else
   10203   if ${lt_cv_aix_libpath_+:} false; then :
   10204   $as_echo_n "(cached) " >&6
   10205 else
   10206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10207 /* end confdefs.h.  */
   10208 
   10209 int
   10210 main ()
   10211 {
   10212 
   10213   ;
   10214   return 0;
   10215 }
   10216 _ACEOF
   10217 if ac_fn_c_try_link "$LINENO"; then :
   10218 
   10219   lt_aix_libpath_sed='
   10220       /Import File Strings/,/^$/ {
   10221 	  /^0/ {
   10222 	      s/^0  *\([^ ]*\) *$/\1/
   10223 	      p
   10224 	  }
   10225       }'
   10226   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10227   # Check for a 64-bit object if we didn't find anything.
   10228   if test -z "$lt_cv_aix_libpath_"; then
   10229     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10230   fi
   10231 fi
   10232 rm -f core conftest.err conftest.$ac_objext \
   10233     conftest$ac_exeext conftest.$ac_ext
   10234   if test -z "$lt_cv_aix_libpath_"; then
   10235     lt_cv_aix_libpath_=/usr/lib:/lib
   10236   fi
   10237 
   10238 fi
   10239 
   10240   aix_libpath=$lt_cv_aix_libpath_
   10241 fi
   10242 
   10243 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   10244 	  # Warning - without using the other run time loading flags,
   10245 	  # -berok will link without error, but may produce a broken library.
   10246 	  no_undefined_flag=' $wl-bernotok'
   10247 	  allow_undefined_flag=' $wl-berok'
   10248 	  if test yes = "$with_gnu_ld"; then
   10249 	    # We only use this code for GNU lds that support --whole-archive.
   10250 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   10251 	  else
   10252 	    # Exported symbols can be pulled into shared objects from archives
   10253 	    whole_archive_flag_spec='$convenience'
   10254 	  fi
   10255 	  archive_cmds_need_lc=yes
   10256 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   10257 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   10258 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   10259 	  if test svr4 != "$with_aix_soname"; then
   10260 	    # This is similar to how AIX traditionally builds its shared libraries.
   10261 	    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'
   10262 	  fi
   10263 	  if test aix != "$with_aix_soname"; then
   10264 	    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'
   10265 	  else
   10266 	    # used by -dlpreopen to get the symbols
   10267 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   10268 	  fi
   10269 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   10270 	fi
   10271       fi
   10272       ;;
   10273 
   10274     amigaos*)
   10275       case $host_cpu in
   10276       powerpc)
   10277             # see comment about AmigaOS4 .so support
   10278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   10279             archive_expsym_cmds=''
   10280         ;;
   10281       m68k)
   10282             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   10283             hardcode_libdir_flag_spec='-L$libdir'
   10284             hardcode_minus_L=yes
   10285         ;;
   10286       esac
   10287       ;;
   10288 
   10289     bsdi[45]*)
   10290       export_dynamic_flag_spec=-rdynamic
   10291       ;;
   10292 
   10293     cygwin* | mingw* | pw32* | cegcc*)
   10294       # When not using gcc, we currently assume that we are using
   10295       # Microsoft Visual C++.
   10296       # hardcode_libdir_flag_spec is actually meaningless, as there is
   10297       # no search path for DLLs.
   10298       case $cc_basename in
   10299       cl*)
   10300 	# Native MSVC
   10301 	hardcode_libdir_flag_spec=' '
   10302 	allow_undefined_flag=unsupported
   10303 	always_export_symbols=yes
   10304 	file_list_spec='@'
   10305 	# Tell ltmain to make .lib files, not .a files.
   10306 	libext=lib
   10307 	# Tell ltmain to make .dll files, not .so files.
   10308 	shrext_cmds=.dll
   10309 	# FIXME: Setting linknames here is a bad hack.
   10310 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   10311 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   10312             cp "$export_symbols" "$output_objdir/$soname.def";
   10313             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   10314           else
   10315             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   10316           fi~
   10317           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   10318           linknames='
   10319 	# The linker will not automatically build a static lib if we build a DLL.
   10320 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   10321 	enable_shared_with_static_runtimes=yes
   10322 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   10323 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   10324 	# Don't use ranlib
   10325 	old_postinstall_cmds='chmod 644 $oldlib'
   10326 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   10327           lt_tool_outputfile="@TOOL_OUTPUT@"~
   10328           case $lt_outputfile in
   10329             *.exe|*.EXE) ;;
   10330             *)
   10331               lt_outputfile=$lt_outputfile.exe
   10332               lt_tool_outputfile=$lt_tool_outputfile.exe
   10333               ;;
   10334           esac~
   10335           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   10336             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   10337             $RM "$lt_outputfile.manifest";
   10338           fi'
   10339 	;;
   10340       *)
   10341 	# Assume MSVC wrapper
   10342 	hardcode_libdir_flag_spec=' '
   10343 	allow_undefined_flag=unsupported
   10344 	# Tell ltmain to make .lib files, not .a files.
   10345 	libext=lib
   10346 	# Tell ltmain to make .dll files, not .so files.
   10347 	shrext_cmds=.dll
   10348 	# FIXME: Setting linknames here is a bad hack.
   10349 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   10350 	# The linker will automatically build a .lib file if we build a DLL.
   10351 	old_archive_from_new_cmds='true'
   10352 	# FIXME: Should let the user specify the lib program.
   10353 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   10354 	enable_shared_with_static_runtimes=yes
   10355 	;;
   10356       esac
   10357       ;;
   10358 
   10359     darwin* | rhapsody*)
   10360 
   10361 
   10362   archive_cmds_need_lc=no
   10363   hardcode_direct=no
   10364   hardcode_automatic=yes
   10365   hardcode_shlibpath_var=unsupported
   10366   if test yes = "$lt_cv_ld_force_load"; then
   10367     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\"`'
   10368 
   10369   else
   10370     whole_archive_flag_spec=''
   10371   fi
   10372   link_all_deplibs=yes
   10373   allow_undefined_flag=$_lt_dar_allow_undefined
   10374   case $cc_basename in
   10375      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   10376      *) _lt_dar_can_shared=$GCC ;;
   10377   esac
   10378   if test yes = "$_lt_dar_can_shared"; then
   10379     output_verbose_link_cmd=func_echo_all
   10380     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   10381     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   10382     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"
   10383     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"
   10384 
   10385   else
   10386   ld_shlibs=no
   10387   fi
   10388 
   10389       ;;
   10390 
   10391     dgux*)
   10392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10393       hardcode_libdir_flag_spec='-L$libdir'
   10394       hardcode_shlibpath_var=no
   10395       ;;
   10396 
   10397     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   10398     # support.  Future versions do this automatically, but an explicit c++rt0.o
   10399     # does not break anything, and helps significantly (at the cost of a little
   10400     # extra space).
   10401     freebsd2.2*)
   10402       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   10403       hardcode_libdir_flag_spec='-R$libdir'
   10404       hardcode_direct=yes
   10405       hardcode_shlibpath_var=no
   10406       ;;
   10407 
   10408     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   10409     freebsd2.*)
   10410       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   10411       hardcode_direct=yes
   10412       hardcode_minus_L=yes
   10413       hardcode_shlibpath_var=no
   10414       ;;
   10415 
   10416     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   10417     freebsd* | dragonfly*)
   10418       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10419       hardcode_libdir_flag_spec='-R$libdir'
   10420       hardcode_direct=yes
   10421       hardcode_shlibpath_var=no
   10422       ;;
   10423 
   10424     hpux9*)
   10425       if test yes = "$GCC"; then
   10426 	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'
   10427       else
   10428 	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'
   10429       fi
   10430       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10431       hardcode_libdir_separator=:
   10432       hardcode_direct=yes
   10433 
   10434       # hardcode_minus_L: Not really in the search PATH,
   10435       # but as the default location of the library.
   10436       hardcode_minus_L=yes
   10437       export_dynamic_flag_spec='$wl-E'
   10438       ;;
   10439 
   10440     hpux10*)
   10441       if test yes,no = "$GCC,$with_gnu_ld"; then
   10442 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10443       else
   10444 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   10445       fi
   10446       if test no = "$with_gnu_ld"; then
   10447 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10448 	hardcode_libdir_separator=:
   10449 	hardcode_direct=yes
   10450 	hardcode_direct_absolute=yes
   10451 	export_dynamic_flag_spec='$wl-E'
   10452 	# hardcode_minus_L: Not really in the search PATH,
   10453 	# but as the default location of the library.
   10454 	hardcode_minus_L=yes
   10455       fi
   10456       ;;
   10457 
   10458     hpux11*)
   10459       if test yes,no = "$GCC,$with_gnu_ld"; then
   10460 	case $host_cpu in
   10461 	hppa*64*)
   10462 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10463 	  ;;
   10464 	ia64*)
   10465 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   10466 	  ;;
   10467 	*)
   10468 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10469 	  ;;
   10470 	esac
   10471       else
   10472 	case $host_cpu in
   10473 	hppa*64*)
   10474 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10475 	  ;;
   10476 	ia64*)
   10477 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   10478 	  ;;
   10479 	*)
   10480 
   10481 	  # Older versions of the 11.00 compiler do not understand -b yet
   10482 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   10483 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   10484 $as_echo_n "checking if $CC understands -b... " >&6; }
   10485 if ${lt_cv_prog_compiler__b+:} false; then :
   10486   $as_echo_n "(cached) " >&6
   10487 else
   10488   lt_cv_prog_compiler__b=no
   10489    save_LDFLAGS=$LDFLAGS
   10490    LDFLAGS="$LDFLAGS -b"
   10491    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   10492    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   10493      # The linker can only warn and ignore the option if not recognized
   10494      # So say no if there are warnings
   10495      if test -s conftest.err; then
   10496        # Append any errors to the config.log.
   10497        cat conftest.err 1>&5
   10498        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   10499        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10500        if diff conftest.exp conftest.er2 >/dev/null; then
   10501          lt_cv_prog_compiler__b=yes
   10502        fi
   10503      else
   10504        lt_cv_prog_compiler__b=yes
   10505      fi
   10506    fi
   10507    $RM -r conftest*
   10508    LDFLAGS=$save_LDFLAGS
   10509 
   10510 fi
   10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   10512 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   10513 
   10514 if test yes = "$lt_cv_prog_compiler__b"; then
   10515     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10516 else
   10517     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   10518 fi
   10519 
   10520 	  ;;
   10521 	esac
   10522       fi
   10523       if test no = "$with_gnu_ld"; then
   10524 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10525 	hardcode_libdir_separator=:
   10526 
   10527 	case $host_cpu in
   10528 	hppa*64*|ia64*)
   10529 	  hardcode_direct=no
   10530 	  hardcode_shlibpath_var=no
   10531 	  ;;
   10532 	*)
   10533 	  hardcode_direct=yes
   10534 	  hardcode_direct_absolute=yes
   10535 	  export_dynamic_flag_spec='$wl-E'
   10536 
   10537 	  # hardcode_minus_L: Not really in the search PATH,
   10538 	  # but as the default location of the library.
   10539 	  hardcode_minus_L=yes
   10540 	  ;;
   10541 	esac
   10542       fi
   10543       ;;
   10544 
   10545     irix5* | irix6* | nonstopux*)
   10546       if test yes = "$GCC"; then
   10547 	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'
   10548 	# Try to use the -exported_symbol ld option, if it does not
   10549 	# work, assume that -exports_file does not work either and
   10550 	# implicitly export all symbols.
   10551 	# This should be the same for all languages, so no per-tag cache variable.
   10552 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   10553 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   10554 if ${lt_cv_irix_exported_symbol+:} false; then :
   10555   $as_echo_n "(cached) " >&6
   10556 else
   10557   save_LDFLAGS=$LDFLAGS
   10558 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   10559 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10560 /* end confdefs.h.  */
   10561 int foo (void) { return 0; }
   10562 _ACEOF
   10563 if ac_fn_c_try_link "$LINENO"; then :
   10564   lt_cv_irix_exported_symbol=yes
   10565 else
   10566   lt_cv_irix_exported_symbol=no
   10567 fi
   10568 rm -f core conftest.err conftest.$ac_objext \
   10569     conftest$ac_exeext conftest.$ac_ext
   10570            LDFLAGS=$save_LDFLAGS
   10571 fi
   10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   10573 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   10574 	if test yes = "$lt_cv_irix_exported_symbol"; then
   10575           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'
   10576 	fi
   10577       else
   10578 	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'
   10579 	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'
   10580       fi
   10581       archive_cmds_need_lc='no'
   10582       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10583       hardcode_libdir_separator=:
   10584       inherit_rpath=yes
   10585       link_all_deplibs=yes
   10586       ;;
   10587 
   10588     linux*)
   10589       case $cc_basename in
   10590       tcc*)
   10591 	# Fabrice Bellard et al's Tiny C Compiler
   10592 	ld_shlibs=yes
   10593 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10594 	;;
   10595       esac
   10596       ;;
   10597 
   10598     netbsd*)
   10599       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10600 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   10601       else
   10602 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   10603       fi
   10604       hardcode_libdir_flag_spec='-R$libdir'
   10605       hardcode_direct=yes
   10606       hardcode_shlibpath_var=no
   10607       ;;
   10608 
   10609     newsos6)
   10610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10611       hardcode_direct=yes
   10612       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10613       hardcode_libdir_separator=:
   10614       hardcode_shlibpath_var=no
   10615       ;;
   10616 
   10617     *nto* | *qnx*)
   10618       ;;
   10619 
   10620     openbsd* | bitrig*)
   10621       if test -f /usr/libexec/ld.so; then
   10622 	hardcode_direct=yes
   10623 	hardcode_shlibpath_var=no
   10624 	hardcode_direct_absolute=yes
   10625 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10626 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10627 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   10628 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   10629 	  export_dynamic_flag_spec='$wl-E'
   10630 	else
   10631 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10632 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   10633 	fi
   10634       else
   10635 	ld_shlibs=no
   10636       fi
   10637       ;;
   10638 
   10639     os2*)
   10640       hardcode_libdir_flag_spec='-L$libdir'
   10641       hardcode_minus_L=yes
   10642       allow_undefined_flag=unsupported
   10643       shrext_cmds=.dll
   10644       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   10645 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   10646 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   10647 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   10648 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   10649 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   10650 	emximp -o $lib $output_objdir/$libname.def'
   10651       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   10652 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   10653 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   10654 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   10655 	prefix_cmds="$SED"~
   10656 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   10657 	  prefix_cmds="$prefix_cmds -e 1d";
   10658 	fi~
   10659 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   10660 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   10661 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   10662 	emximp -o $lib $output_objdir/$libname.def'
   10663       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   10664       enable_shared_with_static_runtimes=yes
   10665       ;;
   10666 
   10667     osf3*)
   10668       if test yes = "$GCC"; then
   10669 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   10670 	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'
   10671       else
   10672 	allow_undefined_flag=' -expect_unresolved \*'
   10673 	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'
   10674       fi
   10675       archive_cmds_need_lc='no'
   10676       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10677       hardcode_libdir_separator=:
   10678       ;;
   10679 
   10680     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   10681       if test yes = "$GCC"; then
   10682 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   10683 	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'
   10684 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10685       else
   10686 	allow_undefined_flag=' -expect_unresolved \*'
   10687 	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'
   10688 	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~
   10689           $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'
   10690 
   10691 	# Both c and cxx compiler support -rpath directly
   10692 	hardcode_libdir_flag_spec='-rpath $libdir'
   10693       fi
   10694       archive_cmds_need_lc='no'
   10695       hardcode_libdir_separator=:
   10696       ;;
   10697 
   10698     solaris*)
   10699       no_undefined_flag=' -z defs'
   10700       if test yes = "$GCC"; then
   10701 	wlarc='$wl'
   10702 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10703 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10704           $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'
   10705       else
   10706 	case `$CC -V 2>&1` in
   10707 	*"Compilers 5.0"*)
   10708 	  wlarc=''
   10709 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10710 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10711             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   10712 	  ;;
   10713 	*)
   10714 	  wlarc='$wl'
   10715 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10716 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10717             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   10718 	  ;;
   10719 	esac
   10720       fi
   10721       hardcode_libdir_flag_spec='-R$libdir'
   10722       hardcode_shlibpath_var=no
   10723       case $host_os in
   10724       solaris2.[0-5] | solaris2.[0-5].*) ;;
   10725       *)
   10726 	# The compiler driver will combine and reorder linker options,
   10727 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   10728 	# but is careful enough not to reorder.
   10729 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   10730 	if test yes = "$GCC"; then
   10731 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   10732 	else
   10733 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   10734 	fi
   10735 	;;
   10736       esac
   10737       link_all_deplibs=yes
   10738       ;;
   10739 
   10740     sunos4*)
   10741       if test sequent = "$host_vendor"; then
   10742 	# Use $CC to link under sequent, because it throws in some extra .o
   10743 	# files that make .init and .fini sections work.
   10744 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10745       else
   10746 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   10747       fi
   10748       hardcode_libdir_flag_spec='-L$libdir'
   10749       hardcode_direct=yes
   10750       hardcode_minus_L=yes
   10751       hardcode_shlibpath_var=no
   10752       ;;
   10753 
   10754     sysv4)
   10755       case $host_vendor in
   10756 	sni)
   10757 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10758 	  hardcode_direct=yes # is this really true???
   10759 	;;
   10760 	siemens)
   10761 	  ## LD is ld it makes a PLAMLIB
   10762 	  ## CC just makes a GrossModule.
   10763 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   10764 	  reload_cmds='$CC -r -o $output$reload_objs'
   10765 	  hardcode_direct=no
   10766         ;;
   10767 	motorola)
   10768 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10769 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   10770 	;;
   10771       esac
   10772       runpath_var='LD_RUN_PATH'
   10773       hardcode_shlibpath_var=no
   10774       ;;
   10775 
   10776     sysv4.3*)
   10777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10778       hardcode_shlibpath_var=no
   10779       export_dynamic_flag_spec='-Bexport'
   10780       ;;
   10781 
   10782     sysv4*MP*)
   10783       if test -d /usr/nec; then
   10784 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10785 	hardcode_shlibpath_var=no
   10786 	runpath_var=LD_RUN_PATH
   10787 	hardcode_runpath_var=yes
   10788 	ld_shlibs=yes
   10789       fi
   10790       ;;
   10791 
   10792     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10793       no_undefined_flag='$wl-z,text'
   10794       archive_cmds_need_lc=no
   10795       hardcode_shlibpath_var=no
   10796       runpath_var='LD_RUN_PATH'
   10797 
   10798       if test yes = "$GCC"; then
   10799 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10800 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10801       else
   10802 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10803 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10804       fi
   10805       ;;
   10806 
   10807     sysv5* | sco3.2v5* | sco5v6*)
   10808       # Note: We CANNOT use -z defs as we might desire, because we do not
   10809       # link with -lc, and that would cause any symbols used from libc to
   10810       # always be unresolved, which means just about no library would
   10811       # ever link correctly.  If we're not using GNU ld we use -z text
   10812       # though, which does catch some bad symbols but isn't as heavy-handed
   10813       # as -z defs.
   10814       no_undefined_flag='$wl-z,text'
   10815       allow_undefined_flag='$wl-z,nodefs'
   10816       archive_cmds_need_lc=no
   10817       hardcode_shlibpath_var=no
   10818       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10819       hardcode_libdir_separator=':'
   10820       link_all_deplibs=yes
   10821       export_dynamic_flag_spec='$wl-Bexport'
   10822       runpath_var='LD_RUN_PATH'
   10823 
   10824       if test yes = "$GCC"; then
   10825 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10826 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10827       else
   10828 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10829 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10830       fi
   10831       ;;
   10832 
   10833     uts4*)
   10834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10835       hardcode_libdir_flag_spec='-L$libdir'
   10836       hardcode_shlibpath_var=no
   10837       ;;
   10838 
   10839     *)
   10840       ld_shlibs=no
   10841       ;;
   10842     esac
   10843 
   10844     if test sni = "$host_vendor"; then
   10845       case $host in
   10846       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10847 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10848 	;;
   10849       esac
   10850     fi
   10851   fi
   10852 
   10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10854 $as_echo "$ld_shlibs" >&6; }
   10855 test no = "$ld_shlibs" && can_build_shared=no
   10856 
   10857 with_gnu_ld=$with_gnu_ld
   10858 
   10859 
   10860 
   10861 
   10862 
   10863 
   10864 
   10865 
   10866 
   10867 
   10868 
   10869 
   10870 
   10871 
   10872 
   10873 #
   10874 # Do we need to explicitly link libc?
   10875 #
   10876 case "x$archive_cmds_need_lc" in
   10877 x|xyes)
   10878   # Assume -lc should be added
   10879   archive_cmds_need_lc=yes
   10880 
   10881   if test yes,yes = "$GCC,$enable_shared"; then
   10882     case $archive_cmds in
   10883     *'~'*)
   10884       # FIXME: we may have to deal with multi-command sequences.
   10885       ;;
   10886     '$CC '*)
   10887       # Test whether the compiler implicitly links with -lc since on some
   10888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10889       # to ld, don't add -lc before -lgcc.
   10890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10892 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10893   $as_echo_n "(cached) " >&6
   10894 else
   10895   $RM conftest*
   10896 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10897 
   10898 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10899   (eval $ac_compile) 2>&5
   10900   ac_status=$?
   10901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10902   test $ac_status = 0; } 2>conftest.err; then
   10903 	  soname=conftest
   10904 	  lib=conftest
   10905 	  libobjs=conftest.$ac_objext
   10906 	  deplibs=
   10907 	  wl=$lt_prog_compiler_wl
   10908 	  pic_flag=$lt_prog_compiler_pic
   10909 	  compiler_flags=-v
   10910 	  linker_flags=-v
   10911 	  verstring=
   10912 	  output_objdir=.
   10913 	  libname=conftest
   10914 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10915 	  allow_undefined_flag=
   10916 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10917   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10918   ac_status=$?
   10919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10920   test $ac_status = 0; }
   10921 	  then
   10922 	    lt_cv_archive_cmds_need_lc=no
   10923 	  else
   10924 	    lt_cv_archive_cmds_need_lc=yes
   10925 	  fi
   10926 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10927 	else
   10928 	  cat conftest.err 1>&5
   10929 	fi
   10930 	$RM conftest*
   10931 
   10932 fi
   10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10934 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10935       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10936       ;;
   10937     esac
   10938   fi
   10939   ;;
   10940 esac
   10941 
   10942 
   10943 
   10944 
   10945 
   10946 
   10947 
   10948 
   10949 
   10950 
   10951 
   10952 
   10953 
   10954 
   10955 
   10956 
   10957 
   10958 
   10959 
   10960 
   10961 
   10962 
   10963 
   10964 
   10965 
   10966 
   10967 
   10968 
   10969 
   10970 
   10971 
   10972 
   10973 
   10974 
   10975 
   10976 
   10977 
   10978 
   10979 
   10980 
   10981 
   10982 
   10983 
   10984 
   10985 
   10986 
   10987 
   10988 
   10989 
   10990 
   10991 
   10992 
   10993 
   10994 
   10995 
   10996 
   10997 
   10998 
   10999 
   11000 
   11001 
   11002 
   11003 
   11004 
   11005 
   11006 
   11007 
   11008 
   11009 
   11010 
   11011 
   11012 
   11013 
   11014 
   11015 
   11016 
   11017 
   11018 
   11019 
   11020 
   11021 
   11022 
   11023 
   11024 
   11025 
   11026 
   11027 
   11028 
   11029 
   11030 
   11031 
   11032 
   11033 
   11034 
   11035 
   11036 
   11037 
   11038 
   11039 
   11040 
   11041 
   11042 
   11043 
   11044 
   11045 
   11046 
   11047 
   11048 
   11049 
   11050 
   11051 
   11052 
   11053 
   11054 
   11055 
   11056 
   11057 
   11058 
   11059 
   11060 
   11061 
   11062 
   11063 
   11064 
   11065 
   11066 
   11067 
   11068 
   11069 
   11070 
   11071 
   11072 
   11073 
   11074 
   11075 
   11076 
   11077 
   11078 
   11079 
   11080 
   11081 
   11082 
   11083 
   11084 
   11085 
   11086 
   11087 
   11088 
   11089 
   11090 
   11091 
   11092 
   11093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   11094 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   11095 
   11096 if test yes = "$GCC"; then
   11097   case $host_os in
   11098     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   11099     *) lt_awk_arg='/^libraries:/' ;;
   11100   esac
   11101   case $host_os in
   11102     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   11103     *) lt_sed_strip_eq='s|=/|/|g' ;;
   11104   esac
   11105   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   11106   case $lt_search_path_spec in
   11107   *\;*)
   11108     # if the path contains ";" then we assume it to be the separator
   11109     # otherwise default to the standard path separator (i.e. ":") - it is
   11110     # assumed that no part of a normal pathname contains ";" but that should
   11111     # okay in the real world where ";" in dirpaths is itself problematic.
   11112     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   11113     ;;
   11114   *)
   11115     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   11116     ;;
   11117   esac
   11118   # Ok, now we have the path, separated by spaces, we can step through it
   11119   # and add multilib dir if necessary...
   11120   lt_tmp_lt_search_path_spec=
   11121   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   11122   # ...but if some path component already ends with the multilib dir we assume
   11123   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   11124   case "$lt_multi_os_dir; $lt_search_path_spec " in
   11125   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   11126     lt_multi_os_dir=
   11127     ;;
   11128   esac
   11129   for lt_sys_path in $lt_search_path_spec; do
   11130     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   11131       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   11132     elif test -n "$lt_multi_os_dir"; then
   11133       test -d "$lt_sys_path" && \
   11134 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   11135     fi
   11136   done
   11137   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   11138 BEGIN {RS = " "; FS = "/|\n";} {
   11139   lt_foo = "";
   11140   lt_count = 0;
   11141   for (lt_i = NF; lt_i > 0; lt_i--) {
   11142     if ($lt_i != "" && $lt_i != ".") {
   11143       if ($lt_i == "..") {
   11144         lt_count++;
   11145       } else {
   11146         if (lt_count == 0) {
   11147           lt_foo = "/" $lt_i lt_foo;
   11148         } else {
   11149           lt_count--;
   11150         }
   11151       }
   11152     }
   11153   }
   11154   if (lt_foo != "") { lt_freq[lt_foo]++; }
   11155   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   11156 }'`
   11157   # AWK program above erroneously prepends '/' to C:/dos/paths
   11158   # for these hosts.
   11159   case $host_os in
   11160     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   11161       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   11162   esac
   11163   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   11164 else
   11165   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11166 fi
   11167 library_names_spec=
   11168 libname_spec='lib$name'
   11169 soname_spec=
   11170 shrext_cmds=.so
   11171 postinstall_cmds=
   11172 postuninstall_cmds=
   11173 finish_cmds=
   11174 finish_eval=
   11175 shlibpath_var=
   11176 shlibpath_overrides_runpath=unknown
   11177 version_type=none
   11178 dynamic_linker="$host_os ld.so"
   11179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   11180 need_lib_prefix=unknown
   11181 hardcode_into_libs=no
   11182 
   11183 # when you set need_version to no, make sure it does not cause -set_version
   11184 # flags to be left without arguments
   11185 need_version=unknown
   11186 
   11187 
   11188 
   11189 case $host_os in
   11190 aix3*)
   11191   version_type=linux # correct to gnu/linux during the next big refactor
   11192   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   11193   shlibpath_var=LIBPATH
   11194 
   11195   # AIX 3 has no versioning support, so we append a major version to the name.
   11196   soname_spec='$libname$release$shared_ext$major'
   11197   ;;
   11198 
   11199 aix[4-9]*)
   11200   version_type=linux # correct to gnu/linux during the next big refactor
   11201   need_lib_prefix=no
   11202   need_version=no
   11203   hardcode_into_libs=yes
   11204   if test ia64 = "$host_cpu"; then
   11205     # AIX 5 supports IA64
   11206     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   11207     shlibpath_var=LD_LIBRARY_PATH
   11208   else
   11209     # With GCC up to 2.95.x, collect2 would create an import file
   11210     # for dependence libraries.  The import file would start with
   11211     # the line '#! .'.  This would cause the generated library to
   11212     # depend on '.', always an invalid library.  This was fixed in
   11213     # development snapshots of GCC prior to 3.0.
   11214     case $host_os in
   11215       aix4 | aix4.[01] | aix4.[01].*)
   11216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   11217 	   echo ' yes '
   11218 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   11219 	:
   11220       else
   11221 	can_build_shared=no
   11222       fi
   11223       ;;
   11224     esac
   11225     # Using Import Files as archive members, it is possible to support
   11226     # filename-based versioning of shared library archives on AIX. While
   11227     # this would work for both with and without runtime linking, it will
   11228     # prevent static linking of such archives. So we do filename-based
   11229     # shared library versioning with .so extension only, which is used
   11230     # when both runtime linking and shared linking is enabled.
   11231     # Unfortunately, runtime linking may impact performance, so we do
   11232     # not want this to be the default eventually. Also, we use the
   11233     # versioned .so libs for executables only if there is the -brtl
   11234     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   11235     # To allow for filename-based versioning support, we need to create
   11236     # libNAME.so.V as an archive file, containing:
   11237     # *) an Import File, referring to the versioned filename of the
   11238     #    archive as well as the shared archive member, telling the
   11239     #    bitwidth (32 or 64) of that shared object, and providing the
   11240     #    list of exported symbols of that shared object, eventually
   11241     #    decorated with the 'weak' keyword
   11242     # *) the shared object with the F_LOADONLY flag set, to really avoid
   11243     #    it being seen by the linker.
   11244     # At run time we better use the real file rather than another symlink,
   11245     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   11246 
   11247     case $with_aix_soname,$aix_use_runtimelinking in
   11248     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   11249     # soname into executable. Probably we can add versioning support to
   11250     # collect2, so additional links can be useful in future.
   11251     aix,yes) # traditional libtool
   11252       dynamic_linker='AIX unversionable lib.so'
   11253       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   11254       # instead of lib<name>.a to let people know that these are not
   11255       # typical AIX shared libraries.
   11256       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11257       ;;
   11258     aix,no) # traditional AIX only
   11259       dynamic_linker='AIX lib.a(lib.so.V)'
   11260       # We preserve .a as extension for shared libraries through AIX4.2
   11261       # and later when we are not doing run time linking.
   11262       library_names_spec='$libname$release.a $libname.a'
   11263       soname_spec='$libname$release$shared_ext$major'
   11264       ;;
   11265     svr4,*) # full svr4 only
   11266       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   11267       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   11268       # We do not specify a path in Import Files, so LIBPATH fires.
   11269       shlibpath_overrides_runpath=yes
   11270       ;;
   11271     *,yes) # both, prefer svr4
   11272       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   11273       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   11274       # unpreferred sharedlib libNAME.a needs extra handling
   11275       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"'
   11276       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"'
   11277       # We do not specify a path in Import Files, so LIBPATH fires.
   11278       shlibpath_overrides_runpath=yes
   11279       ;;
   11280     *,no) # both, prefer aix
   11281       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   11282       library_names_spec='$libname$release.a $libname.a'
   11283       soname_spec='$libname$release$shared_ext$major'
   11284       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   11285       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)'
   11286       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"'
   11287       ;;
   11288     esac
   11289     shlibpath_var=LIBPATH
   11290   fi
   11291   ;;
   11292 
   11293 amigaos*)
   11294   case $host_cpu in
   11295   powerpc)
   11296     # Since July 2007 AmigaOS4 officially supports .so libraries.
   11297     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   11298     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11299     ;;
   11300   m68k)
   11301     library_names_spec='$libname.ixlibrary $libname.a'
   11302     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   11303     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'
   11304     ;;
   11305   esac
   11306   ;;
   11307 
   11308 beos*)
   11309   library_names_spec='$libname$shared_ext'
   11310   dynamic_linker="$host_os ld.so"
   11311   shlibpath_var=LIBRARY_PATH
   11312   ;;
   11313 
   11314 bsdi[45]*)
   11315   version_type=linux # correct to gnu/linux during the next big refactor
   11316   need_version=no
   11317   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11318   soname_spec='$libname$release$shared_ext$major'
   11319   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   11320   shlibpath_var=LD_LIBRARY_PATH
   11321   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   11322   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   11323   # the default ld.so.conf also contains /usr/contrib/lib and
   11324   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   11325   # libtool to hard-code these into programs
   11326   ;;
   11327 
   11328 cygwin* | mingw* | pw32* | cegcc*)
   11329   version_type=windows
   11330   shrext_cmds=.dll
   11331   need_version=no
   11332   need_lib_prefix=no
   11333 
   11334   case $GCC,$cc_basename in
   11335   yes,*)
   11336     # gcc
   11337     library_names_spec='$libname.dll.a'
   11338     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11339     postinstall_cmds='base_file=`basename \$file`~
   11340       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   11341       dldir=$destdir/`dirname \$dlpath`~
   11342       test -d \$dldir || mkdir -p \$dldir~
   11343       $install_prog $dir/$dlname \$dldir/$dlname~
   11344       chmod a+x \$dldir/$dlname~
   11345       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11346         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11347       fi'
   11348     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11349       dlpath=$dir/\$dldll~
   11350        $RM \$dlpath'
   11351     shlibpath_overrides_runpath=yes
   11352 
   11353     case $host_os in
   11354     cygwin*)
   11355       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   11356       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11357 
   11358       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   11359       ;;
   11360     mingw* | cegcc*)
   11361       # MinGW DLLs use traditional 'lib' prefix
   11362       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11363       ;;
   11364     pw32*)
   11365       # pw32 DLLs use 'pw' prefix rather than 'lib'
   11366       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11367       ;;
   11368     esac
   11369     dynamic_linker='Win32 ld.exe'
   11370     ;;
   11371 
   11372   *,cl*)
   11373     # Native MSVC
   11374     libname_spec='$name'
   11375     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11376     library_names_spec='$libname.dll.lib'
   11377 
   11378     case $build_os in
   11379     mingw*)
   11380       sys_lib_search_path_spec=
   11381       lt_save_ifs=$IFS
   11382       IFS=';'
   11383       for lt_path in $LIB
   11384       do
   11385         IFS=$lt_save_ifs
   11386         # Let DOS variable expansion print the short 8.3 style file name.
   11387         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   11388         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   11389       done
   11390       IFS=$lt_save_ifs
   11391       # Convert to MSYS style.
   11392       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   11393       ;;
   11394     cygwin*)
   11395       # Convert to unix form, then to dos form, then back to unix form
   11396       # but this time dos style (no spaces!) so that the unix form looks
   11397       # like /cygdrive/c/PROGRA~1:/cygdr...
   11398       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   11399       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   11400       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   11401       ;;
   11402     *)
   11403       sys_lib_search_path_spec=$LIB
   11404       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   11405         # It is most probably a Windows format PATH.
   11406         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11407       else
   11408         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   11409       fi
   11410       # FIXME: find the short name or the path components, as spaces are
   11411       # common. (e.g. "Program Files" -> "PROGRA~1")
   11412       ;;
   11413     esac
   11414 
   11415     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11416     postinstall_cmds='base_file=`basename \$file`~
   11417       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   11418       dldir=$destdir/`dirname \$dlpath`~
   11419       test -d \$dldir || mkdir -p \$dldir~
   11420       $install_prog $dir/$dlname \$dldir/$dlname'
   11421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11422       dlpath=$dir/\$dldll~
   11423        $RM \$dlpath'
   11424     shlibpath_overrides_runpath=yes
   11425     dynamic_linker='Win32 link.exe'
   11426     ;;
   11427 
   11428   *)
   11429     # Assume MSVC wrapper
   11430     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   11431     dynamic_linker='Win32 ld.exe'
   11432     ;;
   11433   esac
   11434   # FIXME: first we should search . and the directory the executable is in
   11435   shlibpath_var=PATH
   11436   ;;
   11437 
   11438 darwin* | rhapsody*)
   11439   dynamic_linker="$host_os dyld"
   11440   version_type=darwin
   11441   need_lib_prefix=no
   11442   need_version=no
   11443   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   11444   soname_spec='$libname$release$major$shared_ext'
   11445   shlibpath_overrides_runpath=yes
   11446   shlibpath_var=DYLD_LIBRARY_PATH
   11447   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   11448 
   11449   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   11450   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   11451   ;;
   11452 
   11453 dgux*)
   11454   version_type=linux # correct to gnu/linux during the next big refactor
   11455   need_lib_prefix=no
   11456   need_version=no
   11457   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11458   soname_spec='$libname$release$shared_ext$major'
   11459   shlibpath_var=LD_LIBRARY_PATH
   11460   ;;
   11461 
   11462 freebsd* | dragonfly*)
   11463   # DragonFly does not have aout.  When/if they implement a new
   11464   # versioning mechanism, adjust this.
   11465   if test -x /usr/bin/objformat; then
   11466     objformat=`/usr/bin/objformat`
   11467   else
   11468     case $host_os in
   11469     freebsd[23].*) objformat=aout ;;
   11470     *) objformat=elf ;;
   11471     esac
   11472   fi
   11473   version_type=freebsd-$objformat
   11474   case $version_type in
   11475     freebsd-elf*)
   11476       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11477       soname_spec='$libname$release$shared_ext$major'
   11478       need_version=no
   11479       need_lib_prefix=no
   11480       ;;
   11481     freebsd-*)
   11482       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11483       need_version=yes
   11484       ;;
   11485   esac
   11486   shlibpath_var=LD_LIBRARY_PATH
   11487   case $host_os in
   11488   freebsd2.*)
   11489     shlibpath_overrides_runpath=yes
   11490     ;;
   11491   freebsd3.[01]* | freebsdelf3.[01]*)
   11492     shlibpath_overrides_runpath=yes
   11493     hardcode_into_libs=yes
   11494     ;;
   11495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   11496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   11497     shlibpath_overrides_runpath=no
   11498     hardcode_into_libs=yes
   11499     ;;
   11500   *) # from 4.6 on, and DragonFly
   11501     shlibpath_overrides_runpath=yes
   11502     hardcode_into_libs=yes
   11503     ;;
   11504   esac
   11505   ;;
   11506 
   11507 haiku*)
   11508   version_type=linux # correct to gnu/linux during the next big refactor
   11509   need_lib_prefix=no
   11510   need_version=no
   11511   dynamic_linker="$host_os runtime_loader"
   11512   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11513   soname_spec='$libname$release$shared_ext$major'
   11514   shlibpath_var=LIBRARY_PATH
   11515   shlibpath_overrides_runpath=no
   11516   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   11517   hardcode_into_libs=yes
   11518   ;;
   11519 
   11520 hpux9* | hpux10* | hpux11*)
   11521   # Give a soname corresponding to the major version so that dld.sl refuses to
   11522   # link against other versions.
   11523   version_type=sunos
   11524   need_lib_prefix=no
   11525   need_version=no
   11526   case $host_cpu in
   11527   ia64*)
   11528     shrext_cmds='.so'
   11529     hardcode_into_libs=yes
   11530     dynamic_linker="$host_os dld.so"
   11531     shlibpath_var=LD_LIBRARY_PATH
   11532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11533     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11534     soname_spec='$libname$release$shared_ext$major'
   11535     if test 32 = "$HPUX_IA64_MODE"; then
   11536       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   11537       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   11538     else
   11539       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   11540       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   11541     fi
   11542     ;;
   11543   hppa*64*)
   11544     shrext_cmds='.sl'
   11545     hardcode_into_libs=yes
   11546     dynamic_linker="$host_os dld.sl"
   11547     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   11548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11549     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11550     soname_spec='$libname$release$shared_ext$major'
   11551     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   11552     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11553     ;;
   11554   *)
   11555     shrext_cmds='.sl'
   11556     dynamic_linker="$host_os dld.sl"
   11557     shlibpath_var=SHLIB_PATH
   11558     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   11559     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11560     soname_spec='$libname$release$shared_ext$major'
   11561     ;;
   11562   esac
   11563   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   11564   postinstall_cmds='chmod 555 $lib'
   11565   # or fails outright, so override atomically:
   11566   install_override_mode=555
   11567   ;;
   11568 
   11569 interix[3-9]*)
   11570   version_type=linux # correct to gnu/linux during the next big refactor
   11571   need_lib_prefix=no
   11572   need_version=no
   11573   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11574   soname_spec='$libname$release$shared_ext$major'
   11575   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   11576   shlibpath_var=LD_LIBRARY_PATH
   11577   shlibpath_overrides_runpath=no
   11578   hardcode_into_libs=yes
   11579   ;;
   11580 
   11581 irix5* | irix6* | nonstopux*)
   11582   case $host_os in
   11583     nonstopux*) version_type=nonstopux ;;
   11584     *)
   11585 	if test yes = "$lt_cv_prog_gnu_ld"; then
   11586 		version_type=linux # correct to gnu/linux during the next big refactor
   11587 	else
   11588 		version_type=irix
   11589 	fi ;;
   11590   esac
   11591   need_lib_prefix=no
   11592   need_version=no
   11593   soname_spec='$libname$release$shared_ext$major'
   11594   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   11595   case $host_os in
   11596   irix5* | nonstopux*)
   11597     libsuff= shlibsuff=
   11598     ;;
   11599   *)
   11600     case $LD in # libtool.m4 will add one of these switches to LD
   11601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   11602       libsuff= shlibsuff= libmagic=32-bit;;
   11603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   11604       libsuff=32 shlibsuff=N32 libmagic=N32;;
   11605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   11606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   11607     *) libsuff= shlibsuff= libmagic=never-match;;
   11608     esac
   11609     ;;
   11610   esac
   11611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   11612   shlibpath_overrides_runpath=no
   11613   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   11614   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   11615   hardcode_into_libs=yes
   11616   ;;
   11617 
   11618 # No shared lib support for Linux oldld, aout, or coff.
   11619 linux*oldld* | linux*aout* | linux*coff*)
   11620   dynamic_linker=no
   11621   ;;
   11622 
   11623 linux*android*)
   11624   version_type=none # Android doesn't support versioned libraries.
   11625   need_lib_prefix=no
   11626   need_version=no
   11627   library_names_spec='$libname$release$shared_ext'
   11628   soname_spec='$libname$release$shared_ext'
   11629   finish_cmds=
   11630   shlibpath_var=LD_LIBRARY_PATH
   11631   shlibpath_overrides_runpath=yes
   11632 
   11633   # This implies no fast_install, which is unacceptable.
   11634   # Some rework will be needed to allow for fast_install
   11635   # before this can be enabled.
   11636   hardcode_into_libs=yes
   11637 
   11638   dynamic_linker='Android linker'
   11639   # Don't embed -rpath directories since the linker doesn't support them.
   11640   hardcode_libdir_flag_spec='-L$libdir'
   11641   ;;
   11642 
   11643 # This must be glibc/ELF.
   11644 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   11645   version_type=linux # correct to gnu/linux during the next big refactor
   11646   need_lib_prefix=no
   11647   need_version=no
   11648   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11649   soname_spec='$libname$release$shared_ext$major'
   11650   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   11651   shlibpath_var=LD_LIBRARY_PATH
   11652   shlibpath_overrides_runpath=no
   11653 
   11654   # Some binutils ld are patched to set DT_RUNPATH
   11655   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   11656   $as_echo_n "(cached) " >&6
   11657 else
   11658   lt_cv_shlibpath_overrides_runpath=no
   11659     save_LDFLAGS=$LDFLAGS
   11660     save_libdir=$libdir
   11661     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   11662 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   11663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11664 /* end confdefs.h.  */
   11665 
   11666 int
   11667 main ()
   11668 {
   11669 
   11670   ;
   11671   return 0;
   11672 }
   11673 _ACEOF
   11674 if ac_fn_c_try_link "$LINENO"; then :
   11675   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   11676   lt_cv_shlibpath_overrides_runpath=yes
   11677 fi
   11678 fi
   11679 rm -f core conftest.err conftest.$ac_objext \
   11680     conftest$ac_exeext conftest.$ac_ext
   11681     LDFLAGS=$save_LDFLAGS
   11682     libdir=$save_libdir
   11683 
   11684 fi
   11685 
   11686   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   11687 
   11688   # This implies no fast_install, which is unacceptable.
   11689   # Some rework will be needed to allow for fast_install
   11690   # before this can be enabled.
   11691   hardcode_into_libs=yes
   11692 
   11693   # Ideally, we could use ldconfig to report *all* directores which are
   11694   # searched for libraries, however this is still not possible.  Aside from not
   11695   # being certain /sbin/ldconfig is available, command
   11696   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   11697   # even though it is searched at run-time.  Try to do the best guess by
   11698   # appending ld.so.conf contents (and includes) to the search path.
   11699   if test -f /etc/ld.so.conf; then
   11700     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' ' '`
   11701     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   11702   fi
   11703 
   11704   # We used to test for /lib/ld.so.1 and disable shared libraries on
   11705   # powerpc, because MkLinux only supported shared libraries with the
   11706   # GNU dynamic linker.  Since this was broken with cross compilers,
   11707   # most powerpc-linux boxes support dynamic linking these days and
   11708   # people can always --disable-shared, the test was removed, and we
   11709   # assume the GNU/Linux dynamic linker is in use.
   11710   dynamic_linker='GNU/Linux ld.so'
   11711   ;;
   11712 
   11713 netbsd*)
   11714   version_type=sunos
   11715   need_lib_prefix=no
   11716   need_version=no
   11717   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11718     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11719     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11720     dynamic_linker='NetBSD (a.out) ld.so'
   11721   else
   11722     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11723     soname_spec='$libname$release$shared_ext$major'
   11724     dynamic_linker='NetBSD ld.elf_so'
   11725   fi
   11726   shlibpath_var=LD_LIBRARY_PATH
   11727   shlibpath_overrides_runpath=yes
   11728   hardcode_into_libs=yes
   11729   ;;
   11730 
   11731 newsos6)
   11732   version_type=linux # correct to gnu/linux during the next big refactor
   11733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11734   shlibpath_var=LD_LIBRARY_PATH
   11735   shlibpath_overrides_runpath=yes
   11736   ;;
   11737 
   11738 *nto* | *qnx*)
   11739   version_type=qnx
   11740   need_lib_prefix=no
   11741   need_version=no
   11742   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11743   soname_spec='$libname$release$shared_ext$major'
   11744   shlibpath_var=LD_LIBRARY_PATH
   11745   shlibpath_overrides_runpath=no
   11746   hardcode_into_libs=yes
   11747   dynamic_linker='ldqnx.so'
   11748   ;;
   11749 
   11750 openbsd* | bitrig*)
   11751   version_type=sunos
   11752   sys_lib_dlsearch_path_spec=/usr/lib
   11753   need_lib_prefix=no
   11754   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   11755     need_version=no
   11756   else
   11757     need_version=yes
   11758   fi
   11759   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11761   shlibpath_var=LD_LIBRARY_PATH
   11762   shlibpath_overrides_runpath=yes
   11763   ;;
   11764 
   11765 os2*)
   11766   libname_spec='$name'
   11767   version_type=windows
   11768   shrext_cmds=.dll
   11769   need_version=no
   11770   need_lib_prefix=no
   11771   # OS/2 can only load a DLL with a base name of 8 characters or less.
   11772   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   11773     v=$($ECHO $release$versuffix | tr -d .-);
   11774     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   11775     $ECHO $n$v`$shared_ext'
   11776   library_names_spec='${libname}_dll.$libext'
   11777   dynamic_linker='OS/2 ld.exe'
   11778   shlibpath_var=BEGINLIBPATH
   11779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11780   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11781   postinstall_cmds='base_file=`basename \$file`~
   11782     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11783     dldir=$destdir/`dirname \$dlpath`~
   11784     test -d \$dldir || mkdir -p \$dldir~
   11785     $install_prog $dir/$dlname \$dldir/$dlname~
   11786     chmod a+x \$dldir/$dlname~
   11787     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11788       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11789     fi'
   11790   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11791     dlpath=$dir/\$dldll~
   11792     $RM \$dlpath'
   11793   ;;
   11794 
   11795 osf3* | osf4* | osf5*)
   11796   version_type=osf
   11797   need_lib_prefix=no
   11798   need_version=no
   11799   soname_spec='$libname$release$shared_ext$major'
   11800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11801   shlibpath_var=LD_LIBRARY_PATH
   11802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11803   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11804   ;;
   11805 
   11806 rdos*)
   11807   dynamic_linker=no
   11808   ;;
   11809 
   11810 solaris*)
   11811   version_type=linux # correct to gnu/linux during the next big refactor
   11812   need_lib_prefix=no
   11813   need_version=no
   11814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11815   soname_spec='$libname$release$shared_ext$major'
   11816   shlibpath_var=LD_LIBRARY_PATH
   11817   shlibpath_overrides_runpath=yes
   11818   hardcode_into_libs=yes
   11819   # ldd complains unless libraries are executable
   11820   postinstall_cmds='chmod +x $lib'
   11821   ;;
   11822 
   11823 sunos4*)
   11824   version_type=sunos
   11825   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11827   shlibpath_var=LD_LIBRARY_PATH
   11828   shlibpath_overrides_runpath=yes
   11829   if test yes = "$with_gnu_ld"; then
   11830     need_lib_prefix=no
   11831   fi
   11832   need_version=yes
   11833   ;;
   11834 
   11835 sysv4 | sysv4.3*)
   11836   version_type=linux # correct to gnu/linux during the next big refactor
   11837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11838   soname_spec='$libname$release$shared_ext$major'
   11839   shlibpath_var=LD_LIBRARY_PATH
   11840   case $host_vendor in
   11841     sni)
   11842       shlibpath_overrides_runpath=no
   11843       need_lib_prefix=no
   11844       runpath_var=LD_RUN_PATH
   11845       ;;
   11846     siemens)
   11847       need_lib_prefix=no
   11848       ;;
   11849     motorola)
   11850       need_lib_prefix=no
   11851       need_version=no
   11852       shlibpath_overrides_runpath=no
   11853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11854       ;;
   11855   esac
   11856   ;;
   11857 
   11858 sysv4*MP*)
   11859   if test -d /usr/nec; then
   11860     version_type=linux # correct to gnu/linux during the next big refactor
   11861     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11862     soname_spec='$libname$shared_ext.$major'
   11863     shlibpath_var=LD_LIBRARY_PATH
   11864   fi
   11865   ;;
   11866 
   11867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11868   version_type=sco
   11869   need_lib_prefix=no
   11870   need_version=no
   11871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11872   soname_spec='$libname$release$shared_ext$major'
   11873   shlibpath_var=LD_LIBRARY_PATH
   11874   shlibpath_overrides_runpath=yes
   11875   hardcode_into_libs=yes
   11876   if test yes = "$with_gnu_ld"; then
   11877     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11878   else
   11879     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11880     case $host_os in
   11881       sco3.2v5*)
   11882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11883 	;;
   11884     esac
   11885   fi
   11886   sys_lib_dlsearch_path_spec='/usr/lib'
   11887   ;;
   11888 
   11889 tpf*)
   11890   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11891   version_type=linux # correct to gnu/linux during the next big refactor
   11892   need_lib_prefix=no
   11893   need_version=no
   11894   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11895   shlibpath_var=LD_LIBRARY_PATH
   11896   shlibpath_overrides_runpath=no
   11897   hardcode_into_libs=yes
   11898   ;;
   11899 
   11900 uts4*)
   11901   version_type=linux # correct to gnu/linux during the next big refactor
   11902   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11903   soname_spec='$libname$release$shared_ext$major'
   11904   shlibpath_var=LD_LIBRARY_PATH
   11905   ;;
   11906 
   11907 *)
   11908   dynamic_linker=no
   11909   ;;
   11910 esac
   11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11912 $as_echo "$dynamic_linker" >&6; }
   11913 test no = "$dynamic_linker" && can_build_shared=no
   11914 
   11915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11916 if test yes = "$GCC"; then
   11917   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11918 fi
   11919 
   11920 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11921   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11922 fi
   11923 
   11924 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11925   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   11926 fi
   11927 
   11928 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   11929 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   11930 
   11931 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   11932 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   11933 
   11934 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   11935 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   11936 
   11937 
   11938 
   11939 
   11940 
   11941 
   11942 
   11943 
   11944 
   11945 
   11946 
   11947 
   11948 
   11949 
   11950 
   11951 
   11952 
   11953 
   11954 
   11955 
   11956 
   11957 
   11958 
   11959 
   11960 
   11961 
   11962 
   11963 
   11964 
   11965 
   11966 
   11967 
   11968 
   11969 
   11970 
   11971 
   11972 
   11973 
   11974 
   11975 
   11976 
   11977 
   11978 
   11979 
   11980 
   11981 
   11982 
   11983 
   11984 
   11985 
   11986 
   11987 
   11988 
   11989 
   11990 
   11991 
   11992 
   11993 
   11994 
   11995 
   11996 
   11997 
   11998 
   11999 
   12000 
   12001 
   12002 
   12003 
   12004 
   12005 
   12006 
   12007 
   12008 
   12009 
   12010 
   12011 
   12012 
   12013 
   12014 
   12015 
   12016 
   12017 
   12018 
   12019 
   12020 
   12021 
   12022 
   12023 
   12024 
   12025 
   12026 
   12027 
   12028 
   12029 
   12030 
   12031 
   12032 
   12033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   12034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   12035 hardcode_action=
   12036 if test -n "$hardcode_libdir_flag_spec" ||
   12037    test -n "$runpath_var" ||
   12038    test yes = "$hardcode_automatic"; then
   12039 
   12040   # We can hardcode non-existent directories.
   12041   if test no != "$hardcode_direct" &&
   12042      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   12043      # have to relink, otherwise we might link with an installed library
   12044      # when we should be linking with a yet-to-be-installed one
   12045      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   12046      test no != "$hardcode_minus_L"; then
   12047     # Linking always hardcodes the temporary library directory.
   12048     hardcode_action=relink
   12049   else
   12050     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   12051     hardcode_action=immediate
   12052   fi
   12053 else
   12054   # We cannot hardcode anything, or else we can only hardcode existing
   12055   # directories.
   12056   hardcode_action=unsupported
   12057 fi
   12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   12059 $as_echo "$hardcode_action" >&6; }
   12060 
   12061 if test relink = "$hardcode_action" ||
   12062    test yes = "$inherit_rpath"; then
   12063   # Fast installation is not supported
   12064   enable_fast_install=no
   12065 elif test yes = "$shlibpath_overrides_runpath" ||
   12066      test no = "$enable_shared"; then
   12067   # Fast installation is not necessary
   12068   enable_fast_install=needless
   12069 fi
   12070 
   12071 
   12072 
   12073 
   12074 
   12075 
   12076   if test yes != "$enable_dlopen"; then
   12077   enable_dlopen=unknown
   12078   enable_dlopen_self=unknown
   12079   enable_dlopen_self_static=unknown
   12080 else
   12081   lt_cv_dlopen=no
   12082   lt_cv_dlopen_libs=
   12083 
   12084   case $host_os in
   12085   beos*)
   12086     lt_cv_dlopen=load_add_on
   12087     lt_cv_dlopen_libs=
   12088     lt_cv_dlopen_self=yes
   12089     ;;
   12090 
   12091   mingw* | pw32* | cegcc*)
   12092     lt_cv_dlopen=LoadLibrary
   12093     lt_cv_dlopen_libs=
   12094     ;;
   12095 
   12096   cygwin*)
   12097     lt_cv_dlopen=dlopen
   12098     lt_cv_dlopen_libs=
   12099     ;;
   12100 
   12101   darwin*)
   12102     # if libdl is installed we need to link against it
   12103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   12104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   12105 if ${ac_cv_lib_dl_dlopen+:} false; then :
   12106   $as_echo_n "(cached) " >&6
   12107 else
   12108   ac_check_lib_save_LIBS=$LIBS
   12109 LIBS="-ldl  $LIBS"
   12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12111 /* end confdefs.h.  */
   12112 
   12113 /* Override any GCC internal prototype to avoid an error.
   12114    Use char because int might match the return type of a GCC
   12115    builtin and then its argument prototype would still apply.  */
   12116 #ifdef __cplusplus
   12117 extern "C"
   12118 #endif
   12119 char dlopen ();
   12120 int
   12121 main ()
   12122 {
   12123 return dlopen ();
   12124   ;
   12125   return 0;
   12126 }
   12127 _ACEOF
   12128 if ac_fn_c_try_link "$LINENO"; then :
   12129   ac_cv_lib_dl_dlopen=yes
   12130 else
   12131   ac_cv_lib_dl_dlopen=no
   12132 fi
   12133 rm -f core conftest.err conftest.$ac_objext \
   12134     conftest$ac_exeext conftest.$ac_ext
   12135 LIBS=$ac_check_lib_save_LIBS
   12136 fi
   12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   12138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   12139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   12140   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   12141 else
   12142 
   12143     lt_cv_dlopen=dyld
   12144     lt_cv_dlopen_libs=
   12145     lt_cv_dlopen_self=yes
   12146 
   12147 fi
   12148 
   12149     ;;
   12150 
   12151   tpf*)
   12152     # Don't try to run any link tests for TPF.  We know it's impossible
   12153     # because TPF is a cross-compiler, and we know how we open DSOs.
   12154     lt_cv_dlopen=dlopen
   12155     lt_cv_dlopen_libs=
   12156     lt_cv_dlopen_self=no
   12157     ;;
   12158 
   12159   *)
   12160     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   12161 if test "x$ac_cv_func_shl_load" = xyes; then :
   12162   lt_cv_dlopen=shl_load
   12163 else
   12164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   12166 if ${ac_cv_lib_dld_shl_load+:} false; then :
   12167   $as_echo_n "(cached) " >&6
   12168 else
   12169   ac_check_lib_save_LIBS=$LIBS
   12170 LIBS="-ldld  $LIBS"
   12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12172 /* end confdefs.h.  */
   12173 
   12174 /* Override any GCC internal prototype to avoid an error.
   12175    Use char because int might match the return type of a GCC
   12176    builtin and then its argument prototype would still apply.  */
   12177 #ifdef __cplusplus
   12178 extern "C"
   12179 #endif
   12180 char shl_load ();
   12181 int
   12182 main ()
   12183 {
   12184 return shl_load ();
   12185   ;
   12186   return 0;
   12187 }
   12188 _ACEOF
   12189 if ac_fn_c_try_link "$LINENO"; then :
   12190   ac_cv_lib_dld_shl_load=yes
   12191 else
   12192   ac_cv_lib_dld_shl_load=no
   12193 fi
   12194 rm -f core conftest.err conftest.$ac_objext \
   12195     conftest$ac_exeext conftest.$ac_ext
   12196 LIBS=$ac_check_lib_save_LIBS
   12197 fi
   12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   12200 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   12201   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   12202 else
   12203   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   12204 if test "x$ac_cv_func_dlopen" = xyes; then :
   12205   lt_cv_dlopen=dlopen
   12206 else
   12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   12209 if ${ac_cv_lib_dl_dlopen+:} false; then :
   12210   $as_echo_n "(cached) " >&6
   12211 else
   12212   ac_check_lib_save_LIBS=$LIBS
   12213 LIBS="-ldl  $LIBS"
   12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12215 /* end confdefs.h.  */
   12216 
   12217 /* Override any GCC internal prototype to avoid an error.
   12218    Use char because int might match the return type of a GCC
   12219    builtin and then its argument prototype would still apply.  */
   12220 #ifdef __cplusplus
   12221 extern "C"
   12222 #endif
   12223 char dlopen ();
   12224 int
   12225 main ()
   12226 {
   12227 return dlopen ();
   12228   ;
   12229   return 0;
   12230 }
   12231 _ACEOF
   12232 if ac_fn_c_try_link "$LINENO"; then :
   12233   ac_cv_lib_dl_dlopen=yes
   12234 else
   12235   ac_cv_lib_dl_dlopen=no
   12236 fi
   12237 rm -f core conftest.err conftest.$ac_objext \
   12238     conftest$ac_exeext conftest.$ac_ext
   12239 LIBS=$ac_check_lib_save_LIBS
   12240 fi
   12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   12243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   12244   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   12245 else
   12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   12248 if ${ac_cv_lib_svld_dlopen+:} false; then :
   12249   $as_echo_n "(cached) " >&6
   12250 else
   12251   ac_check_lib_save_LIBS=$LIBS
   12252 LIBS="-lsvld  $LIBS"
   12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12254 /* end confdefs.h.  */
   12255 
   12256 /* Override any GCC internal prototype to avoid an error.
   12257    Use char because int might match the return type of a GCC
   12258    builtin and then its argument prototype would still apply.  */
   12259 #ifdef __cplusplus
   12260 extern "C"
   12261 #endif
   12262 char dlopen ();
   12263 int
   12264 main ()
   12265 {
   12266 return dlopen ();
   12267   ;
   12268   return 0;
   12269 }
   12270 _ACEOF
   12271 if ac_fn_c_try_link "$LINENO"; then :
   12272   ac_cv_lib_svld_dlopen=yes
   12273 else
   12274   ac_cv_lib_svld_dlopen=no
   12275 fi
   12276 rm -f core conftest.err conftest.$ac_objext \
   12277     conftest$ac_exeext conftest.$ac_ext
   12278 LIBS=$ac_check_lib_save_LIBS
   12279 fi
   12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   12282 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   12283   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   12284 else
   12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   12287 if ${ac_cv_lib_dld_dld_link+:} false; then :
   12288   $as_echo_n "(cached) " >&6
   12289 else
   12290   ac_check_lib_save_LIBS=$LIBS
   12291 LIBS="-ldld  $LIBS"
   12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12293 /* end confdefs.h.  */
   12294 
   12295 /* Override any GCC internal prototype to avoid an error.
   12296    Use char because int might match the return type of a GCC
   12297    builtin and then its argument prototype would still apply.  */
   12298 #ifdef __cplusplus
   12299 extern "C"
   12300 #endif
   12301 char dld_link ();
   12302 int
   12303 main ()
   12304 {
   12305 return dld_link ();
   12306   ;
   12307   return 0;
   12308 }
   12309 _ACEOF
   12310 if ac_fn_c_try_link "$LINENO"; then :
   12311   ac_cv_lib_dld_dld_link=yes
   12312 else
   12313   ac_cv_lib_dld_dld_link=no
   12314 fi
   12315 rm -f core conftest.err conftest.$ac_objext \
   12316     conftest$ac_exeext conftest.$ac_ext
   12317 LIBS=$ac_check_lib_save_LIBS
   12318 fi
   12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   12321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   12322   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   12323 fi
   12324 
   12325 
   12326 fi
   12327 
   12328 
   12329 fi
   12330 
   12331 
   12332 fi
   12333 
   12334 
   12335 fi
   12336 
   12337 
   12338 fi
   12339 
   12340     ;;
   12341   esac
   12342 
   12343   if test no = "$lt_cv_dlopen"; then
   12344     enable_dlopen=no
   12345   else
   12346     enable_dlopen=yes
   12347   fi
   12348 
   12349   case $lt_cv_dlopen in
   12350   dlopen)
   12351     save_CPPFLAGS=$CPPFLAGS
   12352     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   12353 
   12354     save_LDFLAGS=$LDFLAGS
   12355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   12356 
   12357     save_LIBS=$LIBS
   12358     LIBS="$lt_cv_dlopen_libs $LIBS"
   12359 
   12360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   12362 if ${lt_cv_dlopen_self+:} false; then :
   12363   $as_echo_n "(cached) " >&6
   12364 else
   12365   	  if test yes = "$cross_compiling"; then :
   12366   lt_cv_dlopen_self=cross
   12367 else
   12368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12369   lt_status=$lt_dlunknown
   12370   cat > conftest.$ac_ext <<_LT_EOF
   12371 #line $LINENO "configure"
   12372 #include "confdefs.h"
   12373 
   12374 #if HAVE_DLFCN_H
   12375 #include <dlfcn.h>
   12376 #endif
   12377 
   12378 #include <stdio.h>
   12379 
   12380 #ifdef RTLD_GLOBAL
   12381 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12382 #else
   12383 #  ifdef DL_GLOBAL
   12384 #    define LT_DLGLOBAL		DL_GLOBAL
   12385 #  else
   12386 #    define LT_DLGLOBAL		0
   12387 #  endif
   12388 #endif
   12389 
   12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12391    find out it does not work in some platform. */
   12392 #ifndef LT_DLLAZY_OR_NOW
   12393 #  ifdef RTLD_LAZY
   12394 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12395 #  else
   12396 #    ifdef DL_LAZY
   12397 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12398 #    else
   12399 #      ifdef RTLD_NOW
   12400 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12401 #      else
   12402 #        ifdef DL_NOW
   12403 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12404 #        else
   12405 #          define LT_DLLAZY_OR_NOW	0
   12406 #        endif
   12407 #      endif
   12408 #    endif
   12409 #  endif
   12410 #endif
   12411 
   12412 /* When -fvisibility=hidden is used, assume the code has been annotated
   12413    correspondingly for the symbols needed.  */
   12414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   12415 int fnord () __attribute__((visibility("default")));
   12416 #endif
   12417 
   12418 int fnord () { return 42; }
   12419 int main ()
   12420 {
   12421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12422   int status = $lt_dlunknown;
   12423 
   12424   if (self)
   12425     {
   12426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12427       else
   12428         {
   12429 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   12430           else puts (dlerror ());
   12431 	}
   12432       /* dlclose (self); */
   12433     }
   12434   else
   12435     puts (dlerror ());
   12436 
   12437   return status;
   12438 }
   12439 _LT_EOF
   12440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   12441   (eval $ac_link) 2>&5
   12442   ac_status=$?
   12443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12444   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   12445     (./conftest; exit; ) >&5 2>/dev/null
   12446     lt_status=$?
   12447     case x$lt_status in
   12448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   12449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   12450       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   12451     esac
   12452   else :
   12453     # compilation failed
   12454     lt_cv_dlopen_self=no
   12455   fi
   12456 fi
   12457 rm -fr conftest*
   12458 
   12459 
   12460 fi
   12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   12462 $as_echo "$lt_cv_dlopen_self" >&6; }
   12463 
   12464     if test yes = "$lt_cv_dlopen_self"; then
   12465       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   12466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   12467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   12468 if ${lt_cv_dlopen_self_static+:} false; then :
   12469   $as_echo_n "(cached) " >&6
   12470 else
   12471   	  if test yes = "$cross_compiling"; then :
   12472   lt_cv_dlopen_self_static=cross
   12473 else
   12474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12475   lt_status=$lt_dlunknown
   12476   cat > conftest.$ac_ext <<_LT_EOF
   12477 #line $LINENO "configure"
   12478 #include "confdefs.h"
   12479 
   12480 #if HAVE_DLFCN_H
   12481 #include <dlfcn.h>
   12482 #endif
   12483 
   12484 #include <stdio.h>
   12485 
   12486 #ifdef RTLD_GLOBAL
   12487 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12488 #else
   12489 #  ifdef DL_GLOBAL
   12490 #    define LT_DLGLOBAL		DL_GLOBAL
   12491 #  else
   12492 #    define LT_DLGLOBAL		0
   12493 #  endif
   12494 #endif
   12495 
   12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12497    find out it does not work in some platform. */
   12498 #ifndef LT_DLLAZY_OR_NOW
   12499 #  ifdef RTLD_LAZY
   12500 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12501 #  else
   12502 #    ifdef DL_LAZY
   12503 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12504 #    else
   12505 #      ifdef RTLD_NOW
   12506 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12507 #      else
   12508 #        ifdef DL_NOW
   12509 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12510 #        else
   12511 #          define LT_DLLAZY_OR_NOW	0
   12512 #        endif
   12513 #      endif
   12514 #    endif
   12515 #  endif
   12516 #endif
   12517 
   12518 /* When -fvisibility=hidden is used, assume the code has been annotated
   12519    correspondingly for the symbols needed.  */
   12520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   12521 int fnord () __attribute__((visibility("default")));
   12522 #endif
   12523 
   12524 int fnord () { return 42; }
   12525 int main ()
   12526 {
   12527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12528   int status = $lt_dlunknown;
   12529 
   12530   if (self)
   12531     {
   12532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12533       else
   12534         {
   12535 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   12536           else puts (dlerror ());
   12537 	}
   12538       /* dlclose (self); */
   12539     }
   12540   else
   12541     puts (dlerror ());
   12542 
   12543   return status;
   12544 }
   12545 _LT_EOF
   12546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   12547   (eval $ac_link) 2>&5
   12548   ac_status=$?
   12549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12550   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   12551     (./conftest; exit; ) >&5 2>/dev/null
   12552     lt_status=$?
   12553     case x$lt_status in
   12554       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   12555       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   12556       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   12557     esac
   12558   else :
   12559     # compilation failed
   12560     lt_cv_dlopen_self_static=no
   12561   fi
   12562 fi
   12563 rm -fr conftest*
   12564 
   12565 
   12566 fi
   12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   12568 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   12569     fi
   12570 
   12571     CPPFLAGS=$save_CPPFLAGS
   12572     LDFLAGS=$save_LDFLAGS
   12573     LIBS=$save_LIBS
   12574     ;;
   12575   esac
   12576 
   12577   case $lt_cv_dlopen_self in
   12578   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   12579   *) enable_dlopen_self=unknown ;;
   12580   esac
   12581 
   12582   case $lt_cv_dlopen_self_static in
   12583   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   12584   *) enable_dlopen_self_static=unknown ;;
   12585   esac
   12586 fi
   12587 
   12588 
   12589 
   12590 
   12591 
   12592 
   12593 
   12594 
   12595 
   12596 
   12597 
   12598 
   12599 
   12600 
   12601 
   12602 
   12603 
   12604 striplib=
   12605 old_striplib=
   12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   12607 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   12608 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   12609   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   12610   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12612 $as_echo "yes" >&6; }
   12613 else
   12614 # FIXME - insert some real tests, host_os isn't really good enough
   12615   case $host_os in
   12616   darwin*)
   12617     if test -n "$STRIP"; then
   12618       striplib="$STRIP -x"
   12619       old_striplib="$STRIP -S"
   12620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12621 $as_echo "yes" >&6; }
   12622     else
   12623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12624 $as_echo "no" >&6; }
   12625     fi
   12626     ;;
   12627   *)
   12628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12629 $as_echo "no" >&6; }
   12630     ;;
   12631   esac
   12632 fi
   12633 
   12634 
   12635 
   12636 
   12637 
   12638 
   12639 
   12640 
   12641 
   12642 
   12643 
   12644 
   12645   # Report what library types will actually be built
   12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   12647 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   12649 $as_echo "$can_build_shared" >&6; }
   12650 
   12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   12652 $as_echo_n "checking whether to build shared libraries... " >&6; }
   12653   test no = "$can_build_shared" && enable_shared=no
   12654 
   12655   # On AIX, shared libraries and static libraries use the same namespace, and
   12656   # are all built from PIC.
   12657   case $host_os in
   12658   aix3*)
   12659     test yes = "$enable_shared" && enable_static=no
   12660     if test -n "$RANLIB"; then
   12661       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   12662       postinstall_cmds='$RANLIB $lib'
   12663     fi
   12664     ;;
   12665 
   12666   aix[4-9]*)
   12667     if test ia64 != "$host_cpu"; then
   12668       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   12669       yes,aix,yes) ;;			# shared object as lib.so file only
   12670       yes,svr4,*) ;;			# shared object as lib.so archive member only
   12671       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   12672       esac
   12673     fi
   12674     ;;
   12675   esac
   12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   12677 $as_echo "$enable_shared" >&6; }
   12678 
   12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   12680 $as_echo_n "checking whether to build static libraries... " >&6; }
   12681   # Make sure either enable_shared or enable_static is yes.
   12682   test yes = "$enable_shared" || enable_static=yes
   12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   12684 $as_echo "$enable_static" >&6; }
   12685 
   12686 
   12687 
   12688 
   12689 fi
   12690 ac_ext=c
   12691 ac_cpp='$CPP $CPPFLAGS'
   12692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12695 
   12696 CC=$lt_save_CC
   12697 
   12698 
   12699 
   12700 
   12701 
   12702 
   12703 
   12704 
   12705 
   12706 
   12707 
   12708 
   12709 
   12710 
   12711 
   12712         ac_config_commands="$ac_config_commands libtool"
   12713 
   12714 
   12715 
   12716 
   12717 # Only expand once:
   12718 
   12719 
   12720 
   12721 
   12722 
   12723  if test "$enable_samples" = "yes"; then
   12724   BUILD_SAMPLES_TRUE=
   12725   BUILD_SAMPLES_FALSE='#'
   12726 else
   12727   BUILD_SAMPLES_TRUE='#'
   12728   BUILD_SAMPLES_FALSE=
   12729 fi
   12730 
   12731  if test "$enable_libevent_regress" = "yes"; then
   12732   BUILD_REGRESS_TRUE=
   12733   BUILD_REGRESS_FALSE='#'
   12734 else
   12735   BUILD_REGRESS_TRUE='#'
   12736   BUILD_REGRESS_FALSE=
   12737 fi
   12738 
   12739 
   12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
   12741 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
   12742 if ${ac_cv_search_inet_ntoa+:} false; then :
   12743   $as_echo_n "(cached) " >&6
   12744 else
   12745   ac_func_search_save_LIBS=$LIBS
   12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12747 /* end confdefs.h.  */
   12748 
   12749 /* Override any GCC internal prototype to avoid an error.
   12750    Use char because int might match the return type of a GCC
   12751    builtin and then its argument prototype would still apply.  */
   12752 #ifdef __cplusplus
   12753 extern "C"
   12754 #endif
   12755 char inet_ntoa ();
   12756 int
   12757 main ()
   12758 {
   12759 return inet_ntoa ();
   12760   ;
   12761   return 0;
   12762 }
   12763 _ACEOF
   12764 for ac_lib in '' nsl; do
   12765   if test -z "$ac_lib"; then
   12766     ac_res="none required"
   12767   else
   12768     ac_res=-l$ac_lib
   12769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12770   fi
   12771   if ac_fn_c_try_link "$LINENO"; then :
   12772   ac_cv_search_inet_ntoa=$ac_res
   12773 fi
   12774 rm -f core conftest.err conftest.$ac_objext \
   12775     conftest$ac_exeext
   12776   if ${ac_cv_search_inet_ntoa+:} false; then :
   12777   break
   12778 fi
   12779 done
   12780 if ${ac_cv_search_inet_ntoa+:} false; then :
   12781 
   12782 else
   12783   ac_cv_search_inet_ntoa=no
   12784 fi
   12785 rm conftest.$ac_ext
   12786 LIBS=$ac_func_search_save_LIBS
   12787 fi
   12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
   12789 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
   12790 ac_res=$ac_cv_search_inet_ntoa
   12791 if test "$ac_res" != no; then :
   12792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12793 
   12794 fi
   12795 
   12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
   12797 $as_echo_n "checking for library containing socket... " >&6; }
   12798 if ${ac_cv_search_socket+:} false; then :
   12799   $as_echo_n "(cached) " >&6
   12800 else
   12801   ac_func_search_save_LIBS=$LIBS
   12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12803 /* end confdefs.h.  */
   12804 
   12805 /* Override any GCC internal prototype to avoid an error.
   12806    Use char because int might match the return type of a GCC
   12807    builtin and then its argument prototype would still apply.  */
   12808 #ifdef __cplusplus
   12809 extern "C"
   12810 #endif
   12811 char socket ();
   12812 int
   12813 main ()
   12814 {
   12815 return socket ();
   12816   ;
   12817   return 0;
   12818 }
   12819 _ACEOF
   12820 for ac_lib in '' socket; do
   12821   if test -z "$ac_lib"; then
   12822     ac_res="none required"
   12823   else
   12824     ac_res=-l$ac_lib
   12825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12826   fi
   12827   if ac_fn_c_try_link "$LINENO"; then :
   12828   ac_cv_search_socket=$ac_res
   12829 fi
   12830 rm -f core conftest.err conftest.$ac_objext \
   12831     conftest$ac_exeext
   12832   if ${ac_cv_search_socket+:} false; then :
   12833   break
   12834 fi
   12835 done
   12836 if ${ac_cv_search_socket+:} false; then :
   12837 
   12838 else
   12839   ac_cv_search_socket=no
   12840 fi
   12841 rm conftest.$ac_ext
   12842 LIBS=$ac_func_search_save_LIBS
   12843 fi
   12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
   12845 $as_echo "$ac_cv_search_socket" >&6; }
   12846 ac_res=$ac_cv_search_socket
   12847 if test "$ac_res" != no; then :
   12848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12849 
   12850 fi
   12851 
   12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
   12853 $as_echo_n "checking for library containing inet_aton... " >&6; }
   12854 if ${ac_cv_search_inet_aton+:} false; then :
   12855   $as_echo_n "(cached) " >&6
   12856 else
   12857   ac_func_search_save_LIBS=$LIBS
   12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12859 /* end confdefs.h.  */
   12860 
   12861 /* Override any GCC internal prototype to avoid an error.
   12862    Use char because int might match the return type of a GCC
   12863    builtin and then its argument prototype would still apply.  */
   12864 #ifdef __cplusplus
   12865 extern "C"
   12866 #endif
   12867 char inet_aton ();
   12868 int
   12869 main ()
   12870 {
   12871 return inet_aton ();
   12872   ;
   12873   return 0;
   12874 }
   12875 _ACEOF
   12876 for ac_lib in '' resolv; do
   12877   if test -z "$ac_lib"; then
   12878     ac_res="none required"
   12879   else
   12880     ac_res=-l$ac_lib
   12881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12882   fi
   12883   if ac_fn_c_try_link "$LINENO"; then :
   12884   ac_cv_search_inet_aton=$ac_res
   12885 fi
   12886 rm -f core conftest.err conftest.$ac_objext \
   12887     conftest$ac_exeext
   12888   if ${ac_cv_search_inet_aton+:} false; then :
   12889   break
   12890 fi
   12891 done
   12892 if ${ac_cv_search_inet_aton+:} false; then :
   12893 
   12894 else
   12895   ac_cv_search_inet_aton=no
   12896 fi
   12897 rm conftest.$ac_ext
   12898 LIBS=$ac_func_search_save_LIBS
   12899 fi
   12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
   12901 $as_echo "$ac_cv_search_inet_aton" >&6; }
   12902 ac_res=$ac_cv_search_inet_aton
   12903 if test "$ac_res" != no; then :
   12904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12905 
   12906 fi
   12907 
   12908 if test "x$enable_clock_gettime" = "xyes"; then
   12909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   12910 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   12911 if ${ac_cv_search_clock_gettime+:} false; then :
   12912   $as_echo_n "(cached) " >&6
   12913 else
   12914   ac_func_search_save_LIBS=$LIBS
   12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12916 /* end confdefs.h.  */
   12917 
   12918 /* Override any GCC internal prototype to avoid an error.
   12919    Use char because int might match the return type of a GCC
   12920    builtin and then its argument prototype would still apply.  */
   12921 #ifdef __cplusplus
   12922 extern "C"
   12923 #endif
   12924 char clock_gettime ();
   12925 int
   12926 main ()
   12927 {
   12928 return clock_gettime ();
   12929   ;
   12930   return 0;
   12931 }
   12932 _ACEOF
   12933 for ac_lib in '' rt; do
   12934   if test -z "$ac_lib"; then
   12935     ac_res="none required"
   12936   else
   12937     ac_res=-l$ac_lib
   12938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12939   fi
   12940   if ac_fn_c_try_link "$LINENO"; then :
   12941   ac_cv_search_clock_gettime=$ac_res
   12942 fi
   12943 rm -f core conftest.err conftest.$ac_objext \
   12944     conftest$ac_exeext
   12945   if ${ac_cv_search_clock_gettime+:} false; then :
   12946   break
   12947 fi
   12948 done
   12949 if ${ac_cv_search_clock_gettime+:} false; then :
   12950 
   12951 else
   12952   ac_cv_search_clock_gettime=no
   12953 fi
   12954 rm conftest.$ac_ext
   12955 LIBS=$ac_func_search_save_LIBS
   12956 fi
   12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   12958 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   12959 ac_res=$ac_cv_search_clock_gettime
   12960 if test "$ac_res" != no; then :
   12961   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12962 
   12963 fi
   12964 
   12965   for ac_func in clock_gettime
   12966 do :
   12967   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   12968 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   12969   cat >>confdefs.h <<_ACEOF
   12970 #define HAVE_CLOCK_GETTIME 1
   12971 _ACEOF
   12972 
   12973 fi
   12974 done
   12975 
   12976 fi
   12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
   12978 $as_echo_n "checking for library containing sendfile... " >&6; }
   12979 if ${ac_cv_search_sendfile+:} false; then :
   12980   $as_echo_n "(cached) " >&6
   12981 else
   12982   ac_func_search_save_LIBS=$LIBS
   12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12984 /* end confdefs.h.  */
   12985 
   12986 /* Override any GCC internal prototype to avoid an error.
   12987    Use char because int might match the return type of a GCC
   12988    builtin and then its argument prototype would still apply.  */
   12989 #ifdef __cplusplus
   12990 extern "C"
   12991 #endif
   12992 char sendfile ();
   12993 int
   12994 main ()
   12995 {
   12996 return sendfile ();
   12997   ;
   12998   return 0;
   12999 }
   13000 _ACEOF
   13001 for ac_lib in '' sendfile; do
   13002   if test -z "$ac_lib"; then
   13003     ac_res="none required"
   13004   else
   13005     ac_res=-l$ac_lib
   13006     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13007   fi
   13008   if ac_fn_c_try_link "$LINENO"; then :
   13009   ac_cv_search_sendfile=$ac_res
   13010 fi
   13011 rm -f core conftest.err conftest.$ac_objext \
   13012     conftest$ac_exeext
   13013   if ${ac_cv_search_sendfile+:} false; then :
   13014   break
   13015 fi
   13016 done
   13017 if ${ac_cv_search_sendfile+:} false; then :
   13018 
   13019 else
   13020   ac_cv_search_sendfile=no
   13021 fi
   13022 rm conftest.$ac_ext
   13023 LIBS=$ac_func_search_save_LIBS
   13024 fi
   13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
   13026 $as_echo "$ac_cv_search_sendfile" >&6; }
   13027 ac_res=$ac_cv_search_sendfile
   13028 if test "$ac_res" != no; then :
   13029   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13030 
   13031 fi
   13032 
   13033 
   13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
   13035 $as_echo_n "checking for WIN32... " >&6; }
   13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13037 /* end confdefs.h.  */
   13038 
   13039 int
   13040 main ()
   13041 {
   13042 
   13043 #ifndef _WIN32
   13044 die horribly
   13045 #endif
   13046 
   13047   ;
   13048   return 0;
   13049 }
   13050 _ACEOF
   13051 if ac_fn_c_try_compile "$LINENO"; then :
   13052   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13053 $as_echo "yes" >&6; }
   13054 else
   13055   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13056 $as_echo "no" >&6; }
   13057 fi
   13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13059 
   13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
   13061 $as_echo_n "checking for CYGWIN... " >&6; }
   13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13063 /* end confdefs.h.  */
   13064 
   13065 int
   13066 main ()
   13067 {
   13068 
   13069 #ifndef __CYGWIN__
   13070 die horribly
   13071 #endif
   13072 
   13073   ;
   13074   return 0;
   13075 }
   13076 _ACEOF
   13077 if ac_fn_c_try_compile "$LINENO"; then :
   13078   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13079 $as_echo "yes" >&6; }
   13080 else
   13081   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13082 $as_echo "no" >&6; }
   13083 fi
   13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13085 
   13086 for ac_header in zlib.h
   13087 do :
   13088   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
   13089 if test "x$ac_cv_header_zlib_h" = xyes; then :
   13090   cat >>confdefs.h <<_ACEOF
   13091 #define HAVE_ZLIB_H 1
   13092 _ACEOF
   13093 
   13094 fi
   13095 
   13096 done
   13097 
   13098 
   13099 if test "x$ac_cv_header_zlib_h" = "xyes"; then
   13100 save_LIBS="$LIBS"
   13101 LIBS=""
   13102 ZLIB_LIBS=""
   13103 have_zlib=no
   13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
   13105 $as_echo_n "checking for library containing inflateEnd... " >&6; }
   13106 if ${ac_cv_search_inflateEnd+:} false; then :
   13107   $as_echo_n "(cached) " >&6
   13108 else
   13109   ac_func_search_save_LIBS=$LIBS
   13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13111 /* end confdefs.h.  */
   13112 
   13113 /* Override any GCC internal prototype to avoid an error.
   13114    Use char because int might match the return type of a GCC
   13115    builtin and then its argument prototype would still apply.  */
   13116 #ifdef __cplusplus
   13117 extern "C"
   13118 #endif
   13119 char inflateEnd ();
   13120 int
   13121 main ()
   13122 {
   13123 return inflateEnd ();
   13124   ;
   13125   return 0;
   13126 }
   13127 _ACEOF
   13128 for ac_lib in '' z; do
   13129   if test -z "$ac_lib"; then
   13130     ac_res="none required"
   13131   else
   13132     ac_res=-l$ac_lib
   13133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13134   fi
   13135   if ac_fn_c_try_link "$LINENO"; then :
   13136   ac_cv_search_inflateEnd=$ac_res
   13137 fi
   13138 rm -f core conftest.err conftest.$ac_objext \
   13139     conftest$ac_exeext
   13140   if ${ac_cv_search_inflateEnd+:} false; then :
   13141   break
   13142 fi
   13143 done
   13144 if ${ac_cv_search_inflateEnd+:} false; then :
   13145 
   13146 else
   13147   ac_cv_search_inflateEnd=no
   13148 fi
   13149 rm conftest.$ac_ext
   13150 LIBS=$ac_func_search_save_LIBS
   13151 fi
   13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
   13153 $as_echo "$ac_cv_search_inflateEnd" >&6; }
   13154 ac_res=$ac_cv_search_inflateEnd
   13155 if test "$ac_res" != no; then :
   13156   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13157   have_zlib=yes
   13158 	ZLIB_LIBS="$LIBS"
   13159 
   13160 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
   13161 
   13162 fi
   13163 
   13164 LIBS="$save_LIBS"
   13165 
   13166 fi
   13167  if test "$have_zlib" = "yes"; then
   13168   ZLIB_REGRESS_TRUE=
   13169   ZLIB_REGRESS_FALSE='#'
   13170 else
   13171   ZLIB_REGRESS_TRUE='#'
   13172   ZLIB_REGRESS_FALSE=
   13173 fi
   13174 
   13175 
   13176 if test "$bwin32" = true; then
   13177   EV_LIB_WS32=-lws2_32
   13178   EV_LIB_GDI=-lgdi32
   13179 else
   13180   EV_LIB_WS32=
   13181   EV_LIB_GDI=
   13182 fi
   13183 
   13184 
   13185 
   13186 
   13187 # Check whether --enable-largefile was given.
   13188 if test "${enable_largefile+set}" = set; then :
   13189   enableval=$enable_largefile;
   13190 fi
   13191 
   13192 if test "$enable_largefile" != no; then
   13193 
   13194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   13195 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   13196 if ${ac_cv_sys_largefile_CC+:} false; then :
   13197   $as_echo_n "(cached) " >&6
   13198 else
   13199   ac_cv_sys_largefile_CC=no
   13200      if test "$GCC" != yes; then
   13201        ac_save_CC=$CC
   13202        while :; do
   13203 	 # IRIX 6.2 and later do not support large files by default,
   13204 	 # so use the C compiler's -n32 option if that helps.
   13205 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13206 /* end confdefs.h.  */
   13207 #include <sys/types.h>
   13208  /* Check that off_t can represent 2**63 - 1 correctly.
   13209     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   13210     since some C++ compilers masquerading as C compilers
   13211     incorrectly reject 9223372036854775807.  */
   13212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   13213   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   13214 		       && LARGE_OFF_T % 2147483647 == 1)
   13215 		      ? 1 : -1];
   13216 int
   13217 main ()
   13218 {
   13219 
   13220   ;
   13221   return 0;
   13222 }
   13223 _ACEOF
   13224 	 if ac_fn_c_try_compile "$LINENO"; then :
   13225   break
   13226 fi
   13227 rm -f core conftest.err conftest.$ac_objext
   13228 	 CC="$CC -n32"
   13229 	 if ac_fn_c_try_compile "$LINENO"; then :
   13230   ac_cv_sys_largefile_CC=' -n32'; break
   13231 fi
   13232 rm -f core conftest.err conftest.$ac_objext
   13233 	 break
   13234        done
   13235        CC=$ac_save_CC
   13236        rm -f conftest.$ac_ext
   13237     fi
   13238 fi
   13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   13240 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   13241   if test "$ac_cv_sys_largefile_CC" != no; then
   13242     CC=$CC$ac_cv_sys_largefile_CC
   13243   fi
   13244 
   13245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   13246 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   13247 if ${ac_cv_sys_file_offset_bits+:} false; then :
   13248   $as_echo_n "(cached) " >&6
   13249 else
   13250   while :; do
   13251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13252 /* end confdefs.h.  */
   13253 #include <sys/types.h>
   13254  /* Check that off_t can represent 2**63 - 1 correctly.
   13255     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   13256     since some C++ compilers masquerading as C compilers
   13257     incorrectly reject 9223372036854775807.  */
   13258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   13259   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   13260 		       && LARGE_OFF_T % 2147483647 == 1)
   13261 		      ? 1 : -1];
   13262 int
   13263 main ()
   13264 {
   13265 
   13266   ;
   13267   return 0;
   13268 }
   13269 _ACEOF
   13270 if ac_fn_c_try_compile "$LINENO"; then :
   13271   ac_cv_sys_file_offset_bits=no; break
   13272 fi
   13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13275 /* end confdefs.h.  */
   13276 #define _FILE_OFFSET_BITS 64
   13277 #include <sys/types.h>
   13278  /* Check that off_t can represent 2**63 - 1 correctly.
   13279     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   13280     since some C++ compilers masquerading as C compilers
   13281     incorrectly reject 9223372036854775807.  */
   13282 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   13283   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   13284 		       && LARGE_OFF_T % 2147483647 == 1)
   13285 		      ? 1 : -1];
   13286 int
   13287 main ()
   13288 {
   13289 
   13290   ;
   13291   return 0;
   13292 }
   13293 _ACEOF
   13294 if ac_fn_c_try_compile "$LINENO"; then :
   13295   ac_cv_sys_file_offset_bits=64; break
   13296 fi
   13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13298   ac_cv_sys_file_offset_bits=unknown
   13299   break
   13300 done
   13301 fi
   13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   13303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   13304 case $ac_cv_sys_file_offset_bits in #(
   13305   no | unknown) ;;
   13306   *)
   13307 cat >>confdefs.h <<_ACEOF
   13308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   13309 _ACEOF
   13310 ;;
   13311 esac
   13312 rm -rf conftest*
   13313   if test $ac_cv_sys_file_offset_bits = unknown; then
   13314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   13315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   13316 if ${ac_cv_sys_large_files+:} false; then :
   13317   $as_echo_n "(cached) " >&6
   13318 else
   13319   while :; do
   13320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13321 /* end confdefs.h.  */
   13322 #include <sys/types.h>
   13323  /* Check that off_t can represent 2**63 - 1 correctly.
   13324     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   13325     since some C++ compilers masquerading as C compilers
   13326     incorrectly reject 9223372036854775807.  */
   13327 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   13328   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   13329 		       && LARGE_OFF_T % 2147483647 == 1)
   13330 		      ? 1 : -1];
   13331 int
   13332 main ()
   13333 {
   13334 
   13335   ;
   13336   return 0;
   13337 }
   13338 _ACEOF
   13339 if ac_fn_c_try_compile "$LINENO"; then :
   13340   ac_cv_sys_large_files=no; break
   13341 fi
   13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13344 /* end confdefs.h.  */
   13345 #define _LARGE_FILES 1
   13346 #include <sys/types.h>
   13347  /* Check that off_t can represent 2**63 - 1 correctly.
   13348     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   13349     since some C++ compilers masquerading as C compilers
   13350     incorrectly reject 9223372036854775807.  */
   13351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   13352   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   13353 		       && LARGE_OFF_T % 2147483647 == 1)
   13354 		      ? 1 : -1];
   13355 int
   13356 main ()
   13357 {
   13358 
   13359   ;
   13360   return 0;
   13361 }
   13362 _ACEOF
   13363 if ac_fn_c_try_compile "$LINENO"; then :
   13364   ac_cv_sys_large_files=1; break
   13365 fi
   13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13367   ac_cv_sys_large_files=unknown
   13368   break
   13369 done
   13370 fi
   13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   13372 $as_echo "$ac_cv_sys_large_files" >&6; }
   13373 case $ac_cv_sys_large_files in #(
   13374   no | unknown) ;;
   13375   *)
   13376 cat >>confdefs.h <<_ACEOF
   13377 #define _LARGE_FILES $ac_cv_sys_large_files
   13378 _ACEOF
   13379 ;;
   13380 esac
   13381 rm -rf conftest*
   13382   fi
   13383 
   13384 
   13385 fi
   13386 
   13387 
   13388 
   13389 
   13390 ntp_pkgconfig_min_version='0.15.0'
   13391 if test -n "$ac_tool_prefix"; then
   13392   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   13393 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13395 $as_echo_n "checking for $ac_word... " >&6; }
   13396 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   13397   $as_echo_n "(cached) " >&6
   13398 else
   13399   case $PKG_CONFIG in
   13400   [\\/]* | ?:[\\/]*)
   13401   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   13402   ;;
   13403   *)
   13404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13405 for as_dir in $PATH
   13406 do
   13407   IFS=$as_save_IFS
   13408   test -z "$as_dir" && as_dir=.
   13409     for ac_exec_ext in '' $ac_executable_extensions; do
   13410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13411     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   13412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13413     break 2
   13414   fi
   13415 done
   13416   done
   13417 IFS=$as_save_IFS
   13418 
   13419   ;;
   13420 esac
   13421 fi
   13422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   13423 if test -n "$PKG_CONFIG"; then
   13424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   13425 $as_echo "$PKG_CONFIG" >&6; }
   13426 else
   13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13428 $as_echo "no" >&6; }
   13429 fi
   13430 
   13431 
   13432 fi
   13433 if test -z "$ac_cv_path_PKG_CONFIG"; then
   13434   ac_pt_PKG_CONFIG=$PKG_CONFIG
   13435   # Extract the first word of "pkg-config", so it can be a program name with args.
   13436 set dummy pkg-config; ac_word=$2
   13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13438 $as_echo_n "checking for $ac_word... " >&6; }
   13439 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   13440   $as_echo_n "(cached) " >&6
   13441 else
   13442   case $ac_pt_PKG_CONFIG in
   13443   [\\/]* | ?:[\\/]*)
   13444   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   13445   ;;
   13446   *)
   13447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13448 for as_dir in $PATH
   13449 do
   13450   IFS=$as_save_IFS
   13451   test -z "$as_dir" && as_dir=.
   13452     for ac_exec_ext in '' $ac_executable_extensions; do
   13453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13454     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   13455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13456     break 2
   13457   fi
   13458 done
   13459   done
   13460 IFS=$as_save_IFS
   13461 
   13462   ;;
   13463 esac
   13464 fi
   13465 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   13466 if test -n "$ac_pt_PKG_CONFIG"; then
   13467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   13468 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   13469 else
   13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13471 $as_echo "no" >&6; }
   13472 fi
   13473 
   13474   if test "x$ac_pt_PKG_CONFIG" = x; then
   13475     PKG_CONFIG=""
   13476   else
   13477     case $cross_compiling:$ac_tool_warned in
   13478 yes:)
   13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13481 ac_tool_warned=yes ;;
   13482 esac
   13483     PKG_CONFIG=$ac_pt_PKG_CONFIG
   13484   fi
   13485 else
   13486   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   13487 fi
   13488 
   13489 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
   13490 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
   13491 
   13492 case "$PKG_CONFIG" in
   13493  /*)
   13494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
   13495 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
   13496     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
   13497 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13498 $as_echo "yes" >&6; }
   13499     else
   13500 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13501 $as_echo "no" >&6; }
   13502 	PKG_CONFIG=""
   13503     fi
   13504     ;;
   13505 esac
   13506 
   13507 
   13508 
   13509 
   13510 case "$enable_openssl" in
   13511  yes)
   13512     have_openssl=no
   13513     case "$PKG_CONFIG" in
   13514      '')
   13515 	;;
   13516      *)
   13517 	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
   13518 	case "$OPENSSL_LIBS" in
   13519 	 '') ;;
   13520 	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
   13521 	    have_openssl=yes
   13522 	    ;;
   13523 	esac
   13524 	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
   13525 	;;
   13526     esac
   13527     case "$have_openssl" in
   13528      yes) ;;
   13529      *)
   13530 	save_LIBS="$LIBS"
   13531 	LIBS=""
   13532 	OPENSSL_LIBS=""
   13533 	for lib in crypto eay32; do
   13534 		# clear cache
   13535 		unset ac_cv_search_SSL_new
   13536 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
   13537 $as_echo_n "checking for library containing SSL_new... " >&6; }
   13538 if ${ac_cv_search_SSL_new+:} false; then :
   13539   $as_echo_n "(cached) " >&6
   13540 else
   13541   ac_func_search_save_LIBS=$LIBS
   13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13543 /* end confdefs.h.  */
   13544 
   13545 /* Override any GCC internal prototype to avoid an error.
   13546    Use char because int might match the return type of a GCC
   13547    builtin and then its argument prototype would still apply.  */
   13548 #ifdef __cplusplus
   13549 extern "C"
   13550 #endif
   13551 char SSL_new ();
   13552 int
   13553 main ()
   13554 {
   13555 return SSL_new ();
   13556   ;
   13557   return 0;
   13558 }
   13559 _ACEOF
   13560 for ac_lib in '' ssl ssl32; do
   13561   if test -z "$ac_lib"; then
   13562     ac_res="none required"
   13563   else
   13564     ac_res=-l$ac_lib
   13565     LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
   13566   fi
   13567   if ac_fn_c_try_link "$LINENO"; then :
   13568   ac_cv_search_SSL_new=$ac_res
   13569 fi
   13570 rm -f core conftest.err conftest.$ac_objext \
   13571     conftest$ac_exeext
   13572   if ${ac_cv_search_SSL_new+:} false; then :
   13573   break
   13574 fi
   13575 done
   13576 if ${ac_cv_search_SSL_new+:} false; then :
   13577 
   13578 else
   13579   ac_cv_search_SSL_new=no
   13580 fi
   13581 rm conftest.$ac_ext
   13582 LIBS=$ac_func_search_save_LIBS
   13583 fi
   13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
   13585 $as_echo "$ac_cv_search_SSL_new" >&6; }
   13586 ac_res=$ac_cv_search_SSL_new
   13587 if test "$ac_res" != no; then :
   13588   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13589   have_openssl=yes
   13590 		    OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
   13591 else
   13592   have_openssl=no
   13593 fi
   13594 
   13595 		LIBS="$save_LIBS"
   13596 		test "$have_openssl" = "yes" && break
   13597 	done
   13598 	;;
   13599     esac
   13600 
   13601 
   13602     case "$have_openssl" in
   13603      yes)
   13604 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
   13605  ;;
   13606     esac
   13607     ;;
   13608 esac
   13609 
   13610 # check if we have and should use openssl
   13611  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
   13612   OPENSSL_TRUE=
   13613   OPENSSL_FALSE='#'
   13614 else
   13615   OPENSSL_TRUE='#'
   13616   OPENSSL_FALSE=
   13617 fi
   13618 
   13619 
   13620 
   13621 for ac_header in  \
   13622   arpa/inet.h \
   13623   fcntl.h \
   13624   ifaddrs.h \
   13625   mach/mach_time.h \
   13626   netdb.h \
   13627   netinet/in.h \
   13628   netinet/in6.h \
   13629   netinet/tcp.h \
   13630   poll.h \
   13631   port.h \
   13632   stdarg.h \
   13633   stddef.h \
   13634   sys/devpoll.h \
   13635   sys/epoll.h \
   13636   sys/event.h \
   13637   sys/eventfd.h \
   13638   sys/ioctl.h \
   13639   sys/mman.h \
   13640   sys/param.h \
   13641   sys/queue.h \
   13642   sys/resource.h \
   13643   sys/select.h \
   13644   sys/sendfile.h \
   13645   sys/socket.h \
   13646   sys/stat.h \
   13647   sys/time.h \
   13648   sys/timerfd.h \
   13649   sys/uio.h \
   13650   sys/wait.h \
   13651   errno.h \
   13652 
   13653 do :
   13654   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13657   cat >>confdefs.h <<_ACEOF
   13658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13659 _ACEOF
   13660 
   13661 fi
   13662 
   13663 done
   13664 
   13665 
   13666 for ac_header in sys/sysctl.h
   13667 do :
   13668   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
   13669 #ifdef HAVE_SYS_PARAM_H
   13670 #include <sys/param.h>
   13671 #endif
   13672 
   13673 "
   13674 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
   13675   cat >>confdefs.h <<_ACEOF
   13676 #define HAVE_SYS_SYSCTL_H 1
   13677 _ACEOF
   13678 
   13679 fi
   13680 
   13681 done
   13682 
   13683 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
   13684 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
   13685 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
   13686 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13687 /* end confdefs.h.  */
   13688 
   13689 #include <sys/queue.h>
   13690 #ifdef TAILQ_FOREACH
   13691  yes
   13692 #endif
   13693 
   13694 _ACEOF
   13695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13696   $EGREP "yes" >/dev/null 2>&1; then :
   13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13698 $as_echo "yes" >&6; }
   13699 
   13700 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
   13701 
   13702 else
   13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13704 $as_echo "no" >&6; }
   13705 
   13706 fi
   13707 rm -f conftest*
   13708 
   13709 fi
   13710 
   13711 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13712 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
   13713 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
   13714 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13715 /* end confdefs.h.  */
   13716 
   13717 #include <sys/time.h>
   13718 #ifdef timeradd
   13719  yes
   13720 #endif
   13721 
   13722 _ACEOF
   13723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13724   $EGREP "yes" >/dev/null 2>&1; then :
   13725 
   13726 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
   13727 
   13728 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13729 $as_echo "yes" >&6; }
   13730 else
   13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13732 $as_echo "no" >&6; }
   13733 
   13734 fi
   13735 rm -f conftest*
   13736 
   13737 fi
   13738 
   13739 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13740 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
   13741 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
   13742 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13743 /* end confdefs.h.  */
   13744 
   13745 #include <sys/time.h>
   13746 #ifdef timercmp
   13747  yes
   13748 #endif
   13749 
   13750 _ACEOF
   13751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13752   $EGREP "yes" >/dev/null 2>&1; then :
   13753 
   13754 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
   13755 
   13756 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13757 $as_echo "yes" >&6; }
   13758 else
   13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13760 $as_echo "no" >&6; }
   13761 
   13762 fi
   13763 rm -f conftest*
   13764 
   13765 fi
   13766 
   13767 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13768 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
   13769 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
   13770 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13771 /* end confdefs.h.  */
   13772 
   13773 #include <sys/time.h>
   13774 #ifdef timerclear
   13775  yes
   13776 #endif
   13777 
   13778 _ACEOF
   13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13780   $EGREP "yes" >/dev/null 2>&1; then :
   13781 
   13782 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
   13783 
   13784 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13785 $as_echo "yes" >&6; }
   13786 else
   13787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13788 $as_echo "no" >&6; }
   13789 
   13790 fi
   13791 rm -f conftest*
   13792 
   13793 fi
   13794 
   13795 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
   13796 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
   13797 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
   13798 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13799 /* end confdefs.h.  */
   13800 
   13801 #include <sys/time.h>
   13802 #ifdef timerisset
   13803  yes
   13804 #endif
   13805 
   13806 _ACEOF
   13807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13808   $EGREP "yes" >/dev/null 2>&1; then :
   13809 
   13810 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
   13811 
   13812 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13813 $as_echo "yes" >&6; }
   13814 else
   13815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13816 $as_echo "no" >&6; }
   13817 
   13818 fi
   13819 rm -f conftest*
   13820 
   13821 fi
   13822 
   13823 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
   13824 	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
   13825 	     #include <sys/sysctl.h>
   13826 
   13827 "
   13828 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
   13829   ac_have_decl=1
   13830 else
   13831   ac_have_decl=0
   13832 fi
   13833 
   13834 cat >>confdefs.h <<_ACEOF
   13835 #define HAVE_DECL_CTL_KERN $ac_have_decl
   13836 _ACEOF
   13837 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
   13838 	     #include <sys/sysctl.h>
   13839 
   13840 "
   13841 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
   13842   ac_have_decl=1
   13843 else
   13844   ac_have_decl=0
   13845 fi
   13846 
   13847 cat >>confdefs.h <<_ACEOF
   13848 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
   13849 _ACEOF
   13850 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
   13851 	     #include <sys/sysctl.h>
   13852 
   13853 "
   13854 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
   13855   ac_have_decl=1
   13856 else
   13857   ac_have_decl=0
   13858 fi
   13859 
   13860 cat >>confdefs.h <<_ACEOF
   13861 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
   13862 _ACEOF
   13863 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
   13864 	     #include <sys/sysctl.h>
   13865 
   13866 "
   13867 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
   13868   ac_have_decl=1
   13869 else
   13870   ac_have_decl=0
   13871 fi
   13872 
   13873 cat >>confdefs.h <<_ACEOF
   13874 #define HAVE_DECL_KERN_ARND $ac_have_decl
   13875 _ACEOF
   13876 
   13877 fi
   13878 
   13879  if test x$bwin32 = xtrue; then
   13880   BUILD_WIN32_TRUE=
   13881   BUILD_WIN32_FALSE='#'
   13882 else
   13883   BUILD_WIN32_TRUE='#'
   13884   BUILD_WIN32_FALSE=
   13885 fi
   13886 
   13887  if test x$cygwin = xtrue; then
   13888   BUILD_CYGWIN_TRUE=
   13889   BUILD_CYGWIN_FALSE='#'
   13890 else
   13891   BUILD_CYGWIN_TRUE='#'
   13892   BUILD_CYGWIN_FALSE=
   13893 fi
   13894 
   13895  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
   13896   BUILD_WITH_NO_UNDEFINED_TRUE=
   13897   BUILD_WITH_NO_UNDEFINED_FALSE='#'
   13898 else
   13899   BUILD_WITH_NO_UNDEFINED_TRUE='#'
   13900   BUILD_WITH_NO_UNDEFINED_FALSE=
   13901 fi
   13902 
   13903 
   13904 if test x$bwin32 = xtrue; then
   13905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
   13906 $as_echo_n "checking for library containing getservbyname... " >&6; }
   13907 if ${ac_cv_search_getservbyname+:} false; then :
   13908   $as_echo_n "(cached) " >&6
   13909 else
   13910   ac_func_search_save_LIBS=$LIBS
   13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13912 /* end confdefs.h.  */
   13913 
   13914 /* Override any GCC internal prototype to avoid an error.
   13915    Use char because int might match the return type of a GCC
   13916    builtin and then its argument prototype would still apply.  */
   13917 #ifdef __cplusplus
   13918 extern "C"
   13919 #endif
   13920 char getservbyname ();
   13921 int
   13922 main ()
   13923 {
   13924 return getservbyname ();
   13925   ;
   13926   return 0;
   13927 }
   13928 _ACEOF
   13929 for ac_lib in '' ws2_32; do
   13930   if test -z "$ac_lib"; then
   13931     ac_res="none required"
   13932   else
   13933     ac_res=-l$ac_lib
   13934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13935   fi
   13936   if ac_fn_c_try_link "$LINENO"; then :
   13937   ac_cv_search_getservbyname=$ac_res
   13938 fi
   13939 rm -f core conftest.err conftest.$ac_objext \
   13940     conftest$ac_exeext
   13941   if ${ac_cv_search_getservbyname+:} false; then :
   13942   break
   13943 fi
   13944 done
   13945 if ${ac_cv_search_getservbyname+:} false; then :
   13946 
   13947 else
   13948   ac_cv_search_getservbyname=no
   13949 fi
   13950 rm conftest.$ac_ext
   13951 LIBS=$ac_func_search_save_LIBS
   13952 fi
   13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
   13954 $as_echo "$ac_cv_search_getservbyname" >&6; }
   13955 ac_res=$ac_cv_search_getservbyname
   13956 if test "$ac_res" != no; then :
   13957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13958 
   13959 fi
   13960 
   13961 fi
   13962 
   13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13964 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13965 if ${ac_cv_c_const+:} false; then :
   13966   $as_echo_n "(cached) " >&6
   13967 else
   13968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13969 /* end confdefs.h.  */
   13970 
   13971 int
   13972 main ()
   13973 {
   13974 
   13975 #ifndef __cplusplus
   13976   /* Ultrix mips cc rejects this sort of thing.  */
   13977   typedef int charset[2];
   13978   const charset cs = { 0, 0 };
   13979   /* SunOS 4.1.1 cc rejects this.  */
   13980   char const *const *pcpcc;
   13981   char **ppc;
   13982   /* NEC SVR4.0.2 mips cc rejects this.  */
   13983   struct point {int x, y;};
   13984   static struct point const zero = {0,0};
   13985   /* AIX XL C 1.02.0.0 rejects this.
   13986      It does not let you subtract one const X* pointer from another in
   13987      an arm of an if-expression whose if-part is not a constant
   13988      expression */
   13989   const char *g = "string";
   13990   pcpcc = &g + (g ? g-g : 0);
   13991   /* HPUX 7.0 cc rejects these. */
   13992   ++pcpcc;
   13993   ppc = (char**) pcpcc;
   13994   pcpcc = (char const *const *) ppc;
   13995   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13996     char tx;
   13997     char *t = &tx;
   13998     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13999 
   14000     *t++ = 0;
   14001     if (s) return 0;
   14002   }
   14003   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   14004     int x[] = {25, 17};
   14005     const int *foo = &x[0];
   14006     ++foo;
   14007   }
   14008   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   14009     typedef const int *iptr;
   14010     iptr p = 0;
   14011     ++p;
   14012   }
   14013   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   14014        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   14015     struct s { int j; const int *ap[3]; } bx;
   14016     struct s *b = &bx; b->j = 5;
   14017   }
   14018   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   14019     const int foo = 10;
   14020     if (!foo) return 0;
   14021   }
   14022   return !cs[0] && !zero.x;
   14023 #endif
   14024 
   14025   ;
   14026   return 0;
   14027 }
   14028 _ACEOF
   14029 if ac_fn_c_try_compile "$LINENO"; then :
   14030   ac_cv_c_const=yes
   14031 else
   14032   ac_cv_c_const=no
   14033 fi
   14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14035 fi
   14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   14037 $as_echo "$ac_cv_c_const" >&6; }
   14038 if test $ac_cv_c_const = no; then
   14039 
   14040 $as_echo "#define const /**/" >>confdefs.h
   14041 
   14042 fi
   14043 
   14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   14045 $as_echo_n "checking for inline... " >&6; }
   14046 if ${ac_cv_c_inline+:} false; then :
   14047   $as_echo_n "(cached) " >&6
   14048 else
   14049   ac_cv_c_inline=no
   14050 for ac_kw in inline __inline__ __inline; do
   14051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14052 /* end confdefs.h.  */
   14053 #ifndef __cplusplus
   14054 typedef int foo_t;
   14055 static $ac_kw foo_t static_foo () {return 0; }
   14056 $ac_kw foo_t foo () {return 0; }
   14057 #endif
   14058 
   14059 _ACEOF
   14060 if ac_fn_c_try_compile "$LINENO"; then :
   14061   ac_cv_c_inline=$ac_kw
   14062 fi
   14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14064   test "$ac_cv_c_inline" != no && break
   14065 done
   14066 
   14067 fi
   14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   14069 $as_echo "$ac_cv_c_inline" >&6; }
   14070 
   14071 case $ac_cv_c_inline in
   14072   inline | yes) ;;
   14073   *)
   14074     case $ac_cv_c_inline in
   14075       no) ac_val=;;
   14076       *) ac_val=$ac_cv_c_inline;;
   14077     esac
   14078     cat >>confdefs.h <<_ACEOF
   14079 #ifndef __cplusplus
   14080 #define inline $ac_val
   14081 #endif
   14082 _ACEOF
   14083     ;;
   14084 esac
   14085 
   14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   14087 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   14088 if ${ac_cv_header_time+:} false; then :
   14089   $as_echo_n "(cached) " >&6
   14090 else
   14091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14092 /* end confdefs.h.  */
   14093 #include <sys/types.h>
   14094 #include <sys/time.h>
   14095 #include <time.h>
   14096 
   14097 int
   14098 main ()
   14099 {
   14100 if ((struct tm *) 0)
   14101 return 0;
   14102   ;
   14103   return 0;
   14104 }
   14105 _ACEOF
   14106 if ac_fn_c_try_compile "$LINENO"; then :
   14107   ac_cv_header_time=yes
   14108 else
   14109   ac_cv_header_time=no
   14110 fi
   14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14112 fi
   14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   14114 $as_echo "$ac_cv_header_time" >&6; }
   14115 if test $ac_cv_header_time = yes; then
   14116 
   14117 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   14118 
   14119 fi
   14120 
   14121 
   14122 for ac_func in  \
   14123   accept4 \
   14124   arc4random \
   14125   arc4random_buf \
   14126   eventfd \
   14127   epoll_create1 \
   14128   fcntl \
   14129   getegid \
   14130   geteuid \
   14131   getifaddrs \
   14132   getnameinfo \
   14133   getprotobynumber \
   14134   gettimeofday \
   14135   inet_ntop \
   14136   inet_pton \
   14137   issetugid \
   14138   mach_absolute_time \
   14139   mmap \
   14140   nanosleep \
   14141   pipe \
   14142   pipe2 \
   14143   putenv \
   14144   sendfile \
   14145   setenv \
   14146   setrlimit \
   14147   sigaction \
   14148   signal \
   14149   splice \
   14150   strlcpy \
   14151   strsep \
   14152   strtok_r \
   14153   strtoll \
   14154   sysctl \
   14155   timerfd_create \
   14156   umask \
   14157   unsetenv \
   14158   usleep \
   14159   vasprintf \
   14160   getservbyname \
   14161 
   14162 do :
   14163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14166   cat >>confdefs.h <<_ACEOF
   14167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14168 _ACEOF
   14169 
   14170 fi
   14171 done
   14172 
   14173  if test x"$ac_cv_func_strlcpy" = xno; then
   14174   STRLCPY_IMPL_TRUE=
   14175   STRLCPY_IMPL_FALSE='#'
   14176 else
   14177   STRLCPY_IMPL_TRUE='#'
   14178   STRLCPY_IMPL_FALSE=
   14179 fi
   14180 
   14181 
   14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   14183 $as_echo_n "checking for getaddrinfo... " >&6; }
   14184 if ${libevent_cv_getaddrinfo+:} false; then :
   14185   $as_echo_n "(cached) " >&6
   14186 else
   14187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14188 /* end confdefs.h.  */
   14189 
   14190 		#ifdef HAVE_NETDB_H
   14191 		#include <netdb.h>
   14192 		#endif
   14193 
   14194 int
   14195 main ()
   14196 {
   14197 
   14198 		getaddrinfo;
   14199 
   14200 
   14201   ;
   14202   return 0;
   14203 }
   14204 _ACEOF
   14205 if ac_fn_c_try_link "$LINENO"; then :
   14206   libevent_cv_getaddrinfo=yes
   14207 else
   14208   libevent_cv_getaddrinfo=no
   14209 
   14210 fi
   14211 rm -f core conftest.err conftest.$ac_objext \
   14212     conftest$ac_exeext conftest.$ac_ext
   14213 
   14214 fi
   14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
   14216 $as_echo "$libevent_cv_getaddrinfo" >&6; }
   14217 if test "$libevent_cv_getaddrinfo" = "yes" ; then
   14218 
   14219 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   14220 
   14221 else
   14222 
   14223 # Check for gethostbyname_r in all its glorious incompatible versions.
   14224 #   (This is cut-and-pasted from Tor, which based its logic on
   14225 #   Python's configure.in.)
   14226 
   14227 
   14228 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
   14229 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
   14230 
   14231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
   14232 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
   14233   OLD_CFLAGS=$CFLAGS
   14234   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
   14235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14236 /* end confdefs.h.  */
   14237 
   14238 #include <netdb.h>
   14239 
   14240 int
   14241 main ()
   14242 {
   14243 
   14244     char *cp1, *cp2;
   14245     struct hostent *h1, *h2;
   14246     int i1, i2;
   14247     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
   14248 
   14249   ;
   14250   return 0;
   14251 }
   14252 _ACEOF
   14253 if ac_fn_c_try_compile "$LINENO"; then :
   14254 
   14255     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   14256 
   14257 
   14258 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
   14259 
   14260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
   14261 $as_echo "6" >&6; }
   14262 
   14263 else
   14264 
   14265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14266 /* end confdefs.h.  */
   14267 
   14268 #include <netdb.h>
   14269 
   14270 int
   14271 main ()
   14272 {
   14273 
   14274       char *cp1, *cp2;
   14275       struct hostent *h1;
   14276       int i1, i2;
   14277       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
   14278 
   14279   ;
   14280   return 0;
   14281 }
   14282 _ACEOF
   14283 if ac_fn_c_try_compile "$LINENO"; then :
   14284 
   14285       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   14286 
   14287 
   14288 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
   14289 
   14290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
   14291 $as_echo "5" >&6; }
   14292 
   14293 else
   14294 
   14295       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14296 /* end confdefs.h.  */
   14297 
   14298 #include <netdb.h>
   14299 
   14300 int
   14301 main ()
   14302 {
   14303 
   14304        char *cp1;
   14305        struct hostent *h1;
   14306        struct hostent_data hd;
   14307        (void) gethostbyname_r(cp1,h1,&hd);
   14308 
   14309   ;
   14310   return 0;
   14311 }
   14312 _ACEOF
   14313 if ac_fn_c_try_compile "$LINENO"; then :
   14314 
   14315        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   14316 
   14317 
   14318 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
   14319 
   14320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
   14321 $as_echo "3" >&6; }
   14322 
   14323 else
   14324 
   14325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
   14326 $as_echo "0" >&6; }
   14327 
   14328 fi
   14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14330 
   14331 fi
   14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14333 
   14334 fi
   14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14336  CFLAGS=$OLD_CFLAGS
   14337 
   14338 fi
   14339 
   14340 
   14341 fi
   14342 
   14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
   14344 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
   14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14346 /* end confdefs.h.  */
   14347 
   14348 #define _GNU_SOURCE
   14349 #include <fcntl.h>
   14350 #ifdef F_SETFD
   14351 yes
   14352 #endif
   14353 
   14354 _ACEOF
   14355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14356   $EGREP "yes" >/dev/null 2>&1; then :
   14357 
   14358 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
   14359 
   14360 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14361 $as_echo "yes" >&6; }
   14362 else
   14363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14364 $as_echo "no" >&6; }
   14365 fi
   14366 rm -f conftest*
   14367 
   14368 
   14369 needsignal=no
   14370 haveselect=no
   14371 if test x$bwin32 != xtrue; then
   14372     for ac_func in select
   14373 do :
   14374   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
   14375 if test "x$ac_cv_func_select" = xyes; then :
   14376   cat >>confdefs.h <<_ACEOF
   14377 #define HAVE_SELECT 1
   14378 _ACEOF
   14379  haveselect=yes
   14380 fi
   14381 done
   14382 
   14383     if test "x$haveselect" = "xyes" ; then
   14384  	needsignal=yes
   14385     fi
   14386 fi
   14387  if test "x$haveselect" = "xyes"; then
   14388   SELECT_BACKEND_TRUE=
   14389   SELECT_BACKEND_FALSE='#'
   14390 else
   14391   SELECT_BACKEND_TRUE='#'
   14392   SELECT_BACKEND_FALSE=
   14393 fi
   14394 
   14395 
   14396 havepoll=no
   14397 for ac_func in poll
   14398 do :
   14399   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   14400 if test "x$ac_cv_func_poll" = xyes; then :
   14401   cat >>confdefs.h <<_ACEOF
   14402 #define HAVE_POLL 1
   14403 _ACEOF
   14404  havepoll=yes
   14405 fi
   14406 done
   14407 
   14408 if test "x$havepoll" = "xyes" ; then
   14409 	needsignal=yes
   14410 fi
   14411  if test "x$havepoll" = "xyes"; then
   14412   POLL_BACKEND_TRUE=
   14413   POLL_BACKEND_FALSE='#'
   14414 else
   14415   POLL_BACKEND_TRUE='#'
   14416   POLL_BACKEND_FALSE=
   14417 fi
   14418 
   14419 
   14420 havedevpoll=no
   14421 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
   14422 
   14423 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
   14424 
   14425 fi
   14426  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
   14427   DEVPOLL_BACKEND_TRUE=
   14428   DEVPOLL_BACKEND_FALSE='#'
   14429 else
   14430   DEVPOLL_BACKEND_TRUE='#'
   14431   DEVPOLL_BACKEND_FALSE=
   14432 fi
   14433 
   14434 
   14435 havekqueue=no
   14436 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
   14437 	for ac_func in kqueue
   14438 do :
   14439   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   14440 if test "x$ac_cv_func_kqueue" = xyes; then :
   14441   cat >>confdefs.h <<_ACEOF
   14442 #define HAVE_KQUEUE 1
   14443 _ACEOF
   14444  havekqueue=yes
   14445 fi
   14446 done
   14447 
   14448 	if test "x$havekqueue" = "xyes" ; then
   14449 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
   14450 $as_echo_n "checking for working kqueue... " >&6; }
   14451 		if test "$cross_compiling" = yes; then :
   14452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14453 $as_echo "no" >&6; }
   14454 else
   14455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14456 /* end confdefs.h.  */
   14457 #include <sys/types.h>
   14458 #include <sys/time.h>
   14459 #include <sys/event.h>
   14460 #include <stdio.h>
   14461 #include <unistd.h>
   14462 #include <fcntl.h>
   14463 
   14464 int
   14465 main(int argc, char **argv)
   14466 {
   14467 	int kq;
   14468 	int n;
   14469 	int fd[2];
   14470 	struct kevent ev;
   14471 	struct timespec ts;
   14472 	char buf[8000];
   14473 
   14474 	if (pipe(fd) == -1)
   14475 		exit(1);
   14476 	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
   14477 		exit(1);
   14478 
   14479 	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
   14480 		;
   14481 
   14482         if ((kq = kqueue()) == -1)
   14483 		exit(1);
   14484 
   14485 	memset(&ev, 0, sizeof(ev));
   14486 	ev.ident = fd[1];
   14487 	ev.filter = EVFILT_WRITE;
   14488 	ev.flags = EV_ADD | EV_ENABLE;
   14489 	n = kevent(kq, &ev, 1, NULL, 0, NULL);
   14490 	if (n == -1)
   14491 		exit(1);
   14492 
   14493 	read(fd[0], buf, sizeof(buf));
   14494 
   14495 	ts.tv_sec = 0;
   14496 	ts.tv_nsec = 0;
   14497 	n = kevent(kq, NULL, 0, &ev, 1, &ts);
   14498 	if (n == -1 || n == 0)
   14499 		exit(1);
   14500 
   14501 	exit(0);
   14502 }
   14503 _ACEOF
   14504 if ac_fn_c_try_run "$LINENO"; then :
   14505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14506 $as_echo "yes" >&6; }
   14507 
   14508 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
   14509 
   14510     havekqueue=yes
   14511 
   14512 else
   14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14514 $as_echo "no" >&6; }
   14515 fi
   14516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14517   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14518 fi
   14519 
   14520 	fi
   14521 fi
   14522  if test "x$havekqueue" = "xyes"; then
   14523   KQUEUE_BACKEND_TRUE=
   14524   KQUEUE_BACKEND_FALSE='#'
   14525 else
   14526   KQUEUE_BACKEND_TRUE='#'
   14527   KQUEUE_BACKEND_FALSE=
   14528 fi
   14529 
   14530 
   14531 haveepollsyscall=no
   14532 haveepoll=no
   14533 for ac_func in epoll_ctl
   14534 do :
   14535   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
   14536 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
   14537   cat >>confdefs.h <<_ACEOF
   14538 #define HAVE_EPOLL_CTL 1
   14539 _ACEOF
   14540  haveepoll=yes
   14541 fi
   14542 done
   14543 
   14544 if test "x$haveepoll" = "xyes" ; then
   14545 
   14546 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   14547 
   14548 	needsignal=yes
   14549 fi
   14550 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
   14551 	if test "x$haveepoll" = "xno" ; then
   14552 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
   14553 $as_echo_n "checking for epoll system call... " >&6; }
   14554 		if test "$cross_compiling" = yes; then :
   14555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14556 $as_echo "no" >&6; }
   14557 else
   14558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14559 /* end confdefs.h.  */
   14560 #include <stdint.h>
   14561 #include <sys/param.h>
   14562 #include <sys/types.h>
   14563 #include <sys/syscall.h>
   14564 #include <sys/epoll.h>
   14565 #include <unistd.h>
   14566 
   14567 int
   14568 epoll_create(int size)
   14569 {
   14570 	return (syscall(__NR_epoll_create, size));
   14571 }
   14572 
   14573 int
   14574 main(int argc, char **argv)
   14575 {
   14576 	int epfd;
   14577 
   14578 	epfd = epoll_create(256);
   14579 	exit (epfd == -1 ? 1 : 0);
   14580 }
   14581 _ACEOF
   14582 if ac_fn_c_try_run "$LINENO"; then :
   14583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14584 $as_echo "yes" >&6; }
   14585 
   14586 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   14587 
   14588     needsignal=yes
   14589     have_epoll=yes
   14590     case " $LIBOBJS " in
   14591   *" epoll_sub.$ac_objext "* ) ;;
   14592   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
   14593  ;;
   14594 esac
   14595 
   14596 
   14597 else
   14598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14599 $as_echo "no" >&6; }
   14600 fi
   14601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14602   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14603 fi
   14604 
   14605 	fi
   14606 fi
   14607  if test "x$haveepoll" = "xyes"; then
   14608   EPOLL_BACKEND_TRUE=
   14609   EPOLL_BACKEND_FALSE='#'
   14610 else
   14611   EPOLL_BACKEND_TRUE='#'
   14612   EPOLL_BACKEND_FALSE=
   14613 fi
   14614 
   14615 
   14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking waitpid support WNOWAIT" >&5
   14617 $as_echo_n "checking waitpid support WNOWAIT... " >&6; }
   14618 if test "$cross_compiling" = yes; then :
   14619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14620 $as_echo "no" >&6; }
   14621 else
   14622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14623 /* end confdefs.h.  */
   14624 #include <unistd.h>
   14625 #include <sys/types.h>
   14626 #include <sys/wait.h>
   14627 #include <stdlib.h>
   14628 
   14629 int
   14630 main(int argc, char** argv)
   14631 {
   14632     pid_t pid;
   14633     int status;
   14634     if ((pid = fork()) == 0) _exit(0);
   14635     _exit(waitpid(pid, &status, WNOWAIT) == -1);
   14636 }
   14637 _ACEOF
   14638 if ac_fn_c_try_run "$LINENO"; then :
   14639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14640 $as_echo "yes" >&6; }
   14641 
   14642 $as_echo "#define HAVE_WAITPID_WITH_WNOWAIT 1" >>confdefs.h
   14643 
   14644 
   14645 else
   14646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14647 $as_echo "no" >&6; }
   14648 fi
   14649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14650   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14651 fi
   14652 
   14653 
   14654 
   14655 haveeventports=no
   14656 for ac_func in port_create
   14657 do :
   14658   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
   14659 if test "x$ac_cv_func_port_create" = xyes; then :
   14660   cat >>confdefs.h <<_ACEOF
   14661 #define HAVE_PORT_CREATE 1
   14662 _ACEOF
   14663  haveeventports=yes
   14664 fi
   14665 done
   14666 
   14667 if test "x$haveeventports" = "xyes" ; then
   14668 
   14669 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
   14670 
   14671 	needsignal=yes
   14672 fi
   14673  if test "x$haveeventports" = "xyes"; then
   14674   EVPORT_BACKEND_TRUE=
   14675   EVPORT_BACKEND_FALSE='#'
   14676 else
   14677   EVPORT_BACKEND_TRUE='#'
   14678   EVPORT_BACKEND_FALSE=
   14679 fi
   14680 
   14681 
   14682 if test "x$bwin32" = "xtrue"; then
   14683 	needsignal=yes
   14684 fi
   14685 
   14686  if test "x$needsignal" = "xyes"; then
   14687   SIGNAL_SUPPORT_TRUE=
   14688   SIGNAL_SUPPORT_FALSE='#'
   14689 else
   14690   SIGNAL_SUPPORT_TRUE='#'
   14691   SIGNAL_SUPPORT_FALSE=
   14692 fi
   14693 
   14694 
   14695 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   14696 if test "x$ac_cv_type_pid_t" = xyes; then :
   14697 
   14698 else
   14699 
   14700 cat >>confdefs.h <<_ACEOF
   14701 #define pid_t int
   14702 _ACEOF
   14703 
   14704 fi
   14705 
   14706 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14707 if test "x$ac_cv_type_size_t" = xyes; then :
   14708 
   14709 else
   14710 
   14711 cat >>confdefs.h <<_ACEOF
   14712 #define size_t unsigned int
   14713 _ACEOF
   14714 
   14715 fi
   14716 
   14717 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14718 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14719 
   14720 else
   14721 
   14722 cat >>confdefs.h <<_ACEOF
   14723 #define ssize_t int
   14724 _ACEOF
   14725 
   14726 fi
   14727 
   14728 
   14729 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
   14730 #include <stdint.h>
   14731 #elif defined(HAVE_INTTYPES_H)
   14732 #include <inttypes.h>
   14733 #endif
   14734 #ifdef HAVE_SYS_TYPES_H
   14735 #include <sys/types.h>
   14736 #endif
   14737 "
   14738 if test "x$ac_cv_type_uint64_t" = xyes; then :
   14739 
   14740 cat >>confdefs.h <<_ACEOF
   14741 #define HAVE_UINT64_T 1
   14742 _ACEOF
   14743 
   14744 
   14745 fi
   14746 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
   14747 #include <stdint.h>
   14748 #elif defined(HAVE_INTTYPES_H)
   14749 #include <inttypes.h>
   14750 #endif
   14751 #ifdef HAVE_SYS_TYPES_H
   14752 #include <sys/types.h>
   14753 #endif
   14754 "
   14755 if test "x$ac_cv_type_uint32_t" = xyes; then :
   14756 
   14757 cat >>confdefs.h <<_ACEOF
   14758 #define HAVE_UINT32_T 1
   14759 _ACEOF
   14760 
   14761 
   14762 fi
   14763 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
   14764 #include <stdint.h>
   14765 #elif defined(HAVE_INTTYPES_H)
   14766 #include <inttypes.h>
   14767 #endif
   14768 #ifdef HAVE_SYS_TYPES_H
   14769 #include <sys/types.h>
   14770 #endif
   14771 "
   14772 if test "x$ac_cv_type_uint16_t" = xyes; then :
   14773 
   14774 cat >>confdefs.h <<_ACEOF
   14775 #define HAVE_UINT16_T 1
   14776 _ACEOF
   14777 
   14778 
   14779 fi
   14780 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
   14781 #include <stdint.h>
   14782 #elif defined(HAVE_INTTYPES_H)
   14783 #include <inttypes.h>
   14784 #endif
   14785 #ifdef HAVE_SYS_TYPES_H
   14786 #include <sys/types.h>
   14787 #endif
   14788 "
   14789 if test "x$ac_cv_type_uint8_t" = xyes; then :
   14790 
   14791 cat >>confdefs.h <<_ACEOF
   14792 #define HAVE_UINT8_T 1
   14793 _ACEOF
   14794 
   14795 
   14796 fi
   14797 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
   14798 #include <stdint.h>
   14799 #elif defined(HAVE_INTTYPES_H)
   14800 #include <inttypes.h>
   14801 #endif
   14802 #ifdef HAVE_SYS_TYPES_H
   14803 #include <sys/types.h>
   14804 #endif
   14805 "
   14806 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14807 
   14808 cat >>confdefs.h <<_ACEOF
   14809 #define HAVE_UINTPTR_T 1
   14810 _ACEOF
   14811 
   14812 
   14813 fi
   14814 
   14815 
   14816 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
   14817 #include <sys/types.h>
   14818 #endif
   14819 #ifdef HAVE_SYS_SELECT_H
   14820 #include <sys/select.h>
   14821 #endif
   14822 "
   14823 if test "x$ac_cv_type_fd_mask" = xyes; then :
   14824 
   14825 cat >>confdefs.h <<_ACEOF
   14826 #define HAVE_FD_MASK 1
   14827 _ACEOF
   14828 
   14829 
   14830 fi
   14831 
   14832 
   14833 # The cast to long int works around a bug in the HP C Compiler
   14834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14836 # This bug is HP SR number 8606223364.
   14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   14838 $as_echo_n "checking size of long long... " >&6; }
   14839 if ${ac_cv_sizeof_long_long+:} false; then :
   14840   $as_echo_n "(cached) " >&6
   14841 else
   14842   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   14843 
   14844 else
   14845   if test "$ac_cv_type_long_long" = yes; then
   14846      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14848 as_fn_error 77 "cannot compute sizeof (long long)
   14849 See \`config.log' for more details" "$LINENO" 5; }
   14850    else
   14851      ac_cv_sizeof_long_long=0
   14852    fi
   14853 fi
   14854 
   14855 fi
   14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   14857 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   14858 
   14859 
   14860 
   14861 cat >>confdefs.h <<_ACEOF
   14862 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   14863 _ACEOF
   14864 
   14865 
   14866 # The cast to long int works around a bug in the HP C Compiler
   14867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14869 # This bug is HP SR number 8606223364.
   14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   14871 $as_echo_n "checking size of long... " >&6; }
   14872 if ${ac_cv_sizeof_long+:} false; then :
   14873   $as_echo_n "(cached) " >&6
   14874 else
   14875   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   14876 
   14877 else
   14878   if test "$ac_cv_type_long" = yes; then
   14879      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14881 as_fn_error 77 "cannot compute sizeof (long)
   14882 See \`config.log' for more details" "$LINENO" 5; }
   14883    else
   14884      ac_cv_sizeof_long=0
   14885    fi
   14886 fi
   14887 
   14888 fi
   14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   14890 $as_echo "$ac_cv_sizeof_long" >&6; }
   14891 
   14892 
   14893 
   14894 cat >>confdefs.h <<_ACEOF
   14895 #define SIZEOF_LONG $ac_cv_sizeof_long
   14896 _ACEOF
   14897 
   14898 
   14899 # The cast to long int works around a bug in the HP C Compiler
   14900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14902 # This bug is HP SR number 8606223364.
   14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   14904 $as_echo_n "checking size of int... " >&6; }
   14905 if ${ac_cv_sizeof_int+:} false; then :
   14906   $as_echo_n "(cached) " >&6
   14907 else
   14908   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   14909 
   14910 else
   14911   if test "$ac_cv_type_int" = yes; then
   14912      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14914 as_fn_error 77 "cannot compute sizeof (int)
   14915 See \`config.log' for more details" "$LINENO" 5; }
   14916    else
   14917      ac_cv_sizeof_int=0
   14918    fi
   14919 fi
   14920 
   14921 fi
   14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   14923 $as_echo "$ac_cv_sizeof_int" >&6; }
   14924 
   14925 
   14926 
   14927 cat >>confdefs.h <<_ACEOF
   14928 #define SIZEOF_INT $ac_cv_sizeof_int
   14929 _ACEOF
   14930 
   14931 
   14932 # The cast to long int works around a bug in the HP C Compiler
   14933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14935 # This bug is HP SR number 8606223364.
   14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   14937 $as_echo_n "checking size of short... " >&6; }
   14938 if ${ac_cv_sizeof_short+:} false; then :
   14939   $as_echo_n "(cached) " >&6
   14940 else
   14941   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   14942 
   14943 else
   14944   if test "$ac_cv_type_short" = yes; then
   14945      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14947 as_fn_error 77 "cannot compute sizeof (short)
   14948 See \`config.log' for more details" "$LINENO" 5; }
   14949    else
   14950      ac_cv_sizeof_short=0
   14951    fi
   14952 fi
   14953 
   14954 fi
   14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   14956 $as_echo "$ac_cv_sizeof_short" >&6; }
   14957 
   14958 
   14959 
   14960 cat >>confdefs.h <<_ACEOF
   14961 #define SIZEOF_SHORT $ac_cv_sizeof_short
   14962 _ACEOF
   14963 
   14964 
   14965 # The cast to long int works around a bug in the HP C Compiler
   14966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14968 # This bug is HP SR number 8606223364.
   14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   14970 $as_echo_n "checking size of size_t... " >&6; }
   14971 if ${ac_cv_sizeof_size_t+:} false; then :
   14972   $as_echo_n "(cached) " >&6
   14973 else
   14974   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   14975 
   14976 else
   14977   if test "$ac_cv_type_size_t" = yes; then
   14978      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14980 as_fn_error 77 "cannot compute sizeof (size_t)
   14981 See \`config.log' for more details" "$LINENO" 5; }
   14982    else
   14983      ac_cv_sizeof_size_t=0
   14984    fi
   14985 fi
   14986 
   14987 fi
   14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   14989 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   14990 
   14991 
   14992 
   14993 cat >>confdefs.h <<_ACEOF
   14994 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   14995 _ACEOF
   14996 
   14997 
   14998 # The cast to long int works around a bug in the HP C Compiler
   14999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15001 # This bug is HP SR number 8606223364.
   15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   15003 $as_echo_n "checking size of void *... " >&6; }
   15004 if ${ac_cv_sizeof_void_p+:} false; then :
   15005   $as_echo_n "(cached) " >&6
   15006 else
   15007   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   15008 
   15009 else
   15010   if test "$ac_cv_type_void_p" = yes; then
   15011      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15013 as_fn_error 77 "cannot compute sizeof (void *)
   15014 See \`config.log' for more details" "$LINENO" 5; }
   15015    else
   15016      ac_cv_sizeof_void_p=0
   15017    fi
   15018 fi
   15019 
   15020 fi
   15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   15022 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   15023 
   15024 
   15025 
   15026 cat >>confdefs.h <<_ACEOF
   15027 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   15028 _ACEOF
   15029 
   15030 
   15031 # The cast to long int works around a bug in the HP C Compiler
   15032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15034 # This bug is HP SR number 8606223364.
   15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
   15036 $as_echo_n "checking size of off_t... " >&6; }
   15037 if ${ac_cv_sizeof_off_t+:} false; then :
   15038   $as_echo_n "(cached) " >&6
   15039 else
   15040   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
   15041 
   15042 else
   15043   if test "$ac_cv_type_off_t" = yes; then
   15044      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15046 as_fn_error 77 "cannot compute sizeof (off_t)
   15047 See \`config.log' for more details" "$LINENO" 5; }
   15048    else
   15049      ac_cv_sizeof_off_t=0
   15050    fi
   15051 fi
   15052 
   15053 fi
   15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
   15055 $as_echo "$ac_cv_sizeof_off_t" >&6; }
   15056 
   15057 
   15058 
   15059 cat >>confdefs.h <<_ACEOF
   15060 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
   15061 _ACEOF
   15062 
   15063 
   15064 
   15065 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
   15066 #include <sys/types.h>
   15067 #ifdef HAVE_NETINET_IN_H
   15068 #include <netinet/in.h>
   15069 #endif
   15070 #ifdef HAVE_NETINET_IN6_H
   15071 #include <netinet/in6.h>
   15072 #endif
   15073 #ifdef HAVE_SYS_SOCKET_H
   15074 #include <sys/socket.h>
   15075 #endif
   15076 #ifdef HAVE_NETDB_H
   15077 #include <netdb.h>
   15078 #endif
   15079 #ifdef _WIN32
   15080 #define WIN32_WINNT 0x400
   15081 #define _WIN32_WINNT 0x400
   15082 #define WIN32_LEAN_AND_MEAN
   15083 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15084 #include <winsock.h>
   15085 #else
   15086 #include <winsock2.h>
   15087 #include <ws2tcpip.h>
   15088 #endif
   15089 #endif
   15090 
   15091 "
   15092 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
   15093 
   15094 cat >>confdefs.h <<_ACEOF
   15095 #define HAVE_STRUCT_IN6_ADDR 1
   15096 _ACEOF
   15097 
   15098 
   15099 fi
   15100 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
   15101 #include <sys/types.h>
   15102 #ifdef HAVE_NETINET_IN_H
   15103 #include <netinet/in.h>
   15104 #endif
   15105 #ifdef HAVE_NETINET_IN6_H
   15106 #include <netinet/in6.h>
   15107 #endif
   15108 #ifdef HAVE_SYS_SOCKET_H
   15109 #include <sys/socket.h>
   15110 #endif
   15111 #ifdef HAVE_NETDB_H
   15112 #include <netdb.h>
   15113 #endif
   15114 #ifdef _WIN32
   15115 #define WIN32_WINNT 0x400
   15116 #define _WIN32_WINNT 0x400
   15117 #define WIN32_LEAN_AND_MEAN
   15118 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15119 #include <winsock.h>
   15120 #else
   15121 #include <winsock2.h>
   15122 #include <ws2tcpip.h>
   15123 #endif
   15124 #endif
   15125 
   15126 "
   15127 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
   15128 
   15129 cat >>confdefs.h <<_ACEOF
   15130 #define HAVE_STRUCT_SOCKADDR_IN6 1
   15131 _ACEOF
   15132 
   15133 
   15134 fi
   15135 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
   15136 #include <sys/types.h>
   15137 #ifdef HAVE_NETINET_IN_H
   15138 #include <netinet/in.h>
   15139 #endif
   15140 #ifdef HAVE_NETINET_IN6_H
   15141 #include <netinet/in6.h>
   15142 #endif
   15143 #ifdef HAVE_SYS_SOCKET_H
   15144 #include <sys/socket.h>
   15145 #endif
   15146 #ifdef HAVE_NETDB_H
   15147 #include <netdb.h>
   15148 #endif
   15149 #ifdef _WIN32
   15150 #define WIN32_WINNT 0x400
   15151 #define _WIN32_WINNT 0x400
   15152 #define WIN32_LEAN_AND_MEAN
   15153 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15154 #include <winsock.h>
   15155 #else
   15156 #include <winsock2.h>
   15157 #include <ws2tcpip.h>
   15158 #endif
   15159 #endif
   15160 
   15161 "
   15162 if test "x$ac_cv_type_sa_family_t" = xyes; then :
   15163 
   15164 cat >>confdefs.h <<_ACEOF
   15165 #define HAVE_SA_FAMILY_T 1
   15166 _ACEOF
   15167 
   15168 
   15169 fi
   15170 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
   15171 #include <sys/types.h>
   15172 #ifdef HAVE_NETINET_IN_H
   15173 #include <netinet/in.h>
   15174 #endif
   15175 #ifdef HAVE_NETINET_IN6_H
   15176 #include <netinet/in6.h>
   15177 #endif
   15178 #ifdef HAVE_SYS_SOCKET_H
   15179 #include <sys/socket.h>
   15180 #endif
   15181 #ifdef HAVE_NETDB_H
   15182 #include <netdb.h>
   15183 #endif
   15184 #ifdef _WIN32
   15185 #define WIN32_WINNT 0x400
   15186 #define _WIN32_WINNT 0x400
   15187 #define WIN32_LEAN_AND_MEAN
   15188 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15189 #include <winsock.h>
   15190 #else
   15191 #include <winsock2.h>
   15192 #include <ws2tcpip.h>
   15193 #endif
   15194 #endif
   15195 
   15196 "
   15197 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
   15198 
   15199 cat >>confdefs.h <<_ACEOF
   15200 #define HAVE_STRUCT_ADDRINFO 1
   15201 _ACEOF
   15202 
   15203 
   15204 fi
   15205 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
   15206 #include <sys/types.h>
   15207 #ifdef HAVE_NETINET_IN_H
   15208 #include <netinet/in.h>
   15209 #endif
   15210 #ifdef HAVE_NETINET_IN6_H
   15211 #include <netinet/in6.h>
   15212 #endif
   15213 #ifdef HAVE_SYS_SOCKET_H
   15214 #include <sys/socket.h>
   15215 #endif
   15216 #ifdef HAVE_NETDB_H
   15217 #include <netdb.h>
   15218 #endif
   15219 #ifdef _WIN32
   15220 #define WIN32_WINNT 0x400
   15221 #define _WIN32_WINNT 0x400
   15222 #define WIN32_LEAN_AND_MEAN
   15223 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15224 #include <winsock.h>
   15225 #else
   15226 #include <winsock2.h>
   15227 #include <ws2tcpip.h>
   15228 #endif
   15229 #endif
   15230 
   15231 "
   15232 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
   15233 
   15234 cat >>confdefs.h <<_ACEOF
   15235 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
   15236 _ACEOF
   15237 
   15238 
   15239 fi
   15240 
   15241 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
   15242 #ifdef HAVE_NETINET_IN_H
   15243 #include <netinet/in.h>
   15244 #endif
   15245 #ifdef HAVE_NETINET_IN6_H
   15246 #include <netinet/in6.h>
   15247 #endif
   15248 #ifdef HAVE_SYS_SOCKET_H
   15249 #include <sys/socket.h>
   15250 #endif
   15251 #ifdef _WIN32
   15252 #define WIN32_WINNT 0x400
   15253 #define _WIN32_WINNT 0x400
   15254 #define WIN32_LEAN_AND_MEAN
   15255 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15256 #include <winsock.h>
   15257 #else
   15258 #include <winsock2.h>
   15259 #include <ws2tcpip.h>
   15260 #endif
   15261 #endif
   15262 
   15263 "
   15264 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
   15265 
   15266 cat >>confdefs.h <<_ACEOF
   15267 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
   15268 _ACEOF
   15269 
   15270 
   15271 fi
   15272 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
   15273 #ifdef HAVE_NETINET_IN_H
   15274 #include <netinet/in.h>
   15275 #endif
   15276 #ifdef HAVE_NETINET_IN6_H
   15277 #include <netinet/in6.h>
   15278 #endif
   15279 #ifdef HAVE_SYS_SOCKET_H
   15280 #include <sys/socket.h>
   15281 #endif
   15282 #ifdef _WIN32
   15283 #define WIN32_WINNT 0x400
   15284 #define _WIN32_WINNT 0x400
   15285 #define WIN32_LEAN_AND_MEAN
   15286 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15287 #include <winsock.h>
   15288 #else
   15289 #include <winsock2.h>
   15290 #include <ws2tcpip.h>
   15291 #endif
   15292 #endif
   15293 
   15294 "
   15295 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
   15296 
   15297 cat >>confdefs.h <<_ACEOF
   15298 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
   15299 _ACEOF
   15300 
   15301 
   15302 fi
   15303 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
   15304 #ifdef HAVE_NETINET_IN_H
   15305 #include <netinet/in.h>
   15306 #endif
   15307 #ifdef HAVE_NETINET_IN6_H
   15308 #include <netinet/in6.h>
   15309 #endif
   15310 #ifdef HAVE_SYS_SOCKET_H
   15311 #include <sys/socket.h>
   15312 #endif
   15313 #ifdef _WIN32
   15314 #define WIN32_WINNT 0x400
   15315 #define _WIN32_WINNT 0x400
   15316 #define WIN32_LEAN_AND_MEAN
   15317 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15318 #include <winsock.h>
   15319 #else
   15320 #include <winsock2.h>
   15321 #include <ws2tcpip.h>
   15322 #endif
   15323 #endif
   15324 
   15325 "
   15326 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
   15327 
   15328 cat >>confdefs.h <<_ACEOF
   15329 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
   15330 _ACEOF
   15331 
   15332 
   15333 fi
   15334 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
   15335 #ifdef HAVE_NETINET_IN_H
   15336 #include <netinet/in.h>
   15337 #endif
   15338 #ifdef HAVE_NETINET_IN6_H
   15339 #include <netinet/in6.h>
   15340 #endif
   15341 #ifdef HAVE_SYS_SOCKET_H
   15342 #include <sys/socket.h>
   15343 #endif
   15344 #ifdef _WIN32
   15345 #define WIN32_WINNT 0x400
   15346 #define _WIN32_WINNT 0x400
   15347 #define WIN32_LEAN_AND_MEAN
   15348 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15349 #include <winsock.h>
   15350 #else
   15351 #include <winsock2.h>
   15352 #include <ws2tcpip.h>
   15353 #endif
   15354 #endif
   15355 
   15356 "
   15357 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
   15358 
   15359 cat >>confdefs.h <<_ACEOF
   15360 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
   15361 _ACEOF
   15362 
   15363 
   15364 fi
   15365 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
   15366 #ifdef HAVE_NETINET_IN_H
   15367 #include <netinet/in.h>
   15368 #endif
   15369 #ifdef HAVE_NETINET_IN6_H
   15370 #include <netinet/in6.h>
   15371 #endif
   15372 #ifdef HAVE_SYS_SOCKET_H
   15373 #include <sys/socket.h>
   15374 #endif
   15375 #ifdef _WIN32
   15376 #define WIN32_WINNT 0x400
   15377 #define _WIN32_WINNT 0x400
   15378 #define WIN32_LEAN_AND_MEAN
   15379 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15380 #include <winsock.h>
   15381 #else
   15382 #include <winsock2.h>
   15383 #include <ws2tcpip.h>
   15384 #endif
   15385 #endif
   15386 
   15387 "
   15388 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
   15389 
   15390 cat >>confdefs.h <<_ACEOF
   15391 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
   15392 _ACEOF
   15393 
   15394 
   15395 fi
   15396 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
   15397 #ifdef HAVE_NETINET_IN_H
   15398 #include <netinet/in.h>
   15399 #endif
   15400 #ifdef HAVE_NETINET_IN6_H
   15401 #include <netinet/in6.h>
   15402 #endif
   15403 #ifdef HAVE_SYS_SOCKET_H
   15404 #include <sys/socket.h>
   15405 #endif
   15406 #ifdef _WIN32
   15407 #define WIN32_WINNT 0x400
   15408 #define _WIN32_WINNT 0x400
   15409 #define WIN32_LEAN_AND_MEAN
   15410 #if defined(_MSC_VER) && (_MSC_VER < 1300)
   15411 #include <winsock.h>
   15412 #else
   15413 #include <winsock2.h>
   15414 #include <ws2tcpip.h>
   15415 #endif
   15416 #endif
   15417 
   15418 "
   15419 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
   15420 
   15421 cat >>confdefs.h <<_ACEOF
   15422 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
   15423 _ACEOF
   15424 
   15425 
   15426 fi
   15427 
   15428 
   15429 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
   15430 #ifdef HAVE_SYS_SOCKET_H
   15431 #include <sys/socket.h>
   15432 #endif
   15433 
   15434 "
   15435 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
   15436 
   15437 cat >>confdefs.h <<_ACEOF
   15438 #define HAVE_STRUCT_SO_LINGER 1
   15439 _ACEOF
   15440 
   15441 #define HAVE_SO_LINGER
   15442 fi
   15443 
   15444 
   15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
   15446 $as_echo_n "checking for socklen_t... " >&6; }
   15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15448 /* end confdefs.h.  */
   15449 
   15450  #include <sys/types.h>
   15451  #include <sys/socket.h>
   15452 int
   15453 main ()
   15454 {
   15455 socklen_t x;
   15456   ;
   15457   return 0;
   15458 }
   15459 _ACEOF
   15460 if ac_fn_c_try_compile "$LINENO"; then :
   15461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15462 $as_echo "yes" >&6; }
   15463 else
   15464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15465 $as_echo "no" >&6; }
   15466 
   15467 $as_echo "#define socklen_t unsigned int" >>confdefs.h
   15468 
   15469 
   15470 fi
   15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15472 
   15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
   15474 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
   15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15476 /* end confdefs.h.  */
   15477 
   15478 int
   15479 main ()
   15480 {
   15481  const char *cp = __func__;
   15482   ;
   15483   return 0;
   15484 }
   15485 _ACEOF
   15486 if ac_fn_c_try_compile "$LINENO"; then :
   15487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15488 $as_echo "yes" >&6; }
   15489 else
   15490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15491 $as_echo "no" >&6; }
   15492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
   15493 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
   15494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15495 /* end confdefs.h.  */
   15496 
   15497 int
   15498 main ()
   15499 {
   15500  const char *cp = __FUNCTION__;
   15501   ;
   15502   return 0;
   15503 }
   15504 _ACEOF
   15505 if ac_fn_c_try_compile "$LINENO"; then :
   15506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15507 $as_echo "yes" >&6; }
   15508 
   15509 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
   15510 
   15511 else
   15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15513 $as_echo "no" >&6; }
   15514 
   15515 $as_echo "#define __func__ __FILE__" >>confdefs.h
   15516 
   15517 fi
   15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15519 fi
   15520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15521 
   15522 
   15523 # check if we can compile with pthreads
   15524 have_pthreads=no
   15525 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
   15526 
   15527 
   15528 
   15529 ac_ext=c
   15530 ac_cpp='$CPP $CPPFLAGS'
   15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15534 
   15535 acx_pthread_ok=no
   15536 
   15537 # We used to check for pthread.h first, but this fails if pthread.h
   15538 # requires special compiler flags (e.g. on True64 or Sequent).
   15539 # It gets checked for in the link test anyway.
   15540 
   15541 # First of all, check if the user has set any of the PTHREAD_LIBS,
   15542 # etcetera environment variables, and if threads linking works using
   15543 # them:
   15544 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   15545         save_CFLAGS="$CFLAGS"
   15546         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15547         save_LIBS="$LIBS"
   15548         LIBS="$PTHREAD_LIBS $LIBS"
   15549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
   15550 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
   15551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15552 /* end confdefs.h.  */
   15553 
   15554 /* Override any GCC internal prototype to avoid an error.
   15555    Use char because int might match the return type of a GCC
   15556    builtin and then its argument prototype would still apply.  */
   15557 #ifdef __cplusplus
   15558 extern "C"
   15559 #endif
   15560 char pthread_join ();
   15561 int
   15562 main ()
   15563 {
   15564 return pthread_join ();
   15565   ;
   15566   return 0;
   15567 }
   15568 _ACEOF
   15569 if ac_fn_c_try_link "$LINENO"; then :
   15570   acx_pthread_ok=yes
   15571 fi
   15572 rm -f core conftest.err conftest.$ac_objext \
   15573     conftest$ac_exeext conftest.$ac_ext
   15574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
   15575 $as_echo "$acx_pthread_ok" >&6; }
   15576         if test x"$acx_pthread_ok" = xno; then
   15577                 PTHREAD_LIBS=""
   15578                 PTHREAD_CFLAGS=""
   15579         fi
   15580         LIBS="$save_LIBS"
   15581         CFLAGS="$save_CFLAGS"
   15582 fi
   15583 
   15584 # We must check for the threads library under a number of different
   15585 # names; the ordering is very important because some systems
   15586 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   15587 # libraries is broken (non-POSIX).
   15588 
   15589 # Create a list of thread flags to try.  Items starting with a "-" are
   15590 # C compiler flags, and other items are library names, except for "none"
   15591 # which indicates that we try without any flags at all, and "pthread-config"
   15592 # which is a program returning the flags for the Pth emulation library.
   15593 
   15594 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   15595 
   15596 # The ordering *is* (sometimes) important.  Some notes on the
   15597 # individual items follow:
   15598 
   15599 # pthreads: AIX (must check this before -lpthread)
   15600 # none: in case threads are in libc; should be tried before -Kthread and
   15601 #       other compiler flags to prevent continual compiler warnings
   15602 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   15603 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   15604 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   15605 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   15606 # -pthreads: Solaris/gcc
   15607 # -mthreads: Mingw32/gcc, Lynx/gcc
   15608 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   15609 #      doesn't hurt to check since this sometimes defines pthreads too;
   15610 #      also defines -D_REENTRANT)
   15611 #      ... -mt is also the pthreads flag for HP/aCC
   15612 # pthread: Linux, etcetera
   15613 # --thread-safe: KAI C++
   15614 # pthread-config: use pthread-config program (for GNU Pth library)
   15615 
   15616 case "${host_cpu}-${host_os}" in
   15617         *solaris*)
   15618 
   15619         # On Solaris (at least, for some versions), libc contains stubbed
   15620         # (non-functional) versions of the pthreads routines, so link-based
   15621         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
   15622         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   15623         # a function called by this macro, so we could check for that, but
   15624         # who knows whether they'll stub that too in a future libc.)  So,
   15625         # we'll just look for -pthreads and -lpthread first:
   15626 
   15627         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
   15628         ;;
   15629 esac
   15630 
   15631 if test x"$acx_pthread_ok" = xno; then
   15632 for flag in $acx_pthread_flags; do
   15633 
   15634         case $flag in
   15635                 none)
   15636                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   15637 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   15638                 ;;
   15639 
   15640                 -*)
   15641                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
   15642 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
   15643                 PTHREAD_CFLAGS="$flag"
   15644                 ;;
   15645 
   15646 		pthread-config)
   15647 		# Extract the first word of "pthread-config", so it can be a program name with args.
   15648 set dummy pthread-config; ac_word=$2
   15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15650 $as_echo_n "checking for $ac_word... " >&6; }
   15651 if ${ac_cv_prog_acx_pthread_config+:} false; then :
   15652   $as_echo_n "(cached) " >&6
   15653 else
   15654   if test -n "$acx_pthread_config"; then
   15655   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
   15656 else
   15657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15658 for as_dir in $PATH
   15659 do
   15660   IFS=$as_save_IFS
   15661   test -z "$as_dir" && as_dir=.
   15662     for ac_exec_ext in '' $ac_executable_extensions; do
   15663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15664     ac_cv_prog_acx_pthread_config="yes"
   15665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15666     break 2
   15667   fi
   15668 done
   15669   done
   15670 IFS=$as_save_IFS
   15671 
   15672   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
   15673 fi
   15674 fi
   15675 acx_pthread_config=$ac_cv_prog_acx_pthread_config
   15676 if test -n "$acx_pthread_config"; then
   15677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
   15678 $as_echo "$acx_pthread_config" >&6; }
   15679 else
   15680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15681 $as_echo "no" >&6; }
   15682 fi
   15683 
   15684 
   15685 		if test x"$acx_pthread_config" = xno; then continue; fi
   15686 		PTHREAD_CFLAGS="`pthread-config --cflags`"
   15687 		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   15688 		;;
   15689 
   15690                 *)
   15691                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
   15692 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
   15693                 PTHREAD_LIBS="-l$flag"
   15694                 ;;
   15695         esac
   15696 
   15697         save_LIBS="$LIBS"
   15698         save_CFLAGS="$CFLAGS"
   15699         LIBS="$PTHREAD_LIBS $LIBS"
   15700         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15701 
   15702         # Check for various functions.  We must include pthread.h,
   15703         # since some functions may be macros.  (On the Sequent, we
   15704         # need a special flag -Kthread to make this header compile.)
   15705         # We check for pthread_join because it is in -lpthread on IRIX
   15706         # while pthread_create is in libc.  We check for pthread_attr_init
   15707         # due to DEC craziness with -lpthreads.  We check for
   15708         # pthread_cleanup_push because it is one of the few pthread
   15709         # functions on Solaris that doesn't have a non-functional libc stub.
   15710         # We try pthread_create on general principles.
   15711         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15712 /* end confdefs.h.  */
   15713 #include <pthread.h>
   15714 int
   15715 main ()
   15716 {
   15717 pthread_t th; pthread_join(th, 0);
   15718                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
   15719                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
   15720   ;
   15721   return 0;
   15722 }
   15723 _ACEOF
   15724 if ac_fn_c_try_link "$LINENO"; then :
   15725   acx_pthread_ok=yes
   15726 fi
   15727 rm -f core conftest.err conftest.$ac_objext \
   15728     conftest$ac_exeext conftest.$ac_ext
   15729 
   15730         LIBS="$save_LIBS"
   15731         CFLAGS="$save_CFLAGS"
   15732 
   15733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
   15734 $as_echo "$acx_pthread_ok" >&6; }
   15735         if test "x$acx_pthread_ok" = xyes; then
   15736                 break;
   15737         fi
   15738 
   15739         PTHREAD_LIBS=""
   15740         PTHREAD_CFLAGS=""
   15741 done
   15742 fi
   15743 
   15744 # Various other checks:
   15745 if test "x$acx_pthread_ok" = xyes; then
   15746         save_LIBS="$LIBS"
   15747         LIBS="$PTHREAD_LIBS $LIBS"
   15748         save_CFLAGS="$CFLAGS"
   15749         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15750 
   15751         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   15752 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   15753 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   15754 	attr_name=unknown
   15755 	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   15756 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15757 /* end confdefs.h.  */
   15758 #include <pthread.h>
   15759 int
   15760 main ()
   15761 {
   15762 int attr=$attr; return attr;
   15763   ;
   15764   return 0;
   15765 }
   15766 _ACEOF
   15767 if ac_fn_c_try_link "$LINENO"; then :
   15768   attr_name=$attr; break
   15769 fi
   15770 rm -f core conftest.err conftest.$ac_objext \
   15771     conftest$ac_exeext conftest.$ac_ext
   15772 	done
   15773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
   15774 $as_echo "$attr_name" >&6; }
   15775         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
   15776 
   15777 cat >>confdefs.h <<_ACEOF
   15778 #define PTHREAD_CREATE_JOINABLE $attr_name
   15779 _ACEOF
   15780 
   15781         fi
   15782 
   15783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
   15784 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
   15785         flag=no
   15786         case "${host_cpu}-${host_os}" in
   15787             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
   15788             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
   15789         esac
   15790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
   15791 $as_echo "${flag}" >&6; }
   15792         if test "x$flag" != xno; then
   15793             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   15794         fi
   15795 
   15796         LIBS="$save_LIBS"
   15797         CFLAGS="$save_CFLAGS"
   15798 
   15799         # More AIX lossage: must compile with xlc_r or cc_r
   15800 	if test x"$GCC" != xyes; then
   15801           for ac_prog in xlc_r cc_r
   15802 do
   15803   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15804 set dummy $ac_prog; ac_word=$2
   15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15806 $as_echo_n "checking for $ac_word... " >&6; }
   15807 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   15808   $as_echo_n "(cached) " >&6
   15809 else
   15810   if test -n "$PTHREAD_CC"; then
   15811   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   15812 else
   15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15814 for as_dir in $PATH
   15815 do
   15816   IFS=$as_save_IFS
   15817   test -z "$as_dir" && as_dir=.
   15818     for ac_exec_ext in '' $ac_executable_extensions; do
   15819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15820     ac_cv_prog_PTHREAD_CC="$ac_prog"
   15821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15822     break 2
   15823   fi
   15824 done
   15825   done
   15826 IFS=$as_save_IFS
   15827 
   15828 fi
   15829 fi
   15830 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   15831 if test -n "$PTHREAD_CC"; then
   15832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   15833 $as_echo "$PTHREAD_CC" >&6; }
   15834 else
   15835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15836 $as_echo "no" >&6; }
   15837 fi
   15838 
   15839 
   15840   test -n "$PTHREAD_CC" && break
   15841 done
   15842 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
   15843 
   15844         else
   15845           PTHREAD_CC=$CC
   15846 	fi
   15847 else
   15848         PTHREAD_CC="$CC"
   15849 fi
   15850 
   15851 
   15852 
   15853 
   15854 
   15855 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15856 if test x"$acx_pthread_ok" = xyes; then
   15857 
   15858 
   15859 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
   15860 
   15861 	have_pthreads=yes
   15862         :
   15863 else
   15864         acx_pthread_ok=no
   15865 
   15866 fi
   15867 ac_ext=c
   15868 ac_cpp='$CPP $CPPFLAGS'
   15869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15872 
   15873 
   15874   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15875   # The cast to long int works around a bug in the HP C Compiler
   15876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   15877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   15878 # This bug is HP SR number 8606223364.
   15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   15880 $as_echo_n "checking size of pthread_t... " >&6; }
   15881 if ${ac_cv_sizeof_pthread_t+:} false; then :
   15882   $as_echo_n "(cached) " >&6
   15883 else
   15884   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
   15885       #include <pthread.h>
   15886 
   15887 "; then :
   15888 
   15889 else
   15890   if test "$ac_cv_type_pthread_t" = yes; then
   15891      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15893 as_fn_error 77 "cannot compute sizeof (pthread_t)
   15894 See \`config.log' for more details" "$LINENO" 5; }
   15895    else
   15896      ac_cv_sizeof_pthread_t=0
   15897    fi
   15898 fi
   15899 
   15900 fi
   15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   15902 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
   15903 
   15904 
   15905 
   15906 cat >>confdefs.h <<_ACEOF
   15907 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
   15908 _ACEOF
   15909 
   15910 
   15911 fi
   15912  if test "$enable_thread_support" != "no"; then
   15913   THREADS_TRUE=
   15914   THREADS_FALSE='#'
   15915 else
   15916   THREADS_TRUE='#'
   15917   THREADS_FALSE=
   15918 fi
   15919 
   15920  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
   15921   PTHREADS_TRUE=
   15922   PTHREADS_FALSE='#'
   15923 else
   15924   PTHREADS_TRUE='#'
   15925   PTHREADS_FALSE=
   15926 fi
   15927 
   15928 
   15929 # check if we should compile locking into the library
   15930 if test x$enable_thread_support = xno; then
   15931 
   15932 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
   15933 
   15934 fi
   15935 
   15936 # check if we should hard-code the mm functions.
   15937 if test x$enable_malloc_replacement = xno; then
   15938 
   15939 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
   15940 
   15941 fi
   15942 
   15943 # check if we should hard-code debugging out
   15944 if test x$enable_debug_mode = xno; then
   15945 
   15946 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
   15947 
   15948 fi
   15949 
   15950 # check if we should enable verbose debugging
   15951 if test x$enable_verbose_debug = xyes; then
   15952 	CFLAGS="$CFLAGS -DUSE_DEBUG"
   15953 fi
   15954 
   15955 # check if we have and should use openssl
   15956  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
   15957   OPENSSL_TRUE=
   15958   OPENSSL_FALSE='#'
   15959 else
   15960   OPENSSL_TRUE='#'
   15961   OPENSSL_FALSE=
   15962 fi
   15963 
   15964 if test "x$enable_openssl" = "xyes"; then
   15965 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ERR_remove_thread_state" >&5
   15966 $as_echo_n "checking for library containing ERR_remove_thread_state... " >&6; }
   15967 if ${ac_cv_search_ERR_remove_thread_state+:} false; then :
   15968   $as_echo_n "(cached) " >&6
   15969 else
   15970   ac_func_search_save_LIBS=$LIBS
   15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15972 /* end confdefs.h.  */
   15973 
   15974 /* Override any GCC internal prototype to avoid an error.
   15975    Use char because int might match the return type of a GCC
   15976    builtin and then its argument prototype would still apply.  */
   15977 #ifdef __cplusplus
   15978 extern "C"
   15979 #endif
   15980 char ERR_remove_thread_state ();
   15981 int
   15982 main ()
   15983 {
   15984 return ERR_remove_thread_state ();
   15985   ;
   15986   return 0;
   15987 }
   15988 _ACEOF
   15989 for ac_lib in '' crypto eay32; do
   15990   if test -z "$ac_lib"; then
   15991     ac_res="none required"
   15992   else
   15993     ac_res=-l$ac_lib
   15994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15995   fi
   15996   if ac_fn_c_try_link "$LINENO"; then :
   15997   ac_cv_search_ERR_remove_thread_state=$ac_res
   15998 fi
   15999 rm -f core conftest.err conftest.$ac_objext \
   16000     conftest$ac_exeext
   16001   if ${ac_cv_search_ERR_remove_thread_state+:} false; then :
   16002   break
   16003 fi
   16004 done
   16005 if ${ac_cv_search_ERR_remove_thread_state+:} false; then :
   16006 
   16007 else
   16008   ac_cv_search_ERR_remove_thread_state=no
   16009 fi
   16010 rm conftest.$ac_ext
   16011 LIBS=$ac_func_search_save_LIBS
   16012 fi
   16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ERR_remove_thread_state" >&5
   16014 $as_echo "$ac_cv_search_ERR_remove_thread_state" >&6; }
   16015 ac_res=$ac_cv_search_ERR_remove_thread_state
   16016 if test "$ac_res" != no; then :
   16017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16018 
   16019 $as_echo "#define HAVE_ERR_REMOVE_THREAD_STATE 1" >>confdefs.h
   16020 
   16021 fi
   16022 
   16023 fi
   16024 
   16025 # Add some more warnings which we use in development but not in the
   16026 # released versions.  (Some relevant gcc versions can't handle these.)
   16027 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
   16028 
   16029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16030 /* end confdefs.h.  */
   16031 
   16032 int
   16033 main ()
   16034 {
   16035 
   16036 #if !defined(__GNUC__) || (__GNUC__ < 4)
   16037 #error
   16038 #endif
   16039   ;
   16040   return 0;
   16041 }
   16042 _ACEOF
   16043 if ac_fn_c_try_compile "$LINENO"; then :
   16044   have_gcc4=yes
   16045 else
   16046   have_gcc4=no
   16047 fi
   16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16049 
   16050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16051 /* end confdefs.h.  */
   16052 
   16053 int
   16054 main ()
   16055 {
   16056 
   16057 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
   16058 #error
   16059 #endif
   16060   ;
   16061   return 0;
   16062 }
   16063 _ACEOF
   16064 if ac_fn_c_try_compile "$LINENO"; then :
   16065   have_gcc42=yes
   16066 else
   16067   have_gcc42=no
   16068 fi
   16069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16070 
   16071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16072 /* end confdefs.h.  */
   16073 
   16074 int
   16075 main ()
   16076 {
   16077 
   16078 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
   16079 #error
   16080 #endif
   16081   ;
   16082   return 0;
   16083 }
   16084 _ACEOF
   16085 if ac_fn_c_try_compile "$LINENO"; then :
   16086   have_gcc45=yes
   16087 else
   16088   have_gcc45=no
   16089 fi
   16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16091 
   16092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16093 /* end confdefs.h.  */
   16094 
   16095 int
   16096 main ()
   16097 {
   16098 
   16099 #if !defined(__clang__)
   16100 #error
   16101 #endif
   16102   ;
   16103   return 0;
   16104 }
   16105 _ACEOF
   16106 if ac_fn_c_try_compile "$LINENO"; then :
   16107   have_clang=yes
   16108 else
   16109   have_clang=no
   16110 fi
   16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16112 
   16113   CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch"
   16114   if test x$enable_gcc_warnings = xyes; then
   16115     CFLAGS="$CFLAGS -Werror"
   16116   fi
   16117 
   16118   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
   16119 
   16120   if test x$have_gcc4 = xyes ; then
   16121     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
   16122     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
   16123     #CFLAGS="$CFLAGS -Wold-style-definition"
   16124   fi
   16125 
   16126   if test x$have_gcc42 = xyes ; then
   16127     # These warnings break gcc 4.0.2 and work on gcc 4.2
   16128     CFLAGS="$CFLAGS -Waddress"
   16129   fi
   16130 
   16131   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
   16132     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
   16133     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
   16134   fi
   16135 
   16136   if test x$have_gcc45 = xyes ; then
   16137     # These warnings work on gcc 4.5
   16138     CFLAGS="$CFLAGS -Wlogical-op"
   16139   fi
   16140 
   16141   if test x$have_clang = xyes; then
   16142     # Disable the unused-function warnings, because these trigger
   16143     # for minheap-internal.h related code.
   16144     CFLAGS="$CFLAGS -Wno-unused-function"
   16145 
   16146     # clang on macosx emits warnigns for each directory specified which
   16147     # isn't "used" generating a lot of build noise (typically 3 warnings
   16148     # per file
   16149     case "$host_os" in
   16150         darwin*)
   16151             CFLAGS="$CFLAGS -Qunused-arguments"
   16152         ;;
   16153     esac
   16154   fi
   16155 
   16156 ##This will break the world on some 64-bit architectures
   16157 # CFLAGS="$CFLAGS -Winline"
   16158 
   16159 fi
   16160 
   16161 LIBEVENT_GC_SECTIONS=
   16162 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
   16163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
   16164 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
   16165 if ${libevent_cv_gc_sections_runs+:} false; then :
   16166   $as_echo_n "(cached) " >&6
   16167 else
   16168 
   16169 	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
   16170 	    CFLAGS="$CFLAGS -Wl,--gc-sections"
   16171 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16172 /* end confdefs.h.  */
   16173 
   16174 			#include <stdlib.h>
   16175 			#include <stdio.h>
   16176 
   16177 int
   16178 main ()
   16179 {
   16180 
   16181 			FILE *	fpC;
   16182 			char	buf[32];
   16183 			size_t	cch;
   16184 			int	read_success_once;
   16185 
   16186 			fpC = fopen("conftest.c", "r");
   16187 			if (NULL == fpC)
   16188 				exit(1);
   16189 			do {
   16190 				cch = fread(buf, sizeof(buf), 1, fpC);
   16191 				read_success_once |= (0 != cch);
   16192 			} while (0 != cch);
   16193 			if (!read_success_once)
   16194 				exit(2);
   16195 			if (!feof(fpC))
   16196 				exit(3);
   16197 			if (0 != fclose(fpC))
   16198 				exit(4);
   16199 
   16200 			exit(EXIT_SUCCESS);
   16201 
   16202 
   16203   ;
   16204   return 0;
   16205 }
   16206 _ACEOF
   16207 if ac_fn_c_try_link "$LINENO"; then :
   16208 
   16209                                                             		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
   16210 			libevent_cv_gc_sections_runs=no
   16211 		    else
   16212 			libevent_cv_gc_sections_runs=no
   16213 			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
   16214 		    fi
   16215 
   16216 else
   16217   libevent_cv_gc_sections_runs=no
   16218 
   16219 fi
   16220 rm -f core conftest.err conftest.$ac_objext \
   16221     conftest$ac_exeext conftest.$ac_ext
   16222 	    CFLAGS="$origCFLAGS"
   16223 	    { origCFLAGS=; unset origCFLAGS;}
   16224 
   16225 
   16226 fi
   16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
   16228 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
   16229     case "$libevent_cv_gc_sections_runs" in
   16230      yes)
   16231 	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
   16232 	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
   16233 	;;
   16234     esac
   16235 fi
   16236 
   16237 
   16238  if test "$enable_libevent_install" = "yes"; then
   16239   INSTALL_LIBEVENT_TRUE=
   16240   INSTALL_LIBEVENT_FALSE='#'
   16241 else
   16242   INSTALL_LIBEVENT_TRUE='#'
   16243   INSTALL_LIBEVENT_FALSE=
   16244 fi
   16245 
   16246 
   16247 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
   16248 
   16249 ac_config_files="$ac_config_files Makefile"
   16250 
   16251 cat >confcache <<\_ACEOF
   16252 # This file is a shell script that caches the results of configure
   16253 # tests run on this system so they can be shared between configure
   16254 # scripts and configure runs, see configure's option --config-cache.
   16255 # It is not useful on other systems.  If it contains results you don't
   16256 # want to keep, you may remove or edit it.
   16257 #
   16258 # config.status only pays attention to the cache file if you give it
   16259 # the --recheck option to rerun configure.
   16260 #
   16261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   16262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   16263 # following values.
   16264 
   16265 _ACEOF
   16266 
   16267 # The following way of writing the cache mishandles newlines in values,
   16268 # but we know of no workaround that is simple, portable, and efficient.
   16269 # So, we kill variables containing newlines.
   16270 # Ultrix sh set writes to stderr and can't be redirected directly,
   16271 # and sets the high bit in the cache file unless we assign to the vars.
   16272 (
   16273   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   16274     eval ac_val=\$$ac_var
   16275     case $ac_val in #(
   16276     *${as_nl}*)
   16277       case $ac_var in #(
   16278       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   16279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   16280       esac
   16281       case $ac_var in #(
   16282       _ | IFS | as_nl) ;; #(
   16283       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   16284       *) { eval $ac_var=; unset $ac_var;} ;;
   16285       esac ;;
   16286     esac
   16287   done
   16288 
   16289   (set) 2>&1 |
   16290     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   16291     *${as_nl}ac_space=\ *)
   16292       # `set' does not quote correctly, so add quotes: double-quote
   16293       # substitution turns \\\\ into \\, and sed turns \\ into \.
   16294       sed -n \
   16295 	"s/'/'\\\\''/g;
   16296 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   16297       ;; #(
   16298     *)
   16299       # `set' quotes correctly as required by POSIX, so do not add quotes.
   16300       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   16301       ;;
   16302     esac |
   16303     sort
   16304 ) |
   16305   sed '
   16306      /^ac_cv_env_/b end
   16307      t clear
   16308      :clear
   16309      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   16310      t end
   16311      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   16312      :end' >>confcache
   16313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   16314   if test -w "$cache_file"; then
   16315     if test "x$cache_file" != "x/dev/null"; then
   16316       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   16317 $as_echo "$as_me: updating cache $cache_file" >&6;}
   16318       if test ! -f "$cache_file" || test -h "$cache_file"; then
   16319 	cat confcache >"$cache_file"
   16320       else
   16321         case $cache_file in #(
   16322         */* | ?:*)
   16323 	  mv -f confcache "$cache_file"$$ &&
   16324 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   16325         *)
   16326 	  mv -f confcache "$cache_file" ;;
   16327 	esac
   16328       fi
   16329     fi
   16330   else
   16331     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   16332 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   16333   fi
   16334 fi
   16335 rm -f confcache
   16336 
   16337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   16338 # Let make expand exec_prefix.
   16339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16340 
   16341 DEFS=-DHAVE_CONFIG_H
   16342 
   16343 ac_libobjs=
   16344 ac_ltlibobjs=
   16345 U=
   16346 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   16347   # 1. Remove the extension, and $U if already installed.
   16348   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   16349   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   16350   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   16351   #    will be set to the directory where LIBOBJS objects are built.
   16352   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   16353   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   16354 done
   16355 LIBOBJS=$ac_libobjs
   16356 
   16357 LTLIBOBJS=$ac_ltlibobjs
   16358 
   16359 
   16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   16361 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   16362    if test -n "$am_sleep_pid"; then
   16363      # Hide warnings about reused PIDs.
   16364      wait $am_sleep_pid 2>/dev/null
   16365    fi
   16366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   16367 $as_echo "done" >&6; }
   16368  if test -n "$EXEEXT"; then
   16369   am__EXEEXT_TRUE=
   16370   am__EXEEXT_FALSE='#'
   16371 else
   16372   am__EXEEXT_TRUE='#'
   16373   am__EXEEXT_FALSE=
   16374 fi
   16375 
   16376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   16377   as_fn_error $? "conditional \"AMDEP\" was never defined.
   16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16379 fi
   16380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   16381   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16383 fi
   16384 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
   16385   as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
   16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16387 fi
   16388 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
   16389   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
   16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16391 fi
   16392 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
   16393   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
   16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16395 fi
   16396 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
   16397   as_fn_error $? "conditional \"OPENSSL\" was never defined.
   16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16399 fi
   16400 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
   16401   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
   16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16403 fi
   16404 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
   16405   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
   16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16407 fi
   16408 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
   16409   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
   16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16411 fi
   16412 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
   16413   as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
   16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16415 fi
   16416 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
   16417   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
   16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16419 fi
   16420 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
   16421   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
   16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16423 fi
   16424 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
   16425   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
   16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16427 fi
   16428 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
   16429   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
   16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16431 fi
   16432 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
   16433   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
   16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16435 fi
   16436 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
   16437   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
   16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16439 fi
   16440 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
   16441   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
   16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16443 fi
   16444 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
   16445   as_fn_error $? "conditional \"THREADS\" was never defined.
   16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16447 fi
   16448 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
   16449   as_fn_error $? "conditional \"PTHREADS\" was never defined.
   16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16451 fi
   16452 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
   16453   as_fn_error $? "conditional \"OPENSSL\" was never defined.
   16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16455 fi
   16456 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
   16457   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
   16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16459 fi
   16460 
   16461 : "${CONFIG_STATUS=./config.status}"
   16462 ac_write_fail=0
   16463 ac_clean_files_save=$ac_clean_files
   16464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   16465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   16466 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   16467 as_write_fail=0
   16468 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   16469 #! $SHELL
   16470 # Generated by $as_me.
   16471 # Run this file to recreate the current configuration.
   16472 # Compiler output produced by configure, useful for debugging
   16473 # configure, is in config.log if it exists.
   16474 
   16475 debug=false
   16476 ac_cs_recheck=false
   16477 ac_cs_silent=false
   16478 
   16479 SHELL=\${CONFIG_SHELL-$SHELL}
   16480 export SHELL
   16481 _ASEOF
   16482 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   16483 ## -------------------- ##
   16484 ## M4sh Initialization. ##
   16485 ## -------------------- ##
   16486 
   16487 # Be more Bourne compatible
   16488 DUALCASE=1; export DUALCASE # for MKS sh
   16489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   16490   emulate sh
   16491   NULLCMD=:
   16492   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   16493   # is contrary to our usage.  Disable this feature.
   16494   alias -g '${1+"$@"}'='"$@"'
   16495   setopt NO_GLOB_SUBST
   16496 else
   16497   case `(set -o) 2>/dev/null` in #(
   16498   *posix*) :
   16499     set -o posix ;; #(
   16500   *) :
   16501      ;;
   16502 esac
   16503 fi
   16504 
   16505 
   16506 as_nl='
   16507 '
   16508 export as_nl
   16509 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   16510 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   16511 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   16512 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   16513 # Prefer a ksh shell builtin over an external printf program on Solaris,
   16514 # but without wasting forks for bash or zsh.
   16515 if test -z "$BASH_VERSION$ZSH_VERSION" \
   16516     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   16517   as_echo='print -r --'
   16518   as_echo_n='print -rn --'
   16519 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   16520   as_echo='printf %s\n'
   16521   as_echo_n='printf %s'
   16522 else
   16523   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   16524     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   16525     as_echo_n='/usr/ucb/echo -n'
   16526   else
   16527     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   16528     as_echo_n_body='eval
   16529       arg=$1;
   16530       case $arg in #(
   16531       *"$as_nl"*)
   16532 	expr "X$arg" : "X\\(.*\\)$as_nl";
   16533 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   16534       esac;
   16535       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   16536     '
   16537     export as_echo_n_body
   16538     as_echo_n='sh -c $as_echo_n_body as_echo'
   16539   fi
   16540   export as_echo_body
   16541   as_echo='sh -c $as_echo_body as_echo'
   16542 fi
   16543 
   16544 # The user is always right.
   16545 if test "${PATH_SEPARATOR+set}" != set; then
   16546   PATH_SEPARATOR=:
   16547   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   16548     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   16549       PATH_SEPARATOR=';'
   16550   }
   16551 fi
   16552 
   16553 
   16554 # IFS
   16555 # We need space, tab and new line, in precisely that order.  Quoting is
   16556 # there to prevent editors from complaining about space-tab.
   16557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   16558 # splitting by setting IFS to empty value.)
   16559 IFS=" ""	$as_nl"
   16560 
   16561 # Find who we are.  Look in the path if we contain no directory separator.
   16562 as_myself=
   16563 case $0 in #((
   16564   *[\\/]* ) as_myself=$0 ;;
   16565   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16566 for as_dir in $PATH
   16567 do
   16568   IFS=$as_save_IFS
   16569   test -z "$as_dir" && as_dir=.
   16570     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   16571   done
   16572 IFS=$as_save_IFS
   16573 
   16574      ;;
   16575 esac
   16576 # We did not find ourselves, most probably we were run as `sh COMMAND'
   16577 # in which case we are not to be found in the path.
   16578 if test "x$as_myself" = x; then
   16579   as_myself=$0
   16580 fi
   16581 if test ! -f "$as_myself"; then
   16582   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   16583   exit 1
   16584 fi
   16585 
   16586 # Unset variables that we do not need and which cause bugs (e.g. in
   16587 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   16588 # suppresses any "Segmentation fault" message there.  '((' could
   16589 # trigger a bug in pdksh 5.2.14.
   16590 for as_var in BASH_ENV ENV MAIL MAILPATH
   16591 do eval test x\${$as_var+set} = xset \
   16592   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   16593 done
   16594 PS1='$ '
   16595 PS2='> '
   16596 PS4='+ '
   16597 
   16598 # NLS nuisances.
   16599 LC_ALL=C
   16600 export LC_ALL
   16601 LANGUAGE=C
   16602 export LANGUAGE
   16603 
   16604 # CDPATH.
   16605 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   16606 
   16607 
   16608 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   16609 # ----------------------------------------
   16610 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   16611 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   16612 # script with STATUS, using 1 if that was 0.
   16613 as_fn_error ()
   16614 {
   16615   as_status=$1; test $as_status -eq 0 && as_status=1
   16616   if test "$4"; then
   16617     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   16618     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   16619   fi
   16620   $as_echo "$as_me: error: $2" >&2
   16621   as_fn_exit $as_status
   16622 } # as_fn_error
   16623 
   16624 
   16625 # as_fn_set_status STATUS
   16626 # -----------------------
   16627 # Set $? to STATUS, without forking.
   16628 as_fn_set_status ()
   16629 {
   16630   return $1
   16631 } # as_fn_set_status
   16632 
   16633 # as_fn_exit STATUS
   16634 # -----------------
   16635 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   16636 as_fn_exit ()
   16637 {
   16638   set +e
   16639   as_fn_set_status $1
   16640   exit $1
   16641 } # as_fn_exit
   16642 
   16643 # as_fn_unset VAR
   16644 # ---------------
   16645 # Portably unset VAR.
   16646 as_fn_unset ()
   16647 {
   16648   { eval $1=; unset $1;}
   16649 }
   16650 as_unset=as_fn_unset
   16651 # as_fn_append VAR VALUE
   16652 # ----------------------
   16653 # Append the text in VALUE to the end of the definition contained in VAR. Take
   16654 # advantage of any shell optimizations that allow amortized linear growth over
   16655 # repeated appends, instead of the typical quadratic growth present in naive
   16656 # implementations.
   16657 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   16658   eval 'as_fn_append ()
   16659   {
   16660     eval $1+=\$2
   16661   }'
   16662 else
   16663   as_fn_append ()
   16664   {
   16665     eval $1=\$$1\$2
   16666   }
   16667 fi # as_fn_append
   16668 
   16669 # as_fn_arith ARG...
   16670 # ------------------
   16671 # Perform arithmetic evaluation on the ARGs, and store the result in the
   16672 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   16673 # must be portable across $(()) and expr.
   16674 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   16675   eval 'as_fn_arith ()
   16676   {
   16677     as_val=$(( $* ))
   16678   }'
   16679 else
   16680   as_fn_arith ()
   16681   {
   16682     as_val=`expr "$@" || test $? -eq 1`
   16683   }
   16684 fi # as_fn_arith
   16685 
   16686 
   16687 if expr a : '\(a\)' >/dev/null 2>&1 &&
   16688    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   16689   as_expr=expr
   16690 else
   16691   as_expr=false
   16692 fi
   16693 
   16694 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   16695   as_basename=basename
   16696 else
   16697   as_basename=false
   16698 fi
   16699 
   16700 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   16701   as_dirname=dirname
   16702 else
   16703   as_dirname=false
   16704 fi
   16705 
   16706 as_me=`$as_basename -- "$0" ||
   16707 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   16708 	 X"$0" : 'X\(//\)$' \| \
   16709 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   16710 $as_echo X/"$0" |
   16711     sed '/^.*\/\([^/][^/]*\)\/*$/{
   16712 	    s//\1/
   16713 	    q
   16714 	  }
   16715 	  /^X\/\(\/\/\)$/{
   16716 	    s//\1/
   16717 	    q
   16718 	  }
   16719 	  /^X\/\(\/\).*/{
   16720 	    s//\1/
   16721 	    q
   16722 	  }
   16723 	  s/.*/./; q'`
   16724 
   16725 # Avoid depending upon Character Ranges.
   16726 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   16727 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   16728 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   16729 as_cr_digits='0123456789'
   16730 as_cr_alnum=$as_cr_Letters$as_cr_digits
   16731 
   16732 ECHO_C= ECHO_N= ECHO_T=
   16733 case `echo -n x` in #(((((
   16734 -n*)
   16735   case `echo 'xy\c'` in
   16736   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   16737   xy)  ECHO_C='\c';;
   16738   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   16739        ECHO_T='	';;
   16740   esac;;
   16741 *)
   16742   ECHO_N='-n';;
   16743 esac
   16744 
   16745 rm -f conf$$ conf$$.exe conf$$.file
   16746 if test -d conf$$.dir; then
   16747   rm -f conf$$.dir/conf$$.file
   16748 else
   16749   rm -f conf$$.dir
   16750   mkdir conf$$.dir 2>/dev/null
   16751 fi
   16752 if (echo >conf$$.file) 2>/dev/null; then
   16753   if ln -s conf$$.file conf$$ 2>/dev/null; then
   16754     as_ln_s='ln -s'
   16755     # ... but there are two gotchas:
   16756     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   16757     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   16758     # In both cases, we have to default to `cp -pR'.
   16759     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   16760       as_ln_s='cp -pR'
   16761   elif ln conf$$.file conf$$ 2>/dev/null; then
   16762     as_ln_s=ln
   16763   else
   16764     as_ln_s='cp -pR'
   16765   fi
   16766 else
   16767   as_ln_s='cp -pR'
   16768 fi
   16769 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   16770 rmdir conf$$.dir 2>/dev/null
   16771 
   16772 
   16773 # as_fn_mkdir_p
   16774 # -------------
   16775 # Create "$as_dir" as a directory, including parents if necessary.
   16776 as_fn_mkdir_p ()
   16777 {
   16778 
   16779   case $as_dir in #(
   16780   -*) as_dir=./$as_dir;;
   16781   esac
   16782   test -d "$as_dir" || eval $as_mkdir_p || {
   16783     as_dirs=
   16784     while :; do
   16785       case $as_dir in #(
   16786       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   16787       *) as_qdir=$as_dir;;
   16788       esac
   16789       as_dirs="'$as_qdir' $as_dirs"
   16790       as_dir=`$as_dirname -- "$as_dir" ||
   16791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16792 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   16793 	 X"$as_dir" : 'X\(//\)$' \| \
   16794 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   16795 $as_echo X"$as_dir" |
   16796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   16797 	    s//\1/
   16798 	    q
   16799 	  }
   16800 	  /^X\(\/\/\)[^/].*/{
   16801 	    s//\1/
   16802 	    q
   16803 	  }
   16804 	  /^X\(\/\/\)$/{
   16805 	    s//\1/
   16806 	    q
   16807 	  }
   16808 	  /^X\(\/\).*/{
   16809 	    s//\1/
   16810 	    q
   16811 	  }
   16812 	  s/.*/./; q'`
   16813       test -d "$as_dir" && break
   16814     done
   16815     test -z "$as_dirs" || eval "mkdir $as_dirs"
   16816   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   16817 
   16818 
   16819 } # as_fn_mkdir_p
   16820 if mkdir -p . 2>/dev/null; then
   16821   as_mkdir_p='mkdir -p "$as_dir"'
   16822 else
   16823   test -d ./-p && rmdir ./-p
   16824   as_mkdir_p=false
   16825 fi
   16826 
   16827 
   16828 # as_fn_executable_p FILE
   16829 # -----------------------
   16830 # Test if FILE is an executable regular file.
   16831 as_fn_executable_p ()
   16832 {
   16833   test -f "$1" && test -x "$1"
   16834 } # as_fn_executable_p
   16835 as_test_x='test -x'
   16836 as_executable_p=as_fn_executable_p
   16837 
   16838 # Sed expression to map a string onto a valid CPP name.
   16839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   16840 
   16841 # Sed expression to map a string onto a valid variable name.
   16842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   16843 
   16844 
   16845 exec 6>&1
   16846 ## ----------------------------------- ##
   16847 ## Main body of $CONFIG_STATUS script. ##
   16848 ## ----------------------------------- ##
   16849 _ASEOF
   16850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   16851 
   16852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16853 # Save the log message, to keep $0 and so on meaningful, and to
   16854 # report actual input values of CONFIG_FILES etc. instead of their
   16855 # values after options handling.
   16856 ac_log="
   16857 This file was extended by libevent $as_me 2.1.8-stable, which was
   16858 generated by GNU Autoconf 2.69.  Invocation command line was
   16859 
   16860   CONFIG_FILES    = $CONFIG_FILES
   16861   CONFIG_HEADERS  = $CONFIG_HEADERS
   16862   CONFIG_LINKS    = $CONFIG_LINKS
   16863   CONFIG_COMMANDS = $CONFIG_COMMANDS
   16864   $ $0 $@
   16865 
   16866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   16867 "
   16868 
   16869 _ACEOF
   16870 
   16871 case $ac_config_files in *"
   16872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   16873 esac
   16874 
   16875 case $ac_config_headers in *"
   16876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   16877 esac
   16878 
   16879 
   16880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16881 # Files that config.status was made for.
   16882 config_files="$ac_config_files"
   16883 config_headers="$ac_config_headers"
   16884 config_commands="$ac_config_commands"
   16885 
   16886 _ACEOF
   16887 
   16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16889 ac_cs_usage="\
   16890 \`$as_me' instantiates files and other configuration actions
   16891 from templates according to the current configuration.  Unless the files
   16892 and actions are specified as TAGs, all are instantiated by default.
   16893 
   16894 Usage: $0 [OPTION]... [TAG]...
   16895 
   16896   -h, --help       print this help, then exit
   16897   -V, --version    print version number and configuration settings, then exit
   16898       --config     print configuration, then exit
   16899   -q, --quiet, --silent
   16900                    do not print progress messages
   16901   -d, --debug      don't remove temporary files
   16902       --recheck    update $as_me by reconfiguring in the same conditions
   16903       --file=FILE[:TEMPLATE]
   16904                    instantiate the configuration file FILE
   16905       --header=FILE[:TEMPLATE]
   16906                    instantiate the configuration header FILE
   16907 
   16908 Configuration files:
   16909 $config_files
   16910 
   16911 Configuration headers:
   16912 $config_headers
   16913 
   16914 Configuration commands:
   16915 $config_commands
   16916 
   16917 Report bugs to the package provider."
   16918 
   16919 _ACEOF
   16920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16921 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   16922 ac_cs_version="\\
   16923 libevent config.status 2.1.8-stable
   16924 configured by $0, generated by GNU Autoconf 2.69,
   16925   with options \\"\$ac_cs_config\\"
   16926 
   16927 Copyright (C) 2012 Free Software Foundation, Inc.
   16928 This config.status script is free software; the Free Software Foundation
   16929 gives unlimited permission to copy, distribute and modify it."
   16930 
   16931 ac_pwd='$ac_pwd'
   16932 srcdir='$srcdir'
   16933 INSTALL='$INSTALL'
   16934 MKDIR_P='$MKDIR_P'
   16935 AWK='$AWK'
   16936 test -n "\$AWK" || AWK=awk
   16937 _ACEOF
   16938 
   16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16940 # The default lists apply if the user does not specify any file.
   16941 ac_need_defaults=:
   16942 while test $# != 0
   16943 do
   16944   case $1 in
   16945   --*=?*)
   16946     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   16947     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   16948     ac_shift=:
   16949     ;;
   16950   --*=)
   16951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   16952     ac_optarg=
   16953     ac_shift=:
   16954     ;;
   16955   *)
   16956     ac_option=$1
   16957     ac_optarg=$2
   16958     ac_shift=shift
   16959     ;;
   16960   esac
   16961 
   16962   case $ac_option in
   16963   # Handling of the options.
   16964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   16965     ac_cs_recheck=: ;;
   16966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   16967     $as_echo "$ac_cs_version"; exit ;;
   16968   --config | --confi | --conf | --con | --co | --c )
   16969     $as_echo "$ac_cs_config"; exit ;;
   16970   --debug | --debu | --deb | --de | --d | -d )
   16971     debug=: ;;
   16972   --file | --fil | --fi | --f )
   16973     $ac_shift
   16974     case $ac_optarg in
   16975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16976     '') as_fn_error $? "missing file argument" ;;
   16977     esac
   16978     as_fn_append CONFIG_FILES " '$ac_optarg'"
   16979     ac_need_defaults=false;;
   16980   --header | --heade | --head | --hea )
   16981     $ac_shift
   16982     case $ac_optarg in
   16983     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16984     esac
   16985     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   16986     ac_need_defaults=false;;
   16987   --he | --h)
   16988     # Conflict between --help and --header
   16989     as_fn_error $? "ambiguous option: \`$1'
   16990 Try \`$0 --help' for more information.";;
   16991   --help | --hel | -h )
   16992     $as_echo "$ac_cs_usage"; exit ;;
   16993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   16994   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   16995     ac_cs_silent=: ;;
   16996 
   16997   # This is an error.
   16998   -*) as_fn_error $? "unrecognized option: \`$1'
   16999 Try \`$0 --help' for more information." ;;
   17000 
   17001   *) as_fn_append ac_config_targets " $1"
   17002      ac_need_defaults=false ;;
   17003 
   17004   esac
   17005   shift
   17006 done
   17007 
   17008 ac_configure_extra_args=
   17009 
   17010 if $ac_cs_silent; then
   17011   exec 6>/dev/null
   17012   ac_configure_extra_args="$ac_configure_extra_args --silent"
   17013 fi
   17014 
   17015 _ACEOF
   17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17017 if \$ac_cs_recheck; then
   17018   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   17019   shift
   17020   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   17021   CONFIG_SHELL='$SHELL'
   17022   export CONFIG_SHELL
   17023   exec "\$@"
   17024 fi
   17025 
   17026 _ACEOF
   17027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17028 exec 5>>config.log
   17029 {
   17030   echo
   17031   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   17032 ## Running $as_me. ##
   17033 _ASBOX
   17034   $as_echo "$ac_log"
   17035 } >&5
   17036 
   17037 _ACEOF
   17038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17039 #
   17040 # INIT-COMMANDS
   17041 #
   17042 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   17043 
   17044 
   17045 # The HP-UX ksh and POSIX shell print the target directory to stdout
   17046 # if CDPATH is set.
   17047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   17048 
   17049 sed_quote_subst='$sed_quote_subst'
   17050 double_quote_subst='$double_quote_subst'
   17051 delay_variable_subst='$delay_variable_subst'
   17052 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   17053 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   17054 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   17055 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   17056 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   17057 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   17058 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   17059 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   17060 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   17061 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   17062 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   17063 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   17064 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   17065 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   17066 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   17067 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   17068 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   17069 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   17070 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   17071 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   17072 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   17073 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   17074 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   17075 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   17076 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   17077 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   17078 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   17079 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   17080 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   17081 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   17082 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   17083 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   17084 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   17085 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   17086 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   17087 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   17088 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   17089 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   17090 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   17091 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   17092 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   17093 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   17094 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   17095 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   17096 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   17097 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   17098 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   17099 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   17100 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   17101 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   17102 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   17103 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   17104 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   17105 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   17106 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   17107 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   17108 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   17109 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   17110 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"`'
   17111 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   17112 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   17113 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   17114 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   17115 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   17116 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   17117 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   17118 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   17119 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   17120 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   17121 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   17122 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   17123 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   17124 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   17125 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   17126 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   17127 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   17128 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   17129 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   17130 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   17131 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   17132 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   17133 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   17134 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   17135 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   17136 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   17137 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   17138 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   17139 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   17140 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   17141 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   17142 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   17143 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   17144 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   17145 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   17146 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   17147 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   17148 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   17149 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   17150 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   17151 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   17152 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   17153 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   17154 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   17155 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   17156 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   17157 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   17158 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   17159 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   17160 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   17161 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   17162 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   17163 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   17164 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   17165 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   17166 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   17167 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   17168 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   17169 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   17170 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   17171 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   17172 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   17173 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   17174 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   17175 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   17176 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   17177 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   17178 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   17179 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   17180 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   17181 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   17182 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   17183 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   17184 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   17185 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   17186 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   17187 
   17188 LTCC='$LTCC'
   17189 LTCFLAGS='$LTCFLAGS'
   17190 compiler='$compiler_DEFAULT'
   17191 
   17192 # A function that is used when there is no print builtin or printf.
   17193 func_fallback_echo ()
   17194 {
   17195   eval 'cat <<_LTECHO_EOF
   17196 \$1
   17197 _LTECHO_EOF'
   17198 }
   17199 
   17200 # Quote evaled strings.
   17201 for var in SHELL \
   17202 ECHO \
   17203 PATH_SEPARATOR \
   17204 SED \
   17205 GREP \
   17206 EGREP \
   17207 FGREP \
   17208 LD \
   17209 NM \
   17210 LN_S \
   17211 lt_SP2NL \
   17212 lt_NL2SP \
   17213 reload_flag \
   17214 OBJDUMP \
   17215 deplibs_check_method \
   17216 file_magic_cmd \
   17217 file_magic_glob \
   17218 want_nocaseglob \
   17219 DLLTOOL \
   17220 sharedlib_from_linklib_cmd \
   17221 AR \
   17222 AR_FLAGS \
   17223 archiver_list_spec \
   17224 STRIP \
   17225 RANLIB \
   17226 CC \
   17227 CFLAGS \
   17228 compiler \
   17229 lt_cv_sys_global_symbol_pipe \
   17230 lt_cv_sys_global_symbol_to_cdecl \
   17231 lt_cv_sys_global_symbol_to_import \
   17232 lt_cv_sys_global_symbol_to_c_name_address \
   17233 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   17234 lt_cv_nm_interface \
   17235 nm_file_list_spec \
   17236 lt_cv_truncate_bin \
   17237 lt_prog_compiler_no_builtin_flag \
   17238 lt_prog_compiler_pic \
   17239 lt_prog_compiler_wl \
   17240 lt_prog_compiler_static \
   17241 lt_cv_prog_compiler_c_o \
   17242 need_locks \
   17243 MANIFEST_TOOL \
   17244 DSYMUTIL \
   17245 NMEDIT \
   17246 LIPO \
   17247 OTOOL \
   17248 OTOOL64 \
   17249 shrext_cmds \
   17250 export_dynamic_flag_spec \
   17251 whole_archive_flag_spec \
   17252 compiler_needs_object \
   17253 with_gnu_ld \
   17254 allow_undefined_flag \
   17255 no_undefined_flag \
   17256 hardcode_libdir_flag_spec \
   17257 hardcode_libdir_separator \
   17258 exclude_expsyms \
   17259 include_expsyms \
   17260 file_list_spec \
   17261 variables_saved_for_relink \
   17262 libname_spec \
   17263 library_names_spec \
   17264 soname_spec \
   17265 install_override_mode \
   17266 finish_eval \
   17267 old_striplib \
   17268 striplib; do
   17269     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   17270     *[\\\\\\\`\\"\\\$]*)
   17271       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   17272       ;;
   17273     *)
   17274       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   17275       ;;
   17276     esac
   17277 done
   17278 
   17279 # Double-quote double-evaled strings.
   17280 for var in reload_cmds \
   17281 old_postinstall_cmds \
   17282 old_postuninstall_cmds \
   17283 old_archive_cmds \
   17284 extract_expsyms_cmds \
   17285 old_archive_from_new_cmds \
   17286 old_archive_from_expsyms_cmds \
   17287 archive_cmds \
   17288 archive_expsym_cmds \
   17289 module_cmds \
   17290 module_expsym_cmds \
   17291 export_symbols_cmds \
   17292 prelink_cmds \
   17293 postlink_cmds \
   17294 postinstall_cmds \
   17295 postuninstall_cmds \
   17296 finish_cmds \
   17297 sys_lib_search_path_spec \
   17298 configure_time_dlsearch_path \
   17299 configure_time_lt_sys_library_path; do
   17300     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   17301     *[\\\\\\\`\\"\\\$]*)
   17302       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   17303       ;;
   17304     *)
   17305       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   17306       ;;
   17307     esac
   17308 done
   17309 
   17310 ac_aux_dir='$ac_aux_dir'
   17311 
   17312 # See if we are running on zsh, and set the options that allow our
   17313 # commands through without removal of \ escapes INIT.
   17314 if test -n "\${ZSH_VERSION+set}"; then
   17315    setopt NO_GLOB_SUBST
   17316 fi
   17317 
   17318 
   17319     PACKAGE='$PACKAGE'
   17320     VERSION='$VERSION'
   17321     RM='$RM'
   17322     ofile='$ofile'
   17323 
   17324 
   17325 
   17326 
   17327 _ACEOF
   17328 
   17329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17330 
   17331 # Handling of arguments.
   17332 for ac_config_target in $ac_config_targets
   17333 do
   17334   case $ac_config_target in
   17335     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   17336     "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
   17337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   17338     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   17339     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
   17340     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
   17341     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
   17342     "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
   17343     "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
   17344     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   17345 
   17346   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   17347   esac
   17348 done
   17349 
   17350 
   17351 # If the user did not use the arguments to specify the items to instantiate,
   17352 # then the envvar interface is used.  Set only those that are not.
   17353 # We use the long form for the default assignment because of an extremely
   17354 # bizarre bug on SunOS 4.1.3.
   17355 if $ac_need_defaults; then
   17356   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   17357   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   17358   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   17359 fi
   17360 
   17361 # Have a temporary directory for convenience.  Make it in the build tree
   17362 # simply because there is no reason against having it here, and in addition,
   17363 # creating and moving files from /tmp can sometimes cause problems.
   17364 # Hook for its removal unless debugging.
   17365 # Note that there is a small window in which the directory will not be cleaned:
   17366 # after its creation but before its name has been assigned to `$tmp'.
   17367 $debug ||
   17368 {
   17369   tmp= ac_tmp=
   17370   trap 'exit_status=$?
   17371   : "${ac_tmp:=$tmp}"
   17372   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   17373 ' 0
   17374   trap 'as_fn_exit 1' 1 2 13 15
   17375 }
   17376 # Create a (secure) tmp directory for tmp files.
   17377 
   17378 {
   17379   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   17380   test -d "$tmp"
   17381 }  ||
   17382 {
   17383   tmp=./conf$$-$RANDOM
   17384   (umask 077 && mkdir "$tmp")
   17385 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   17386 ac_tmp=$tmp
   17387 
   17388 # Set up the scripts for CONFIG_FILES section.
   17389 # No need to generate them if there are no CONFIG_FILES.
   17390 # This happens for instance with `./config.status config.h'.
   17391 if test -n "$CONFIG_FILES"; then
   17392 
   17393 
   17394 ac_cr=`echo X | tr X '\015'`
   17395 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   17396 # But we know of no other shell where ac_cr would be empty at this
   17397 # point, so we can use a bashism as a fallback.
   17398 if test "x$ac_cr" = x; then
   17399   eval ac_cr=\$\'\\r\'
   17400 fi
   17401 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   17402 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   17403   ac_cs_awk_cr='\\r'
   17404 else
   17405   ac_cs_awk_cr=$ac_cr
   17406 fi
   17407 
   17408 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   17409 _ACEOF
   17410 
   17411 
   17412 {
   17413   echo "cat >conf$$subs.awk <<_ACEOF" &&
   17414   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   17415   echo "_ACEOF"
   17416 } >conf$$subs.sh ||
   17417   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   17418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   17419 ac_delim='%!_!# '
   17420 for ac_last_try in false false false false false :; do
   17421   . ./conf$$subs.sh ||
   17422     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   17423 
   17424   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   17425   if test $ac_delim_n = $ac_delim_num; then
   17426     break
   17427   elif $ac_last_try; then
   17428     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   17429   else
   17430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   17431   fi
   17432 done
   17433 rm -f conf$$subs.sh
   17434 
   17435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17436 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   17437 _ACEOF
   17438 sed -n '
   17439 h
   17440 s/^/S["/; s/!.*/"]=/
   17441 p
   17442 g
   17443 s/^[^!]*!//
   17444 :repl
   17445 t repl
   17446 s/'"$ac_delim"'$//
   17447 t delim
   17448 :nl
   17449 h
   17450 s/\(.\{148\}\)..*/\1/
   17451 t more1
   17452 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   17453 p
   17454 n
   17455 b repl
   17456 :more1
   17457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   17458 p
   17459 g
   17460 s/.\{148\}//
   17461 t nl
   17462 :delim
   17463 h
   17464 s/\(.\{148\}\)..*/\1/
   17465 t more2
   17466 s/["\\]/\\&/g; s/^/"/; s/$/"/
   17467 p
   17468 b
   17469 :more2
   17470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   17471 p
   17472 g
   17473 s/.\{148\}//
   17474 t delim
   17475 ' <conf$$subs.awk | sed '
   17476 /^[^""]/{
   17477   N
   17478   s/\n//
   17479 }
   17480 ' >>$CONFIG_STATUS || ac_write_fail=1
   17481 rm -f conf$$subs.awk
   17482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17483 _ACAWK
   17484 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   17485   for (key in S) S_is_set[key] = 1
   17486   FS = ""
   17487 
   17488 }
   17489 {
   17490   line = $ 0
   17491   nfields = split(line, field, "@")
   17492   substed = 0
   17493   len = length(field[1])
   17494   for (i = 2; i < nfields; i++) {
   17495     key = field[i]
   17496     keylen = length(key)
   17497     if (S_is_set[key]) {
   17498       value = S[key]
   17499       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   17500       len += length(value) + length(field[++i])
   17501       substed = 1
   17502     } else
   17503       len += 1 + keylen
   17504   }
   17505 
   17506   print line
   17507 }
   17508 
   17509 _ACAWK
   17510 _ACEOF
   17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   17513   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   17514 else
   17515   cat
   17516 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   17517   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   17518 _ACEOF
   17519 
   17520 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   17521 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   17522 # trailing colons and then remove the whole line if VPATH becomes empty
   17523 # (actually we leave an empty line to preserve line numbers).
   17524 if test "x$srcdir" = x.; then
   17525   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   17526 h
   17527 s///
   17528 s/^/:/
   17529 s/[	 ]*$/:/
   17530 s/:\$(srcdir):/:/g
   17531 s/:\${srcdir}:/:/g
   17532 s/:@srcdir@:/:/g
   17533 s/^:*//
   17534 s/:*$//
   17535 x
   17536 s/\(=[	 ]*\).*/\1/
   17537 G
   17538 s/\n//
   17539 s/^[^=]*=[	 ]*$//
   17540 }'
   17541 fi
   17542 
   17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17544 fi # test -n "$CONFIG_FILES"
   17545 
   17546 # Set up the scripts for CONFIG_HEADERS section.
   17547 # No need to generate them if there are no CONFIG_HEADERS.
   17548 # This happens for instance with `./config.status Makefile'.
   17549 if test -n "$CONFIG_HEADERS"; then
   17550 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   17551 BEGIN {
   17552 _ACEOF
   17553 
   17554 # Transform confdefs.h into an awk script `defines.awk', embedded as
   17555 # here-document in config.status, that substitutes the proper values into
   17556 # config.h.in to produce config.h.
   17557 
   17558 # Create a delimiter string that does not exist in confdefs.h, to ease
   17559 # handling of long lines.
   17560 ac_delim='%!_!# '
   17561 for ac_last_try in false false :; do
   17562   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   17563   if test -z "$ac_tt"; then
   17564     break
   17565   elif $ac_last_try; then
   17566     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   17567   else
   17568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   17569   fi
   17570 done
   17571 
   17572 # For the awk script, D is an array of macro values keyed by name,
   17573 # likewise P contains macro parameters if any.  Preserve backslash
   17574 # newline sequences.
   17575 
   17576 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   17577 sed -n '
   17578 s/.\{148\}/&'"$ac_delim"'/g
   17579 t rset
   17580 :rset
   17581 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   17582 t def
   17583 d
   17584 :def
   17585 s/\\$//
   17586 t bsnl
   17587 s/["\\]/\\&/g
   17588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17589 D["\1"]=" \3"/p
   17590 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   17591 d
   17592 :bsnl
   17593 s/["\\]/\\&/g
   17594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17595 D["\1"]=" \3\\\\\\n"\\/p
   17596 t cont
   17597 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   17598 t cont
   17599 d
   17600 :cont
   17601 n
   17602 s/.\{148\}/&'"$ac_delim"'/g
   17603 t clear
   17604 :clear
   17605 s/\\$//
   17606 t bsnlc
   17607 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   17608 d
   17609 :bsnlc
   17610 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   17611 b cont
   17612 ' <confdefs.h | sed '
   17613 s/'"$ac_delim"'/"\\\
   17614 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   17615 
   17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17617   for (key in D) D_is_set[key] = 1
   17618   FS = ""
   17619 }
   17620 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   17621   line = \$ 0
   17622   split(line, arg, " ")
   17623   if (arg[1] == "#") {
   17624     defundef = arg[2]
   17625     mac1 = arg[3]
   17626   } else {
   17627     defundef = substr(arg[1], 2)
   17628     mac1 = arg[2]
   17629   }
   17630   split(mac1, mac2, "(") #)
   17631   macro = mac2[1]
   17632   prefix = substr(line, 1, index(line, defundef) - 1)
   17633   if (D_is_set[macro]) {
   17634     # Preserve the white space surrounding the "#".
   17635     print prefix "define", macro P[macro] D[macro]
   17636     next
   17637   } else {
   17638     # Replace #undef with comments.  This is necessary, for example,
   17639     # in the case of _POSIX_SOURCE, which is predefined and required
   17640     # on some systems where configure will not decide to define it.
   17641     if (defundef == "undef") {
   17642       print "/*", prefix defundef, macro, "*/"
   17643       next
   17644     }
   17645   }
   17646 }
   17647 { print }
   17648 _ACAWK
   17649 _ACEOF
   17650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17651   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   17652 fi # test -n "$CONFIG_HEADERS"
   17653 
   17654 
   17655 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   17656 shift
   17657 for ac_tag
   17658 do
   17659   case $ac_tag in
   17660   :[FHLC]) ac_mode=$ac_tag; continue;;
   17661   esac
   17662   case $ac_mode$ac_tag in
   17663   :[FHL]*:*);;
   17664   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   17665   :[FH]-) ac_tag=-:-;;
   17666   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   17667   esac
   17668   ac_save_IFS=$IFS
   17669   IFS=:
   17670   set x $ac_tag
   17671   IFS=$ac_save_IFS
   17672   shift
   17673   ac_file=$1
   17674   shift
   17675 
   17676   case $ac_mode in
   17677   :L) ac_source=$1;;
   17678   :[FH])
   17679     ac_file_inputs=
   17680     for ac_f
   17681     do
   17682       case $ac_f in
   17683       -) ac_f="$ac_tmp/stdin";;
   17684       *) # Look for the file first in the build tree, then in the source tree
   17685 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   17686 	 # because $ac_f cannot contain `:'.
   17687 	 test -f "$ac_f" ||
   17688 	   case $ac_f in
   17689 	   [\\/$]*) false;;
   17690 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   17691 	   esac ||
   17692 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   17693       esac
   17694       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   17695       as_fn_append ac_file_inputs " '$ac_f'"
   17696     done
   17697 
   17698     # Let's still pretend it is `configure' which instantiates (i.e., don't
   17699     # use $as_me), people would be surprised to read:
   17700     #    /* config.h.  Generated by config.status.  */
   17701     configure_input='Generated from '`
   17702 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   17703 	`' by configure.'
   17704     if test x"$ac_file" != x-; then
   17705       configure_input="$ac_file.  $configure_input"
   17706       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   17707 $as_echo "$as_me: creating $ac_file" >&6;}
   17708     fi
   17709     # Neutralize special characters interpreted by sed in replacement strings.
   17710     case $configure_input in #(
   17711     *\&* | *\|* | *\\* )
   17712        ac_sed_conf_input=`$as_echo "$configure_input" |
   17713        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   17714     *) ac_sed_conf_input=$configure_input;;
   17715     esac
   17716 
   17717     case $ac_tag in
   17718     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   17719       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   17720     esac
   17721     ;;
   17722   esac
   17723 
   17724   ac_dir=`$as_dirname -- "$ac_file" ||
   17725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17726 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   17727 	 X"$ac_file" : 'X\(//\)$' \| \
   17728 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   17729 $as_echo X"$ac_file" |
   17730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17731 	    s//\1/
   17732 	    q
   17733 	  }
   17734 	  /^X\(\/\/\)[^/].*/{
   17735 	    s//\1/
   17736 	    q
   17737 	  }
   17738 	  /^X\(\/\/\)$/{
   17739 	    s//\1/
   17740 	    q
   17741 	  }
   17742 	  /^X\(\/\).*/{
   17743 	    s//\1/
   17744 	    q
   17745 	  }
   17746 	  s/.*/./; q'`
   17747   as_dir="$ac_dir"; as_fn_mkdir_p
   17748   ac_builddir=.
   17749 
   17750 case "$ac_dir" in
   17751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17752 *)
   17753   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   17754   # A ".." for each directory in $ac_dir_suffix.
   17755   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   17756   case $ac_top_builddir_sub in
   17757   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17758   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   17759   esac ;;
   17760 esac
   17761 ac_abs_top_builddir=$ac_pwd
   17762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   17763 # for backward compatibility:
   17764 ac_top_builddir=$ac_top_build_prefix
   17765 
   17766 case $srcdir in
   17767   .)  # We are building in place.
   17768     ac_srcdir=.
   17769     ac_top_srcdir=$ac_top_builddir_sub
   17770     ac_abs_top_srcdir=$ac_pwd ;;
   17771   [\\/]* | ?:[\\/]* )  # Absolute name.
   17772     ac_srcdir=$srcdir$ac_dir_suffix;
   17773     ac_top_srcdir=$srcdir
   17774     ac_abs_top_srcdir=$srcdir ;;
   17775   *) # Relative name.
   17776     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   17777     ac_top_srcdir=$ac_top_build_prefix$srcdir
   17778     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   17779 esac
   17780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   17781 
   17782 
   17783   case $ac_mode in
   17784   :F)
   17785   #
   17786   # CONFIG_FILE
   17787   #
   17788 
   17789   case $INSTALL in
   17790   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   17791   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   17792   esac
   17793   ac_MKDIR_P=$MKDIR_P
   17794   case $MKDIR_P in
   17795   [\\/$]* | ?:[\\/]* ) ;;
   17796   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   17797   esac
   17798 _ACEOF
   17799 
   17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17801 # If the template does not know about datarootdir, expand it.
   17802 # FIXME: This hack should be removed a few years after 2.60.
   17803 ac_datarootdir_hack=; ac_datarootdir_seen=
   17804 ac_sed_dataroot='
   17805 /datarootdir/ {
   17806   p
   17807   q
   17808 }
   17809 /@datadir@/p
   17810 /@docdir@/p
   17811 /@infodir@/p
   17812 /@localedir@/p
   17813 /@mandir@/p'
   17814 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   17815 *datarootdir*) ac_datarootdir_seen=yes;;
   17816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   17817   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   17818 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   17819 _ACEOF
   17820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17821   ac_datarootdir_hack='
   17822   s&@datadir@&$datadir&g
   17823   s&@docdir@&$docdir&g
   17824   s&@infodir@&$infodir&g
   17825   s&@localedir@&$localedir&g
   17826   s&@mandir@&$mandir&g
   17827   s&\\\${datarootdir}&$datarootdir&g' ;;
   17828 esac
   17829 _ACEOF
   17830 
   17831 # Neutralize VPATH when `$srcdir' = `.'.
   17832 # Shell code in configure.ac might set extrasub.
   17833 # FIXME: do we really want to maintain this feature?
   17834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17835 ac_sed_extra="$ac_vpsub
   17836 $extrasub
   17837 _ACEOF
   17838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17839 :t
   17840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   17841 s|@configure_input@|$ac_sed_conf_input|;t t
   17842 s&@top_builddir@&$ac_top_builddir_sub&;t t
   17843 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   17844 s&@srcdir@&$ac_srcdir&;t t
   17845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   17846 s&@top_srcdir@&$ac_top_srcdir&;t t
   17847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   17848 s&@builddir@&$ac_builddir&;t t
   17849 s&@abs_builddir@&$ac_abs_builddir&;t t
   17850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   17851 s&@INSTALL@&$ac_INSTALL&;t t
   17852 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   17853 $ac_datarootdir_hack
   17854 "
   17855 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   17856   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   17857 
   17858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   17859   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   17860   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   17861       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   17862   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17863 which seems to be undefined.  Please make sure it is defined" >&5
   17864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17865 which seems to be undefined.  Please make sure it is defined" >&2;}
   17866 
   17867   rm -f "$ac_tmp/stdin"
   17868   case $ac_file in
   17869   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   17870   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   17871   esac \
   17872   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   17873  ;;
   17874   :H)
   17875   #
   17876   # CONFIG_HEADER
   17877   #
   17878   if test x"$ac_file" != x-; then
   17879     {
   17880       $as_echo "/* $configure_input  */" \
   17881       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   17882     } >"$ac_tmp/config.h" \
   17883       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   17884     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   17885       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   17886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   17887     else
   17888       rm -f "$ac_file"
   17889       mv "$ac_tmp/config.h" "$ac_file" \
   17890 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   17891     fi
   17892   else
   17893     $as_echo "/* $configure_input  */" \
   17894       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   17895       || as_fn_error $? "could not create -" "$LINENO" 5
   17896   fi
   17897 # Compute "$ac_file"'s index in $config_headers.
   17898 _am_arg="$ac_file"
   17899 _am_stamp_count=1
   17900 for _am_header in $config_headers :; do
   17901   case $_am_header in
   17902     $_am_arg | $_am_arg:* )
   17903       break ;;
   17904     * )
   17905       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   17906   esac
   17907 done
   17908 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   17909 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17910 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   17911 	 X"$_am_arg" : 'X\(//\)$' \| \
   17912 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   17913 $as_echo X"$_am_arg" |
   17914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17915 	    s//\1/
   17916 	    q
   17917 	  }
   17918 	  /^X\(\/\/\)[^/].*/{
   17919 	    s//\1/
   17920 	    q
   17921 	  }
   17922 	  /^X\(\/\/\)$/{
   17923 	    s//\1/
   17924 	    q
   17925 	  }
   17926 	  /^X\(\/\).*/{
   17927 	    s//\1/
   17928 	    q
   17929 	  }
   17930 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   17931  ;;
   17932 
   17933   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   17934 $as_echo "$as_me: executing $ac_file commands" >&6;}
   17935  ;;
   17936   esac
   17937 
   17938 
   17939   case $ac_file$ac_mode in
   17940     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   17941   # Older Autoconf quotes --file arguments for eval, but not when files
   17942   # are listed without --file.  Let's play safe and only enable the eval
   17943   # if we detect the quoting.
   17944   case $CONFIG_FILES in
   17945   *\'*) eval set x "$CONFIG_FILES" ;;
   17946   *)   set x $CONFIG_FILES ;;
   17947   esac
   17948   shift
   17949   for mf
   17950   do
   17951     # Strip MF so we end up with the name of the file.
   17952     mf=`echo "$mf" | sed -e 's/:.*$//'`
   17953     # Check whether this is an Automake generated Makefile or not.
   17954     # We used to match only the files named 'Makefile.in', but
   17955     # some people rename them; so instead we look at the file content.
   17956     # Grep'ing the first line is not enough: some people post-process
   17957     # each Makefile.in and add a new line on top of each file to say so.
   17958     # Grep'ing the whole file is not good either: AIX grep has a line
   17959     # limit of 2048, but all sed's we know have understand at least 4000.
   17960     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   17961       dirpart=`$as_dirname -- "$mf" ||
   17962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17963 	 X"$mf" : 'X\(//\)[^/]' \| \
   17964 	 X"$mf" : 'X\(//\)$' \| \
   17965 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   17966 $as_echo X"$mf" |
   17967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17968 	    s//\1/
   17969 	    q
   17970 	  }
   17971 	  /^X\(\/\/\)[^/].*/{
   17972 	    s//\1/
   17973 	    q
   17974 	  }
   17975 	  /^X\(\/\/\)$/{
   17976 	    s//\1/
   17977 	    q
   17978 	  }
   17979 	  /^X\(\/\).*/{
   17980 	    s//\1/
   17981 	    q
   17982 	  }
   17983 	  s/.*/./; q'`
   17984     else
   17985       continue
   17986     fi
   17987     # Extract the definition of DEPDIR, am__include, and am__quote
   17988     # from the Makefile without running 'make'.
   17989     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   17990     test -z "$DEPDIR" && continue
   17991     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   17992     test -z "$am__include" && continue
   17993     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   17994     # Find all dependency output files, they are included files with
   17995     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   17996     # simplest approach to changing $(DEPDIR) to its actual value in the
   17997     # expansion.
   17998     for file in `sed -n "
   17999       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   18000 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   18001       # Make sure the directory exists.
   18002       test -f "$dirpart/$file" && continue
   18003       fdir=`$as_dirname -- "$file" ||
   18004 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   18005 	 X"$file" : 'X\(//\)[^/]' \| \
   18006 	 X"$file" : 'X\(//\)$' \| \
   18007 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   18008 $as_echo X"$file" |
   18009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   18010 	    s//\1/
   18011 	    q
   18012 	  }
   18013 	  /^X\(\/\/\)[^/].*/{
   18014 	    s//\1/
   18015 	    q
   18016 	  }
   18017 	  /^X\(\/\/\)$/{
   18018 	    s//\1/
   18019 	    q
   18020 	  }
   18021 	  /^X\(\/\).*/{
   18022 	    s//\1/
   18023 	    q
   18024 	  }
   18025 	  s/.*/./; q'`
   18026       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   18027       # echo "creating $dirpart/$file"
   18028       echo '# dummy' > "$dirpart/$file"
   18029     done
   18030   done
   18031 }
   18032  ;;
   18033     "libtool":C)
   18034 
   18035     # See if we are running on zsh, and set the options that allow our
   18036     # commands through without removal of \ escapes.
   18037     if test -n "${ZSH_VERSION+set}"; then
   18038       setopt NO_GLOB_SUBST
   18039     fi
   18040 
   18041     cfgfile=${ofile}T
   18042     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   18043     $RM "$cfgfile"
   18044 
   18045     cat <<_LT_EOF >> "$cfgfile"
   18046 #! $SHELL
   18047 # Generated automatically by $as_me ($PACKAGE) $VERSION
   18048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   18049 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   18050 
   18051 # Provide generalized library-building support services.
   18052 # Written by Gordon Matzigkeit, 1996
   18053 
   18054 # Copyright (C) 2014 Free Software Foundation, Inc.
   18055 # This is free software; see the source for copying conditions.  There is NO
   18056 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   18057 
   18058 # GNU Libtool is free software; you can redistribute it and/or modify
   18059 # it under the terms of the GNU General Public License as published by
   18060 # the Free Software Foundation; either version 2 of of the License, or
   18061 # (at your option) any later version.
   18062 #
   18063 # As a special exception to the GNU General Public License, if you
   18064 # distribute this file as part of a program or library that is built
   18065 # using GNU Libtool, you may include this file under the  same
   18066 # distribution terms that you use for the rest of that program.
   18067 #
   18068 # GNU Libtool is distributed in the hope that it will be useful, but
   18069 # WITHOUT ANY WARRANTY; without even the implied warranty of
   18070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18071 # GNU General Public License for more details.
   18072 #
   18073 # You should have received a copy of the GNU General Public License
   18074 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   18075 
   18076 
   18077 # The names of the tagged configurations supported by this script.
   18078 available_tags=''
   18079 
   18080 # Configured defaults for sys_lib_dlsearch_path munging.
   18081 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   18082 
   18083 # ### BEGIN LIBTOOL CONFIG
   18084 
   18085 # Which release of libtool.m4 was used?
   18086 macro_version=$macro_version
   18087 macro_revision=$macro_revision
   18088 
   18089 # Whether or not to build shared libraries.
   18090 build_libtool_libs=$enable_shared
   18091 
   18092 # Whether or not to build static libraries.
   18093 build_old_libs=$enable_static
   18094 
   18095 # What type of objects to build.
   18096 pic_mode=$pic_mode
   18097 
   18098 # Whether or not to optimize for fast installation.
   18099 fast_install=$enable_fast_install
   18100 
   18101 # Shared archive member basename,for filename based shared library versioning on AIX.
   18102 shared_archive_member_spec=$shared_archive_member_spec
   18103 
   18104 # Shell to use when invoking shell scripts.
   18105 SHELL=$lt_SHELL
   18106 
   18107 # An echo program that protects backslashes.
   18108 ECHO=$lt_ECHO
   18109 
   18110 # The PATH separator for the build system.
   18111 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   18112 
   18113 # The host system.
   18114 host_alias=$host_alias
   18115 host=$host
   18116 host_os=$host_os
   18117 
   18118 # The build system.
   18119 build_alias=$build_alias
   18120 build=$build
   18121 build_os=$build_os
   18122 
   18123 # A sed program that does not truncate output.
   18124 SED=$lt_SED
   18125 
   18126 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   18127 Xsed="\$SED -e 1s/^X//"
   18128 
   18129 # A grep program that handles long lines.
   18130 GREP=$lt_GREP
   18131 
   18132 # An ERE matcher.
   18133 EGREP=$lt_EGREP
   18134 
   18135 # A literal string matcher.
   18136 FGREP=$lt_FGREP
   18137 
   18138 # A BSD- or MS-compatible name lister.
   18139 NM=$lt_NM
   18140 
   18141 # Whether we need soft or hard links.
   18142 LN_S=$lt_LN_S
   18143 
   18144 # What is the maximum length of a command?
   18145 max_cmd_len=$max_cmd_len
   18146 
   18147 # Object file suffix (normally "o").
   18148 objext=$ac_objext
   18149 
   18150 # Executable file suffix (normally "").
   18151 exeext=$exeext
   18152 
   18153 # whether the shell understands "unset".
   18154 lt_unset=$lt_unset
   18155 
   18156 # turn spaces into newlines.
   18157 SP2NL=$lt_lt_SP2NL
   18158 
   18159 # turn newlines into spaces.
   18160 NL2SP=$lt_lt_NL2SP
   18161 
   18162 # convert \$build file names to \$host format.
   18163 to_host_file_cmd=$lt_cv_to_host_file_cmd
   18164 
   18165 # convert \$build files to toolchain format.
   18166 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   18167 
   18168 # An object symbol dumper.
   18169 OBJDUMP=$lt_OBJDUMP
   18170 
   18171 # Method to check whether dependent libraries are shared objects.
   18172 deplibs_check_method=$lt_deplibs_check_method
   18173 
   18174 # Command to use when deplibs_check_method = "file_magic".
   18175 file_magic_cmd=$lt_file_magic_cmd
   18176 
   18177 # How to find potential files when deplibs_check_method = "file_magic".
   18178 file_magic_glob=$lt_file_magic_glob
   18179 
   18180 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   18181 want_nocaseglob=$lt_want_nocaseglob
   18182 
   18183 # DLL creation program.
   18184 DLLTOOL=$lt_DLLTOOL
   18185 
   18186 # Command to associate shared and link libraries.
   18187 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   18188 
   18189 # The archiver.
   18190 AR=$lt_AR
   18191 
   18192 # Flags to create an archive.
   18193 AR_FLAGS=$lt_AR_FLAGS
   18194 
   18195 # How to feed a file listing to the archiver.
   18196 archiver_list_spec=$lt_archiver_list_spec
   18197 
   18198 # A symbol stripping program.
   18199 STRIP=$lt_STRIP
   18200 
   18201 # Commands used to install an old-style archive.
   18202 RANLIB=$lt_RANLIB
   18203 old_postinstall_cmds=$lt_old_postinstall_cmds
   18204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   18205 
   18206 # Whether to use a lock for old archive extraction.
   18207 lock_old_archive_extraction=$lock_old_archive_extraction
   18208 
   18209 # A C compiler.
   18210 LTCC=$lt_CC
   18211 
   18212 # LTCC compiler flags.
   18213 LTCFLAGS=$lt_CFLAGS
   18214 
   18215 # Take the output of nm and produce a listing of raw symbols and C names.
   18216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   18217 
   18218 # Transform the output of nm in a proper C declaration.
   18219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   18220 
   18221 # Transform the output of nm into a list of symbols to manually relocate.
   18222 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   18223 
   18224 # Transform the output of nm in a C name address pair.
   18225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   18226 
   18227 # Transform the output of nm in a C name address pair when lib prefix is needed.
   18228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   18229 
   18230 # The name lister interface.
   18231 nm_interface=$lt_lt_cv_nm_interface
   18232 
   18233 # Specify filename containing input files for \$NM.
   18234 nm_file_list_spec=$lt_nm_file_list_spec
   18235 
   18236 # The root where to search for dependent libraries,and where our libraries should be installed.
   18237 lt_sysroot=$lt_sysroot
   18238 
   18239 # Command to truncate a binary pipe.
   18240 lt_truncate_bin=$lt_lt_cv_truncate_bin
   18241 
   18242 # The name of the directory that contains temporary libtool files.
   18243 objdir=$objdir
   18244 
   18245 # Used to examine libraries when file_magic_cmd begins with "file".
   18246 MAGIC_CMD=$MAGIC_CMD
   18247 
   18248 # Must we lock files when doing compilation?
   18249 need_locks=$lt_need_locks
   18250 
   18251 # Manifest tool.
   18252 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   18253 
   18254 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   18255 DSYMUTIL=$lt_DSYMUTIL
   18256 
   18257 # Tool to change global to local symbols on Mac OS X.
   18258 NMEDIT=$lt_NMEDIT
   18259 
   18260 # Tool to manipulate fat objects and archives on Mac OS X.
   18261 LIPO=$lt_LIPO
   18262 
   18263 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   18264 OTOOL=$lt_OTOOL
   18265 
   18266 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   18267 OTOOL64=$lt_OTOOL64
   18268 
   18269 # Old archive suffix (normally "a").
   18270 libext=$libext
   18271 
   18272 # Shared library suffix (normally ".so").
   18273 shrext_cmds=$lt_shrext_cmds
   18274 
   18275 # The commands to extract the exported symbol list from a shared archive.
   18276 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   18277 
   18278 # Variables whose values should be saved in libtool wrapper scripts and
   18279 # restored at link time.
   18280 variables_saved_for_relink=$lt_variables_saved_for_relink
   18281 
   18282 # Do we need the "lib" prefix for modules?
   18283 need_lib_prefix=$need_lib_prefix
   18284 
   18285 # Do we need a version for libraries?
   18286 need_version=$need_version
   18287 
   18288 # Library versioning type.
   18289 version_type=$version_type
   18290 
   18291 # Shared library runtime path variable.
   18292 runpath_var=$runpath_var
   18293 
   18294 # Shared library path variable.
   18295 shlibpath_var=$shlibpath_var
   18296 
   18297 # Is shlibpath searched before the hard-coded library search path?
   18298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   18299 
   18300 # Format of library name prefix.
   18301 libname_spec=$lt_libname_spec
   18302 
   18303 # List of archive names.  First name is the real one, the rest are links.
   18304 # The last name is the one that the linker finds with -lNAME
   18305 library_names_spec=$lt_library_names_spec
   18306 
   18307 # The coded name of the library, if different from the real name.
   18308 soname_spec=$lt_soname_spec
   18309 
   18310 # Permission mode override for installation of shared libraries.
   18311 install_override_mode=$lt_install_override_mode
   18312 
   18313 # Command to use after installation of a shared archive.
   18314 postinstall_cmds=$lt_postinstall_cmds
   18315 
   18316 # Command to use after uninstallation of a shared archive.
   18317 postuninstall_cmds=$lt_postuninstall_cmds
   18318 
   18319 # Commands used to finish a libtool library installation in a directory.
   18320 finish_cmds=$lt_finish_cmds
   18321 
   18322 # As "finish_cmds", except a single script fragment to be evaled but
   18323 # not shown.
   18324 finish_eval=$lt_finish_eval
   18325 
   18326 # Whether we should hardcode library paths into libraries.
   18327 hardcode_into_libs=$hardcode_into_libs
   18328 
   18329 # Compile-time system search path for libraries.
   18330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   18331 
   18332 # Detected run-time system search path for libraries.
   18333 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   18334 
   18335 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   18336 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   18337 
   18338 # Whether dlopen is supported.
   18339 dlopen_support=$enable_dlopen
   18340 
   18341 # Whether dlopen of programs is supported.
   18342 dlopen_self=$enable_dlopen_self
   18343 
   18344 # Whether dlopen of statically linked programs is supported.
   18345 dlopen_self_static=$enable_dlopen_self_static
   18346 
   18347 # Commands to strip libraries.
   18348 old_striplib=$lt_old_striplib
   18349 striplib=$lt_striplib
   18350 
   18351 
   18352 # The linker used to build libraries.
   18353 LD=$lt_LD
   18354 
   18355 # How to create reloadable object files.
   18356 reload_flag=$lt_reload_flag
   18357 reload_cmds=$lt_reload_cmds
   18358 
   18359 # Commands used to build an old-style archive.
   18360 old_archive_cmds=$lt_old_archive_cmds
   18361 
   18362 # A language specific compiler.
   18363 CC=$lt_compiler
   18364 
   18365 # Is the compiler the GNU compiler?
   18366 with_gcc=$GCC
   18367 
   18368 # Compiler flag to turn off builtin functions.
   18369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   18370 
   18371 # Additional compiler flags for building library objects.
   18372 pic_flag=$lt_lt_prog_compiler_pic
   18373 
   18374 # How to pass a linker flag through the compiler.
   18375 wl=$lt_lt_prog_compiler_wl
   18376 
   18377 # Compiler flag to prevent dynamic linking.
   18378 link_static_flag=$lt_lt_prog_compiler_static
   18379 
   18380 # Does compiler simultaneously support -c and -o options?
   18381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   18382 
   18383 # Whether or not to add -lc for building shared libraries.
   18384 build_libtool_need_lc=$archive_cmds_need_lc
   18385 
   18386 # Whether or not to disallow shared libs when runtime libs are static.
   18387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   18388 
   18389 # Compiler flag to allow reflexive dlopens.
   18390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   18391 
   18392 # Compiler flag to generate shared objects directly from archives.
   18393 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   18394 
   18395 # Whether the compiler copes with passing no objects directly.
   18396 compiler_needs_object=$lt_compiler_needs_object
   18397 
   18398 # Create an old-style archive from a shared archive.
   18399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   18400 
   18401 # Create a temporary old-style archive to link instead of a shared archive.
   18402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   18403 
   18404 # Commands used to build a shared archive.
   18405 archive_cmds=$lt_archive_cmds
   18406 archive_expsym_cmds=$lt_archive_expsym_cmds
   18407 
   18408 # Commands used to build a loadable module if different from building
   18409 # a shared archive.
   18410 module_cmds=$lt_module_cmds
   18411 module_expsym_cmds=$lt_module_expsym_cmds
   18412 
   18413 # Whether we are building with GNU ld or not.
   18414 with_gnu_ld=$lt_with_gnu_ld
   18415 
   18416 # Flag that allows shared libraries with undefined symbols to be built.
   18417 allow_undefined_flag=$lt_allow_undefined_flag
   18418 
   18419 # Flag that enforces no undefined symbols.
   18420 no_undefined_flag=$lt_no_undefined_flag
   18421 
   18422 # Flag to hardcode \$libdir into a binary during linking.
   18423 # This must work even if \$libdir does not exist
   18424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   18425 
   18426 # Whether we need a single "-rpath" flag with a separated argument.
   18427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   18428 
   18429 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   18430 # DIR into the resulting binary.
   18431 hardcode_direct=$hardcode_direct
   18432 
   18433 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   18434 # DIR into the resulting binary and the resulting library dependency is
   18435 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   18436 # library is relocated.
   18437 hardcode_direct_absolute=$hardcode_direct_absolute
   18438 
   18439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   18440 # into the resulting binary.
   18441 hardcode_minus_L=$hardcode_minus_L
   18442 
   18443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   18444 # into the resulting binary.
   18445 hardcode_shlibpath_var=$hardcode_shlibpath_var
   18446 
   18447 # Set to "yes" if building a shared library automatically hardcodes DIR
   18448 # into the library and all subsequent libraries and executables linked
   18449 # against it.
   18450 hardcode_automatic=$hardcode_automatic
   18451 
   18452 # Set to yes if linker adds runtime paths of dependent libraries
   18453 # to runtime path list.
   18454 inherit_rpath=$inherit_rpath
   18455 
   18456 # Whether libtool must link a program against all its dependency libraries.
   18457 link_all_deplibs=$link_all_deplibs
   18458 
   18459 # Set to "yes" if exported symbols are required.
   18460 always_export_symbols=$always_export_symbols
   18461 
   18462 # The commands to list exported symbols.
   18463 export_symbols_cmds=$lt_export_symbols_cmds
   18464 
   18465 # Symbols that should not be listed in the preloaded symbols.
   18466 exclude_expsyms=$lt_exclude_expsyms
   18467 
   18468 # Symbols that must always be exported.
   18469 include_expsyms=$lt_include_expsyms
   18470 
   18471 # Commands necessary for linking programs (against libraries) with templates.
   18472 prelink_cmds=$lt_prelink_cmds
   18473 
   18474 # Commands necessary for finishing linking programs.
   18475 postlink_cmds=$lt_postlink_cmds
   18476 
   18477 # Specify filename containing input files.
   18478 file_list_spec=$lt_file_list_spec
   18479 
   18480 # How to hardcode a shared library path into an executable.
   18481 hardcode_action=$hardcode_action
   18482 
   18483 # ### END LIBTOOL CONFIG
   18484 
   18485 _LT_EOF
   18486 
   18487     cat <<'_LT_EOF' >> "$cfgfile"
   18488 
   18489 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   18490 
   18491 # func_munge_path_list VARIABLE PATH
   18492 # -----------------------------------
   18493 # VARIABLE is name of variable containing _space_ separated list of
   18494 # directories to be munged by the contents of PATH, which is string
   18495 # having a format:
   18496 # "DIR[:DIR]:"
   18497 #       string "DIR[ DIR]" will be prepended to VARIABLE
   18498 # ":DIR[:DIR]"
   18499 #       string "DIR[ DIR]" will be appended to VARIABLE
   18500 # "DIRP[:DIRP]::[DIRA:]DIRA"
   18501 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   18502 #       "DIRA[ DIRA]" will be appended to VARIABLE
   18503 # "DIR[:DIR]"
   18504 #       VARIABLE will be replaced by "DIR[ DIR]"
   18505 func_munge_path_list ()
   18506 {
   18507     case x$2 in
   18508     x)
   18509         ;;
   18510     *:)
   18511         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   18512         ;;
   18513     x:*)
   18514         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   18515         ;;
   18516     *::*)
   18517         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   18518         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   18519         ;;
   18520     *)
   18521         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   18522         ;;
   18523     esac
   18524 }
   18525 
   18526 
   18527 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   18528 func_cc_basename ()
   18529 {
   18530     for cc_temp in $*""; do
   18531       case $cc_temp in
   18532         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   18533         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   18534         \-*) ;;
   18535         *) break;;
   18536       esac
   18537     done
   18538     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   18539 }
   18540 
   18541 
   18542 # ### END FUNCTIONS SHARED WITH CONFIGURE
   18543 
   18544 _LT_EOF
   18545 
   18546   case $host_os in
   18547   aix3*)
   18548     cat <<\_LT_EOF >> "$cfgfile"
   18549 # AIX sometimes has problems with the GCC collect2 program.  For some
   18550 # reason, if we set the COLLECT_NAMES environment variable, the problems
   18551 # vanish in a puff of smoke.
   18552 if test set != "${COLLECT_NAMES+set}"; then
   18553   COLLECT_NAMES=
   18554   export COLLECT_NAMES
   18555 fi
   18556 _LT_EOF
   18557     ;;
   18558   esac
   18559 
   18560 
   18561 ltmain=$ac_aux_dir/ltmain.sh
   18562 
   18563 
   18564   # We use sed instead of cat because bash on DJGPP gets confused if
   18565   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   18566   # text mode, it properly converts lines to CR/LF.  This bash problem
   18567   # is reportedly fixed, but why not run on old versions too?
   18568   sed '$q' "$ltmain" >> "$cfgfile" \
   18569      || (rm -f "$cfgfile"; exit 1)
   18570 
   18571    mv -f "$cfgfile" "$ofile" ||
   18572     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   18573   chmod +x "$ofile"
   18574 
   18575  ;;
   18576 
   18577   esac
   18578 done # for ac_tag
   18579 
   18580 
   18581 as_fn_exit 0
   18582 _ACEOF
   18583 ac_clean_files=$ac_clean_files_save
   18584 
   18585 test $ac_write_fail = 0 ||
   18586   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   18587 
   18588 
   18589 # configure is writing to config.log, and then calls config.status.
   18590 # config.status does its own redirection, appending to config.log.
   18591 # Unfortunately, on DOS this fails, as config.log is still kept open
   18592 # by configure, so config.status won't be able to write to it; its
   18593 # output is simply discarded.  So we exec the FD to /dev/null,
   18594 # effectively closing config.log, so it can be properly (re)opened and
   18595 # appended to by config.status.  When coming back to configure, we
   18596 # need to make the FD available again.
   18597 if test "$no_create" != yes; then
   18598   ac_cs_success=:
   18599   ac_config_status_args=
   18600   test "$silent" = yes &&
   18601     ac_config_status_args="$ac_config_status_args --quiet"
   18602   exec 5>/dev/null
   18603   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   18604   exec 5>>config.log
   18605   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   18606   # would make configure fail if this is the last instruction.
   18607   $ac_cs_success || as_fn_exit 1
   18608 fi
   18609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   18610   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   18611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   18612 fi
   18613 
   18614