Merge remote-tracking branch 'origin/tomato-shibby-RT-AC' into arrmo-RT-AC
[tomato.git] / release / src / router / dnscrypt / src / libevent-modified / autom4te.cache / output.0
blob5cbf65610b0033ea57ee4460c96441d6e57c0694
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for libevent 2.0.21-stable-dev.
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 ## -------------------- ##
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
34 as_nl='
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'
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   }
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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; }
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.
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
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
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
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
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
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
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@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
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
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 @%:@ as_fn_unset VAR
294 @%:@ ---------------
295 @%:@ Portably unset VAR.
296 as_fn_unset ()
298   { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 @%:@ as_fn_set_status STATUS
303 @%:@ -----------------------
304 @%:@ Set @S|@? to STATUS, without forking.
305 as_fn_set_status ()
307   return $1
308 } @%:@ as_fn_set_status
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 ()
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } @%:@ as_fn_exit
320 @%:@ as_fn_mkdir_p
321 @%:@ -------------
322 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
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"
366 } @%:@ as_fn_mkdir_p
368 @%:@ as_fn_executable_p FILE
369 @%:@ -----------------------
370 @%:@ Test if FILE is an executable regular file.
371 as_fn_executable_p ()
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
393 @%:@ as_fn_arith ARG...
394 @%:@ ------------------
395 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397 @%:@ must be portable across @S|@(()) 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
411 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412 @%:@ ----------------------------------------
413 @%:@ Output "`basename @S|@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 ()
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
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
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
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
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'`
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
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; }
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
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;;
518   ECHO_N='-n';;
519 esac
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
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'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIB@&t@OBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.0.21-stable-dev'
591 PACKAGE_STRING='libevent 2.0.21-stable-dev'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="evdns.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"
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 OPENSSL_FALSE
639 OPENSSL_TRUE
640 PTHREADS_FALSE
641 PTHREADS_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 LIB@&t@OBJS
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 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
663 BUILD_CYGWIN_FALSE
664 BUILD_CYGWIN_TRUE
665 BUILD_WIN32_FALSE
666 BUILD_WIN32_TRUE
667 OPENSSL_LIBS
668 OPENSSL_LIBADD
669 EV_LIB_GDI
670 EV_LIB_WS32
671 ZLIB_REGRESS_FALSE
672 ZLIB_REGRESS_TRUE
673 ZLIB_LIBS
674 BUILD_REGRESS_FALSE
675 BUILD_REGRESS_TRUE
676 LIBTOOL_DEPS
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 ac_ct_AR
686 DLLTOOL
687 OBJDUMP
689 ac_ct_DUMPBIN
690 DUMPBIN
692 FGREP
693 LIBTOOL
694 EGREP
695 GREP
698 LN_S
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_dependency_tracking
794 enable_gcc_warnings
795 enable_thread_support
796 enable_malloc_replacement
797 enable_openssl
798 enable_debug_mode
799 enable_libevent_install
800 enable_libevent_regress
801 enable_function_sections
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
880   case $ac_option in
881   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *=)   ac_optarg= ;;
883   *)    ac_optarg=yes ;;
884   esac
886   # Accept the important Cygnus configure options, so we can diagnose typos.
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
909   --config-cache | -C)
910     cache_file=config.cache ;;
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
924   -disable-* | --disable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=no ;;
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
950   -enable-* | --enable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error $? "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=\$ac_optarg ;;
966   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968   | --exec | --exe | --ex)
969     ac_prev=exec_prefix ;;
970   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972   | --exec=* | --exe=* | --ex=*)
973     exec_prefix=$ac_optarg ;;
975   -gas | --gas | --ga | --g)
976     # Obsolete; use --with-gas.
977     with_gas=yes ;;
979   -help | --help | --hel | --he | -h)
980     ac_init_help=long ;;
981   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982     ac_init_help=recursive ;;
983   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984     ac_init_help=short ;;
986   -host | --host | --hos | --ho)
987     ac_prev=host_alias ;;
988   -host=* | --host=* | --hos=* | --ho=*)
989     host_alias=$ac_optarg ;;
991   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992     ac_prev=htmldir ;;
993   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994   | --ht=*)
995     htmldir=$ac_optarg ;;
997   -includedir | --includedir | --includedi | --included | --include \
998   | --includ | --inclu | --incl | --inc)
999     ac_prev=includedir ;;
1000   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001   | --includ=* | --inclu=* | --incl=* | --inc=*)
1002     includedir=$ac_optarg ;;
1004   -infodir | --infodir | --infodi | --infod | --info | --inf)
1005     ac_prev=infodir ;;
1006   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007     infodir=$ac_optarg ;;
1009   -libdir | --libdir | --libdi | --libd)
1010     ac_prev=libdir ;;
1011   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012     libdir=$ac_optarg ;;
1014   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015   | --libexe | --libex | --libe)
1016     ac_prev=libexecdir ;;
1017   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018   | --libexe=* | --libex=* | --libe=*)
1019     libexecdir=$ac_optarg ;;
1021   -localedir | --localedir | --localedi | --localed | --locale)
1022     ac_prev=localedir ;;
1023   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024     localedir=$ac_optarg ;;
1026   -localstatedir | --localstatedir | --localstatedi | --localstated \
1027   | --localstate | --localstat | --localsta | --localst | --locals)
1028     ac_prev=localstatedir ;;
1029   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031     localstatedir=$ac_optarg ;;
1033   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034     ac_prev=mandir ;;
1035   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036     mandir=$ac_optarg ;;
1038   -nfp | --nfp | --nf)
1039     # Obsolete; use --without-fp.
1040     with_fp=no ;;
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n)
1044     no_create=yes ;;
1046   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048     no_recursion=yes ;;
1050   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052   | --oldin | --oldi | --old | --ol | --o)
1053     ac_prev=oldincludedir ;;
1054   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057     oldincludedir=$ac_optarg ;;
1059   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060     ac_prev=prefix ;;
1061   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062     prefix=$ac_optarg ;;
1064   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065   | --program-pre | --program-pr | --program-p)
1066     ac_prev=program_prefix ;;
1067   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069     program_prefix=$ac_optarg ;;
1071   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072   | --program-suf | --program-su | --program-s)
1073     ac_prev=program_suffix ;;
1074   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076     program_suffix=$ac_optarg ;;
1078   -program-transform-name | --program-transform-name \
1079   | --program-transform-nam | --program-transform-na \
1080   | --program-transform-n | --program-transform- \
1081   | --program-transform | --program-transfor \
1082   | --program-transfo | --program-transf \
1083   | --program-trans | --program-tran \
1084   | --progr-tra | --program-tr | --program-t)
1085     ac_prev=program_transform_name ;;
1086   -program-transform-name=* | --program-transform-name=* \
1087   | --program-transform-nam=* | --program-transform-na=* \
1088   | --program-transform-n=* | --program-transform-=* \
1089   | --program-transform=* | --program-transfor=* \
1090   | --program-transfo=* | --program-transf=* \
1091   | --program-trans=* | --program-tran=* \
1092   | --progr-tra=* | --program-tr=* | --program-t=*)
1093     program_transform_name=$ac_optarg ;;
1095   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096     ac_prev=pdfdir ;;
1097   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098     pdfdir=$ac_optarg ;;
1100   -psdir | --psdir | --psdi | --psd | --ps)
1101     ac_prev=psdir ;;
1102   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103     psdir=$ac_optarg ;;
1105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106   | -silent | --silent | --silen | --sile | --sil)
1107     silent=yes ;;
1109   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110     ac_prev=sbindir ;;
1111   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112   | --sbi=* | --sb=*)
1113     sbindir=$ac_optarg ;;
1115   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117   | --sharedst | --shareds | --shared | --share | --shar \
1118   | --sha | --sh)
1119     ac_prev=sharedstatedir ;;
1120   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123   | --sha=* | --sh=*)
1124     sharedstatedir=$ac_optarg ;;
1126   -site | --site | --sit)
1127     ac_prev=site ;;
1128   -site=* | --site=* | --sit=*)
1129     site=$ac_optarg ;;
1131   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132     ac_prev=srcdir ;;
1133   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134     srcdir=$ac_optarg ;;
1136   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137   | --syscon | --sysco | --sysc | --sys | --sy)
1138     ac_prev=sysconfdir ;;
1139   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141     sysconfdir=$ac_optarg ;;
1143   -target | --target | --targe | --targ | --tar | --ta | --t)
1144     ac_prev=target_alias ;;
1145   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146     target_alias=$ac_optarg ;;
1148   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149     verbose=yes ;;
1151   -version | --version | --versio | --versi | --vers | -V)
1152     ac_init_version=: ;;
1154   -with-* | --with-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=\$ac_optarg ;;
1170   -without-* | --without-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=no ;;
1186   --x)
1187     # Obsolete; use --with-x.
1188     with_x=yes ;;
1190   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191   | --x-incl | --x-inc | --x-in | --x-i)
1192     ac_prev=x_includes ;;
1193   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195     x_includes=$ac_optarg ;;
1197   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199     ac_prev=x_libraries ;;
1200   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202     x_libraries=$ac_optarg ;;
1204   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206     ;;
1208   *=*)
1209     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210     # Reject names that are not valid shell variable names.
1211     case $ac_envvar in #(
1212       '' | [0-9]* | *[!_$as_cr_alnum]* )
1213       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214     esac
1215     eval $ac_envvar=\$ac_optarg
1216     export $ac_envvar ;;
1218   *)
1219     # FIXME: should be removed in autoconf 3.0.
1220     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224     ;;
1226   esac
1227 done
1229 if test -n "$ac_prev"; then
1230   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231   as_fn_error $? "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235   case $enable_option_checking in
1236     no) ;;
1237     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239   esac
1242 # Check all directory arguments for consistency.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1248   eval ac_val=\$$ac_var
1249   # Remove trailing slashes.
1250   case $ac_val in
1251     */ )
1252       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253       eval $ac_var=\$ac_val;;
1254   esac
1255   # Be sure to have absolute directory names.
1256   case $ac_val in
1257     [\\/$]* | ?:[\\/]* )  continue;;
1258     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259   esac
1260   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272   if test "x$build_alias" = x; then
1273     cross_compiling=maybe
1274   elif test "x$build_alias" != "x$host_alias"; then
1275     cross_compiling=yes
1276   fi
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288   as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290   as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295   ac_srcdir_defaulted=yes
1296   # Try the directory containing this script, then the parent directory.
1297   ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299          X"$as_myself" : 'X\(//\)[^/]' \| \
1300          X"$as_myself" : 'X\(//\)$' \| \
1301          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)[^/].*/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)$/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\).*/{
1316             s//\1/
1317             q
1318           }
1319           s/.*/./; q'`
1320   srcdir=$ac_confdir
1321   if test ! -r "$srcdir/$ac_unique_file"; then
1322     srcdir=..
1323   fi
1324 else
1325   ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334         pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337   srcdir=.
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_env_${ac_var}_value=\$${ac_var}
1348   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356   # Omit some internal or obsolete options to make the list less imposing.
1357   # This message is too long to be a string in the A/UX 3.1 sh.
1358   cat <<_ACEOF
1359 \`configure' configures libevent 2.0.21-stable-dev to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1368 Configuration:
1369   -h, --help              display this help and exit
1370       --help=short        display options specific to this package
1371       --help=recursive    display the short help of all the included packages
1372   -V, --version           display version information and exit
1373   -q, --quiet, --silent   do not print \`checking ...' messages
1374       --cache-file=FILE   cache test results in FILE [disabled]
1375   -C, --config-cache      alias for \`--cache-file=config.cache'
1376   -n, --no-create         do not create output files
1377       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380   --prefix=PREFIX         install architecture-independent files in PREFIX
1381                           @<:@@S|@ac_default_prefix@:>@
1382   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                           @<:@PREFIX@:>@
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393   --bindir=DIR            user executables [EPREFIX/bin]
1394   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395   --libexecdir=DIR        program executables [EPREFIX/libexec]
1396   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399   --libdir=DIR            object code libraries [EPREFIX/lib]
1400   --includedir=DIR        C header files [PREFIX/include]
1401   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404   --infodir=DIR           info documentation [DATAROOTDIR/info]
1405   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406   --mandir=DIR            man documentation [DATAROOTDIR/man]
1407   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libevent@:>@
1408   --htmldir=DIR           html documentation [DOCDIR]
1409   --dvidir=DIR            dvi documentation [DOCDIR]
1410   --pdfdir=DIR            pdf documentation [DOCDIR]
1411   --psdir=DIR             ps documentation [DOCDIR]
1412 _ACEOF
1414   cat <<\_ACEOF
1416 Program names:
1417   --program-prefix=PREFIX            prepend PREFIX to installed program names
1418   --program-suffix=SUFFIX            append SUFFIX to installed program names
1419   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421 System types:
1422   --build=BUILD     configure for building on BUILD [guessed]
1423   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1427 if test -n "$ac_init_help"; then
1428   case $ac_init_help in
1429      short | recursive ) echo "Configuration of libevent 2.0.21-stable-dev:";;
1430    esac
1431   cat <<\_ACEOF
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --enable-silent-rules   less verbose build output (undo: "make V=1")
1438   --disable-silent-rules  verbose build output (undo: "make V=0")
1439   --enable-dependency-tracking 
1440                           do not reject slow dependency extractors
1441   --disable-dependency-tracking 
1442                           speeds up one-time build
1443   --enable-gcc-warnings   enable verbose warnings with GCC
1444   --disable-thread-support 
1445                           disable support for threading
1446   --disable-malloc-replacement 
1447                           disable support for replacing the memory mgt
1448                           functions
1449   --disable-openssl       disable support for openssl encryption
1450   --disable-debug-mode    disable support for running in debug mode
1451   --disable-libevent-install, disable installation of libevent 
1452                           
1453   --enable-libevent-regress, enable regress in make check 
1454                           
1455   --enable-function-sections, make static library allow smaller binaries with --gc-sections 
1456                           
1457   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1458   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1459   --enable-fast-install@<:@=PKGS@:>@ 
1460                           optimize for fast installation @<:@default=yes@:>@
1461   --disable-libtool-lock  avoid locking (might break parallel builds)
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1467                           both@:>@
1468   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1469   --with-sysroot=DIR Search for dependent libraries within DIR
1470                         (or the compiler's sysroot if not specified).
1472 Some influential environment variables:
1473   CC          C compiler command
1474   CFLAGS      C compiler flags
1475   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476               nonstandard directory <lib dir>
1477   LIBS        libraries to pass to the linker, e.g. -l<library>
1478   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479               you have headers in a nonstandard directory <include dir>
1480   CPP         C preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 _ACEOF
1487 ac_status=$?
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" ||
1494       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495       continue
1496     ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502   # A ".." for each directory in $ac_dir_suffix.
1503   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504   case $ac_top_builddir_sub in
1505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507   esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515   .)  # We are building in place.
1516     ac_srcdir=.
1517     ac_top_srcdir=$ac_top_builddir_sub
1518     ac_abs_top_srcdir=$ac_pwd ;;
1519   [\\/]* | ?:[\\/]* )  # Absolute name.
1520     ac_srcdir=$srcdir$ac_dir_suffix;
1521     ac_top_srcdir=$srcdir
1522     ac_abs_top_srcdir=$srcdir ;;
1523   *) # Relative name.
1524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525     ac_top_srcdir=$ac_top_build_prefix$srcdir
1526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530     cd "$ac_dir" || { ac_status=$?; continue; }
1531     # Check for guested configure.
1532     if test -f "$ac_srcdir/configure.gnu"; then
1533       echo &&
1534       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535     elif test -f "$ac_srcdir/configure"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure" --help=recursive
1538     else
1539       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540     fi || ac_status=$?
1541     cd "$ac_pwd" || { ac_status=$?; break; }
1542   done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547   cat <<\_ACEOF
1548 libevent configure 2.0.21-stable-dev
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555   exit
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 @%:@ ac_fn_c_try_compile LINENO
1563 @%:@ --------------------------
1564 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   rm -f conftest.$ac_objext
1569   if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_compile") 2>conftest.err
1577   ac_status=$?
1578   if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582   fi
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; } && {
1585          test -z "$ac_c_werror_flag" ||
1586          test ! -s conftest.err
1587        } && test -s conftest.$ac_objext; then :
1588   ac_retval=0
1589 else
1590   $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593         ac_retval=1
1595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596   as_fn_set_status $ac_retval
1598 } @%:@ ac_fn_c_try_compile
1600 @%:@ ac_fn_c_try_cpp LINENO
1601 @%:@ ----------------------
1602 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614   ac_status=$?
1615   if test -s conftest.err; then
1616     grep -v '^ *+' conftest.err >conftest.er1
1617     cat conftest.er1 >&5
1618     mv -f conftest.er1 conftest.err
1619   fi
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } > conftest.i && {
1622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623          test ! -s conftest.err
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630     ac_retval=1
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1635 } @%:@ ac_fn_c_try_cpp
1637 @%:@ ac_fn_c_try_link LINENO
1638 @%:@ -----------------------
1639 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   rm -f conftest.$ac_objext conftest$ac_exeext
1644   if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_link") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } && {
1660          test -z "$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        } && test -s conftest$ac_exeext && {
1663          test "$cross_compiling" = yes ||
1664          test -x conftest$ac_exeext
1665        }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671         ac_retval=1
1673   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675   # interfere with the next link command; also delete a directory that is
1676   # left behind by Apple's compiler.  We do this before executing the actions.
1677   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1681 } @%:@ ac_fn_c_try_link
1683 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 @%:@ -------------------------------------------------------
1685 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1686 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693   $as_echo_n "(cached) " >&6
1694 else
1695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h.  */
1698 @%:@include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701   eval "$3=yes"
1702 else
1703   eval "$3=no"
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 eval ac_res=\$$3
1708                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } @%:@ ac_fn_c_check_header_compile
1714 @%:@ ac_fn_c_try_run LINENO
1715 @%:@ ----------------------
1716 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1717 @%:@ that executables *can* be run.
1718 ac_fn_c_try_run ()
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_link") 2>&5
1729   ac_status=$?
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732   { { case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_try") 2>&5
1739   ac_status=$?
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; }; }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: program exited with status $ac_status" >&5
1745        $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748        ac_retval=$ac_status
1750   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752   as_fn_set_status $ac_retval
1754 } @%:@ ac_fn_c_try_run
1756 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1757 @%:@ ----------------------------------
1758 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771 #define $2 innocuous_$2
1773 /* System header to define __stub macros and hopefully few prototypes,
1774     which can conflict with char $2 (); below.
1775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776     <limits.h> exists even on freestanding compilers.  */
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1784 #undef $2
1786 /* Override any GCC internal prototype to avoid an error.
1787    Use char because int might match the return type of a GCC
1788    builtin and then its argument prototype would still apply.  */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794     to always fail with ENOSYS.  Some functions are actually named
1795     something starting with __ and the normal name is an alias.  */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1801 main ()
1803 return $2 ();
1804   ;
1805   return 0;
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809   eval "$3=yes"
1810 else
1811   eval "$3=no"
1813 rm -f core conftest.err conftest.$ac_objext \
1814     conftest$ac_exeext conftest.$ac_ext
1816 eval ac_res=\$$3
1817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } @%:@ ac_fn_c_check_func
1823 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 @%:@ -------------------------------------------------------
1825 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 @%:@ the include files in INCLUDES and setting the cache variable VAR
1827 @%:@ accordingly.
1828 ac_fn_c_check_header_mongrel ()
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   if eval \${$3+:} false; then :
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1837 eval ac_res=\$$3
1838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 else
1841   # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1847 @%:@include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   ac_header_compiler=yes
1851 else
1852   ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h.  */
1863 @%:@include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866   ac_header_preproc=yes
1867 else
1868   ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So?  What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876   yes:no: )
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881     ;;
1882   no:yes:* )
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893     ;;
1894 esac
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   eval "$3=\$ac_header_compiler"
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } @%:@ ac_fn_c_check_header_mongrel
1910 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 @%:@ ---------------------------------------------
1912 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 @%:@ accordingly.
1914 ac_fn_c_check_decl ()
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   as_decl_name=`echo $2|sed 's/ *(.*//'`
1918   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1928 main ()
1930 @%:@ifndef $as_decl_name
1931 @%:@ifdef __cplusplus
1932   (void) $as_decl_use;
1933 @%:@else
1934   (void) $as_decl_name;
1935 @%:@endif
1936 @%:@endif
1938   ;
1939   return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   eval "$3=yes"
1944 else
1945   eval "$3=no"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } @%:@ ac_fn_c_check_decl
1956 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957 @%:@ --------------------------------------------
1958 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1959 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1960 @%:@ computed
1961 ac_fn_c_compute_int ()
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   if test "$cross_compiling" = yes; then
1965     # Depending upon the size, compute the lo and hi bounds.
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1970 main ()
1972 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1973 test_array @<:@0@:>@ = 0;
1974 return test_array @<:@0@:>@;
1976   ;
1977   return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981   ac_lo=0 ac_mid=0
1982   while :; do
1983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1987 main ()
1989 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1990 test_array @<:@0@:>@ = 0;
1991 return test_array @<:@0@:>@;
1993   ;
1994   return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_hi=$ac_mid; break
1999 else
2000   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001                         if test $ac_lo -le $ac_mid; then
2002                           ac_lo= ac_hi=
2003                           break
2004                         fi
2005                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008   done
2009 else
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2014 main ()
2016 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2017 test_array @<:@0@:>@ = 0;
2018 return test_array @<:@0@:>@;
2020   ;
2021   return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   ac_hi=-1 ac_mid=-1
2026   while :; do
2027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2031 main ()
2033 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2034 test_array @<:@0@:>@ = 0;
2035 return test_array @<:@0@:>@;
2037   ;
2038   return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   ac_lo=$ac_mid; break
2043 else
2044   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045                         if test $ac_mid -le $ac_hi; then
2046                           ac_lo= ac_hi=
2047                           break
2048                         fi
2049                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052   done
2053 else
2054   ac_lo= ac_hi=
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2066 main ()
2068 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2069 test_array @<:@0@:>@ = 0;
2070 return test_array @<:@0@:>@;
2072   ;
2073   return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   ac_hi=$ac_mid
2078 else
2079   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 case $ac_lo in @%:@((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 '') ac_retval=1 ;;
2086 esac
2087   else
2088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2091 static long int longval () { return $2; }
2092 static unsigned long int ulongval () { return $2; }
2093 @%:@include <stdio.h>
2094 @%:@include <stdlib.h>
2096 main ()
2099   FILE *f = fopen ("conftest.val", "w");
2100   if (! f)
2101     return 1;
2102   if (($2) < 0)
2103     {
2104       long int i = longval ();
2105       if (i != ($2))
2106         return 1;
2107       fprintf (f, "%ld", i);
2108     }
2109   else
2110     {
2111       unsigned long int i = ulongval ();
2112       if (i != ($2))
2113         return 1;
2114       fprintf (f, "%lu", i);
2115     }
2116   /* Do not output a trailing newline, as this causes \r\n confusion
2117      on some platforms.  */
2118   return ferror (f) || fclose (f) != 0;
2120   ;
2121   return 0;
2123 _ACEOF
2124 if ac_fn_c_try_run "$LINENO"; then :
2125   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 else
2127   ac_retval=1
2129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2130   conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 rm -f conftest.val
2133   fi
2134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135   as_fn_set_status $ac_retval
2137 } @%:@ ac_fn_c_compute_int
2139 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 @%:@ -------------------------------------------
2141 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2142 @%:@ variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149   $as_echo_n "(cached) " >&6
2150 else
2151   eval "$3=no"
2152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2156 main ()
2158 if (sizeof ($2))
2159          return 0;
2160   ;
2161   return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2169 main ()
2171 if (sizeof (($2)))
2172             return 0;
2173   ;
2174   return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178   
2179 else
2180   eval "$3=yes"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } @%:@ ac_fn_c_check_type
2193 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2194 @%:@ ----------------------------------------------------
2195 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2196 @%:@ INCLUDES, setting cache variable VAR accordingly.
2197 ac_fn_c_check_member ()
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2201 $as_echo_n "checking for $2.$3... " >&6; }
2202 if eval \${$4+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2209 main ()
2211 static $2 ac_aggr;
2212 if (ac_aggr.$3)
2213 return 0;
2214   ;
2215   return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   eval "$4=yes"
2220 else
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2225 main ()
2227 static $2 ac_aggr;
2228 if (sizeof ac_aggr.$3)
2229 return 0;
2230   ;
2231   return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235   eval "$4=yes"
2236 else
2237   eval "$4=no"
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 eval ac_res=\$$4
2244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } @%:@ ac_fn_c_check_member
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by libevent $as_me 2.0.21-stable-dev, which was
2254 generated by GNU Autoconf 2.69.  Invocation command line was
2256   $ $0 $@
2258 _ACEOF
2259 exec 5>>config.log
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2275 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2276 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2279 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2280 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2281 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2283 _ASUNAME
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290     $as_echo "PATH: $as_dir"
2291   done
2292 IFS=$as_save_IFS
2294 } >&5
2296 cat >&5 <<_ACEOF
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2303 _ACEOF
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2317   for ac_arg
2318   do
2319     case $ac_arg in
2320     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322     | -silent | --silent | --silen | --sile | --sil)
2323       continue ;;
2324     *\'*)
2325       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326     esac
2327     case $ac_pass in
2328     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329     2)
2330       as_fn_append ac_configure_args1 " '$ac_arg'"
2331       if test $ac_must_keep_next = true; then
2332         ac_must_keep_next=false # Got value, back to normal.
2333       else
2334         case $ac_arg in
2335           *=* | --config-cache | -C | -disable-* | --disable-* \
2336           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338           | -with-* | --with-* | -without-* | --without-* | --x)
2339             case "$ac_configure_args0 " in
2340               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341             esac
2342             ;;
2343           -* ) ac_must_keep_next=true ;;
2344         esac
2345       fi
2346       as_fn_append ac_configure_args " '$ac_arg'"
2347       ;;
2348     esac
2349   done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log.  We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360   # Save into config.log some information that might help in debugging.
2361   {
2362     echo
2364     $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2367     echo
2368     # The following way of writing the cache mishandles newlines in values,
2370   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371     eval ac_val=\$$ac_var
2372     case $ac_val in #(
2373     *${as_nl}*)
2374       case $ac_var in #(
2375       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377       esac
2378       case $ac_var in #(
2379       _ | IFS | as_nl) ;; #(
2380       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381       *) { eval $ac_var=; unset $ac_var;} ;;
2382       esac ;;
2383     esac
2384   done
2385   (set) 2>&1 |
2386     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387     *${as_nl}ac_space=\ *)
2388       sed -n \
2389         "s/'\''/'\''\\\\'\'''\''/g;
2390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391       ;; #(
2392     *)
2393       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394       ;;
2395     esac |
2396     sort
2398     echo
2400     $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2403     echo
2404     for ac_var in $ac_subst_vars
2405     do
2406       eval ac_val=\$$ac_var
2407       case $ac_val in
2408       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409       esac
2410       $as_echo "$ac_var='\''$ac_val'\''"
2411     done | sort
2412     echo
2414     if test -n "$ac_subst_files"; then
2415       $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2418       echo
2419       for ac_var in $ac_subst_files
2420       do
2421         eval ac_val=\$$ac_var
2422         case $ac_val in
2423         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424         esac
2425         $as_echo "$ac_var='\''$ac_val'\''"
2426       done | sort
2427       echo
2428     fi
2430     if test -s confdefs.h; then
2431       $as_echo "## ----------- ##
2432 ## confdefs.h. ##
2433 ## ----------- ##"
2434       echo
2435       cat confdefs.h
2436       echo
2437     fi
2438     test "$ac_signal" != 0 &&
2439       $as_echo "$as_me: caught signal $ac_signal"
2440     $as_echo "$as_me: exit $exit_status"
2441   } >&5
2442   rm -f core *.core core.conftest.* &&
2443     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444     exit $exit_status
2445 ' 0
2446 for ac_signal in 1 2 13 15; do
2447   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 done
2449 ac_signal=0
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 @%:@define PACKAGE_URL "$PACKAGE_URL"
2480 _ACEOF
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 ac_site_file1=NONE
2486 ac_site_file2=NONE
2487 if test -n "$CONFIG_SITE"; then
2488   # We do not want a PATH search for config.site.
2489   case $CONFIG_SITE in @%:@((
2490     -*)  ac_site_file1=./$CONFIG_SITE;;
2491     */*) ac_site_file1=$CONFIG_SITE;;
2492     *)   ac_site_file1=./$CONFIG_SITE;;
2493   esac
2494 elif test "x$prefix" != xNONE; then
2495   ac_site_file1=$prefix/share/config.site
2496   ac_site_file2=$prefix/etc/config.site
2497 else
2498   ac_site_file1=$ac_default_prefix/share/config.site
2499   ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503   test "x$ac_site_file" = xNONE && continue
2504   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507     sed 's/^/| /' "$ac_site_file" >&5
2508     . "$ac_site_file" \
2509       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5; }
2513   fi
2514 done
2516 if test -r "$cache_file"; then
2517   # Some versions of bash will fail to source /dev/null (special files
2518   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2519   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522     case $cache_file in
2523       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524       *)                      . "./$cache_file";;
2525     esac
2526   fi
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530   >$cache_file
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538   eval ac_new_set=\$ac_env_${ac_var}_set
2539   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540   eval ac_new_val=\$ac_env_${ac_var}_value
2541   case $ac_old_set,$ac_new_set in
2542     set,)
2543       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545       ac_cache_corrupted=: ;;
2546     ,set)
2547       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549       ac_cache_corrupted=: ;;
2550     ,);;
2551     *)
2552       if test "x$ac_old_val" != "x$ac_new_val"; then
2553         # differences in whitespace do not lead to failure.
2554         ac_old_val_w=`echo x $ac_old_val`
2555         ac_new_val_w=`echo x $ac_new_val`
2556         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559           ac_cache_corrupted=:
2560         else
2561           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563           eval $ac_var=\$ac_old_val
2564         fi
2565         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2566 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2567         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2569       fi;;
2570   esac
2571   # Pass precious variables to config.status.
2572   if test "$ac_new_set" = set; then
2573     case $ac_new_val in
2574     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575     *) ac_arg=$ac_var=$ac_new_val ;;
2576     esac
2577     case " $ac_configure_args " in
2578       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2579       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580     esac
2581   fi
2582 done
2583 if $ac_cache_corrupted; then
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 am__api_version='1.14'
2604 ac_aux_dir=
2605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606   if test -f "$ac_dir/install-sh"; then
2607     ac_aux_dir=$ac_dir
2608     ac_install_sh="$ac_aux_dir/install-sh -c"
2609     break
2610   elif test -f "$ac_dir/install.sh"; then
2611     ac_aux_dir=$ac_dir
2612     ac_install_sh="$ac_aux_dir/install.sh -c"
2613     break
2614   elif test -f "$ac_dir/shtool"; then
2615     ac_aux_dir=$ac_dir
2616     ac_install_sh="$ac_aux_dir/shtool install -c"
2617     break
2618   fi
2619 done
2620 if test -z "$ac_aux_dir"; then
2621   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2633 # Find a good install program.  We prefer a C program (faster),
2634 # so one script is as good as another.  But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2639 # AIX /bin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if ${ac_cv_path_install+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     # Account for people who put trailing slashes in PATH elements.
2659 case $as_dir/ in @%:@((
2660   ./ | .// | /[cC]/* | \
2661   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663   /usr/ucb/* ) ;;
2664   *)
2665     # OSF1 and SCO ODT 3.0 have their own names for install.
2666     # Don't use installbsd from OSF since it installs stuff as root
2667     # by default.
2668     for ac_prog in ginstall scoinst install; do
2669       for ac_exec_ext in '' $ac_executable_extensions; do
2670         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671           if test $ac_prog = install &&
2672             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673             # AIX install.  It has an incompatible calling convention.
2674             :
2675           elif test $ac_prog = install &&
2676             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677             # program-specific install script used by HP pwplus--don't use.
2678             :
2679           else
2680             rm -rf conftest.one conftest.two conftest.dir
2681             echo one > conftest.one
2682             echo two > conftest.two
2683             mkdir conftest.dir
2684             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685               test -s conftest.one && test -s conftest.two &&
2686               test -s conftest.dir/conftest.one &&
2687               test -s conftest.dir/conftest.two
2688             then
2689               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690               break 3
2691             fi
2692           fi
2693         fi
2694       done
2695     done
2696     ;;
2697 esac
2699   done
2700 IFS=$as_save_IFS
2702 rm -rf conftest.one conftest.two conftest.dir
2705   if test "${ac_cv_path_install+set}" = set; then
2706     INSTALL=$ac_cv_path_install
2707   else
2708     # As a last resort, use the slow shell script.  Don't cache a
2709     # value for INSTALL within a source directory, because that will
2710     # break other packages using the cache if that directory is
2711     # removed, or if the value is a relative name.
2712     INSTALL=$ac_install_sh
2713   fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716 $as_echo "$INSTALL" >&6; }
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727 $as_echo_n "checking whether build environment is sane... " >&6; }
2728 # Reject unsafe characters in $srcdir or the absolute working directory
2729 # name.  Accept space and tab only in the latter.
2730 am_lf='
2732 case `pwd` in
2733   *[\\\"\#\$\&\'\`$am_lf]*)
2734     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2735 esac
2736 case $srcdir in
2737   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2738     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2739 esac
2741 # Do 'set' in a subshell so we don't clobber the current shell's
2742 # arguments.  Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2745 # directory).
2746 if (
2747    am_has_slept=no
2748    for am_try in 1 2; do
2749      echo "timestamp, slept: $am_has_slept" > conftest.file
2750      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751      if test "$*" = "X"; then
2752         # -L didn't work.
2753         set X `ls -t "$srcdir/configure" conftest.file`
2754      fi
2755      if test "$*" != "X $srcdir/configure conftest.file" \
2756         && test "$*" != "X conftest.file $srcdir/configure"; then
2758         # If neither matched, then we have a broken ls.  This can happen
2759         # if, for instance, CONFIG_SHELL is bash and it inherits a
2760         # broken ls alias from the environment.  This has actually
2761         # happened.  Such a system could not be considered "sane".
2762         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2763   alias in your environment" "$LINENO" 5
2764      fi
2765      if test "$2" = conftest.file || test $am_try -eq 2; then
2766        break
2767      fi
2768      # Just in case.
2769      sleep 1
2770      am_has_slept=yes
2771    done
2772    test "$2" = conftest.file
2773    )
2774 then
2775    # Ok.
2776    :
2777 else
2778    as_fn_error $? "newly created file is older than distributed files!
2779 Check your system clock" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782 $as_echo "yes" >&6; }
2783 # If we didn't sleep, we still need to ensure time stamps of config.status and
2784 # generated files are strictly newer.
2785 am_sleep_pid=
2786 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2787   ( sleep 1 ) &
2788   am_sleep_pid=$!
2791 rm -f conftest.file
2793 test "$program_prefix" != NONE &&
2794   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2795 # Use a double $ so make ignores it.
2796 test "$program_suffix" != NONE &&
2797   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2798 # Double any \ or $.
2799 # By default was `s,x,x', remove it if useless.
2800 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2801 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2803 # expand $ac_aux_dir to an absolute path
2804 am_aux_dir=`cd $ac_aux_dir && pwd`
2806 if test x"${MISSING+set}" != xset; then
2807   case $am_aux_dir in
2808   *\ * | *\     *)
2809     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2810   *)
2811     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2812   esac
2814 # Use eval to expand $SHELL
2815 if eval "$MISSING --is-lightweight"; then
2816   am_missing_run="$MISSING "
2817 else
2818   am_missing_run=
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823 if test x"${install_sh}" != xset; then
2824   case $am_aux_dir in
2825   *\ * | *\     *)
2826     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2827   *)
2828     install_sh="\${SHELL} $am_aux_dir/install-sh"
2829   esac
2832 # Installed binaries are usually stripped using 'strip' when the user
2833 # run "make install-strip".  However 'strip' might not be the right
2834 # tool to use in cross-compilation environments, therefore Automake
2835 # will honor the 'STRIP' environment variable to overrule this program.
2836 if test "$cross_compiling" != no; then
2837   if test -n "$ac_tool_prefix"; then
2838   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_STRIP+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$STRIP"; then
2846   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2865 STRIP=$ac_cv_prog_STRIP
2866 if test -n "$STRIP"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868 $as_echo "$STRIP" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_STRIP"; then
2877   ac_ct_STRIP=$STRIP
2878   # Extract the first word of "strip", so it can be a program name with args.
2879 set dummy strip; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   if test -n "$ac_ct_STRIP"; then
2886   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893     for ac_exec_ext in '' $ac_executable_extensions; do
2894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895     ac_cv_prog_ac_ct_STRIP="strip"
2896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900   done
2901 IFS=$as_save_IFS
2905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2906 if test -n "$ac_ct_STRIP"; then
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2908 $as_echo "$ac_ct_STRIP" >&6; }
2909 else
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914   if test "x$ac_ct_STRIP" = x; then
2915     STRIP=":"
2916   else
2917     case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923     STRIP=$ac_ct_STRIP
2924   fi
2925 else
2926   STRIP="$ac_cv_prog_STRIP"
2930 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2933 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2934 if test -z "$MKDIR_P"; then
2935   if ${ac_cv_path_mkdir+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943     for ac_prog in mkdir gmkdir; do
2944          for ac_exec_ext in '' $ac_executable_extensions; do
2945            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2946            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2947              'mkdir (GNU coreutils) '* | \
2948              'mkdir (coreutils) '* | \
2949              'mkdir (fileutils) '4.1*)
2950                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2951                break 3;;
2952            esac
2953          done
2954        done
2955   done
2956 IFS=$as_save_IFS
2960   test -d ./--version && rmdir ./--version
2961   if test "${ac_cv_path_mkdir+set}" = set; then
2962     MKDIR_P="$ac_cv_path_mkdir -p"
2963   else
2964     # As a last resort, use the slow shell script.  Don't cache a
2965     # value for MKDIR_P within a source directory, because that will
2966     # break other packages using the cache if that directory is
2967     # removed, or if the value is a relative name.
2968     MKDIR_P="$ac_install_sh -d"
2969   fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2972 $as_echo "$MKDIR_P" >&6; }
2974 for ac_prog in gawk mawk nawk awk
2976   # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_AWK+:} false; then :
2981   $as_echo_n "(cached) " >&6
2982 else
2983   if test -n "$AWK"; then
2984   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991     for ac_exec_ext in '' $ac_executable_extensions; do
2992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993     ac_cv_prog_AWK="$ac_prog"
2994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998   done
2999 IFS=$as_save_IFS
3003 AWK=$ac_cv_prog_AWK
3004 if test -n "$AWK"; then
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006 $as_echo "$AWK" >&6; }
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013   test -n "$AWK" && break
3014 done
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018 set x ${MAKE-make}
3019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   cat >conftest.make <<\_ACEOF
3024 SHELL = /bin/sh
3025 all:
3026         @echo '@@@%%%=$(MAKE)=@@@%%%'
3027 _ACEOF
3028 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3030   *@@@%%%=?*=@@@%%%*)
3031     eval ac_cv_prog_make_${ac_make}_set=yes;;
3032   *)
3033     eval ac_cv_prog_make_${ac_make}_set=no;;
3034 esac
3035 rm -f conftest.make
3037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040   SET_MAKE=
3041 else
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044   SET_MAKE="MAKE=${MAKE-make}"
3047 rm -rf .tst 2>/dev/null
3048 mkdir .tst 2>/dev/null
3049 if test -d .tst; then
3050   am__leading_dot=.
3051 else
3052   am__leading_dot=_
3054 rmdir .tst 2>/dev/null
3056 @%:@ Check whether --enable-silent-rules was given.
3057 if test "${enable_silent_rules+set}" = set; then :
3058   enableval=$enable_silent_rules; 
3061 case $enable_silent_rules in @%:@ (((
3062   yes) AM_DEFAULT_VERBOSITY=0;;
3063    no) AM_DEFAULT_VERBOSITY=1;;
3064     *) AM_DEFAULT_VERBOSITY=1;;
3065 esac
3066 am_make=${MAKE-make}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3068 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3069 if ${am_cv_make_support_nested_variables+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if $as_echo 'TRUE=$(BAR$(V))
3073 BAR0=false
3074 BAR1=true
3076 am__doit:
3077         @$(TRUE)
3078 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3079   am_cv_make_support_nested_variables=yes
3080 else
3081   am_cv_make_support_nested_variables=no
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3085 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3086 if test $am_cv_make_support_nested_variables = yes; then
3087     AM_V='$(V)'
3088   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3089 else
3090   AM_V=$AM_DEFAULT_VERBOSITY
3091   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3093 AM_BACKSLASH='\'
3095 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097   # is not polluted with repeated "-I."
3098   am__isrc=' -I$(srcdir)'
3099   # test to see if srcdir already configured
3100   if test -f $srcdir/config.status; then
3101     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3102   fi
3105 # test whether we have cygpath
3106 if test -z "$CYGPATH_W"; then
3107   if (cygpath --version) >/dev/null 2>/dev/null; then
3108     CYGPATH_W='cygpath -w'
3109   else
3110     CYGPATH_W=echo
3111   fi
3115 # Define the identity of the package.
3116  PACKAGE='libevent'
3117  VERSION='2.0.21-stable-dev'
3120 cat >>confdefs.h <<_ACEOF
3121 @%:@define PACKAGE "$PACKAGE"
3122 _ACEOF
3125 cat >>confdefs.h <<_ACEOF
3126 @%:@define VERSION "$VERSION"
3127 _ACEOF
3129 # Some tools Automake needs.
3131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3145 # For better backward compatibility.  To be removed once Automake 1.9.x
3146 # dies out for good.  For more background, see:
3147 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149 mkdir_p='$(MKDIR_P)'
3151 # We need awk for the "check" target.  The system "awk" is bad on
3152 # some platforms.
3153 # Always define AMTAR for backward compatibility.  Yes, it's still used
3154 # in the wild :-(  We should find a proper way to deprecate it ...
3155 AMTAR='$${TAR-tar}'
3158 # We'll loop over all known methods to create a tar archive until one works.
3159 _am_tools='gnutar  pax cpio none'
3161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168 # POSIX will say in a future version that running "rm -f" with no argument
3169 # is OK; and we want to be able to make that assumption in our Makefile
3170 # recipes.  So use an aggressive probe to check that the usage we want is
3171 # actually supported "in the wild" to an acceptable degree.
3172 # See automake bug#10828.
3173 # To make any issue more visible, cause the running configure to be aborted
3174 # by default if the 'rm' program in use doesn't match our expectations; the
3175 # user can still override this though.
3176 if rm -f && rm -fr && rm -rf; then : OK; else
3177   cat >&2 <<'END'
3178 Oops!
3180 Your 'rm' program seems unable to run without file operands specified
3181 on the command line, even when the '-f' option is present.  This is contrary
3182 to the behaviour of most rm programs out there, and not conforming with
3183 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3185 Please tell bug-automake@gnu.org about your system, including the value
3186 of your $PATH and any error possibly output before this message.  This
3187 can help us improve future automake versions.
3190   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3191     echo 'Configuration will proceed anyway, since you have set the' >&2
3192     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3193     echo >&2
3194   else
3195     cat >&2 <<'END'
3196 Aborting the configuration process, to ensure you take notice of the issue.
3198 You can download and install GNU coreutils to get an 'rm' implementation
3199 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3201 If you want to complete the configuration process using your problematic
3202 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3203 to "yes", and re-run configure.
3206     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3207   fi
3209 ac_config_headers="$ac_config_headers config.h"
3212 $as_echo "@%:@define NUMERIC_VERSION 0x02001501" >>confdefs.h
3215 if test "$prefix" = "NONE"; then
3216    prefix="/usr/local"
3219 # Make sure we can run config.sub.
3220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3221   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3224 $as_echo_n "checking build system type... " >&6; }
3225 if ${ac_cv_build+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   ac_build_alias=$build_alias
3229 test "x$ac_build_alias" = x &&
3230   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3231 test "x$ac_build_alias" = x &&
3232   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3234   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3238 $as_echo "$ac_cv_build" >&6; }
3239 case $ac_cv_build in
3240 *-*-*) ;;
3241 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3242 esac
3243 build=$ac_cv_build
3244 ac_save_IFS=$IFS; IFS='-'
3245 set x $ac_cv_build
3246 shift
3247 build_cpu=$1
3248 build_vendor=$2
3249 shift; shift
3250 # Remember, the first character of IFS is used to create $*,
3251 # except with old shells:
3252 build_os=$*
3253 IFS=$ac_save_IFS
3254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3258 $as_echo_n "checking host system type... " >&6; }
3259 if ${ac_cv_host+:} false; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   if test "x$host_alias" = x; then
3263   ac_cv_host=$ac_cv_build
3264 else
3265   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3266     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3271 $as_echo "$ac_cv_host" >&6; }
3272 case $ac_cv_host in
3273 *-*-*) ;;
3274 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3275 esac
3276 host=$ac_cv_host
3277 ac_save_IFS=$IFS; IFS='-'
3278 set x $ac_cv_host
3279 shift
3280 host_cpu=$1
3281 host_vendor=$2
3282 shift; shift
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3285 host_os=$*
3286 IFS=$ac_save_IFS
3287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3291 case "$host_os" in
3293  osf5*)
3294     CFLAGS="$CFLAGS -D_OSF_SOURCE"
3295     ;;
3296 esac
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$CC"; then
3312   ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$ac_cv_prog_CC"; then
3343   ac_ct_CC=$CC
3344   # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if test -n "$ac_ct_CC"; then
3352   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359     for ac_exec_ext in '' $ac_executable_extensions; do
3360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_ac_ct_CC="gcc"
3362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366   done
3367 IFS=$as_save_IFS
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3380   if test "x$ac_ct_CC" = x; then
3381     CC=""
3382   else
3383     case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389     CC=$ac_ct_CC
3390   fi
3391 else
3392   CC="$ac_cv_prog_CC"
3395 if test -z "$CC"; then
3396           if test -n "$ac_tool_prefix"; then
3397     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412     for ac_exec_ext in '' $ac_executable_extensions; do
3413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414     ac_cv_prog_CC="${ac_tool_prefix}cc"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434   fi
3436 if test -z "$CC"; then
3437   # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   if test -n "$CC"; then
3445   ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447   ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456        ac_prog_rejected=yes
3457        continue
3458      fi
3459     ac_cv_prog_CC="cc"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3467 if test $ac_prog_rejected = yes; then
3468   # We found a bogon in the path, so make sure we never use it.
3469   set dummy $ac_cv_prog_CC
3470   shift
3471   if test $@%:@ != 0; then
3472     # We chose a different compiler from the bogus one.
3473     # However, it has the same basename, so the bogon will be chosen
3474     # first if we set CC to just the basename; use the full file name.
3475     shift
3476     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477   fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493   if test -n "$ac_tool_prefix"; then
3494   for ac_prog in cl.exe
3495   do
3496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_CC+:} false; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test -n "$CC"; then
3504   ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_exec_ext in '' $ac_executable_extensions; do
3512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518   done
3519 IFS=$as_save_IFS
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533     test -n "$CC" && break
3534   done
3536 if test -z "$CC"; then
3537   ac_ct_CC=$CC
3538   for ac_prog in cl.exe
3540   # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$ac_ct_CC"; then
3548   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_prog_ac_ct_CC="$ac_prog"
3558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562   done
3563 IFS=$as_save_IFS
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577   test -n "$ac_ct_CC" && break
3578 done
3580   if test "x$ac_ct_CC" = x; then
3581     CC=""
3582   else
3583     case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589     CC=$ac_ct_CC
3590   fi
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details" "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion; do
3606   { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614   ac_status=$?
3615   if test -s conftest.err; then
3616     sed '10a\
3617 ... rest of stderr output deleted ...
3618          10q' conftest.err >conftest.er1
3619     cat conftest.er1 >&5
3620   fi
3621   rm -f conftest.er1 conftest.err
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }
3624 done
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3630 main ()
3633   ;
3634   return 0;
3636 _ACEOF
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3641 # of exeext.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 $as_echo_n "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649 ac_rmfiles=
3650 for ac_file in $ac_files
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655   esac
3656 done
3657 rm -f $ac_rmfiles
3659 if { { ac_try="$ac_link_default"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666   (eval "$ac_link_default") 2>&5
3667   ac_status=$?
3668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669   test $ac_status = 0; }; then :
3670   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3674 # Autoconf.
3675 for ac_file in $ac_files ''
3677   test -f "$ac_file" || continue
3678   case $ac_file in
3679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3680         ;;
3681     [ab].out )
3682         # We found the default executable, but exeext='' is most
3683         # certainly right.
3684         break;;
3685     *.* )
3686         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687         then :; else
3688            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689         fi
3690         # We set ac_cv_exeext here because the later test for it is not
3691         # safe: cross compilers may not add the suffix if given an `-o'
3692         # argument, so we may need to know it at that point already.
3693         # Even if this section looks crufty: it has the advantage of
3694         # actually working.
3695         break;;
3696     * )
3697         break;;
3698   esac
3699 done
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702 else
3703   ac_file=''
3705 if test -z "$ac_file"; then :
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error 77 "C compiler cannot create executables
3714 See \`config.log' for more details" "$LINENO" 5; }
3715 else
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3717 $as_echo "yes" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 ac_exeext=$ac_cv_exeext
3725 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3726 ac_clean_files=$ac_clean_files_save
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3728 $as_echo_n "checking for suffix of executables... " >&6; }
3729 if { { ac_try="$ac_link"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736   (eval "$ac_link") 2>&5
3737   ac_status=$?
3738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739   test $ac_status = 0; }; then :
3740   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3741 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3742 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 # `rm'.
3744 for ac_file in conftest.exe conftest conftest.*; do
3745   test -f "$ac_file" || continue
3746   case $ac_file in
3747     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749           break;;
3750     * ) break;;
3751   esac
3752 done
3753 else
3754   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3756 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details" "$LINENO" 5; }
3759 rm -f conftest conftest$ac_cv_exeext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3761 $as_echo "$ac_cv_exeext" >&6; }
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3765 ac_exeext=$EXEEXT
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 @%:@include <stdio.h>
3770 main ()
3772 FILE *f = fopen ("conftest.out", "w");
3773  return ferror (f) || fclose (f) != 0;
3775   ;
3776   return 0;
3778 _ACEOF
3779 ac_clean_files="$ac_clean_files conftest.out"
3780 # Check that the compiler produces executables we can run.  If not, either
3781 # the compiler is broken, or we cross compile.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3783 $as_echo_n "checking whether we are cross compiling... " >&6; }
3784 if test "$cross_compiling" != yes; then
3785   { { 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; }
3796   if { ac_try='./conftest$ac_cv_exeext'
3797   { { case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_try") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }; }; then
3807     cross_compiling=no
3808   else
3809     if test "$cross_compiling" = maybe; then
3810         cross_compiling=yes
3811     else
3812         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot run C compiled programs.
3815 If you meant to cross compile, use \`--host'.
3816 See \`config.log' for more details" "$LINENO" 5; }
3817     fi
3818   fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3821 $as_echo "$cross_compiling" >&6; }
3823 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3824 ac_clean_files=$ac_clean_files_save
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3826 $as_echo_n "checking for suffix of object files... " >&6; }
3827 if ${ac_cv_objext+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3834 main ()
3837   ;
3838   return 0;
3840 _ACEOF
3841 rm -f conftest.o conftest.obj
3842 if { { ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849   (eval "$ac_compile") 2>&5
3850   ac_status=$?
3851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852   test $ac_status = 0; }; then :
3853   for ac_file in conftest.o conftest.obj conftest.*; do
3854   test -f "$ac_file" || continue;
3855   case $ac_file in
3856     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3857     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3858        break;;
3859   esac
3860 done
3861 else
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of object files: cannot compile
3868 See \`config.log' for more details" "$LINENO" 5; }
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3873 $as_echo "$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3875 ac_objext=$OBJEXT
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3877 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3878 if ${ac_cv_c_compiler_gnu+:} false; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3885 main ()
3887 #ifndef __GNUC__
3888        choke me
3889 #endif
3891   ;
3892   return 0;
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_compiler_gnu=yes
3897 else
3898   ac_compiler_gnu=no
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3906 if test $ac_compiler_gnu = yes; then
3907   GCC=yes
3908 else
3909   GCC=
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3914 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3915 if ${ac_cv_prog_cc_g+:} false; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   ac_save_c_werror_flag=$ac_c_werror_flag
3919    ac_c_werror_flag=yes
3920    ac_cv_prog_cc_g=no
3921    CFLAGS="-g"
3922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h.  */
3926 main ()
3929   ;
3930   return 0;
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_prog_cc_g=yes
3935 else
3936   CFLAGS=""
3937       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3941 main ()
3944   ;
3945   return 0;
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949   
3950 else
3951   ac_c_werror_flag=$ac_save_c_werror_flag
3952          CFLAGS="-g"
3953          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3957 main ()
3960   ;
3961   return 0;
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965   ac_cv_prog_cc_g=yes
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972    ac_c_werror_flag=$ac_save_c_werror_flag
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3975 $as_echo "$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977   CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979   if test "$GCC" = yes; then
3980     CFLAGS="-g -O2"
3981   else
3982     CFLAGS="-g"
3983   fi
3984 else
3985   if test "$GCC" = yes; then
3986     CFLAGS="-O2"
3987   else
3988     CFLAGS=
3989   fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3993 if ${ac_cv_prog_cc_c89+:} false; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   ac_cv_prog_cc_c89=no
3997 ac_save_CC=$CC
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <stdarg.h>
4001 #include <stdio.h>
4002 struct stat;
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4007      char **p;
4008      int i;
4010   return p[i];
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4014   char *s;
4015   va_list v;
4016   va_start (v,p);
4017   s = g (p, va_arg (v,int));
4018   va_end (v);
4019   return s;
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4023    function prototypes and stuff, but not '\xHH' hex character constants.
4024    These don't provoke an error unfortunately, instead are silently treated
4025    as 'x'.  The following induces an error, until -std is added to get
4026    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4027    array size at least.  It's necessary to write '\x00'==0 to get something
4028    that's true only with -std.  */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032    inside strings and character constants.  */
4033 #define FOO(x) 'x'
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4040 int argc;
4041 char **argv;
4043 main ()
4045 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4046   ;
4047   return 0;
4049 _ACEOF
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053   CC="$ac_save_CC $ac_arg"
4054   if ac_fn_c_try_compile "$LINENO"; then :
4055   ac_cv_prog_cc_c89=$ac_arg
4057 rm -f core conftest.err conftest.$ac_objext
4058   test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 done
4060 rm -f conftest.$ac_ext
4061 CC=$ac_save_CC
4064 # AC_CACHE_VAL
4065 case "x$ac_cv_prog_cc_c89" in
4066   x)
4067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 $as_echo "none needed" >&6; } ;;
4069   xno)
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 $as_echo "unsupported" >&6; } ;;
4072   *)
4073     CC="$CC $ac_cv_prog_cc_c89"
4074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 esac
4077 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078   
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4093 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4094 if ${am_cv_prog_cc_c_o+:} false; then :
4095   $as_echo_n "(cached) " >&6
4096 else
4097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4101 main ()
4104   ;
4105   return 0;
4107 _ACEOF
4108   # Make sure it works both with $CC and with simple cc.
4109   # Following AC_PROG_CC_C_O, we do the test twice because some
4110   # compilers refuse to overwrite an existing .o file with -o,
4111   # though they will create one.
4112   am_cv_prog_cc_c_o=yes
4113   for am_i in 1 2; do
4114     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4115    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4116    ac_status=$?
4117    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118    (exit $ac_status); } \
4119          && test -f conftest2.$ac_objext; then
4120       : OK
4121     else
4122       am_cv_prog_cc_c_o=no
4123       break
4124     fi
4125   done
4126   rm -f core conftest*
4127   unset am_i
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4130 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4131 if test "$am_cv_prog_cc_c_o" != yes; then
4132    # Losing compiler, so override with the script.
4133    # FIXME: It is wrong to rewrite CC.
4134    # But if we don't then we get into trouble of one sort or another.
4135    # A longer-term fix would be to have automake use am__CC in this case,
4136    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4137    CC="$am_aux_dir/compile $CC"
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 DEPDIR="${am__leading_dot}deps"
4147 ac_config_commands="$ac_config_commands depfiles"
4150 am_make=${MAKE-make}
4151 cat > confinc << 'END'
4152 am__doit:
4153         @echo this is the am__doit target
4154 .PHONY: am__doit
4156 # If we don't find an include directive, just comment out the code.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4159 am__include="#"
4160 am__quote=
4161 _am_result=none
4162 # First try GNU make style include.
4163 echo "include confinc" > confmf
4164 # Ignore all kinds of additional output from 'make'.
4165 case `$am_make -s -f confmf 2> /dev/null` in #(
4166 *the\ am__doit\ target*)
4167   am__include=include
4168   am__quote=
4169   _am_result=GNU
4170   ;;
4171 esac
4172 # Now try BSD make style include.
4173 if test "$am__include" = "#"; then
4174    echo '.include "confinc"' > confmf
4175    case `$am_make -s -f confmf 2> /dev/null` in #(
4176    *the\ am__doit\ target*)
4177      am__include=.include
4178      am__quote="\""
4179      _am_result=BSD
4180      ;;
4181    esac
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186 $as_echo "$_am_result" >&6; }
4187 rm -f confinc confmf
4189 @%:@ Check whether --enable-dependency-tracking was given.
4190 if test "${enable_dependency_tracking+set}" = set; then :
4191   enableval=$enable_dependency_tracking; 
4194 if test "x$enable_dependency_tracking" != xno; then
4195   am_depcomp="$ac_aux_dir/depcomp"
4196   AMDEPBACKSLASH='\'
4197   am__nodep='_no'
4199  if test "x$enable_dependency_tracking" != xno; then
4200   AMDEP_TRUE=
4201   AMDEP_FALSE='#'
4202 else
4203   AMDEP_TRUE='#'
4204   AMDEP_FALSE=
4209 depcc="$CC"   am_compiler_list=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212 $as_echo_n "checking dependency style of $depcc... " >&6; }
4213 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217   # We make a subdir and do the tests there.  Otherwise we can end up
4218   # making bogus files that we don't know about and never remove.  For
4219   # instance it was reported that on HP-UX the gcc test will end up
4220   # making a dummy file named 'D' -- because '-MD' means "put the output
4221   # in D".
4222   rm -rf conftest.dir
4223   mkdir conftest.dir
4224   # Copy depcomp to subdir because otherwise we won't find it if we're
4225   # using a relative directory.
4226   cp "$am_depcomp" conftest.dir
4227   cd conftest.dir
4228   # We will build objects and dependencies in a subdirectory because
4229   # it helps to detect inapplicable dependency modes.  For instance
4230   # both Tru64's cc and ICC support -MD to output dependencies as a
4231   # side effect of compilation, but ICC will put the dependencies in
4232   # the current directory while Tru64 will put them in the object
4233   # directory.
4234   mkdir sub
4236   am_cv_CC_dependencies_compiler_type=none
4237   if test "$am_compiler_list" = ""; then
4238      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4239   fi
4240   am__universal=false
4241   case " $depcc " in #(
4242      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4243      esac
4245   for depmode in $am_compiler_list; do
4246     # Setup a source with many dependencies, because some compilers
4247     # like to wrap large dependency lists on column 80 (with \), and
4248     # we should not choose a depcomp mode which is confused by this.
4249     #
4250     # We need to recreate these files for each test, as the compiler may
4251     # overwrite some of them when testing with obscure command lines.
4252     # This happens at least with the AIX C compiler.
4253     : > sub/conftest.c
4254     for i in 1 2 3 4 5 6; do
4255       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4257       # Solaris 10 /bin/sh.
4258       echo '/* dummy */' > sub/conftst$i.h
4259     done
4260     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4263     # mode.  It turns out that the SunPro C++ compiler does not properly
4264     # handle '-M -o', and we need to detect this.  Also, some Intel
4265     # versions had trouble with output in subdirs.
4266     am__obj=sub/conftest.${OBJEXT-o}
4267     am__minus_obj="-o $am__obj"
4268     case $depmode in
4269     gcc)
4270       # This depmode causes a compiler race in universal mode.
4271       test "$am__universal" = false || continue
4272       ;;
4273     nosideeffect)
4274       # After this tag, mechanisms are not by side-effect, so they'll
4275       # only be used when explicitly requested.
4276       if test "x$enable_dependency_tracking" = xyes; then
4277         continue
4278       else
4279         break
4280       fi
4281       ;;
4282     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283       # This compiler won't grok '-c -o', but also, the minuso test has
4284       # not run yet.  These depmodes are late enough in the game, and
4285       # so weak that their functioning should not be impacted.
4286       am__obj=conftest.${OBJEXT-o}
4287       am__minus_obj=
4288       ;;
4289     none) break ;;
4290     esac
4291     if depmode=$depmode \
4292        source=sub/conftest.c object=$am__obj \
4293        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295          >/dev/null 2>conftest.err &&
4296        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300       # icc doesn't choke on unknown options, it will just issue warnings
4301       # or remarks (even with -Werror).  So we grep stderr for any message
4302       # that says an option was ignored or not supported.
4303       # When given -MP, icc 7.0 and 7.1 complain thusly:
4304       #   icc: Command line warning: ignoring option '-M'; no argument required
4305       # The diagnosis changed in icc 8.0:
4306       #   icc: Command line remark: option '-MP' not supported
4307       if (grep 'ignoring option' conftest.err ||
4308           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309         am_cv_CC_dependencies_compiler_type=$depmode
4310         break
4311       fi
4312     fi
4313   done
4315   cd ..
4316   rm -rf conftest.dir
4317 else
4318   am_cv_CC_dependencies_compiler_type=none
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4326  if 
4327   test "x$enable_dependency_tracking" != xno \
4328   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4329   am__fastdepCC_TRUE=
4330   am__fastdepCC_FALSE='#'
4331 else
4332   am__fastdepCC_TRUE='#'
4333   am__fastdepCC_FALSE=
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4340 $as_echo_n "checking whether ln -s works... " >&6; }
4341 LN_S=$as_ln_s
4342 if test "$LN_S" = "ln -s"; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4347 $as_echo "no, using $LN_S" >&6; }
4350 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4352 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4353 # versions
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4355 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4356 if ${ac_cv_path_SED+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4360      for ac_i in 1 2 3 4 5 6 7; do
4361        ac_script="$ac_script$as_nl$ac_script"
4362      done
4363      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4364      { ac_script=; unset ac_script;}
4365      if test -z "$SED"; then
4366   ac_path_SED_found=false
4367   # Loop through the user's path and test for each of PROGNAME-LIST
4368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_prog in sed gsed; do
4374     for ac_exec_ext in '' $ac_executable_extensions; do
4375       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4376       as_fn_executable_p "$ac_path_SED" || continue
4377 # Check for GNU ac_path_SED and select it if it is found.
4378   # Check for GNU $ac_path_SED
4379 case `"$ac_path_SED" --version 2>&1` in
4380 *GNU*)
4381   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4383   ac_count=0
4384   $as_echo_n 0123456789 >"conftest.in"
4385   while :
4386   do
4387     cat "conftest.in" "conftest.in" >"conftest.tmp"
4388     mv "conftest.tmp" "conftest.in"
4389     cp "conftest.in" "conftest.nl"
4390     $as_echo '' >> "conftest.nl"
4391     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393     as_fn_arith $ac_count + 1 && ac_count=$as_val
4394     if test $ac_count -gt ${ac_path_SED_max-0}; then
4395       # Best one so far, save it but keep looking for a better one
4396       ac_cv_path_SED="$ac_path_SED"
4397       ac_path_SED_max=$ac_count
4398     fi
4399     # 10*(2^10) chars as input seems more than enough
4400     test $ac_count -gt 10 && break
4401   done
4402   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4405       $ac_path_SED_found && break 3
4406     done
4407   done
4408   done
4409 IFS=$as_save_IFS
4410   if test -z "$ac_cv_path_SED"; then
4411     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4412   fi
4413 else
4414   ac_cv_path_SED=$SED
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4419 $as_echo "$ac_cv_path_SED" >&6; }
4420  SED="$ac_cv_path_SED"
4421   rm -f conftest.sed
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4432 # On Suns, sometimes $CPP names a directory.
4433 if test -n "$CPP" && test -d "$CPP"; then
4434   CPP=
4436 if test -z "$CPP"; then
4437   if ${ac_cv_prog_CPP+:} false; then :
4438   $as_echo_n "(cached) " >&6
4439 else
4440       # Double quotes because CPP needs to be expanded
4441     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4442     do
4443       ac_preproc_ok=false
4444 for ac_c_preproc_warn_flag in '' yes
4446   # Use a header file that comes with gcc, so configuring glibc
4447   # with a fresh cross-compiler works.
4448   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449   # <limits.h> exists even on freestanding compilers.
4450   # On the NeXT, cc -E runs the code through the compiler's parser,
4451   # not just through cpp. "Syntax error" is here to catch this case.
4452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454 @%:@ifdef __STDC__
4455 @%:@ include <limits.h>
4456 @%:@else
4457 @%:@ include <assert.h>
4458 @%:@endif
4459                      Syntax error
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462   
4463 else
4464   # Broken: fails on valid input.
4465 continue
4467 rm -f conftest.err conftest.i conftest.$ac_ext
4469   # OK, works on sane cases.  Now check whether nonexistent headers
4470   # can be detected and how.
4471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473 @%:@include <ac_nonexistent.h>
4474 _ACEOF
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476   # Broken: success on invalid input.
4477 continue
4478 else
4479   # Passes both tests.
4480 ac_preproc_ok=:
4481 break
4483 rm -f conftest.err conftest.i conftest.$ac_ext
4485 done
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.i conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then :
4489   break
4492     done
4493     ac_cv_prog_CPP=$CPP
4494   
4496   CPP=$ac_cv_prog_CPP
4497 else
4498   ac_cv_prog_CPP=$CPP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501 $as_echo "$CPP" >&6; }
4502 ac_preproc_ok=false
4503 for ac_c_preproc_warn_flag in '' yes
4505   # Use a header file that comes with gcc, so configuring glibc
4506   # with a fresh cross-compiler works.
4507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508   # <limits.h> exists even on freestanding compilers.
4509   # On the NeXT, cc -E runs the code through the compiler's parser,
4510   # not just through cpp. "Syntax error" is here to catch this case.
4511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513 @%:@ifdef __STDC__
4514 @%:@ include <limits.h>
4515 @%:@else
4516 @%:@ include <assert.h>
4517 @%:@endif
4518                      Syntax error
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521   
4522 else
4523   # Broken: fails on valid input.
4524 continue
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4528   # OK, works on sane cases.  Now check whether nonexistent headers
4529   # can be detected and how.
4530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532 @%:@include <ac_nonexistent.h>
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535   # Broken: success on invalid input.
4536 continue
4537 else
4538   # Passes both tests.
4539 ac_preproc_ok=:
4540 break
4542 rm -f conftest.err conftest.i conftest.$ac_ext
4544 done
4545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546 rm -f conftest.i conftest.err conftest.$ac_ext
4547 if $ac_preproc_ok; then :
4548   
4549 else
4550   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4553 See \`config.log' for more details" "$LINENO" 5; }
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565 if ${ac_cv_path_GREP+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   if test -z "$GREP"; then
4569   ac_path_GREP_found=false
4570   # Loop through the user's path and test for each of PROGNAME-LIST
4571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576     for ac_prog in grep ggrep; do
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579       as_fn_executable_p "$ac_path_GREP" || continue
4580 # Check for GNU ac_path_GREP and select it if it is found.
4581   # Check for GNU $ac_path_GREP
4582 case `"$ac_path_GREP" --version 2>&1` in
4583 *GNU*)
4584   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4586   ac_count=0
4587   $as_echo_n 0123456789 >"conftest.in"
4588   while :
4589   do
4590     cat "conftest.in" "conftest.in" >"conftest.tmp"
4591     mv "conftest.tmp" "conftest.in"
4592     cp "conftest.in" "conftest.nl"
4593     $as_echo 'GREP' >> "conftest.nl"
4594     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596     as_fn_arith $ac_count + 1 && ac_count=$as_val
4597     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598       # Best one so far, save it but keep looking for a better one
4599       ac_cv_path_GREP="$ac_path_GREP"
4600       ac_path_GREP_max=$ac_count
4601     fi
4602     # 10*(2^10) chars as input seems more than enough
4603     test $ac_count -gt 10 && break
4604   done
4605   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608       $ac_path_GREP_found && break 3
4609     done
4610   done
4611   done
4612 IFS=$as_save_IFS
4613   if test -z "$ac_cv_path_GREP"; then
4614     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615   fi
4616 else
4617   ac_cv_path_GREP=$GREP
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622 $as_echo "$ac_cv_path_GREP" >&6; }
4623  GREP="$ac_cv_path_GREP"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627 $as_echo_n "checking for egrep... " >&6; }
4628 if ${ac_cv_path_EGREP+:} false; then :
4629   $as_echo_n "(cached) " >&6
4630 else
4631   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632    then ac_cv_path_EGREP="$GREP -E"
4633    else
4634      if test -z "$EGREP"; then
4635   ac_path_EGREP_found=false
4636   # Loop through the user's path and test for each of PROGNAME-LIST
4637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_prog in egrep; do
4643     for ac_exec_ext in '' $ac_executable_extensions; do
4644       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645       as_fn_executable_p "$ac_path_EGREP" || continue
4646 # Check for GNU ac_path_EGREP and select it if it is found.
4647   # Check for GNU $ac_path_EGREP
4648 case `"$ac_path_EGREP" --version 2>&1` in
4649 *GNU*)
4650   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652   ac_count=0
4653   $as_echo_n 0123456789 >"conftest.in"
4654   while :
4655   do
4656     cat "conftest.in" "conftest.in" >"conftest.tmp"
4657     mv "conftest.tmp" "conftest.in"
4658     cp "conftest.in" "conftest.nl"
4659     $as_echo 'EGREP' >> "conftest.nl"
4660     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662     as_fn_arith $ac_count + 1 && ac_count=$as_val
4663     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664       # Best one so far, save it but keep looking for a better one
4665       ac_cv_path_EGREP="$ac_path_EGREP"
4666       ac_path_EGREP_max=$ac_count
4667     fi
4668     # 10*(2^10) chars as input seems more than enough
4669     test $ac_count -gt 10 && break
4670   done
4671   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4674       $ac_path_EGREP_found && break 3
4675     done
4676   done
4677   done
4678 IFS=$as_save_IFS
4679   if test -z "$ac_cv_path_EGREP"; then
4680     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681   fi
4682 else
4683   ac_cv_path_EGREP=$EGREP
4686    fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689 $as_echo "$ac_cv_path_EGREP" >&6; }
4690  EGREP="$ac_cv_path_EGREP"
4693 if test $ac_cv_c_compiler_gnu = yes; then
4694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4695 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4696 if ${ac_cv_prog_gcc_traditional+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699     ac_pattern="Autoconf.*'x'"
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <sgtty.h>
4703 Autoconf TIOCGETP
4704 _ACEOF
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4707   ac_cv_prog_gcc_traditional=yes
4708 else
4709   ac_cv_prog_gcc_traditional=no
4711 rm -f conftest*
4714   if test $ac_cv_prog_gcc_traditional = no; then
4715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717 #include <termio.h>
4718 Autoconf TCGETA
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4722   ac_cv_prog_gcc_traditional=yes
4724 rm -f conftest*
4726   fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4729 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4730   if test $ac_cv_prog_gcc_traditional = yes; then
4731     CC="$CC -traditional"
4732   fi
4736 # We need to test for at least gcc 2.95 here, because older versions don't
4737 # have -fno-strict-aliasing
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4742 main ()
4745 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4746 #error
4747 #endif
4748   ;
4749   return 0;
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753   have_gcc295=yes
4754 else
4755   have_gcc295=no
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 if test "$GCC" = "yes" ; then
4760         # Enable many gcc warnings by default...
4761         CFLAGS="$CFLAGS -Wall"
4762         # And disable the strict-aliasing optimization, since it breaks
4763         # our sockaddr-handling code in strange ways.
4764         if test x$have_gcc295 = xyes; then
4765                 CFLAGS="$CFLAGS -fno-strict-aliasing"
4766         fi
4769 # OS X Lion started deprecating the system openssl. Let's just disable
4770 # all deprecation warnings on OS X.
4771 case "$host_os" in
4773  darwin*)
4774     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4775     ;;
4776 esac
4778 @%:@ Check whether --enable-gcc-warnings was given.
4779 if test "${enable_gcc_warnings+set}" = set; then :
4780   enableval=$enable_gcc_warnings; 
4783 @%:@ Check whether --enable-thread-support was given.
4784 if test "${enable_thread_support+set}" = set; then :
4785   enableval=$enable_thread_support; 
4786 else
4787   enable_thread_support=yes
4790 @%:@ Check whether --enable-malloc-replacement was given.
4791 if test "${enable_malloc_replacement+set}" = set; then :
4792   enableval=$enable_malloc_replacement; 
4793 else
4794   enable_malloc_replacement=yes
4797 @%:@ Check whether --enable-openssl was given.
4798 if test "${enable_openssl+set}" = set; then :
4799   enableval=$enable_openssl; 
4800 else
4801   enable_openssl=yes
4804 @%:@ Check whether --enable-debug-mode was given.
4805 if test "${enable_debug_mode+set}" = set; then :
4806   enableval=$enable_debug_mode; 
4807 else
4808   enable_debug_mode=yes
4811 @%:@ Check whether --enable-libevent-install was given.
4812 if test "${enable_libevent_install+set}" = set; then :
4813   enableval=$enable_libevent_install; 
4814 else
4815   enable_libevent_install=yes
4818 @%:@ Check whether --enable-libevent-regress was given.
4819 if test "${enable_libevent_regress+set}" = set; then :
4820   enableval=$enable_libevent_regress; enable_libevent_regress=yes
4823 @%:@ Check whether --enable-function-sections was given.
4824 if test "${enable_function_sections+set}" = set; then :
4825   enableval=$enable_function_sections; 
4826 else
4827   enable_function_sections=no
4832 case `pwd` in
4833   *\ * | *\     *)
4834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4835 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4836 esac
4840 macro_version='2.4.2'
4841 macro_revision='1.3337'
4843     
4844     
4845     
4848     
4849     
4850     
4855 ltmain="$ac_aux_dir/ltmain.sh"
4857 # Backslashify metacharacters that are still active within
4858 # double-quoted strings.
4859 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4861 # Same as above, but do not quote variable references.
4862 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4864 # Sed substitution to delay expansion of an escaped shell variable in a
4865 # double_quote_subst'ed string.
4866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4868 # Sed substitution to delay expansion of an escaped single quote.
4869 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4871 # Sed substitution to avoid accidental globbing in evaled expressions
4872 no_glob_subst='s/\*/\\\*/g'
4874 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4879 $as_echo_n "checking how to print strings... " >&6; }
4880 # Test print first, because it will be a builtin if present.
4881 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4882    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4883   ECHO='print -r --'
4884 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4885   ECHO='printf %s\n'
4886 else
4887   # Use this function as a fallback that always works.
4888   func_fallback_echo ()
4889   {
4890     eval 'cat <<_LTECHO_EOF
4892 _LTECHO_EOF'
4893   }
4894   ECHO='func_fallback_echo'
4897 # func_echo_all arg...
4898 # Invoke $ECHO with all args, space-separated.
4899 func_echo_all ()
4901     $ECHO "" 
4904 case "$ECHO" in
4905   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4906 $as_echo "printf" >&6; } ;;
4907   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4908 $as_echo "print -r" >&6; } ;;
4909   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4910 $as_echo "cat" >&6; } ;;
4911 esac
4916     
4917     
4918     
4921     
4922     
4923     
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4927 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4928 if ${ac_cv_path_SED+:} false; then :
4929   $as_echo_n "(cached) " >&6
4930 else
4931             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4932      for ac_i in 1 2 3 4 5 6 7; do
4933        ac_script="$ac_script$as_nl$ac_script"
4934      done
4935      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4936      { ac_script=; unset ac_script;}
4937      if test -z "$SED"; then
4938   ac_path_SED_found=false
4939   # Loop through the user's path and test for each of PROGNAME-LIST
4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945     for ac_prog in sed gsed; do
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4948       as_fn_executable_p "$ac_path_SED" || continue
4949 # Check for GNU ac_path_SED and select it if it is found.
4950   # Check for GNU $ac_path_SED
4951 case `"$ac_path_SED" --version 2>&1` in
4952 *GNU*)
4953   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4955   ac_count=0
4956   $as_echo_n 0123456789 >"conftest.in"
4957   while :
4958   do
4959     cat "conftest.in" "conftest.in" >"conftest.tmp"
4960     mv "conftest.tmp" "conftest.in"
4961     cp "conftest.in" "conftest.nl"
4962     $as_echo '' >> "conftest.nl"
4963     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965     as_fn_arith $ac_count + 1 && ac_count=$as_val
4966     if test $ac_count -gt ${ac_path_SED_max-0}; then
4967       # Best one so far, save it but keep looking for a better one
4968       ac_cv_path_SED="$ac_path_SED"
4969       ac_path_SED_max=$ac_count
4970     fi
4971     # 10*(2^10) chars as input seems more than enough
4972     test $ac_count -gt 10 && break
4973   done
4974   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975 esac
4977       $ac_path_SED_found && break 3
4978     done
4979   done
4980   done
4981 IFS=$as_save_IFS
4982   if test -z "$ac_cv_path_SED"; then
4983     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4984   fi
4985 else
4986   ac_cv_path_SED=$SED
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4991 $as_echo "$ac_cv_path_SED" >&6; }
4992  SED="$ac_cv_path_SED"
4993   rm -f conftest.sed
4995 test -z "$SED" && SED=sed
4996 Xsed="$SED -e 1s/^X//"
4998     
4999     
5000     
5003     
5004     
5005     
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5009 $as_echo_n "checking for fgrep... " >&6; }
5010 if ${ac_cv_path_FGREP+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5014    then ac_cv_path_FGREP="$GREP -F"
5015    else
5016      if test -z "$FGREP"; then
5017   ac_path_FGREP_found=false
5018   # Loop through the user's path and test for each of PROGNAME-LIST
5019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_prog in fgrep; do
5025     for ac_exec_ext in '' $ac_executable_extensions; do
5026       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5027       as_fn_executable_p "$ac_path_FGREP" || continue
5028 # Check for GNU ac_path_FGREP and select it if it is found.
5029   # Check for GNU $ac_path_FGREP
5030 case `"$ac_path_FGREP" --version 2>&1` in
5031 *GNU*)
5032   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5034   ac_count=0
5035   $as_echo_n 0123456789 >"conftest.in"
5036   while :
5037   do
5038     cat "conftest.in" "conftest.in" >"conftest.tmp"
5039     mv "conftest.tmp" "conftest.in"
5040     cp "conftest.in" "conftest.nl"
5041     $as_echo 'FGREP' >> "conftest.nl"
5042     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044     as_fn_arith $ac_count + 1 && ac_count=$as_val
5045     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5046       # Best one so far, save it but keep looking for a better one
5047       ac_cv_path_FGREP="$ac_path_FGREP"
5048       ac_path_FGREP_max=$ac_count
5049     fi
5050     # 10*(2^10) chars as input seems more than enough
5051     test $ac_count -gt 10 && break
5052   done
5053   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5056       $ac_path_FGREP_found && break 3
5057     done
5058   done
5059   done
5060 IFS=$as_save_IFS
5061   if test -z "$ac_cv_path_FGREP"; then
5062     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5063   fi
5064 else
5065   ac_cv_path_FGREP=$FGREP
5068    fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5071 $as_echo "$ac_cv_path_FGREP" >&6; }
5072  FGREP="$ac_cv_path_FGREP"
5075 test -z "$GREP" && GREP=grep
5077     
5078     
5079     
5082     
5083     
5084     
5087     
5088     
5089     
5095 @%:@ Check whether --with-gnu-ld was given.
5096 if test "${with_gnu_ld+set}" = set; then :
5097   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5098 else
5099   with_gnu_ld=no
5102 ac_prog=ld
5103 if test "$GCC" = yes; then
5104   # Check if gcc -print-prog-name=ld gives a path.
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5106 $as_echo_n "checking for ld used by $CC... " >&6; }
5107   case $host in
5108   *-*-mingw*)
5109     # gcc leaves a trailing carriage return which upsets mingw
5110     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5111   *)
5112     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5113   esac
5114   case $ac_prog in
5115     # Accept absolute paths.
5116     [\\/]* | ?:[\\/]*)
5117       re_direlt='/[^/][^/]*/\.\./'
5118       # Canonicalize the pathname of ld
5119       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5120       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5121         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5122       done
5123       test -z "$LD" && LD="$ac_prog"
5124       ;;
5125   "")
5126     # If it fails, then pretend we aren't using GCC.
5127     ac_prog=ld
5128     ;;
5129   *)
5130     # If it is relative, then search for the first ld in PATH.
5131     with_gnu_ld=unknown
5132     ;;
5133   esac
5134 elif test "$with_gnu_ld" = yes; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5136 $as_echo_n "checking for GNU ld... " >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5139 $as_echo_n "checking for non-GNU ld... " >&6; }
5141 if ${lt_cv_path_LD+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   if test -z "$LD"; then
5145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5146   for ac_dir in $PATH; do
5147     IFS="$lt_save_ifs"
5148     test -z "$ac_dir" && ac_dir=.
5149     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5150       lt_cv_path_LD="$ac_dir/$ac_prog"
5151       # Check to see if the program is GNU ld.  I'd rather use --version,
5152       # but apparently some variants of GNU ld only accept -v.
5153       # Break only if it was the GNU/non-GNU ld that we prefer.
5154       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5155       *GNU* | *'with BFD'*)
5156         test "$with_gnu_ld" != no && break
5157         ;;
5158       *)
5159         test "$with_gnu_ld" != yes && break
5160         ;;
5161       esac
5162     fi
5163   done
5164   IFS="$lt_save_ifs"
5165 else
5166   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5170 LD="$lt_cv_path_LD"
5171 if test -n "$LD"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5173 $as_echo "$LD" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5181 if ${lt_cv_prog_gnu_ld+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5185 case `$LD -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187   lt_cv_prog_gnu_ld=yes
5188   ;;
5190   lt_cv_prog_gnu_ld=no
5191   ;;
5192 esac
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5196 with_gnu_ld=$lt_cv_prog_gnu_ld
5201     
5202     
5203     
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5207 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5208 if ${lt_cv_path_NM+:} false; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   if test -n "$NM"; then
5212   # Let the user override the test.
5213   lt_cv_path_NM="$NM"
5214 else
5215   lt_nm_to_check="${ac_tool_prefix}nm"
5216   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5217     lt_nm_to_check="$lt_nm_to_check nm"
5218   fi
5219   for lt_tmp_nm in $lt_nm_to_check; do
5220     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5222       IFS="$lt_save_ifs"
5223       test -z "$ac_dir" && ac_dir=.
5224       tmp_nm="$ac_dir/$lt_tmp_nm"
5225       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5226         # Check to see if the nm accepts a BSD-compat flag.
5227         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5228         #   nm: unknown option "B" ignored
5229         # Tru64's nm complains that /dev/null is an invalid object file
5230         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5231         */dev/null* | *'Invalid file or object type'*)
5232           lt_cv_path_NM="$tmp_nm -B"
5233           break
5234           ;;
5235         *)
5236           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5237           */dev/null*)
5238             lt_cv_path_NM="$tmp_nm -p"
5239             break
5240             ;;
5241           *)
5242             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5243             continue # so that we can try to find one that supports BSD flags
5244             ;;
5245           esac
5246           ;;
5247         esac
5248       fi
5249     done
5250     IFS="$lt_save_ifs"
5251   done
5252   : ${lt_cv_path_NM=no}
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5256 $as_echo "$lt_cv_path_NM" >&6; }
5257 if test "$lt_cv_path_NM" != "no"; then
5258   NM="$lt_cv_path_NM"
5259 else
5260   # Didn't find any BSD compatible name lister, look for dumpbin.
5261   if test -n "$DUMPBIN"; then :
5262     # Let the user override the test.
5263   else
5264     if test -n "$ac_tool_prefix"; then
5265   for ac_prog in dumpbin "link -dump"
5266   do
5267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_DUMPBIN+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$DUMPBIN"; then
5275   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5294 DUMPBIN=$ac_cv_prog_DUMPBIN
5295 if test -n "$DUMPBIN"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5297 $as_echo "$DUMPBIN" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304     test -n "$DUMPBIN" && break
5305   done
5307 if test -z "$DUMPBIN"; then
5308   ac_ct_DUMPBIN=$DUMPBIN
5309   for ac_prog in dumpbin "link -dump"
5311   # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5316   $as_echo_n "(cached) " >&6
5317 else
5318   if test -n "$ac_ct_DUMPBIN"; then
5319   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326     for ac_exec_ext in '' $ac_executable_extensions; do
5327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333   done
5334 IFS=$as_save_IFS
5338 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5339 if test -n "$ac_ct_DUMPBIN"; then
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5341 $as_echo "$ac_ct_DUMPBIN" >&6; }
5342 else
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348   test -n "$ac_ct_DUMPBIN" && break
5349 done
5351   if test "x$ac_ct_DUMPBIN" = x; then
5352     DUMPBIN=":"
5353   else
5354     case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360     DUMPBIN=$ac_ct_DUMPBIN
5361   fi
5364     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5365     *COFF*)
5366       DUMPBIN="$DUMPBIN -symbols"
5367       ;;
5368     *)
5369       DUMPBIN=:
5370       ;;
5371     esac
5372   fi
5373   
5374   if test "$DUMPBIN" != ":"; then
5375     NM="$DUMPBIN"
5376   fi
5378 test -z "$NM" && NM=nm
5381     
5382     
5383     
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5386 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5387 if ${lt_cv_nm_interface+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_nm_interface="BSD nm"
5391   echo "int some_variable = 0;" > conftest.$ac_ext
5392   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5393   (eval "$ac_compile" 2>conftest.err)
5394   cat conftest.err >&5
5395   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5396   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5397   cat conftest.err >&5
5398   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5399   cat conftest.out >&5
5400   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5401     lt_cv_nm_interface="MS dumpbin"
5402   fi
5403   rm -f conftest*
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5406 $as_echo "$lt_cv_nm_interface" >&6; }
5408 # find the maximum length of command line arguments
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5410 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5411 if ${lt_cv_sys_max_cmd_len+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414     i=0
5415   teststring="ABCD"
5417   case $build_os in
5418   msdosdjgpp*)
5419     # On DJGPP, this test can blow up pretty badly due to problems in libc
5420     # (any single argument exceeding 2000 bytes causes a buffer overrun
5421     # during glob expansion).  Even if it were fixed, the result of this
5422     # check would be larger than it should be.
5423     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5424     ;;
5426   gnu*)
5427     # Under GNU Hurd, this test is not required because there is
5428     # no limit to the length of command line arguments.
5429     # Libtool will interpret -1 as no limit whatsoever
5430     lt_cv_sys_max_cmd_len=-1;
5431     ;;
5433   cygwin* | mingw* | cegcc*)
5434     # On Win9x/ME, this test blows up -- it succeeds, but takes
5435     # about 5 minutes as the teststring grows exponentially.
5436     # Worse, since 9x/ME are not pre-emptively multitasking,
5437     # you end up with a "frozen" computer, even though with patience
5438     # the test eventually succeeds (with a max line length of 256k).
5439     # Instead, let's just punt: use the minimum linelength reported by
5440     # all of the supported platforms: 8192 (on NT/2K/XP).
5441     lt_cv_sys_max_cmd_len=8192;
5442     ;;
5444   mint*)
5445     # On MiNT this can take a long time and run out of memory.
5446     lt_cv_sys_max_cmd_len=8192;
5447     ;;
5449   amigaos*)
5450     # On AmigaOS with pdksh, this test takes hours, literally.
5451     # So we just punt and use a minimum line length of 8192.
5452     lt_cv_sys_max_cmd_len=8192;
5453     ;;
5455   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5456     # This has been around since 386BSD, at least.  Likely further.
5457     if test -x /sbin/sysctl; then
5458       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5459     elif test -x /usr/sbin/sysctl; then
5460       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5461     else
5462       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5463     fi
5464     # And add a safety zone
5465     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5466     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5467     ;;
5469   interix*)
5470     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5471     lt_cv_sys_max_cmd_len=196608
5472     ;;
5474   os2*)
5475     # The test takes a long time on OS/2.
5476     lt_cv_sys_max_cmd_len=8192
5477     ;;
5479   osf*)
5480     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5481     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5482     # nice to cause kernel panics so lets avoid the loop below.
5483     # First set a reasonable default.
5484     lt_cv_sys_max_cmd_len=16384
5485     #
5486     if test -x /sbin/sysconfig; then
5487       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5488         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5489       esac
5490     fi
5491     ;;
5492   sco3.2v5*)
5493     lt_cv_sys_max_cmd_len=102400
5494     ;;
5495   sysv5* | sco5v6* | sysv4.2uw2*)
5496     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5497     if test -n "$kargmax"; then
5498       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5499     else
5500       lt_cv_sys_max_cmd_len=32768
5501     fi
5502     ;;
5503   *)
5504     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5505     if test -n "$lt_cv_sys_max_cmd_len" && \
5506         test undefined != "$lt_cv_sys_max_cmd_len"; then
5507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5509     else
5510       # Make teststring a little bigger before we do anything with it.
5511       # a 1K string should be a reasonable start.
5512       for i in 1 2 3 4 5 6 7 8 ; do
5513         teststring=$teststring$teststring
5514       done
5515       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5516       # If test is not a shell built-in, we'll probably end up computing a
5517       # maximum length that is only half of the actual maximum length, but
5518       # we can't tell.
5519       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5520                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5521               test $i != 17 # 1/2 MB should be enough
5522       do
5523         i=`expr $i + 1`
5524         teststring=$teststring$teststring
5525       done
5526       # Only check the string length outside the loop.
5527       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5528       teststring=
5529       # Add a significant safety factor because C++ compilers can tack on
5530       # massive amounts of additional arguments before passing them to the
5531       # linker.  It appears as though 1/2 is a usable value.
5532       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5533     fi
5534     ;;
5535   esac
5539 if test -n $lt_cv_sys_max_cmd_len ; then
5540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5541 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5542 else
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5544 $as_echo "none" >&6; }
5546 max_cmd_len=$lt_cv_sys_max_cmd_len
5548     
5549     
5550     
5553 : ${CP="cp -f"}
5554 : ${MV="mv -f"}
5555 : ${RM="rm -f"}
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5558 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5559 # Try some XSI features
5560 xsi_shell=no
5561 ( _lt_dummy="a/b/c"
5562   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5563       = c,a/b,b/c, \
5564     && eval 'test $(( 1 + 1 )) -eq 2 \
5565     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5566   && xsi_shell=yes
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5568 $as_echo "$xsi_shell" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5572 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5573 lt_shell_append=no
5574 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5575     >/dev/null 2>&1 \
5576   && lt_shell_append=yes
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5578 $as_echo "$lt_shell_append" >&6; }
5581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5582   lt_unset=unset
5583 else
5584   lt_unset=false
5587     
5588     
5589     
5591 # test EBCDIC or ASCII
5592 case `echo X|tr X '\101'` in
5593  A) # ASCII based system
5594     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5595   lt_SP2NL='tr \040 \012'
5596   lt_NL2SP='tr \015\012 \040\040'
5597   ;;
5598  *) # EBCDIC based system
5599   lt_SP2NL='tr \100 \n'
5600   lt_NL2SP='tr \r\n \100\100'
5601   ;;
5602 esac
5604     
5605     
5606     
5608     
5609     
5610     
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5613 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5614 if ${lt_cv_to_host_file_cmd+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   case $host in
5618   *-*-mingw* )
5619     case $build in
5620       *-*-mingw* ) # actually msys
5621         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5622         ;;
5623       *-*-cygwin* )
5624         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5625         ;;
5626       * ) # otherwise, assume *nix
5627         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5628         ;;
5629     esac
5630     ;;
5631   *-*-cygwin* )
5632     case $build in
5633       *-*-mingw* ) # actually msys
5634         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5635         ;;
5636       *-*-cygwin* )
5637         lt_cv_to_host_file_cmd=func_convert_file_noop
5638         ;;
5639       * ) # otherwise, assume *nix
5640         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5641         ;;
5642     esac
5643     ;;
5644   * ) # unhandled hosts (and "normal" native builds)
5645     lt_cv_to_host_file_cmd=func_convert_file_noop
5646     ;;
5647 esac
5651 to_host_file_cmd=$lt_cv_to_host_file_cmd
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5653 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5655     
5656     
5657     
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5660 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5661 if ${lt_cv_to_tool_file_cmd+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   #assume ordinary cross tools, or native build.
5665 lt_cv_to_tool_file_cmd=func_convert_file_noop
5666 case $host in
5667   *-*-mingw* )
5668     case $build in
5669       *-*-mingw* ) # actually msys
5670         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5671         ;;
5672     esac
5673     ;;
5674 esac
5678 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5680 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5682     
5683     
5684     
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5687 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5688 if ${lt_cv_ld_reload_flag+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   lt_cv_ld_reload_flag='-r'
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5694 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5695 reload_flag=$lt_cv_ld_reload_flag
5696 case $reload_flag in
5697 "" | " "*) ;;
5698 *) reload_flag=" $reload_flag" ;;
5699 esac
5700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5701 case $host_os in
5702   cygwin* | mingw* | pw32* | cegcc*)
5703     if test "$GCC" != yes; then
5704       reload_cmds=false
5705     fi
5706     ;;
5707   darwin*)
5708     if test "$GCC" = yes; then
5709       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5710     else
5711       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5712     fi
5713     ;;
5714 esac
5716     
5717     
5718     
5720     
5721     
5722     
5724 if test -n "$ac_tool_prefix"; then
5725   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_OBJDUMP+:} false; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   if test -n "$OBJDUMP"; then
5733   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5752 OBJDUMP=$ac_cv_prog_OBJDUMP
5753 if test -n "$OBJDUMP"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5755 $as_echo "$OBJDUMP" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5763 if test -z "$ac_cv_prog_OBJDUMP"; then
5764   ac_ct_OBJDUMP=$OBJDUMP
5765   # Extract the first word of "objdump", so it can be a program name with args.
5766 set dummy objdump; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$ac_ct_OBJDUMP"; then
5773   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5792 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5793 if test -n "$ac_ct_OBJDUMP"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5795 $as_echo "$ac_ct_OBJDUMP" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5801   if test "x$ac_ct_OBJDUMP" = x; then
5802     OBJDUMP="false"
5803   else
5804     case $cross_compiling:$ac_tool_warned in
5805 yes:)
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5809 esac
5810     OBJDUMP=$ac_ct_OBJDUMP
5811   fi
5812 else
5813   OBJDUMP="$ac_cv_prog_OBJDUMP"
5816 test -z "$OBJDUMP" && OBJDUMP=objdump
5818     
5819     
5820     
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5827 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5828 if ${lt_cv_deplibs_check_method+:} false; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   lt_cv_file_magic_cmd='$MAGIC_CMD'
5832 lt_cv_file_magic_test_file=
5833 lt_cv_deplibs_check_method='unknown'
5834 # Need to set the preceding variable on all platforms that support
5835 # interlibrary dependencies.
5836 # 'none' -- dependencies not supported.
5837 # `unknown' -- same as none, but documents that we really don't know.
5838 # 'pass_all' -- all dependencies passed with no checks.
5839 # 'test_compile' -- check by making test program.
5840 # 'file_magic [[regex]]' -- check by looking for files in library path
5841 # which responds to the $file_magic_cmd with a given extended regex.
5842 # If you have `file' or equivalent on your system and you're not sure
5843 # whether `pass_all' will *always* work, you probably want this one.
5845 case $host_os in
5846 aix[4-9]*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5850 beos*)
5851   lt_cv_deplibs_check_method=pass_all
5852   ;;
5854 bsdi[45]*)
5855   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5856   lt_cv_file_magic_cmd='/usr/bin/file -L'
5857   lt_cv_file_magic_test_file=/shlib/libc.so
5858   ;;
5860 cygwin*)
5861   # func_win32_libid is a shell function defined in ltmain.sh
5862   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5863   lt_cv_file_magic_cmd='func_win32_libid'
5864   ;;
5866 mingw* | pw32*)
5867   # Base MSYS/MinGW do not provide the 'file' command needed by
5868   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5869   # unless we find 'file', for example because we are cross-compiling.
5870   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5871   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5872     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5873     lt_cv_file_magic_cmd='func_win32_libid'
5874   else
5875     # Keep this pattern in sync with the one in func_win32_libid.
5876     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5877     lt_cv_file_magic_cmd='$OBJDUMP -f'
5878   fi
5879   ;;
5881 cegcc*)
5882   # use the weaker test based on 'objdump'. See mingw*.
5883   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884   lt_cv_file_magic_cmd='$OBJDUMP -f'
5885   ;;
5887 darwin* | rhapsody*)
5888   lt_cv_deplibs_check_method=pass_all
5889   ;;
5891 freebsd* | dragonfly*)
5892   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893     case $host_cpu in
5894     i*86 )
5895       # Not sure whether the presence of OpenBSD here was a mistake.
5896       # Let's accept both of them until this is cleared up.
5897       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898       lt_cv_file_magic_cmd=/usr/bin/file
5899       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900       ;;
5901     esac
5902   else
5903     lt_cv_deplibs_check_method=pass_all
5904   fi
5905   ;;
5907 haiku*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5911 hpux10.20* | hpux11*)
5912   lt_cv_file_magic_cmd=/usr/bin/file
5913   case $host_cpu in
5914   ia64*)
5915     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5916     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5917     ;;
5918   hppa*64*)
5919     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]'
5920     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5921     ;;
5922   *)
5923     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5924     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5925     ;;
5926   esac
5927   ;;
5929 interix[3-9]*)
5930   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5931   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5932   ;;
5934 irix5* | irix6* | nonstopux*)
5935   case $LD in
5936   *-32|*"-32 ") libmagic=32-bit;;
5937   *-n32|*"-n32 ") libmagic=N32;;
5938   *-64|*"-64 ") libmagic=64-bit;;
5939   *) libmagic=never-match;;
5940   esac
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5944 # This must be glibc/ELF.
5945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5946   lt_cv_deplibs_check_method=pass_all
5947   ;;
5949 netbsd* | netbsdelf*-gnu)
5950   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5951     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5952   else
5953     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5954   fi
5955   ;;
5957 newos6*)
5958   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5959   lt_cv_file_magic_cmd=/usr/bin/file
5960   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5961   ;;
5963 *nto* | *qnx*)
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5967 openbsd*)
5968   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5970   else
5971     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972   fi
5973   ;;
5975 osf3* | osf4* | osf5*)
5976   lt_cv_deplibs_check_method=pass_all
5977   ;;
5979 rdos*)
5980   lt_cv_deplibs_check_method=pass_all
5981   ;;
5983 solaris*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5991 sysv4 | sysv4.3*)
5992   case $host_vendor in
5993   motorola)
5994     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]'
5995     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5996     ;;
5997   ncr)
5998     lt_cv_deplibs_check_method=pass_all
5999     ;;
6000   sequent)
6001     lt_cv_file_magic_cmd='/bin/file'
6002     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6003     ;;
6004   sni)
6005     lt_cv_file_magic_cmd='/bin/file'
6006     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6007     lt_cv_file_magic_test_file=/lib/libc.so
6008     ;;
6009   siemens)
6010     lt_cv_deplibs_check_method=pass_all
6011     ;;
6012   pc)
6013     lt_cv_deplibs_check_method=pass_all
6014     ;;
6015   esac
6016   ;;
6018 tpf*)
6019   lt_cv_deplibs_check_method=pass_all
6020   ;;
6021 esac
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6027 file_magic_glob=
6028 want_nocaseglob=no
6029 if test "$build" = "$host"; then
6030   case $host_os in
6031   mingw* | pw32*)
6032     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6033       want_nocaseglob=yes
6034     else
6035       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6036     fi
6037     ;;
6038   esac
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6046     
6047     
6048     
6051     
6052     
6053     
6056     
6057     
6058     
6061     
6062     
6063     
6066 if test -n "$ac_tool_prefix"; then
6067   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_DLLTOOL+:} false; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   if test -n "$DLLTOOL"; then
6075   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082     for ac_exec_ext in '' $ac_executable_extensions; do
6083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089   done
6090 IFS=$as_save_IFS
6094 DLLTOOL=$ac_cv_prog_DLLTOOL
6095 if test -n "$DLLTOOL"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097 $as_echo "$DLLTOOL" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6105 if test -z "$ac_cv_prog_DLLTOOL"; then
6106   ac_ct_DLLTOOL=$DLLTOOL
6107   # Extract the first word of "dlltool", so it can be a program name with args.
6108 set dummy dlltool; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$ac_ct_DLLTOOL"; then
6115   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6135 if test -n "$ac_ct_DLLTOOL"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6137 $as_echo "$ac_ct_DLLTOOL" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6143   if test "x$ac_ct_DLLTOOL" = x; then
6144     DLLTOOL="false"
6145   else
6146     case $cross_compiling:$ac_tool_warned in
6147 yes:)
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6151 esac
6152     DLLTOOL=$ac_ct_DLLTOOL
6153   fi
6154 else
6155   DLLTOOL="$ac_cv_prog_DLLTOOL"
6158 test -z "$DLLTOOL" && DLLTOOL=dlltool
6160     
6161     
6162     
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   lt_cv_sharedlib_from_linklib_cmd='unknown'
6176 case $host_os in
6177 cygwin* | mingw* | pw32* | cegcc*)
6178   # two different shell functions defined in ltmain.sh
6179   # decide which to use based on capabilities of $DLLTOOL
6180   case `$DLLTOOL --help 2>&1` in
6181   *--identify-strict*)
6182     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6183     ;;
6184   *)
6185     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6186     ;;
6187   esac
6188   ;;
6190   # fallback: assume linklib IS sharedlib
6191   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6192   ;;
6193 esac
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6202     
6203     
6204     
6207 if test -n "$ac_tool_prefix"; then
6208   for ac_prog in ar
6209   do
6210     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_AR+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$AR"; then
6218   ac_cv_prog_AR="$AR" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6237 AR=$ac_cv_prog_AR
6238 if test -n "$AR"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240 $as_echo "$AR" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247     test -n "$AR" && break
6248   done
6250 if test -z "$AR"; then
6251   ac_ct_AR=$AR
6252   for ac_prog in ar
6254   # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6259   $as_echo_n "(cached) " >&6
6260 else
6261   if test -n "$ac_ct_AR"; then
6262   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271     ac_cv_prog_ac_ct_AR="$ac_prog"
6272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276   done
6277 IFS=$as_save_IFS
6281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282 if test -n "$ac_ct_AR"; then
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284 $as_echo "$ac_ct_AR" >&6; }
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291   test -n "$ac_ct_AR" && break
6292 done
6294   if test "x$ac_ct_AR" = x; then
6295     AR="false"
6296   else
6297     case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303     AR=$ac_ct_AR
6304   fi
6307 : ${AR=ar}
6308 : ${AR_FLAGS=cru}
6310     
6311     
6312     
6315     
6316     
6317     
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6321 $as_echo_n "checking for archiver @FILE support... " >&6; }
6322 if ${lt_cv_ar_at_file+:} false; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   lt_cv_ar_at_file=no
6326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h.  */
6330 main ()
6333   ;
6334   return 0;
6336 _ACEOF
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338   echo conftest.$ac_objext > conftest.lst
6339       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6340       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341   (eval $lt_ar_try) 2>&5
6342   ac_status=$?
6343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344   test $ac_status = 0; }
6345       if test "$ac_status" -eq 0; then
6346         # Ensure the archiver fails upon bogus file names.
6347         rm -f conftest.$ac_objext libconftest.a
6348         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6349   (eval $lt_ar_try) 2>&5
6350   ac_status=$?
6351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352   test $ac_status = 0; }
6353         if test "$ac_status" -ne 0; then
6354           lt_cv_ar_at_file=@
6355         fi
6356       fi
6357       rm -f conftest.* libconftest.a
6358      
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361   
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6364 $as_echo "$lt_cv_ar_at_file" >&6; }
6366 if test "x$lt_cv_ar_at_file" = xno; then
6367   archiver_list_spec=
6368 else
6369   archiver_list_spec=$lt_cv_ar_at_file
6372     
6373     
6374     
6378 if test -n "$ac_tool_prefix"; then
6379   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_STRIP+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$STRIP"; then
6387   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6406 STRIP=$ac_cv_prog_STRIP
6407 if test -n "$STRIP"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409 $as_echo "$STRIP" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_STRIP"; then
6418   ac_ct_STRIP=$STRIP
6419   # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$ac_ct_STRIP"; then
6427   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_prog_ac_ct_STRIP="strip"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447 if test -n "$ac_ct_STRIP"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449 $as_echo "$ac_ct_STRIP" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455   if test "x$ac_ct_STRIP" = x; then
6456     STRIP=":"
6457   else
6458     case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464     STRIP=$ac_ct_STRIP
6465   fi
6466 else
6467   STRIP="$ac_cv_prog_STRIP"
6470 test -z "$STRIP" && STRIP=:
6472     
6473     
6474     
6477 if test -n "$ac_tool_prefix"; then
6478   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_RANLIB+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$RANLIB"; then
6486   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508 $as_echo "$RANLIB" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6516 if test -z "$ac_cv_prog_RANLIB"; then
6517   ac_ct_RANLIB=$RANLIB
6518   # Extract the first word of "ranlib", so it can be a program name with args.
6519 set dummy ranlib; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   if test -n "$ac_ct_RANLIB"; then
6526   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533     for ac_exec_ext in '' $ac_executable_extensions; do
6534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535     ac_cv_prog_ac_ct_RANLIB="ranlib"
6536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540   done
6541 IFS=$as_save_IFS
6545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546 if test -n "$ac_ct_RANLIB"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548 $as_echo "$ac_ct_RANLIB" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554   if test "x$ac_ct_RANLIB" = x; then
6555     RANLIB=":"
6556   else
6557     case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563     RANLIB=$ac_ct_RANLIB
6564   fi
6565 else
6566   RANLIB="$ac_cv_prog_RANLIB"
6569 test -z "$RANLIB" && RANLIB=:
6571     
6572     
6573     
6576 # Determine commands to create old-style static archives.
6577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578 old_postinstall_cmds='chmod 644 $oldlib'
6579 old_postuninstall_cmds=
6581 if test -n "$RANLIB"; then
6582   case $host_os in
6583   openbsd*)
6584     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6585     ;;
6586   *)
6587     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6588     ;;
6589   esac
6590   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6593 case $host_os in
6594   darwin*)
6595     lock_old_archive_extraction=yes ;;
6596   *)
6597     lock_old_archive_extraction=no ;;
6598 esac
6600     
6601     
6602     
6605     
6606     
6607     
6610     
6611     
6612     
6615     
6616     
6617     
6622     
6623     
6624     
6626     
6627     
6628     
6630     
6631     
6632     
6634     
6635     
6636     
6638 # If no C compiler was specified, use CC.
6639 LTCC=${LTCC-"$CC"}
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644 # Allow CC to be a program name with arguments.
6645 compiler=$CC
6648 # Check for command to grab the raw symbol name followed by C symbol from nm.
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   
6655 # These are sane defaults that work on at least a few old systems.
6656 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6658 # Character class describing NM global symbol codes.
6659 symcode='[BCDEGRST]'
6661 # Regexp to match symbols that can be accessed directly from C.
6662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6664 # Define system-specific variables.
6665 case $host_os in
6666 aix*)
6667   symcode='[BCDT]'
6668   ;;
6669 cygwin* | mingw* | pw32* | cegcc*)
6670   symcode='[ABCDGISTW]'
6671   ;;
6672 hpux*)
6673   if test "$host_cpu" = ia64; then
6674     symcode='[ABCDEGRST]'
6675   fi
6676   ;;
6677 irix* | nonstopux*)
6678   symcode='[BCDEGRST]'
6679   ;;
6680 osf*)
6681   symcode='[BCDEGQRST]'
6682   ;;
6683 solaris*)
6684   symcode='[BDRT]'
6685   ;;
6686 sco3.2v5*)
6687   symcode='[DT]'
6688   ;;
6689 sysv4.2uw2*)
6690   symcode='[DT]'
6691   ;;
6692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6693   symcode='[ABDT]'
6694   ;;
6695 sysv4)
6696   symcode='[DFNSTU]'
6697   ;;
6698 esac
6700 # If we're using GNU nm, then use its standard symbol codes.
6701 case `$NM -V 2>&1` in
6702 *GNU* | *'with BFD'*)
6703   symcode='[ABCDGIRSTW]' ;;
6704 esac
6706 # Transform an extracted symbol line into a proper C declaration.
6707 # Some systems (esp. on ia64) link data and code symbols differently,
6708 # so use this general approach.
6709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6711 # Transform an extracted symbol line into symbol name and symbol address
6712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6715 # Handle CRLF in mingw tool chain
6716 opt_cr=
6717 case $build_os in
6718 mingw*)
6719   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6720   ;;
6721 esac
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6726   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727   symxfrm="\\1 $ac_symprfx\\2 \\2"
6729   # Write the raw and C identifiers.
6730   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731     # Fake it for dumpbin and say T for any non-static function
6732     # and D for any global variable.
6733     # Also find C++ and __fastcall symbols from MSVC++,
6734     # which start with @ or ?.
6735     lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 "     {last_section=section; section=\$ 3};"\
6737 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6738 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6739 "     \$ 0!~/External *\|/{next};"\
6740 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6741 "     {if(hide[section]) next};"\
6742 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6743 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6744 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6745 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6746 "     ' prfx=^$ac_symprfx"
6747   else
6748     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6749   fi
6750   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6752   # Check to see that the pipe works correctly.
6753   pipe_works=no
6755   rm -f conftest*
6756   cat > conftest.$ac_ext <<_LT_EOF
6757 #ifdef __cplusplus
6758 extern "C" {
6759 #endif
6760 char nm_test_var;
6761 void nm_test_func(void);
6762 void nm_test_func(void){}
6763 #ifdef __cplusplus
6765 #endif
6766 int main(){nm_test_var='a';nm_test_func();return(0);}
6767 _LT_EOF
6769   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770   (eval $ac_compile) 2>&5
6771   ac_status=$?
6772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773   test $ac_status = 0; }; then
6774     # Now try to grab the symbols.
6775     nlist=conftest.nm
6776     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6777   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6778   ac_status=$?
6779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780   test $ac_status = 0; } && test -s "$nlist"; then
6781       # Try sorting and uniquifying the output.
6782       if sort "$nlist" | uniq > "$nlist"T; then
6783         mv -f "$nlist"T "$nlist"
6784       else
6785         rm -f "$nlist"T
6786       fi
6788       # Make sure that we snagged all the symbols we need.
6789       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6790         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6791           cat <<_LT_EOF > conftest.$ac_ext
6792 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6793 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6794 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6795    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6796 # define LT@&t@_DLSYM_CONST
6797 #elif defined(__osf__)
6798 /* This system does not cope well with relocations in const data.  */
6799 # define LT@&t@_DLSYM_CONST
6800 #else
6801 # define LT@&t@_DLSYM_CONST const
6802 #endif
6804 #ifdef __cplusplus
6805 extern "C" {
6806 #endif
6808 _LT_EOF
6809           # Now generate the symbol file.
6810           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6812           cat <<_LT_EOF >> conftest.$ac_ext
6814 /* The mapping between symbol names and symbols.  */
6815 LT@&t@_DLSYM_CONST struct {
6816   const char *name;
6817   void       *address;
6819 lt__PROGRAM__LTX_preloaded_symbols[] =
6821   { "@PROGRAM@", (void *) 0 },
6822 _LT_EOF
6823           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6824           cat <<\_LT_EOF >> conftest.$ac_ext
6825   {0, (void *) 0}
6828 /* This works around a problem in FreeBSD linker */
6829 #ifdef FREEBSD_WORKAROUND
6830 static const void *lt_preloaded_setup() {
6831   return lt__PROGRAM__LTX_preloaded_symbols;
6833 #endif
6835 #ifdef __cplusplus
6837 #endif
6838 _LT_EOF
6839           # Now try linking the two files.
6840           mv conftest.$ac_objext conftstm.$ac_objext
6841           lt_globsym_save_LIBS=$LIBS
6842           lt_globsym_save_CFLAGS=$CFLAGS
6843           LIBS="conftstm.$ac_objext"
6844           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6845           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6846   (eval $ac_link) 2>&5
6847   ac_status=$?
6848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6850             pipe_works=yes
6851           fi
6852           LIBS=$lt_globsym_save_LIBS
6853           CFLAGS=$lt_globsym_save_CFLAGS
6854         else
6855           echo "cannot find nm_test_func in $nlist" >&5
6856         fi
6857       else
6858         echo "cannot find nm_test_var in $nlist" >&5
6859       fi
6860     else
6861       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6862     fi
6863   else
6864     echo "$progname: failed program was:" >&5
6865     cat conftest.$ac_ext >&5
6866   fi
6867   rm -rf conftest* conftst*
6869   # Do not use the global_symbol_pipe unless it works.
6870   if test "$pipe_works" = yes; then
6871     break
6872   else
6873     lt_cv_sys_global_symbol_pipe=
6874   fi
6875 done
6879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6880   lt_cv_sys_global_symbol_to_cdecl=
6882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6884 $as_echo "failed" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6887 $as_echo "ok" >&6; }
6890 # Response file support.
6891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892   nm_file_list_spec='@'
6893 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6894   nm_file_list_spec='@'
6898     
6899     
6900     
6903     
6904     
6905     
6908     
6909     
6910     
6913     
6914     
6915     
6918     
6919     
6920     
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6924 $as_echo_n "checking for sysroot... " >&6; }
6926 @%:@ Check whether --with-sysroot was given.
6927 if test "${with_sysroot+set}" = set; then :
6928   withval=$with_sysroot; 
6929 else
6930   with_sysroot=no
6934 lt_sysroot=
6935 case ${with_sysroot} in #(
6936  yes)
6937    if test "$GCC" = yes; then
6938      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6939    fi
6940    ;; #(
6941  /*)
6942    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6943    ;; #(
6944  no|'')
6945    ;; #(
6946  *)
6947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6948 $as_echo "${with_sysroot}" >&6; }
6949    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6950    ;;
6951 esac
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6954 $as_echo "${lt_sysroot:-no}" >&6; }
6956     
6957     
6958     
6960 @%:@ Check whether --enable-libtool-lock was given.
6961 if test "${enable_libtool_lock+set}" = set; then :
6962   enableval=$enable_libtool_lock; 
6965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6967 # Some flags need to be propagated to the compiler or linker for good
6968 # libtool support.
6969 case $host in
6970 ia64-*-hpux*)
6971   # Find out which ABI we are using.
6972   echo 'int i;' > conftest.$ac_ext
6973   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974   (eval $ac_compile) 2>&5
6975   ac_status=$?
6976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977   test $ac_status = 0; }; then
6978     case `/usr/bin/file conftest.$ac_objext` in
6979       *ELF-32*)
6980         HPUX_IA64_MODE="32"
6981         ;;
6982       *ELF-64*)
6983         HPUX_IA64_MODE="64"
6984         ;;
6985     esac
6986   fi
6987   rm -rf conftest*
6988   ;;
6989 *-*-irix6*)
6990   # Find out which ABI we are using.
6991   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6992   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993   (eval $ac_compile) 2>&5
6994   ac_status=$?
6995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996   test $ac_status = 0; }; then
6997     if test "$lt_cv_prog_gnu_ld" = yes; then
6998       case `/usr/bin/file conftest.$ac_objext` in
6999         *32-bit*)
7000           LD="${LD-ld} -melf32bsmip"
7001           ;;
7002         *N32*)
7003           LD="${LD-ld} -melf32bmipn32"
7004           ;;
7005         *64-bit*)
7006           LD="${LD-ld} -melf64bmip"
7007         ;;
7008       esac
7009     else
7010       case `/usr/bin/file conftest.$ac_objext` in
7011         *32-bit*)
7012           LD="${LD-ld} -32"
7013           ;;
7014         *N32*)
7015           LD="${LD-ld} -n32"
7016           ;;
7017         *64-bit*)
7018           LD="${LD-ld} -64"
7019           ;;
7020       esac
7021     fi
7022   fi
7023   rm -rf conftest*
7024   ;;
7026 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7027 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028   # Find out which ABI we are using.
7029   echo 'int i;' > conftest.$ac_ext
7030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031   (eval $ac_compile) 2>&5
7032   ac_status=$?
7033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034   test $ac_status = 0; }; then
7035     case `/usr/bin/file conftest.o` in
7036       *32-bit*)
7037         case $host in
7038           x86_64-*kfreebsd*-gnu)
7039             LD="${LD-ld} -m elf_i386_fbsd"
7040             ;;
7041           x86_64-*linux*)
7042             case `/usr/bin/file conftest.o` in
7043               *x86-64*)
7044                 LD="${LD-ld} -m elf32_x86_64"
7045                 ;;
7046               *)
7047                 LD="${LD-ld} -m elf_i386"
7048                 ;;
7049             esac
7050             ;;
7051           powerpc64le-*)
7052             LD="${LD-ld} -m elf32lppclinux"
7053             ;;
7054           powerpc64-*)
7055             LD="${LD-ld} -m elf32ppclinux"
7056             ;;
7057           s390x-*linux*)
7058             LD="${LD-ld} -m elf_s390"
7059             ;;
7060           sparc64-*linux*)
7061             LD="${LD-ld} -m elf32_sparc"
7062             ;;
7063         esac
7064         ;;
7065       *64-bit*)
7066         case $host in
7067           x86_64-*kfreebsd*-gnu)
7068             LD="${LD-ld} -m elf_x86_64_fbsd"
7069             ;;
7070           x86_64-*linux*)
7071             LD="${LD-ld} -m elf_x86_64"
7072             ;;
7073           powerpcle-*)
7074             LD="${LD-ld} -m elf64lppc"
7075             ;;
7076           powerpc-*)
7077             LD="${LD-ld} -m elf64ppc"
7078             ;;
7079           s390*-*linux*|s390*-*tpf*)
7080             LD="${LD-ld} -m elf64_s390"
7081             ;;
7082           sparc*-*linux*)
7083             LD="${LD-ld} -m elf64_sparc"
7084             ;;
7085         esac
7086         ;;
7087     esac
7088   fi
7089   rm -rf conftest*
7090   ;;
7092 *-*-sco3.2v5*)
7093   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7094   SAVE_CFLAGS="$CFLAGS"
7095   CFLAGS="$CFLAGS -belf"
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7097 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7098 if ${lt_cv_cc_needs_belf+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   ac_ext=c
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7111 main ()
7114   ;
7115   return 0;
7117 _ACEOF
7118 if ac_fn_c_try_link "$LINENO"; then :
7119   lt_cv_cc_needs_belf=yes
7120 else
7121   lt_cv_cc_needs_belf=no
7123 rm -f core conftest.err conftest.$ac_objext \
7124     conftest$ac_exeext conftest.$ac_ext
7125      ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7133 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7134   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7135     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7136     CFLAGS="$SAVE_CFLAGS"
7137   fi
7138   ;;
7139 *-*solaris*)
7140   # Find out which ABI we are using.
7141   echo 'int i;' > conftest.$ac_ext
7142   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143   (eval $ac_compile) 2>&5
7144   ac_status=$?
7145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146   test $ac_status = 0; }; then
7147     case `/usr/bin/file conftest.o` in
7148     *64-bit*)
7149       case $lt_cv_prog_gnu_ld in
7150       yes*)
7151         case $host in
7152         i?86-*-solaris*)
7153           LD="${LD-ld} -m elf_x86_64"
7154           ;;
7155         sparc*-*-solaris*)
7156           LD="${LD-ld} -m elf64_sparc"
7157           ;;
7158         esac
7159         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7160         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7161           LD="${LD-ld}_sol2"
7162         fi
7163         ;;
7164       *)
7165         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7166           LD="${LD-ld} -64"
7167         fi
7168         ;;
7169       esac
7170       ;;
7171     esac
7172   fi
7173   rm -rf conftest*
7174   ;;
7175 esac
7177 need_locks="$enable_libtool_lock"
7179 if test -n "$ac_tool_prefix"; then
7180   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}mt; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$MANIFEST_TOOL"; then
7188   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7207 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7208 if test -n "$MANIFEST_TOOL"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7210 $as_echo "$MANIFEST_TOOL" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7219   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7220   # Extract the first word of "mt", so it can be a program name with args.
7221 set dummy mt; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   if test -n "$ac_ct_MANIFEST_TOOL"; then
7228   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7247 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7248 if test -n "$ac_ct_MANIFEST_TOOL"; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7250 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7257     MANIFEST_TOOL=":"
7258   else
7259     case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7266   fi
7267 else
7268   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7271 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7273 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7274 if ${lt_cv_path_mainfest_tool+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   lt_cv_path_mainfest_tool=no
7278   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7279   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7280   cat conftest.err >&5
7281   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7282     lt_cv_path_mainfest_tool=yes
7283   fi
7284   rm -f conftest*
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7287 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7288 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7289   MANIFEST_TOOL=:
7292     
7293     
7294     
7297   case $host_os in
7298     rhapsody* | darwin*)
7299     if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$DSYMUTIL"; then
7308   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330 $as_echo "$DSYMUTIL" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339   ac_ct_DSYMUTIL=$DSYMUTIL
7340   # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$ac_ct_DSYMUTIL"; then
7348   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376   if test "x$ac_ct_DSYMUTIL" = x; then
7377     DSYMUTIL=":"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385     DSYMUTIL=$ac_ct_DSYMUTIL
7386   fi
7387 else
7388   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7391     if test -n "$ac_tool_prefix"; then
7392   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_NMEDIT+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$NMEDIT"; then
7400   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7419 NMEDIT=$ac_cv_prog_NMEDIT
7420 if test -n "$NMEDIT"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422 $as_echo "$NMEDIT" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_NMEDIT"; then
7431   ac_ct_NMEDIT=$NMEDIT
7432   # Extract the first word of "nmedit", so it can be a program name with args.
7433 set dummy nmedit; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$ac_ct_NMEDIT"; then
7440   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7459 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460 if test -n "$ac_ct_NMEDIT"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462 $as_echo "$ac_ct_NMEDIT" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468   if test "x$ac_ct_NMEDIT" = x; then
7469     NMEDIT=":"
7470   else
7471     case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7476 esac
7477     NMEDIT=$ac_ct_NMEDIT
7478   fi
7479 else
7480   NMEDIT="$ac_cv_prog_NMEDIT"
7483     if test -n "$ac_tool_prefix"; then
7484   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_LIPO+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$LIPO"; then
7492   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7511 LIPO=$ac_cv_prog_LIPO
7512 if test -n "$LIPO"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514 $as_echo "$LIPO" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7522 if test -z "$ac_cv_prog_LIPO"; then
7523   ac_ct_LIPO=$LIPO
7524   # Extract the first word of "lipo", so it can be a program name with args.
7525 set dummy lipo; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   if test -n "$ac_ct_LIPO"; then
7532   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539     for ac_exec_ext in '' $ac_executable_extensions; do
7540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541     ac_cv_prog_ac_ct_LIPO="lipo"
7542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546   done
7547 IFS=$as_save_IFS
7551 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552 if test -n "$ac_ct_LIPO"; then
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554 $as_echo "$ac_ct_LIPO" >&6; }
7555 else
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7560   if test "x$ac_ct_LIPO" = x; then
7561     LIPO=":"
7562   else
7563     case $cross_compiling:$ac_tool_warned in
7564 yes:)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7568 esac
7569     LIPO=$ac_ct_LIPO
7570   fi
7571 else
7572   LIPO="$ac_cv_prog_LIPO"
7575     if test -n "$ac_tool_prefix"; then
7576   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}otool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OTOOL+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$OTOOL"; then
7584   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7603 OTOOL=$ac_cv_prog_OTOOL
7604 if test -n "$OTOOL"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606 $as_echo "$OTOOL" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_OTOOL"; then
7615   ac_ct_OTOOL=$OTOOL
7616   # Extract the first word of "otool", so it can be a program name with args.
7617 set dummy otool; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$ac_ct_OTOOL"; then
7624   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_prog_ac_ct_OTOOL="otool"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7643 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644 if test -n "$ac_ct_OTOOL"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646 $as_echo "$ac_ct_OTOOL" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652   if test "x$ac_ct_OTOOL" = x; then
7653     OTOOL=":"
7654   else
7655     case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661     OTOOL=$ac_ct_OTOOL
7662   fi
7663 else
7664   OTOOL="$ac_cv_prog_OTOOL"
7667     if test -n "$ac_tool_prefix"; then
7668   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL64+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$OTOOL64"; then
7676   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7695 OTOOL64=$ac_cv_prog_OTOOL64
7696 if test -n "$OTOOL64"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698 $as_echo "$OTOOL64" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_OTOOL64"; then
7707   ac_ct_OTOOL64=$OTOOL64
7708   # Extract the first word of "otool64", so it can be a program name with args.
7709 set dummy otool64; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$ac_ct_OTOOL64"; then
7716   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_prog_ac_ct_OTOOL64="otool64"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7735 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736 if test -n "$ac_ct_OTOOL64"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738 $as_echo "$ac_ct_OTOOL64" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744   if test "x$ac_ct_OTOOL64" = x; then
7745     OTOOL64=":"
7746   else
7747     case $cross_compiling:$ac_tool_warned in
7748 yes:)
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7752 esac
7753     OTOOL64=$ac_ct_OTOOL64
7754   fi
7755 else
7756   OTOOL64="$ac_cv_prog_OTOOL64"
7759     
7760     
7761     
7762     
7764     
7765     
7766     
7767     
7769     
7770     
7771     
7772     
7774     
7775     
7776     
7777     
7779     
7780     
7781     
7782     
7785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786 $as_echo_n "checking for -single_module linker flag... " >&6; }
7787 if ${lt_cv_apple_cc_single_mod+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   lt_cv_apple_cc_single_mod=no
7791       if test -z "${LT_MULTI_MODULE}"; then
7792         # By default we will add the -single_module flag. You can override
7793         # by either setting the environment variable LT_MULTI_MODULE
7794         # non-empty at configure time, or by adding -multi_module to the
7795         # link flags.
7796         rm -rf libconftest.dylib*
7797         echo "int foo(void){return 1;}" > conftest.c
7798         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799 -dynamiclib -Wl,-single_module conftest.c" >&5
7800         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7802         _lt_result=$?
7803         # If there is a non-empty error log, and "single_module"
7804         # appears in it, assume the flag caused a linker warning
7805         if test -s conftest.err && $GREP single_module conftest.err; then
7806           cat conftest.err >&5
7807         # Otherwise, if the output was created with a 0 exit code from
7808         # the compiler, it worked.
7809         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7810           lt_cv_apple_cc_single_mod=yes
7811         else
7812           cat conftest.err >&5
7813         fi
7814         rm -rf libconftest.dylib*
7815         rm -f conftest.*
7816       fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7819 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7822 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7823 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   lt_cv_ld_exported_symbols_list=no
7827       save_LDFLAGS=$LDFLAGS
7828       echo "_main" > conftest.sym
7829       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7834 main ()
7837   ;
7838   return 0;
7840 _ACEOF
7841 if ac_fn_c_try_link "$LINENO"; then :
7842   lt_cv_ld_exported_symbols_list=yes
7843 else
7844   lt_cv_ld_exported_symbols_list=no
7846 rm -f core conftest.err conftest.$ac_objext \
7847     conftest$ac_exeext conftest.$ac_ext
7848         LDFLAGS="$save_LDFLAGS"
7849     
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7852 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7855 $as_echo_n "checking for -force_load linker flag... " >&6; }
7856 if ${lt_cv_ld_force_load+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   lt_cv_ld_force_load=no
7860       cat > conftest.c << _LT_EOF
7861 int forced_loaded() { return 2;}
7862 _LT_EOF
7863       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7864       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7865       echo "$AR cru libconftest.a conftest.o" >&5
7866       $AR cru libconftest.a conftest.o 2>&5
7867       echo "$RANLIB libconftest.a" >&5
7868       $RANLIB libconftest.a 2>&5
7869       cat > conftest.c << _LT_EOF
7870 int main() { return 0;}
7871 _LT_EOF
7872       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7873       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7874       _lt_result=$?
7875       if test -s conftest.err && $GREP force_load conftest.err; then
7876         cat conftest.err >&5
7877       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7878         lt_cv_ld_force_load=yes
7879       else
7880         cat conftest.err >&5
7881       fi
7882         rm -f conftest.err libconftest.a conftest conftest.c
7883         rm -rf conftest.dSYM
7884     
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7887 $as_echo "$lt_cv_ld_force_load" >&6; }
7888     case $host_os in
7889     rhapsody* | darwin1.[012])
7890       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7891     darwin1.*)
7892       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893     darwin*) # darwin 5.x on
7894       # if running on 10.5 or later, the deployment target defaults
7895       # to the OS version, if on x86, and 10.4, the deployment
7896       # target defaults to 10.4. Don't you love it?
7897       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900         10.[012]*)
7901           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902         10.*)
7903           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7904       esac
7905     ;;
7906   esac
7907     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908       _lt_dar_single_mod='$single_module'
7909     fi
7910     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7912     else
7913       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7914     fi
7915     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7916       _lt_dsymutil='~$DSYMUTIL $lib || :'
7917     else
7918       _lt_dsymutil=
7919     fi
7920     ;;
7921   esac
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #include <stdlib.h>
7931 #include <stdarg.h>
7932 #include <string.h>
7933 #include <float.h>
7936 main ()
7939   ;
7940   return 0;
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944   ac_cv_header_stdc=yes
7945 else
7946   ac_cv_header_stdc=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 if test $ac_cv_header_stdc = yes; then
7951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 #include <string.h>
7956 _ACEOF
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958   $EGREP "memchr" >/dev/null 2>&1; then :
7959   
7960 else
7961   ac_cv_header_stdc=no
7963 rm -f conftest*
7967 if test $ac_cv_header_stdc = yes; then
7968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h.  */
7971 #include <stdlib.h>
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975   $EGREP "free" >/dev/null 2>&1; then :
7976   
7977 else
7978   ac_cv_header_stdc=no
7980 rm -f conftest*
7984 if test $ac_cv_header_stdc = yes; then
7985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986   if test "$cross_compiling" = yes; then :
7987   :
7988 else
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <ctype.h>
7992 #include <stdlib.h>
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7996 #else
7997 # define ISLOWER(c) \
7998                    (('a' <= (c) && (c) <= 'i') \
7999                      || ('j' <= (c) && (c) <= 'r') \
8000                      || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8002 #endif
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8006 main ()
8008   int i;
8009   for (i = 0; i < 256; i++)
8010     if (XOR (islower (i), ISLOWER (i))
8011         || toupper (i) != TOUPPER (i))
8012       return 2;
8013   return 0;
8015 _ACEOF
8016 if ac_fn_c_try_run "$LINENO"; then :
8017   
8018 else
8019   ac_cv_header_stdc=no
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022   conftest.$ac_objext conftest.beam conftest.$ac_ext
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8030   
8031 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037                   inttypes.h stdint.h unistd.h
8038 do :
8039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043   cat >>confdefs.h <<_ACEOF
8044 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045 _ACEOF
8049 done
8052 for ac_header in dlfcn.h
8053 do :
8054   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8056 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057   cat >>confdefs.h <<_ACEOF
8058 @%:@define HAVE_DLFCN_H 1
8059 _ACEOF
8063 done
8069 # Set options
8073         enable_dlopen=no
8074   
8076   enable_win32_dll=no
8077   
8079             @%:@ Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081   enableval=$enable_shared; p=${PACKAGE-default}
8082     case $enableval in
8083     yes) enable_shared=yes ;;
8084     no) enable_shared=no ;;
8085     *)
8086       enable_shared=no
8087       # Look at the argument we got.  We use all the common list separators.
8088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8089       for pkg in $enableval; do
8090         IFS="$lt_save_ifs"
8091         if test "X$pkg" = "X$p"; then
8092           enable_shared=yes
8093         fi
8094       done
8095       IFS="$lt_save_ifs"
8096       ;;
8097     esac
8098 else
8099   enable_shared=yes
8103     
8104     
8105     
8106     
8110   @%:@ Check whether --enable-static was given.
8111 if test "${enable_static+set}" = set; then :
8112   enableval=$enable_static; p=${PACKAGE-default}
8113     case $enableval in
8114     yes) enable_static=yes ;;
8115     no) enable_static=no ;;
8116     *)
8117      enable_static=no
8118       # Look at the argument we got.  We use all the common list separators.
8119       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120       for pkg in $enableval; do
8121         IFS="$lt_save_ifs"
8122         if test "X$pkg" = "X$p"; then
8123           enable_static=yes
8124         fi
8125       done
8126       IFS="$lt_save_ifs"
8127       ;;
8128     esac
8129 else
8130   enable_static=yes
8134     
8135     
8136     
8137     
8141   
8142 @%:@ Check whether --with-pic was given.
8143 if test "${with_pic+set}" = set; then :
8144   withval=$with_pic; lt_p=${PACKAGE-default}
8145     case $withval in
8146     yes|no) pic_mode=$withval ;;
8147     *)
8148       pic_mode=default
8149       # Look at the argument we got.  We use all the common list separators.
8150       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8151       for lt_pkg in $withval; do
8152         IFS="$lt_save_ifs"
8153         if test "X$lt_pkg" = "X$lt_p"; then
8154           pic_mode=yes
8155         fi
8156       done
8157       IFS="$lt_save_ifs"
8158       ;;
8159     esac
8160 else
8161   pic_mode=default
8165 test -z "$pic_mode" && pic_mode=default
8168     
8169     
8170     
8173   @%:@ Check whether --enable-fast-install was given.
8174 if test "${enable_fast_install+set}" = set; then :
8175   enableval=$enable_fast_install; p=${PACKAGE-default}
8176     case $enableval in
8177     yes) enable_fast_install=yes ;;
8178     no) enable_fast_install=no ;;
8179     *)
8180       enable_fast_install=no
8181       # Look at the argument we got.  We use all the common list separators.
8182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8183       for pkg in $enableval; do
8184         IFS="$lt_save_ifs"
8185         if test "X$pkg" = "X$p"; then
8186           enable_fast_install=yes
8187         fi
8188       done
8189       IFS="$lt_save_ifs"
8190       ;;
8191     esac
8192 else
8193   enable_fast_install=yes
8198     
8199     
8200     
8203   
8206 # This can be used to rebuild libtool when needed
8207 LIBTOOL_DEPS="$ltmain"
8209 # Always use our own libtool.
8210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8214     
8215     
8216     
8218     
8219     
8220     
8222     
8223     
8224     
8226     
8227     
8228     
8230     
8231     
8232     
8234     
8235     
8236     
8238     
8239     
8240     
8241 test -z "$LN_S" && LN_S="ln -s"
8243     
8244     
8245     
8247     
8248     
8249     
8251     
8252     
8253     
8256 if test -n "${ZSH_VERSION+set}" ; then
8257    setopt NO_GLOB_SUBST
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8261 $as_echo_n "checking for objdir... " >&6; }
8262 if ${lt_cv_objdir+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   rm -f .libs 2>/dev/null
8266 mkdir .libs 2>/dev/null
8267 if test -d .libs; then
8268   lt_cv_objdir=.libs
8269 else
8270   # MS-DOS does not allow filenames that begin with a dot.
8271   lt_cv_objdir=_libs
8273 rmdir .libs 2>/dev/null
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8276 $as_echo "$lt_cv_objdir" >&6; }
8277 objdir=$lt_cv_objdir
8279     
8280     
8281     
8283 cat >>confdefs.h <<_ACEOF
8284 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8285 _ACEOF
8290 case $host_os in
8291 aix3*)
8292   # AIX sometimes has problems with the GCC collect2 program.  For some
8293   # reason, if we set the COLLECT_NAMES environment variable, the problems
8294   # vanish in a puff of smoke.
8295   if test "X${COLLECT_NAMES+set}" != Xset; then
8296     COLLECT_NAMES=
8297     export COLLECT_NAMES
8298   fi
8299   ;;
8300 esac
8302 # Global variables:
8303 ofile=libtool
8304 can_build_shared=yes
8306 # All known linkers require a `.a' archive for static linking (except MSVC,
8307 # which needs '.lib').
8308 libext=a
8310 with_gnu_ld="$lt_cv_prog_gnu_ld"
8312 old_CC="$CC"
8313 old_CFLAGS="$CFLAGS"
8315 # Set sane defaults for various variables
8316 test -z "$CC" && CC=cc
8317 test -z "$LTCC" && LTCC=$CC
8318 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8319 test -z "$LD" && LD=ld
8320 test -z "$ac_objext" && ac_objext=o
8322 for cc_temp in $compiler""; do
8323   case $cc_temp in
8324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8326     \-*) ;;
8327     *) break;;
8328   esac
8329 done
8330 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8333 # Only perform the check for file, if the check method requires it
8334 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8335 case $deplibs_check_method in
8336 file_magic*)
8337   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8339 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   case $MAGIC_CMD in
8344 [\\/*] |  ?:[\\/]*)
8345   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346   ;;
8348   lt_save_MAGIC_CMD="$MAGIC_CMD"
8349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8350   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8351   for ac_dir in $ac_dummy; do
8352     IFS="$lt_save_ifs"
8353     test -z "$ac_dir" && ac_dir=.
8354     if test -f $ac_dir/${ac_tool_prefix}file; then
8355       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8356       if test -n "$file_magic_test_file"; then
8357         case $deplibs_check_method in
8358         "file_magic "*)
8359           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8362             $EGREP "$file_magic_regex" > /dev/null; then
8363             :
8364           else
8365             cat <<_LT_EOF 1>&2
8367 *** Warning: the command libtool uses to detect shared libraries,
8368 *** $file_magic_cmd, produces output that libtool cannot recognize.
8369 *** The result is that libtool may fail to recognize shared libraries
8370 *** as such.  This will affect the creation of libtool libraries that
8371 *** depend on shared libraries, but programs linked with such libtool
8372 *** libraries will work regardless of this problem.  Nevertheless, you
8373 *** may want to report the problem to your system manager and/or to
8374 *** bug-libtool@gnu.org
8376 _LT_EOF
8377           fi ;;
8378         esac
8379       fi
8380       break
8381     fi
8382   done
8383   IFS="$lt_save_ifs"
8384   MAGIC_CMD="$lt_save_MAGIC_CMD"
8385   ;;
8386 esac
8389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390 if test -n "$MAGIC_CMD"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392 $as_echo "$MAGIC_CMD" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8398     
8399     
8400     
8402 if test -z "$lt_cv_path_MAGIC_CMD"; then
8403   if test -n "$ac_tool_prefix"; then
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8405 $as_echo_n "checking for file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   case $MAGIC_CMD in
8410 [\\/*] |  ?:[\\/]*)
8411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412   ;;
8414   lt_save_MAGIC_CMD="$MAGIC_CMD"
8415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417   for ac_dir in $ac_dummy; do
8418     IFS="$lt_save_ifs"
8419     test -z "$ac_dir" && ac_dir=.
8420     if test -f $ac_dir/file; then
8421       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8422       if test -n "$file_magic_test_file"; then
8423         case $deplibs_check_method in
8424         "file_magic "*)
8425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428             $EGREP "$file_magic_regex" > /dev/null; then
8429             :
8430           else
8431             cat <<_LT_EOF 1>&2
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such.  This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem.  Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8442 _LT_EOF
8443           fi ;;
8444         esac
8445       fi
8446       break
8447     fi
8448   done
8449   IFS="$lt_save_ifs"
8450   MAGIC_CMD="$lt_save_MAGIC_CMD"
8451   ;;
8452 esac
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8465   else
8466     MAGIC_CMD=:
8467   fi
8470   fi
8471   ;;
8472 esac
8474 # Use C for the default configuration in the libtool script
8476 lt_save_CC="$CC"
8477 ac_ext=c
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8484 # Source file extension for C test sources.
8485 ac_ext=c
8487 # Object file extension for compiled C test sources.
8488 objext=o
8489 objext=$objext
8491 # Code to be used in simple compile tests
8492 lt_simple_compile_test_code="int some_variable = 0;"
8494 # Code to be used in simple link tests
8495 lt_simple_link_test_code='int main(){return(0);}'
8503 # If no C compiler was specified, use CC.
8504 LTCC=${LTCC-"$CC"}
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509 # Allow CC to be a program name with arguments.
8510 compiler=$CC
8512 # Save the default compiler, since it gets overwritten when the other
8513 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8514 compiler_DEFAULT=$CC
8516 # save warnings/boilerplate of simple test code
8517 ac_outfile=conftest.$ac_objext
8518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8520 _lt_compiler_boilerplate=`cat conftest.err`
8521 $RM conftest*
8523 ac_outfile=conftest.$ac_objext
8524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8526 _lt_linker_boilerplate=`cat conftest.err`
8527 $RM -r conftest*
8530 ## CAVEAT EMPTOR:
8531 ## There is no encapsulation within the following macros, do not change
8532 ## the running order or otherwise move them around unless you know exactly
8533 ## what you are doing...
8534 if test -n "$compiler"; then
8535   
8536 lt_prog_compiler_no_builtin_flag=
8538 if test "$GCC" = yes; then
8539   case $cc_basename in
8540   nvcc*)
8541     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8542   *)
8543     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8544   esac
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8549   $as_echo_n "(cached) " >&6
8550 else
8551   lt_cv_prog_compiler_rtti_exceptions=no
8552    ac_outfile=conftest.$ac_objext
8553    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554    lt_compiler_flag="-fno-rtti -fno-exceptions"
8555    # Insert the option either (1) after the last *FLAGS variable, or
8556    # (2) before a word containing "conftest.", or (3) at the end.
8557    # Note that $ac_compile itself does not contain backslashes and begins
8558    # with a dollar sign (not a hyphen), so the echo should work correctly.
8559    # The option is referenced via a variable to avoid confusing sed.
8560    lt_compile=`echo "$ac_compile" | $SED \
8561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563    -e 's:$: $lt_compiler_flag:'`
8564    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565    (eval "$lt_compile" 2>conftest.err)
8566    ac_status=$?
8567    cat conftest.err >&5
8568    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569    if (exit $ac_status) && test -s "$ac_outfile"; then
8570      # The compiler can only warn and ignore the option if not recognized
8571      # So say no if there are warnings other than the usual output.
8572      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575        lt_cv_prog_compiler_rtti_exceptions=yes
8576      fi
8577    fi
8578    $RM conftest*
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8585     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8586 else
8587     :
8592     
8593     
8594     
8597   lt_prog_compiler_wl=
8598 lt_prog_compiler_pic=
8599 lt_prog_compiler_static=
8602   if test "$GCC" = yes; then
8603     lt_prog_compiler_wl='-Wl,'
8604     lt_prog_compiler_static='-static'
8606     case $host_os in
8607       aix*)
8608       # All AIX code is PIC.
8609       if test "$host_cpu" = ia64; then
8610         # AIX 5 now supports IA64 processor
8611         lt_prog_compiler_static='-Bstatic'
8612       fi
8613       ;;
8615     amigaos*)
8616       case $host_cpu in
8617       powerpc)
8618             # see comment about AmigaOS4 .so support
8619             lt_prog_compiler_pic='-fPIC'
8620         ;;
8621       m68k)
8622             # FIXME: we need at least 68020 code to build shared libraries, but
8623             # adding the `-m68020' flag to GCC prevents building anything better,
8624             # like `-m68040'.
8625             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8626         ;;
8627       esac
8628       ;;
8630     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8631       # PIC is the default for these OSes.
8632       ;;
8634     mingw* | cygwin* | pw32* | os2* | cegcc*)
8635       # This hack is so that the source file can tell whether it is being
8636       # built for inclusion in a dll (and should export symbols for example).
8637       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8638       # (--disable-auto-import) libraries
8639       lt_prog_compiler_pic='-DDLL_EXPORT'
8640       ;;
8642     darwin* | rhapsody*)
8643       # PIC is the default on this platform
8644       # Common symbols not allowed in MH_DYLIB files
8645       lt_prog_compiler_pic='-fno-common'
8646       ;;
8648     haiku*)
8649       # PIC is the default for Haiku.
8650       # The "-static" flag exists, but is broken.
8651       lt_prog_compiler_static=
8652       ;;
8654     hpux*)
8655       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8656       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8657       # sets the default TLS model and affects inlining.
8658       case $host_cpu in
8659       hppa*64*)
8660         # +Z the default
8661         ;;
8662       *)
8663         lt_prog_compiler_pic='-fPIC'
8664         ;;
8665       esac
8666       ;;
8668     interix[3-9]*)
8669       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8670       # Instead, we relocate shared libraries at runtime.
8671       ;;
8673     msdosdjgpp*)
8674       # Just because we use GCC doesn't mean we suddenly get shared libraries
8675       # on systems that don't support them.
8676       lt_prog_compiler_can_build_shared=no
8677       enable_shared=no
8678       ;;
8680     *nto* | *qnx*)
8681       # QNX uses GNU C++, but need to define -shared option too, otherwise
8682       # it will coredump.
8683       lt_prog_compiler_pic='-fPIC -shared'
8684       ;;
8686     sysv4*MP*)
8687       if test -d /usr/nec; then
8688         lt_prog_compiler_pic=-Kconform_pic
8689       fi
8690       ;;
8692     *)
8693       lt_prog_compiler_pic='-fPIC'
8694       ;;
8695     esac
8697     case $cc_basename in
8698     nvcc*) # Cuda Compiler Driver 2.2
8699       lt_prog_compiler_wl='-Xlinker '
8700       if test -n "$lt_prog_compiler_pic"; then
8701         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8702       fi
8703       ;;
8704     esac
8705   else
8706     # PORTME Check for flag to pass linker flags through the system compiler.
8707     case $host_os in
8708     aix*)
8709       lt_prog_compiler_wl='-Wl,'
8710       if test "$host_cpu" = ia64; then
8711         # AIX 5 now supports IA64 processor
8712         lt_prog_compiler_static='-Bstatic'
8713       else
8714         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8715       fi
8716       ;;
8718     mingw* | cygwin* | pw32* | os2* | cegcc*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       lt_prog_compiler_pic='-DDLL_EXPORT'
8722       ;;
8724     hpux9* | hpux10* | hpux11*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727       # not for PA HP-UX.
8728       case $host_cpu in
8729       hppa*64*|ia64*)
8730         # +Z the default
8731         ;;
8732       *)
8733         lt_prog_compiler_pic='+Z'
8734         ;;
8735       esac
8736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737       lt_prog_compiler_static='${wl}-a ${wl}archive'
8738       ;;
8740     irix5* | irix6* | nonstopux*)
8741       lt_prog_compiler_wl='-Wl,'
8742       # PIC (with -KPIC) is the default.
8743       lt_prog_compiler_static='-non_shared'
8744       ;;
8746     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8747       case $cc_basename in
8748       # old Intel for x86_64 which still supported -KPIC.
8749       ecc*)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='-KPIC'
8752         lt_prog_compiler_static='-static'
8753         ;;
8754       # icc used to be incompatible with GCC.
8755       # ICC 10 doesn't accept -KPIC any more.
8756       icc* | ifort*)
8757         lt_prog_compiler_wl='-Wl,'
8758         lt_prog_compiler_pic='-fPIC'
8759         lt_prog_compiler_static='-static'
8760         ;;
8761       # Lahey Fortran 8.1.
8762       lf95*)
8763         lt_prog_compiler_wl='-Wl,'
8764         lt_prog_compiler_pic='--shared'
8765         lt_prog_compiler_static='--static'
8766         ;;
8767       nagfor*)
8768         # NAG Fortran compiler
8769         lt_prog_compiler_wl='-Wl,-Wl,,'
8770         lt_prog_compiler_pic='-PIC'
8771         lt_prog_compiler_static='-Bstatic'
8772         ;;
8773       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8774         # Portland Group compilers (*not* the Pentium gcc compiler,
8775         # which looks to be a dead project)
8776         lt_prog_compiler_wl='-Wl,'
8777         lt_prog_compiler_pic='-fpic'
8778         lt_prog_compiler_static='-Bstatic'
8779         ;;
8780       ccc*)
8781         lt_prog_compiler_wl='-Wl,'
8782         # All Alpha code is PIC.
8783         lt_prog_compiler_static='-non_shared'
8784         ;;
8785       xl* | bgxl* | bgf* | mpixl*)
8786         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8787         lt_prog_compiler_wl='-Wl,'
8788         lt_prog_compiler_pic='-qpic'
8789         lt_prog_compiler_static='-qstaticlink'
8790         ;;
8791       *)
8792         case `$CC -V 2>&1 | sed 5q` in
8793         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8794           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8795           lt_prog_compiler_pic='-KPIC'
8796           lt_prog_compiler_static='-Bstatic'
8797           lt_prog_compiler_wl=''
8798           ;;
8799         *Sun\ F* | *Sun*Fortran*)
8800           lt_prog_compiler_pic='-KPIC'
8801           lt_prog_compiler_static='-Bstatic'
8802           lt_prog_compiler_wl='-Qoption ld '
8803           ;;
8804         *Sun\ C*)
8805           # Sun C 5.9
8806           lt_prog_compiler_pic='-KPIC'
8807           lt_prog_compiler_static='-Bstatic'
8808           lt_prog_compiler_wl='-Wl,'
8809           ;;
8810         *Intel*\ [CF]*Compiler*)
8811           lt_prog_compiler_wl='-Wl,'
8812           lt_prog_compiler_pic='-fPIC'
8813           lt_prog_compiler_static='-static'
8814           ;;
8815         *Portland\ Group*)
8816           lt_prog_compiler_wl='-Wl,'
8817           lt_prog_compiler_pic='-fpic'
8818           lt_prog_compiler_static='-Bstatic'
8819           ;;
8820         esac
8821         ;;
8822       esac
8823       ;;
8825     newsos6)
8826       lt_prog_compiler_pic='-KPIC'
8827       lt_prog_compiler_static='-Bstatic'
8828       ;;
8830     *nto* | *qnx*)
8831       # QNX uses GNU C++, but need to define -shared option too, otherwise
8832       # it will coredump.
8833       lt_prog_compiler_pic='-fPIC -shared'
8834       ;;
8836     osf3* | osf4* | osf5*)
8837       lt_prog_compiler_wl='-Wl,'
8838       # All OSF/1 code is PIC.
8839       lt_prog_compiler_static='-non_shared'
8840       ;;
8842     rdos*)
8843       lt_prog_compiler_static='-non_shared'
8844       ;;
8846     solaris*)
8847       lt_prog_compiler_pic='-KPIC'
8848       lt_prog_compiler_static='-Bstatic'
8849       case $cc_basename in
8850       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8851         lt_prog_compiler_wl='-Qoption ld ';;
8852       *)
8853         lt_prog_compiler_wl='-Wl,';;
8854       esac
8855       ;;
8857     sunos4*)
8858       lt_prog_compiler_wl='-Qoption ld '
8859       lt_prog_compiler_pic='-PIC'
8860       lt_prog_compiler_static='-Bstatic'
8861       ;;
8863     sysv4 | sysv4.2uw2* | sysv4.3*)
8864       lt_prog_compiler_wl='-Wl,'
8865       lt_prog_compiler_pic='-KPIC'
8866       lt_prog_compiler_static='-Bstatic'
8867       ;;
8869     sysv4*MP*)
8870       if test -d /usr/nec ;then
8871         lt_prog_compiler_pic='-Kconform_pic'
8872         lt_prog_compiler_static='-Bstatic'
8873       fi
8874       ;;
8876     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8877       lt_prog_compiler_wl='-Wl,'
8878       lt_prog_compiler_pic='-KPIC'
8879       lt_prog_compiler_static='-Bstatic'
8880       ;;
8882     unicos*)
8883       lt_prog_compiler_wl='-Wl,'
8884       lt_prog_compiler_can_build_shared=no
8885       ;;
8887     uts4*)
8888       lt_prog_compiler_pic='-pic'
8889       lt_prog_compiler_static='-Bstatic'
8890       ;;
8892     *)
8893       lt_prog_compiler_can_build_shared=no
8894       ;;
8895     esac
8896   fi
8898 case $host_os in
8899   # For platforms which do not support PIC, -DPIC is meaningless:
8900   *djgpp*)
8901     lt_prog_compiler_pic=
8902     ;;
8903   *)
8904     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8905     ;;
8906 esac
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8910 if ${lt_cv_prog_compiler_pic+:} false; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8916 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8920 # Check to make sure the PIC flag actually works.
8922 if test -n "$lt_prog_compiler_pic"; then
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   lt_cv_prog_compiler_pic_works=no
8929    ac_outfile=conftest.$ac_objext
8930    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8932    # Insert the option either (1) after the last *FLAGS variable, or
8933    # (2) before a word containing "conftest.", or (3) at the end.
8934    # Note that $ac_compile itself does not contain backslashes and begins
8935    # with a dollar sign (not a hyphen), so the echo should work correctly.
8936    # The option is referenced via a variable to avoid confusing sed.
8937    lt_compile=`echo "$ac_compile" | $SED \
8938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940    -e 's:$: $lt_compiler_flag:'`
8941    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942    (eval "$lt_compile" 2>conftest.err)
8943    ac_status=$?
8944    cat conftest.err >&5
8945    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946    if (exit $ac_status) && test -s "$ac_outfile"; then
8947      # The compiler can only warn and ignore the option if not recognized
8948      # So say no if there are warnings other than the usual output.
8949      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8950      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8952        lt_cv_prog_compiler_pic_works=yes
8953      fi
8954    fi
8955    $RM conftest*
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8962     case $lt_prog_compiler_pic in
8963      "" | " "*) ;;
8964      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8965      esac
8966 else
8967     lt_prog_compiler_pic=
8968      lt_prog_compiler_can_build_shared=no
8973     
8974     
8975     
8979     
8980     
8981     
8984 # Check to make sure the static flag actually works.
8986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8989 if ${lt_cv_prog_compiler_static_works+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   lt_cv_prog_compiler_static_works=no
8993    save_LDFLAGS="$LDFLAGS"
8994    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8995    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8996    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8997      # The linker can only warn and ignore the option if not recognized
8998      # So say no if there are warnings
8999      if test -s conftest.err; then
9000        # Append any errors to the config.log.
9001        cat conftest.err 1>&5
9002        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9003        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004        if diff conftest.exp conftest.er2 >/dev/null; then
9005          lt_cv_prog_compiler_static_works=yes
9006        fi
9007      else
9008        lt_cv_prog_compiler_static_works=yes
9009      fi
9010    fi
9011    $RM -r conftest*
9012    LDFLAGS="$save_LDFLAGS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9019     :
9020 else
9021     lt_prog_compiler_static=
9025     
9026     
9027     
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9032 if ${lt_cv_prog_compiler_c_o+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   lt_cv_prog_compiler_c_o=no
9036    $RM -r conftest 2>/dev/null
9037    mkdir conftest
9038    cd conftest
9039    mkdir out
9040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042    lt_compiler_flag="-o out/conftest2.$ac_objext"
9043    # Insert the option either (1) after the last *FLAGS variable, or
9044    # (2) before a word containing "conftest.", or (3) at the end.
9045    # Note that $ac_compile itself does not contain backslashes and begins
9046    # with a dollar sign (not a hyphen), so the echo should work correctly.
9047    lt_compile=`echo "$ac_compile" | $SED \
9048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050    -e 's:$: $lt_compiler_flag:'`
9051    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052    (eval "$lt_compile" 2>out/conftest.err)
9053    ac_status=$?
9054    cat out/conftest.err >&5
9055    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9057    then
9058      # The compiler can only warn and ignore the option if not recognized
9059      # So say no if there are warnings
9060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9063        lt_cv_prog_compiler_c_o=yes
9064      fi
9065    fi
9066    chmod u+w . 2>&5
9067    $RM conftest*
9068    # SGI C++ compiler will create directory out/ii_files/ for
9069    # template instantiation
9070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9071    $RM out/* && rmdir out
9072    cd ..
9073    $RM -r conftest
9074    $RM conftest*
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080     
9081     
9082     
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if ${lt_cv_prog_compiler_c_o+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   lt_cv_prog_compiler_c_o=no
9091    $RM -r conftest 2>/dev/null
9092    mkdir conftest
9093    cd conftest
9094    mkdir out
9095    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097    lt_compiler_flag="-o out/conftest2.$ac_objext"
9098    # Insert the option either (1) after the last *FLAGS variable, or
9099    # (2) before a word containing "conftest.", or (3) at the end.
9100    # Note that $ac_compile itself does not contain backslashes and begins
9101    # with a dollar sign (not a hyphen), so the echo should work correctly.
9102    lt_compile=`echo "$ac_compile" | $SED \
9103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105    -e 's:$: $lt_compiler_flag:'`
9106    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107    (eval "$lt_compile" 2>out/conftest.err)
9108    ac_status=$?
9109    cat out/conftest.err >&5
9110    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112    then
9113      # The compiler can only warn and ignore the option if not recognized
9114      # So say no if there are warnings
9115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9116      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118        lt_cv_prog_compiler_c_o=yes
9119      fi
9120    fi
9121    chmod u+w . 2>&5
9122    $RM conftest*
9123    # SGI C++ compiler will create directory out/ii_files/ for
9124    # template instantiation
9125    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126    $RM out/* && rmdir out
9127    cd ..
9128    $RM -r conftest
9129    $RM conftest*
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9138 hard_links="nottested"
9139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9140   # do not overwrite the value of need_locks provided by the user
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9142 $as_echo_n "checking if we can lock with hard links... " >&6; }
9143   hard_links=yes
9144   $RM conftest*
9145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9146   touch conftest.a
9147   ln conftest.a conftest.b 2>&5 || hard_links=no
9148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9150 $as_echo "$hard_links" >&6; }
9151   if test "$hard_links" = no; then
9152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9154     need_locks=warn
9155   fi
9156 else
9157   need_locks=no
9160     
9161     
9162     
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9168   runpath_var=
9169   allow_undefined_flag=
9170   always_export_symbols=no
9171   archive_cmds=
9172   archive_expsym_cmds=
9173   compiler_needs_object=no
9174   enable_shared_with_static_runtimes=no
9175   export_dynamic_flag_spec=
9176   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9177   hardcode_automatic=no
9178   hardcode_direct=no
9179   hardcode_direct_absolute=no
9180   hardcode_libdir_flag_spec=
9181   hardcode_libdir_separator=
9182   hardcode_minus_L=no
9183   hardcode_shlibpath_var=unsupported
9184   inherit_rpath=no
9185   link_all_deplibs=unknown
9186   module_cmds=
9187   module_expsym_cmds=
9188   old_archive_from_new_cmds=
9189   old_archive_from_expsyms_cmds=
9190   thread_safe_flag_spec=
9191   whole_archive_flag_spec=
9192   # include_expsyms should be a list of space-separated symbols to be *always*
9193   # included in the symbol list
9194   include_expsyms=
9195   # exclude_expsyms can be an extended regexp of symbols to exclude
9196   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9197   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9198   # as well as any symbol that contains `d'.
9199   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9200   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9201   # platforms (ab)use it in PIC code, but their linkers get confused if
9202   # the symbol is explicitly referenced.  Since portable code cannot
9203   # rely on this symbol name, it's probably fine to never include it in
9204   # preloaded symbol tables.
9205   # Exclude shared library initialization/finalization symbols.
9206   extract_expsyms_cmds=
9208   case $host_os in
9209   cygwin* | mingw* | pw32* | cegcc*)
9210     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9211     # When not using gcc, we currently assume that we are using
9212     # Microsoft Visual C++.
9213     if test "$GCC" != yes; then
9214       with_gnu_ld=no
9215     fi
9216     ;;
9217   interix*)
9218     # we just hope/assume this is gcc and not c89 (= MSVC++)
9219     with_gnu_ld=yes
9220     ;;
9221   openbsd*)
9222     with_gnu_ld=no
9223     ;;
9224   linux* | k*bsd*-gnu | gnu*)
9225     link_all_deplibs=no
9226     ;;
9227   esac
9229   ld_shlibs=yes
9231   # On some targets, GNU ld is compatible enough with the native linker
9232   # that we're better off using the native interface for both.
9233   lt_use_gnu_ld_interface=no
9234   if test "$with_gnu_ld" = yes; then
9235     case $host_os in
9236       aix*)
9237         # The AIX port of GNU ld has always aspired to compatibility
9238         # with the native linker.  However, as the warning in the GNU ld
9239         # block says, versions before 2.19.5* couldn't really create working
9240         # shared libraries, regardless of the interface used.
9241         case `$LD -v 2>&1` in
9242           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9243           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9244           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9245           *)
9246             lt_use_gnu_ld_interface=yes
9247             ;;
9248         esac
9249         ;;
9250       *)
9251         lt_use_gnu_ld_interface=yes
9252         ;;
9253     esac
9254   fi
9256   if test "$lt_use_gnu_ld_interface" = yes; then
9257     # If archive_cmds runs LD, not CC, wlarc should be empty
9258     wlarc='${wl}'
9260     # Set some defaults for GNU ld with shared library support. These
9261     # are reset later if shared libraries are not supported. Putting them
9262     # here allows them to be overridden if necessary.
9263     runpath_var=LD_RUN_PATH
9264     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265     export_dynamic_flag_spec='${wl}--export-dynamic'
9266     # ancient GNU ld didn't support --whole-archive et. al.
9267     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9268       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9269     else
9270       whole_archive_flag_spec=
9271     fi
9272     supports_anon_versioning=no
9273     case `$LD -v 2>&1` in
9274       *GNU\ gold*) supports_anon_versioning=yes ;;
9275       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9276       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9277       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9278       *\ 2.11.*) ;; # other 2.11 versions
9279       *) supports_anon_versioning=yes ;;
9280     esac
9282     # See if GNU ld supports shared libraries.
9283     case $host_os in
9284     aix[3-9]*)
9285       # On AIX/PPC, the GNU linker is very broken
9286       if test "$host_cpu" != ia64; then
9287         ld_shlibs=no
9288         cat <<_LT_EOF 1>&2
9290 *** Warning: the GNU linker, at least up to release 2.19, is reported
9291 *** to be unable to reliably create shared libraries on AIX.
9292 *** Therefore, libtool is disabling shared libraries support.  If you
9293 *** really care for shared libraries, you may want to install binutils
9294 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9295 *** You will then need to restart the configuration process.
9297 _LT_EOF
9298       fi
9299       ;;
9301     amigaos*)
9302       case $host_cpu in
9303       powerpc)
9304             # see comment about AmigaOS4 .so support
9305             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306             archive_expsym_cmds=''
9307         ;;
9308       m68k)
9309             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)'
9310             hardcode_libdir_flag_spec='-L$libdir'
9311             hardcode_minus_L=yes
9312         ;;
9313       esac
9314       ;;
9316     beos*)
9317       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318         allow_undefined_flag=unsupported
9319         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9320         # support --undefined.  This deserves some investigation.  FIXME
9321         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322       else
9323         ld_shlibs=no
9324       fi
9325       ;;
9327     cygwin* | mingw* | pw32* | cegcc*)
9328       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9329       # as there is no search path for DLLs.
9330       hardcode_libdir_flag_spec='-L$libdir'
9331       export_dynamic_flag_spec='${wl}--export-all-symbols'
9332       allow_undefined_flag=unsupported
9333       always_export_symbols=no
9334       enable_shared_with_static_runtimes=yes
9335       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'
9336       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9338       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9339         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9340         # If the export-symbols file already is a .def file (1st line
9341         # is EXPORTS), use it as is; otherwise, prepend...
9342         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9343           cp $export_symbols $output_objdir/$soname.def;
9344         else
9345           echo EXPORTS > $output_objdir/$soname.def;
9346           cat $export_symbols >> $output_objdir/$soname.def;
9347         fi~
9348         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9349       else
9350         ld_shlibs=no
9351       fi
9352       ;;
9354     haiku*)
9355       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356       link_all_deplibs=yes
9357       ;;
9359     interix[3-9]*)
9360       hardcode_direct=no
9361       hardcode_shlibpath_var=no
9362       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363       export_dynamic_flag_spec='${wl}-E'
9364       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9365       # Instead, shared libraries are loaded at an image base (0x10000000 by
9366       # default) and relocated if they conflict, which is a slow very memory
9367       # consuming and fragmenting process.  To avoid this, we pick a random,
9368       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9369       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9370       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9371       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'
9372       ;;
9374     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9375       tmp_diet=no
9376       if test "$host_os" = linux-dietlibc; then
9377         case $cc_basename in
9378           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9379         esac
9380       fi
9381       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9382          && test "$tmp_diet" = no
9383       then
9384         tmp_addflag=' $pic_flag'
9385         tmp_sharedflag='-shared'
9386         case $cc_basename,$host_cpu in
9387         pgcc*)                          # Portland Group C compiler
9388           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'
9389           tmp_addflag=' $pic_flag'
9390           ;;
9391         pgf77* | pgf90* | pgf95* | pgfortran*)
9392                                         # Portland Group f77 and f90 compilers
9393           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'
9394           tmp_addflag=' $pic_flag -Mnomain' ;;
9395         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9396           tmp_addflag=' -i_dynamic' ;;
9397         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9398           tmp_addflag=' -i_dynamic -nofor_main' ;;
9399         ifc* | ifort*)                  # Intel Fortran compiler
9400           tmp_addflag=' -nofor_main' ;;
9401         lf95*)                          # Lahey Fortran 8.1
9402           whole_archive_flag_spec=
9403           tmp_sharedflag='--shared' ;;
9404         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9405           tmp_sharedflag='-qmkshrobj'
9406           tmp_addflag= ;;
9407         nvcc*)  # Cuda Compiler Driver 2.2
9408           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'
9409           compiler_needs_object=yes
9410           ;;
9411         esac
9412         case `$CC -V 2>&1 | sed 5q` in
9413         *Sun\ C*)                       # Sun C 5.9
9414           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'
9415           compiler_needs_object=yes
9416           tmp_sharedflag='-G' ;;
9417         *Sun\ F*)                       # Sun Fortran 8.3
9418           tmp_sharedflag='-G' ;;
9419         esac
9420         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422         if test "x$supports_anon_versioning" = xyes; then
9423           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9424             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9425             echo "local: *; };" >> $output_objdir/$libname.ver~
9426             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9427         fi
9429         case $cc_basename in
9430         xlf* | bgf* | bgxlf* | mpixlf*)
9431           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9432           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9433           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9435           if test "x$supports_anon_versioning" = xyes; then
9436             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9437               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9438               echo "local: *; };" >> $output_objdir/$libname.ver~
9439               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9440           fi
9441           ;;
9442         esac
9443       else
9444         ld_shlibs=no
9445       fi
9446       ;;
9448     netbsd* | netbsdelf*-gnu)
9449       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9450         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9451         wlarc=
9452       else
9453         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9455       fi
9456       ;;
9458     solaris*)
9459       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9460         ld_shlibs=no
9461         cat <<_LT_EOF 1>&2
9463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9464 *** create shared libraries on Solaris systems.  Therefore, libtool
9465 *** is disabling shared libraries support.  We urge you to upgrade GNU
9466 *** binutils to release 2.9.1 or newer.  Another option is to modify
9467 *** your PATH or compiler configuration so that the native linker is
9468 *** used, and then restart.
9470 _LT_EOF
9471       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9472         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474       else
9475         ld_shlibs=no
9476       fi
9477       ;;
9479     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9480       case `$LD -v 2>&1` in
9481         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9482         ld_shlibs=no
9483         cat <<_LT_EOF 1>&2
9485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9486 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9487 *** is disabling shared libraries support.  We urge you to upgrade GNU
9488 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9489 *** your PATH or compiler configuration so that the native linker is
9490 *** used, and then restart.
9492 _LT_EOF
9493         ;;
9494         *)
9495           # For security reasons, it is highly recommended that you always
9496           # use absolute paths for naming shared libraries, and exclude the
9497           # DT_RUNPATH tag from executables and libraries.  But doing so
9498           # requires that you compile everything twice, which is a pain.
9499           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503           else
9504             ld_shlibs=no
9505           fi
9506         ;;
9507       esac
9508       ;;
9510     sunos4*)
9511       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9512       wlarc=
9513       hardcode_direct=yes
9514       hardcode_shlibpath_var=no
9515       ;;
9517     *)
9518       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9519         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521       else
9522         ld_shlibs=no
9523       fi
9524       ;;
9525     esac
9527     if test "$ld_shlibs" = no; then
9528       runpath_var=
9529       hardcode_libdir_flag_spec=
9530       export_dynamic_flag_spec=
9531       whole_archive_flag_spec=
9532     fi
9533   else
9534     # PORTME fill in a description of your system's linker (not GNU ld)
9535     case $host_os in
9536     aix3*)
9537       allow_undefined_flag=unsupported
9538       always_export_symbols=yes
9539       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'
9540       # Note: this linker hardcodes the directories in LIBPATH if there
9541       # are no directories specified by -L.
9542       hardcode_minus_L=yes
9543       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9544         # Neither direct hardcoding nor static linking is supported with a
9545         # broken collect2.
9546         hardcode_direct=unsupported
9547       fi
9548       ;;
9550     aix[4-9]*)
9551       if test "$host_cpu" = ia64; then
9552         # On IA64, the linker does run time linking by default, so we don't
9553         # have to do anything special.
9554         aix_use_runtimelinking=no
9555         exp_sym_flag='-Bexport'
9556         no_entry_flag=""
9557       else
9558         # If we're using GNU nm, then we don't want the "-C" option.
9559         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9560         # Also, AIX nm treats weak defined symbols like other global
9561         # defined symbols, whereas GNU nm marks them as "W".
9562         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9563           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9564         else
9565           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9566         fi
9567         aix_use_runtimelinking=no
9569         # Test if we are trying to use run time linking or normal
9570         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9571         # need to do runtime linking.
9572         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9573           for ld_flag in $LDFLAGS; do
9574           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9575             aix_use_runtimelinking=yes
9576             break
9577           fi
9578           done
9579           ;;
9580         esac
9582         exp_sym_flag='-bexport'
9583         no_entry_flag='-bnoentry'
9584       fi
9586       # When large executables or shared objects are built, AIX ld can
9587       # have problems creating the table of contents.  If linking a library
9588       # or program results in "error TOC overflow" add -mminimal-toc to
9589       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9590       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9592       archive_cmds=''
9593       hardcode_direct=yes
9594       hardcode_direct_absolute=yes
9595       hardcode_libdir_separator=':'
9596       link_all_deplibs=yes
9597       file_list_spec='${wl}-f,'
9599       if test "$GCC" = yes; then
9600         case $host_os in aix4.[012]|aix4.[012].*)
9601         # We only want to do this on AIX 4.2 and lower, the check
9602         # below for broken collect2 doesn't work under 4.3+
9603           collect2name=`${CC} -print-prog-name=collect2`
9604           if test -f "$collect2name" &&
9605            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9606           then
9607           # We have reworked collect2
9608           :
9609           else
9610           # We have old collect2
9611           hardcode_direct=unsupported
9612           # It fails to find uninstalled libraries when the uninstalled
9613           # path is not listed in the libpath.  Setting hardcode_minus_L
9614           # to unsupported forces relinking
9615           hardcode_minus_L=yes
9616           hardcode_libdir_flag_spec='-L$libdir'
9617           hardcode_libdir_separator=
9618           fi
9619           ;;
9620         esac
9621         shared_flag='-shared'
9622         if test "$aix_use_runtimelinking" = yes; then
9623           shared_flag="$shared_flag "'${wl}-G'
9624         fi
9625         link_all_deplibs=no
9626       else
9627         # not using gcc
9628         if test "$host_cpu" = ia64; then
9629         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9630         # chokes on -Wl,-G. The following line is correct:
9631           shared_flag='-G'
9632         else
9633           if test "$aix_use_runtimelinking" = yes; then
9634             shared_flag='${wl}-G'
9635           else
9636             shared_flag='${wl}-bM:SRE'
9637           fi
9638         fi
9639       fi
9641       export_dynamic_flag_spec='${wl}-bexpall'
9642       # It seems that -bexpall does not export symbols beginning with
9643       # underscore (_), so it is better to generate a list of symbols to export.
9644       always_export_symbols=yes
9645       if test "$aix_use_runtimelinking" = yes; then
9646         # Warning - without using the other runtime loading flags (-brtl),
9647         # -berok will link without error, but may produce a broken library.
9648         allow_undefined_flag='-berok'
9649         # Determine the default libpath from the value encoded in an
9650         # empty executable.
9651         if test "${lt_cv_aix_libpath+set}" = set; then
9652   aix_libpath=$lt_cv_aix_libpath
9653 else
9654   if ${lt_cv_aix_libpath_+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h.  */
9661 main ()
9664   ;
9665   return 0;
9667 _ACEOF
9668 if ac_fn_c_try_link "$LINENO"; then :
9669   
9670   lt_aix_libpath_sed='
9671       /Import File Strings/,/^$/ {
9672           /^0/ {
9673               s/^0  *\([^ ]*\) *$/\1/
9674               p
9675           }
9676       }'
9677   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678   # Check for a 64-bit object if we didn't find anything.
9679   if test -z "$lt_cv_aix_libpath_"; then
9680     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9681   fi
9683 rm -f core conftest.err conftest.$ac_objext \
9684     conftest$ac_exeext conftest.$ac_ext
9685   if test -z "$lt_cv_aix_libpath_"; then
9686     lt_cv_aix_libpath_="/usr/lib:/lib"
9687   fi
9688   
9691   aix_libpath=$lt_cv_aix_libpath_
9694         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9695         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9696       else
9697         if test "$host_cpu" = ia64; then
9698           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9699           allow_undefined_flag="-z nodefs"
9700           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"
9701         else
9702          # Determine the default libpath from the value encoded in an
9703          # empty executable.
9704          if test "${lt_cv_aix_libpath+set}" = set; then
9705   aix_libpath=$lt_cv_aix_libpath
9706 else
9707   if ${lt_cv_aix_libpath_+:} false; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h.  */
9714 main ()
9717   ;
9718   return 0;
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"; then :
9722   
9723   lt_aix_libpath_sed='
9724       /Import File Strings/,/^$/ {
9725           /^0/ {
9726               s/^0  *\([^ ]*\) *$/\1/
9727               p
9728           }
9729       }'
9730   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731   # Check for a 64-bit object if we didn't find anything.
9732   if test -z "$lt_cv_aix_libpath_"; then
9733     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734   fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737     conftest$ac_exeext conftest.$ac_ext
9738   if test -z "$lt_cv_aix_libpath_"; then
9739     lt_cv_aix_libpath_="/usr/lib:/lib"
9740   fi
9741   
9744   aix_libpath=$lt_cv_aix_libpath_
9747          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9748           # Warning - without using the other run time loading flags,
9749           # -berok will link without error, but may produce a broken library.
9750           no_undefined_flag=' ${wl}-bernotok'
9751           allow_undefined_flag=' ${wl}-berok'
9752           if test "$with_gnu_ld" = yes; then
9753             # We only use this code for GNU lds that support --whole-archive.
9754             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9755           else
9756             # Exported symbols can be pulled into shared objects from archives
9757             whole_archive_flag_spec='$convenience'
9758           fi
9759           archive_cmds_need_lc=yes
9760           # This is similar to how AIX traditionally builds its shared libraries.
9761           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9762         fi
9763       fi
9764       ;;
9766     amigaos*)
9767       case $host_cpu in
9768       powerpc)
9769             # see comment about AmigaOS4 .so support
9770             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771             archive_expsym_cmds=''
9772         ;;
9773       m68k)
9774             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)'
9775             hardcode_libdir_flag_spec='-L$libdir'
9776             hardcode_minus_L=yes
9777         ;;
9778       esac
9779       ;;
9781     bsdi[45]*)
9782       export_dynamic_flag_spec=-rdynamic
9783       ;;
9785     cygwin* | mingw* | pw32* | cegcc*)
9786       # When not using gcc, we currently assume that we are using
9787       # Microsoft Visual C++.
9788       # hardcode_libdir_flag_spec is actually meaningless, as there is
9789       # no search path for DLLs.
9790       case $cc_basename in
9791       cl*)
9792         # Native MSVC
9793         hardcode_libdir_flag_spec=' '
9794         allow_undefined_flag=unsupported
9795         always_export_symbols=yes
9796         file_list_spec='@'
9797         # Tell ltmain to make .lib files, not .a files.
9798         libext=lib
9799         # Tell ltmain to make .dll files, not .so files.
9800         shrext_cmds=".dll"
9801         # FIXME: Setting linknames here is a bad hack.
9802         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9803         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9804             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9805           else
9806             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9807           fi~
9808           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9809           linknames='
9810         # The linker will not automatically build a static lib if we build a DLL.
9811         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9812         enable_shared_with_static_runtimes=yes
9813         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9814         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9815         # Don't use ranlib
9816         old_postinstall_cmds='chmod 644 $oldlib'
9817         postlink_cmds='lt_outputfile="@OUTPUT@"~
9818           lt_tool_outputfile="@TOOL_OUTPUT@"~
9819           case $lt_outputfile in
9820             *.exe|*.EXE) ;;
9821             *)
9822               lt_outputfile="$lt_outputfile.exe"
9823               lt_tool_outputfile="$lt_tool_outputfile.exe"
9824               ;;
9825           esac~
9826           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9827             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9828             $RM "$lt_outputfile.manifest";
9829           fi'
9830         ;;
9831       *)
9832         # Assume MSVC wrapper
9833         hardcode_libdir_flag_spec=' '
9834         allow_undefined_flag=unsupported
9835         # Tell ltmain to make .lib files, not .a files.
9836         libext=lib
9837         # Tell ltmain to make .dll files, not .so files.
9838         shrext_cmds=".dll"
9839         # FIXME: Setting linknames here is a bad hack.
9840         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9841         # The linker will automatically build a .lib file if we build a DLL.
9842         old_archive_from_new_cmds='true'
9843         # FIXME: Should let the user specify the lib program.
9844         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9845         enable_shared_with_static_runtimes=yes
9846         ;;
9847       esac
9848       ;;
9850     darwin* | rhapsody*)
9851       
9852   
9853   archive_cmds_need_lc=no
9854   hardcode_direct=no
9855   hardcode_automatic=yes
9856   hardcode_shlibpath_var=unsupported
9857   if test "$lt_cv_ld_force_load" = "yes"; then
9858     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\"`'
9859     
9860   else
9861     whole_archive_flag_spec=''
9862   fi
9863   link_all_deplibs=yes
9864   allow_undefined_flag="$_lt_dar_allow_undefined"
9865   case $cc_basename in
9866      ifort*) _lt_dar_can_shared=yes ;;
9867      *) _lt_dar_can_shared=$GCC ;;
9868   esac
9869   if test "$_lt_dar_can_shared" = "yes"; then
9870     output_verbose_link_cmd=func_echo_all
9871     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9872     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9873     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}"
9874     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}"
9875     
9876   else
9877   ld_shlibs=no
9878   fi
9880       ;;
9882     dgux*)
9883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884       hardcode_libdir_flag_spec='-L$libdir'
9885       hardcode_shlibpath_var=no
9886       ;;
9888     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9889     # support.  Future versions do this automatically, but an explicit c++rt0.o
9890     # does not break anything, and helps significantly (at the cost of a little
9891     # extra space).
9892     freebsd2.2*)
9893       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9894       hardcode_libdir_flag_spec='-R$libdir'
9895       hardcode_direct=yes
9896       hardcode_shlibpath_var=no
9897       ;;
9899     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9900     freebsd2.*)
9901       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9902       hardcode_direct=yes
9903       hardcode_minus_L=yes
9904       hardcode_shlibpath_var=no
9905       ;;
9907     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9908     freebsd* | dragonfly*)
9909       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910       hardcode_libdir_flag_spec='-R$libdir'
9911       hardcode_direct=yes
9912       hardcode_shlibpath_var=no
9913       ;;
9915     hpux9*)
9916       if test "$GCC" = yes; then
9917         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9918       else
9919         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9920       fi
9921       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9922       hardcode_libdir_separator=:
9923       hardcode_direct=yes
9925       # hardcode_minus_L: Not really in the search PATH,
9926       # but as the default location of the library.
9927       hardcode_minus_L=yes
9928       export_dynamic_flag_spec='${wl}-E'
9929       ;;
9931     hpux10*)
9932       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9933         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9934       else
9935         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9936       fi
9937       if test "$with_gnu_ld" = no; then
9938         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939         hardcode_libdir_separator=:
9940         hardcode_direct=yes
9941         hardcode_direct_absolute=yes
9942         export_dynamic_flag_spec='${wl}-E'
9943         # hardcode_minus_L: Not really in the search PATH,
9944         # but as the default location of the library.
9945         hardcode_minus_L=yes
9946       fi
9947       ;;
9949     hpux11*)
9950       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9951         case $host_cpu in
9952         hppa*64*)
9953           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954           ;;
9955         ia64*)
9956           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957           ;;
9958         *)
9959           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9960           ;;
9961         esac
9962       else
9963         case $host_cpu in
9964         hppa*64*)
9965           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9966           ;;
9967         ia64*)
9968           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969           ;;
9970         *)
9971         
9972           # Older versions of the 11.00 compiler do not understand -b yet
9973           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9974           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9975 $as_echo_n "checking if $CC understands -b... " >&6; }
9976 if ${lt_cv_prog_compiler__b+:} false; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   lt_cv_prog_compiler__b=no
9980    save_LDFLAGS="$LDFLAGS"
9981    LDFLAGS="$LDFLAGS -b"
9982    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9983    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9984      # The linker can only warn and ignore the option if not recognized
9985      # So say no if there are warnings
9986      if test -s conftest.err; then
9987        # Append any errors to the config.log.
9988        cat conftest.err 1>&5
9989        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9990        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991        if diff conftest.exp conftest.er2 >/dev/null; then
9992          lt_cv_prog_compiler__b=yes
9993        fi
9994      else
9995        lt_cv_prog_compiler__b=yes
9996      fi
9997    fi
9998    $RM -r conftest*
9999    LDFLAGS="$save_LDFLAGS"
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10003 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10005 if test x"$lt_cv_prog_compiler__b" = xyes; then
10006     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10007 else
10008     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011           ;;
10012         esac
10013       fi
10014       if test "$with_gnu_ld" = no; then
10015         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10016         hardcode_libdir_separator=:
10018         case $host_cpu in
10019         hppa*64*|ia64*)
10020           hardcode_direct=no
10021           hardcode_shlibpath_var=no
10022           ;;
10023         *)
10024           hardcode_direct=yes
10025           hardcode_direct_absolute=yes
10026           export_dynamic_flag_spec='${wl}-E'
10028           # hardcode_minus_L: Not really in the search PATH,
10029           # but as the default location of the library.
10030           hardcode_minus_L=yes
10031           ;;
10032         esac
10033       fi
10034       ;;
10036     irix5* | irix6* | nonstopux*)
10037       if test "$GCC" = yes; then
10038         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'
10039         # Try to use the -exported_symbol ld option, if it does not
10040         # work, assume that -exports_file does not work either and
10041         # implicitly export all symbols.
10042         # This should be the same for all languages, so no per-tag cache variable.
10043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10044 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10045 if ${lt_cv_irix_exported_symbol+:} false; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048   save_LDFLAGS="$LDFLAGS"
10049            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10050            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h.  */
10052 int foo (void) { return 0; }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055   lt_cv_irix_exported_symbol=yes
10056 else
10057   lt_cv_irix_exported_symbol=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060     conftest$ac_exeext conftest.$ac_ext
10061            LDFLAGS="$save_LDFLAGS"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10064 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10065         if test "$lt_cv_irix_exported_symbol" = yes; then
10066           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'
10067         fi
10068       else
10069         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'
10070         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'
10071       fi
10072       archive_cmds_need_lc='no'
10073       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074       hardcode_libdir_separator=:
10075       inherit_rpath=yes
10076       link_all_deplibs=yes
10077       ;;
10079     netbsd* | netbsdelf*-gnu)
10080       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10082       else
10083         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10084       fi
10085       hardcode_libdir_flag_spec='-R$libdir'
10086       hardcode_direct=yes
10087       hardcode_shlibpath_var=no
10088       ;;
10090     newsos6)
10091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092       hardcode_direct=yes
10093       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094       hardcode_libdir_separator=:
10095       hardcode_shlibpath_var=no
10096       ;;
10098     *nto* | *qnx*)
10099       ;;
10101     openbsd*)
10102       if test -f /usr/libexec/ld.so; then
10103         hardcode_direct=yes
10104         hardcode_shlibpath_var=no
10105         hardcode_direct_absolute=yes
10106         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10109           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110           export_dynamic_flag_spec='${wl}-E'
10111         else
10112           case $host_os in
10113            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10114              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115              hardcode_libdir_flag_spec='-R$libdir'
10116              ;;
10117            *)
10118              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120              ;;
10121           esac
10122         fi
10123       else
10124         ld_shlibs=no
10125       fi
10126       ;;
10128     os2*)
10129       hardcode_libdir_flag_spec='-L$libdir'
10130       hardcode_minus_L=yes
10131       allow_undefined_flag=unsupported
10132       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10133       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134       ;;
10136     osf3*)
10137       if test "$GCC" = yes; then
10138         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139         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'
10140       else
10141         allow_undefined_flag=' -expect_unresolved \*'
10142         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'
10143       fi
10144       archive_cmds_need_lc='no'
10145       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146       hardcode_libdir_separator=:
10147       ;;
10149     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10150       if test "$GCC" = yes; then
10151         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152         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'
10153         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154       else
10155         allow_undefined_flag=' -expect_unresolved \*'
10156         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'
10157         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~
10158         $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'
10160         # Both c and cxx compiler support -rpath directly
10161         hardcode_libdir_flag_spec='-rpath $libdir'
10162       fi
10163       archive_cmds_need_lc='no'
10164       hardcode_libdir_separator=:
10165       ;;
10167     solaris*)
10168       no_undefined_flag=' -z defs'
10169       if test "$GCC" = yes; then
10170         wlarc='${wl}'
10171         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173           $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'
10174       else
10175         case `$CC -V 2>&1` in
10176         *"Compilers 5.0"*)
10177           wlarc=''
10178           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181           ;;
10182         *)
10183           wlarc='${wl}'
10184           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187           ;;
10188         esac
10189       fi
10190       hardcode_libdir_flag_spec='-R$libdir'
10191       hardcode_shlibpath_var=no
10192       case $host_os in
10193       solaris2.[0-5] | solaris2.[0-5].*) ;;
10194       *)
10195         # The compiler driver will combine and reorder linker options,
10196         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10197         # but is careful enough not to reorder.
10198         # Supported since Solaris 2.6 (maybe 2.5.1?)
10199         if test "$GCC" = yes; then
10200           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10201         else
10202           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203         fi
10204         ;;
10205       esac
10206       link_all_deplibs=yes
10207       ;;
10209     sunos4*)
10210       if test "x$host_vendor" = xsequent; then
10211         # Use $CC to link under sequent, because it throws in some extra .o
10212         # files that make .init and .fini sections work.
10213         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10214       else
10215         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10216       fi
10217       hardcode_libdir_flag_spec='-L$libdir'
10218       hardcode_direct=yes
10219       hardcode_minus_L=yes
10220       hardcode_shlibpath_var=no
10221       ;;
10223     sysv4)
10224       case $host_vendor in
10225         sni)
10226           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227           hardcode_direct=yes # is this really true???
10228         ;;
10229         siemens)
10230           ## LD is ld it makes a PLAMLIB
10231           ## CC just makes a GrossModule.
10232           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10233           reload_cmds='$CC -r -o $output$reload_objs'
10234           hardcode_direct=no
10235         ;;
10236         motorola)
10237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10239         ;;
10240       esac
10241       runpath_var='LD_RUN_PATH'
10242       hardcode_shlibpath_var=no
10243       ;;
10245     sysv4.3*)
10246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247       hardcode_shlibpath_var=no
10248       export_dynamic_flag_spec='-Bexport'
10249       ;;
10251     sysv4*MP*)
10252       if test -d /usr/nec; then
10253         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254         hardcode_shlibpath_var=no
10255         runpath_var=LD_RUN_PATH
10256         hardcode_runpath_var=yes
10257         ld_shlibs=yes
10258       fi
10259       ;;
10261     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10262       no_undefined_flag='${wl}-z,text'
10263       archive_cmds_need_lc=no
10264       hardcode_shlibpath_var=no
10265       runpath_var='LD_RUN_PATH'
10267       if test "$GCC" = yes; then
10268         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270       else
10271         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273       fi
10274       ;;
10276     sysv5* | sco3.2v5* | sco5v6*)
10277       # Note: We can NOT use -z defs as we might desire, because we do not
10278       # link with -lc, and that would cause any symbols used from libc to
10279       # always be unresolved, which means just about no library would
10280       # ever link correctly.  If we're not using GNU ld we use -z text
10281       # though, which does catch some bad symbols but isn't as heavy-handed
10282       # as -z defs.
10283       no_undefined_flag='${wl}-z,text'
10284       allow_undefined_flag='${wl}-z,nodefs'
10285       archive_cmds_need_lc=no
10286       hardcode_shlibpath_var=no
10287       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10288       hardcode_libdir_separator=':'
10289       link_all_deplibs=yes
10290       export_dynamic_flag_spec='${wl}-Bexport'
10291       runpath_var='LD_RUN_PATH'
10293       if test "$GCC" = yes; then
10294         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296       else
10297         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299       fi
10300       ;;
10302     uts4*)
10303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304       hardcode_libdir_flag_spec='-L$libdir'
10305       hardcode_shlibpath_var=no
10306       ;;
10308     *)
10309       ld_shlibs=no
10310       ;;
10311     esac
10313     if test x$host_vendor = xsni; then
10314       case $host in
10315       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10316         export_dynamic_flag_spec='${wl}-Blargedynsym'
10317         ;;
10318       esac
10319     fi
10320   fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10323 $as_echo "$ld_shlibs" >&6; }
10324 test "$ld_shlibs" = no && can_build_shared=no
10326 with_gnu_ld=$with_gnu_ld
10329     
10330     
10331     
10333     
10334     
10335     
10337     
10338     
10339     
10343 # Do we need to explicitly link libc?
10345 case "x$archive_cmds_need_lc" in
10346 x|xyes)
10347   # Assume -lc should be added
10348   archive_cmds_need_lc=yes
10350   if test "$enable_shared" = yes && test "$GCC" = yes; then
10351     case $archive_cmds in
10352     *'~'*)
10353       # FIXME: we may have to deal with multi-command sequences.
10354       ;;
10355     '$CC '*)
10356       # Test whether the compiler implicitly links with -lc since on some
10357       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10358       # to ld, don't add -lc before -lgcc.
10359       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10362   $as_echo_n "(cached) " >&6
10363 else
10364   $RM conftest*
10365         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10367         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10368   (eval $ac_compile) 2>&5
10369   ac_status=$?
10370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371   test $ac_status = 0; } 2>conftest.err; then
10372           soname=conftest
10373           lib=conftest
10374           libobjs=conftest.$ac_objext
10375           deplibs=
10376           wl=$lt_prog_compiler_wl
10377           pic_flag=$lt_prog_compiler_pic
10378           compiler_flags=-v
10379           linker_flags=-v
10380           verstring=
10381           output_objdir=.
10382           libname=conftest
10383           lt_save_allow_undefined_flag=$allow_undefined_flag
10384           allow_undefined_flag=
10385           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10386   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387   ac_status=$?
10388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389   test $ac_status = 0; }
10390           then
10391             lt_cv_archive_cmds_need_lc=no
10392           else
10393             lt_cv_archive_cmds_need_lc=yes
10394           fi
10395           allow_undefined_flag=$lt_save_allow_undefined_flag
10396         else
10397           cat conftest.err 1>&5
10398         fi
10399         $RM conftest*
10400         
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10404       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10405       ;;
10406     esac
10407   fi
10408   ;;
10409 esac
10412     
10413     
10414     
10417     
10418     
10419     
10422     
10423     
10424     
10427     
10428     
10429     
10432     
10433     
10434     
10437     
10438     
10439     
10442     
10443     
10444     
10447     
10448     
10449     
10452     
10453     
10454     
10457     
10458     
10459     
10462     
10463     
10464     
10467     
10468     
10469     
10472     
10473     
10474     
10477     
10478     
10479     
10482     
10483     
10484     
10487     
10488     
10489     
10492     
10493     
10494     
10497     
10498     
10499     
10502     
10503     
10504     
10507     
10508     
10509     
10512     
10513     
10514     
10517     
10518     
10519     
10522     
10523     
10524     
10527     
10528     
10529     
10532     
10533     
10534     
10537     
10538     
10539     
10542     
10543     
10544     
10547     
10548     
10549     
10552     
10553     
10554     
10557     
10558     
10559     
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10565 if test "$GCC" = yes; then
10566   case $host_os in
10567     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10568     *) lt_awk_arg="/^libraries:/" ;;
10569   esac
10570   case $host_os in
10571     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10572     *) lt_sed_strip_eq="s,=/,/,g" ;;
10573   esac
10574   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10575   case $lt_search_path_spec in
10576   *\;*)
10577     # if the path contains ";" then we assume it to be the separator
10578     # otherwise default to the standard path separator (i.e. ":") - it is
10579     # assumed that no part of a normal pathname contains ";" but that should
10580     # okay in the real world where ";" in dirpaths is itself problematic.
10581     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10582     ;;
10583   *)
10584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10585     ;;
10586   esac
10587   # Ok, now we have the path, separated by spaces, we can step through it
10588   # and add multilib dir if necessary.
10589   lt_tmp_lt_search_path_spec=
10590   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10591   for lt_sys_path in $lt_search_path_spec; do
10592     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10593       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10594     else
10595       test -d "$lt_sys_path" && \
10596         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10597     fi
10598   done
10599   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10600 BEGIN {RS=" "; FS="/|\n";} {
10601   lt_foo="";
10602   lt_count=0;
10603   for (lt_i = NF; lt_i > 0; lt_i--) {
10604     if ($lt_i != "" && $lt_i != ".") {
10605       if ($lt_i == "..") {
10606         lt_count++;
10607       } else {
10608         if (lt_count == 0) {
10609           lt_foo="/" $lt_i lt_foo;
10610         } else {
10611           lt_count--;
10612         }
10613       }
10614     }
10615   }
10616   if (lt_foo != "") { lt_freq[lt_foo]++; }
10617   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10619   # AWK program above erroneously prepends '/' to C:/dos/paths
10620   # for these hosts.
10621   case $host_os in
10622     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10623       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10624   esac
10625   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10626 else
10627   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10629 library_names_spec=
10630 libname_spec='lib$name'
10631 soname_spec=
10632 shrext_cmds=".so"
10633 postinstall_cmds=
10634 postuninstall_cmds=
10635 finish_cmds=
10636 finish_eval=
10637 shlibpath_var=
10638 shlibpath_overrides_runpath=unknown
10639 version_type=none
10640 dynamic_linker="$host_os ld.so"
10641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10642 need_lib_prefix=unknown
10643 hardcode_into_libs=no
10645 # when you set need_version to no, make sure it does not cause -set_version
10646 # flags to be left without arguments
10647 need_version=unknown
10649 case $host_os in
10650 aix3*)
10651   version_type=linux # correct to gnu/linux during the next big refactor
10652   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10653   shlibpath_var=LIBPATH
10655   # AIX 3 has no versioning support, so we append a major version to the name.
10656   soname_spec='${libname}${release}${shared_ext}$major'
10657   ;;
10659 aix[4-9]*)
10660   version_type=linux # correct to gnu/linux during the next big refactor
10661   need_lib_prefix=no
10662   need_version=no
10663   hardcode_into_libs=yes
10664   if test "$host_cpu" = ia64; then
10665     # AIX 5 supports IA64
10666     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10667     shlibpath_var=LD_LIBRARY_PATH
10668   else
10669     # With GCC up to 2.95.x, collect2 would create an import file
10670     # for dependence libraries.  The import file would start with
10671     # the line `#! .'.  This would cause the generated library to
10672     # depend on `.', always an invalid library.  This was fixed in
10673     # development snapshots of GCC prior to 3.0.
10674     case $host_os in
10675       aix4 | aix4.[01] | aix4.[01].*)
10676       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10677            echo ' yes '
10678            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10679         :
10680       else
10681         can_build_shared=no
10682       fi
10683       ;;
10684     esac
10685     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10686     # soname into executable. Probably we can add versioning support to
10687     # collect2, so additional links can be useful in future.
10688     if test "$aix_use_runtimelinking" = yes; then
10689       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10690       # instead of lib<name>.a to let people know that these are not
10691       # typical AIX shared libraries.
10692       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693     else
10694       # We preserve .a as extension for shared libraries through AIX4.2
10695       # and later when we are not doing run time linking.
10696       library_names_spec='${libname}${release}.a $libname.a'
10697       soname_spec='${libname}${release}${shared_ext}$major'
10698     fi
10699     shlibpath_var=LIBPATH
10700   fi
10701   ;;
10703 amigaos*)
10704   case $host_cpu in
10705   powerpc)
10706     # Since July 2007 AmigaOS4 officially supports .so libraries.
10707     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709     ;;
10710   m68k)
10711     library_names_spec='$libname.ixlibrary $libname.a'
10712     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10713     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10714     ;;
10715   esac
10716   ;;
10718 beos*)
10719   library_names_spec='${libname}${shared_ext}'
10720   dynamic_linker="$host_os ld.so"
10721   shlibpath_var=LIBRARY_PATH
10722   ;;
10724 bsdi[45]*)
10725   version_type=linux # correct to gnu/linux during the next big refactor
10726   need_version=no
10727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728   soname_spec='${libname}${release}${shared_ext}$major'
10729   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730   shlibpath_var=LD_LIBRARY_PATH
10731   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733   # the default ld.so.conf also contains /usr/contrib/lib and
10734   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735   # libtool to hard-code these into programs
10736   ;;
10738 cygwin* | mingw* | pw32* | cegcc*)
10739   version_type=windows
10740   shrext_cmds=".dll"
10741   need_version=no
10742   need_lib_prefix=no
10744   case $GCC,$cc_basename in
10745   yes,*)
10746     # gcc
10747     library_names_spec='$libname.dll.a'
10748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749     postinstall_cmds='base_file=`basename \${file}`~
10750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751       dldir=$destdir/`dirname \$dlpath`~
10752       test -d \$dldir || mkdir -p \$dldir~
10753       $install_prog $dir/$dlname \$dldir/$dlname~
10754       chmod a+x \$dldir/$dlname~
10755       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10756         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10757       fi'
10758     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10759       dlpath=$dir/\$dldll~
10760        $RM \$dlpath'
10761     shlibpath_overrides_runpath=yes
10763     case $host_os in
10764     cygwin*)
10765       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10766       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10769       ;;
10770     mingw* | cegcc*)
10771       # MinGW DLLs use traditional 'lib' prefix
10772       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773       ;;
10774     pw32*)
10775       # pw32 DLLs use 'pw' prefix rather than 'lib'
10776       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777       ;;
10778     esac
10779     dynamic_linker='Win32 ld.exe'
10780     ;;
10782   *,cl*)
10783     # Native MSVC
10784     libname_spec='$name'
10785     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786     library_names_spec='${libname}.dll.lib'
10788     case $build_os in
10789     mingw*)
10790       sys_lib_search_path_spec=
10791       lt_save_ifs=$IFS
10792       IFS=';'
10793       for lt_path in $LIB
10794       do
10795         IFS=$lt_save_ifs
10796         # Let DOS variable expansion print the short 8.3 style file name.
10797         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10798         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10799       done
10800       IFS=$lt_save_ifs
10801       # Convert to MSYS style.
10802       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10803       ;;
10804     cygwin*)
10805       # Convert to unix form, then to dos form, then back to unix form
10806       # but this time dos style (no spaces!) so that the unix form looks
10807       # like /cygdrive/c/PROGRA~1:/cygdr...
10808       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10809       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10810       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811       ;;
10812     *)
10813       sys_lib_search_path_spec="$LIB"
10814       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10815         # It is most probably a Windows format PATH.
10816         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10817       else
10818         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10819       fi
10820       # FIXME: find the short name or the path components, as spaces are
10821       # common. (e.g. "Program Files" -> "PROGRA~1")
10822       ;;
10823     esac
10825     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10826     postinstall_cmds='base_file=`basename \${file}`~
10827       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10828       dldir=$destdir/`dirname \$dlpath`~
10829       test -d \$dldir || mkdir -p \$dldir~
10830       $install_prog $dir/$dlname \$dldir/$dlname'
10831     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10832       dlpath=$dir/\$dldll~
10833        $RM \$dlpath'
10834     shlibpath_overrides_runpath=yes
10835     dynamic_linker='Win32 link.exe'
10836     ;;
10838   *)
10839     # Assume MSVC wrapper
10840     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10841     dynamic_linker='Win32 ld.exe'
10842     ;;
10843   esac
10844   # FIXME: first we should search . and the directory the executable is in
10845   shlibpath_var=PATH
10846   ;;
10848 darwin* | rhapsody*)
10849   dynamic_linker="$host_os dyld"
10850   version_type=darwin
10851   need_lib_prefix=no
10852   need_version=no
10853   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10854   soname_spec='${libname}${release}${major}$shared_ext'
10855   shlibpath_overrides_runpath=yes
10856   shlibpath_var=DYLD_LIBRARY_PATH
10857   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10859   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10860   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10861   ;;
10863 dgux*)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   need_lib_prefix=no
10866   need_version=no
10867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10868   soname_spec='${libname}${release}${shared_ext}$major'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   ;;
10872 freebsd* | dragonfly*)
10873   # DragonFly does not have aout.  When/if they implement a new
10874   # versioning mechanism, adjust this.
10875   if test -x /usr/bin/objformat; then
10876     objformat=`/usr/bin/objformat`
10877   else
10878     case $host_os in
10879     freebsd[23].*) objformat=aout ;;
10880     *) objformat=elf ;;
10881     esac
10882   fi
10883   version_type=freebsd-$objformat
10884   case $version_type in
10885     freebsd-elf*)
10886       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10887       need_version=no
10888       need_lib_prefix=no
10889       ;;
10890     freebsd-*)
10891       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10892       need_version=yes
10893       ;;
10894   esac
10895   shlibpath_var=LD_LIBRARY_PATH
10896   case $host_os in
10897   freebsd2.*)
10898     shlibpath_overrides_runpath=yes
10899     ;;
10900   freebsd3.[01]* | freebsdelf3.[01]*)
10901     shlibpath_overrides_runpath=yes
10902     hardcode_into_libs=yes
10903     ;;
10904   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10905   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10906     shlibpath_overrides_runpath=no
10907     hardcode_into_libs=yes
10908     ;;
10909   *) # from 4.6 on, and DragonFly
10910     shlibpath_overrides_runpath=yes
10911     hardcode_into_libs=yes
10912     ;;
10913   esac
10914   ;;
10916 haiku*)
10917   version_type=linux # correct to gnu/linux during the next big refactor
10918   need_lib_prefix=no
10919   need_version=no
10920   dynamic_linker="$host_os runtime_loader"
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   shlibpath_var=LIBRARY_PATH
10924   shlibpath_overrides_runpath=yes
10925   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926   hardcode_into_libs=yes
10927   ;;
10929 hpux9* | hpux10* | hpux11*)
10930   # Give a soname corresponding to the major version so that dld.sl refuses to
10931   # link against other versions.
10932   version_type=sunos
10933   need_lib_prefix=no
10934   need_version=no
10935   case $host_cpu in
10936   ia64*)
10937     shrext_cmds='.so'
10938     hardcode_into_libs=yes
10939     dynamic_linker="$host_os dld.so"
10940     shlibpath_var=LD_LIBRARY_PATH
10941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943     soname_spec='${libname}${release}${shared_ext}$major'
10944     if test "X$HPUX_IA64_MODE" = X32; then
10945       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946     else
10947       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948     fi
10949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10950     ;;
10951   hppa*64*)
10952     shrext_cmds='.sl'
10953     hardcode_into_libs=yes
10954     dynamic_linker="$host_os dld.sl"
10955     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958     soname_spec='${libname}${release}${shared_ext}$major'
10959     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961     ;;
10962   *)
10963     shrext_cmds='.sl'
10964     dynamic_linker="$host_os dld.sl"
10965     shlibpath_var=SHLIB_PATH
10966     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968     soname_spec='${libname}${release}${shared_ext}$major'
10969     ;;
10970   esac
10971   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972   postinstall_cmds='chmod 555 $lib'
10973   # or fails outright, so override atomically:
10974   install_override_mode=555
10975   ;;
10977 interix[3-9]*)
10978   version_type=linux # correct to gnu/linux during the next big refactor
10979   need_lib_prefix=no
10980   need_version=no
10981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=no
10986   hardcode_into_libs=yes
10987   ;;
10989 irix5* | irix6* | nonstopux*)
10990   case $host_os in
10991     nonstopux*) version_type=nonstopux ;;
10992     *)
10993         if test "$lt_cv_prog_gnu_ld" = yes; then
10994                 version_type=linux # correct to gnu/linux during the next big refactor
10995         else
10996                 version_type=irix
10997         fi ;;
10998   esac
10999   need_lib_prefix=no
11000   need_version=no
11001   soname_spec='${libname}${release}${shared_ext}$major'
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003   case $host_os in
11004   irix5* | nonstopux*)
11005     libsuff= shlibsuff=
11006     ;;
11007   *)
11008     case $LD in # libtool.m4 will add one of these switches to LD
11009     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010       libsuff= shlibsuff= libmagic=32-bit;;
11011     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012       libsuff=32 shlibsuff=N32 libmagic=N32;;
11013     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015     *) libsuff= shlibsuff= libmagic=never-match;;
11016     esac
11017     ;;
11018   esac
11019   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020   shlibpath_overrides_runpath=no
11021   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023   hardcode_into_libs=yes
11024   ;;
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11028   dynamic_linker=no
11029   ;;
11031 # This must be glibc/ELF.
11032 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11033   version_type=linux # correct to gnu/linux during the next big refactor
11034   need_lib_prefix=no
11035   need_version=no
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   soname_spec='${libname}${release}${shared_ext}$major'
11038   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039   shlibpath_var=LD_LIBRARY_PATH
11040   shlibpath_overrides_runpath=no
11042   # Some binutils ld are patched to set DT_RUNPATH
11043   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   lt_cv_shlibpath_overrides_runpath=no
11047     save_LDFLAGS=$LDFLAGS
11048     save_libdir=$libdir
11049     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h.  */
11055 main ()
11058   ;
11059   return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064   lt_cv_shlibpath_overrides_runpath=yes
11067 rm -f core conftest.err conftest.$ac_objext \
11068     conftest$ac_exeext conftest.$ac_ext
11069     LDFLAGS=$save_LDFLAGS
11070     libdir=$save_libdir
11071     
11074   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11076   # This implies no fast_install, which is unacceptable.
11077   # Some rework will be needed to allow for fast_install
11078   # before this can be enabled.
11079   hardcode_into_libs=yes
11081   # Append ld.so.conf contents to the search path
11082   if test -f /etc/ld.so.conf; then
11083     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' ' '`
11084     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11085   fi
11087   # We used to test for /lib/ld.so.1 and disable shared libraries on
11088   # powerpc, because MkLinux only supported shared libraries with the
11089   # GNU dynamic linker.  Since this was broken with cross compilers,
11090   # most powerpc-linux boxes support dynamic linking these days and
11091   # people can always --disable-shared, the test was removed, and we
11092   # assume the GNU/Linux dynamic linker is in use.
11093   dynamic_linker='GNU/Linux ld.so'
11094   ;;
11096 netbsdelf*-gnu)
11097   version_type=linux
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11101   soname_spec='${libname}${release}${shared_ext}$major'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=no
11104   hardcode_into_libs=yes
11105   dynamic_linker='NetBSD ld.elf_so'
11106   ;;
11108 netbsd*)
11109   version_type=sunos
11110   need_lib_prefix=no
11111   need_version=no
11112   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115     dynamic_linker='NetBSD (a.out) ld.so'
11116   else
11117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118     soname_spec='${libname}${release}${shared_ext}$major'
11119     dynamic_linker='NetBSD ld.elf_so'
11120   fi
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=yes
11123   hardcode_into_libs=yes
11124   ;;
11126 newsos6)
11127   version_type=linux # correct to gnu/linux during the next big refactor
11128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129   shlibpath_var=LD_LIBRARY_PATH
11130   shlibpath_overrides_runpath=yes
11131   ;;
11133 *nto* | *qnx*)
11134   version_type=qnx
11135   need_lib_prefix=no
11136   need_version=no
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138   soname_spec='${libname}${release}${shared_ext}$major'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   shlibpath_overrides_runpath=no
11141   hardcode_into_libs=yes
11142   dynamic_linker='ldqnx.so'
11143   ;;
11145 openbsd*)
11146   version_type=sunos
11147   sys_lib_dlsearch_path_spec="/usr/lib"
11148   need_lib_prefix=no
11149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11150   case $host_os in
11151     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11152     *)                          need_version=no  ;;
11153   esac
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156   shlibpath_var=LD_LIBRARY_PATH
11157   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11158     case $host_os in
11159       openbsd2.[89] | openbsd2.[89].*)
11160         shlibpath_overrides_runpath=no
11161         ;;
11162       *)
11163         shlibpath_overrides_runpath=yes
11164         ;;
11165       esac
11166   else
11167     shlibpath_overrides_runpath=yes
11168   fi
11169   ;;
11171 os2*)
11172   libname_spec='$name'
11173   shrext_cmds=".dll"
11174   need_lib_prefix=no
11175   library_names_spec='$libname${shared_ext} $libname.a'
11176   dynamic_linker='OS/2 ld.exe'
11177   shlibpath_var=LIBPATH
11178   ;;
11180 osf3* | osf4* | osf5*)
11181   version_type=osf
11182   need_lib_prefix=no
11183   need_version=no
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186   shlibpath_var=LD_LIBRARY_PATH
11187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11189   ;;
11191 rdos*)
11192   dynamic_linker=no
11193   ;;
11195 solaris*)
11196   version_type=linux # correct to gnu/linux during the next big refactor
11197   need_lib_prefix=no
11198   need_version=no
11199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200   soname_spec='${libname}${release}${shared_ext}$major'
11201   shlibpath_var=LD_LIBRARY_PATH
11202   shlibpath_overrides_runpath=yes
11203   hardcode_into_libs=yes
11204   # ldd complains unless libraries are executable
11205   postinstall_cmds='chmod +x $lib'
11206   ;;
11208 sunos4*)
11209   version_type=sunos
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=yes
11214   if test "$with_gnu_ld" = yes; then
11215     need_lib_prefix=no
11216   fi
11217   need_version=yes
11218   ;;
11220 sysv4 | sysv4.3*)
11221   version_type=linux # correct to gnu/linux during the next big refactor
11222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223   soname_spec='${libname}${release}${shared_ext}$major'
11224   shlibpath_var=LD_LIBRARY_PATH
11225   case $host_vendor in
11226     sni)
11227       shlibpath_overrides_runpath=no
11228       need_lib_prefix=no
11229       runpath_var=LD_RUN_PATH
11230       ;;
11231     siemens)
11232       need_lib_prefix=no
11233       ;;
11234     motorola)
11235       need_lib_prefix=no
11236       need_version=no
11237       shlibpath_overrides_runpath=no
11238       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11239       ;;
11240   esac
11241   ;;
11243 sysv4*MP*)
11244   if test -d /usr/nec ;then
11245     version_type=linux # correct to gnu/linux during the next big refactor
11246     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11247     soname_spec='$libname${shared_ext}.$major'
11248     shlibpath_var=LD_LIBRARY_PATH
11249   fi
11250   ;;
11252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11253   version_type=freebsd-elf
11254   need_lib_prefix=no
11255   need_version=no
11256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257   soname_spec='${libname}${release}${shared_ext}$major'
11258   shlibpath_var=LD_LIBRARY_PATH
11259   shlibpath_overrides_runpath=yes
11260   hardcode_into_libs=yes
11261   if test "$with_gnu_ld" = yes; then
11262     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11263   else
11264     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11265     case $host_os in
11266       sco3.2v5*)
11267         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11268         ;;
11269     esac
11270   fi
11271   sys_lib_dlsearch_path_spec='/usr/lib'
11272   ;;
11274 tpf*)
11275   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11276   version_type=linux # correct to gnu/linux during the next big refactor
11277   need_lib_prefix=no
11278   need_version=no
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=no
11282   hardcode_into_libs=yes
11283   ;;
11285 uts4*)
11286   version_type=linux # correct to gnu/linux during the next big refactor
11287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288   soname_spec='${libname}${release}${shared_ext}$major'
11289   shlibpath_var=LD_LIBRARY_PATH
11290   ;;
11293   dynamic_linker=no
11294   ;;
11295 esac
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11297 $as_echo "$dynamic_linker" >&6; }
11298 test "$dynamic_linker" = no && can_build_shared=no
11300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301 if test "$GCC" = yes; then
11302   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11306   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11309   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11313     
11314     
11315     
11318     
11319     
11320     
11323     
11324     
11325     
11328     
11329     
11330     
11333     
11334     
11335     
11338     
11339     
11340     
11343     
11344     
11345     
11348     
11349     
11350     
11353     
11354     
11355     
11358     
11359     
11360     
11363     
11364     
11365     
11368     
11369     
11370     
11373     
11374     
11375     
11378     
11379     
11380     
11383     
11384     
11385     
11388     
11389     
11390     
11393     
11394     
11395     
11398     
11399     
11400     
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11405 hardcode_action=
11406 if test -n "$hardcode_libdir_flag_spec" ||
11407    test -n "$runpath_var" ||
11408    test "X$hardcode_automatic" = "Xyes" ; then
11410   # We can hardcode non-existent directories.
11411   if test "$hardcode_direct" != no &&
11412      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413      # have to relink, otherwise we might link with an installed library
11414      # when we should be linking with a yet-to-be-installed one
11415      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416      test "$hardcode_minus_L" != no; then
11417     # Linking always hardcodes the temporary library directory.
11418     hardcode_action=relink
11419   else
11420     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421     hardcode_action=immediate
11422   fi
11423 else
11424   # We cannot hardcode anything, or else we can only hardcode existing
11425   # directories.
11426   hardcode_action=unsupported
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429 $as_echo "$hardcode_action" >&6; }
11431 if test "$hardcode_action" = relink ||
11432    test "$inherit_rpath" = yes; then
11433   # Fast installation is not supported
11434   enable_fast_install=no
11435 elif test "$shlibpath_overrides_runpath" = yes ||
11436      test "$enable_shared" = no; then
11437   # Fast installation is not necessary
11438   enable_fast_install=needless
11441     
11442     
11443     
11446   if test "x$enable_dlopen" != xyes; then
11447   enable_dlopen=unknown
11448   enable_dlopen_self=unknown
11449   enable_dlopen_self_static=unknown
11450 else
11451   lt_cv_dlopen=no
11452   lt_cv_dlopen_libs=
11454   case $host_os in
11455   beos*)
11456     lt_cv_dlopen="load_add_on"
11457     lt_cv_dlopen_libs=
11458     lt_cv_dlopen_self=yes
11459     ;;
11461   mingw* | pw32* | cegcc*)
11462     lt_cv_dlopen="LoadLibrary"
11463     lt_cv_dlopen_libs=
11464     ;;
11466   cygwin*)
11467     lt_cv_dlopen="dlopen"
11468     lt_cv_dlopen_libs=
11469     ;;
11471   darwin*)
11472   # if libdl is installed we need to link against it
11473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-ldl  $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h.  */
11483 /* Override any GCC internal prototype to avoid an error.
11484    Use char because int might match the return type of a GCC
11485    builtin and then its argument prototype would still apply.  */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char dlopen ();
11491 main ()
11493 return dlopen ();
11494   ;
11495   return 0;
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499   ac_cv_lib_dl_dlopen=yes
11500 else
11501   ac_cv_lib_dl_dlopen=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504     conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511 else
11512   
11513     lt_cv_dlopen="dyld"
11514     lt_cv_dlopen_libs=
11515     lt_cv_dlopen_self=yes
11516     
11519     ;;
11521   *)
11522     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11523 if test "x$ac_cv_func_shl_load" = xyes; then :
11524   lt_cv_dlopen="shl_load"
11525 else
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11527 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11528 if ${ac_cv_lib_dld_shl_load+:} false; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531   ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-ldld  $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h.  */
11536 /* Override any GCC internal prototype to avoid an error.
11537    Use char because int might match the return type of a GCC
11538    builtin and then its argument prototype would still apply.  */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char shl_load ();
11544 main ()
11546 return shl_load ();
11547   ;
11548   return 0;
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552   ac_cv_lib_dld_shl_load=yes
11553 else
11554   ac_cv_lib_dld_shl_load=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11561 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11562 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11563   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11564 else
11565   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11566 if test "x$ac_cv_func_dlopen" = xyes; then :
11567   lt_cv_dlopen="dlopen"
11568 else
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11571 if ${ac_cv_lib_dl_dlopen+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-ldl  $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h.  */
11579 /* Override any GCC internal prototype to avoid an error.
11580    Use char because int might match the return type of a GCC
11581    builtin and then its argument prototype would still apply.  */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char dlopen ();
11587 main ()
11589 return dlopen ();
11590   ;
11591   return 0;
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595   ac_cv_lib_dl_dlopen=yes
11596 else
11597   ac_cv_lib_dl_dlopen=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600     conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11607 else
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11609 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11610 if ${ac_cv_lib_svld_dlopen+:} false; then :
11611   $as_echo_n "(cached) " >&6
11612 else
11613   ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-lsvld  $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h.  */
11618 /* Override any GCC internal prototype to avoid an error.
11619    Use char because int might match the return type of a GCC
11620    builtin and then its argument prototype would still apply.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char dlopen ();
11626 main ()
11628 return dlopen ();
11629   ;
11630   return 0;
11632 _ACEOF
11633 if ac_fn_c_try_link "$LINENO"; then :
11634   ac_cv_lib_svld_dlopen=yes
11635 else
11636   ac_cv_lib_svld_dlopen=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639     conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11643 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11644 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11645   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11646 else
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11649 if ${ac_cv_lib_dld_dld_link+:} false; then :
11650   $as_echo_n "(cached) " >&6
11651 else
11652   ac_check_lib_save_LIBS=$LIBS
11653 LIBS="-ldld  $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h.  */
11657 /* Override any GCC internal prototype to avoid an error.
11658    Use char because int might match the return type of a GCC
11659    builtin and then its argument prototype would still apply.  */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char dld_link ();
11665 main ()
11667 return dld_link ();
11668   ;
11669   return 0;
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11673   ac_cv_lib_dld_dld_link=yes
11674 else
11675   ac_cv_lib_dld_dld_link=no
11677 rm -f core conftest.err conftest.$ac_objext \
11678     conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11683 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11684   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11687               
11690             
11693           
11696         
11699       
11702     ;;
11703   esac
11705   if test "x$lt_cv_dlopen" != xno; then
11706     enable_dlopen=yes
11707   else
11708     enable_dlopen=no
11709   fi
11711   case $lt_cv_dlopen in
11712   dlopen)
11713     save_CPPFLAGS="$CPPFLAGS"
11714     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11716     save_LDFLAGS="$LDFLAGS"
11717     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11719     save_LIBS="$LIBS"
11720     LIBS="$lt_cv_dlopen_libs $LIBS"
11722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11723 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11724 if ${lt_cv_dlopen_self+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727           if test "$cross_compiling" = yes; then :
11728   lt_cv_dlopen_self=cross
11729 else
11730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731   lt_status=$lt_dlunknown
11732   cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11736 #if HAVE_DLFCN_H
11737 #include <dlfcn.h>
11738 #endif
11740 #include <stdio.h>
11742 #ifdef RTLD_GLOBAL
11743 #  define LT_DLGLOBAL           RTLD_GLOBAL
11744 #else
11745 #  ifdef DL_GLOBAL
11746 #    define LT_DLGLOBAL         DL_GLOBAL
11747 #  else
11748 #    define LT_DLGLOBAL         0
11749 #  endif
11750 #endif
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753    find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11755 #  ifdef RTLD_LAZY
11756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11757 #  else
11758 #    ifdef DL_LAZY
11759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11760 #    else
11761 #      ifdef RTLD_NOW
11762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11763 #      else
11764 #        ifdef DL_NOW
11765 #          define LT_DLLAZY_OR_NOW      DL_NOW
11766 #        else
11767 #          define LT_DLLAZY_OR_NOW      0
11768 #        endif
11769 #      endif
11770 #    endif
11771 #  endif
11772 #endif
11774 /* When -fvisbility=hidden is used, assume the code has been annotated
11775    correspondingly for the symbols needed.  */
11776 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11778 #endif
11780 int fnord () { return 42; }
11781 int main ()
11783   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784   int status = $lt_dlunknown;
11786   if (self)
11787     {
11788       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11789       else
11790         {
11791           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11792           else puts (dlerror ());
11793         }
11794       /* dlclose (self); */
11795     }
11796   else
11797     puts (dlerror ());
11799   return status;
11801 _LT_EOF
11802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803   (eval $ac_link) 2>&5
11804   ac_status=$?
11805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807     (./conftest; exit; ) >&5 2>/dev/null
11808     lt_status=$?
11809     case x$lt_status in
11810       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11813     esac
11814   else :
11815     # compilation failed
11816     lt_cv_dlopen_self=no
11817   fi
11819 rm -fr conftest*
11821     
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824 $as_echo "$lt_cv_dlopen_self" >&6; }
11826     if test "x$lt_cv_dlopen_self" = xyes; then
11827       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11830 if ${lt_cv_dlopen_self_static+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833           if test "$cross_compiling" = yes; then :
11834   lt_cv_dlopen_self_static=cross
11835 else
11836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837   lt_status=$lt_dlunknown
11838   cat > conftest.$ac_ext <<_LT_EOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11842 #if HAVE_DLFCN_H
11843 #include <dlfcn.h>
11844 #endif
11846 #include <stdio.h>
11848 #ifdef RTLD_GLOBAL
11849 #  define LT_DLGLOBAL           RTLD_GLOBAL
11850 #else
11851 #  ifdef DL_GLOBAL
11852 #    define LT_DLGLOBAL         DL_GLOBAL
11853 #  else
11854 #    define LT_DLGLOBAL         0
11855 #  endif
11856 #endif
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859    find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11861 #  ifdef RTLD_LAZY
11862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11863 #  else
11864 #    ifdef DL_LAZY
11865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11866 #    else
11867 #      ifdef RTLD_NOW
11868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11869 #      else
11870 #        ifdef DL_NOW
11871 #          define LT_DLLAZY_OR_NOW      DL_NOW
11872 #        else
11873 #          define LT_DLLAZY_OR_NOW      0
11874 #        endif
11875 #      endif
11876 #    endif
11877 #  endif
11878 #endif
11880 /* When -fvisbility=hidden is used, assume the code has been annotated
11881    correspondingly for the symbols needed.  */
11882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883 int fnord () __attribute__((visibility("default")));
11884 #endif
11886 int fnord () { return 42; }
11887 int main ()
11889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890   int status = $lt_dlunknown;
11892   if (self)
11893     {
11894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11895       else
11896         {
11897           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11898           else puts (dlerror ());
11899         }
11900       /* dlclose (self); */
11901     }
11902   else
11903     puts (dlerror ());
11905   return status;
11907 _LT_EOF
11908   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909   (eval $ac_link) 2>&5
11910   ac_status=$?
11911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913     (./conftest; exit; ) >&5 2>/dev/null
11914     lt_status=$?
11915     case x$lt_status in
11916       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11919     esac
11920   else :
11921     # compilation failed
11922     lt_cv_dlopen_self_static=no
11923   fi
11925 rm -fr conftest*
11927       
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11930 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11931     fi
11933     CPPFLAGS="$save_CPPFLAGS"
11934     LDFLAGS="$save_LDFLAGS"
11935     LIBS="$save_LIBS"
11936     ;;
11937   esac
11939   case $lt_cv_dlopen_self in
11940   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941   *) enable_dlopen_self=unknown ;;
11942   esac
11944   case $lt_cv_dlopen_self_static in
11945   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946   *) enable_dlopen_self_static=unknown ;;
11947   esac
11950     
11951     
11952     
11955     
11956     
11957     
11960     
11961     
11962     
11965   
11966 striplib=
11967 old_striplib=
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11969 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11970 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11971   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11972   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11975 else
11976 # FIXME - insert some real tests, host_os isn't really good enough
11977   case $host_os in
11978   darwin*)
11979     if test -n "$STRIP" ; then
11980       striplib="$STRIP -x"
11981       old_striplib="$STRIP -S"
11982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11984     else
11985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987     fi
11988     ;;
11989   *)
11990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992     ;;
11993   esac
11996     
11997     
11998     
12001     
12002     
12003     
12007   # Report which library types will actually be built
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12009 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12011 $as_echo "$can_build_shared" >&6; }
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12014 $as_echo_n "checking whether to build shared libraries... " >&6; }
12015   test "$can_build_shared" = "no" && enable_shared=no
12017   # On AIX, shared libraries and static libraries use the same namespace, and
12018   # are all built from PIC.
12019   case $host_os in
12020   aix3*)
12021     test "$enable_shared" = yes && enable_static=no
12022     if test -n "$RANLIB"; then
12023       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024       postinstall_cmds='$RANLIB $lib'
12025     fi
12026     ;;
12028   aix[4-9]*)
12029     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030       test "$enable_shared" = yes && enable_static=no
12031     fi
12032     ;;
12033   esac
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035 $as_echo "$enable_shared" >&6; }
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038 $as_echo_n "checking whether to build static libraries... " >&6; }
12039   # Make sure either enable_shared or enable_static is yes.
12040   test "$enable_shared" = yes || enable_static=yes
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042 $as_echo "$enable_static" >&6; }
12044   
12048 ac_ext=c
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054 CC="$lt_save_CC"
12063        
12064        
12070         ac_config_commands="$ac_config_commands libtool"
12075 # Only expand once:
12081  if test "$enable_libevent_regress" = "yes"; then
12082   BUILD_REGRESS_TRUE=
12083   BUILD_REGRESS_FALSE='#'
12084 else
12085   BUILD_REGRESS_TRUE='#'
12086   BUILD_REGRESS_FALSE=
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12091 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12092 if ${ac_cv_search_inet_ntoa+:} false; then :
12093   $as_echo_n "(cached) " >&6
12094 else
12095   ac_func_search_save_LIBS=$LIBS
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h.  */
12099 /* Override any GCC internal prototype to avoid an error.
12100    Use char because int might match the return type of a GCC
12101    builtin and then its argument prototype would still apply.  */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char inet_ntoa ();
12107 main ()
12109 return inet_ntoa ();
12110   ;
12111   return 0;
12113 _ACEOF
12114 for ac_lib in '' nsl; do
12115   if test -z "$ac_lib"; then
12116     ac_res="none required"
12117   else
12118     ac_res=-l$ac_lib
12119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12120   fi
12121   if ac_fn_c_try_link "$LINENO"; then :
12122   ac_cv_search_inet_ntoa=$ac_res
12124 rm -f core conftest.err conftest.$ac_objext \
12125     conftest$ac_exeext
12126   if ${ac_cv_search_inet_ntoa+:} false; then :
12127   break
12129 done
12130 if ${ac_cv_search_inet_ntoa+:} false; then :
12131   
12132 else
12133   ac_cv_search_inet_ntoa=no
12135 rm conftest.$ac_ext
12136 LIBS=$ac_func_search_save_LIBS
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12139 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12140 ac_res=$ac_cv_search_inet_ntoa
12141 if test "$ac_res" != no; then :
12142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12143   
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12147 $as_echo_n "checking for library containing socket... " >&6; }
12148 if ${ac_cv_search_socket+:} false; then :
12149   $as_echo_n "(cached) " >&6
12150 else
12151   ac_func_search_save_LIBS=$LIBS
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h.  */
12155 /* Override any GCC internal prototype to avoid an error.
12156    Use char because int might match the return type of a GCC
12157    builtin and then its argument prototype would still apply.  */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char socket ();
12163 main ()
12165 return socket ();
12166   ;
12167   return 0;
12169 _ACEOF
12170 for ac_lib in '' socket; do
12171   if test -z "$ac_lib"; then
12172     ac_res="none required"
12173   else
12174     ac_res=-l$ac_lib
12175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12176   fi
12177   if ac_fn_c_try_link "$LINENO"; then :
12178   ac_cv_search_socket=$ac_res
12180 rm -f core conftest.err conftest.$ac_objext \
12181     conftest$ac_exeext
12182   if ${ac_cv_search_socket+:} false; then :
12183   break
12185 done
12186 if ${ac_cv_search_socket+:} false; then :
12187   
12188 else
12189   ac_cv_search_socket=no
12191 rm conftest.$ac_ext
12192 LIBS=$ac_func_search_save_LIBS
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12195 $as_echo "$ac_cv_search_socket" >&6; }
12196 ac_res=$ac_cv_search_socket
12197 if test "$ac_res" != no; then :
12198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12199   
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12203 $as_echo_n "checking for library containing inet_aton... " >&6; }
12204 if ${ac_cv_search_inet_aton+:} false; then :
12205   $as_echo_n "(cached) " >&6
12206 else
12207   ac_func_search_save_LIBS=$LIBS
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h.  */
12211 /* Override any GCC internal prototype to avoid an error.
12212    Use char because int might match the return type of a GCC
12213    builtin and then its argument prototype would still apply.  */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 char inet_aton ();
12219 main ()
12221 return inet_aton ();
12222   ;
12223   return 0;
12225 _ACEOF
12226 for ac_lib in '' resolv; do
12227   if test -z "$ac_lib"; then
12228     ac_res="none required"
12229   else
12230     ac_res=-l$ac_lib
12231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12232   fi
12233   if ac_fn_c_try_link "$LINENO"; then :
12234   ac_cv_search_inet_aton=$ac_res
12236 rm -f core conftest.err conftest.$ac_objext \
12237     conftest$ac_exeext
12238   if ${ac_cv_search_inet_aton+:} false; then :
12239   break
12241 done
12242 if ${ac_cv_search_inet_aton+:} false; then :
12243   
12244 else
12245   ac_cv_search_inet_aton=no
12247 rm conftest.$ac_ext
12248 LIBS=$ac_func_search_save_LIBS
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12251 $as_echo "$ac_cv_search_inet_aton" >&6; }
12252 ac_res=$ac_cv_search_inet_aton
12253 if test "$ac_res" != no; then :
12254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12255   
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12259 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12260 if ${ac_cv_search_clock_gettime+:} false; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   ac_func_search_save_LIBS=$LIBS
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h.  */
12267 /* Override any GCC internal prototype to avoid an error.
12268    Use char because int might match the return type of a GCC
12269    builtin and then its argument prototype would still apply.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 char clock_gettime ();
12275 main ()
12277 return clock_gettime ();
12278   ;
12279   return 0;
12281 _ACEOF
12282 for ac_lib in '' rt; do
12283   if test -z "$ac_lib"; then
12284     ac_res="none required"
12285   else
12286     ac_res=-l$ac_lib
12287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12288   fi
12289   if ac_fn_c_try_link "$LINENO"; then :
12290   ac_cv_search_clock_gettime=$ac_res
12292 rm -f core conftest.err conftest.$ac_objext \
12293     conftest$ac_exeext
12294   if ${ac_cv_search_clock_gettime+:} false; then :
12295   break
12297 done
12298 if ${ac_cv_search_clock_gettime+:} false; then :
12299   
12300 else
12301   ac_cv_search_clock_gettime=no
12303 rm conftest.$ac_ext
12304 LIBS=$ac_func_search_save_LIBS
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12307 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12308 ac_res=$ac_cv_search_clock_gettime
12309 if test "$ac_res" != no; then :
12310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12311   
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12315 $as_echo_n "checking for library containing sendfile... " >&6; }
12316 if ${ac_cv_search_sendfile+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319   ac_func_search_save_LIBS=$LIBS
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h.  */
12323 /* Override any GCC internal prototype to avoid an error.
12324    Use char because int might match the return type of a GCC
12325    builtin and then its argument prototype would still apply.  */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char sendfile ();
12331 main ()
12333 return sendfile ();
12334   ;
12335   return 0;
12337 _ACEOF
12338 for ac_lib in '' sendfile; do
12339   if test -z "$ac_lib"; then
12340     ac_res="none required"
12341   else
12342     ac_res=-l$ac_lib
12343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12344   fi
12345   if ac_fn_c_try_link "$LINENO"; then :
12346   ac_cv_search_sendfile=$ac_res
12348 rm -f core conftest.err conftest.$ac_objext \
12349     conftest$ac_exeext
12350   if ${ac_cv_search_sendfile+:} false; then :
12351   break
12353 done
12354 if ${ac_cv_search_sendfile+:} false; then :
12355   
12356 else
12357   ac_cv_search_sendfile=no
12359 rm conftest.$ac_ext
12360 LIBS=$ac_func_search_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12363 $as_echo "$ac_cv_search_sendfile" >&6; }
12364 ac_res=$ac_cv_search_sendfile
12365 if test "$ac_res" != no; then :
12366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12367   
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12372 $as_echo_n "checking for WIN32... " >&6; }
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12377 main ()
12380 #ifndef WIN32
12381 die horribly
12382 #endif
12383         
12384   ;
12385   return 0;
12387 _ACEOF
12388 if ac_fn_c_try_compile "$LINENO"; then :
12389   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12391 else
12392   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12398 $as_echo_n "checking for CYGWIN... " >&6; }
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h.  */
12403 main ()
12406 #ifndef __CYGWIN__
12407 die horribly
12408 #endif
12409         
12410   ;
12411   return 0;
12413 _ACEOF
12414 if ac_fn_c_try_compile "$LINENO"; then :
12415   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12417 else
12418   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 for ac_header in zlib.h
12424 do :
12425   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12426 if test "x$ac_cv_header_zlib_h" = xyes; then :
12427   cat >>confdefs.h <<_ACEOF
12428 @%:@define HAVE_ZLIB_H 1
12429 _ACEOF
12433 done
12436 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12437 save_LIBS="$LIBS"
12438 LIBS=""
12439 ZLIB_LIBS=""
12440 have_zlib=no
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12442 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12443 if ${ac_cv_search_inflateEnd+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   ac_func_search_save_LIBS=$LIBS
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h.  */
12450 /* Override any GCC internal prototype to avoid an error.
12451    Use char because int might match the return type of a GCC
12452    builtin and then its argument prototype would still apply.  */
12453 #ifdef __cplusplus
12454 extern "C"
12455 #endif
12456 char inflateEnd ();
12458 main ()
12460 return inflateEnd ();
12461   ;
12462   return 0;
12464 _ACEOF
12465 for ac_lib in '' z; do
12466   if test -z "$ac_lib"; then
12467     ac_res="none required"
12468   else
12469     ac_res=-l$ac_lib
12470     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12471   fi
12472   if ac_fn_c_try_link "$LINENO"; then :
12473   ac_cv_search_inflateEnd=$ac_res
12475 rm -f core conftest.err conftest.$ac_objext \
12476     conftest$ac_exeext
12477   if ${ac_cv_search_inflateEnd+:} false; then :
12478   break
12480 done
12481 if ${ac_cv_search_inflateEnd+:} false; then :
12482   
12483 else
12484   ac_cv_search_inflateEnd=no
12486 rm conftest.$ac_ext
12487 LIBS=$ac_func_search_save_LIBS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12490 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12491 ac_res=$ac_cv_search_inflateEnd
12492 if test "$ac_res" != no; then :
12493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12494   have_zlib=yes
12495         ZLIB_LIBS="$LIBS"
12496         
12497 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12501 LIBS="$save_LIBS"
12504  if test "$have_zlib" = "yes"; then
12505   ZLIB_REGRESS_TRUE=
12506   ZLIB_REGRESS_FALSE='#'
12507 else
12508   ZLIB_REGRESS_TRUE='#'
12509   ZLIB_REGRESS_FALSE=
12513 if test "$bwin32" = true; then
12514   EV_LIB_WS32=-lws2_32
12515   EV_LIB_GDI=-lgdi32
12516 else
12517   EV_LIB_WS32=
12518   EV_LIB_GDI=
12524 for ac_header in openssl/bio.h
12525 do :
12526   ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12527 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12528   cat >>confdefs.h <<_ACEOF
12529 @%:@define HAVE_OPENSSL_BIO_H 1
12530 _ACEOF
12534 done
12537 if test "$enable_openssl" = "yes"; then
12538 save_LIBS="$LIBS"
12539 LIBS=""
12540 OPENSSL_LIBS=""
12541 have_openssl=no
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12543 $as_echo_n "checking for library containing SSL_new... " >&6; }
12544 if ${ac_cv_search_SSL_new+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   ac_func_search_save_LIBS=$LIBS
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h.  */
12551 /* Override any GCC internal prototype to avoid an error.
12552    Use char because int might match the return type of a GCC
12553    builtin and then its argument prototype would still apply.  */
12554 #ifdef __cplusplus
12555 extern "C"
12556 #endif
12557 char SSL_new ();
12559 main ()
12561 return SSL_new ();
12562   ;
12563   return 0;
12565 _ACEOF
12566 for ac_lib in '' ssl; do
12567   if test -z "$ac_lib"; then
12568     ac_res="none required"
12569   else
12570     ac_res=-l$ac_lib
12571     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12572   fi
12573   if ac_fn_c_try_link "$LINENO"; then :
12574   ac_cv_search_SSL_new=$ac_res
12576 rm -f core conftest.err conftest.$ac_objext \
12577     conftest$ac_exeext
12578   if ${ac_cv_search_SSL_new+:} false; then :
12579   break
12581 done
12582 if ${ac_cv_search_SSL_new+:} false; then :
12583   
12584 else
12585   ac_cv_search_SSL_new=no
12587 rm conftest.$ac_ext
12588 LIBS=$ac_func_search_save_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12591 $as_echo "$ac_cv_search_SSL_new" >&6; }
12592 ac_res=$ac_cv_search_SSL_new
12593 if test "$ac_res" != no; then :
12594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12595   have_openssl=yes
12596         OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12597         
12598 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12600 else
12601   have_openssl=no
12604 LIBS="$save_LIBS"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12609 $as_echo_n "checking for ANSI C header files... " >&6; }
12610 if ${ac_cv_header_stdc+:} false; then :
12611   $as_echo_n "(cached) " >&6
12612 else
12613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h.  */
12615 #include <stdlib.h>
12616 #include <stdarg.h>
12617 #include <string.h>
12618 #include <float.h>
12621 main ()
12624   ;
12625   return 0;
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629   ac_cv_header_stdc=yes
12630 else
12631   ac_cv_header_stdc=no
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 if test $ac_cv_header_stdc = yes; then
12636   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639 #include <string.h>
12641 _ACEOF
12642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12643   $EGREP "memchr" >/dev/null 2>&1; then :
12644   
12645 else
12646   ac_cv_header_stdc=no
12648 rm -f conftest*
12652 if test $ac_cv_header_stdc = yes; then
12653   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h.  */
12656 #include <stdlib.h>
12658 _ACEOF
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660   $EGREP "free" >/dev/null 2>&1; then :
12661   
12662 else
12663   ac_cv_header_stdc=no
12665 rm -f conftest*
12669 if test $ac_cv_header_stdc = yes; then
12670   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12671   if test "$cross_compiling" = yes; then :
12672   :
12673 else
12674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h.  */
12676 #include <ctype.h>
12677 #include <stdlib.h>
12678 #if ((' ' & 0x0FF) == 0x020)
12679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12681 #else
12682 # define ISLOWER(c) \
12683                    (('a' <= (c) && (c) <= 'i') \
12684                      || ('j' <= (c) && (c) <= 'r') \
12685                      || ('s' <= (c) && (c) <= 'z'))
12686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12687 #endif
12689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12691 main ()
12693   int i;
12694   for (i = 0; i < 256; i++)
12695     if (XOR (islower (i), ISLOWER (i))
12696         || toupper (i) != TOUPPER (i))
12697       return 2;
12698   return 0;
12700 _ACEOF
12701 if ac_fn_c_try_run "$LINENO"; then :
12702   
12703 else
12704   ac_cv_header_stdc=no
12706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12707   conftest.$ac_objext conftest.beam conftest.$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12713 $as_echo "$ac_cv_header_stdc" >&6; }
12714 if test $ac_cv_header_stdc = yes; then
12715   
12716 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12720 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12721 do :
12722   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12725   cat >>confdefs.h <<_ACEOF
12726 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12727 _ACEOF
12731 done
12733 for ac_header in sys/stat.h
12734 do :
12735   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12736 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12737   cat >>confdefs.h <<_ACEOF
12738 @%:@define HAVE_SYS_STAT_H 1
12739 _ACEOF
12743 done
12745 for ac_header in sys/sysctl.h
12746 do :
12747   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12748 #ifdef HAVE_SYS_PARAM_H
12749 #include <sys/param.h>
12750 #endif
12753 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12754   cat >>confdefs.h <<_ACEOF
12755 @%:@define HAVE_SYS_SYSCTL_H 1
12756 _ACEOF
12760 done
12762 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12764 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12765         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h.  */
12768 #include <sys/queue.h>
12769 #ifdef TAILQ_FOREACH
12770  yes
12771 #endif
12773 _ACEOF
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775   $EGREP "yes" >/dev/null 2>&1; then :
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777 $as_echo "yes" >&6; }
12778          
12779 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12781 else
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784         
12786 rm -f conftest*
12790 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12792 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12793         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12796 #include <sys/time.h>
12797 #ifdef timeradd
12798  yes
12799 #endif
12801 _ACEOF
12802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12803   $EGREP "yes" >/dev/null 2>&1; then :
12804    
12805 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12807           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; } 
12809 else
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12814 rm -f conftest*
12818 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12820 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12821         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12824 #include <sys/time.h>
12825 #ifdef timercmp
12826  yes
12827 #endif
12829 _ACEOF
12830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12831   $EGREP "yes" >/dev/null 2>&1; then :
12832    
12833 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12835           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; } 
12837 else
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12842 rm -f conftest*
12846 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12848 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12849         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12852 #include <sys/time.h>
12853 #ifdef timerclear
12854  yes
12855 #endif
12857 _ACEOF
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859   $EGREP "yes" >/dev/null 2>&1; then :
12860    
12861 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; } 
12865 else
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12870 rm -f conftest*
12874 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12876 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12877         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h.  */
12880 #include <sys/time.h>
12881 #ifdef timerisset
12882  yes
12883 #endif
12885 _ACEOF
12886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12887   $EGREP "yes" >/dev/null 2>&1; then :
12888    
12889 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12891           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12892 $as_echo "yes" >&6; } 
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12898 rm -f conftest*
12902 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12903         ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12904              #include <sys/sysctl.h>
12905         
12907 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12908   ac_have_decl=1
12909 else
12910   ac_have_decl=0
12913 cat >>confdefs.h <<_ACEOF
12914 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12915 _ACEOF
12916 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12917              #include <sys/sysctl.h>
12918         
12920 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12921   ac_have_decl=1
12922 else
12923   ac_have_decl=0
12926 cat >>confdefs.h <<_ACEOF
12927 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12928 _ACEOF
12929 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12930              #include <sys/sysctl.h>
12931         
12933 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12934   ac_have_decl=1
12935 else
12936   ac_have_decl=0
12939 cat >>confdefs.h <<_ACEOF
12940 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12941 _ACEOF
12942 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12943              #include <sys/sysctl.h>
12944         
12946 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12947   ac_have_decl=1
12948 else
12949   ac_have_decl=0
12952 cat >>confdefs.h <<_ACEOF
12953 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12954 _ACEOF
12958  if test x$bwin32 = xtrue; then
12959   BUILD_WIN32_TRUE=
12960   BUILD_WIN32_FALSE='#'
12961 else
12962   BUILD_WIN32_TRUE='#'
12963   BUILD_WIN32_FALSE=
12966  if test x$cygwin = xtrue; then
12967   BUILD_CYGWIN_TRUE=
12968   BUILD_CYGWIN_FALSE='#'
12969 else
12970   BUILD_CYGWIN_TRUE='#'
12971   BUILD_CYGWIN_FALSE=
12974  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12975   BUILD_WITH_NO_UNDEFINED_TRUE=
12976   BUILD_WITH_NO_UNDEFINED_FALSE='#'
12977 else
12978   BUILD_WITH_NO_UNDEFINED_TRUE='#'
12979   BUILD_WITH_NO_UNDEFINED_FALSE=
12983 if test x$bwin32 = xtrue; then
12984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12985 $as_echo_n "checking for library containing getservbyname... " >&6; }
12986 if ${ac_cv_search_getservbyname+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   ac_func_search_save_LIBS=$LIBS
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h.  */
12993 /* Override any GCC internal prototype to avoid an error.
12994    Use char because int might match the return type of a GCC
12995    builtin and then its argument prototype would still apply.  */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char getservbyname ();
13001 main ()
13003 return getservbyname ();
13004   ;
13005   return 0;
13007 _ACEOF
13008 for ac_lib in '' ws2_32; do
13009   if test -z "$ac_lib"; then
13010     ac_res="none required"
13011   else
13012     ac_res=-l$ac_lib
13013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13014   fi
13015   if ac_fn_c_try_link "$LINENO"; then :
13016   ac_cv_search_getservbyname=$ac_res
13018 rm -f core conftest.err conftest.$ac_objext \
13019     conftest$ac_exeext
13020   if ${ac_cv_search_getservbyname+:} false; then :
13021   break
13023 done
13024 if ${ac_cv_search_getservbyname+:} false; then :
13025   
13026 else
13027   ac_cv_search_getservbyname=no
13029 rm conftest.$ac_ext
13030 LIBS=$ac_func_search_save_LIBS
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13033 $as_echo "$ac_cv_search_getservbyname" >&6; }
13034 ac_res=$ac_cv_search_getservbyname
13035 if test "$ac_res" != no; then :
13036   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13037   
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13043 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13044 if ${ac_cv_c_const+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13051 main ()
13054 #ifndef __cplusplus
13055   /* Ultrix mips cc rejects this sort of thing.  */
13056   typedef int charset[2];
13057   const charset cs = { 0, 0 };
13058   /* SunOS 4.1.1 cc rejects this.  */
13059   char const *const *pcpcc;
13060   char **ppc;
13061   /* NEC SVR4.0.2 mips cc rejects this.  */
13062   struct point {int x, y;};
13063   static struct point const zero = {0,0};
13064   /* AIX XL C 1.02.0.0 rejects this.
13065      It does not let you subtract one const X* pointer from another in
13066      an arm of an if-expression whose if-part is not a constant
13067      expression */
13068   const char *g = "string";
13069   pcpcc = &g + (g ? g-g : 0);
13070   /* HPUX 7.0 cc rejects these. */
13071   ++pcpcc;
13072   ppc = (char**) pcpcc;
13073   pcpcc = (char const *const *) ppc;
13074   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13075     char tx;
13076     char *t = &tx;
13077     char const *s = 0 ? (char *) 0 : (char const *) 0;
13079     *t++ = 0;
13080     if (s) return 0;
13081   }
13082   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13083     int x[] = {25, 17};
13084     const int *foo = &x[0];
13085     ++foo;
13086   }
13087   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13088     typedef const int *iptr;
13089     iptr p = 0;
13090     ++p;
13091   }
13092   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13093        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13094     struct s { int j; const int *ap[3]; } bx;
13095     struct s *b = &bx; b->j = 5;
13096   }
13097   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13098     const int foo = 10;
13099     if (!foo) return 0;
13100   }
13101   return !cs[0] && !zero.x;
13102 #endif
13104   ;
13105   return 0;
13107 _ACEOF
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109   ac_cv_c_const=yes
13110 else
13111   ac_cv_c_const=no
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13116 $as_echo "$ac_cv_c_const" >&6; }
13117 if test $ac_cv_c_const = no; then
13118   
13119 $as_echo "@%:@define const /**/" >>confdefs.h
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13124 $as_echo_n "checking for inline... " >&6; }
13125 if ${ac_cv_c_inline+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   ac_cv_c_inline=no
13129 for ac_kw in inline __inline__ __inline; do
13130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h.  */
13132 #ifndef __cplusplus
13133 typedef int foo_t;
13134 static $ac_kw foo_t static_foo () {return 0; }
13135 $ac_kw foo_t foo () {return 0; }
13136 #endif
13138 _ACEOF
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140   ac_cv_c_inline=$ac_kw
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143   test "$ac_cv_c_inline" != no && break
13144 done
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13148 $as_echo "$ac_cv_c_inline" >&6; }
13150 case $ac_cv_c_inline in
13151   inline | yes) ;;
13152   *)
13153     case $ac_cv_c_inline in
13154       no) ac_val=;;
13155       *) ac_val=$ac_cv_c_inline;;
13156     esac
13157     cat >>confdefs.h <<_ACEOF
13158 #ifndef __cplusplus
13159 #define inline $ac_val
13160 #endif
13161 _ACEOF
13162     ;;
13163 esac
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13166 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13167 if ${ac_cv_header_time+:} false; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h.  */
13172 #include <sys/types.h>
13173 #include <sys/time.h>
13174 #include <time.h>
13177 main ()
13179 if ((struct tm *) 0)
13180 return 0;
13181   ;
13182   return 0;
13184 _ACEOF
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186   ac_cv_header_time=yes
13187 else
13188   ac_cv_header_time=no
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13193 $as_echo "$ac_cv_header_time" >&6; }
13194 if test $ac_cv_header_time = yes; then
13195   
13196 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13201 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13202 do :
13203   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13205 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13206   cat >>confdefs.h <<_ACEOF
13207 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13208 _ACEOF
13211 done
13213 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf arc4random_addrandom issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13214 do :
13215   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13218   cat >>confdefs.h <<_ACEOF
13219 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13220 _ACEOF
13223 done
13225 for ac_func in umask
13226 do :
13227   ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13228 if test "x$ac_cv_func_umask" = xyes; then :
13229   cat >>confdefs.h <<_ACEOF
13230 @%:@define HAVE_UMASK 1
13231 _ACEOF
13234 done
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13238 $as_echo_n "checking for getaddrinfo... " >&6; }
13239 if ${libevent_cv_getaddrinfo+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h.  */
13245                 #ifdef HAVE_NETDB_H
13246                 #include <netdb.h>
13247                 #endif
13248             
13250 main ()
13253                 getaddrinfo;
13254             
13255         
13256   ;
13257   return 0;
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"; then :
13261   libevent_cv_getaddrinfo=yes
13262 else
13263   libevent_cv_getaddrinfo=no
13264     
13266 rm -f core conftest.err conftest.$ac_objext \
13267     conftest$ac_exeext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13271 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13272 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13273     
13274 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13276 else
13278 for ac_func in getservbyname
13279 do :
13280   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13281 if test "x$ac_cv_func_getservbyname" = xyes; then :
13282   cat >>confdefs.h <<_ACEOF
13283 @%:@define HAVE_GETSERVBYNAME 1
13284 _ACEOF
13287 done
13289 # Check for gethostbyname_r in all its glorious incompatible versions.
13290 #   (This is cut-and-pasted from Tor, which based its logic on
13291 #   Python's configure.in.)
13294 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13295 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13296   
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13298 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13299   OLD_CFLAGS=$CFLAGS
13300   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13304 #include <netdb.h>
13305   
13307 main ()
13310     char *cp1, *cp2;
13311     struct hostent *h1, *h2;
13312     int i1, i2;
13313     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13314   
13315   ;
13316   return 0;
13318 _ACEOF
13319 if ac_fn_c_try_compile "$LINENO"; then :
13320   
13321     $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13323     
13324 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13327 $as_echo "6" >&6; }
13328   
13329 else
13330   
13331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13334 #include <netdb.h>
13335     
13337 main ()
13340       char *cp1, *cp2;
13341       struct hostent *h1;
13342       int i1, i2;
13343       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13344     
13345   ;
13346   return 0;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350   
13351       $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13353       
13354 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13357 $as_echo "5" >&6; }
13358    
13359 else
13360   
13361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h.  */
13364 #include <netdb.h>
13365      
13367 main ()
13370        char *cp1;
13371        struct hostent *h1;
13372        struct hostent_data hd;
13373        (void) gethostbyname_r(cp1,h1,&hd);
13374      
13375   ;
13376   return 0;
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380   
13381        $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13383        
13384 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13386        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13387 $as_echo "3" >&6; }
13388      
13389 else
13390   
13391        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13392 $as_echo "0" >&6; }
13393      
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396   
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402  CFLAGS=$OLD_CFLAGS
13409 # The cast to long int works around a bug in the HP C Compiler
13410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13412 # This bug is HP SR number 8606223364.
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13414 $as_echo_n "checking size of long... " >&6; }
13415 if ${ac_cv_sizeof_long+:} false; then :
13416   $as_echo_n "(cached) " >&6
13417 else
13418   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13419   
13420 else
13421   if test "$ac_cv_type_long" = yes; then
13422      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13424 as_fn_error 77 "cannot compute sizeof (long)
13425 See \`config.log' for more details" "$LINENO" 5; }
13426    else
13427      ac_cv_sizeof_long=0
13428    fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13433 $as_echo "$ac_cv_sizeof_long" >&6; }
13437 cat >>confdefs.h <<_ACEOF
13438 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13439 _ACEOF
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13444 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h.  */
13448 #define _GNU_SOURCE
13449 #include <fcntl.h>
13450 #ifdef F_SETFD
13452 #endif
13454 _ACEOF
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456   $EGREP "yes" >/dev/null 2>&1; then :
13457    
13458 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13460           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; } 
13462 else
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13466 rm -f conftest*
13469 needsignal=no
13470 haveselect=no
13471 if test x$bwin32 != xtrue; then
13472     for ac_func in select
13473 do :
13474   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13475 if test "x$ac_cv_func_select" = xyes; then :
13476   cat >>confdefs.h <<_ACEOF
13477 @%:@define HAVE_SELECT 1
13478 _ACEOF
13479  haveselect=yes
13481 done
13483     if test "x$haveselect" = "xyes" ; then
13484         needsignal=yes
13485     fi
13487  if test "x$haveselect" = "xyes"; then
13488   SELECT_BACKEND_TRUE=
13489   SELECT_BACKEND_FALSE='#'
13490 else
13491   SELECT_BACKEND_TRUE='#'
13492   SELECT_BACKEND_FALSE=
13496 havepoll=no
13497 for ac_func in poll
13498 do :
13499   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13500 if test "x$ac_cv_func_poll" = xyes; then :
13501   cat >>confdefs.h <<_ACEOF
13502 @%:@define HAVE_POLL 1
13503 _ACEOF
13504  havepoll=yes
13506 done
13508 if test "x$havepoll" = "xyes" ; then
13509         needsignal=yes
13511  if test "x$havepoll" = "xyes"; then
13512   POLL_BACKEND_TRUE=
13513   POLL_BACKEND_FALSE='#'
13514 else
13515   POLL_BACKEND_TRUE='#'
13516   POLL_BACKEND_FALSE=
13520 havedevpoll=no
13521 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13522         
13523 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13526  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13527   DEVPOLL_BACKEND_TRUE=
13528   DEVPOLL_BACKEND_FALSE='#'
13529 else
13530   DEVPOLL_BACKEND_TRUE='#'
13531   DEVPOLL_BACKEND_FALSE=
13535 havekqueue=no
13536 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13537         for ac_func in kqueue
13538 do :
13539   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13540 if test "x$ac_cv_func_kqueue" = xyes; then :
13541   cat >>confdefs.h <<_ACEOF
13542 @%:@define HAVE_KQUEUE 1
13543 _ACEOF
13544  havekqueue=yes
13546 done
13548         if test "x$havekqueue" = "xyes" ; then
13549                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13550 $as_echo_n "checking for working kqueue... " >&6; }
13551                 if test "$cross_compiling" = yes; then :
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 else
13555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557 #include <sys/types.h>
13558 #include <sys/time.h>
13559 #include <sys/event.h>
13560 #include <stdio.h>
13561 #include <unistd.h>
13562 #include <fcntl.h>
13565 main(int argc, char **argv)
13567         int kq;
13568         int n;
13569         int fd[2];
13570         struct kevent ev;
13571         struct timespec ts;
13572         char buf[8000];
13574         if (pipe(fd) == -1)
13575                 exit(1);
13576         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13577                 exit(1);
13579         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13580                 ;
13582         if ((kq = kqueue()) == -1)
13583                 exit(1);
13585         memset(&ev, 0, sizeof(ev));
13586         ev.ident = fd[1];
13587         ev.filter = EVFILT_WRITE;
13588         ev.flags = EV_ADD | EV_ENABLE;
13589         n = kevent(kq, &ev, 1, NULL, 0, NULL);
13590         if (n == -1)
13591                 exit(1);
13593         read(fd[0], buf, sizeof(buf));
13595         ts.tv_sec = 0;
13596         ts.tv_nsec = 0;
13597         n = kevent(kq, NULL, 0, &ev, 1, &ts);
13598         if (n == -1 || n == 0)
13599                 exit(1);
13601         exit(0);
13603 _ACEOF
13604 if ac_fn_c_try_run "$LINENO"; then :
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13607     
13608 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13610     havekqueue=yes
13611     
13612 else
13613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13617   conftest.$ac_objext conftest.beam conftest.$ac_ext
13620         fi
13622  if test "x$havekqueue" = "xyes"; then
13623   KQUEUE_BACKEND_TRUE=
13624   KQUEUE_BACKEND_FALSE='#'
13625 else
13626   KQUEUE_BACKEND_TRUE='#'
13627   KQUEUE_BACKEND_FALSE=
13631 haveepollsyscall=no
13632 haveepoll=no
13633 for ac_func in epoll_ctl
13634 do :
13635   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13636 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13637   cat >>confdefs.h <<_ACEOF
13638 @%:@define HAVE_EPOLL_CTL 1
13639 _ACEOF
13640  haveepoll=yes
13642 done
13644 if test "x$haveepoll" = "xyes" ; then
13645         
13646 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13648         needsignal=yes
13650 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13651         if test "x$haveepoll" = "xno" ; then
13652                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13653 $as_echo_n "checking for epoll system call... " >&6; }
13654                 if test "$cross_compiling" = yes; then :
13655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 else
13658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660 #include <stdint.h>
13661 #include <sys/param.h>
13662 #include <sys/types.h>
13663 #include <sys/syscall.h>
13664 #include <sys/epoll.h>
13665 #include <unistd.h>
13668 epoll_create(int size)
13670         return (syscall(__NR_epoll_create, size));
13674 main(int argc, char **argv)
13676         int epfd;
13678         epfd = epoll_create(256);
13679         exit (epfd == -1 ? 1 : 0);
13681 _ACEOF
13682 if ac_fn_c_try_run "$LINENO"; then :
13683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684 $as_echo "yes" >&6; }
13685     
13686 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13688     needsignal=yes
13689     have_epoll=yes
13690     case " $LIB@&t@OBJS " in
13691   *" epoll_sub.$ac_objext "* ) ;;
13692   *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13693  ;;
13694 esac
13696     
13697 else
13698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13702   conftest.$ac_objext conftest.beam conftest.$ac_ext
13705         fi
13707  if test "x$haveepoll" = "xyes"; then
13708   EPOLL_BACKEND_TRUE=
13709   EPOLL_BACKEND_FALSE='#'
13710 else
13711   EPOLL_BACKEND_TRUE='#'
13712   EPOLL_BACKEND_FALSE=
13716 haveeventports=no
13717 for ac_func in port_create
13718 do :
13719   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13720 if test "x$ac_cv_func_port_create" = xyes; then :
13721   cat >>confdefs.h <<_ACEOF
13722 @%:@define HAVE_PORT_CREATE 1
13723 _ACEOF
13724  haveeventports=yes
13726 done
13728 if test "x$haveeventports" = "xyes" ; then
13729         
13730 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13732         needsignal=yes
13734  if test "x$haveeventports" = "xyes"; then
13735   EVPORT_BACKEND_TRUE=
13736   EVPORT_BACKEND_FALSE='#'
13737 else
13738   EVPORT_BACKEND_TRUE='#'
13739   EVPORT_BACKEND_FALSE=
13743 if test "x$bwin32" = "xtrue"; then
13744         needsignal=yes
13747  if test "x$needsignal" = "xyes"; then
13748   SIGNAL_SUPPORT_TRUE=
13749   SIGNAL_SUPPORT_FALSE='#'
13750 else
13751   SIGNAL_SUPPORT_TRUE='#'
13752   SIGNAL_SUPPORT_FALSE=
13756 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13757 if test "x$ac_cv_type_pid_t" = xyes; then :
13758   
13759 else
13760   
13761 cat >>confdefs.h <<_ACEOF
13762 @%:@define pid_t int
13763 _ACEOF
13767 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13768 if test "x$ac_cv_type_size_t" = xyes; then :
13769   
13770 else
13771   
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define size_t unsigned int
13774 _ACEOF
13778 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13779 if test "x$ac_cv_type_ssize_t" = xyes; then :
13780   
13781 else
13782   
13783 cat >>confdefs.h <<_ACEOF
13784 @%:@define ssize_t int
13785 _ACEOF
13790 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13791 #include <stdint.h>
13792 #elif defined(HAVE_INTTYPES_H)
13793 #include <inttypes.h>
13794 #endif
13795 #ifdef HAVE_SYS_TYPES_H
13796 #include <sys/types.h>
13797 #endif
13799 if test "x$ac_cv_type_uint64_t" = xyes; then :
13800   
13801 cat >>confdefs.h <<_ACEOF
13802 @%:@define HAVE_UINT64_T 1
13803 _ACEOF
13807 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13808 #include <stdint.h>
13809 #elif defined(HAVE_INTTYPES_H)
13810 #include <inttypes.h>
13811 #endif
13812 #ifdef HAVE_SYS_TYPES_H
13813 #include <sys/types.h>
13814 #endif
13816 if test "x$ac_cv_type_uint32_t" = xyes; then :
13817   
13818 cat >>confdefs.h <<_ACEOF
13819 @%:@define HAVE_UINT32_T 1
13820 _ACEOF
13824 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13825 #include <stdint.h>
13826 #elif defined(HAVE_INTTYPES_H)
13827 #include <inttypes.h>
13828 #endif
13829 #ifdef HAVE_SYS_TYPES_H
13830 #include <sys/types.h>
13831 #endif
13833 if test "x$ac_cv_type_uint16_t" = xyes; then :
13834   
13835 cat >>confdefs.h <<_ACEOF
13836 @%:@define HAVE_UINT16_T 1
13837 _ACEOF
13841 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13842 #include <stdint.h>
13843 #elif defined(HAVE_INTTYPES_H)
13844 #include <inttypes.h>
13845 #endif
13846 #ifdef HAVE_SYS_TYPES_H
13847 #include <sys/types.h>
13848 #endif
13850 if test "x$ac_cv_type_uint8_t" = xyes; then :
13851   
13852 cat >>confdefs.h <<_ACEOF
13853 @%:@define HAVE_UINT8_T 1
13854 _ACEOF
13858 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13859 #include <stdint.h>
13860 #elif defined(HAVE_INTTYPES_H)
13861 #include <inttypes.h>
13862 #endif
13863 #ifdef HAVE_SYS_TYPES_H
13864 #include <sys/types.h>
13865 #endif
13867 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13868   
13869 cat >>confdefs.h <<_ACEOF
13870 @%:@define HAVE_UINTPTR_T 1
13871 _ACEOF
13877 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13878 #include <sys/types.h>
13879 #endif
13880 #ifdef HAVE_SYS_SELECT_H
13881 #include <sys/select.h>
13882 #endif
13884 if test "x$ac_cv_type_fd_mask" = xyes; then :
13885   
13886 cat >>confdefs.h <<_ACEOF
13887 @%:@define HAVE_FD_MASK 1
13888 _ACEOF
13894 # The cast to long int works around a bug in the HP C Compiler
13895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13897 # This bug is HP SR number 8606223364.
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13899 $as_echo_n "checking size of long long... " >&6; }
13900 if ${ac_cv_sizeof_long_long+:} false; then :
13901   $as_echo_n "(cached) " >&6
13902 else
13903   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13904   
13905 else
13906   if test "$ac_cv_type_long_long" = yes; then
13907      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13909 as_fn_error 77 "cannot compute sizeof (long long)
13910 See \`config.log' for more details" "$LINENO" 5; }
13911    else
13912      ac_cv_sizeof_long_long=0
13913    fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13918 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13922 cat >>confdefs.h <<_ACEOF
13923 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13924 _ACEOF
13927 # The cast to long int works around a bug in the HP C Compiler
13928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13930 # This bug is HP SR number 8606223364.
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13932 $as_echo_n "checking size of long... " >&6; }
13933 if ${ac_cv_sizeof_long+:} false; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13937   
13938 else
13939   if test "$ac_cv_type_long" = yes; then
13940      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13942 as_fn_error 77 "cannot compute sizeof (long)
13943 See \`config.log' for more details" "$LINENO" 5; }
13944    else
13945      ac_cv_sizeof_long=0
13946    fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13951 $as_echo "$ac_cv_sizeof_long" >&6; }
13955 cat >>confdefs.h <<_ACEOF
13956 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13957 _ACEOF
13960 # The cast to long int works around a bug in the HP C Compiler
13961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13963 # This bug is HP SR number 8606223364.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13965 $as_echo_n "checking size of int... " >&6; }
13966 if ${ac_cv_sizeof_int+:} false; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13970   
13971 else
13972   if test "$ac_cv_type_int" = yes; then
13973      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13975 as_fn_error 77 "cannot compute sizeof (int)
13976 See \`config.log' for more details" "$LINENO" 5; }
13977    else
13978      ac_cv_sizeof_int=0
13979    fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13984 $as_echo "$ac_cv_sizeof_int" >&6; }
13988 cat >>confdefs.h <<_ACEOF
13989 @%:@define SIZEOF_INT $ac_cv_sizeof_int
13990 _ACEOF
13993 # The cast to long int works around a bug in the HP C Compiler
13994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13996 # This bug is HP SR number 8606223364.
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13998 $as_echo_n "checking size of short... " >&6; }
13999 if ${ac_cv_sizeof_short+:} false; then :
14000   $as_echo_n "(cached) " >&6
14001 else
14002   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14003   
14004 else
14005   if test "$ac_cv_type_short" = yes; then
14006      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14008 as_fn_error 77 "cannot compute sizeof (short)
14009 See \`config.log' for more details" "$LINENO" 5; }
14010    else
14011      ac_cv_sizeof_short=0
14012    fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14017 $as_echo "$ac_cv_sizeof_short" >&6; }
14021 cat >>confdefs.h <<_ACEOF
14022 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
14023 _ACEOF
14026 # The cast to long int works around a bug in the HP C Compiler
14027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14029 # This bug is HP SR number 8606223364.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14031 $as_echo_n "checking size of size_t... " >&6; }
14032 if ${ac_cv_sizeof_size_t+:} false; then :
14033   $as_echo_n "(cached) " >&6
14034 else
14035   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14036   
14037 else
14038   if test "$ac_cv_type_size_t" = yes; then
14039      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14041 as_fn_error 77 "cannot compute sizeof (size_t)
14042 See \`config.log' for more details" "$LINENO" 5; }
14043    else
14044      ac_cv_sizeof_size_t=0
14045    fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14050 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14054 cat >>confdefs.h <<_ACEOF
14055 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14056 _ACEOF
14059 # The cast to long int works around a bug in the HP C Compiler
14060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14062 # This bug is HP SR number 8606223364.
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14064 $as_echo_n "checking size of void *... " >&6; }
14065 if ${ac_cv_sizeof_void_p+:} false; then :
14066   $as_echo_n "(cached) " >&6
14067 else
14068   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14069   
14070 else
14071   if test "$ac_cv_type_void_p" = yes; then
14072      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14074 as_fn_error 77 "cannot compute sizeof (void *)
14075 See \`config.log' for more details" "$LINENO" 5; }
14076    else
14077      ac_cv_sizeof_void_p=0
14078    fi
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14083 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14087 cat >>confdefs.h <<_ACEOF
14088 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14089 _ACEOF
14093 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14094 #include <sys/types.h>
14095 #ifdef HAVE_NETINET_IN_H
14096 #include <netinet/in.h>
14097 #endif
14098 #ifdef HAVE_NETINET_IN6_H
14099 #include <netinet/in6.h>
14100 #endif
14101 #ifdef HAVE_SYS_SOCKET_H
14102 #include <sys/socket.h>
14103 #endif
14104 #ifdef HAVE_NETDB_H
14105 #include <netdb.h>
14106 #endif
14107 #ifdef WIN32
14108 #define WIN32_WINNT 0x400
14109 #define _WIN32_WINNT 0x400
14110 #define WIN32_LEAN_AND_MEAN
14111 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14112 #include <winsock.h>
14113 #else
14114 #include <winsock2.h>
14115 #include <ws2tcpip.h>
14116 #endif
14117 #endif
14120 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14121   
14122 cat >>confdefs.h <<_ACEOF
14123 @%:@define HAVE_STRUCT_IN6_ADDR 1
14124 _ACEOF
14128 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14129 #include <sys/types.h>
14130 #ifdef HAVE_NETINET_IN_H
14131 #include <netinet/in.h>
14132 #endif
14133 #ifdef HAVE_NETINET_IN6_H
14134 #include <netinet/in6.h>
14135 #endif
14136 #ifdef HAVE_SYS_SOCKET_H
14137 #include <sys/socket.h>
14138 #endif
14139 #ifdef HAVE_NETDB_H
14140 #include <netdb.h>
14141 #endif
14142 #ifdef WIN32
14143 #define WIN32_WINNT 0x400
14144 #define _WIN32_WINNT 0x400
14145 #define WIN32_LEAN_AND_MEAN
14146 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14147 #include <winsock.h>
14148 #else
14149 #include <winsock2.h>
14150 #include <ws2tcpip.h>
14151 #endif
14152 #endif
14155 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14156   
14157 cat >>confdefs.h <<_ACEOF
14158 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
14159 _ACEOF
14163 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14164 #include <sys/types.h>
14165 #ifdef HAVE_NETINET_IN_H
14166 #include <netinet/in.h>
14167 #endif
14168 #ifdef HAVE_NETINET_IN6_H
14169 #include <netinet/in6.h>
14170 #endif
14171 #ifdef HAVE_SYS_SOCKET_H
14172 #include <sys/socket.h>
14173 #endif
14174 #ifdef HAVE_NETDB_H
14175 #include <netdb.h>
14176 #endif
14177 #ifdef WIN32
14178 #define WIN32_WINNT 0x400
14179 #define _WIN32_WINNT 0x400
14180 #define WIN32_LEAN_AND_MEAN
14181 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14182 #include <winsock.h>
14183 #else
14184 #include <winsock2.h>
14185 #include <ws2tcpip.h>
14186 #endif
14187 #endif
14190 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14191   
14192 cat >>confdefs.h <<_ACEOF
14193 @%:@define HAVE_SA_FAMILY_T 1
14194 _ACEOF
14198 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14199 #include <sys/types.h>
14200 #ifdef HAVE_NETINET_IN_H
14201 #include <netinet/in.h>
14202 #endif
14203 #ifdef HAVE_NETINET_IN6_H
14204 #include <netinet/in6.h>
14205 #endif
14206 #ifdef HAVE_SYS_SOCKET_H
14207 #include <sys/socket.h>
14208 #endif
14209 #ifdef HAVE_NETDB_H
14210 #include <netdb.h>
14211 #endif
14212 #ifdef WIN32
14213 #define WIN32_WINNT 0x400
14214 #define _WIN32_WINNT 0x400
14215 #define WIN32_LEAN_AND_MEAN
14216 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14217 #include <winsock.h>
14218 #else
14219 #include <winsock2.h>
14220 #include <ws2tcpip.h>
14221 #endif
14222 #endif
14225 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14226   
14227 cat >>confdefs.h <<_ACEOF
14228 @%:@define HAVE_STRUCT_ADDRINFO 1
14229 _ACEOF
14233 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14234 #include <sys/types.h>
14235 #ifdef HAVE_NETINET_IN_H
14236 #include <netinet/in.h>
14237 #endif
14238 #ifdef HAVE_NETINET_IN6_H
14239 #include <netinet/in6.h>
14240 #endif
14241 #ifdef HAVE_SYS_SOCKET_H
14242 #include <sys/socket.h>
14243 #endif
14244 #ifdef HAVE_NETDB_H
14245 #include <netdb.h>
14246 #endif
14247 #ifdef WIN32
14248 #define WIN32_WINNT 0x400
14249 #define _WIN32_WINNT 0x400
14250 #define WIN32_LEAN_AND_MEAN
14251 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14252 #include <winsock.h>
14253 #else
14254 #include <winsock2.h>
14255 #include <ws2tcpip.h>
14256 #endif
14257 #endif
14260 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14261   
14262 cat >>confdefs.h <<_ACEOF
14263 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14264 _ACEOF
14269 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14270 #ifdef HAVE_NETINET_IN_H
14271 #include <netinet/in.h>
14272 #endif
14273 #ifdef HAVE_NETINET_IN6_H
14274 #include <netinet/in6.h>
14275 #endif
14276 #ifdef HAVE_SYS_SOCKET_H
14277 #include <sys/socket.h>
14278 #endif
14279 #ifdef WIN32
14280 #define WIN32_WINNT 0x400
14281 #define _WIN32_WINNT 0x400
14282 #define WIN32_LEAN_AND_MEAN
14283 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14284 #include <winsock.h>
14285 #else
14286 #include <winsock2.h>
14287 #include <ws2tcpip.h>
14288 #endif
14289 #endif
14292 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14293   
14294 cat >>confdefs.h <<_ACEOF
14295 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14296 _ACEOF
14300 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14301 #ifdef HAVE_NETINET_IN_H
14302 #include <netinet/in.h>
14303 #endif
14304 #ifdef HAVE_NETINET_IN6_H
14305 #include <netinet/in6.h>
14306 #endif
14307 #ifdef HAVE_SYS_SOCKET_H
14308 #include <sys/socket.h>
14309 #endif
14310 #ifdef WIN32
14311 #define WIN32_WINNT 0x400
14312 #define _WIN32_WINNT 0x400
14313 #define WIN32_LEAN_AND_MEAN
14314 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14315 #include <winsock.h>
14316 #else
14317 #include <winsock2.h>
14318 #include <ws2tcpip.h>
14319 #endif
14320 #endif
14323 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14324   
14325 cat >>confdefs.h <<_ACEOF
14326 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14327 _ACEOF
14331 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14332 #ifdef HAVE_NETINET_IN_H
14333 #include <netinet/in.h>
14334 #endif
14335 #ifdef HAVE_NETINET_IN6_H
14336 #include <netinet/in6.h>
14337 #endif
14338 #ifdef HAVE_SYS_SOCKET_H
14339 #include <sys/socket.h>
14340 #endif
14341 #ifdef WIN32
14342 #define WIN32_WINNT 0x400
14343 #define _WIN32_WINNT 0x400
14344 #define WIN32_LEAN_AND_MEAN
14345 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14346 #include <winsock.h>
14347 #else
14348 #include <winsock2.h>
14349 #include <ws2tcpip.h>
14350 #endif
14351 #endif
14354 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14355   
14356 cat >>confdefs.h <<_ACEOF
14357 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14358 _ACEOF
14362 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14363 #ifdef HAVE_NETINET_IN_H
14364 #include <netinet/in.h>
14365 #endif
14366 #ifdef HAVE_NETINET_IN6_H
14367 #include <netinet/in6.h>
14368 #endif
14369 #ifdef HAVE_SYS_SOCKET_H
14370 #include <sys/socket.h>
14371 #endif
14372 #ifdef WIN32
14373 #define WIN32_WINNT 0x400
14374 #define _WIN32_WINNT 0x400
14375 #define WIN32_LEAN_AND_MEAN
14376 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14377 #include <winsock.h>
14378 #else
14379 #include <winsock2.h>
14380 #include <ws2tcpip.h>
14381 #endif
14382 #endif
14385 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14386   
14387 cat >>confdefs.h <<_ACEOF
14388 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14389 _ACEOF
14393 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14394 #ifdef HAVE_NETINET_IN_H
14395 #include <netinet/in.h>
14396 #endif
14397 #ifdef HAVE_NETINET_IN6_H
14398 #include <netinet/in6.h>
14399 #endif
14400 #ifdef HAVE_SYS_SOCKET_H
14401 #include <sys/socket.h>
14402 #endif
14403 #ifdef WIN32
14404 #define WIN32_WINNT 0x400
14405 #define _WIN32_WINNT 0x400
14406 #define WIN32_LEAN_AND_MEAN
14407 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14408 #include <winsock.h>
14409 #else
14410 #include <winsock2.h>
14411 #include <ws2tcpip.h>
14412 #endif
14413 #endif
14416 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14417   
14418 cat >>confdefs.h <<_ACEOF
14419 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14420 _ACEOF
14424 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14425 #ifdef HAVE_NETINET_IN_H
14426 #include <netinet/in.h>
14427 #endif
14428 #ifdef HAVE_NETINET_IN6_H
14429 #include <netinet/in6.h>
14430 #endif
14431 #ifdef HAVE_SYS_SOCKET_H
14432 #include <sys/socket.h>
14433 #endif
14434 #ifdef WIN32
14435 #define WIN32_WINNT 0x400
14436 #define _WIN32_WINNT 0x400
14437 #define WIN32_LEAN_AND_MEAN
14438 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14439 #include <winsock.h>
14440 #else
14441 #include <winsock2.h>
14442 #include <ws2tcpip.h>
14443 #endif
14444 #endif
14447 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14448   
14449 cat >>confdefs.h <<_ACEOF
14450 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14451 _ACEOF
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14458 $as_echo_n "checking for socklen_t... " >&6; }
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h.  */
14462  #include <sys/types.h>
14463  #include <sys/socket.h>
14465 main ()
14467 socklen_t x;
14468   ;
14469   return 0;
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14474 $as_echo "yes" >&6; }
14475 else
14476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14478   
14479 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14486 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h.  */
14491 main ()
14493  const char *cp = __func__; 
14494   ;
14495   return 0;
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14500 $as_echo "yes" >&6; }
14501 else
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14505 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h.  */
14510 main ()
14512  const char *cp = __FUNCTION__; 
14513   ;
14514   return 0;
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14519 $as_echo "yes" >&6; }
14520    
14521 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14523 else
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14526    
14527 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 # check if we can compile with pthreads
14536 have_pthreads=no
14537 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14538   
14541 ac_ext=c
14542 ac_cpp='$CPP $CPPFLAGS'
14543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14547 acx_pthread_ok=no
14549 # We used to check for pthread.h first, but this fails if pthread.h
14550 # requires special compiler flags (e.g. on True64 or Sequent).
14551 # It gets checked for in the link test anyway.
14553 # First of all, check if the user has set any of the PTHREAD_LIBS,
14554 # etcetera environment variables, and if threads linking works using
14555 # them:
14556 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14557         save_CFLAGS="$CFLAGS"
14558         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14559         save_LIBS="$LIBS"
14560         LIBS="$PTHREAD_LIBS $LIBS"
14561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14562 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14563         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h.  */
14566 /* Override any GCC internal prototype to avoid an error.
14567    Use char because int might match the return type of a GCC
14568    builtin and then its argument prototype would still apply.  */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char pthread_join ();
14574 main ()
14576 return pthread_join ();
14577   ;
14578   return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582   acx_pthread_ok=yes
14584 rm -f core conftest.err conftest.$ac_objext \
14585     conftest$ac_exeext conftest.$ac_ext
14586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14587 $as_echo "$acx_pthread_ok" >&6; }
14588         if test x"$acx_pthread_ok" = xno; then
14589                 PTHREAD_LIBS=""
14590                 PTHREAD_CFLAGS=""
14591         fi
14592         LIBS="$save_LIBS"
14593         CFLAGS="$save_CFLAGS"
14596 # We must check for the threads library under a number of different
14597 # names; the ordering is very important because some systems
14598 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14599 # libraries is broken (non-POSIX).
14601 # Create a list of thread flags to try.  Items starting with a "-" are
14602 # C compiler flags, and other items are library names, except for "none"
14603 # which indicates that we try without any flags at all, and "pthread-config"
14604 # which is a program returning the flags for the Pth emulation library.
14606 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14608 # The ordering *is* (sometimes) important.  Some notes on the
14609 # individual items follow:
14611 # pthreads: AIX (must check this before -lpthread)
14612 # none: in case threads are in libc; should be tried before -Kthread and
14613 #       other compiler flags to prevent continual compiler warnings
14614 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14615 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14616 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14617 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14618 # -pthreads: Solaris/gcc
14619 # -mthreads: Mingw32/gcc, Lynx/gcc
14620 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14621 #      doesn't hurt to check since this sometimes defines pthreads too;
14622 #      also defines -D_REENTRANT)
14623 #      ... -mt is also the pthreads flag for HP/aCC
14624 # pthread: Linux, etcetera
14625 # --thread-safe: KAI C++
14626 # pthread-config: use pthread-config program (for GNU Pth library)
14628 case "${host_cpu}-${host_os}" in
14629         *solaris*)
14631         # On Solaris (at least, for some versions), libc contains stubbed
14632         # (non-functional) versions of the pthreads routines, so link-based
14633         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14634         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14635         # a function called by this macro, so we could check for that, but
14636         # who knows whether they'll stub that too in a future libc.)  So,
14637         # we'll just look for -pthreads and -lpthread first:
14639         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14640         ;;
14641 esac
14643 if test x"$acx_pthread_ok" = xno; then
14644 for flag in $acx_pthread_flags; do
14646         case $flag in
14647                 none)
14648                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14649 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14650                 ;;
14652                 -*)
14653                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14654 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14655                 PTHREAD_CFLAGS="$flag"
14656                 ;;
14658                 pthread-config)
14659                 # Extract the first word of "pthread-config", so it can be a program name with args.
14660 set dummy pthread-config; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14662 $as_echo_n "checking for $ac_word... " >&6; }
14663 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14664   $as_echo_n "(cached) " >&6
14665 else
14666   if test -n "$acx_pthread_config"; then
14667   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14668 else
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14672   IFS=$as_save_IFS
14673   test -z "$as_dir" && as_dir=.
14674     for ac_exec_ext in '' $ac_executable_extensions; do
14675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676     ac_cv_prog_acx_pthread_config="yes"
14677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14678     break 2
14679   fi
14680 done
14681   done
14682 IFS=$as_save_IFS
14684   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14687 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14688 if test -n "$acx_pthread_config"; then
14689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14690 $as_echo "$acx_pthread_config" >&6; }
14691 else
14692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14697                 if test x"$acx_pthread_config" = xno; then continue; fi
14698                 PTHREAD_CFLAGS="`pthread-config --cflags`"
14699                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14700                 ;;
14702                 *)
14703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14704 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14705                 PTHREAD_LIBS="-l$flag"
14706                 ;;
14707         esac
14709         save_LIBS="$LIBS"
14710         save_CFLAGS="$CFLAGS"
14711         LIBS="$PTHREAD_LIBS $LIBS"
14712         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14714         # Check for various functions.  We must include pthread.h,
14715         # since some functions may be macros.  (On the Sequent, we
14716         # need a special flag -Kthread to make this header compile.)
14717         # We check for pthread_join because it is in -lpthread on IRIX
14718         # while pthread_create is in libc.  We check for pthread_attr_init
14719         # due to DEC craziness with -lpthreads.  We check for
14720         # pthread_cleanup_push because it is one of the few pthread
14721         # functions on Solaris that doesn't have a non-functional libc stub.
14722         # We try pthread_create on general principles.
14723         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h.  */
14725 #include <pthread.h>
14727 main ()
14729 pthread_t th; pthread_join(th, 0);
14730                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
14731                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
14732   ;
14733   return 0;
14735 _ACEOF
14736 if ac_fn_c_try_link "$LINENO"; then :
14737   acx_pthread_ok=yes
14739 rm -f core conftest.err conftest.$ac_objext \
14740     conftest$ac_exeext conftest.$ac_ext
14742         LIBS="$save_LIBS"
14743         CFLAGS="$save_CFLAGS"
14745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14746 $as_echo "$acx_pthread_ok" >&6; }
14747         if test "x$acx_pthread_ok" = xyes; then
14748                 break;
14749         fi
14751         PTHREAD_LIBS=""
14752         PTHREAD_CFLAGS=""
14753 done
14756 # Various other checks:
14757 if test "x$acx_pthread_ok" = xyes; then
14758         save_LIBS="$LIBS"
14759         LIBS="$PTHREAD_LIBS $LIBS"
14760         save_CFLAGS="$CFLAGS"
14761         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14763         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14765 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14766         attr_name=unknown
14767         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14768             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h.  */
14770 #include <pthread.h>
14772 main ()
14774 int attr=$attr; return attr;
14775   ;
14776   return 0;
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"; then :
14780   attr_name=$attr; break
14782 rm -f core conftest.err conftest.$ac_objext \
14783     conftest$ac_exeext conftest.$ac_ext
14784         done
14785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14786 $as_echo "$attr_name" >&6; }
14787         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14788             
14789 cat >>confdefs.h <<_ACEOF
14790 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14791 _ACEOF
14793         fi
14795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14796 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14797         flag=no
14798         case "${host_cpu}-${host_os}" in
14799             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14800             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14801         esac
14802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14803 $as_echo "${flag}" >&6; }
14804         if test "x$flag" != xno; then
14805             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14806         fi
14808         LIBS="$save_LIBS"
14809         CFLAGS="$save_CFLAGS"
14811         # More AIX lossage: must compile with xlc_r or cc_r
14812         if test x"$GCC" != xyes; then
14813           for ac_prog in xlc_r cc_r
14815   # Extract the first word of "$ac_prog", so it can be a program name with args.
14816 set dummy $ac_prog; ac_word=$2
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14818 $as_echo_n "checking for $ac_word... " >&6; }
14819 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14820   $as_echo_n "(cached) " >&6
14821 else
14822   if test -n "$PTHREAD_CC"; then
14823   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14824 else
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14828   IFS=$as_save_IFS
14829   test -z "$as_dir" && as_dir=.
14830     for ac_exec_ext in '' $ac_executable_extensions; do
14831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832     ac_cv_prog_PTHREAD_CC="$ac_prog"
14833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14834     break 2
14835   fi
14836 done
14837   done
14838 IFS=$as_save_IFS
14842 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14843 if test -n "$PTHREAD_CC"; then
14844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14845 $as_echo "$PTHREAD_CC" >&6; }
14846 else
14847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14852   test -n "$PTHREAD_CC" && break
14853 done
14854 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14856         else
14857           PTHREAD_CC=$CC
14858         fi
14859 else
14860         PTHREAD_CC="$CC"
14867 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14868 if test x"$acx_pthread_ok" = xyes; then
14869         
14870         
14871 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14873         have_pthreads=yes
14874         :
14875 else
14876         acx_pthread_ok=no
14877         
14879 ac_ext=c
14880 ac_cpp='$CPP $CPPFLAGS'
14881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14887   # The cast to long int works around a bug in the HP C Compiler
14888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14890 # This bug is HP SR number 8606223364.
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14892 $as_echo_n "checking size of pthread_t... " >&6; }
14893 if ${ac_cv_sizeof_pthread_t+:} false; then :
14894   $as_echo_n "(cached) " >&6
14895 else
14896   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14897       #include <pthread.h> 
14898   
14899 "; then :
14900   
14901 else
14902   if test "$ac_cv_type_pthread_t" = yes; then
14903      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14905 as_fn_error 77 "cannot compute sizeof (pthread_t)
14906 See \`config.log' for more details" "$LINENO" 5; }
14907    else
14908      ac_cv_sizeof_pthread_t=0
14909    fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14914 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14918 cat >>confdefs.h <<_ACEOF
14919 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14920 _ACEOF
14924  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14925   PTHREADS_TRUE=
14926   PTHREADS_FALSE='#'
14927 else
14928   PTHREADS_TRUE='#'
14929   PTHREADS_FALSE=
14933 # check if we should compile locking into the library
14934 if test x$enable_thread_support = xno; then
14935    
14936 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14940 # check if we should hard-code the mm functions.
14941 if test x$enable_malloc_replacement = xno; then
14942   
14943 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14947 # check if we should hard-code debugging out
14948 if test x$enable_debug_mode = xno; then
14949   
14950 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14954 # check if we have and should use openssl
14955  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14956   OPENSSL_TRUE=
14957   OPENSSL_FALSE='#'
14958 else
14959   OPENSSL_TRUE='#'
14960   OPENSSL_FALSE=
14964 # Add some more warnings which we use in development but not in the
14965 # released versions.  (Some relevant gcc versions can't handle these.)
14966 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h.  */
14972 main ()
14975 #if !defined(__GNUC__) || (__GNUC__ < 4)
14976 #error
14977 #endif
14978   ;
14979   return 0;
14981 _ACEOF
14982 if ac_fn_c_try_compile "$LINENO"; then :
14983   have_gcc4=yes
14984 else
14985   have_gcc4=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h.  */
14993 main ()
14996 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14997 #error
14998 #endif
14999   ;
15000   return 0;
15002 _ACEOF
15003 if ac_fn_c_try_compile "$LINENO"; then :
15004   have_gcc42=yes
15005 else
15006   have_gcc42=no
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15014 main ()
15017 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15018 #error
15019 #endif
15020   ;
15021   return 0;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"; then :
15025   have_gcc45=yes
15026 else
15027   have_gcc45=no
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15035 main ()
15038 #if !defined(__clang__)
15039 #error
15040 #endif
15041   ;
15042   return 0;
15044 _ACEOF
15045 if ac_fn_c_try_compile "$LINENO"; then :
15046   have_clang=yes
15047 else
15048   have_clang=no
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052   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-enum -Werror"
15053   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15055   if test x$have_gcc4 = xyes ; then
15056     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15057     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15058     #CFLAGS="$CFLAGS -Wold-style-definition"
15059   fi
15061   if test x$have_gcc42 = xyes ; then
15062     # These warnings break gcc 4.0.2 and work on gcc 4.2
15063     CFLAGS="$CFLAGS -Waddress"
15064   fi
15066   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15067     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15068     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15069   fi
15071   if test x$have_gcc45 = xyes ; then
15072     # These warnings work on gcc 4.5
15073     CFLAGS="$CFLAGS -Wlogical-op"
15074   fi
15076   if test x$have_clang = xyes; then
15077     # Disable the unused-function warnings, because these trigger
15078     # for minheap-internal.h related code.
15079     CFLAGS="$CFLAGS -Wno-unused-function"
15081     # clang on macosx emits warnigns for each directory specified which
15082     # isn't "used" generating a lot of build noise (typically 3 warnings
15083     # per file
15084     case "$host_os" in
15085         darwin*)
15086             CFLAGS="$CFLAGS -Qunused-arguments"
15087         ;;
15088     esac
15089   fi
15091 ##This will break the world on some 64-bit architectures
15092 # CFLAGS="$CFLAGS -Winline"
15096 LIBEVENT_GC_SECTIONS=
15097 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15099 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15100 if ${libevent_cv_gc_sections_runs+:} false; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   
15104                                                                                             origCFLAGS="$CFLAGS"
15105             CFLAGS="$CFLAGS -Wl,--gc-sections"
15106             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h.  */
15109                         #include <stdlib.h>
15110                         #include <stdio.h>
15111                     
15113 main ()
15116                         FILE *  fpC;
15117                         char    buf[32];
15118                         size_t  cch;
15119                         int     read_success_once;
15121                         fpC = fopen("conftest.c", "r");
15122                         if (NULL == fpC)
15123                                 exit(1);
15124                         do {
15125                                 cch = fread(buf, sizeof(buf), 1, fpC);
15126                                 read_success_once |= (0 != cch);
15127                         } while (0 != cch);
15128                         if (!read_success_once)
15129                                 exit(2);
15130                         if (!feof(fpC))
15131                                 exit(3);
15132                         if (0 != fclose(fpC))
15133                                 exit(4);
15135                         exit(EXIT_SUCCESS);
15136                     
15137                 
15138   ;
15139   return 0;
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15143   
15144                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15145                         libevent_cv_gc_sections_runs=no
15146                     else
15147                         libevent_cv_gc_sections_runs=no
15148                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15149                     fi
15150                 
15151 else
15152   libevent_cv_gc_sections_runs=no
15153             
15155 rm -f core conftest.err conftest.$ac_objext \
15156     conftest$ac_exeext conftest.$ac_ext
15157             CFLAGS="$origCFLAGS"
15158             { origCFLAGS=; unset origCFLAGS;}
15159         
15160     
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15163 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15164     case "$libevent_cv_gc_sections_runs" in
15165      yes)
15166         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15167         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15168         ;;
15169     esac
15173  if test "$enable_libevent_install" = "yes"; then
15174   INSTALL_LIBEVENT_TRUE=
15175   INSTALL_LIBEVENT_FALSE='#'
15176 else
15177   INSTALL_LIBEVENT_TRUE='#'
15178   INSTALL_LIBEVENT_FALSE=
15182 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15184 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15186 cat >confcache <<\_ACEOF
15187 # This file is a shell script that caches the results of configure
15188 # tests run on this system so they can be shared between configure
15189 # scripts and configure runs, see configure's option --config-cache.
15190 # It is not useful on other systems.  If it contains results you don't
15191 # want to keep, you may remove or edit it.
15193 # config.status only pays attention to the cache file if you give it
15194 # the --recheck option to rerun configure.
15196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15198 # following values.
15200 _ACEOF
15202 # The following way of writing the cache mishandles newlines in values,
15203 # but we know of no workaround that is simple, portable, and efficient.
15204 # So, we kill variables containing newlines.
15205 # Ultrix sh set writes to stderr and can't be redirected directly,
15206 # and sets the high bit in the cache file unless we assign to the vars.
15208   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15209     eval ac_val=\$$ac_var
15210     case $ac_val in #(
15211     *${as_nl}*)
15212       case $ac_var in #(
15213       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15215       esac
15216       case $ac_var in #(
15217       _ | IFS | as_nl) ;; #(
15218       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15219       *) { eval $ac_var=; unset $ac_var;} ;;
15220       esac ;;
15221     esac
15222   done
15224   (set) 2>&1 |
15225     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15226     *${as_nl}ac_space=\ *)
15227       # `set' does not quote correctly, so add quotes: double-quote
15228       # substitution turns \\\\ into \\, and sed turns \\ into \.
15229       sed -n \
15230         "s/'/'\\\\''/g;
15231           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15232       ;; #(
15233     *)
15234       # `set' quotes correctly as required by POSIX, so do not add quotes.
15235       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15236       ;;
15237     esac |
15238     sort
15239 ) |
15240   sed '
15241      /^ac_cv_env_/b end
15242      t clear
15243      :clear
15244      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15245      t end
15246      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15247      :end' >>confcache
15248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15249   if test -w "$cache_file"; then
15250     if test "x$cache_file" != "x/dev/null"; then
15251       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15252 $as_echo "$as_me: updating cache $cache_file" >&6;}
15253       if test ! -f "$cache_file" || test -h "$cache_file"; then
15254         cat confcache >"$cache_file"
15255       else
15256         case $cache_file in #(
15257         */* | ?:*)
15258           mv -f confcache "$cache_file"$$ &&
15259           mv -f "$cache_file"$$ "$cache_file" ;; #(
15260         *)
15261           mv -f confcache "$cache_file" ;;
15262         esac
15263       fi
15264     fi
15265   else
15266     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15268   fi
15270 rm -f confcache
15272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15273 # Let make expand exec_prefix.
15274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15276 DEFS=-DHAVE_CONFIG_H
15278 ac_libobjs=
15279 ac_ltlibobjs=
15281 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15282   # 1. Remove the extension, and $U if already installed.
15283   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15284   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15285   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15286   #    will be set to the directory where LIBOBJS objects are built.
15287   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15288   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15289 done
15290 LIB@&t@OBJS=$ac_libobjs
15292 LTLIBOBJS=$ac_ltlibobjs
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15296 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15297    if test -n "$am_sleep_pid"; then
15298      # Hide warnings about reused PIDs.
15299      wait $am_sleep_pid 2>/dev/null
15300    fi
15301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15302 $as_echo "done" >&6; }
15303  if test -n "$EXEEXT"; then
15304   am__EXEEXT_TRUE=
15305   am__EXEEXT_FALSE='#'
15306 else
15307   am__EXEEXT_TRUE='#'
15308   am__EXEEXT_FALSE=
15311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15312   as_fn_error $? "conditional \"AMDEP\" was never defined.
15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15316   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15320   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15324   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15328   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15332   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15336   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15340   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15344   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15348   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15352   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15356   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15360   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15364   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15368   as_fn_error $? "conditional \"PTHREADS\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15372   as_fn_error $? "conditional \"OPENSSL\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15376   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 : "${CONFIG_STATUS=./config.status}"
15381 ac_write_fail=0
15382 ac_clean_files_save=$ac_clean_files
15383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15386 as_write_fail=0
15387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15388 #! $SHELL
15389 # Generated by $as_me.
15390 # Run this file to recreate the current configuration.
15391 # Compiler output produced by configure, useful for debugging
15392 # configure, is in config.log if it exists.
15394 debug=false
15395 ac_cs_recheck=false
15396 ac_cs_silent=false
15398 SHELL=\${CONFIG_SHELL-$SHELL}
15399 export SHELL
15400 _ASEOF
15401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15402 ## -------------------- ##
15403 ## M4sh Initialization. ##
15404 ## -------------------- ##
15406 # Be more Bourne compatible
15407 DUALCASE=1; export DUALCASE # for MKS sh
15408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15409   emulate sh
15410   NULLCMD=:
15411   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15412   # is contrary to our usage.  Disable this feature.
15413   alias -g '${1+"$@"}'='"$@"'
15414   setopt NO_GLOB_SUBST
15415 else
15416   case `(set -o) 2>/dev/null` in @%:@(
15417   *posix*) :
15418     set -o posix ;; @%:@(
15419   *) :
15420      ;;
15421 esac
15425 as_nl='
15427 export as_nl
15428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15432 # Prefer a ksh shell builtin over an external printf program on Solaris,
15433 # but without wasting forks for bash or zsh.
15434 if test -z "$BASH_VERSION$ZSH_VERSION" \
15435     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15436   as_echo='print -r --'
15437   as_echo_n='print -rn --'
15438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15439   as_echo='printf %s\n'
15440   as_echo_n='printf %s'
15441 else
15442   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15443     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15444     as_echo_n='/usr/ucb/echo -n'
15445   else
15446     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15447     as_echo_n_body='eval
15448       arg=$1;
15449       case $arg in @%:@(
15450       *"$as_nl"*)
15451         expr "X$arg" : "X\\(.*\\)$as_nl";
15452         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15453       esac;
15454       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15455     '
15456     export as_echo_n_body
15457     as_echo_n='sh -c $as_echo_n_body as_echo'
15458   fi
15459   export as_echo_body
15460   as_echo='sh -c $as_echo_body as_echo'
15463 # The user is always right.
15464 if test "${PATH_SEPARATOR+set}" != set; then
15465   PATH_SEPARATOR=:
15466   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15467     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15468       PATH_SEPARATOR=';'
15469   }
15473 # IFS
15474 # We need space, tab and new line, in precisely that order.  Quoting is
15475 # there to prevent editors from complaining about space-tab.
15476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15477 # splitting by setting IFS to empty value.)
15478 IFS=" ""        $as_nl"
15480 # Find who we are.  Look in the path if we contain no directory separator.
15481 as_myself=
15482 case $0 in @%:@((
15483   *[\\/]* ) as_myself=$0 ;;
15484   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15485 for as_dir in $PATH
15487   IFS=$as_save_IFS
15488   test -z "$as_dir" && as_dir=.
15489     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15490   done
15491 IFS=$as_save_IFS
15493      ;;
15494 esac
15495 # We did not find ourselves, most probably we were run as `sh COMMAND'
15496 # in which case we are not to be found in the path.
15497 if test "x$as_myself" = x; then
15498   as_myself=$0
15500 if test ! -f "$as_myself"; then
15501   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15502   exit 1
15505 # Unset variables that we do not need and which cause bugs (e.g. in
15506 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15507 # suppresses any "Segmentation fault" message there.  '((' could
15508 # trigger a bug in pdksh 5.2.14.
15509 for as_var in BASH_ENV ENV MAIL MAILPATH
15510 do eval test x\${$as_var+set} = xset \
15511   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15512 done
15513 PS1='$ '
15514 PS2='> '
15515 PS4='+ '
15517 # NLS nuisances.
15518 LC_ALL=C
15519 export LC_ALL
15520 LANGUAGE=C
15521 export LANGUAGE
15523 # CDPATH.
15524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15527 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15528 @%:@ ----------------------------------------
15529 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15530 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15531 @%:@ script with STATUS, using 1 if that was 0.
15532 as_fn_error ()
15534   as_status=$1; test $as_status -eq 0 && as_status=1
15535   if test "$4"; then
15536     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15537     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15538   fi
15539   $as_echo "$as_me: error: $2" >&2
15540   as_fn_exit $as_status
15541 } @%:@ as_fn_error
15544 @%:@ as_fn_set_status STATUS
15545 @%:@ -----------------------
15546 @%:@ Set @S|@? to STATUS, without forking.
15547 as_fn_set_status ()
15549   return $1
15550 } @%:@ as_fn_set_status
15552 @%:@ as_fn_exit STATUS
15553 @%:@ -----------------
15554 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15555 as_fn_exit ()
15557   set +e
15558   as_fn_set_status $1
15559   exit $1
15560 } @%:@ as_fn_exit
15562 @%:@ as_fn_unset VAR
15563 @%:@ ---------------
15564 @%:@ Portably unset VAR.
15565 as_fn_unset ()
15567   { eval $1=; unset $1;}
15569 as_unset=as_fn_unset
15570 @%:@ as_fn_append VAR VALUE
15571 @%:@ ----------------------
15572 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15573 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15574 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15575 @%:@ implementations.
15576 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15577   eval 'as_fn_append ()
15578   {
15579     eval $1+=\$2
15580   }'
15581 else
15582   as_fn_append ()
15583   {
15584     eval $1=\$$1\$2
15585   }
15586 fi # as_fn_append
15588 @%:@ as_fn_arith ARG...
15589 @%:@ ------------------
15590 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15591 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15592 @%:@ must be portable across @S|@(()) and expr.
15593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15594   eval 'as_fn_arith ()
15595   {
15596     as_val=$(( $* ))
15597   }'
15598 else
15599   as_fn_arith ()
15600   {
15601     as_val=`expr "$@" || test $? -eq 1`
15602   }
15603 fi # as_fn_arith
15606 if expr a : '\(a\)' >/dev/null 2>&1 &&
15607    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15608   as_expr=expr
15609 else
15610   as_expr=false
15613 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15614   as_basename=basename
15615 else
15616   as_basename=false
15619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15620   as_dirname=dirname
15621 else
15622   as_dirname=false
15625 as_me=`$as_basename -- "$0" ||
15626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15627          X"$0" : 'X\(//\)$' \| \
15628          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15629 $as_echo X/"$0" |
15630     sed '/^.*\/\([^/][^/]*\)\/*$/{
15631             s//\1/
15632             q
15633           }
15634           /^X\/\(\/\/\)$/{
15635             s//\1/
15636             q
15637           }
15638           /^X\/\(\/\).*/{
15639             s//\1/
15640             q
15641           }
15642           s/.*/./; q'`
15644 # Avoid depending upon Character Ranges.
15645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15648 as_cr_digits='0123456789'
15649 as_cr_alnum=$as_cr_Letters$as_cr_digits
15651 ECHO_C= ECHO_N= ECHO_T=
15652 case `echo -n x` in @%:@(((((
15653 -n*)
15654   case `echo 'xy\c'` in
15655   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15656   xy)  ECHO_C='\c';;
15657   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15658        ECHO_T=' ';;
15659   esac;;
15661   ECHO_N='-n';;
15662 esac
15664 rm -f conf$$ conf$$.exe conf$$.file
15665 if test -d conf$$.dir; then
15666   rm -f conf$$.dir/conf$$.file
15667 else
15668   rm -f conf$$.dir
15669   mkdir conf$$.dir 2>/dev/null
15671 if (echo >conf$$.file) 2>/dev/null; then
15672   if ln -s conf$$.file conf$$ 2>/dev/null; then
15673     as_ln_s='ln -s'
15674     # ... but there are two gotchas:
15675     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15676     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15677     # In both cases, we have to default to `cp -pR'.
15678     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15679       as_ln_s='cp -pR'
15680   elif ln conf$$.file conf$$ 2>/dev/null; then
15681     as_ln_s=ln
15682   else
15683     as_ln_s='cp -pR'
15684   fi
15685 else
15686   as_ln_s='cp -pR'
15688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15689 rmdir conf$$.dir 2>/dev/null
15692 @%:@ as_fn_mkdir_p
15693 @%:@ -------------
15694 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15695 as_fn_mkdir_p ()
15698   case $as_dir in #(
15699   -*) as_dir=./$as_dir;;
15700   esac
15701   test -d "$as_dir" || eval $as_mkdir_p || {
15702     as_dirs=
15703     while :; do
15704       case $as_dir in #(
15705       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15706       *) as_qdir=$as_dir;;
15707       esac
15708       as_dirs="'$as_qdir' $as_dirs"
15709       as_dir=`$as_dirname -- "$as_dir" ||
15710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15711          X"$as_dir" : 'X\(//\)[^/]' \| \
15712          X"$as_dir" : 'X\(//\)$' \| \
15713          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15714 $as_echo X"$as_dir" |
15715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15716             s//\1/
15717             q
15718           }
15719           /^X\(\/\/\)[^/].*/{
15720             s//\1/
15721             q
15722           }
15723           /^X\(\/\/\)$/{
15724             s//\1/
15725             q
15726           }
15727           /^X\(\/\).*/{
15728             s//\1/
15729             q
15730           }
15731           s/.*/./; q'`
15732       test -d "$as_dir" && break
15733     done
15734     test -z "$as_dirs" || eval "mkdir $as_dirs"
15735   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15738 } @%:@ as_fn_mkdir_p
15739 if mkdir -p . 2>/dev/null; then
15740   as_mkdir_p='mkdir -p "$as_dir"'
15741 else
15742   test -d ./-p && rmdir ./-p
15743   as_mkdir_p=false
15747 @%:@ as_fn_executable_p FILE
15748 @%:@ -----------------------
15749 @%:@ Test if FILE is an executable regular file.
15750 as_fn_executable_p ()
15752   test -f "$1" && test -x "$1"
15753 } @%:@ as_fn_executable_p
15754 as_test_x='test -x'
15755 as_executable_p=as_fn_executable_p
15757 # Sed expression to map a string onto a valid CPP name.
15758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15760 # Sed expression to map a string onto a valid variable name.
15761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15764 exec 6>&1
15765 ## ----------------------------------- ##
15766 ## Main body of $CONFIG_STATUS script. ##
15767 ## ----------------------------------- ##
15768 _ASEOF
15769 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772 # Save the log message, to keep $0 and so on meaningful, and to
15773 # report actual input values of CONFIG_FILES etc. instead of their
15774 # values after options handling.
15775 ac_log="
15776 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15777 generated by GNU Autoconf 2.69.  Invocation command line was
15779   CONFIG_FILES    = $CONFIG_FILES
15780   CONFIG_HEADERS  = $CONFIG_HEADERS
15781   CONFIG_LINKS    = $CONFIG_LINKS
15782   CONFIG_COMMANDS = $CONFIG_COMMANDS
15783   $ $0 $@
15785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15788 _ACEOF
15790 case $ac_config_files in *"
15791 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15792 esac
15794 case $ac_config_headers in *"
15795 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15796 esac
15799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800 # Files that config.status was made for.
15801 config_files="$ac_config_files"
15802 config_headers="$ac_config_headers"
15803 config_commands="$ac_config_commands"
15805 _ACEOF
15807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15808 ac_cs_usage="\
15809 \`$as_me' instantiates files and other configuration actions
15810 from templates according to the current configuration.  Unless the files
15811 and actions are specified as TAGs, all are instantiated by default.
15813 Usage: $0 [OPTION]... [TAG]...
15815   -h, --help       print this help, then exit
15816   -V, --version    print version number and configuration settings, then exit
15817       --config     print configuration, then exit
15818   -q, --quiet, --silent
15819                    do not print progress messages
15820   -d, --debug      don't remove temporary files
15821       --recheck    update $as_me by reconfiguring in the same conditions
15822       --file=FILE[:TEMPLATE] 
15823                    instantiate the configuration file FILE
15824       --header=FILE[:TEMPLATE] 
15825                    instantiate the configuration header FILE
15827 Configuration files:
15828 $config_files
15830 Configuration headers:
15831 $config_headers
15833 Configuration commands:
15834 $config_commands
15836 Report bugs to the package provider."
15838 _ACEOF
15839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15840 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15841 ac_cs_version="\\
15842 libevent config.status 2.0.21-stable-dev
15843 configured by $0, generated by GNU Autoconf 2.69,
15844   with options \\"\$ac_cs_config\\"
15846 Copyright (C) 2012 Free Software Foundation, Inc.
15847 This config.status script is free software; the Free Software Foundation
15848 gives unlimited permission to copy, distribute and modify it."
15850 ac_pwd='$ac_pwd'
15851 srcdir='$srcdir'
15852 INSTALL='$INSTALL'
15853 MKDIR_P='$MKDIR_P'
15854 AWK='$AWK'
15855 test -n "\$AWK" || AWK=awk
15856 _ACEOF
15858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859 # The default lists apply if the user does not specify any file.
15860 ac_need_defaults=:
15861 while test $# != 0
15863   case $1 in
15864   --*=?*)
15865     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15866     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15867     ac_shift=:
15868     ;;
15869   --*=)
15870     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15871     ac_optarg=
15872     ac_shift=:
15873     ;;
15874   *)
15875     ac_option=$1
15876     ac_optarg=$2
15877     ac_shift=shift
15878     ;;
15879   esac
15881   case $ac_option in
15882   # Handling of the options.
15883   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15884     ac_cs_recheck=: ;;
15885   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15886     $as_echo "$ac_cs_version"; exit ;;
15887   --config | --confi | --conf | --con | --co | --c )
15888     $as_echo "$ac_cs_config"; exit ;;
15889   --debug | --debu | --deb | --de | --d | -d )
15890     debug=: ;;
15891   --file | --fil | --fi | --f )
15892     $ac_shift
15893     case $ac_optarg in
15894     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15895     '') as_fn_error $? "missing file argument" ;;
15896     esac
15897     as_fn_append CONFIG_FILES " '$ac_optarg'"
15898     ac_need_defaults=false;;
15899   --header | --heade | --head | --hea )
15900     $ac_shift
15901     case $ac_optarg in
15902     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15903     esac
15904     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15905     ac_need_defaults=false;;
15906   --he | --h)
15907     # Conflict between --help and --header
15908     as_fn_error $? "ambiguous option: \`$1'
15909 Try \`$0 --help' for more information.";;
15910   --help | --hel | -h )
15911     $as_echo "$ac_cs_usage"; exit ;;
15912   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15913   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15914     ac_cs_silent=: ;;
15916   # This is an error.
15917   -*) as_fn_error $? "unrecognized option: \`$1'
15918 Try \`$0 --help' for more information." ;;
15920   *) as_fn_append ac_config_targets " $1"
15921      ac_need_defaults=false ;;
15923   esac
15924   shift
15925 done
15927 ac_configure_extra_args=
15929 if $ac_cs_silent; then
15930   exec 6>/dev/null
15931   ac_configure_extra_args="$ac_configure_extra_args --silent"
15934 _ACEOF
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 if \$ac_cs_recheck; then
15937   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15938   shift
15939   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15940   CONFIG_SHELL='$SHELL'
15941   export CONFIG_SHELL
15942   exec "\$@"
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947 exec 5>>config.log
15949   echo
15950   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15951 @%:@@%:@ Running $as_me. @%:@@%:@
15952 _ASBOX
15953   $as_echo "$ac_log"
15954 } >&5
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15959 # INIT-COMMANDS
15961 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15964 # The HP-UX ksh and POSIX shell print the target directory to stdout
15965 # if CDPATH is set.
15966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15968 sed_quote_subst='$sed_quote_subst'
15969 double_quote_subst='$double_quote_subst'
15970 delay_variable_subst='$delay_variable_subst'
15971 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15972 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15973 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15974 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15975 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15976 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15977 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15978 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15979 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15980 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15981 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15982 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15983 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15984 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15985 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15986 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15987 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15988 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15989 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15990 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15991 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15992 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15993 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15994 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15995 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15996 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15997 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15998 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15999 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16000 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16001 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16002 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16003 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16004 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16005 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16006 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16007 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16008 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16009 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16010 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16011 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16012 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16013 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16014 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16015 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16016 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16017 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16018 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16019 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16020 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16021 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16022 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16023 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16024 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16025 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16026 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16027 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"`'
16028 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16029 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16030 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16031 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16032 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16033 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16034 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16035 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16036 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16037 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16038 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16039 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16040 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16041 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16042 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16043 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16044 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16045 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16046 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16047 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16048 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16049 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16050 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16051 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16052 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16053 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16054 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16055 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16056 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16057 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16058 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16059 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16060 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16061 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16062 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16063 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16064 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16065 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16066 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16067 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16068 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16069 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16070 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16071 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16072 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16073 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16074 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16075 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16076 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16077 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16078 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16079 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16080 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16081 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16082 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16083 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16084 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16085 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16086 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16087 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16088 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16089 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16090 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16091 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16092 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16093 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16094 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16095 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16096 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16097 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16098 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16099 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16100 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16102 LTCC='$LTCC'
16103 LTCFLAGS='$LTCFLAGS'
16104 compiler='$compiler_DEFAULT'
16106 # A function that is used when there is no print builtin or printf.
16107 func_fallback_echo ()
16109   eval 'cat <<_LTECHO_EOF
16111 _LTECHO_EOF'
16114 # Quote evaled strings.
16115 for var in SHELL \
16116 ECHO \
16117 PATH_SEPARATOR \
16118 SED \
16119 GREP \
16120 EGREP \
16121 FGREP \
16122 LD \
16123 NM \
16124 LN_S \
16125 lt_SP2NL \
16126 lt_NL2SP \
16127 reload_flag \
16128 OBJDUMP \
16129 deplibs_check_method \
16130 file_magic_cmd \
16131 file_magic_glob \
16132 want_nocaseglob \
16133 DLLTOOL \
16134 sharedlib_from_linklib_cmd \
16135 AR \
16136 AR_FLAGS \
16137 archiver_list_spec \
16138 STRIP \
16139 RANLIB \
16140 CC \
16141 CFLAGS \
16142 compiler \
16143 lt_cv_sys_global_symbol_pipe \
16144 lt_cv_sys_global_symbol_to_cdecl \
16145 lt_cv_sys_global_symbol_to_c_name_address \
16146 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16147 nm_file_list_spec \
16148 lt_prog_compiler_no_builtin_flag \
16149 lt_prog_compiler_pic \
16150 lt_prog_compiler_wl \
16151 lt_prog_compiler_static \
16152 lt_cv_prog_compiler_c_o \
16153 need_locks \
16154 MANIFEST_TOOL \
16155 DSYMUTIL \
16156 NMEDIT \
16157 LIPO \
16158 OTOOL \
16159 OTOOL64 \
16160 shrext_cmds \
16161 export_dynamic_flag_spec \
16162 whole_archive_flag_spec \
16163 compiler_needs_object \
16164 with_gnu_ld \
16165 allow_undefined_flag \
16166 no_undefined_flag \
16167 hardcode_libdir_flag_spec \
16168 hardcode_libdir_separator \
16169 exclude_expsyms \
16170 include_expsyms \
16171 file_list_spec \
16172 variables_saved_for_relink \
16173 libname_spec \
16174 library_names_spec \
16175 soname_spec \
16176 install_override_mode \
16177 finish_eval \
16178 old_striplib \
16179 striplib; do
16180     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16181     *[\\\\\\\`\\"\\\$]*)
16182       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16183       ;;
16184     *)
16185       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16186       ;;
16187     esac
16188 done
16190 # Double-quote double-evaled strings.
16191 for var in reload_cmds \
16192 old_postinstall_cmds \
16193 old_postuninstall_cmds \
16194 old_archive_cmds \
16195 extract_expsyms_cmds \
16196 old_archive_from_new_cmds \
16197 old_archive_from_expsyms_cmds \
16198 archive_cmds \
16199 archive_expsym_cmds \
16200 module_cmds \
16201 module_expsym_cmds \
16202 export_symbols_cmds \
16203 prelink_cmds \
16204 postlink_cmds \
16205 postinstall_cmds \
16206 postuninstall_cmds \
16207 finish_cmds \
16208 sys_lib_search_path_spec \
16209 sys_lib_dlsearch_path_spec; do
16210     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16211     *[\\\\\\\`\\"\\\$]*)
16212       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16213       ;;
16214     *)
16215       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16216       ;;
16217     esac
16218 done
16220 ac_aux_dir='$ac_aux_dir'
16221 xsi_shell='$xsi_shell'
16222 lt_shell_append='$lt_shell_append'
16224 # See if we are running on zsh, and set the options which allow our
16225 # commands through without removal of \ escapes INIT.
16226 if test -n "\${ZSH_VERSION+set}" ; then
16227    setopt NO_GLOB_SUBST
16231     PACKAGE='$PACKAGE'
16232     VERSION='$VERSION'
16233     TIMESTAMP='$TIMESTAMP'
16234     RM='$RM'
16235     ofile='$ofile'
16240 _ACEOF
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 # Handling of arguments.
16245 for ac_config_target in $ac_config_targets
16247   case $ac_config_target in
16248     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16249     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16250     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16251     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16252     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16253     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16254     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16255     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16256     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16257     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16259   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16260   esac
16261 done
16264 # If the user did not use the arguments to specify the items to instantiate,
16265 # then the envvar interface is used.  Set only those that are not.
16266 # We use the long form for the default assignment because of an extremely
16267 # bizarre bug on SunOS 4.1.3.
16268 if $ac_need_defaults; then
16269   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16270   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16271   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16274 # Have a temporary directory for convenience.  Make it in the build tree
16275 # simply because there is no reason against having it here, and in addition,
16276 # creating and moving files from /tmp can sometimes cause problems.
16277 # Hook for its removal unless debugging.
16278 # Note that there is a small window in which the directory will not be cleaned:
16279 # after its creation but before its name has been assigned to `$tmp'.
16280 $debug ||
16282   tmp= ac_tmp=
16283   trap 'exit_status=$?
16284   : "${ac_tmp:=$tmp}"
16285   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16286 ' 0
16287   trap 'as_fn_exit 1' 1 2 13 15
16289 # Create a (secure) tmp directory for tmp files.
16292   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16293   test -d "$tmp"
16294 }  ||
16296   tmp=./conf$$-$RANDOM
16297   (umask 077 && mkdir "$tmp")
16298 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16299 ac_tmp=$tmp
16301 # Set up the scripts for CONFIG_FILES section.
16302 # No need to generate them if there are no CONFIG_FILES.
16303 # This happens for instance with `./config.status config.h'.
16304 if test -n "$CONFIG_FILES"; then
16307 ac_cr=`echo X | tr X '\015'`
16308 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16309 # But we know of no other shell where ac_cr would be empty at this
16310 # point, so we can use a bashism as a fallback.
16311 if test "x$ac_cr" = x; then
16312   eval ac_cr=\$\'\\r\'
16314 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16315 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16316   ac_cs_awk_cr='\\r'
16317 else
16318   ac_cs_awk_cr=$ac_cr
16321 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16322 _ACEOF
16326   echo "cat >conf$$subs.awk <<_ACEOF" &&
16327   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16328   echo "_ACEOF"
16329 } >conf$$subs.sh ||
16330   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16331 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16332 ac_delim='%!_!# '
16333 for ac_last_try in false false false false false :; do
16334   . ./conf$$subs.sh ||
16335     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16337   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16338   if test $ac_delim_n = $ac_delim_num; then
16339     break
16340   elif $ac_last_try; then
16341     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16342   else
16343     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16344   fi
16345 done
16346 rm -f conf$$subs.sh
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16350 _ACEOF
16351 sed -n '
16353 s/^/S["/; s/!.*/"]=/
16356 s/^[^!]*!//
16357 :repl
16358 t repl
16359 s/'"$ac_delim"'$//
16360 t delim
16363 s/\(.\{148\}\)..*/\1/
16364 t more1
16365 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16368 b repl
16369 :more1
16370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16373 s/.\{148\}//
16374 t nl
16375 :delim
16377 s/\(.\{148\}\)..*/\1/
16378 t more2
16379 s/["\\]/\\&/g; s/^/"/; s/$/"/
16382 :more2
16383 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16386 s/.\{148\}//
16387 t delim
16388 ' <conf$$subs.awk | sed '
16389 /^[^""]/{
16390   N
16391   s/\n//
16393 ' >>$CONFIG_STATUS || ac_write_fail=1
16394 rm -f conf$$subs.awk
16395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16396 _ACAWK
16397 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16398   for (key in S) S_is_set[key] = 1
16399   FS = "\a"
16403   line = $ 0
16404   nfields = split(line, field, "@")
16405   substed = 0
16406   len = length(field[1])
16407   for (i = 2; i < nfields; i++) {
16408     key = field[i]
16409     keylen = length(key)
16410     if (S_is_set[key]) {
16411       value = S[key]
16412       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16413       len += length(value) + length(field[++i])
16414       substed = 1
16415     } else
16416       len += 1 + keylen
16417   }
16419   print line
16422 _ACAWK
16423 _ACEOF
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16426   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16427 else
16428   cat
16429 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16430   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16431 _ACEOF
16433 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16434 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16435 # trailing colons and then remove the whole line if VPATH becomes empty
16436 # (actually we leave an empty line to preserve line numbers).
16437 if test "x$srcdir" = x.; then
16438   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16440 s///
16441 s/^/:/
16442 s/[      ]*$/:/
16443 s/:\$(srcdir):/:/g
16444 s/:\${srcdir}:/:/g
16445 s/:@srcdir@:/:/g
16446 s/^:*//
16447 s/:*$//
16449 s/\(=[   ]*\).*/\1/
16451 s/\n//
16452 s/^[^=]*=[       ]*$//
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457 fi # test -n "$CONFIG_FILES"
16459 # Set up the scripts for CONFIG_HEADERS section.
16460 # No need to generate them if there are no CONFIG_HEADERS.
16461 # This happens for instance with `./config.status Makefile'.
16462 if test -n "$CONFIG_HEADERS"; then
16463 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16464 BEGIN {
16465 _ACEOF
16467 # Transform confdefs.h into an awk script `defines.awk', embedded as
16468 # here-document in config.status, that substitutes the proper values into
16469 # config.h.in to produce config.h.
16471 # Create a delimiter string that does not exist in confdefs.h, to ease
16472 # handling of long lines.
16473 ac_delim='%!_!# '
16474 for ac_last_try in false false :; do
16475   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16476   if test -z "$ac_tt"; then
16477     break
16478   elif $ac_last_try; then
16479     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16480   else
16481     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16482   fi
16483 done
16485 # For the awk script, D is an array of macro values keyed by name,
16486 # likewise P contains macro parameters if any.  Preserve backslash
16487 # newline sequences.
16489 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16490 sed -n '
16491 s/.\{148\}/&'"$ac_delim"'/g
16492 t rset
16493 :rset
16494 s/^[     ]*#[    ]*define[       ][      ]*/ /
16495 t def
16497 :def
16498 s/\\$//
16499 t bsnl
16500 s/["\\]/\\&/g
16501 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16502 D["\1"]=" \3"/p
16503 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16505 :bsnl
16506 s/["\\]/\\&/g
16507 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16508 D["\1"]=" \3\\\\\\n"\\/p
16509 t cont
16510 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16511 t cont
16513 :cont
16515 s/.\{148\}/&'"$ac_delim"'/g
16516 t clear
16517 :clear
16518 s/\\$//
16519 t bsnlc
16520 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16522 :bsnlc
16523 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16524 b cont
16525 ' <confdefs.h | sed '
16526 s/'"$ac_delim"'/"\\\
16527 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530   for (key in D) D_is_set[key] = 1
16531   FS = "\a"
16533 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16534   line = \$ 0
16535   split(line, arg, " ")
16536   if (arg[1] == "#") {
16537     defundef = arg[2]
16538     mac1 = arg[3]
16539   } else {
16540     defundef = substr(arg[1], 2)
16541     mac1 = arg[2]
16542   }
16543   split(mac1, mac2, "(") #)
16544   macro = mac2[1]
16545   prefix = substr(line, 1, index(line, defundef) - 1)
16546   if (D_is_set[macro]) {
16547     # Preserve the white space surrounding the "#".
16548     print prefix "define", macro P[macro] D[macro]
16549     next
16550   } else {
16551     # Replace #undef with comments.  This is necessary, for example,
16552     # in the case of _POSIX_SOURCE, which is predefined and required
16553     # on some systems where configure will not decide to define it.
16554     if (defundef == "undef") {
16555       print "/*", prefix defundef, macro, "*/"
16556       next
16557     }
16558   }
16560 { print }
16561 _ACAWK
16562 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16565 fi # test -n "$CONFIG_HEADERS"
16568 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16569 shift
16570 for ac_tag
16572   case $ac_tag in
16573   :[FHLC]) ac_mode=$ac_tag; continue;;
16574   esac
16575   case $ac_mode$ac_tag in
16576   :[FHL]*:*);;
16577   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16578   :[FH]-) ac_tag=-:-;;
16579   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16580   esac
16581   ac_save_IFS=$IFS
16582   IFS=:
16583   set x $ac_tag
16584   IFS=$ac_save_IFS
16585   shift
16586   ac_file=$1
16587   shift
16589   case $ac_mode in
16590   :L) ac_source=$1;;
16591   :[FH])
16592     ac_file_inputs=
16593     for ac_f
16594     do
16595       case $ac_f in
16596       -) ac_f="$ac_tmp/stdin";;
16597       *) # Look for the file first in the build tree, then in the source tree
16598          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16599          # because $ac_f cannot contain `:'.
16600          test -f "$ac_f" ||
16601            case $ac_f in
16602            [\\/$]*) false;;
16603            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16604            esac ||
16605            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16606       esac
16607       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16608       as_fn_append ac_file_inputs " '$ac_f'"
16609     done
16611     # Let's still pretend it is `configure' which instantiates (i.e., don't
16612     # use $as_me), people would be surprised to read:
16613     #    /* config.h.  Generated by config.status.  */
16614     configure_input='Generated from '`
16615           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16616         `' by configure.'
16617     if test x"$ac_file" != x-; then
16618       configure_input="$ac_file.  $configure_input"
16619       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16620 $as_echo "$as_me: creating $ac_file" >&6;}
16621     fi
16622     # Neutralize special characters interpreted by sed in replacement strings.
16623     case $configure_input in #(
16624     *\&* | *\|* | *\\* )
16625        ac_sed_conf_input=`$as_echo "$configure_input" |
16626        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16627     *) ac_sed_conf_input=$configure_input;;
16628     esac
16630     case $ac_tag in
16631     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16632       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16633     esac
16634     ;;
16635   esac
16637   ac_dir=`$as_dirname -- "$ac_file" ||
16638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16639          X"$ac_file" : 'X\(//\)[^/]' \| \
16640          X"$ac_file" : 'X\(//\)$' \| \
16641          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16642 $as_echo X"$ac_file" |
16643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16644             s//\1/
16645             q
16646           }
16647           /^X\(\/\/\)[^/].*/{
16648             s//\1/
16649             q
16650           }
16651           /^X\(\/\/\)$/{
16652             s//\1/
16653             q
16654           }
16655           /^X\(\/\).*/{
16656             s//\1/
16657             q
16658           }
16659           s/.*/./; q'`
16660   as_dir="$ac_dir"; as_fn_mkdir_p
16661   ac_builddir=.
16663 case "$ac_dir" in
16664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16666   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16667   # A ".." for each directory in $ac_dir_suffix.
16668   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16669   case $ac_top_builddir_sub in
16670   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16671   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16672   esac ;;
16673 esac
16674 ac_abs_top_builddir=$ac_pwd
16675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16676 # for backward compatibility:
16677 ac_top_builddir=$ac_top_build_prefix
16679 case $srcdir in
16680   .)  # We are building in place.
16681     ac_srcdir=.
16682     ac_top_srcdir=$ac_top_builddir_sub
16683     ac_abs_top_srcdir=$ac_pwd ;;
16684   [\\/]* | ?:[\\/]* )  # Absolute name.
16685     ac_srcdir=$srcdir$ac_dir_suffix;
16686     ac_top_srcdir=$srcdir
16687     ac_abs_top_srcdir=$srcdir ;;
16688   *) # Relative name.
16689     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16690     ac_top_srcdir=$ac_top_build_prefix$srcdir
16691     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16692 esac
16693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16696   case $ac_mode in
16697   :F)
16698   #
16699   # CONFIG_FILE
16700   #
16702   case $INSTALL in
16703   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16704   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16705   esac
16706   ac_MKDIR_P=$MKDIR_P
16707   case $MKDIR_P in
16708   [\\/$]* | ?:[\\/]* ) ;;
16709   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16710   esac
16711 _ACEOF
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 # If the template does not know about datarootdir, expand it.
16715 # FIXME: This hack should be removed a few years after 2.60.
16716 ac_datarootdir_hack=; ac_datarootdir_seen=
16717 ac_sed_dataroot='
16718 /datarootdir/ {
16719   p
16720   q
16722 /@datadir@/p
16723 /@docdir@/p
16724 /@infodir@/p
16725 /@localedir@/p
16726 /@mandir@/p'
16727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16728 *datarootdir*) ac_datarootdir_seen=yes;;
16729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734   ac_datarootdir_hack='
16735   s&@datadir@&$datadir&g
16736   s&@docdir@&$docdir&g
16737   s&@infodir@&$infodir&g
16738   s&@localedir@&$localedir&g
16739   s&@mandir@&$mandir&g
16740   s&\\\${datarootdir}&$datarootdir&g' ;;
16741 esac
16742 _ACEOF
16744 # Neutralize VPATH when `$srcdir' = `.'.
16745 # Shell code in configure.ac might set extrasub.
16746 # FIXME: do we really want to maintain this feature?
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 ac_sed_extra="$ac_vpsub
16749 $extrasub
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16754 s|@configure_input@|$ac_sed_conf_input|;t t
16755 s&@top_builddir@&$ac_top_builddir_sub&;t t
16756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16757 s&@srcdir@&$ac_srcdir&;t t
16758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16759 s&@top_srcdir@&$ac_top_srcdir&;t t
16760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16761 s&@builddir@&$ac_builddir&;t t
16762 s&@abs_builddir@&$ac_abs_builddir&;t t
16763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16764 s&@INSTALL@&$ac_INSTALL&;t t
16765 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16766 $ac_datarootdir_hack
16768 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16769   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16772   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16773   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16774       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16776 which seems to be undefined.  Please make sure it is defined" >&5
16777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16778 which seems to be undefined.  Please make sure it is defined" >&2;}
16780   rm -f "$ac_tmp/stdin"
16781   case $ac_file in
16782   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16783   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16784   esac \
16785   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16786  ;;
16787   :H)
16788   #
16789   # CONFIG_HEADER
16790   #
16791   if test x"$ac_file" != x-; then
16792     {
16793       $as_echo "/* $configure_input  */" \
16794       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16795     } >"$ac_tmp/config.h" \
16796       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16797     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16798       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16800     else
16801       rm -f "$ac_file"
16802       mv "$ac_tmp/config.h" "$ac_file" \
16803         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16804     fi
16805   else
16806     $as_echo "/* $configure_input  */" \
16807       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16808       || as_fn_error $? "could not create -" "$LINENO" 5
16809   fi
16810 # Compute "$ac_file"'s index in $config_headers.
16811 _am_arg="$ac_file"
16812 _am_stamp_count=1
16813 for _am_header in $config_headers :; do
16814   case $_am_header in
16815     $_am_arg | $_am_arg:* )
16816       break ;;
16817     * )
16818       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16819   esac
16820 done
16821 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16822 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16823          X"$_am_arg" : 'X\(//\)[^/]' \| \
16824          X"$_am_arg" : 'X\(//\)$' \| \
16825          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16826 $as_echo X"$_am_arg" |
16827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16828             s//\1/
16829             q
16830           }
16831           /^X\(\/\/\)[^/].*/{
16832             s//\1/
16833             q
16834           }
16835           /^X\(\/\/\)$/{
16836             s//\1/
16837             q
16838           }
16839           /^X\(\/\).*/{
16840             s//\1/
16841             q
16842           }
16843           s/.*/./; q'`/stamp-h$_am_stamp_count
16844  ;;
16845   
16846   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16847 $as_echo "$as_me: executing $ac_file commands" >&6;}
16848  ;;
16849   esac
16852   case $ac_file$ac_mode in
16853     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16854   # Older Autoconf quotes --file arguments for eval, but not when files
16855   # are listed without --file.  Let's play safe and only enable the eval
16856   # if we detect the quoting.
16857   case $CONFIG_FILES in
16858   *\'*) eval set x "$CONFIG_FILES" ;;
16859   *)   set x $CONFIG_FILES ;;
16860   esac
16861   shift
16862   for mf
16863   do
16864     # Strip MF so we end up with the name of the file.
16865     mf=`echo "$mf" | sed -e 's/:.*$//'`
16866     # Check whether this is an Automake generated Makefile or not.
16867     # We used to match only the files named 'Makefile.in', but
16868     # some people rename them; so instead we look at the file content.
16869     # Grep'ing the first line is not enough: some people post-process
16870     # each Makefile.in and add a new line on top of each file to say so.
16871     # Grep'ing the whole file is not good either: AIX grep has a line
16872     # limit of 2048, but all sed's we know have understand at least 4000.
16873     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16874       dirpart=`$as_dirname -- "$mf" ||
16875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16876          X"$mf" : 'X\(//\)[^/]' \| \
16877          X"$mf" : 'X\(//\)$' \| \
16878          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16879 $as_echo X"$mf" |
16880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16881             s//\1/
16882             q
16883           }
16884           /^X\(\/\/\)[^/].*/{
16885             s//\1/
16886             q
16887           }
16888           /^X\(\/\/\)$/{
16889             s//\1/
16890             q
16891           }
16892           /^X\(\/\).*/{
16893             s//\1/
16894             q
16895           }
16896           s/.*/./; q'`
16897     else
16898       continue
16899     fi
16900     # Extract the definition of DEPDIR, am__include, and am__quote
16901     # from the Makefile without running 'make'.
16902     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16903     test -z "$DEPDIR" && continue
16904     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16905     test -z "$am__include" && continue
16906     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16907     # Find all dependency output files, they are included files with
16908     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16909     # simplest approach to changing $(DEPDIR) to its actual value in the
16910     # expansion.
16911     for file in `sed -n "
16912       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16913          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16914       # Make sure the directory exists.
16915       test -f "$dirpart/$file" && continue
16916       fdir=`$as_dirname -- "$file" ||
16917 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918          X"$file" : 'X\(//\)[^/]' \| \
16919          X"$file" : 'X\(//\)$' \| \
16920          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16921 $as_echo X"$file" |
16922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16923             s//\1/
16924             q
16925           }
16926           /^X\(\/\/\)[^/].*/{
16927             s//\1/
16928             q
16929           }
16930           /^X\(\/\/\)$/{
16931             s//\1/
16932             q
16933           }
16934           /^X\(\/\).*/{
16935             s//\1/
16936             q
16937           }
16938           s/.*/./; q'`
16939       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16940       # echo "creating $dirpart/$file"
16941       echo '# dummy' > "$dirpart/$file"
16942     done
16943   done
16945  ;;
16946     "libtool":C) 
16947     
16948     # See if we are running on zsh, and set the options which allow our
16949     # commands through without removal of \ escapes.
16950     if test -n "${ZSH_VERSION+set}" ; then
16951       setopt NO_GLOB_SUBST
16952     fi
16954     cfgfile="${ofile}T"
16955     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16956     $RM "$cfgfile"
16958     cat <<_LT_EOF >> "$cfgfile"
16959 #! $SHELL
16961 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16962 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16964 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16966 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16967 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16968 #                 Foundation, Inc.
16969 #   Written by Gordon Matzigkeit, 1996
16971 #   This file is part of GNU Libtool.
16973 # GNU Libtool is free software; you can redistribute it and/or
16974 # modify it under the terms of the GNU General Public License as
16975 # published by the Free Software Foundation; either version 2 of
16976 # the License, or (at your option) any later version.
16978 # As a special exception to the GNU General Public License,
16979 # if you distribute this file as part of a program or library that
16980 # is built using GNU Libtool, you may include this file under the
16981 # same distribution terms that you use for the rest of that program.
16983 # GNU Libtool is distributed in the hope that it will be useful,
16984 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16986 # GNU General Public License for more details.
16988 # You should have received a copy of the GNU General Public License
16989 # along with GNU Libtool; see the file COPYING.  If not, a copy
16990 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16991 # obtained by writing to the Free Software Foundation, Inc.,
16992 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16995 # The names of the tagged configurations supported by this script.
16996 available_tags=""
16998 # ### BEGIN LIBTOOL CONFIG
17000 # Which release of libtool.m4 was used?
17001 macro_version=$macro_version
17002 macro_revision=$macro_revision
17004 # Whether or not to build shared libraries.
17005 build_libtool_libs=$enable_shared
17007 # Whether or not to build static libraries.
17008 build_old_libs=$enable_static
17010 # What type of objects to build.
17011 pic_mode=$pic_mode
17013 # Whether or not to optimize for fast installation.
17014 fast_install=$enable_fast_install
17016 # Shell to use when invoking shell scripts.
17017 SHELL=$lt_SHELL
17019 # An echo program that protects backslashes.
17020 ECHO=$lt_ECHO
17022 # The PATH separator for the build system.
17023 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17025 # The host system.
17026 host_alias=$host_alias
17027 host=$host
17028 host_os=$host_os
17030 # The build system.
17031 build_alias=$build_alias
17032 build=$build
17033 build_os=$build_os
17035 # A sed program that does not truncate output.
17036 SED=$lt_SED
17038 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17039 Xsed="\$SED -e 1s/^X//"
17041 # A grep program that handles long lines.
17042 GREP=$lt_GREP
17044 # An ERE matcher.
17045 EGREP=$lt_EGREP
17047 # A literal string matcher.
17048 FGREP=$lt_FGREP
17050 # A BSD- or MS-compatible name lister.
17051 NM=$lt_NM
17053 # Whether we need soft or hard links.
17054 LN_S=$lt_LN_S
17056 # What is the maximum length of a command?
17057 max_cmd_len=$max_cmd_len
17059 # Object file suffix (normally "o").
17060 objext=$ac_objext
17062 # Executable file suffix (normally "").
17063 exeext=$exeext
17065 # whether the shell understands "unset".
17066 lt_unset=$lt_unset
17068 # turn spaces into newlines.
17069 SP2NL=$lt_lt_SP2NL
17071 # turn newlines into spaces.
17072 NL2SP=$lt_lt_NL2SP
17074 # convert \$build file names to \$host format.
17075 to_host_file_cmd=$lt_cv_to_host_file_cmd
17077 # convert \$build files to toolchain format.
17078 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17080 # An object symbol dumper.
17081 OBJDUMP=$lt_OBJDUMP
17083 # Method to check whether dependent libraries are shared objects.
17084 deplibs_check_method=$lt_deplibs_check_method
17086 # Command to use when deplibs_check_method = "file_magic".
17087 file_magic_cmd=$lt_file_magic_cmd
17089 # How to find potential files when deplibs_check_method = "file_magic".
17090 file_magic_glob=$lt_file_magic_glob
17092 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17093 want_nocaseglob=$lt_want_nocaseglob
17095 # DLL creation program.
17096 DLLTOOL=$lt_DLLTOOL
17098 # Command to associate shared and link libraries.
17099 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17101 # The archiver.
17102 AR=$lt_AR
17104 # Flags to create an archive.
17105 AR_FLAGS=$lt_AR_FLAGS
17107 # How to feed a file listing to the archiver.
17108 archiver_list_spec=$lt_archiver_list_spec
17110 # A symbol stripping program.
17111 STRIP=$lt_STRIP
17113 # Commands used to install an old-style archive.
17114 RANLIB=$lt_RANLIB
17115 old_postinstall_cmds=$lt_old_postinstall_cmds
17116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17118 # Whether to use a lock for old archive extraction.
17119 lock_old_archive_extraction=$lock_old_archive_extraction
17121 # A C compiler.
17122 LTCC=$lt_CC
17124 # LTCC compiler flags.
17125 LTCFLAGS=$lt_CFLAGS
17127 # Take the output of nm and produce a listing of raw symbols and C names.
17128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17130 # Transform the output of nm in a proper C declaration.
17131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17133 # Transform the output of nm in a C name address pair.
17134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17136 # Transform the output of nm in a C name address pair when lib prefix is needed.
17137 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17139 # Specify filename containing input files for \$NM.
17140 nm_file_list_spec=$lt_nm_file_list_spec
17142 # The root where to search for dependent libraries,and in which our libraries should be installed.
17143 lt_sysroot=$lt_sysroot
17145 # The name of the directory that contains temporary libtool files.
17146 objdir=$objdir
17148 # Used to examine libraries when file_magic_cmd begins with "file".
17149 MAGIC_CMD=$MAGIC_CMD
17151 # Must we lock files when doing compilation?
17152 need_locks=$lt_need_locks
17154 # Manifest tool.
17155 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17157 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17158 DSYMUTIL=$lt_DSYMUTIL
17160 # Tool to change global to local symbols on Mac OS X.
17161 NMEDIT=$lt_NMEDIT
17163 # Tool to manipulate fat objects and archives on Mac OS X.
17164 LIPO=$lt_LIPO
17166 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17167 OTOOL=$lt_OTOOL
17169 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17170 OTOOL64=$lt_OTOOL64
17172 # Old archive suffix (normally "a").
17173 libext=$libext
17175 # Shared library suffix (normally ".so").
17176 shrext_cmds=$lt_shrext_cmds
17178 # The commands to extract the exported symbol list from a shared archive.
17179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17181 # Variables whose values should be saved in libtool wrapper scripts and
17182 # restored at link time.
17183 variables_saved_for_relink=$lt_variables_saved_for_relink
17185 # Do we need the "lib" prefix for modules?
17186 need_lib_prefix=$need_lib_prefix
17188 # Do we need a version for libraries?
17189 need_version=$need_version
17191 # Library versioning type.
17192 version_type=$version_type
17194 # Shared library runtime path variable.
17195 runpath_var=$runpath_var
17197 # Shared library path variable.
17198 shlibpath_var=$shlibpath_var
17200 # Is shlibpath searched before the hard-coded library search path?
17201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17203 # Format of library name prefix.
17204 libname_spec=$lt_libname_spec
17206 # List of archive names.  First name is the real one, the rest are links.
17207 # The last name is the one that the linker finds with -lNAME
17208 library_names_spec=$lt_library_names_spec
17210 # The coded name of the library, if different from the real name.
17211 soname_spec=$lt_soname_spec
17213 # Permission mode override for installation of shared libraries.
17214 install_override_mode=$lt_install_override_mode
17216 # Command to use after installation of a shared archive.
17217 postinstall_cmds=$lt_postinstall_cmds
17219 # Command to use after uninstallation of a shared archive.
17220 postuninstall_cmds=$lt_postuninstall_cmds
17222 # Commands used to finish a libtool library installation in a directory.
17223 finish_cmds=$lt_finish_cmds
17225 # As "finish_cmds", except a single script fragment to be evaled but
17226 # not shown.
17227 finish_eval=$lt_finish_eval
17229 # Whether we should hardcode library paths into libraries.
17230 hardcode_into_libs=$hardcode_into_libs
17232 # Compile-time system search path for libraries.
17233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17235 # Run-time system search path for libraries.
17236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17247 # Commands to strip libraries.
17248 old_striplib=$lt_old_striplib
17249 striplib=$lt_striplib
17252 # The linker used to build libraries.
17253 LD=$lt_LD
17255 # How to create reloadable object files.
17256 reload_flag=$lt_reload_flag
17257 reload_cmds=$lt_reload_cmds
17259 # Commands used to build an old-style archive.
17260 old_archive_cmds=$lt_old_archive_cmds
17262 # A language specific compiler.
17263 CC=$lt_compiler
17265 # Is the compiler the GNU compiler?
17266 with_gcc=$GCC
17268 # Compiler flag to turn off builtin functions.
17269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17271 # Additional compiler flags for building library objects.
17272 pic_flag=$lt_lt_prog_compiler_pic
17274 # How to pass a linker flag through the compiler.
17275 wl=$lt_lt_prog_compiler_wl
17277 # Compiler flag to prevent dynamic linking.
17278 link_static_flag=$lt_lt_prog_compiler_static
17280 # Does compiler simultaneously support -c and -o options?
17281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17283 # Whether or not to add -lc for building shared libraries.
17284 build_libtool_need_lc=$archive_cmds_need_lc
17286 # Whether or not to disallow shared libs when runtime libs are static.
17287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17289 # Compiler flag to allow reflexive dlopens.
17290 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17292 # Compiler flag to generate shared objects directly from archives.
17293 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17295 # Whether the compiler copes with passing no objects directly.
17296 compiler_needs_object=$lt_compiler_needs_object
17298 # Create an old-style archive from a shared archive.
17299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17301 # Create a temporary old-style archive to link instead of a shared archive.
17302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17304 # Commands used to build a shared archive.
17305 archive_cmds=$lt_archive_cmds
17306 archive_expsym_cmds=$lt_archive_expsym_cmds
17308 # Commands used to build a loadable module if different from building
17309 # a shared archive.
17310 module_cmds=$lt_module_cmds
17311 module_expsym_cmds=$lt_module_expsym_cmds
17313 # Whether we are building with GNU ld or not.
17314 with_gnu_ld=$lt_with_gnu_ld
17316 # Flag that allows shared libraries with undefined symbols to be built.
17317 allow_undefined_flag=$lt_allow_undefined_flag
17319 # Flag that enforces no undefined symbols.
17320 no_undefined_flag=$lt_no_undefined_flag
17322 # Flag to hardcode \$libdir into a binary during linking.
17323 # This must work even if \$libdir does not exist
17324 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17326 # Whether we need a single "-rpath" flag with a separated argument.
17327 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17330 # DIR into the resulting binary.
17331 hardcode_direct=$hardcode_direct
17333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17334 # DIR into the resulting binary and the resulting library dependency is
17335 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17336 # library is relocated.
17337 hardcode_direct_absolute=$hardcode_direct_absolute
17339 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17340 # into the resulting binary.
17341 hardcode_minus_L=$hardcode_minus_L
17343 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17344 # into the resulting binary.
17345 hardcode_shlibpath_var=$hardcode_shlibpath_var
17347 # Set to "yes" if building a shared library automatically hardcodes DIR
17348 # into the library and all subsequent libraries and executables linked
17349 # against it.
17350 hardcode_automatic=$hardcode_automatic
17352 # Set to yes if linker adds runtime paths of dependent libraries
17353 # to runtime path list.
17354 inherit_rpath=$inherit_rpath
17356 # Whether libtool must link a program against all its dependency libraries.
17357 link_all_deplibs=$link_all_deplibs
17359 # Set to "yes" if exported symbols are required.
17360 always_export_symbols=$always_export_symbols
17362 # The commands to list exported symbols.
17363 export_symbols_cmds=$lt_export_symbols_cmds
17365 # Symbols that should not be listed in the preloaded symbols.
17366 exclude_expsyms=$lt_exclude_expsyms
17368 # Symbols that must always be exported.
17369 include_expsyms=$lt_include_expsyms
17371 # Commands necessary for linking programs (against libraries) with templates.
17372 prelink_cmds=$lt_prelink_cmds
17374 # Commands necessary for finishing linking programs.
17375 postlink_cmds=$lt_postlink_cmds
17377 # Specify filename containing input files.
17378 file_list_spec=$lt_file_list_spec
17380 # How to hardcode a shared library path into an executable.
17381 hardcode_action=$hardcode_action
17383 # ### END LIBTOOL CONFIG
17385 _LT_EOF
17387   case $host_os in
17388   aix3*)
17389     cat <<\_LT_EOF >> "$cfgfile"
17390 # AIX sometimes has problems with the GCC collect2 program.  For some
17391 # reason, if we set the COLLECT_NAMES environment variable, the problems
17392 # vanish in a puff of smoke.
17393 if test "X${COLLECT_NAMES+set}" != Xset; then
17394   COLLECT_NAMES=
17395   export COLLECT_NAMES
17397 _LT_EOF
17398     ;;
17399   esac
17401   
17402 ltmain="$ac_aux_dir/ltmain.sh"
17405   # We use sed instead of cat because bash on DJGPP gets confused if
17406   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17407   # text mode, it properly converts lines to CR/LF.  This bash problem
17408   # is reportedly fixed, but why not run on old versions too?
17409   sed '$q' "$ltmain" >> "$cfgfile" \
17410      || (rm -f "$cfgfile"; exit 1)
17412   if test x"$xsi_shell" = xyes; then
17413   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17414 func_dirname ()\
17416 \    case ${1} in\
17417 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17418 \      *  ) func_dirname_result="${3}" ;;\
17419 \    esac\
17420 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17421   && mv -f "$cfgfile.tmp" "$cfgfile" \
17422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17423 test 0 -eq $? || _lt_function_replace_fail=:
17426   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17427 func_basename ()\
17429 \    func_basename_result="${1##*/}"\
17430 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17431   && mv -f "$cfgfile.tmp" "$cfgfile" \
17432     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17436   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17437 func_dirname_and_basename ()\
17439 \    case ${1} in\
17440 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17441 \      *  ) func_dirname_result="${3}" ;;\
17442 \    esac\
17443 \    func_basename_result="${1##*/}"\
17444 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17445   && mv -f "$cfgfile.tmp" "$cfgfile" \
17446     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17447 test 0 -eq $? || _lt_function_replace_fail=:
17450   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17451 func_stripname ()\
17453 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17454 \    # positional parameters, so assign one to ordinary parameter first.\
17455 \    func_stripname_result=${3}\
17456 \    func_stripname_result=${func_stripname_result#"${1}"}\
17457 \    func_stripname_result=${func_stripname_result%"${2}"}\
17458 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17459   && mv -f "$cfgfile.tmp" "$cfgfile" \
17460     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17461 test 0 -eq $? || _lt_function_replace_fail=:
17464   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17465 func_split_long_opt ()\
17467 \    func_split_long_opt_name=${1%%=*}\
17468 \    func_split_long_opt_arg=${1#*=}\
17469 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17470   && mv -f "$cfgfile.tmp" "$cfgfile" \
17471     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17472 test 0 -eq $? || _lt_function_replace_fail=:
17475   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17476 func_split_short_opt ()\
17478 \    func_split_short_opt_arg=${1#??}\
17479 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17480 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17481   && mv -f "$cfgfile.tmp" "$cfgfile" \
17482     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17483 test 0 -eq $? || _lt_function_replace_fail=:
17486   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17487 func_lo2o ()\
17489 \    case ${1} in\
17490 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17491 \      *)    func_lo2o_result=${1} ;;\
17492 \    esac\
17493 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17494   && mv -f "$cfgfile.tmp" "$cfgfile" \
17495     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17496 test 0 -eq $? || _lt_function_replace_fail=:
17499   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17500 func_xform ()\
17502     func_xform_result=${1%.*}.lo\
17503 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17504   && mv -f "$cfgfile.tmp" "$cfgfile" \
17505     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17506 test 0 -eq $? || _lt_function_replace_fail=:
17509   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17510 func_arith ()\
17512     func_arith_result=$(( $* ))\
17513 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17514   && mv -f "$cfgfile.tmp" "$cfgfile" \
17515     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17516 test 0 -eq $? || _lt_function_replace_fail=:
17519   sed -e '/^func_len ()$/,/^} # func_len /c\
17520 func_len ()\
17522     func_len_result=${#1}\
17523 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17524   && mv -f "$cfgfile.tmp" "$cfgfile" \
17525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17526 test 0 -eq $? || _lt_function_replace_fail=:
17530 if test x"$lt_shell_append" = xyes; then
17531   sed -e '/^func_append ()$/,/^} # func_append /c\
17532 func_append ()\
17534     eval "${1}+=\\${2}"\
17535 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17536   && mv -f "$cfgfile.tmp" "$cfgfile" \
17537     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538 test 0 -eq $? || _lt_function_replace_fail=:
17541   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17542 func_append_quoted ()\
17544 \    func_quote_for_eval "${2}"\
17545 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17546 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17547   && mv -f "$cfgfile.tmp" "$cfgfile" \
17548     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549 test 0 -eq $? || _lt_function_replace_fail=:
17552   # Save a `func_append' function call where possible by direct use of '+='
17553   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17554     && mv -f "$cfgfile.tmp" "$cfgfile" \
17555       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17556   test 0 -eq $? || _lt_function_replace_fail=:
17557 else
17558   # Save a `func_append' function call even when '+=' is not available
17559   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17560     && mv -f "$cfgfile.tmp" "$cfgfile" \
17561       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562   test 0 -eq $? || _lt_function_replace_fail=:
17565 if test x"$_lt_function_replace_fail" = x":"; then
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17567 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17571    mv -f "$cfgfile" "$ofile" ||
17572     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17573   chmod +x "$ofile"
17575  ;;
17577   esac
17578 done # for ac_tag
17581 as_fn_exit 0
17582 _ACEOF
17583 ac_clean_files=$ac_clean_files_save
17585 test $ac_write_fail = 0 ||
17586   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17589 # configure is writing to config.log, and then calls config.status.
17590 # config.status does its own redirection, appending to config.log.
17591 # Unfortunately, on DOS this fails, as config.log is still kept open
17592 # by configure, so config.status won't be able to write to it; its
17593 # output is simply discarded.  So we exec the FD to /dev/null,
17594 # effectively closing config.log, so it can be properly (re)opened and
17595 # appended to by config.status.  When coming back to configure, we
17596 # need to make the FD available again.
17597 if test "$no_create" != yes; then
17598   ac_cs_success=:
17599   ac_config_status_args=
17600   test "$silent" = yes &&
17601     ac_config_status_args="$ac_config_status_args --quiet"
17602   exec 5>/dev/null
17603   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17604   exec 5>>config.log
17605   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17606   # would make configure fail if this is the last instruction.
17607   $ac_cs_success || as_fn_exit 1
17609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}