libsodium update: 1.0.0
[tomato.git] / release / src / router / dnscrypt / src / libevent-modified / autom4te.cache / output.1
blobc62e1ca60476f036cc044899434fdc1dc49793b0
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.13'
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 ac_config_headers="$ac_config_headers config.h"
3171 $as_echo "@%:@define NUMERIC_VERSION 0x02001501" >>confdefs.h
3174 if test "$prefix" = "NONE"; then
3175    prefix="/usr/local"
3178 # Make sure we can run config.sub.
3179 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3180   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3183 $as_echo_n "checking build system type... " >&6; }
3184 if ${ac_cv_build+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   ac_build_alias=$build_alias
3188 test "x$ac_build_alias" = x &&
3189   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3190 test "x$ac_build_alias" = x &&
3191   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3193   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3197 $as_echo "$ac_cv_build" >&6; }
3198 case $ac_cv_build in
3199 *-*-*) ;;
3200 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3201 esac
3202 build=$ac_cv_build
3203 ac_save_IFS=$IFS; IFS='-'
3204 set x $ac_cv_build
3205 shift
3206 build_cpu=$1
3207 build_vendor=$2
3208 shift; shift
3209 # Remember, the first character of IFS is used to create $*,
3210 # except with old shells:
3211 build_os=$*
3212 IFS=$ac_save_IFS
3213 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3217 $as_echo_n "checking host system type... " >&6; }
3218 if ${ac_cv_host+:} false; then :
3219   $as_echo_n "(cached) " >&6
3220 else
3221   if test "x$host_alias" = x; then
3222   ac_cv_host=$ac_cv_build
3223 else
3224   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3225     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3230 $as_echo "$ac_cv_host" >&6; }
3231 case $ac_cv_host in
3232 *-*-*) ;;
3233 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3234 esac
3235 host=$ac_cv_host
3236 ac_save_IFS=$IFS; IFS='-'
3237 set x $ac_cv_host
3238 shift
3239 host_cpu=$1
3240 host_vendor=$2
3241 shift; shift
3242 # Remember, the first character of IFS is used to create $*,
3243 # except with old shells:
3244 host_os=$*
3245 IFS=$ac_save_IFS
3246 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3250 case "$host_os" in
3252  osf5*)
3253     CFLAGS="$CFLAGS -D_OSF_SOURCE"
3254     ;;
3255 esac
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test -n "$ac_tool_prefix"; then
3263   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$CC"; then
3271   ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_CC"; then
3302   ac_ct_CC=$CC
3303   # Extract the first word of "gcc", so it can be a program name with args.
3304 set dummy gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$ac_ct_CC"; then
3311   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_ac_ct_CC="gcc"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339   if test "x$ac_ct_CC" = x; then
3340     CC=""
3341   else
3342     case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348     CC=$ac_ct_CC
3349   fi
3350 else
3351   CC="$ac_cv_prog_CC"
3354 if test -z "$CC"; then
3355           if test -n "$ac_tool_prefix"; then
3356     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   if test -n "$CC"; then
3364   ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371     for ac_exec_ext in '' $ac_executable_extensions; do
3372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_prog_CC="${ac_tool_prefix}cc"
3374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378   done
3379 IFS=$as_save_IFS
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3393   fi
3395 if test -z "$CC"; then
3396   # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$CC"; then
3404   ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415        ac_prog_rejected=yes
3416        continue
3417      fi
3418     ac_cv_prog_CC="cc"
3419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420     break 2
3421   fi
3422 done
3423   done
3424 IFS=$as_save_IFS
3426 if test $ac_prog_rejected = yes; then
3427   # We found a bogon in the path, so make sure we never use it.
3428   set dummy $ac_cv_prog_CC
3429   shift
3430   if test $@%:@ != 0; then
3431     # We chose a different compiler from the bogus one.
3432     # However, it has the same basename, so the bogon will be chosen
3433     # first if we set CC to just the basename; use the full file name.
3434     shift
3435     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436   fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$CC"; then
3452   if test -n "$ac_tool_prefix"; then
3453   for ac_prog in cl.exe
3454   do
3455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_CC+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -n "$CC"; then
3463   ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477   done
3478 IFS=$as_save_IFS
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492     test -n "$CC" && break
3493   done
3495 if test -z "$CC"; then
3496   ac_ct_CC=$CC
3497   for ac_prog in cl.exe
3499   # Extract the first word of "$ac_prog", so it can be a program name with args.
3500 set dummy $ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$ac_ct_CC"; then
3507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_prog_ac_ct_CC="$ac_prog"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536   test -n "$ac_ct_CC" && break
3537 done
3539   if test "x$ac_ct_CC" = x; then
3540     CC=""
3541   else
3542     case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     CC=$ac_ct_CC
3549   fi
3555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details" "$LINENO" 5; }
3560 # Provide some information about the compiler.
3561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3562 set X $ac_compile
3563 ac_compiler=$2
3564 for ac_option in --version -v -V -qversion; do
3565   { { ac_try="$ac_compiler $ac_option >&5"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3573   ac_status=$?
3574   if test -s conftest.err; then
3575     sed '10a\
3576 ... rest of stderr output deleted ...
3577          10q' conftest.err >conftest.er1
3578     cat conftest.er1 >&5
3579   fi
3580   rm -f conftest.er1 conftest.err
3581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582   test $ac_status = 0; }
3583 done
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3589 main ()
3592   ;
3593   return 0;
3595 _ACEOF
3596 ac_clean_files_save=$ac_clean_files
3597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3598 # Try to create an executable without -o first, disregard a.out.
3599 # It will help us diagnose broken compilers, and finding out an intuition
3600 # of exeext.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3602 $as_echo_n "checking whether the C compiler works... " >&6; }
3603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605 # The possible output files:
3606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608 ac_rmfiles=
3609 for ac_file in $ac_files
3611   case $ac_file in
3612     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3614   esac
3615 done
3616 rm -f $ac_rmfiles
3618 if { { ac_try="$ac_link_default"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625   (eval "$ac_link_default") 2>&5
3626   ac_status=$?
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }; then :
3629   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3632 # so that the user can short-circuit this test for compilers unknown to
3633 # Autoconf.
3634 for ac_file in $ac_files ''
3636   test -f "$ac_file" || continue
3637   case $ac_file in
3638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3639         ;;
3640     [ab].out )
3641         # We found the default executable, but exeext='' is most
3642         # certainly right.
3643         break;;
3644     *.* )
3645         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646         then :; else
3647            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648         fi
3649         # We set ac_cv_exeext here because the later test for it is not
3650         # safe: cross compilers may not add the suffix if given an `-o'
3651         # argument, so we may need to know it at that point already.
3652         # Even if this section looks crufty: it has the advantage of
3653         # actually working.
3654         break;;
3655     * )
3656         break;;
3657   esac
3658 done
3659 test "$ac_cv_exeext" = no && ac_cv_exeext=
3661 else
3662   ac_file=''
3664 if test -z "$ac_file"; then :
3665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error 77 "C compiler cannot create executables
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 else
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 $as_echo "yes" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679 $as_echo_n "checking for C compiler default output file name... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681 $as_echo "$ac_file" >&6; }
3682 ac_exeext=$ac_cv_exeext
3684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685 ac_clean_files=$ac_clean_files_save
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687 $as_echo_n "checking for suffix of executables... " >&6; }
3688 if { { ac_try="$ac_link"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_link") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }; then :
3699   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3701 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 # `rm'.
3703 for ac_file in conftest.exe conftest conftest.*; do
3704   test -f "$ac_file" || continue
3705   case $ac_file in
3706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708           break;;
3709     * ) break;;
3710   esac
3711 done
3712 else
3713   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest conftest$ac_cv_exeext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720 $as_echo "$ac_cv_exeext" >&6; }
3722 rm -f conftest.$ac_ext
3723 EXEEXT=$ac_cv_exeext
3724 ac_exeext=$EXEEXT
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h.  */
3727 @%:@include <stdio.h>
3729 main ()
3731 FILE *f = fopen ("conftest.out", "w");
3732  return ferror (f) || fclose (f) != 0;
3734   ;
3735   return 0;
3737 _ACEOF
3738 ac_clean_files="$ac_clean_files conftest.out"
3739 # Check that the compiler produces executables we can run.  If not, either
3740 # the compiler is broken, or we cross compile.
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742 $as_echo_n "checking whether we are cross compiling... " >&6; }
3743 if test "$cross_compiling" != yes; then
3744   { { ac_try="$ac_link"
3745 case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751   (eval "$ac_link") 2>&5
3752   ac_status=$?
3753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754   test $ac_status = 0; }
3755   if { ac_try='./conftest$ac_cv_exeext'
3756   { { case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762   (eval "$ac_try") 2>&5
3763   ac_status=$?
3764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765   test $ac_status = 0; }; }; then
3766     cross_compiling=no
3767   else
3768     if test "$cross_compiling" = maybe; then
3769         cross_compiling=yes
3770     else
3771         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot run C compiled programs.
3774 If you meant to cross compile, use \`--host'.
3775 See \`config.log' for more details" "$LINENO" 5; }
3776     fi
3777   fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780 $as_echo "$cross_compiling" >&6; }
3782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783 ac_clean_files=$ac_clean_files_save
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 $as_echo_n "checking for suffix of object files... " >&6; }
3786 if ${ac_cv_objext+:} false; then :
3787   $as_echo_n "(cached) " >&6
3788 else
3789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3793 main ()
3796   ;
3797   return 0;
3799 _ACEOF
3800 rm -f conftest.o conftest.obj
3801 if { { ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808   (eval "$ac_compile") 2>&5
3809   ac_status=$?
3810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811   test $ac_status = 0; }; then :
3812   for ac_file in conftest.o conftest.obj conftest.*; do
3813   test -f "$ac_file" || continue;
3814   case $ac_file in
3815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817        break;;
3818   esac
3819 done
3820 else
3821   $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error $? "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details" "$LINENO" 5; }
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 $as_echo "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3834 ac_objext=$OBJEXT
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837 if ${ac_cv_c_compiler_gnu+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3844 main ()
3846 #ifndef __GNUC__
3847        choke me
3848 #endif
3850   ;
3851   return 0;
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855   ac_compiler_gnu=yes
3856 else
3857   ac_compiler_gnu=no
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865 if test $ac_compiler_gnu = yes; then
3866   GCC=yes
3867 else
3868   GCC=
3870 ac_test_CFLAGS=${CFLAGS+set}
3871 ac_save_CFLAGS=$CFLAGS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3874 if ${ac_cv_prog_cc_g+:} false; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   ac_save_c_werror_flag=$ac_c_werror_flag
3878    ac_c_werror_flag=yes
3879    ac_cv_prog_cc_g=no
3880    CFLAGS="-g"
3881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3885 main ()
3888   ;
3889   return 0;
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893   ac_cv_prog_cc_g=yes
3894 else
3895   CFLAGS=""
3896       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3900 main ()
3903   ;
3904   return 0;
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908   
3909 else
3910   ac_c_werror_flag=$ac_save_c_werror_flag
3911          CFLAGS="-g"
3912          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h.  */
3916 main ()
3919   ;
3920   return 0;
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924   ac_cv_prog_cc_g=yes
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931    ac_c_werror_flag=$ac_save_c_werror_flag
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934 $as_echo "$ac_cv_prog_cc_g" >&6; }
3935 if test "$ac_test_CFLAGS" = set; then
3936   CFLAGS=$ac_save_CFLAGS
3937 elif test $ac_cv_prog_cc_g = yes; then
3938   if test "$GCC" = yes; then
3939     CFLAGS="-g -O2"
3940   else
3941     CFLAGS="-g"
3942   fi
3943 else
3944   if test "$GCC" = yes; then
3945     CFLAGS="-O2"
3946   else
3947     CFLAGS=
3948   fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952 if ${ac_cv_prog_cc_c89+:} false; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   ac_cv_prog_cc_c89=no
3956 ac_save_CC=$CC
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h.  */
3959 #include <stdarg.h>
3960 #include <stdio.h>
3961 struct stat;
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966      char **p;
3967      int i;
3969   return p[i];
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3973   char *s;
3974   va_list v;
3975   va_start (v,p);
3976   s = g (p, va_arg (v,int));
3977   va_end (v);
3978   return s;
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3982    function prototypes and stuff, but not '\xHH' hex character constants.
3983    These don't provoke an error unfortunately, instead are silently treated
3984    as 'x'.  The following induces an error, until -std is added to get
3985    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3986    array size at least.  It's necessary to write '\x00'==0 to get something
3987    that's true only with -std.  */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991    inside strings and character constants.  */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4002 main ()
4004 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4005   ;
4006   return 0;
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012   CC="$ac_save_CC $ac_arg"
4013   if ac_fn_c_try_compile "$LINENO"; then :
4014   ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017   test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4025   x)
4026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028   xno)
4029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4031   *)
4032     CC="$CC $ac_cv_prog_cc_c89"
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4037   
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 DEPDIR="${am__leading_dot}deps"
4047 ac_config_commands="$ac_config_commands depfiles"
4050 am_make=${MAKE-make}
4051 cat > confinc << 'END'
4052 am__doit:
4053         @echo this is the am__doit target
4054 .PHONY: am__doit
4056 # If we don't find an include directive, just comment out the code.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4059 am__include="#"
4060 am__quote=
4061 _am_result=none
4062 # First try GNU make style include.
4063 echo "include confinc" > confmf
4064 # Ignore all kinds of additional output from 'make'.
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067   am__include=include
4068   am__quote=
4069   _am_result=GNU
4070   ;;
4071 esac
4072 # Now try BSD make style include.
4073 if test "$am__include" = "#"; then
4074    echo '.include "confinc"' > confmf
4075    case `$am_make -s -f confmf 2> /dev/null` in #(
4076    *the\ am__doit\ target*)
4077      am__include=.include
4078      am__quote="\""
4079      _am_result=BSD
4080      ;;
4081    esac
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086 $as_echo "$_am_result" >&6; }
4087 rm -f confinc confmf
4089 @%:@ Check whether --enable-dependency-tracking was given.
4090 if test "${enable_dependency_tracking+set}" = set; then :
4091   enableval=$enable_dependency_tracking; 
4094 if test "x$enable_dependency_tracking" != xno; then
4095   am_depcomp="$ac_aux_dir/depcomp"
4096   AMDEPBACKSLASH='\'
4097   am__nodep='_no'
4099  if test "x$enable_dependency_tracking" != xno; then
4100   AMDEP_TRUE=
4101   AMDEP_FALSE='#'
4102 else
4103   AMDEP_TRUE='#'
4104   AMDEP_FALSE=
4109 depcc="$CC"   am_compiler_list=
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4112 $as_echo_n "checking dependency style of $depcc... " >&6; }
4113 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117   # We make a subdir and do the tests there.  Otherwise we can end up
4118   # making bogus files that we don't know about and never remove.  For
4119   # instance it was reported that on HP-UX the gcc test will end up
4120   # making a dummy file named 'D' -- because '-MD' means "put the output
4121   # in D".
4122   rm -rf conftest.dir
4123   mkdir conftest.dir
4124   # Copy depcomp to subdir because otherwise we won't find it if we're
4125   # using a relative directory.
4126   cp "$am_depcomp" conftest.dir
4127   cd conftest.dir
4128   # We will build objects and dependencies in a subdirectory because
4129   # it helps to detect inapplicable dependency modes.  For instance
4130   # both Tru64's cc and ICC support -MD to output dependencies as a
4131   # side effect of compilation, but ICC will put the dependencies in
4132   # the current directory while Tru64 will put them in the object
4133   # directory.
4134   mkdir sub
4136   am_cv_CC_dependencies_compiler_type=none
4137   if test "$am_compiler_list" = ""; then
4138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139   fi
4140   am__universal=false
4141   case " $depcc " in #(
4142      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4143      esac
4145   for depmode in $am_compiler_list; do
4146     # Setup a source with many dependencies, because some compilers
4147     # like to wrap large dependency lists on column 80 (with \), and
4148     # we should not choose a depcomp mode which is confused by this.
4149     #
4150     # We need to recreate these files for each test, as the compiler may
4151     # overwrite some of them when testing with obscure command lines.
4152     # This happens at least with the AIX C compiler.
4153     : > sub/conftest.c
4154     for i in 1 2 3 4 5 6; do
4155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4157       # Solaris 10 /bin/sh.
4158       echo '/* dummy */' > sub/conftst$i.h
4159     done
4160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4163     # mode.  It turns out that the SunPro C++ compiler does not properly
4164     # handle '-M -o', and we need to detect this.  Also, some Intel
4165     # versions had trouble with output in subdirs.
4166     am__obj=sub/conftest.${OBJEXT-o}
4167     am__minus_obj="-o $am__obj"
4168     case $depmode in
4169     gcc)
4170       # This depmode causes a compiler race in universal mode.
4171       test "$am__universal" = false || continue
4172       ;;
4173     nosideeffect)
4174       # After this tag, mechanisms are not by side-effect, so they'll
4175       # only be used when explicitly requested.
4176       if test "x$enable_dependency_tracking" = xyes; then
4177         continue
4178       else
4179         break
4180       fi
4181       ;;
4182     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4183       # This compiler won't grok '-c -o', but also, the minuso test has
4184       # not run yet.  These depmodes are late enough in the game, and
4185       # so weak that their functioning should not be impacted.
4186       am__obj=conftest.${OBJEXT-o}
4187       am__minus_obj=
4188       ;;
4189     none) break ;;
4190     esac
4191     if depmode=$depmode \
4192        source=sub/conftest.c object=$am__obj \
4193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4194        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4195          >/dev/null 2>conftest.err &&
4196        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4198        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4200       # icc doesn't choke on unknown options, it will just issue warnings
4201       # or remarks (even with -Werror).  So we grep stderr for any message
4202       # that says an option was ignored or not supported.
4203       # When given -MP, icc 7.0 and 7.1 complain thusly:
4204       #   icc: Command line warning: ignoring option '-M'; no argument required
4205       # The diagnosis changed in icc 8.0:
4206       #   icc: Command line remark: option '-MP' not supported
4207       if (grep 'ignoring option' conftest.err ||
4208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4209         am_cv_CC_dependencies_compiler_type=$depmode
4210         break
4211       fi
4212     fi
4213   done
4215   cd ..
4216   rm -rf conftest.dir
4217 else
4218   am_cv_CC_dependencies_compiler_type=none
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226  if 
4227   test "x$enable_dependency_tracking" != xno \
4228   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4229   am__fastdepCC_TRUE=
4230   am__fastdepCC_FALSE='#'
4231 else
4232   am__fastdepCC_TRUE='#'
4233   am__fastdepCC_FALSE=
4237 if test "x$CC" != xcc; then
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4239 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4240 else
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4242 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4244 set dummy $CC; ac_cc=`$as_echo "$2" |
4245                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4246 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4253 main ()
4256   ;
4257   return 0;
4259 _ACEOF
4260 # Make sure it works both with $CC and with simple cc.
4261 # We do the test twice because some compilers refuse to overwrite an
4262 # existing .o file with -o, though they will create one.
4263 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4264 rm -f conftest2.*
4265 if { { case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271   (eval "$ac_try") 2>&5
4272   ac_status=$?
4273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274   test $ac_status = 0; } &&
4275    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284   test $ac_status = 0; };
4285 then
4286   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4287   if test "x$CC" != xcc; then
4288     # Test first that cc exists at all.
4289     if { ac_try='cc -c conftest.$ac_ext >&5'
4290   { { case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299   test $ac_status = 0; }; }; then
4300       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4301       rm -f conftest2.*
4302       if { { case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308   (eval "$ac_try") 2>&5
4309   ac_status=$?
4310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311   test $ac_status = 0; } &&
4312          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318   (eval "$ac_try") 2>&5
4319   ac_status=$?
4320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321   test $ac_status = 0; };
4322       then
4323         # cc works too.
4324         :
4325       else
4326         # cc exists but doesn't like -o.
4327         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4328       fi
4329     fi
4330   fi
4331 else
4332   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4334 rm -f core conftest*
4337 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343   
4344 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4348 # FIXME: we rely on the cache variable name because
4349 # there is no other way.
4350 set dummy $CC
4351 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4352 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4353 if test "$am_t" != yes; then
4354    # Losing compiler, so override with the script.
4355    # FIXME: It is wrong to rewrite CC.
4356    # But if we don't then we get into trouble of one sort or another.
4357    # A longer-term fix would be to have automake use am__CC in this case,
4358    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4359    CC="$am_aux_dir/compile $CC"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365 $as_echo_n "checking whether ln -s works... " >&6; }
4366 LN_S=$as_ln_s
4367 if test "$LN_S" = "ln -s"; then
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4370 else
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372 $as_echo "no, using $LN_S" >&6; }
4375 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4377 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4378 # versions
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4381 if ${ac_cv_path_SED+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4385      for ac_i in 1 2 3 4 5 6 7; do
4386        ac_script="$ac_script$as_nl$ac_script"
4387      done
4388      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4389      { ac_script=; unset ac_script;}
4390      if test -z "$SED"; then
4391   ac_path_SED_found=false
4392   # Loop through the user's path and test for each of PROGNAME-LIST
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_prog in sed gsed; do
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4401       as_fn_executable_p "$ac_path_SED" || continue
4402 # Check for GNU ac_path_SED and select it if it is found.
4403   # Check for GNU $ac_path_SED
4404 case `"$ac_path_SED" --version 2>&1` in
4405 *GNU*)
4406   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4408   ac_count=0
4409   $as_echo_n 0123456789 >"conftest.in"
4410   while :
4411   do
4412     cat "conftest.in" "conftest.in" >"conftest.tmp"
4413     mv "conftest.tmp" "conftest.in"
4414     cp "conftest.in" "conftest.nl"
4415     $as_echo '' >> "conftest.nl"
4416     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418     as_fn_arith $ac_count + 1 && ac_count=$as_val
4419     if test $ac_count -gt ${ac_path_SED_max-0}; then
4420       # Best one so far, save it but keep looking for a better one
4421       ac_cv_path_SED="$ac_path_SED"
4422       ac_path_SED_max=$ac_count
4423     fi
4424     # 10*(2^10) chars as input seems more than enough
4425     test $ac_count -gt 10 && break
4426   done
4427   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4430       $ac_path_SED_found && break 3
4431     done
4432   done
4433   done
4434 IFS=$as_save_IFS
4435   if test -z "$ac_cv_path_SED"; then
4436     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4437   fi
4438 else
4439   ac_cv_path_SED=$SED
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4444 $as_echo "$ac_cv_path_SED" >&6; }
4445  SED="$ac_cv_path_SED"
4446   rm -f conftest.sed
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4456 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4457 # On Suns, sometimes $CPP names a directory.
4458 if test -n "$CPP" && test -d "$CPP"; then
4459   CPP=
4461 if test -z "$CPP"; then
4462   if ${ac_cv_prog_CPP+:} false; then :
4463   $as_echo_n "(cached) " >&6
4464 else
4465       # Double quotes because CPP needs to be expanded
4466     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467     do
4468       ac_preproc_ok=false
4469 for ac_c_preproc_warn_flag in '' yes
4471   # Use a header file that comes with gcc, so configuring glibc
4472   # with a fresh cross-compiler works.
4473   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474   # <limits.h> exists even on freestanding compilers.
4475   # On the NeXT, cc -E runs the code through the compiler's parser,
4476   # not just through cpp. "Syntax error" is here to catch this case.
4477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h.  */
4479 @%:@ifdef __STDC__
4480 @%:@ include <limits.h>
4481 @%:@else
4482 @%:@ include <assert.h>
4483 @%:@endif
4484                      Syntax error
4485 _ACEOF
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4487   
4488 else
4489   # Broken: fails on valid input.
4490 continue
4492 rm -f conftest.err conftest.i conftest.$ac_ext
4494   # OK, works on sane cases.  Now check whether nonexistent headers
4495   # can be detected and how.
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498 @%:@include <ac_nonexistent.h>
4499 _ACEOF
4500 if ac_fn_c_try_cpp "$LINENO"; then :
4501   # Broken: success on invalid input.
4502 continue
4503 else
4504   # Passes both tests.
4505 ac_preproc_ok=:
4506 break
4508 rm -f conftest.err conftest.i conftest.$ac_ext
4510 done
4511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512 rm -f conftest.i conftest.err conftest.$ac_ext
4513 if $ac_preproc_ok; then :
4514   break
4517     done
4518     ac_cv_prog_CPP=$CPP
4519   
4521   CPP=$ac_cv_prog_CPP
4522 else
4523   ac_cv_prog_CPP=$CPP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4526 $as_echo "$CPP" >&6; }
4527 ac_preproc_ok=false
4528 for ac_c_preproc_warn_flag in '' yes
4530   # Use a header file that comes with gcc, so configuring glibc
4531   # with a fresh cross-compiler works.
4532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533   # <limits.h> exists even on freestanding compilers.
4534   # On the NeXT, cc -E runs the code through the compiler's parser,
4535   # not just through cpp. "Syntax error" is here to catch this case.
4536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 @%:@ifdef __STDC__
4539 @%:@ include <limits.h>
4540 @%:@else
4541 @%:@ include <assert.h>
4542 @%:@endif
4543                      Syntax error
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546   
4547 else
4548   # Broken: fails on valid input.
4549 continue
4551 rm -f conftest.err conftest.i conftest.$ac_ext
4553   # OK, works on sane cases.  Now check whether nonexistent headers
4554   # can be detected and how.
4555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h.  */
4557 @%:@include <ac_nonexistent.h>
4558 _ACEOF
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560   # Broken: success on invalid input.
4561 continue
4562 else
4563   # Passes both tests.
4564 ac_preproc_ok=:
4565 break
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4569 done
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.i conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then :
4573   
4574 else
4575   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details" "$LINENO" 5; }
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if test -z "$GREP"; then
4594   ac_path_GREP_found=false
4595   # Loop through the user's path and test for each of PROGNAME-LIST
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_prog in grep ggrep; do
4602     for ac_exec_ext in '' $ac_executable_extensions; do
4603       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604       as_fn_executable_p "$ac_path_GREP" || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606   # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4608 *GNU*)
4609   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611   ac_count=0
4612   $as_echo_n 0123456789 >"conftest.in"
4613   while :
4614   do
4615     cat "conftest.in" "conftest.in" >"conftest.tmp"
4616     mv "conftest.tmp" "conftest.in"
4617     cp "conftest.in" "conftest.nl"
4618     $as_echo 'GREP' >> "conftest.nl"
4619     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621     as_fn_arith $ac_count + 1 && ac_count=$as_val
4622     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623       # Best one so far, save it but keep looking for a better one
4624       ac_cv_path_GREP="$ac_path_GREP"
4625       ac_path_GREP_max=$ac_count
4626     fi
4627     # 10*(2^10) chars as input seems more than enough
4628     test $ac_count -gt 10 && break
4629   done
4630   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 esac
4633       $ac_path_GREP_found && break 3
4634     done
4635   done
4636   done
4637 IFS=$as_save_IFS
4638   if test -z "$ac_cv_path_GREP"; then
4639     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640   fi
4641 else
4642   ac_cv_path_GREP=$GREP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648  GREP="$ac_cv_path_GREP"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657    then ac_cv_path_EGREP="$GREP -E"
4658    else
4659      if test -z "$EGREP"; then
4660   ac_path_EGREP_found=false
4661   # Loop through the user's path and test for each of PROGNAME-LIST
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667     for ac_prog in egrep; do
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670       as_fn_executable_p "$ac_path_EGREP" || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672   # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4674 *GNU*)
4675   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677   ac_count=0
4678   $as_echo_n 0123456789 >"conftest.in"
4679   while :
4680   do
4681     cat "conftest.in" "conftest.in" >"conftest.tmp"
4682     mv "conftest.tmp" "conftest.in"
4683     cp "conftest.in" "conftest.nl"
4684     $as_echo 'EGREP' >> "conftest.nl"
4685     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687     as_fn_arith $ac_count + 1 && ac_count=$as_val
4688     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689       # Best one so far, save it but keep looking for a better one
4690       ac_cv_path_EGREP="$ac_path_EGREP"
4691       ac_path_EGREP_max=$ac_count
4692     fi
4693     # 10*(2^10) chars as input seems more than enough
4694     test $ac_count -gt 10 && break
4695   done
4696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4699       $ac_path_EGREP_found && break 3
4700     done
4701   done
4702   done
4703 IFS=$as_save_IFS
4704   if test -z "$ac_cv_path_EGREP"; then
4705     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706   fi
4707 else
4708   ac_cv_path_EGREP=$EGREP
4711    fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715  EGREP="$ac_cv_path_EGREP"
4718 if test $ac_cv_c_compiler_gnu = yes; then
4719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4720 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4721 if ${ac_cv_prog_gcc_traditional+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724     ac_pattern="Autoconf.*'x'"
4725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h.  */
4727 #include <sgtty.h>
4728 Autoconf TIOCGETP
4729 _ACEOF
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4732   ac_cv_prog_gcc_traditional=yes
4733 else
4734   ac_cv_prog_gcc_traditional=no
4736 rm -f conftest*
4739   if test $ac_cv_prog_gcc_traditional = no; then
4740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <termio.h>
4743 Autoconf TCGETA
4744 _ACEOF
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4747   ac_cv_prog_gcc_traditional=yes
4749 rm -f conftest*
4751   fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4754 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4755   if test $ac_cv_prog_gcc_traditional = yes; then
4756     CC="$CC -traditional"
4757   fi
4761 # We need to test for at least gcc 2.95 here, because older versions don't
4762 # have -fno-strict-aliasing
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h.  */
4767 main ()
4770 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4771 #error
4772 #endif
4773   ;
4774   return 0;
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778   have_gcc295=yes
4779 else
4780   have_gcc295=no
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 if test "$GCC" = "yes" ; then
4785         # Enable many gcc warnings by default...
4786         CFLAGS="$CFLAGS -Wall"
4787         # And disable the strict-aliasing optimization, since it breaks
4788         # our sockaddr-handling code in strange ways.
4789         if test x$have_gcc295 = xyes; then
4790                 CFLAGS="$CFLAGS -fno-strict-aliasing"
4791         fi
4794 # OS X Lion started deprecating the system openssl. Let's just disable
4795 # all deprecation warnings on OS X.
4796 case "$host_os" in
4798  darwin*)
4799     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4800     ;;
4801 esac
4803 @%:@ Check whether --enable-gcc-warnings was given.
4804 if test "${enable_gcc_warnings+set}" = set; then :
4805   enableval=$enable_gcc_warnings; 
4808 @%:@ Check whether --enable-thread-support was given.
4809 if test "${enable_thread_support+set}" = set; then :
4810   enableval=$enable_thread_support; 
4811 else
4812   enable_thread_support=yes
4815 @%:@ Check whether --enable-malloc-replacement was given.
4816 if test "${enable_malloc_replacement+set}" = set; then :
4817   enableval=$enable_malloc_replacement; 
4818 else
4819   enable_malloc_replacement=yes
4822 @%:@ Check whether --enable-openssl was given.
4823 if test "${enable_openssl+set}" = set; then :
4824   enableval=$enable_openssl; 
4825 else
4826   enable_openssl=yes
4829 @%:@ Check whether --enable-debug-mode was given.
4830 if test "${enable_debug_mode+set}" = set; then :
4831   enableval=$enable_debug_mode; 
4832 else
4833   enable_debug_mode=yes
4836 @%:@ Check whether --enable-libevent-install was given.
4837 if test "${enable_libevent_install+set}" = set; then :
4838   enableval=$enable_libevent_install; 
4839 else
4840   enable_libevent_install=yes
4843 @%:@ Check whether --enable-libevent-regress was given.
4844 if test "${enable_libevent_regress+set}" = set; then :
4845   enableval=$enable_libevent_regress; enable_libevent_regress=yes
4848 @%:@ Check whether --enable-function-sections was given.
4849 if test "${enable_function_sections+set}" = set; then :
4850   enableval=$enable_function_sections; 
4851 else
4852   enable_function_sections=no
4857 case `pwd` in
4858   *\ * | *\     *)
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4861 esac
4865 macro_version='2.4.2'
4866 macro_revision='1.3337'
4868     
4869     
4870     
4873     
4874     
4875     
4880 ltmain="$ac_aux_dir/ltmain.sh"
4882 # Backslashify metacharacters that are still active within
4883 # double-quoted strings.
4884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4886 # Same as above, but do not quote variable references.
4887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4889 # Sed substitution to delay expansion of an escaped shell variable in a
4890 # double_quote_subst'ed string.
4891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4893 # Sed substitution to delay expansion of an escaped single quote.
4894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4896 # Sed substitution to avoid accidental globbing in evaled expressions
4897 no_glob_subst='s/\*/\\\*/g'
4899 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4904 $as_echo_n "checking how to print strings... " >&6; }
4905 # Test print first, because it will be a builtin if present.
4906 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4907    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4908   ECHO='print -r --'
4909 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4910   ECHO='printf %s\n'
4911 else
4912   # Use this function as a fallback that always works.
4913   func_fallback_echo ()
4914   {
4915     eval 'cat <<_LTECHO_EOF
4917 _LTECHO_EOF'
4918   }
4919   ECHO='func_fallback_echo'
4922 # func_echo_all arg...
4923 # Invoke $ECHO with all args, space-separated.
4924 func_echo_all ()
4926     $ECHO "" 
4929 case "$ECHO" in
4930   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4931 $as_echo "printf" >&6; } ;;
4932   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4933 $as_echo "print -r" >&6; } ;;
4934   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4935 $as_echo "cat" >&6; } ;;
4936 esac
4941     
4942     
4943     
4946     
4947     
4948     
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4953 if ${ac_cv_path_SED+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4957      for ac_i in 1 2 3 4 5 6 7; do
4958        ac_script="$ac_script$as_nl$ac_script"
4959      done
4960      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4961      { ac_script=; unset ac_script;}
4962      if test -z "$SED"; then
4963   ac_path_SED_found=false
4964   # Loop through the user's path and test for each of PROGNAME-LIST
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_prog in sed gsed; do
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4973       as_fn_executable_p "$ac_path_SED" || continue
4974 # Check for GNU ac_path_SED and select it if it is found.
4975   # Check for GNU $ac_path_SED
4976 case `"$ac_path_SED" --version 2>&1` in
4977 *GNU*)
4978   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4980   ac_count=0
4981   $as_echo_n 0123456789 >"conftest.in"
4982   while :
4983   do
4984     cat "conftest.in" "conftest.in" >"conftest.tmp"
4985     mv "conftest.tmp" "conftest.in"
4986     cp "conftest.in" "conftest.nl"
4987     $as_echo '' >> "conftest.nl"
4988     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990     as_fn_arith $ac_count + 1 && ac_count=$as_val
4991     if test $ac_count -gt ${ac_path_SED_max-0}; then
4992       # Best one so far, save it but keep looking for a better one
4993       ac_cv_path_SED="$ac_path_SED"
4994       ac_path_SED_max=$ac_count
4995     fi
4996     # 10*(2^10) chars as input seems more than enough
4997     test $ac_count -gt 10 && break
4998   done
4999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000 esac
5002       $ac_path_SED_found && break 3
5003     done
5004   done
5005   done
5006 IFS=$as_save_IFS
5007   if test -z "$ac_cv_path_SED"; then
5008     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5009   fi
5010 else
5011   ac_cv_path_SED=$SED
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5016 $as_echo "$ac_cv_path_SED" >&6; }
5017  SED="$ac_cv_path_SED"
5018   rm -f conftest.sed
5020 test -z "$SED" && SED=sed
5021 Xsed="$SED -e 1s/^X//"
5023     
5024     
5025     
5028     
5029     
5030     
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5034 $as_echo_n "checking for fgrep... " >&6; }
5035 if ${ac_cv_path_FGREP+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5039    then ac_cv_path_FGREP="$GREP -F"
5040    else
5041      if test -z "$FGREP"; then
5042   ac_path_FGREP_found=false
5043   # Loop through the user's path and test for each of PROGNAME-LIST
5044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049     for ac_prog in fgrep; do
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5052       as_fn_executable_p "$ac_path_FGREP" || continue
5053 # Check for GNU ac_path_FGREP and select it if it is found.
5054   # Check for GNU $ac_path_FGREP
5055 case `"$ac_path_FGREP" --version 2>&1` in
5056 *GNU*)
5057   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5059   ac_count=0
5060   $as_echo_n 0123456789 >"conftest.in"
5061   while :
5062   do
5063     cat "conftest.in" "conftest.in" >"conftest.tmp"
5064     mv "conftest.tmp" "conftest.in"
5065     cp "conftest.in" "conftest.nl"
5066     $as_echo 'FGREP' >> "conftest.nl"
5067     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069     as_fn_arith $ac_count + 1 && ac_count=$as_val
5070     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5071       # Best one so far, save it but keep looking for a better one
5072       ac_cv_path_FGREP="$ac_path_FGREP"
5073       ac_path_FGREP_max=$ac_count
5074     fi
5075     # 10*(2^10) chars as input seems more than enough
5076     test $ac_count -gt 10 && break
5077   done
5078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 esac
5081       $ac_path_FGREP_found && break 3
5082     done
5083   done
5084   done
5085 IFS=$as_save_IFS
5086   if test -z "$ac_cv_path_FGREP"; then
5087     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088   fi
5089 else
5090   ac_cv_path_FGREP=$FGREP
5093    fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5096 $as_echo "$ac_cv_path_FGREP" >&6; }
5097  FGREP="$ac_cv_path_FGREP"
5100 test -z "$GREP" && GREP=grep
5102     
5103     
5104     
5107     
5108     
5109     
5112     
5113     
5114     
5120 @%:@ Check whether --with-gnu-ld was given.
5121 if test "${with_gnu_ld+set}" = set; then :
5122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5123 else
5124   with_gnu_ld=no
5127 ac_prog=ld
5128 if test "$GCC" = yes; then
5129   # Check if gcc -print-prog-name=ld gives a path.
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5131 $as_echo_n "checking for ld used by $CC... " >&6; }
5132   case $host in
5133   *-*-mingw*)
5134     # gcc leaves a trailing carriage return which upsets mingw
5135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5136   *)
5137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5138   esac
5139   case $ac_prog in
5140     # Accept absolute paths.
5141     [\\/]* | ?:[\\/]*)
5142       re_direlt='/[^/][^/]*/\.\./'
5143       # Canonicalize the pathname of ld
5144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5147       done
5148       test -z "$LD" && LD="$ac_prog"
5149       ;;
5150   "")
5151     # If it fails, then pretend we aren't using GCC.
5152     ac_prog=ld
5153     ;;
5154   *)
5155     # If it is relative, then search for the first ld in PATH.
5156     with_gnu_ld=unknown
5157     ;;
5158   esac
5159 elif test "$with_gnu_ld" = yes; then
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5161 $as_echo_n "checking for GNU ld... " >&6; }
5162 else
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5164 $as_echo_n "checking for non-GNU ld... " >&6; }
5166 if ${lt_cv_path_LD+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if test -z "$LD"; then
5170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171   for ac_dir in $PATH; do
5172     IFS="$lt_save_ifs"
5173     test -z "$ac_dir" && ac_dir=.
5174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5175       lt_cv_path_LD="$ac_dir/$ac_prog"
5176       # Check to see if the program is GNU ld.  I'd rather use --version,
5177       # but apparently some variants of GNU ld only accept -v.
5178       # Break only if it was the GNU/non-GNU ld that we prefer.
5179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5180       *GNU* | *'with BFD'*)
5181         test "$with_gnu_ld" != no && break
5182         ;;
5183       *)
5184         test "$with_gnu_ld" != yes && break
5185         ;;
5186       esac
5187     fi
5188   done
5189   IFS="$lt_save_ifs"
5190 else
5191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5195 LD="$lt_cv_path_LD"
5196 if test -n "$LD"; then
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5198 $as_echo "$LD" >&6; }
5199 else
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5203 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5206 if ${lt_cv_prog_gnu_ld+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5210 case `$LD -v 2>&1 </dev/null` in
5211 *GNU* | *'with BFD'*)
5212   lt_cv_prog_gnu_ld=yes
5213   ;;
5215   lt_cv_prog_gnu_ld=no
5216   ;;
5217 esac
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5220 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5221 with_gnu_ld=$lt_cv_prog_gnu_ld
5226     
5227     
5228     
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5232 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5233 if ${lt_cv_path_NM+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   if test -n "$NM"; then
5237   # Let the user override the test.
5238   lt_cv_path_NM="$NM"
5239 else
5240   lt_nm_to_check="${ac_tool_prefix}nm"
5241   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5242     lt_nm_to_check="$lt_nm_to_check nm"
5243   fi
5244   for lt_tmp_nm in $lt_nm_to_check; do
5245     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5247       IFS="$lt_save_ifs"
5248       test -z "$ac_dir" && ac_dir=.
5249       tmp_nm="$ac_dir/$lt_tmp_nm"
5250       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5251         # Check to see if the nm accepts a BSD-compat flag.
5252         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5253         #   nm: unknown option "B" ignored
5254         # Tru64's nm complains that /dev/null is an invalid object file
5255         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5256         */dev/null* | *'Invalid file or object type'*)
5257           lt_cv_path_NM="$tmp_nm -B"
5258           break
5259           ;;
5260         *)
5261           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5262           */dev/null*)
5263             lt_cv_path_NM="$tmp_nm -p"
5264             break
5265             ;;
5266           *)
5267             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5268             continue # so that we can try to find one that supports BSD flags
5269             ;;
5270           esac
5271           ;;
5272         esac
5273       fi
5274     done
5275     IFS="$lt_save_ifs"
5276   done
5277   : ${lt_cv_path_NM=no}
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5281 $as_echo "$lt_cv_path_NM" >&6; }
5282 if test "$lt_cv_path_NM" != "no"; then
5283   NM="$lt_cv_path_NM"
5284 else
5285   # Didn't find any BSD compatible name lister, look for dumpbin.
5286   if test -n "$DUMPBIN"; then :
5287     # Let the user override the test.
5288   else
5289     if test -n "$ac_tool_prefix"; then
5290   for ac_prog in dumpbin "link -dump"
5291   do
5292     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_DUMPBIN+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$DUMPBIN"; then
5300   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5319 DUMPBIN=$ac_cv_prog_DUMPBIN
5320 if test -n "$DUMPBIN"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5322 $as_echo "$DUMPBIN" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329     test -n "$DUMPBIN" && break
5330   done
5332 if test -z "$DUMPBIN"; then
5333   ac_ct_DUMPBIN=$DUMPBIN
5334   for ac_prog in dumpbin "link -dump"
5336   # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   if test -n "$ac_ct_DUMPBIN"; then
5344   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351     for ac_exec_ext in '' $ac_executable_extensions; do
5352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358   done
5359 IFS=$as_save_IFS
5363 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5364 if test -n "$ac_ct_DUMPBIN"; then
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5366 $as_echo "$ac_ct_DUMPBIN" >&6; }
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373   test -n "$ac_ct_DUMPBIN" && break
5374 done
5376   if test "x$ac_ct_DUMPBIN" = x; then
5377     DUMPBIN=":"
5378   else
5379     case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     DUMPBIN=$ac_ct_DUMPBIN
5386   fi
5389     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5390     *COFF*)
5391       DUMPBIN="$DUMPBIN -symbols"
5392       ;;
5393     *)
5394       DUMPBIN=:
5395       ;;
5396     esac
5397   fi
5398   
5399   if test "$DUMPBIN" != ":"; then
5400     NM="$DUMPBIN"
5401   fi
5403 test -z "$NM" && NM=nm
5406     
5407     
5408     
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5411 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5412 if ${lt_cv_nm_interface+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   lt_cv_nm_interface="BSD nm"
5416   echo "int some_variable = 0;" > conftest.$ac_ext
5417   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5418   (eval "$ac_compile" 2>conftest.err)
5419   cat conftest.err >&5
5420   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5421   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5422   cat conftest.err >&5
5423   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5424   cat conftest.out >&5
5425   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5426     lt_cv_nm_interface="MS dumpbin"
5427   fi
5428   rm -f conftest*
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5431 $as_echo "$lt_cv_nm_interface" >&6; }
5433 # find the maximum length of command line arguments
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5435 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5436 if ${lt_cv_sys_max_cmd_len+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439     i=0
5440   teststring="ABCD"
5442   case $build_os in
5443   msdosdjgpp*)
5444     # On DJGPP, this test can blow up pretty badly due to problems in libc
5445     # (any single argument exceeding 2000 bytes causes a buffer overrun
5446     # during glob expansion).  Even if it were fixed, the result of this
5447     # check would be larger than it should be.
5448     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5449     ;;
5451   gnu*)
5452     # Under GNU Hurd, this test is not required because there is
5453     # no limit to the length of command line arguments.
5454     # Libtool will interpret -1 as no limit whatsoever
5455     lt_cv_sys_max_cmd_len=-1;
5456     ;;
5458   cygwin* | mingw* | cegcc*)
5459     # On Win9x/ME, this test blows up -- it succeeds, but takes
5460     # about 5 minutes as the teststring grows exponentially.
5461     # Worse, since 9x/ME are not pre-emptively multitasking,
5462     # you end up with a "frozen" computer, even though with patience
5463     # the test eventually succeeds (with a max line length of 256k).
5464     # Instead, let's just punt: use the minimum linelength reported by
5465     # all of the supported platforms: 8192 (on NT/2K/XP).
5466     lt_cv_sys_max_cmd_len=8192;
5467     ;;
5469   mint*)
5470     # On MiNT this can take a long time and run out of memory.
5471     lt_cv_sys_max_cmd_len=8192;
5472     ;;
5474   amigaos*)
5475     # On AmigaOS with pdksh, this test takes hours, literally.
5476     # So we just punt and use a minimum line length of 8192.
5477     lt_cv_sys_max_cmd_len=8192;
5478     ;;
5480   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5481     # This has been around since 386BSD, at least.  Likely further.
5482     if test -x /sbin/sysctl; then
5483       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5484     elif test -x /usr/sbin/sysctl; then
5485       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5486     else
5487       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5488     fi
5489     # And add a safety zone
5490     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5492     ;;
5494   interix*)
5495     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5496     lt_cv_sys_max_cmd_len=196608
5497     ;;
5499   os2*)
5500     # The test takes a long time on OS/2.
5501     lt_cv_sys_max_cmd_len=8192
5502     ;;
5504   osf*)
5505     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5506     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5507     # nice to cause kernel panics so lets avoid the loop below.
5508     # First set a reasonable default.
5509     lt_cv_sys_max_cmd_len=16384
5510     #
5511     if test -x /sbin/sysconfig; then
5512       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5513         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5514       esac
5515     fi
5516     ;;
5517   sco3.2v5*)
5518     lt_cv_sys_max_cmd_len=102400
5519     ;;
5520   sysv5* | sco5v6* | sysv4.2uw2*)
5521     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5522     if test -n "$kargmax"; then
5523       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5524     else
5525       lt_cv_sys_max_cmd_len=32768
5526     fi
5527     ;;
5528   *)
5529     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5530     if test -n "$lt_cv_sys_max_cmd_len"; then
5531       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533     else
5534       # Make teststring a little bigger before we do anything with it.
5535       # a 1K string should be a reasonable start.
5536       for i in 1 2 3 4 5 6 7 8 ; do
5537         teststring=$teststring$teststring
5538       done
5539       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5540       # If test is not a shell built-in, we'll probably end up computing a
5541       # maximum length that is only half of the actual maximum length, but
5542       # we can't tell.
5543       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5544                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5545               test $i != 17 # 1/2 MB should be enough
5546       do
5547         i=`expr $i + 1`
5548         teststring=$teststring$teststring
5549       done
5550       # Only check the string length outside the loop.
5551       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5552       teststring=
5553       # Add a significant safety factor because C++ compilers can tack on
5554       # massive amounts of additional arguments before passing them to the
5555       # linker.  It appears as though 1/2 is a usable value.
5556       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5557     fi
5558     ;;
5559   esac
5563 if test -n $lt_cv_sys_max_cmd_len ; then
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5565 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5566 else
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5568 $as_echo "none" >&6; }
5570 max_cmd_len=$lt_cv_sys_max_cmd_len
5572     
5573     
5574     
5577 : ${CP="cp -f"}
5578 : ${MV="mv -f"}
5579 : ${RM="rm -f"}
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5582 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5583 # Try some XSI features
5584 xsi_shell=no
5585 ( _lt_dummy="a/b/c"
5586   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5587       = c,a/b,b/c, \
5588     && eval 'test $(( 1 + 1 )) -eq 2 \
5589     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5590   && xsi_shell=yes
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5592 $as_echo "$xsi_shell" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5596 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5597 lt_shell_append=no
5598 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5599     >/dev/null 2>&1 \
5600   && lt_shell_append=yes
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5602 $as_echo "$lt_shell_append" >&6; }
5605 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5606   lt_unset=unset
5607 else
5608   lt_unset=false
5611     
5612     
5613     
5615 # test EBCDIC or ASCII
5616 case `echo X|tr X '\101'` in
5617  A) # ASCII based system
5618     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5619   lt_SP2NL='tr \040 \012'
5620   lt_NL2SP='tr \015\012 \040\040'
5621   ;;
5622  *) # EBCDIC based system
5623   lt_SP2NL='tr \100 \n'
5624   lt_NL2SP='tr \r\n \100\100'
5625   ;;
5626 esac
5628     
5629     
5630     
5632     
5633     
5634     
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5637 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5638 if ${lt_cv_to_host_file_cmd+:} false; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   case $host in
5642   *-*-mingw* )
5643     case $build in
5644       *-*-mingw* ) # actually msys
5645         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5646         ;;
5647       *-*-cygwin* )
5648         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5649         ;;
5650       * ) # otherwise, assume *nix
5651         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5652         ;;
5653     esac
5654     ;;
5655   *-*-cygwin* )
5656     case $build in
5657       *-*-mingw* ) # actually msys
5658         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5659         ;;
5660       *-*-cygwin* )
5661         lt_cv_to_host_file_cmd=func_convert_file_noop
5662         ;;
5663       * ) # otherwise, assume *nix
5664         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5665         ;;
5666     esac
5667     ;;
5668   * ) # unhandled hosts (and "normal" native builds)
5669     lt_cv_to_host_file_cmd=func_convert_file_noop
5670     ;;
5671 esac
5675 to_host_file_cmd=$lt_cv_to_host_file_cmd
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5677 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5679     
5680     
5681     
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5684 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5685 if ${lt_cv_to_tool_file_cmd+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   #assume ordinary cross tools, or native build.
5689 lt_cv_to_tool_file_cmd=func_convert_file_noop
5690 case $host in
5691   *-*-mingw* )
5692     case $build in
5693       *-*-mingw* ) # actually msys
5694         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5695         ;;
5696     esac
5697     ;;
5698 esac
5702 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5704 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5706     
5707     
5708     
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5711 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5712 if ${lt_cv_ld_reload_flag+:} false; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   lt_cv_ld_reload_flag='-r'
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5718 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5719 reload_flag=$lt_cv_ld_reload_flag
5720 case $reload_flag in
5721 "" | " "*) ;;
5722 *) reload_flag=" $reload_flag" ;;
5723 esac
5724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5725 case $host_os in
5726   cygwin* | mingw* | pw32* | cegcc*)
5727     if test "$GCC" != yes; then
5728       reload_cmds=false
5729     fi
5730     ;;
5731   darwin*)
5732     if test "$GCC" = yes; then
5733       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5734     else
5735       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5736     fi
5737     ;;
5738 esac
5740     
5741     
5742     
5744     
5745     
5746     
5748 if test -n "$ac_tool_prefix"; then
5749   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5750 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_OBJDUMP+:} false; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if test -n "$OBJDUMP"; then
5757   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5776 OBJDUMP=$ac_cv_prog_OBJDUMP
5777 if test -n "$OBJDUMP"; then
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779 $as_echo "$OBJDUMP" >&6; }
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5787 if test -z "$ac_cv_prog_OBJDUMP"; then
5788   ac_ct_OBJDUMP=$OBJDUMP
5789   # Extract the first word of "objdump", so it can be a program name with args.
5790 set dummy objdump; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$ac_ct_OBJDUMP"; then
5797   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5816 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5817 if test -n "$ac_ct_OBJDUMP"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5819 $as_echo "$ac_ct_OBJDUMP" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5825   if test "x$ac_ct_OBJDUMP" = x; then
5826     OBJDUMP="false"
5827   else
5828     case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834     OBJDUMP=$ac_ct_OBJDUMP
5835   fi
5836 else
5837   OBJDUMP="$ac_cv_prog_OBJDUMP"
5840 test -z "$OBJDUMP" && OBJDUMP=objdump
5842     
5843     
5844     
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5851 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5852 if ${lt_cv_deplibs_check_method+:} false; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   lt_cv_file_magic_cmd='$MAGIC_CMD'
5856 lt_cv_file_magic_test_file=
5857 lt_cv_deplibs_check_method='unknown'
5858 # Need to set the preceding variable on all platforms that support
5859 # interlibrary dependencies.
5860 # 'none' -- dependencies not supported.
5861 # `unknown' -- same as none, but documents that we really don't know.
5862 # 'pass_all' -- all dependencies passed with no checks.
5863 # 'test_compile' -- check by making test program.
5864 # 'file_magic [[regex]]' -- check by looking for files in library path
5865 # which responds to the $file_magic_cmd with a given extended regex.
5866 # If you have `file' or equivalent on your system and you're not sure
5867 # whether `pass_all' will *always* work, you probably want this one.
5869 case $host_os in
5870 aix[4-9]*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5874 beos*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5878 bsdi[45]*)
5879   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880   lt_cv_file_magic_cmd='/usr/bin/file -L'
5881   lt_cv_file_magic_test_file=/shlib/libc.so
5882   ;;
5884 cygwin*)
5885   # func_win32_libid is a shell function defined in ltmain.sh
5886   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887   lt_cv_file_magic_cmd='func_win32_libid'
5888   ;;
5890 mingw* | pw32*)
5891   # Base MSYS/MinGW do not provide the 'file' command needed by
5892   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893   # unless we find 'file', for example because we are cross-compiling.
5894   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5895   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5896     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897     lt_cv_file_magic_cmd='func_win32_libid'
5898   else
5899     # Keep this pattern in sync with the one in func_win32_libid.
5900     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5901     lt_cv_file_magic_cmd='$OBJDUMP -f'
5902   fi
5903   ;;
5905 cegcc*)
5906   # use the weaker test based on 'objdump'. See mingw*.
5907   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5908   lt_cv_file_magic_cmd='$OBJDUMP -f'
5909   ;;
5911 darwin* | rhapsody*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5915 freebsd* | dragonfly*)
5916   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917     case $host_cpu in
5918     i*86 )
5919       # Not sure whether the presence of OpenBSD here was a mistake.
5920       # Let's accept both of them until this is cleared up.
5921       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5922       lt_cv_file_magic_cmd=/usr/bin/file
5923       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5924       ;;
5925     esac
5926   else
5927     lt_cv_deplibs_check_method=pass_all
5928   fi
5929   ;;
5931 haiku*)
5932   lt_cv_deplibs_check_method=pass_all
5933   ;;
5935 hpux10.20* | hpux11*)
5936   lt_cv_file_magic_cmd=/usr/bin/file
5937   case $host_cpu in
5938   ia64*)
5939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941     ;;
5942   hppa*64*)
5943     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]'
5944     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945     ;;
5946   *)
5947     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5948     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949     ;;
5950   esac
5951   ;;
5953 interix[3-9]*)
5954   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956   ;;
5958 irix5* | irix6* | nonstopux*)
5959   case $LD in
5960   *-32|*"-32 ") libmagic=32-bit;;
5961   *-n32|*"-n32 ") libmagic=N32;;
5962   *-64|*"-64 ") libmagic=64-bit;;
5963   *) libmagic=never-match;;
5964   esac
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5968 # This must be glibc/ELF.
5969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5973 netbsd* | netbsdelf*-gnu)
5974   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976   else
5977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978   fi
5979   ;;
5981 newos6*)
5982   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983   lt_cv_file_magic_cmd=/usr/bin/file
5984   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5985   ;;
5987 *nto* | *qnx*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5991 openbsd*)
5992   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5994   else
5995     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5996   fi
5997   ;;
5999 osf3* | osf4* | osf5*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6003 rdos*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6007 solaris*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6015 sysv4 | sysv4.3*)
6016   case $host_vendor in
6017   motorola)
6018     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]'
6019     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020     ;;
6021   ncr)
6022     lt_cv_deplibs_check_method=pass_all
6023     ;;
6024   sequent)
6025     lt_cv_file_magic_cmd='/bin/file'
6026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027     ;;
6028   sni)
6029     lt_cv_file_magic_cmd='/bin/file'
6030     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031     lt_cv_file_magic_test_file=/lib/libc.so
6032     ;;
6033   siemens)
6034     lt_cv_deplibs_check_method=pass_all
6035     ;;
6036   pc)
6037     lt_cv_deplibs_check_method=pass_all
6038     ;;
6039   esac
6040   ;;
6042 tpf*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045 esac
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6051 file_magic_glob=
6052 want_nocaseglob=no
6053 if test "$build" = "$host"; then
6054   case $host_os in
6055   mingw* | pw32*)
6056     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6057       want_nocaseglob=yes
6058     else
6059       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6060     fi
6061     ;;
6062   esac
6065 file_magic_cmd=$lt_cv_file_magic_cmd
6066 deplibs_check_method=$lt_cv_deplibs_check_method
6067 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6070     
6071     
6072     
6075     
6076     
6077     
6080     
6081     
6082     
6085     
6086     
6087     
6090 if test -n "$ac_tool_prefix"; then
6091   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_DLLTOOL+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if test -n "$DLLTOOL"; then
6099   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6118 DLLTOOL=$ac_cv_prog_DLLTOOL
6119 if test -n "$DLLTOOL"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6121 $as_echo "$DLLTOOL" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_DLLTOOL"; then
6130   ac_ct_DLLTOOL=$DLLTOOL
6131   # Extract the first word of "dlltool", so it can be a program name with args.
6132 set dummy dlltool; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6136   $as_echo_n "(cached) " >&6
6137 else
6138   if test -n "$ac_ct_DLLTOOL"; then
6139   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146     for ac_exec_ext in '' $ac_executable_extensions; do
6147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153   done
6154 IFS=$as_save_IFS
6158 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6159 if test -n "$ac_ct_DLLTOOL"; then
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6161 $as_echo "$ac_ct_DLLTOOL" >&6; }
6162 else
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167   if test "x$ac_ct_DLLTOOL" = x; then
6168     DLLTOOL="false"
6169   else
6170     case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176     DLLTOOL=$ac_ct_DLLTOOL
6177   fi
6178 else
6179   DLLTOOL="$ac_cv_prog_DLLTOOL"
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6184     
6185     
6186     
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6194 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6195 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   lt_cv_sharedlib_from_linklib_cmd='unknown'
6200 case $host_os in
6201 cygwin* | mingw* | pw32* | cegcc*)
6202   # two different shell functions defined in ltmain.sh
6203   # decide which to use based on capabilities of $DLLTOOL
6204   case `$DLLTOOL --help 2>&1` in
6205   *--identify-strict*)
6206     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6207     ;;
6208   *)
6209     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6210     ;;
6211   esac
6212   ;;
6214   # fallback: assume linklib IS sharedlib
6215   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6216   ;;
6217 esac
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6221 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6222 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6223 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6226     
6227     
6228     
6231 if test -n "$ac_tool_prefix"; then
6232   for ac_prog in ar
6233   do
6234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_AR+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   if test -n "$AR"; then
6242   ac_cv_prog_AR="$AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256   done
6257 IFS=$as_save_IFS
6261 AR=$ac_cv_prog_AR
6262 if test -n "$AR"; then
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6264 $as_echo "$AR" >&6; }
6265 else
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6271     test -n "$AR" && break
6272   done
6274 if test -z "$AR"; then
6275   ac_ct_AR=$AR
6276   for ac_prog in ar
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if test -n "$ac_ct_AR"; then
6286   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295     ac_cv_prog_ac_ct_AR="$ac_prog"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306 if test -n "$ac_ct_AR"; then
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6308 $as_echo "$ac_ct_AR" >&6; }
6309 else
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6315   test -n "$ac_ct_AR" && break
6316 done
6318   if test "x$ac_ct_AR" = x; then
6319     AR="false"
6320   else
6321     case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327     AR=$ac_ct_AR
6328   fi
6331 : ${AR=ar}
6332 : ${AR_FLAGS=cru}
6334     
6335     
6336     
6339     
6340     
6341     
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6345 $as_echo_n "checking for archiver @FILE support... " >&6; }
6346 if ${lt_cv_ar_at_file+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   lt_cv_ar_at_file=no
6350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6354 main ()
6357   ;
6358   return 0;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362   echo conftest.$ac_objext > conftest.lst
6363       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6364       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365   (eval $lt_ar_try) 2>&5
6366   ac_status=$?
6367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368   test $ac_status = 0; }
6369       if test "$ac_status" -eq 0; then
6370         # Ensure the archiver fails upon bogus file names.
6371         rm -f conftest.$ac_objext libconftest.a
6372         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6373   (eval $lt_ar_try) 2>&5
6374   ac_status=$?
6375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376   test $ac_status = 0; }
6377         if test "$ac_status" -ne 0; then
6378           lt_cv_ar_at_file=@
6379         fi
6380       fi
6381       rm -f conftest.* libconftest.a
6382      
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385   
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6388 $as_echo "$lt_cv_ar_at_file" >&6; }
6390 if test "x$lt_cv_ar_at_file" = xno; then
6391   archiver_list_spec=
6392 else
6393   archiver_list_spec=$lt_cv_ar_at_file
6396     
6397     
6398     
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}strip; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_STRIP+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$STRIP"; then
6411   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6433 $as_echo "$STRIP" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_STRIP"; then
6442   ac_ct_STRIP=$STRIP
6443   # Extract the first word of "strip", so it can be a program name with args.
6444 set dummy strip; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_STRIP"; then
6451   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460     ac_cv_prog_ac_ct_STRIP="strip"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6471 if test -n "$ac_ct_STRIP"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6473 $as_echo "$ac_ct_STRIP" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479   if test "x$ac_ct_STRIP" = x; then
6480     STRIP=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     STRIP=$ac_ct_STRIP
6489   fi
6490 else
6491   STRIP="$ac_cv_prog_STRIP"
6494 test -z "$STRIP" && STRIP=:
6496     
6497     
6498     
6501 if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_RANLIB+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$RANLIB"; then
6510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6529 RANLIB=$ac_cv_prog_RANLIB
6530 if test -n "$RANLIB"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6532 $as_echo "$RANLIB" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_RANLIB"; then
6541   ac_ct_RANLIB=$RANLIB
6542   # Extract the first word of "ranlib", so it can be a program name with args.
6543 set dummy ranlib; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_RANLIB"; then
6550   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_prog_ac_ct_RANLIB="ranlib"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 $as_echo "$ac_ct_RANLIB" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578   if test "x$ac_ct_RANLIB" = x; then
6579     RANLIB=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     RANLIB=$ac_ct_RANLIB
6588   fi
6589 else
6590   RANLIB="$ac_cv_prog_RANLIB"
6593 test -z "$RANLIB" && RANLIB=:
6595     
6596     
6597     
6600 # Determine commands to create old-style static archives.
6601 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6602 old_postinstall_cmds='chmod 644 $oldlib'
6603 old_postuninstall_cmds=
6605 if test -n "$RANLIB"; then
6606   case $host_os in
6607   openbsd*)
6608     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6609     ;;
6610   *)
6611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6612     ;;
6613   esac
6614   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6617 case $host_os in
6618   darwin*)
6619     lock_old_archive_extraction=yes ;;
6620   *)
6621     lock_old_archive_extraction=no ;;
6622 esac
6624     
6625     
6626     
6629     
6630     
6631     
6634     
6635     
6636     
6639     
6640     
6641     
6646     
6647     
6648     
6650     
6651     
6652     
6654     
6655     
6656     
6658     
6659     
6660     
6662 # If no C compiler was specified, use CC.
6663 LTCC=${LTCC-"$CC"}
6665 # If no C compiler flags were specified, use CFLAGS.
6666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6668 # Allow CC to be a program name with arguments.
6669 compiler=$CC
6672 # Check for command to grab the raw symbol name followed by C symbol from nm.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   
6679 # These are sane defaults that work on at least a few old systems.
6680 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6682 # Character class describing NM global symbol codes.
6683 symcode='[BCDEGRST]'
6685 # Regexp to match symbols that can be accessed directly from C.
6686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6688 # Define system-specific variables.
6689 case $host_os in
6690 aix*)
6691   symcode='[BCDT]'
6692   ;;
6693 cygwin* | mingw* | pw32* | cegcc*)
6694   symcode='[ABCDGISTW]'
6695   ;;
6696 hpux*)
6697   if test "$host_cpu" = ia64; then
6698     symcode='[ABCDEGRST]'
6699   fi
6700   ;;
6701 irix* | nonstopux*)
6702   symcode='[BCDEGRST]'
6703   ;;
6704 osf*)
6705   symcode='[BCDEGQRST]'
6706   ;;
6707 solaris*)
6708   symcode='[BDRT]'
6709   ;;
6710 sco3.2v5*)
6711   symcode='[DT]'
6712   ;;
6713 sysv4.2uw2*)
6714   symcode='[DT]'
6715   ;;
6716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6717   symcode='[ABDT]'
6718   ;;
6719 sysv4)
6720   symcode='[DFNSTU]'
6721   ;;
6722 esac
6724 # If we're using GNU nm, then use its standard symbol codes.
6725 case `$NM -V 2>&1` in
6726 *GNU* | *'with BFD'*)
6727   symcode='[ABCDGIRSTW]' ;;
6728 esac
6730 # Transform an extracted symbol line into a proper C declaration.
6731 # Some systems (esp. on ia64) link data and code symbols differently,
6732 # so use this general approach.
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6737 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'"
6739 # Handle CRLF in mingw tool chain
6740 opt_cr=
6741 case $build_os in
6742 mingw*)
6743   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6744   ;;
6745 esac
6747 # Try without a prefix underscore, then with it.
6748 for ac_symprfx in "" "_"; do
6750   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6751   symxfrm="\\1 $ac_symprfx\\2 \\2"
6753   # Write the raw and C identifiers.
6754   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755     # Fake it for dumpbin and say T for any non-static function
6756     # and D for any global variable.
6757     # Also find C++ and __fastcall symbols from MSVC++,
6758     # which start with @ or ?.
6759     lt_cv_sys_global_symbol_pipe="$AWK '"\
6760 "     {last_section=section; section=\$ 3};"\
6761 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6762 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6763 "     \$ 0!~/External *\|/{next};"\
6764 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6765 "     {if(hide[section]) next};"\
6766 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6767 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6768 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6769 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6770 "     ' prfx=^$ac_symprfx"
6771   else
6772     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6773   fi
6774   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6776   # Check to see that the pipe works correctly.
6777   pipe_works=no
6779   rm -f conftest*
6780   cat > conftest.$ac_ext <<_LT_EOF
6781 #ifdef __cplusplus
6782 extern "C" {
6783 #endif
6784 char nm_test_var;
6785 void nm_test_func(void);
6786 void nm_test_func(void){}
6787 #ifdef __cplusplus
6789 #endif
6790 int main(){nm_test_var='a';nm_test_func();return(0);}
6791 _LT_EOF
6793   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794   (eval $ac_compile) 2>&5
6795   ac_status=$?
6796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797   test $ac_status = 0; }; then
6798     # Now try to grab the symbols.
6799     nlist=conftest.nm
6800     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6801   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804   test $ac_status = 0; } && test -s "$nlist"; then
6805       # Try sorting and uniquifying the output.
6806       if sort "$nlist" | uniq > "$nlist"T; then
6807         mv -f "$nlist"T "$nlist"
6808       else
6809         rm -f "$nlist"T
6810       fi
6812       # Make sure that we snagged all the symbols we need.
6813       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6814         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6815           cat <<_LT_EOF > conftest.$ac_ext
6816 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6817 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6818 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6819    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6820 # define LT@&t@_DLSYM_CONST
6821 #elif defined(__osf__)
6822 /* This system does not cope well with relocations in const data.  */
6823 # define LT@&t@_DLSYM_CONST
6824 #else
6825 # define LT@&t@_DLSYM_CONST const
6826 #endif
6828 #ifdef __cplusplus
6829 extern "C" {
6830 #endif
6832 _LT_EOF
6833           # Now generate the symbol file.
6834           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6836           cat <<_LT_EOF >> conftest.$ac_ext
6838 /* The mapping between symbol names and symbols.  */
6839 LT@&t@_DLSYM_CONST struct {
6840   const char *name;
6841   void       *address;
6843 lt__PROGRAM__LTX_preloaded_symbols[] =
6845   { "@PROGRAM@", (void *) 0 },
6846 _LT_EOF
6847           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6848           cat <<\_LT_EOF >> conftest.$ac_ext
6849   {0, (void *) 0}
6852 /* This works around a problem in FreeBSD linker */
6853 #ifdef FREEBSD_WORKAROUND
6854 static const void *lt_preloaded_setup() {
6855   return lt__PROGRAM__LTX_preloaded_symbols;
6857 #endif
6859 #ifdef __cplusplus
6861 #endif
6862 _LT_EOF
6863           # Now try linking the two files.
6864           mv conftest.$ac_objext conftstm.$ac_objext
6865           lt_globsym_save_LIBS=$LIBS
6866           lt_globsym_save_CFLAGS=$CFLAGS
6867           LIBS="conftstm.$ac_objext"
6868           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6869           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6870   (eval $ac_link) 2>&5
6871   ac_status=$?
6872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6874             pipe_works=yes
6875           fi
6876           LIBS=$lt_globsym_save_LIBS
6877           CFLAGS=$lt_globsym_save_CFLAGS
6878         else
6879           echo "cannot find nm_test_func in $nlist" >&5
6880         fi
6881       else
6882         echo "cannot find nm_test_var in $nlist" >&5
6883       fi
6884     else
6885       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6886     fi
6887   else
6888     echo "$progname: failed program was:" >&5
6889     cat conftest.$ac_ext >&5
6890   fi
6891   rm -rf conftest* conftst*
6893   # Do not use the global_symbol_pipe unless it works.
6894   if test "$pipe_works" = yes; then
6895     break
6896   else
6897     lt_cv_sys_global_symbol_pipe=
6898   fi
6899 done
6903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6904   lt_cv_sys_global_symbol_to_cdecl=
6906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6908 $as_echo "failed" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6911 $as_echo "ok" >&6; }
6914 # Response file support.
6915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916   nm_file_list_spec='@'
6917 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6918   nm_file_list_spec='@'
6922     
6923     
6924     
6927     
6928     
6929     
6932     
6933     
6934     
6937     
6938     
6939     
6942     
6943     
6944     
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6948 $as_echo_n "checking for sysroot... " >&6; }
6950 @%:@ Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952   withval=$with_sysroot; 
6953 else
6954   with_sysroot=no
6958 lt_sysroot=
6959 case ${with_sysroot} in #(
6960  yes)
6961    if test "$GCC" = yes; then
6962      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6963    fi
6964    ;; #(
6965  /*)
6966    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6967    ;; #(
6968  no|'')
6969    ;; #(
6970  *)
6971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6972 $as_echo "${with_sysroot}" >&6; }
6973    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6974    ;;
6975 esac
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6978 $as_echo "${lt_sysroot:-no}" >&6; }
6980     
6981     
6982     
6984 @%:@ Check whether --enable-libtool-lock was given.
6985 if test "${enable_libtool_lock+set}" = set; then :
6986   enableval=$enable_libtool_lock; 
6989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991 # Some flags need to be propagated to the compiler or linker for good
6992 # libtool support.
6993 case $host in
6994 ia64-*-hpux*)
6995   # Find out which ABI we are using.
6996   echo 'int i;' > conftest.$ac_ext
6997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001   test $ac_status = 0; }; then
7002     case `/usr/bin/file conftest.$ac_objext` in
7003       *ELF-32*)
7004         HPUX_IA64_MODE="32"
7005         ;;
7006       *ELF-64*)
7007         HPUX_IA64_MODE="64"
7008         ;;
7009     esac
7010   fi
7011   rm -rf conftest*
7012   ;;
7013 *-*-irix6*)
7014   # Find out which ABI we are using.
7015   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7017   (eval $ac_compile) 2>&5
7018   ac_status=$?
7019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020   test $ac_status = 0; }; then
7021     if test "$lt_cv_prog_gnu_ld" = yes; then
7022       case `/usr/bin/file conftest.$ac_objext` in
7023         *32-bit*)
7024           LD="${LD-ld} -melf32bsmip"
7025           ;;
7026         *N32*)
7027           LD="${LD-ld} -melf32bmipn32"
7028           ;;
7029         *64-bit*)
7030           LD="${LD-ld} -melf64bmip"
7031         ;;
7032       esac
7033     else
7034       case `/usr/bin/file conftest.$ac_objext` in
7035         *32-bit*)
7036           LD="${LD-ld} -32"
7037           ;;
7038         *N32*)
7039           LD="${LD-ld} -n32"
7040           ;;
7041         *64-bit*)
7042           LD="${LD-ld} -64"
7043           ;;
7044       esac
7045     fi
7046   fi
7047   rm -rf conftest*
7048   ;;
7050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7052   # Find out which ABI we are using.
7053   echo 'int i;' > conftest.$ac_ext
7054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055   (eval $ac_compile) 2>&5
7056   ac_status=$?
7057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058   test $ac_status = 0; }; then
7059     case `/usr/bin/file conftest.o` in
7060       *32-bit*)
7061         case $host in
7062           x86_64-*kfreebsd*-gnu)
7063             LD="${LD-ld} -m elf_i386_fbsd"
7064             ;;
7065           x86_64-*linux*)
7066             LD="${LD-ld} -m elf_i386"
7067             ;;
7068           ppc64-*linux*|powerpc64-*linux*)
7069             LD="${LD-ld} -m elf32ppclinux"
7070             ;;
7071           s390x-*linux*)
7072             LD="${LD-ld} -m elf_s390"
7073             ;;
7074           sparc64-*linux*)
7075             LD="${LD-ld} -m elf32_sparc"
7076             ;;
7077         esac
7078         ;;
7079       *64-bit*)
7080         case $host in
7081           x86_64-*kfreebsd*-gnu)
7082             LD="${LD-ld} -m elf_x86_64_fbsd"
7083             ;;
7084           x86_64-*linux*)
7085             LD="${LD-ld} -m elf_x86_64"
7086             ;;
7087           ppc*-*linux*|powerpc*-*linux*)
7088             LD="${LD-ld} -m elf64ppc"
7089             ;;
7090           s390*-*linux*|s390*-*tpf*)
7091             LD="${LD-ld} -m elf64_s390"
7092             ;;
7093           sparc*-*linux*)
7094             LD="${LD-ld} -m elf64_sparc"
7095             ;;
7096         esac
7097         ;;
7098     esac
7099   fi
7100   rm -rf conftest*
7101   ;;
7103 *-*-sco3.2v5*)
7104   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7105   SAVE_CFLAGS="$CFLAGS"
7106   CFLAGS="$CFLAGS -belf"
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7109 if ${lt_cv_cc_needs_belf+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   ac_ext=c
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7122 main ()
7125   ;
7126   return 0;
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130   lt_cv_cc_needs_belf=yes
7131 else
7132   lt_cv_cc_needs_belf=no
7134 rm -f core conftest.err conftest.$ac_objext \
7135     conftest$ac_exeext conftest.$ac_ext
7136      ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7145   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7146     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7147     CFLAGS="$SAVE_CFLAGS"
7148   fi
7149   ;;
7150 *-*solaris*)
7151   # Find out which ABI we are using.
7152   echo 'int i;' > conftest.$ac_ext
7153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157   test $ac_status = 0; }; then
7158     case `/usr/bin/file conftest.o` in
7159     *64-bit*)
7160       case $lt_cv_prog_gnu_ld in
7161       yes*)
7162         case $host in
7163         i?86-*-solaris*)
7164           LD="${LD-ld} -m elf_x86_64"
7165           ;;
7166         sparc*-*-solaris*)
7167           LD="${LD-ld} -m elf64_sparc"
7168           ;;
7169         esac
7170         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7171         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7172           LD="${LD-ld}_sol2"
7173         fi
7174         ;;
7175       *)
7176         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7177           LD="${LD-ld} -64"
7178         fi
7179         ;;
7180       esac
7181       ;;
7182     esac
7183   fi
7184   rm -rf conftest*
7185   ;;
7186 esac
7188 need_locks="$enable_libtool_lock"
7190 if test -n "$ac_tool_prefix"; then
7191   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$MANIFEST_TOOL"; then
7199   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7219 if test -n "$MANIFEST_TOOL"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7221 $as_echo "$MANIFEST_TOOL" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7230   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7231   # Extract the first word of "mt", so it can be a program name with args.
7232 set dummy mt; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if test -n "$ac_ct_MANIFEST_TOOL"; then
7239   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246     for ac_exec_ext in '' $ac_executable_extensions; do
7247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253   done
7254 IFS=$as_save_IFS
7258 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7259 if test -n "$ac_ct_MANIFEST_TOOL"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7261 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7267   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7268     MANIFEST_TOOL=":"
7269   else
7270     case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7277   fi
7278 else
7279   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7282 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7284 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7285 if ${lt_cv_path_mainfest_tool+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   lt_cv_path_mainfest_tool=no
7289   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7290   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7291   cat conftest.err >&5
7292   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7293     lt_cv_path_mainfest_tool=yes
7294   fi
7295   rm -f conftest*
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7298 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7299 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7300   MANIFEST_TOOL=:
7303     
7304     
7305     
7308   case $host_os in
7309     rhapsody* | darwin*)
7310     if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$DSYMUTIL"; then
7319   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7338 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7339 if test -n "$DSYMUTIL"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7341 $as_echo "$DSYMUTIL" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7349 if test -z "$ac_cv_prog_DSYMUTIL"; then
7350   ac_ct_DSYMUTIL=$DSYMUTIL
7351   # Extract the first word of "dsymutil", so it can be a program name with args.
7352 set dummy dsymutil; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_DSYMUTIL"; then
7359   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7378 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7379 if test -n "$ac_ct_DSYMUTIL"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7381 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7387   if test "x$ac_ct_DSYMUTIL" = x; then
7388     DSYMUTIL=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     DSYMUTIL=$ac_ct_DSYMUTIL
7397   fi
7398 else
7399   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7402     if test -n "$ac_tool_prefix"; then
7403   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_NMEDIT+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   if test -n "$NMEDIT"; then
7411   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418     for ac_exec_ext in '' $ac_executable_extensions; do
7419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425   done
7426 IFS=$as_save_IFS
7430 NMEDIT=$ac_cv_prog_NMEDIT
7431 if test -n "$NMEDIT"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7433 $as_echo "$NMEDIT" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_NMEDIT"; then
7442   ac_ct_NMEDIT=$NMEDIT
7443   # Extract the first word of "nmedit", so it can be a program name with args.
7444 set dummy nmedit; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$ac_ct_NMEDIT"; then
7451   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7470 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7471 if test -n "$ac_ct_NMEDIT"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7473 $as_echo "$ac_ct_NMEDIT" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479   if test "x$ac_ct_NMEDIT" = x; then
7480     NMEDIT=":"
7481   else
7482     case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488     NMEDIT=$ac_ct_NMEDIT
7489   fi
7490 else
7491   NMEDIT="$ac_cv_prog_NMEDIT"
7494     if test -n "$ac_tool_prefix"; then
7495   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_LIPO+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   if test -n "$LIPO"; then
7503   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510     for ac_exec_ext in '' $ac_executable_extensions; do
7511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517   done
7518 IFS=$as_save_IFS
7522 LIPO=$ac_cv_prog_LIPO
7523 if test -n "$LIPO"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7525 $as_echo "$LIPO" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7533 if test -z "$ac_cv_prog_LIPO"; then
7534   ac_ct_LIPO=$LIPO
7535   # Extract the first word of "lipo", so it can be a program name with args.
7536 set dummy lipo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$ac_ct_LIPO"; then
7543   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_prog_ac_ct_LIPO="lipo"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7563 if test -n "$ac_ct_LIPO"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7565 $as_echo "$ac_ct_LIPO" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7571   if test "x$ac_ct_LIPO" = x; then
7572     LIPO=":"
7573   else
7574     case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580     LIPO=$ac_ct_LIPO
7581   fi
7582 else
7583   LIPO="$ac_cv_prog_LIPO"
7586     if test -n "$ac_tool_prefix"; then
7587   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   if test -n "$OTOOL"; then
7595   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609   done
7610 IFS=$as_save_IFS
7614 OTOOL=$ac_cv_prog_OTOOL
7615 if test -n "$OTOOL"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7617 $as_echo "$OTOOL" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7625 if test -z "$ac_cv_prog_OTOOL"; then
7626   ac_ct_OTOOL=$OTOOL
7627   # Extract the first word of "otool", so it can be a program name with args.
7628 set dummy otool; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test -n "$ac_ct_OTOOL"; then
7635   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_prog_ac_ct_OTOOL="otool"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7655 if test -n "$ac_ct_OTOOL"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7657 $as_echo "$ac_ct_OTOOL" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7663   if test "x$ac_ct_OTOOL" = x; then
7664     OTOOL=":"
7665   else
7666     case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672     OTOOL=$ac_ct_OTOOL
7673   fi
7674 else
7675   OTOOL="$ac_cv_prog_OTOOL"
7678     if test -n "$ac_tool_prefix"; then
7679   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_OTOOL64+:} false; then :
7684   $as_echo_n "(cached) " >&6
7685 else
7686   if test -n "$OTOOL64"; then
7687   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7706 OTOOL64=$ac_cv_prog_OTOOL64
7707 if test -n "$OTOOL64"; then
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7709 $as_echo "$OTOOL64" >&6; }
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 if test -z "$ac_cv_prog_OTOOL64"; then
7718   ac_ct_OTOOL64=$OTOOL64
7719   # Extract the first word of "otool64", so it can be a program name with args.
7720 set dummy otool64; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -n "$ac_ct_OTOOL64"; then
7727   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736     ac_cv_prog_ac_ct_OTOOL64="otool64"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7746 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7747 if test -n "$ac_ct_OTOOL64"; then
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7749 $as_echo "$ac_ct_OTOOL64" >&6; }
7750 else
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755   if test "x$ac_ct_OTOOL64" = x; then
7756     OTOOL64=":"
7757   else
7758     case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764     OTOOL64=$ac_ct_OTOOL64
7765   fi
7766 else
7767   OTOOL64="$ac_cv_prog_OTOOL64"
7770     
7771     
7772     
7773     
7775     
7776     
7777     
7778     
7780     
7781     
7782     
7783     
7785     
7786     
7787     
7788     
7790     
7791     
7792     
7793     
7796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7797 $as_echo_n "checking for -single_module linker flag... " >&6; }
7798 if ${lt_cv_apple_cc_single_mod+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   lt_cv_apple_cc_single_mod=no
7802       if test -z "${LT_MULTI_MODULE}"; then
7803         # By default we will add the -single_module flag. You can override
7804         # by either setting the environment variable LT_MULTI_MODULE
7805         # non-empty at configure time, or by adding -multi_module to the
7806         # link flags.
7807         rm -rf libconftest.dylib*
7808         echo "int foo(void){return 1;}" > conftest.c
7809         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810 -dynamiclib -Wl,-single_module conftest.c" >&5
7811         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7813         _lt_result=$?
7814         # If there is a non-empty error log, and "single_module"
7815         # appears in it, assume the flag caused a linker warning
7816         if test -s conftest.err && $GREP single_module conftest.err; then
7817           cat conftest.err >&5
7818         # Otherwise, if the output was created with a 0 exit code from
7819         # the compiler, it worked.
7820         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7821           lt_cv_apple_cc_single_mod=yes
7822         else
7823           cat conftest.err >&5
7824         fi
7825         rm -rf libconftest.dylib*
7826         rm -f conftest.*
7827       fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7833 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7834 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_ld_exported_symbols_list=no
7838       save_LDFLAGS=$LDFLAGS
7839       echo "_main" > conftest.sym
7840       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7845 main ()
7848   ;
7849   return 0;
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853   lt_cv_ld_exported_symbols_list=yes
7854 else
7855   lt_cv_ld_exported_symbols_list=no
7857 rm -f core conftest.err conftest.$ac_objext \
7858     conftest$ac_exeext conftest.$ac_ext
7859         LDFLAGS="$save_LDFLAGS"
7860     
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7863 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if ${lt_cv_ld_force_load+:} false; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   lt_cv_ld_force_load=no
7871       cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7873 _LT_EOF
7874       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876       echo "$AR cru libconftest.a conftest.o" >&5
7877       $AR cru libconftest.a conftest.o 2>&5
7878       echo "$RANLIB libconftest.a" >&5
7879       $RANLIB libconftest.a 2>&5
7880       cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7882 _LT_EOF
7883       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7885       _lt_result=$?
7886       if test -s conftest.err && $GREP force_load conftest.err; then
7887         cat conftest.err >&5
7888       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7889         lt_cv_ld_force_load=yes
7890       else
7891         cat conftest.err >&5
7892       fi
7893         rm -f conftest.err libconftest.a conftest conftest.c
7894         rm -rf conftest.dSYM
7895     
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7898 $as_echo "$lt_cv_ld_force_load" >&6; }
7899     case $host_os in
7900     rhapsody* | darwin1.[012])
7901       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7902     darwin1.*)
7903       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7904     darwin*) # darwin 5.x on
7905       # if running on 10.5 or later, the deployment target defaults
7906       # to the OS version, if on x86, and 10.4, the deployment
7907       # target defaults to 10.4. Don't you love it?
7908       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7909         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7910           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7911         10.[012]*)
7912           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7913         10.*)
7914           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915       esac
7916     ;;
7917   esac
7918     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7919       _lt_dar_single_mod='$single_module'
7920     fi
7921     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7922       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7923     else
7924       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7925     fi
7926     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7927       _lt_dsymutil='~$DSYMUTIL $lib || :'
7928     else
7929       _lt_dsymutil=
7930     fi
7931     ;;
7932   esac
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7935 $as_echo_n "checking for ANSI C header files... " >&6; }
7936 if ${ac_cv_header_stdc+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h.  */
7941 #include <stdlib.h>
7942 #include <stdarg.h>
7943 #include <string.h>
7944 #include <float.h>
7947 main ()
7950   ;
7951   return 0;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955   ac_cv_header_stdc=yes
7956 else
7957   ac_cv_header_stdc=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 if test $ac_cv_header_stdc = yes; then
7962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h.  */
7965 #include <string.h>
7967 _ACEOF
7968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969   $EGREP "memchr" >/dev/null 2>&1; then :
7970   
7971 else
7972   ac_cv_header_stdc=no
7974 rm -f conftest*
7978 if test $ac_cv_header_stdc = yes; then
7979   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982 #include <stdlib.h>
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986   $EGREP "free" >/dev/null 2>&1; then :
7987   
7988 else
7989   ac_cv_header_stdc=no
7991 rm -f conftest*
7995 if test $ac_cv_header_stdc = yes; then
7996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7997   if test "$cross_compiling" = yes; then :
7998   :
7999 else
8000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h.  */
8002 #include <ctype.h>
8003 #include <stdlib.h>
8004 #if ((' ' & 0x0FF) == 0x020)
8005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8007 #else
8008 # define ISLOWER(c) \
8009                    (('a' <= (c) && (c) <= 'i') \
8010                      || ('j' <= (c) && (c) <= 'r') \
8011                      || ('s' <= (c) && (c) <= 'z'))
8012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8013 #endif
8015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8017 main ()
8019   int i;
8020   for (i = 0; i < 256; i++)
8021     if (XOR (islower (i), ISLOWER (i))
8022         || toupper (i) != TOUPPER (i))
8023       return 2;
8024   return 0;
8026 _ACEOF
8027 if ac_fn_c_try_run "$LINENO"; then :
8028   
8029 else
8030   ac_cv_header_stdc=no
8032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8033   conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8039 $as_echo "$ac_cv_header_stdc" >&6; }
8040 if test $ac_cv_header_stdc = yes; then
8041   
8042 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8048                   inttypes.h stdint.h unistd.h
8049 do :
8050   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8054   cat >>confdefs.h <<_ACEOF
8055 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8060 done
8063 for ac_header in dlfcn.h
8064 do :
8065   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8067 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8068   cat >>confdefs.h <<_ACEOF
8069 @%:@define HAVE_DLFCN_H 1
8070 _ACEOF
8074 done
8080 # Set options
8084         enable_dlopen=no
8085   
8087   enable_win32_dll=no
8088   
8090             @%:@ Check whether --enable-shared was given.
8091 if test "${enable_shared+set}" = set; then :
8092   enableval=$enable_shared; p=${PACKAGE-default}
8093     case $enableval in
8094     yes) enable_shared=yes ;;
8095     no) enable_shared=no ;;
8096     *)
8097       enable_shared=no
8098       # Look at the argument we got.  We use all the common list separators.
8099       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8100       for pkg in $enableval; do
8101         IFS="$lt_save_ifs"
8102         if test "X$pkg" = "X$p"; then
8103           enable_shared=yes
8104         fi
8105       done
8106       IFS="$lt_save_ifs"
8107       ;;
8108     esac
8109 else
8110   enable_shared=yes
8114     
8115     
8116     
8117     
8121   @%:@ Check whether --enable-static was given.
8122 if test "${enable_static+set}" = set; then :
8123   enableval=$enable_static; p=${PACKAGE-default}
8124     case $enableval in
8125     yes) enable_static=yes ;;
8126     no) enable_static=no ;;
8127     *)
8128      enable_static=no
8129       # Look at the argument we got.  We use all the common list separators.
8130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131       for pkg in $enableval; do
8132         IFS="$lt_save_ifs"
8133         if test "X$pkg" = "X$p"; then
8134           enable_static=yes
8135         fi
8136       done
8137       IFS="$lt_save_ifs"
8138       ;;
8139     esac
8140 else
8141   enable_static=yes
8145     
8146     
8147     
8148     
8152   
8153 @%:@ Check whether --with-pic was given.
8154 if test "${with_pic+set}" = set; then :
8155   withval=$with_pic; lt_p=${PACKAGE-default}
8156     case $withval in
8157     yes|no) pic_mode=$withval ;;
8158     *)
8159       pic_mode=default
8160       # Look at the argument we got.  We use all the common list separators.
8161       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8162       for lt_pkg in $withval; do
8163         IFS="$lt_save_ifs"
8164         if test "X$lt_pkg" = "X$lt_p"; then
8165           pic_mode=yes
8166         fi
8167       done
8168       IFS="$lt_save_ifs"
8169       ;;
8170     esac
8171 else
8172   pic_mode=default
8176 test -z "$pic_mode" && pic_mode=default
8179     
8180     
8181     
8184   @%:@ Check whether --enable-fast-install was given.
8185 if test "${enable_fast_install+set}" = set; then :
8186   enableval=$enable_fast_install; p=${PACKAGE-default}
8187     case $enableval in
8188     yes) enable_fast_install=yes ;;
8189     no) enable_fast_install=no ;;
8190     *)
8191       enable_fast_install=no
8192       # Look at the argument we got.  We use all the common list separators.
8193       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194       for pkg in $enableval; do
8195         IFS="$lt_save_ifs"
8196         if test "X$pkg" = "X$p"; then
8197           enable_fast_install=yes
8198         fi
8199       done
8200       IFS="$lt_save_ifs"
8201       ;;
8202     esac
8203 else
8204   enable_fast_install=yes
8209     
8210     
8211     
8214   
8217 # This can be used to rebuild libtool when needed
8218 LIBTOOL_DEPS="$ltmain"
8220 # Always use our own libtool.
8221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8225     
8226     
8227     
8229     
8230     
8231     
8233     
8234     
8235     
8237     
8238     
8239     
8241     
8242     
8243     
8245     
8246     
8247     
8249     
8250     
8251     
8252 test -z "$LN_S" && LN_S="ln -s"
8254     
8255     
8256     
8258     
8259     
8260     
8262     
8263     
8264     
8267 if test -n "${ZSH_VERSION+set}" ; then
8268    setopt NO_GLOB_SUBST
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8272 $as_echo_n "checking for objdir... " >&6; }
8273 if ${lt_cv_objdir+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   rm -f .libs 2>/dev/null
8277 mkdir .libs 2>/dev/null
8278 if test -d .libs; then
8279   lt_cv_objdir=.libs
8280 else
8281   # MS-DOS does not allow filenames that begin with a dot.
8282   lt_cv_objdir=_libs
8284 rmdir .libs 2>/dev/null
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8287 $as_echo "$lt_cv_objdir" >&6; }
8288 objdir=$lt_cv_objdir
8290     
8291     
8292     
8294 cat >>confdefs.h <<_ACEOF
8295 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8296 _ACEOF
8301 case $host_os in
8302 aix3*)
8303   # AIX sometimes has problems with the GCC collect2 program.  For some
8304   # reason, if we set the COLLECT_NAMES environment variable, the problems
8305   # vanish in a puff of smoke.
8306   if test "X${COLLECT_NAMES+set}" != Xset; then
8307     COLLECT_NAMES=
8308     export COLLECT_NAMES
8309   fi
8310   ;;
8311 esac
8313 # Global variables:
8314 ofile=libtool
8315 can_build_shared=yes
8317 # All known linkers require a `.a' archive for static linking (except MSVC,
8318 # which needs '.lib').
8319 libext=a
8321 with_gnu_ld="$lt_cv_prog_gnu_ld"
8323 old_CC="$CC"
8324 old_CFLAGS="$CFLAGS"
8326 # Set sane defaults for various variables
8327 test -z "$CC" && CC=cc
8328 test -z "$LTCC" && LTCC=$CC
8329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8330 test -z "$LD" && LD=ld
8331 test -z "$ac_objext" && ac_objext=o
8333 for cc_temp in $compiler""; do
8334   case $cc_temp in
8335     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8336     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8337     \-*) ;;
8338     *) break;;
8339   esac
8340 done
8341 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8344 # Only perform the check for file, if the check method requires it
8345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8346 case $deplibs_check_method in
8347 file_magic*)
8348   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8350 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8351 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   case $MAGIC_CMD in
8355 [\\/*] |  ?:[\\/]*)
8356   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8357   ;;
8359   lt_save_MAGIC_CMD="$MAGIC_CMD"
8360   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8361   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8362   for ac_dir in $ac_dummy; do
8363     IFS="$lt_save_ifs"
8364     test -z "$ac_dir" && ac_dir=.
8365     if test -f $ac_dir/${ac_tool_prefix}file; then
8366       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8367       if test -n "$file_magic_test_file"; then
8368         case $deplibs_check_method in
8369         "file_magic "*)
8370           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8371           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8373             $EGREP "$file_magic_regex" > /dev/null; then
8374             :
8375           else
8376             cat <<_LT_EOF 1>&2
8378 *** Warning: the command libtool uses to detect shared libraries,
8379 *** $file_magic_cmd, produces output that libtool cannot recognize.
8380 *** The result is that libtool may fail to recognize shared libraries
8381 *** as such.  This will affect the creation of libtool libraries that
8382 *** depend on shared libraries, but programs linked with such libtool
8383 *** libraries will work regardless of this problem.  Nevertheless, you
8384 *** may want to report the problem to your system manager and/or to
8385 *** bug-libtool@gnu.org
8387 _LT_EOF
8388           fi ;;
8389         esac
8390       fi
8391       break
8392     fi
8393   done
8394   IFS="$lt_save_ifs"
8395   MAGIC_CMD="$lt_save_MAGIC_CMD"
8396   ;;
8397 esac
8400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8401 if test -n "$MAGIC_CMD"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8403 $as_echo "$MAGIC_CMD" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409     
8410     
8411     
8413 if test -z "$lt_cv_path_MAGIC_CMD"; then
8414   if test -n "$ac_tool_prefix"; then
8415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8416 $as_echo_n "checking for file... " >&6; }
8417 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   case $MAGIC_CMD in
8421 [\\/*] |  ?:[\\/]*)
8422   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8423   ;;
8425   lt_save_MAGIC_CMD="$MAGIC_CMD"
8426   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8427   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8428   for ac_dir in $ac_dummy; do
8429     IFS="$lt_save_ifs"
8430     test -z "$ac_dir" && ac_dir=.
8431     if test -f $ac_dir/file; then
8432       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8433       if test -n "$file_magic_test_file"; then
8434         case $deplibs_check_method in
8435         "file_magic "*)
8436           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8437           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8439             $EGREP "$file_magic_regex" > /dev/null; then
8440             :
8441           else
8442             cat <<_LT_EOF 1>&2
8444 *** Warning: the command libtool uses to detect shared libraries,
8445 *** $file_magic_cmd, produces output that libtool cannot recognize.
8446 *** The result is that libtool may fail to recognize shared libraries
8447 *** as such.  This will affect the creation of libtool libraries that
8448 *** depend on shared libraries, but programs linked with such libtool
8449 *** libraries will work regardless of this problem.  Nevertheless, you
8450 *** may want to report the problem to your system manager and/or to
8451 *** bug-libtool@gnu.org
8453 _LT_EOF
8454           fi ;;
8455         esac
8456       fi
8457       break
8458     fi
8459   done
8460   IFS="$lt_save_ifs"
8461   MAGIC_CMD="$lt_save_MAGIC_CMD"
8462   ;;
8463 esac
8466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8467 if test -n "$MAGIC_CMD"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8469 $as_echo "$MAGIC_CMD" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8476   else
8477     MAGIC_CMD=:
8478   fi
8481   fi
8482   ;;
8483 esac
8485 # Use C for the default configuration in the libtool script
8487 lt_save_CC="$CC"
8488 ac_ext=c
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 # Source file extension for C test sources.
8496 ac_ext=c
8498 # Object file extension for compiled C test sources.
8499 objext=o
8500 objext=$objext
8502 # Code to be used in simple compile tests
8503 lt_simple_compile_test_code="int some_variable = 0;"
8505 # Code to be used in simple link tests
8506 lt_simple_link_test_code='int main(){return(0);}'
8514 # If no C compiler was specified, use CC.
8515 LTCC=${LTCC-"$CC"}
8517 # If no C compiler flags were specified, use CFLAGS.
8518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8520 # Allow CC to be a program name with arguments.
8521 compiler=$CC
8523 # Save the default compiler, since it gets overwritten when the other
8524 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8525 compiler_DEFAULT=$CC
8527 # save warnings/boilerplate of simple test code
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8530 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_compiler_boilerplate=`cat conftest.err`
8532 $RM conftest*
8534 ac_outfile=conftest.$ac_objext
8535 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8536 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8537 _lt_linker_boilerplate=`cat conftest.err`
8538 $RM -r conftest*
8541 ## CAVEAT EMPTOR:
8542 ## There is no encapsulation within the following macros, do not change
8543 ## the running order or otherwise move them around unless you know exactly
8544 ## what you are doing...
8545 if test -n "$compiler"; then
8546   
8547 lt_prog_compiler_no_builtin_flag=
8549 if test "$GCC" = yes; then
8550   case $cc_basename in
8551   nvcc*)
8552     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8553   *)
8554     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8555   esac
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8558 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8559 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   lt_cv_prog_compiler_rtti_exceptions=no
8563    ac_outfile=conftest.$ac_objext
8564    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565    lt_compiler_flag="-fno-rtti -fno-exceptions"
8566    # Insert the option either (1) after the last *FLAGS variable, or
8567    # (2) before a word containing "conftest.", or (3) at the end.
8568    # Note that $ac_compile itself does not contain backslashes and begins
8569    # with a dollar sign (not a hyphen), so the echo should work correctly.
8570    # The option is referenced via a variable to avoid confusing sed.
8571    lt_compile=`echo "$ac_compile" | $SED \
8572    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574    -e 's:$: $lt_compiler_flag:'`
8575    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576    (eval "$lt_compile" 2>conftest.err)
8577    ac_status=$?
8578    cat conftest.err >&5
8579    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580    if (exit $ac_status) && test -s "$ac_outfile"; then
8581      # The compiler can only warn and ignore the option if not recognized
8582      # So say no if there are warnings other than the usual output.
8583      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8584      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586        lt_cv_prog_compiler_rtti_exceptions=yes
8587      fi
8588    fi
8589    $RM conftest*
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8593 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8595 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8596     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8597 else
8598     :
8603     
8604     
8605     
8608   lt_prog_compiler_wl=
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_static=
8613   if test "$GCC" = yes; then
8614     lt_prog_compiler_wl='-Wl,'
8615     lt_prog_compiler_static='-static'
8617     case $host_os in
8618       aix*)
8619       # All AIX code is PIC.
8620       if test "$host_cpu" = ia64; then
8621         # AIX 5 now supports IA64 processor
8622         lt_prog_compiler_static='-Bstatic'
8623       fi
8624       ;;
8626     amigaos*)
8627       case $host_cpu in
8628       powerpc)
8629             # see comment about AmigaOS4 .so support
8630             lt_prog_compiler_pic='-fPIC'
8631         ;;
8632       m68k)
8633             # FIXME: we need at least 68020 code to build shared libraries, but
8634             # adding the `-m68020' flag to GCC prevents building anything better,
8635             # like `-m68040'.
8636             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8637         ;;
8638       esac
8639       ;;
8641     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8642       # PIC is the default for these OSes.
8643       ;;
8645     mingw* | cygwin* | pw32* | os2* | cegcc*)
8646       # This hack is so that the source file can tell whether it is being
8647       # built for inclusion in a dll (and should export symbols for example).
8648       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8649       # (--disable-auto-import) libraries
8650       lt_prog_compiler_pic='-DDLL_EXPORT'
8651       ;;
8653     darwin* | rhapsody*)
8654       # PIC is the default on this platform
8655       # Common symbols not allowed in MH_DYLIB files
8656       lt_prog_compiler_pic='-fno-common'
8657       ;;
8659     haiku*)
8660       # PIC is the default for Haiku.
8661       # The "-static" flag exists, but is broken.
8662       lt_prog_compiler_static=
8663       ;;
8665     hpux*)
8666       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8668       # sets the default TLS model and affects inlining.
8669       case $host_cpu in
8670       hppa*64*)
8671         # +Z the default
8672         ;;
8673       *)
8674         lt_prog_compiler_pic='-fPIC'
8675         ;;
8676       esac
8677       ;;
8679     interix[3-9]*)
8680       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681       # Instead, we relocate shared libraries at runtime.
8682       ;;
8684     msdosdjgpp*)
8685       # Just because we use GCC doesn't mean we suddenly get shared libraries
8686       # on systems that don't support them.
8687       lt_prog_compiler_can_build_shared=no
8688       enable_shared=no
8689       ;;
8691     *nto* | *qnx*)
8692       # QNX uses GNU C++, but need to define -shared option too, otherwise
8693       # it will coredump.
8694       lt_prog_compiler_pic='-fPIC -shared'
8695       ;;
8697     sysv4*MP*)
8698       if test -d /usr/nec; then
8699         lt_prog_compiler_pic=-Kconform_pic
8700       fi
8701       ;;
8703     *)
8704       lt_prog_compiler_pic='-fPIC'
8705       ;;
8706     esac
8708     case $cc_basename in
8709     nvcc*) # Cuda Compiler Driver 2.2
8710       lt_prog_compiler_wl='-Xlinker '
8711       if test -n "$lt_prog_compiler_pic"; then
8712         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8713       fi
8714       ;;
8715     esac
8716   else
8717     # PORTME Check for flag to pass linker flags through the system compiler.
8718     case $host_os in
8719     aix*)
8720       lt_prog_compiler_wl='-Wl,'
8721       if test "$host_cpu" = ia64; then
8722         # AIX 5 now supports IA64 processor
8723         lt_prog_compiler_static='-Bstatic'
8724       else
8725         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8726       fi
8727       ;;
8729     mingw* | cygwin* | pw32* | os2* | cegcc*)
8730       # This hack is so that the source file can tell whether it is being
8731       # built for inclusion in a dll (and should export symbols for example).
8732       lt_prog_compiler_pic='-DDLL_EXPORT'
8733       ;;
8735     hpux9* | hpux10* | hpux11*)
8736       lt_prog_compiler_wl='-Wl,'
8737       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8738       # not for PA HP-UX.
8739       case $host_cpu in
8740       hppa*64*|ia64*)
8741         # +Z the default
8742         ;;
8743       *)
8744         lt_prog_compiler_pic='+Z'
8745         ;;
8746       esac
8747       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8748       lt_prog_compiler_static='${wl}-a ${wl}archive'
8749       ;;
8751     irix5* | irix6* | nonstopux*)
8752       lt_prog_compiler_wl='-Wl,'
8753       # PIC (with -KPIC) is the default.
8754       lt_prog_compiler_static='-non_shared'
8755       ;;
8757     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8758       case $cc_basename in
8759       # old Intel for x86_64 which still supported -KPIC.
8760       ecc*)
8761         lt_prog_compiler_wl='-Wl,'
8762         lt_prog_compiler_pic='-KPIC'
8763         lt_prog_compiler_static='-static'
8764         ;;
8765       # icc used to be incompatible with GCC.
8766       # ICC 10 doesn't accept -KPIC any more.
8767       icc* | ifort*)
8768         lt_prog_compiler_wl='-Wl,'
8769         lt_prog_compiler_pic='-fPIC'
8770         lt_prog_compiler_static='-static'
8771         ;;
8772       # Lahey Fortran 8.1.
8773       lf95*)
8774         lt_prog_compiler_wl='-Wl,'
8775         lt_prog_compiler_pic='--shared'
8776         lt_prog_compiler_static='--static'
8777         ;;
8778       nagfor*)
8779         # NAG Fortran compiler
8780         lt_prog_compiler_wl='-Wl,-Wl,,'
8781         lt_prog_compiler_pic='-PIC'
8782         lt_prog_compiler_static='-Bstatic'
8783         ;;
8784       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8785         # Portland Group compilers (*not* the Pentium gcc compiler,
8786         # which looks to be a dead project)
8787         lt_prog_compiler_wl='-Wl,'
8788         lt_prog_compiler_pic='-fpic'
8789         lt_prog_compiler_static='-Bstatic'
8790         ;;
8791       ccc*)
8792         lt_prog_compiler_wl='-Wl,'
8793         # All Alpha code is PIC.
8794         lt_prog_compiler_static='-non_shared'
8795         ;;
8796       xl* | bgxl* | bgf* | mpixl*)
8797         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8798         lt_prog_compiler_wl='-Wl,'
8799         lt_prog_compiler_pic='-qpic'
8800         lt_prog_compiler_static='-qstaticlink'
8801         ;;
8802       *)
8803         case `$CC -V 2>&1 | sed 5q` in
8804         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8805           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8806           lt_prog_compiler_pic='-KPIC'
8807           lt_prog_compiler_static='-Bstatic'
8808           lt_prog_compiler_wl=''
8809           ;;
8810         *Sun\ F* | *Sun*Fortran*)
8811           lt_prog_compiler_pic='-KPIC'
8812           lt_prog_compiler_static='-Bstatic'
8813           lt_prog_compiler_wl='-Qoption ld '
8814           ;;
8815         *Sun\ C*)
8816           # Sun C 5.9
8817           lt_prog_compiler_pic='-KPIC'
8818           lt_prog_compiler_static='-Bstatic'
8819           lt_prog_compiler_wl='-Wl,'
8820           ;;
8821         *Intel*\ [CF]*Compiler*)
8822           lt_prog_compiler_wl='-Wl,'
8823           lt_prog_compiler_pic='-fPIC'
8824           lt_prog_compiler_static='-static'
8825           ;;
8826         *Portland\ Group*)
8827           lt_prog_compiler_wl='-Wl,'
8828           lt_prog_compiler_pic='-fpic'
8829           lt_prog_compiler_static='-Bstatic'
8830           ;;
8831         esac
8832         ;;
8833       esac
8834       ;;
8836     newsos6)
8837       lt_prog_compiler_pic='-KPIC'
8838       lt_prog_compiler_static='-Bstatic'
8839       ;;
8841     *nto* | *qnx*)
8842       # QNX uses GNU C++, but need to define -shared option too, otherwise
8843       # it will coredump.
8844       lt_prog_compiler_pic='-fPIC -shared'
8845       ;;
8847     osf3* | osf4* | osf5*)
8848       lt_prog_compiler_wl='-Wl,'
8849       # All OSF/1 code is PIC.
8850       lt_prog_compiler_static='-non_shared'
8851       ;;
8853     rdos*)
8854       lt_prog_compiler_static='-non_shared'
8855       ;;
8857     solaris*)
8858       lt_prog_compiler_pic='-KPIC'
8859       lt_prog_compiler_static='-Bstatic'
8860       case $cc_basename in
8861       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8862         lt_prog_compiler_wl='-Qoption ld ';;
8863       *)
8864         lt_prog_compiler_wl='-Wl,';;
8865       esac
8866       ;;
8868     sunos4*)
8869       lt_prog_compiler_wl='-Qoption ld '
8870       lt_prog_compiler_pic='-PIC'
8871       lt_prog_compiler_static='-Bstatic'
8872       ;;
8874     sysv4 | sysv4.2uw2* | sysv4.3*)
8875       lt_prog_compiler_wl='-Wl,'
8876       lt_prog_compiler_pic='-KPIC'
8877       lt_prog_compiler_static='-Bstatic'
8878       ;;
8880     sysv4*MP*)
8881       if test -d /usr/nec ;then
8882         lt_prog_compiler_pic='-Kconform_pic'
8883         lt_prog_compiler_static='-Bstatic'
8884       fi
8885       ;;
8887     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8888       lt_prog_compiler_wl='-Wl,'
8889       lt_prog_compiler_pic='-KPIC'
8890       lt_prog_compiler_static='-Bstatic'
8891       ;;
8893     unicos*)
8894       lt_prog_compiler_wl='-Wl,'
8895       lt_prog_compiler_can_build_shared=no
8896       ;;
8898     uts4*)
8899       lt_prog_compiler_pic='-pic'
8900       lt_prog_compiler_static='-Bstatic'
8901       ;;
8903     *)
8904       lt_prog_compiler_can_build_shared=no
8905       ;;
8906     esac
8907   fi
8909 case $host_os in
8910   # For platforms which do not support PIC, -DPIC is meaningless:
8911   *djgpp*)
8912     lt_prog_compiler_pic=
8913     ;;
8914   *)
8915     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8916     ;;
8917 esac
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8921 if ${lt_cv_prog_compiler_pic+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8927 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8928 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8931 # Check to make sure the PIC flag actually works.
8933 if test -n "$lt_prog_compiler_pic"; then
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8936 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   lt_cv_prog_compiler_pic_works=no
8940    ac_outfile=conftest.$ac_objext
8941    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8942    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8943    # Insert the option either (1) after the last *FLAGS variable, or
8944    # (2) before a word containing "conftest.", or (3) at the end.
8945    # Note that $ac_compile itself does not contain backslashes and begins
8946    # with a dollar sign (not a hyphen), so the echo should work correctly.
8947    # The option is referenced via a variable to avoid confusing sed.
8948    lt_compile=`echo "$ac_compile" | $SED \
8949    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8951    -e 's:$: $lt_compiler_flag:'`
8952    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8953    (eval "$lt_compile" 2>conftest.err)
8954    ac_status=$?
8955    cat conftest.err >&5
8956    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957    if (exit $ac_status) && test -s "$ac_outfile"; then
8958      # The compiler can only warn and ignore the option if not recognized
8959      # So say no if there are warnings other than the usual output.
8960      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8961      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8962      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8963        lt_cv_prog_compiler_pic_works=yes
8964      fi
8965    fi
8966    $RM conftest*
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8970 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8973     case $lt_prog_compiler_pic in
8974      "" | " "*) ;;
8975      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8976      esac
8977 else
8978     lt_prog_compiler_pic=
8979      lt_prog_compiler_can_build_shared=no
8984     
8985     
8986     
8990     
8991     
8992     
8995 # Check to make sure the static flag actually works.
8997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9000 if ${lt_cv_prog_compiler_static_works+:} false; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   lt_cv_prog_compiler_static_works=no
9004    save_LDFLAGS="$LDFLAGS"
9005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9008      # The linker can only warn and ignore the option if not recognized
9009      # So say no if there are warnings
9010      if test -s conftest.err; then
9011        # Append any errors to the config.log.
9012        cat conftest.err 1>&5
9013        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015        if diff conftest.exp conftest.er2 >/dev/null; then
9016          lt_cv_prog_compiler_static_works=yes
9017        fi
9018      else
9019        lt_cv_prog_compiler_static_works=yes
9020      fi
9021    fi
9022    $RM -r conftest*
9023    LDFLAGS="$save_LDFLAGS"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9030     :
9031 else
9032     lt_prog_compiler_static=
9036     
9037     
9038     
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9043 if ${lt_cv_prog_compiler_c_o+:} false; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   lt_cv_prog_compiler_c_o=no
9047    $RM -r conftest 2>/dev/null
9048    mkdir conftest
9049    cd conftest
9050    mkdir out
9051    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053    lt_compiler_flag="-o out/conftest2.$ac_objext"
9054    # Insert the option either (1) after the last *FLAGS variable, or
9055    # (2) before a word containing "conftest.", or (3) at the end.
9056    # Note that $ac_compile itself does not contain backslashes and begins
9057    # with a dollar sign (not a hyphen), so the echo should work correctly.
9058    lt_compile=`echo "$ac_compile" | $SED \
9059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061    -e 's:$: $lt_compiler_flag:'`
9062    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063    (eval "$lt_compile" 2>out/conftest.err)
9064    ac_status=$?
9065    cat out/conftest.err >&5
9066    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9068    then
9069      # The compiler can only warn and ignore the option if not recognized
9070      # So say no if there are warnings
9071      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9072      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074        lt_cv_prog_compiler_c_o=yes
9075      fi
9076    fi
9077    chmod u+w . 2>&5
9078    $RM conftest*
9079    # SGI C++ compiler will create directory out/ii_files/ for
9080    # template instantiation
9081    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9082    $RM out/* && rmdir out
9083    cd ..
9084    $RM -r conftest
9085    $RM conftest*
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9091     
9092     
9093     
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9098 if ${lt_cv_prog_compiler_c_o+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   lt_cv_prog_compiler_c_o=no
9102    $RM -r conftest 2>/dev/null
9103    mkdir conftest
9104    cd conftest
9105    mkdir out
9106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108    lt_compiler_flag="-o out/conftest2.$ac_objext"
9109    # Insert the option either (1) after the last *FLAGS variable, or
9110    # (2) before a word containing "conftest.", or (3) at the end.
9111    # Note that $ac_compile itself does not contain backslashes and begins
9112    # with a dollar sign (not a hyphen), so the echo should work correctly.
9113    lt_compile=`echo "$ac_compile" | $SED \
9114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9116    -e 's:$: $lt_compiler_flag:'`
9117    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9118    (eval "$lt_compile" 2>out/conftest.err)
9119    ac_status=$?
9120    cat out/conftest.err >&5
9121    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9123    then
9124      # The compiler can only warn and ignore the option if not recognized
9125      # So say no if there are warnings
9126      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9129        lt_cv_prog_compiler_c_o=yes
9130      fi
9131    fi
9132    chmod u+w . 2>&5
9133    $RM conftest*
9134    # SGI C++ compiler will create directory out/ii_files/ for
9135    # template instantiation
9136    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9137    $RM out/* && rmdir out
9138    cd ..
9139    $RM -r conftest
9140    $RM conftest*
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9149 hard_links="nottested"
9150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9151   # do not overwrite the value of need_locks provided by the user
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9153 $as_echo_n "checking if we can lock with hard links... " >&6; }
9154   hard_links=yes
9155   $RM conftest*
9156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9157   touch conftest.a
9158   ln conftest.a conftest.b 2>&5 || hard_links=no
9159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9161 $as_echo "$hard_links" >&6; }
9162   if test "$hard_links" = no; then
9163     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9165     need_locks=warn
9166   fi
9167 else
9168   need_locks=no
9171     
9172     
9173     
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9179   runpath_var=
9180   allow_undefined_flag=
9181   always_export_symbols=no
9182   archive_cmds=
9183   archive_expsym_cmds=
9184   compiler_needs_object=no
9185   enable_shared_with_static_runtimes=no
9186   export_dynamic_flag_spec=
9187   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9188   hardcode_automatic=no
9189   hardcode_direct=no
9190   hardcode_direct_absolute=no
9191   hardcode_libdir_flag_spec=
9192   hardcode_libdir_separator=
9193   hardcode_minus_L=no
9194   hardcode_shlibpath_var=unsupported
9195   inherit_rpath=no
9196   link_all_deplibs=unknown
9197   module_cmds=
9198   module_expsym_cmds=
9199   old_archive_from_new_cmds=
9200   old_archive_from_expsyms_cmds=
9201   thread_safe_flag_spec=
9202   whole_archive_flag_spec=
9203   # include_expsyms should be a list of space-separated symbols to be *always*
9204   # included in the symbol list
9205   include_expsyms=
9206   # exclude_expsyms can be an extended regexp of symbols to exclude
9207   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9208   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9209   # as well as any symbol that contains `d'.
9210   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9211   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9212   # platforms (ab)use it in PIC code, but their linkers get confused if
9213   # the symbol is explicitly referenced.  Since portable code cannot
9214   # rely on this symbol name, it's probably fine to never include it in
9215   # preloaded symbol tables.
9216   # Exclude shared library initialization/finalization symbols.
9217   extract_expsyms_cmds=
9219   case $host_os in
9220   cygwin* | mingw* | pw32* | cegcc*)
9221     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9222     # When not using gcc, we currently assume that we are using
9223     # Microsoft Visual C++.
9224     if test "$GCC" != yes; then
9225       with_gnu_ld=no
9226     fi
9227     ;;
9228   interix*)
9229     # we just hope/assume this is gcc and not c89 (= MSVC++)
9230     with_gnu_ld=yes
9231     ;;
9232   openbsd*)
9233     with_gnu_ld=no
9234     ;;
9235   linux* | k*bsd*-gnu | gnu*)
9236     link_all_deplibs=no
9237     ;;
9238   esac
9240   ld_shlibs=yes
9242   # On some targets, GNU ld is compatible enough with the native linker
9243   # that we're better off using the native interface for both.
9244   lt_use_gnu_ld_interface=no
9245   if test "$with_gnu_ld" = yes; then
9246     case $host_os in
9247       aix*)
9248         # The AIX port of GNU ld has always aspired to compatibility
9249         # with the native linker.  However, as the warning in the GNU ld
9250         # block says, versions before 2.19.5* couldn't really create working
9251         # shared libraries, regardless of the interface used.
9252         case `$LD -v 2>&1` in
9253           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9254           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9255           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9256           *)
9257             lt_use_gnu_ld_interface=yes
9258             ;;
9259         esac
9260         ;;
9261       *)
9262         lt_use_gnu_ld_interface=yes
9263         ;;
9264     esac
9265   fi
9267   if test "$lt_use_gnu_ld_interface" = yes; then
9268     # If archive_cmds runs LD, not CC, wlarc should be empty
9269     wlarc='${wl}'
9271     # Set some defaults for GNU ld with shared library support. These
9272     # are reset later if shared libraries are not supported. Putting them
9273     # here allows them to be overridden if necessary.
9274     runpath_var=LD_RUN_PATH
9275     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276     export_dynamic_flag_spec='${wl}--export-dynamic'
9277     # ancient GNU ld didn't support --whole-archive et. al.
9278     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9279       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9280     else
9281       whole_archive_flag_spec=
9282     fi
9283     supports_anon_versioning=no
9284     case `$LD -v 2>&1` in
9285       *GNU\ gold*) supports_anon_versioning=yes ;;
9286       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9287       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9288       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9289       *\ 2.11.*) ;; # other 2.11 versions
9290       *) supports_anon_versioning=yes ;;
9291     esac
9293     # See if GNU ld supports shared libraries.
9294     case $host_os in
9295     aix[3-9]*)
9296       # On AIX/PPC, the GNU linker is very broken
9297       if test "$host_cpu" != ia64; then
9298         ld_shlibs=no
9299         cat <<_LT_EOF 1>&2
9301 *** Warning: the GNU linker, at least up to release 2.19, is reported
9302 *** to be unable to reliably create shared libraries on AIX.
9303 *** Therefore, libtool is disabling shared libraries support.  If you
9304 *** really care for shared libraries, you may want to install binutils
9305 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9306 *** You will then need to restart the configuration process.
9308 _LT_EOF
9309       fi
9310       ;;
9312     amigaos*)
9313       case $host_cpu in
9314       powerpc)
9315             # see comment about AmigaOS4 .so support
9316             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317             archive_expsym_cmds=''
9318         ;;
9319       m68k)
9320             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)'
9321             hardcode_libdir_flag_spec='-L$libdir'
9322             hardcode_minus_L=yes
9323         ;;
9324       esac
9325       ;;
9327     beos*)
9328       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329         allow_undefined_flag=unsupported
9330         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9331         # support --undefined.  This deserves some investigation.  FIXME
9332         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333       else
9334         ld_shlibs=no
9335       fi
9336       ;;
9338     cygwin* | mingw* | pw32* | cegcc*)
9339       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9340       # as there is no search path for DLLs.
9341       hardcode_libdir_flag_spec='-L$libdir'
9342       export_dynamic_flag_spec='${wl}--export-all-symbols'
9343       allow_undefined_flag=unsupported
9344       always_export_symbols=no
9345       enable_shared_with_static_runtimes=yes
9346       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'
9347       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9349       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9350         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9351         # If the export-symbols file already is a .def file (1st line
9352         # is EXPORTS), use it as is; otherwise, prepend...
9353         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9354           cp $export_symbols $output_objdir/$soname.def;
9355         else
9356           echo EXPORTS > $output_objdir/$soname.def;
9357           cat $export_symbols >> $output_objdir/$soname.def;
9358         fi~
9359         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360       else
9361         ld_shlibs=no
9362       fi
9363       ;;
9365     haiku*)
9366       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367       link_all_deplibs=yes
9368       ;;
9370     interix[3-9]*)
9371       hardcode_direct=no
9372       hardcode_shlibpath_var=no
9373       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374       export_dynamic_flag_spec='${wl}-E'
9375       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9376       # Instead, shared libraries are loaded at an image base (0x10000000 by
9377       # default) and relocated if they conflict, which is a slow very memory
9378       # consuming and fragmenting process.  To avoid this, we pick a random,
9379       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9380       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9381       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9382       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'
9383       ;;
9385     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9386       tmp_diet=no
9387       if test "$host_os" = linux-dietlibc; then
9388         case $cc_basename in
9389           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9390         esac
9391       fi
9392       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9393          && test "$tmp_diet" = no
9394       then
9395         tmp_addflag=' $pic_flag'
9396         tmp_sharedflag='-shared'
9397         case $cc_basename,$host_cpu in
9398         pgcc*)                          # Portland Group C compiler
9399           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'
9400           tmp_addflag=' $pic_flag'
9401           ;;
9402         pgf77* | pgf90* | pgf95* | pgfortran*)
9403                                         # Portland Group f77 and f90 compilers
9404           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'
9405           tmp_addflag=' $pic_flag -Mnomain' ;;
9406         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9407           tmp_addflag=' -i_dynamic' ;;
9408         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9409           tmp_addflag=' -i_dynamic -nofor_main' ;;
9410         ifc* | ifort*)                  # Intel Fortran compiler
9411           tmp_addflag=' -nofor_main' ;;
9412         lf95*)                          # Lahey Fortran 8.1
9413           whole_archive_flag_spec=
9414           tmp_sharedflag='--shared' ;;
9415         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9416           tmp_sharedflag='-qmkshrobj'
9417           tmp_addflag= ;;
9418         nvcc*)  # Cuda Compiler Driver 2.2
9419           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'
9420           compiler_needs_object=yes
9421           ;;
9422         esac
9423         case `$CC -V 2>&1 | sed 5q` in
9424         *Sun\ C*)                       # Sun C 5.9
9425           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'
9426           compiler_needs_object=yes
9427           tmp_sharedflag='-G' ;;
9428         *Sun\ F*)                       # Sun Fortran 8.3
9429           tmp_sharedflag='-G' ;;
9430         esac
9431         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433         if test "x$supports_anon_versioning" = xyes; then
9434           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436             echo "local: *; };" >> $output_objdir/$libname.ver~
9437             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9438         fi
9440         case $cc_basename in
9441         xlf* | bgf* | bgxlf* | mpixlf*)
9442           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9443           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9444           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9446           if test "x$supports_anon_versioning" = xyes; then
9447             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9448               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9449               echo "local: *; };" >> $output_objdir/$libname.ver~
9450               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9451           fi
9452           ;;
9453         esac
9454       else
9455         ld_shlibs=no
9456       fi
9457       ;;
9459     netbsd* | netbsdelf*-gnu)
9460       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9461         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9462         wlarc=
9463       else
9464         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466       fi
9467       ;;
9469     solaris*)
9470       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9471         ld_shlibs=no
9472         cat <<_LT_EOF 1>&2
9474 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9475 *** create shared libraries on Solaris systems.  Therefore, libtool
9476 *** is disabling shared libraries support.  We urge you to upgrade GNU
9477 *** binutils to release 2.9.1 or newer.  Another option is to modify
9478 *** your PATH or compiler configuration so that the native linker is
9479 *** used, and then restart.
9481 _LT_EOF
9482       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485       else
9486         ld_shlibs=no
9487       fi
9488       ;;
9490     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9491       case `$LD -v 2>&1` in
9492         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9493         ld_shlibs=no
9494         cat <<_LT_EOF 1>&2
9496 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9497 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9498 *** is disabling shared libraries support.  We urge you to upgrade GNU
9499 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9500 *** your PATH or compiler configuration so that the native linker is
9501 *** used, and then restart.
9503 _LT_EOF
9504         ;;
9505         *)
9506           # For security reasons, it is highly recommended that you always
9507           # use absolute paths for naming shared libraries, and exclude the
9508           # DT_RUNPATH tag from executables and libraries.  But doing so
9509           # requires that you compile everything twice, which is a pain.
9510           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9514           else
9515             ld_shlibs=no
9516           fi
9517         ;;
9518       esac
9519       ;;
9521     sunos4*)
9522       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523       wlarc=
9524       hardcode_direct=yes
9525       hardcode_shlibpath_var=no
9526       ;;
9528     *)
9529       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532       else
9533         ld_shlibs=no
9534       fi
9535       ;;
9536     esac
9538     if test "$ld_shlibs" = no; then
9539       runpath_var=
9540       hardcode_libdir_flag_spec=
9541       export_dynamic_flag_spec=
9542       whole_archive_flag_spec=
9543     fi
9544   else
9545     # PORTME fill in a description of your system's linker (not GNU ld)
9546     case $host_os in
9547     aix3*)
9548       allow_undefined_flag=unsupported
9549       always_export_symbols=yes
9550       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'
9551       # Note: this linker hardcodes the directories in LIBPATH if there
9552       # are no directories specified by -L.
9553       hardcode_minus_L=yes
9554       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9555         # Neither direct hardcoding nor static linking is supported with a
9556         # broken collect2.
9557         hardcode_direct=unsupported
9558       fi
9559       ;;
9561     aix[4-9]*)
9562       if test "$host_cpu" = ia64; then
9563         # On IA64, the linker does run time linking by default, so we don't
9564         # have to do anything special.
9565         aix_use_runtimelinking=no
9566         exp_sym_flag='-Bexport'
9567         no_entry_flag=""
9568       else
9569         # If we're using GNU nm, then we don't want the "-C" option.
9570         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9571         # Also, AIX nm treats weak defined symbols like other global
9572         # defined symbols, whereas GNU nm marks them as "W".
9573         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9574           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'
9575         else
9576           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'
9577         fi
9578         aix_use_runtimelinking=no
9580         # Test if we are trying to use run time linking or normal
9581         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9582         # need to do runtime linking.
9583         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9584           for ld_flag in $LDFLAGS; do
9585           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9586             aix_use_runtimelinking=yes
9587             break
9588           fi
9589           done
9590           ;;
9591         esac
9593         exp_sym_flag='-bexport'
9594         no_entry_flag='-bnoentry'
9595       fi
9597       # When large executables or shared objects are built, AIX ld can
9598       # have problems creating the table of contents.  If linking a library
9599       # or program results in "error TOC overflow" add -mminimal-toc to
9600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9603       archive_cmds=''
9604       hardcode_direct=yes
9605       hardcode_direct_absolute=yes
9606       hardcode_libdir_separator=':'
9607       link_all_deplibs=yes
9608       file_list_spec='${wl}-f,'
9610       if test "$GCC" = yes; then
9611         case $host_os in aix4.[012]|aix4.[012].*)
9612         # We only want to do this on AIX 4.2 and lower, the check
9613         # below for broken collect2 doesn't work under 4.3+
9614           collect2name=`${CC} -print-prog-name=collect2`
9615           if test -f "$collect2name" &&
9616            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9617           then
9618           # We have reworked collect2
9619           :
9620           else
9621           # We have old collect2
9622           hardcode_direct=unsupported
9623           # It fails to find uninstalled libraries when the uninstalled
9624           # path is not listed in the libpath.  Setting hardcode_minus_L
9625           # to unsupported forces relinking
9626           hardcode_minus_L=yes
9627           hardcode_libdir_flag_spec='-L$libdir'
9628           hardcode_libdir_separator=
9629           fi
9630           ;;
9631         esac
9632         shared_flag='-shared'
9633         if test "$aix_use_runtimelinking" = yes; then
9634           shared_flag="$shared_flag "'${wl}-G'
9635         fi
9636         link_all_deplibs=no
9637       else
9638         # not using gcc
9639         if test "$host_cpu" = ia64; then
9640         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641         # chokes on -Wl,-G. The following line is correct:
9642           shared_flag='-G'
9643         else
9644           if test "$aix_use_runtimelinking" = yes; then
9645             shared_flag='${wl}-G'
9646           else
9647             shared_flag='${wl}-bM:SRE'
9648           fi
9649         fi
9650       fi
9652       export_dynamic_flag_spec='${wl}-bexpall'
9653       # It seems that -bexpall does not export symbols beginning with
9654       # underscore (_), so it is better to generate a list of symbols to export.
9655       always_export_symbols=yes
9656       if test "$aix_use_runtimelinking" = yes; then
9657         # Warning - without using the other runtime loading flags (-brtl),
9658         # -berok will link without error, but may produce a broken library.
9659         allow_undefined_flag='-berok'
9660         # Determine the default libpath from the value encoded in an
9661         # empty executable.
9662         if test "${lt_cv_aix_libpath+set}" = set; then
9663   aix_libpath=$lt_cv_aix_libpath
9664 else
9665   if ${lt_cv_aix_libpath_+:} false; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h.  */
9672 main ()
9675   ;
9676   return 0;
9678 _ACEOF
9679 if ac_fn_c_try_link "$LINENO"; then :
9680   
9681   lt_aix_libpath_sed='
9682       /Import File Strings/,/^$/ {
9683           /^0/ {
9684               s/^0  *\([^ ]*\) *$/\1/
9685               p
9686           }
9687       }'
9688   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689   # Check for a 64-bit object if we didn't find anything.
9690   if test -z "$lt_cv_aix_libpath_"; then
9691     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9692   fi
9694 rm -f core conftest.err conftest.$ac_objext \
9695     conftest$ac_exeext conftest.$ac_ext
9696   if test -z "$lt_cv_aix_libpath_"; then
9697     lt_cv_aix_libpath_="/usr/lib:/lib"
9698   fi
9699   
9702   aix_libpath=$lt_cv_aix_libpath_
9705         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9706         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"
9707       else
9708         if test "$host_cpu" = ia64; then
9709           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9710           allow_undefined_flag="-z nodefs"
9711           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"
9712         else
9713          # Determine the default libpath from the value encoded in an
9714          # empty executable.
9715          if test "${lt_cv_aix_libpath+set}" = set; then
9716   aix_libpath=$lt_cv_aix_libpath
9717 else
9718   if ${lt_cv_aix_libpath_+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h.  */
9725 main ()
9728   ;
9729   return 0;
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733   
9734   lt_aix_libpath_sed='
9735       /Import File Strings/,/^$/ {
9736           /^0/ {
9737               s/^0  *\([^ ]*\) *$/\1/
9738               p
9739           }
9740       }'
9741   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742   # Check for a 64-bit object if we didn't find anything.
9743   if test -z "$lt_cv_aix_libpath_"; then
9744     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745   fi
9747 rm -f core conftest.err conftest.$ac_objext \
9748     conftest$ac_exeext conftest.$ac_ext
9749   if test -z "$lt_cv_aix_libpath_"; then
9750     lt_cv_aix_libpath_="/usr/lib:/lib"
9751   fi
9752   
9755   aix_libpath=$lt_cv_aix_libpath_
9758          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9759           # Warning - without using the other run time loading flags,
9760           # -berok will link without error, but may produce a broken library.
9761           no_undefined_flag=' ${wl}-bernotok'
9762           allow_undefined_flag=' ${wl}-berok'
9763           if test "$with_gnu_ld" = yes; then
9764             # We only use this code for GNU lds that support --whole-archive.
9765             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9766           else
9767             # Exported symbols can be pulled into shared objects from archives
9768             whole_archive_flag_spec='$convenience'
9769           fi
9770           archive_cmds_need_lc=yes
9771           # This is similar to how AIX traditionally builds its shared libraries.
9772           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'
9773         fi
9774       fi
9775       ;;
9777     amigaos*)
9778       case $host_cpu in
9779       powerpc)
9780             # see comment about AmigaOS4 .so support
9781             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782             archive_expsym_cmds=''
9783         ;;
9784       m68k)
9785             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)'
9786             hardcode_libdir_flag_spec='-L$libdir'
9787             hardcode_minus_L=yes
9788         ;;
9789       esac
9790       ;;
9792     bsdi[45]*)
9793       export_dynamic_flag_spec=-rdynamic
9794       ;;
9796     cygwin* | mingw* | pw32* | cegcc*)
9797       # When not using gcc, we currently assume that we are using
9798       # Microsoft Visual C++.
9799       # hardcode_libdir_flag_spec is actually meaningless, as there is
9800       # no search path for DLLs.
9801       case $cc_basename in
9802       cl*)
9803         # Native MSVC
9804         hardcode_libdir_flag_spec=' '
9805         allow_undefined_flag=unsupported
9806         always_export_symbols=yes
9807         file_list_spec='@'
9808         # Tell ltmain to make .lib files, not .a files.
9809         libext=lib
9810         # Tell ltmain to make .dll files, not .so files.
9811         shrext_cmds=".dll"
9812         # FIXME: Setting linknames here is a bad hack.
9813         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9814         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9815             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9816           else
9817             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9818           fi~
9819           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9820           linknames='
9821         # The linker will not automatically build a static lib if we build a DLL.
9822         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9823         enable_shared_with_static_runtimes=yes
9824         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9825         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9826         # Don't use ranlib
9827         old_postinstall_cmds='chmod 644 $oldlib'
9828         postlink_cmds='lt_outputfile="@OUTPUT@"~
9829           lt_tool_outputfile="@TOOL_OUTPUT@"~
9830           case $lt_outputfile in
9831             *.exe|*.EXE) ;;
9832             *)
9833               lt_outputfile="$lt_outputfile.exe"
9834               lt_tool_outputfile="$lt_tool_outputfile.exe"
9835               ;;
9836           esac~
9837           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9838             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9839             $RM "$lt_outputfile.manifest";
9840           fi'
9841         ;;
9842       *)
9843         # Assume MSVC wrapper
9844         hardcode_libdir_flag_spec=' '
9845         allow_undefined_flag=unsupported
9846         # Tell ltmain to make .lib files, not .a files.
9847         libext=lib
9848         # Tell ltmain to make .dll files, not .so files.
9849         shrext_cmds=".dll"
9850         # FIXME: Setting linknames here is a bad hack.
9851         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9852         # The linker will automatically build a .lib file if we build a DLL.
9853         old_archive_from_new_cmds='true'
9854         # FIXME: Should let the user specify the lib program.
9855         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9856         enable_shared_with_static_runtimes=yes
9857         ;;
9858       esac
9859       ;;
9861     darwin* | rhapsody*)
9862       
9863   
9864   archive_cmds_need_lc=no
9865   hardcode_direct=no
9866   hardcode_automatic=yes
9867   hardcode_shlibpath_var=unsupported
9868   if test "$lt_cv_ld_force_load" = "yes"; then
9869     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\"`'
9870     
9871   else
9872     whole_archive_flag_spec=''
9873   fi
9874   link_all_deplibs=yes
9875   allow_undefined_flag="$_lt_dar_allow_undefined"
9876   case $cc_basename in
9877      ifort*) _lt_dar_can_shared=yes ;;
9878      *) _lt_dar_can_shared=$GCC ;;
9879   esac
9880   if test "$_lt_dar_can_shared" = "yes"; then
9881     output_verbose_link_cmd=func_echo_all
9882     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9883     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9884     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}"
9885     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}"
9886     
9887   else
9888   ld_shlibs=no
9889   fi
9891       ;;
9893     dgux*)
9894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895       hardcode_libdir_flag_spec='-L$libdir'
9896       hardcode_shlibpath_var=no
9897       ;;
9899     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9900     # support.  Future versions do this automatically, but an explicit c++rt0.o
9901     # does not break anything, and helps significantly (at the cost of a little
9902     # extra space).
9903     freebsd2.2*)
9904       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9905       hardcode_libdir_flag_spec='-R$libdir'
9906       hardcode_direct=yes
9907       hardcode_shlibpath_var=no
9908       ;;
9910     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9911     freebsd2.*)
9912       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9913       hardcode_direct=yes
9914       hardcode_minus_L=yes
9915       hardcode_shlibpath_var=no
9916       ;;
9918     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9919     freebsd* | dragonfly*)
9920       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921       hardcode_libdir_flag_spec='-R$libdir'
9922       hardcode_direct=yes
9923       hardcode_shlibpath_var=no
9924       ;;
9926     hpux9*)
9927       if test "$GCC" = yes; then
9928         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'
9929       else
9930         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'
9931       fi
9932       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9933       hardcode_libdir_separator=:
9934       hardcode_direct=yes
9936       # hardcode_minus_L: Not really in the search PATH,
9937       # but as the default location of the library.
9938       hardcode_minus_L=yes
9939       export_dynamic_flag_spec='${wl}-E'
9940       ;;
9942     hpux10*)
9943       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9944         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9945       else
9946         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9947       fi
9948       if test "$with_gnu_ld" = no; then
9949         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9950         hardcode_libdir_separator=:
9951         hardcode_direct=yes
9952         hardcode_direct_absolute=yes
9953         export_dynamic_flag_spec='${wl}-E'
9954         # hardcode_minus_L: Not really in the search PATH,
9955         # but as the default location of the library.
9956         hardcode_minus_L=yes
9957       fi
9958       ;;
9960     hpux11*)
9961       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9962         case $host_cpu in
9963         hppa*64*)
9964           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9965           ;;
9966         ia64*)
9967           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9968           ;;
9969         *)
9970           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9971           ;;
9972         esac
9973       else
9974         case $host_cpu in
9975         hppa*64*)
9976           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9977           ;;
9978         ia64*)
9979           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9980           ;;
9981         *)
9982         
9983           # Older versions of the 11.00 compiler do not understand -b yet
9984           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9985           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9986 $as_echo_n "checking if $CC understands -b... " >&6; }
9987 if ${lt_cv_prog_compiler__b+:} false; then :
9988   $as_echo_n "(cached) " >&6
9989 else
9990   lt_cv_prog_compiler__b=no
9991    save_LDFLAGS="$LDFLAGS"
9992    LDFLAGS="$LDFLAGS -b"
9993    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9994    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9995      # The linker can only warn and ignore the option if not recognized
9996      # So say no if there are warnings
9997      if test -s conftest.err; then
9998        # Append any errors to the config.log.
9999        cat conftest.err 1>&5
10000        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10001        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10002        if diff conftest.exp conftest.er2 >/dev/null; then
10003          lt_cv_prog_compiler__b=yes
10004        fi
10005      else
10006        lt_cv_prog_compiler__b=yes
10007      fi
10008    fi
10009    $RM -r conftest*
10010    LDFLAGS="$save_LDFLAGS"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10014 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10016 if test x"$lt_cv_prog_compiler__b" = xyes; then
10017     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10018 else
10019     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10022           ;;
10023         esac
10024       fi
10025       if test "$with_gnu_ld" = no; then
10026         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10027         hardcode_libdir_separator=:
10029         case $host_cpu in
10030         hppa*64*|ia64*)
10031           hardcode_direct=no
10032           hardcode_shlibpath_var=no
10033           ;;
10034         *)
10035           hardcode_direct=yes
10036           hardcode_direct_absolute=yes
10037           export_dynamic_flag_spec='${wl}-E'
10039           # hardcode_minus_L: Not really in the search PATH,
10040           # but as the default location of the library.
10041           hardcode_minus_L=yes
10042           ;;
10043         esac
10044       fi
10045       ;;
10047     irix5* | irix6* | nonstopux*)
10048       if test "$GCC" = yes; then
10049         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'
10050         # Try to use the -exported_symbol ld option, if it does not
10051         # work, assume that -exports_file does not work either and
10052         # implicitly export all symbols.
10053         # This should be the same for all languages, so no per-tag cache variable.
10054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10055 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10056 if ${lt_cv_irix_exported_symbol+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   save_LDFLAGS="$LDFLAGS"
10060            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10061            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063 int foo (void) { return 0; }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066   lt_cv_irix_exported_symbol=yes
10067 else
10068   lt_cv_irix_exported_symbol=no
10070 rm -f core conftest.err conftest.$ac_objext \
10071     conftest$ac_exeext conftest.$ac_ext
10072            LDFLAGS="$save_LDFLAGS"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10075 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10076         if test "$lt_cv_irix_exported_symbol" = yes; then
10077           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'
10078         fi
10079       else
10080         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'
10081         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'
10082       fi
10083       archive_cmds_need_lc='no'
10084       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085       hardcode_libdir_separator=:
10086       inherit_rpath=yes
10087       link_all_deplibs=yes
10088       ;;
10090     netbsd* | netbsdelf*-gnu)
10091       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10092         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10093       else
10094         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10095       fi
10096       hardcode_libdir_flag_spec='-R$libdir'
10097       hardcode_direct=yes
10098       hardcode_shlibpath_var=no
10099       ;;
10101     newsos6)
10102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103       hardcode_direct=yes
10104       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105       hardcode_libdir_separator=:
10106       hardcode_shlibpath_var=no
10107       ;;
10109     *nto* | *qnx*)
10110       ;;
10112     openbsd*)
10113       if test -f /usr/libexec/ld.so; then
10114         hardcode_direct=yes
10115         hardcode_shlibpath_var=no
10116         hardcode_direct_absolute=yes
10117         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10120           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121           export_dynamic_flag_spec='${wl}-E'
10122         else
10123           case $host_os in
10124            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10125              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10126              hardcode_libdir_flag_spec='-R$libdir'
10127              ;;
10128            *)
10129              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10130              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10131              ;;
10132           esac
10133         fi
10134       else
10135         ld_shlibs=no
10136       fi
10137       ;;
10139     os2*)
10140       hardcode_libdir_flag_spec='-L$libdir'
10141       hardcode_minus_L=yes
10142       allow_undefined_flag=unsupported
10143       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'
10144       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10145       ;;
10147     osf3*)
10148       if test "$GCC" = yes; then
10149         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10150         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'
10151       else
10152         allow_undefined_flag=' -expect_unresolved \*'
10153         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'
10154       fi
10155       archive_cmds_need_lc='no'
10156       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10157       hardcode_libdir_separator=:
10158       ;;
10160     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10161       if test "$GCC" = yes; then
10162         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10163         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'
10164         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165       else
10166         allow_undefined_flag=' -expect_unresolved \*'
10167         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'
10168         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~
10169         $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'
10171         # Both c and cxx compiler support -rpath directly
10172         hardcode_libdir_flag_spec='-rpath $libdir'
10173       fi
10174       archive_cmds_need_lc='no'
10175       hardcode_libdir_separator=:
10176       ;;
10178     solaris*)
10179       no_undefined_flag=' -z defs'
10180       if test "$GCC" = yes; then
10181         wlarc='${wl}'
10182         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10183         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10184           $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'
10185       else
10186         case `$CC -V 2>&1` in
10187         *"Compilers 5.0"*)
10188           wlarc=''
10189           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10191           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10192           ;;
10193         *)
10194           wlarc='${wl}'
10195           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10196           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10197           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10198           ;;
10199         esac
10200       fi
10201       hardcode_libdir_flag_spec='-R$libdir'
10202       hardcode_shlibpath_var=no
10203       case $host_os in
10204       solaris2.[0-5] | solaris2.[0-5].*) ;;
10205       *)
10206         # The compiler driver will combine and reorder linker options,
10207         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10208         # but is careful enough not to reorder.
10209         # Supported since Solaris 2.6 (maybe 2.5.1?)
10210         if test "$GCC" = yes; then
10211           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10212         else
10213           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10214         fi
10215         ;;
10216       esac
10217       link_all_deplibs=yes
10218       ;;
10220     sunos4*)
10221       if test "x$host_vendor" = xsequent; then
10222         # Use $CC to link under sequent, because it throws in some extra .o
10223         # files that make .init and .fini sections work.
10224         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10225       else
10226         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10227       fi
10228       hardcode_libdir_flag_spec='-L$libdir'
10229       hardcode_direct=yes
10230       hardcode_minus_L=yes
10231       hardcode_shlibpath_var=no
10232       ;;
10234     sysv4)
10235       case $host_vendor in
10236         sni)
10237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238           hardcode_direct=yes # is this really true???
10239         ;;
10240         siemens)
10241           ## LD is ld it makes a PLAMLIB
10242           ## CC just makes a GrossModule.
10243           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10244           reload_cmds='$CC -r -o $output$reload_objs'
10245           hardcode_direct=no
10246         ;;
10247         motorola)
10248           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10250         ;;
10251       esac
10252       runpath_var='LD_RUN_PATH'
10253       hardcode_shlibpath_var=no
10254       ;;
10256     sysv4.3*)
10257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258       hardcode_shlibpath_var=no
10259       export_dynamic_flag_spec='-Bexport'
10260       ;;
10262     sysv4*MP*)
10263       if test -d /usr/nec; then
10264         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265         hardcode_shlibpath_var=no
10266         runpath_var=LD_RUN_PATH
10267         hardcode_runpath_var=yes
10268         ld_shlibs=yes
10269       fi
10270       ;;
10272     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10273       no_undefined_flag='${wl}-z,text'
10274       archive_cmds_need_lc=no
10275       hardcode_shlibpath_var=no
10276       runpath_var='LD_RUN_PATH'
10278       if test "$GCC" = yes; then
10279         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281       else
10282         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284       fi
10285       ;;
10287     sysv5* | sco3.2v5* | sco5v6*)
10288       # Note: We can NOT use -z defs as we might desire, because we do not
10289       # link with -lc, and that would cause any symbols used from libc to
10290       # always be unresolved, which means just about no library would
10291       # ever link correctly.  If we're not using GNU ld we use -z text
10292       # though, which does catch some bad symbols but isn't as heavy-handed
10293       # as -z defs.
10294       no_undefined_flag='${wl}-z,text'
10295       allow_undefined_flag='${wl}-z,nodefs'
10296       archive_cmds_need_lc=no
10297       hardcode_shlibpath_var=no
10298       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10299       hardcode_libdir_separator=':'
10300       link_all_deplibs=yes
10301       export_dynamic_flag_spec='${wl}-Bexport'
10302       runpath_var='LD_RUN_PATH'
10304       if test "$GCC" = yes; then
10305         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307       else
10308         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310       fi
10311       ;;
10313     uts4*)
10314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315       hardcode_libdir_flag_spec='-L$libdir'
10316       hardcode_shlibpath_var=no
10317       ;;
10319     *)
10320       ld_shlibs=no
10321       ;;
10322     esac
10324     if test x$host_vendor = xsni; then
10325       case $host in
10326       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10327         export_dynamic_flag_spec='${wl}-Blargedynsym'
10328         ;;
10329       esac
10330     fi
10331   fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10334 $as_echo "$ld_shlibs" >&6; }
10335 test "$ld_shlibs" = no && can_build_shared=no
10337 with_gnu_ld=$with_gnu_ld
10340     
10341     
10342     
10344     
10345     
10346     
10348     
10349     
10350     
10354 # Do we need to explicitly link libc?
10356 case "x$archive_cmds_need_lc" in
10357 x|xyes)
10358   # Assume -lc should be added
10359   archive_cmds_need_lc=yes
10361   if test "$enable_shared" = yes && test "$GCC" = yes; then
10362     case $archive_cmds in
10363     *'~'*)
10364       # FIXME: we may have to deal with multi-command sequences.
10365       ;;
10366     '$CC '*)
10367       # Test whether the compiler implicitly links with -lc since on some
10368       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10369       # to ld, don't add -lc before -lgcc.
10370       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10372 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10373   $as_echo_n "(cached) " >&6
10374 else
10375   $RM conftest*
10376         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10378         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10379   (eval $ac_compile) 2>&5
10380   ac_status=$?
10381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382   test $ac_status = 0; } 2>conftest.err; then
10383           soname=conftest
10384           lib=conftest
10385           libobjs=conftest.$ac_objext
10386           deplibs=
10387           wl=$lt_prog_compiler_wl
10388           pic_flag=$lt_prog_compiler_pic
10389           compiler_flags=-v
10390           linker_flags=-v
10391           verstring=
10392           output_objdir=.
10393           libname=conftest
10394           lt_save_allow_undefined_flag=$allow_undefined_flag
10395           allow_undefined_flag=
10396           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10397   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10398   ac_status=$?
10399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400   test $ac_status = 0; }
10401           then
10402             lt_cv_archive_cmds_need_lc=no
10403           else
10404             lt_cv_archive_cmds_need_lc=yes
10405           fi
10406           allow_undefined_flag=$lt_save_allow_undefined_flag
10407         else
10408           cat conftest.err 1>&5
10409         fi
10410         $RM conftest*
10411         
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10414 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10415       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10416       ;;
10417     esac
10418   fi
10419   ;;
10420 esac
10423     
10424     
10425     
10428     
10429     
10430     
10433     
10434     
10435     
10438     
10439     
10440     
10443     
10444     
10445     
10448     
10449     
10450     
10453     
10454     
10455     
10458     
10459     
10460     
10463     
10464     
10465     
10468     
10469     
10470     
10473     
10474     
10475     
10478     
10479     
10480     
10483     
10484     
10485     
10488     
10489     
10490     
10493     
10494     
10495     
10498     
10499     
10500     
10503     
10504     
10505     
10508     
10509     
10510     
10513     
10514     
10515     
10518     
10519     
10520     
10523     
10524     
10525     
10528     
10529     
10530     
10533     
10534     
10535     
10538     
10539     
10540     
10543     
10544     
10545     
10548     
10549     
10550     
10553     
10554     
10555     
10558     
10559     
10560     
10563     
10564     
10565     
10568     
10569     
10570     
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10574 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10576 if test "$GCC" = yes; then
10577   case $host_os in
10578     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10579     *) lt_awk_arg="/^libraries:/" ;;
10580   esac
10581   case $host_os in
10582     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10583     *) lt_sed_strip_eq="s,=/,/,g" ;;
10584   esac
10585   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10586   case $lt_search_path_spec in
10587   *\;*)
10588     # if the path contains ";" then we assume it to be the separator
10589     # otherwise default to the standard path separator (i.e. ":") - it is
10590     # assumed that no part of a normal pathname contains ";" but that should
10591     # okay in the real world where ";" in dirpaths is itself problematic.
10592     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10593     ;;
10594   *)
10595     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10596     ;;
10597   esac
10598   # Ok, now we have the path, separated by spaces, we can step through it
10599   # and add multilib dir if necessary.
10600   lt_tmp_lt_search_path_spec=
10601   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10602   for lt_sys_path in $lt_search_path_spec; do
10603     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10604       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10605     else
10606       test -d "$lt_sys_path" && \
10607         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10608     fi
10609   done
10610   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10611 BEGIN {RS=" "; FS="/|\n";} {
10612   lt_foo="";
10613   lt_count=0;
10614   for (lt_i = NF; lt_i > 0; lt_i--) {
10615     if ($lt_i != "" && $lt_i != ".") {
10616       if ($lt_i == "..") {
10617         lt_count++;
10618       } else {
10619         if (lt_count == 0) {
10620           lt_foo="/" $lt_i lt_foo;
10621         } else {
10622           lt_count--;
10623         }
10624       }
10625     }
10626   }
10627   if (lt_foo != "") { lt_freq[lt_foo]++; }
10628   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10630   # AWK program above erroneously prepends '/' to C:/dos/paths
10631   # for these hosts.
10632   case $host_os in
10633     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10634       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10635   esac
10636   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10637 else
10638   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10640 library_names_spec=
10641 libname_spec='lib$name'
10642 soname_spec=
10643 shrext_cmds=".so"
10644 postinstall_cmds=
10645 postuninstall_cmds=
10646 finish_cmds=
10647 finish_eval=
10648 shlibpath_var=
10649 shlibpath_overrides_runpath=unknown
10650 version_type=none
10651 dynamic_linker="$host_os ld.so"
10652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10653 need_lib_prefix=unknown
10654 hardcode_into_libs=no
10656 # when you set need_version to no, make sure it does not cause -set_version
10657 # flags to be left without arguments
10658 need_version=unknown
10660 case $host_os in
10661 aix3*)
10662   version_type=linux # correct to gnu/linux during the next big refactor
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10664   shlibpath_var=LIBPATH
10666   # AIX 3 has no versioning support, so we append a major version to the name.
10667   soname_spec='${libname}${release}${shared_ext}$major'
10668   ;;
10670 aix[4-9]*)
10671   version_type=linux # correct to gnu/linux during the next big refactor
10672   need_lib_prefix=no
10673   need_version=no
10674   hardcode_into_libs=yes
10675   if test "$host_cpu" = ia64; then
10676     # AIX 5 supports IA64
10677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10678     shlibpath_var=LD_LIBRARY_PATH
10679   else
10680     # With GCC up to 2.95.x, collect2 would create an import file
10681     # for dependence libraries.  The import file would start with
10682     # the line `#! .'.  This would cause the generated library to
10683     # depend on `.', always an invalid library.  This was fixed in
10684     # development snapshots of GCC prior to 3.0.
10685     case $host_os in
10686       aix4 | aix4.[01] | aix4.[01].*)
10687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10688            echo ' yes '
10689            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10690         :
10691       else
10692         can_build_shared=no
10693       fi
10694       ;;
10695     esac
10696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10697     # soname into executable. Probably we can add versioning support to
10698     # collect2, so additional links can be useful in future.
10699     if test "$aix_use_runtimelinking" = yes; then
10700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10701       # instead of lib<name>.a to let people know that these are not
10702       # typical AIX shared libraries.
10703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704     else
10705       # We preserve .a as extension for shared libraries through AIX4.2
10706       # and later when we are not doing run time linking.
10707       library_names_spec='${libname}${release}.a $libname.a'
10708       soname_spec='${libname}${release}${shared_ext}$major'
10709     fi
10710     shlibpath_var=LIBPATH
10711   fi
10712   ;;
10714 amigaos*)
10715   case $host_cpu in
10716   powerpc)
10717     # Since July 2007 AmigaOS4 officially supports .so libraries.
10718     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720     ;;
10721   m68k)
10722     library_names_spec='$libname.ixlibrary $libname.a'
10723     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10724     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'
10725     ;;
10726   esac
10727   ;;
10729 beos*)
10730   library_names_spec='${libname}${shared_ext}'
10731   dynamic_linker="$host_os ld.so"
10732   shlibpath_var=LIBRARY_PATH
10733   ;;
10735 bsdi[45]*)
10736   version_type=linux # correct to gnu/linux during the next big refactor
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10744   # the default ld.so.conf also contains /usr/contrib/lib and
10745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10746   # libtool to hard-code these into programs
10747   ;;
10749 cygwin* | mingw* | pw32* | cegcc*)
10750   version_type=windows
10751   shrext_cmds=".dll"
10752   need_version=no
10753   need_lib_prefix=no
10755   case $GCC,$cc_basename in
10756   yes,*)
10757     # gcc
10758     library_names_spec='$libname.dll.a'
10759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10760     postinstall_cmds='base_file=`basename \${file}`~
10761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10762       dldir=$destdir/`dirname \$dlpath`~
10763       test -d \$dldir || mkdir -p \$dldir~
10764       $install_prog $dir/$dlname \$dldir/$dlname~
10765       chmod a+x \$dldir/$dlname~
10766       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10767         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10768       fi'
10769     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10770       dlpath=$dir/\$dldll~
10771        $RM \$dlpath'
10772     shlibpath_overrides_runpath=yes
10774     case $host_os in
10775     cygwin*)
10776       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10777       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10779       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10780       ;;
10781     mingw* | cegcc*)
10782       # MinGW DLLs use traditional 'lib' prefix
10783       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784       ;;
10785     pw32*)
10786       # pw32 DLLs use 'pw' prefix rather than 'lib'
10787       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10788       ;;
10789     esac
10790     dynamic_linker='Win32 ld.exe'
10791     ;;
10793   *,cl*)
10794     # Native MSVC
10795     libname_spec='$name'
10796     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10797     library_names_spec='${libname}.dll.lib'
10799     case $build_os in
10800     mingw*)
10801       sys_lib_search_path_spec=
10802       lt_save_ifs=$IFS
10803       IFS=';'
10804       for lt_path in $LIB
10805       do
10806         IFS=$lt_save_ifs
10807         # Let DOS variable expansion print the short 8.3 style file name.
10808         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10809         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10810       done
10811       IFS=$lt_save_ifs
10812       # Convert to MSYS style.
10813       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10814       ;;
10815     cygwin*)
10816       # Convert to unix form, then to dos form, then back to unix form
10817       # but this time dos style (no spaces!) so that the unix form looks
10818       # like /cygdrive/c/PROGRA~1:/cygdr...
10819       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10820       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10821       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10822       ;;
10823     *)
10824       sys_lib_search_path_spec="$LIB"
10825       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10826         # It is most probably a Windows format PATH.
10827         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10828       else
10829         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10830       fi
10831       # FIXME: find the short name or the path components, as spaces are
10832       # common. (e.g. "Program Files" -> "PROGRA~1")
10833       ;;
10834     esac
10836     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10837     postinstall_cmds='base_file=`basename \${file}`~
10838       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10839       dldir=$destdir/`dirname \$dlpath`~
10840       test -d \$dldir || mkdir -p \$dldir~
10841       $install_prog $dir/$dlname \$dldir/$dlname'
10842     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10843       dlpath=$dir/\$dldll~
10844        $RM \$dlpath'
10845     shlibpath_overrides_runpath=yes
10846     dynamic_linker='Win32 link.exe'
10847     ;;
10849   *)
10850     # Assume MSVC wrapper
10851     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10852     dynamic_linker='Win32 ld.exe'
10853     ;;
10854   esac
10855   # FIXME: first we should search . and the directory the executable is in
10856   shlibpath_var=PATH
10857   ;;
10859 darwin* | rhapsody*)
10860   dynamic_linker="$host_os dyld"
10861   version_type=darwin
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10865   soname_spec='${libname}${release}${major}$shared_ext'
10866   shlibpath_overrides_runpath=yes
10867   shlibpath_var=DYLD_LIBRARY_PATH
10868   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10870   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10871   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10872   ;;
10874 dgux*)
10875   version_type=linux # correct to gnu/linux during the next big refactor
10876   need_lib_prefix=no
10877   need_version=no
10878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10879   soname_spec='${libname}${release}${shared_ext}$major'
10880   shlibpath_var=LD_LIBRARY_PATH
10881   ;;
10883 freebsd* | dragonfly*)
10884   # DragonFly does not have aout.  When/if they implement a new
10885   # versioning mechanism, adjust this.
10886   if test -x /usr/bin/objformat; then
10887     objformat=`/usr/bin/objformat`
10888   else
10889     case $host_os in
10890     freebsd[23].*) objformat=aout ;;
10891     *) objformat=elf ;;
10892     esac
10893   fi
10894   version_type=freebsd-$objformat
10895   case $version_type in
10896     freebsd-elf*)
10897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10898       need_version=no
10899       need_lib_prefix=no
10900       ;;
10901     freebsd-*)
10902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10903       need_version=yes
10904       ;;
10905   esac
10906   shlibpath_var=LD_LIBRARY_PATH
10907   case $host_os in
10908   freebsd2.*)
10909     shlibpath_overrides_runpath=yes
10910     ;;
10911   freebsd3.[01]* | freebsdelf3.[01]*)
10912     shlibpath_overrides_runpath=yes
10913     hardcode_into_libs=yes
10914     ;;
10915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10917     shlibpath_overrides_runpath=no
10918     hardcode_into_libs=yes
10919     ;;
10920   *) # from 4.6 on, and DragonFly
10921     shlibpath_overrides_runpath=yes
10922     hardcode_into_libs=yes
10923     ;;
10924   esac
10925   ;;
10927 haiku*)
10928   version_type=linux # correct to gnu/linux during the next big refactor
10929   need_lib_prefix=no
10930   need_version=no
10931   dynamic_linker="$host_os runtime_loader"
10932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10933   soname_spec='${libname}${release}${shared_ext}$major'
10934   shlibpath_var=LIBRARY_PATH
10935   shlibpath_overrides_runpath=yes
10936   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10937   hardcode_into_libs=yes
10938   ;;
10940 hpux9* | hpux10* | hpux11*)
10941   # Give a soname corresponding to the major version so that dld.sl refuses to
10942   # link against other versions.
10943   version_type=sunos
10944   need_lib_prefix=no
10945   need_version=no
10946   case $host_cpu in
10947   ia64*)
10948     shrext_cmds='.so'
10949     hardcode_into_libs=yes
10950     dynamic_linker="$host_os dld.so"
10951     shlibpath_var=LD_LIBRARY_PATH
10952     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954     soname_spec='${libname}${release}${shared_ext}$major'
10955     if test "X$HPUX_IA64_MODE" = X32; then
10956       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10957     else
10958       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10959     fi
10960     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961     ;;
10962   hppa*64*)
10963     shrext_cmds='.sl'
10964     hardcode_into_libs=yes
10965     dynamic_linker="$host_os dld.sl"
10966     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969     soname_spec='${libname}${release}${shared_ext}$major'
10970     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10971     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10972     ;;
10973   *)
10974     shrext_cmds='.sl'
10975     dynamic_linker="$host_os dld.sl"
10976     shlibpath_var=SHLIB_PATH
10977     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979     soname_spec='${libname}${release}${shared_ext}$major'
10980     ;;
10981   esac
10982   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10983   postinstall_cmds='chmod 555 $lib'
10984   # or fails outright, so override atomically:
10985   install_override_mode=555
10986   ;;
10988 interix[3-9]*)
10989   version_type=linux # correct to gnu/linux during the next big refactor
10990   need_lib_prefix=no
10991   need_version=no
10992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10993   soname_spec='${libname}${release}${shared_ext}$major'
10994   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10995   shlibpath_var=LD_LIBRARY_PATH
10996   shlibpath_overrides_runpath=no
10997   hardcode_into_libs=yes
10998   ;;
11000 irix5* | irix6* | nonstopux*)
11001   case $host_os in
11002     nonstopux*) version_type=nonstopux ;;
11003     *)
11004         if test "$lt_cv_prog_gnu_ld" = yes; then
11005                 version_type=linux # correct to gnu/linux during the next big refactor
11006         else
11007                 version_type=irix
11008         fi ;;
11009   esac
11010   need_lib_prefix=no
11011   need_version=no
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11014   case $host_os in
11015   irix5* | nonstopux*)
11016     libsuff= shlibsuff=
11017     ;;
11018   *)
11019     case $LD in # libtool.m4 will add one of these switches to LD
11020     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021       libsuff= shlibsuff= libmagic=32-bit;;
11022     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023       libsuff=32 shlibsuff=N32 libmagic=N32;;
11024     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026     *) libsuff= shlibsuff= libmagic=never-match;;
11027     esac
11028     ;;
11029   esac
11030   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031   shlibpath_overrides_runpath=no
11032   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034   hardcode_into_libs=yes
11035   ;;
11037 # No shared lib support for Linux oldld, aout, or coff.
11038 linux*oldld* | linux*aout* | linux*coff*)
11039   dynamic_linker=no
11040   ;;
11042 # This must be glibc/ELF.
11043 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11044   version_type=linux # correct to gnu/linux during the next big refactor
11045   need_lib_prefix=no
11046   need_version=no
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048   soname_spec='${libname}${release}${shared_ext}$major'
11049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050   shlibpath_var=LD_LIBRARY_PATH
11051   shlibpath_overrides_runpath=no
11053   # Some binutils ld are patched to set DT_RUNPATH
11054   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   lt_cv_shlibpath_overrides_runpath=no
11058     save_LDFLAGS=$LDFLAGS
11059     save_libdir=$libdir
11060     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11061          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h.  */
11066 main ()
11069   ;
11070   return 0;
11072 _ACEOF
11073 if ac_fn_c_try_link "$LINENO"; then :
11074   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11075   lt_cv_shlibpath_overrides_runpath=yes
11078 rm -f core conftest.err conftest.$ac_objext \
11079     conftest$ac_exeext conftest.$ac_ext
11080     LDFLAGS=$save_LDFLAGS
11081     libdir=$save_libdir
11082     
11085   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11087   # This implies no fast_install, which is unacceptable.
11088   # Some rework will be needed to allow for fast_install
11089   # before this can be enabled.
11090   hardcode_into_libs=yes
11092   # Append ld.so.conf contents to the search path
11093   if test -f /etc/ld.so.conf; then
11094     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' ' '`
11095     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11096   fi
11098   # We used to test for /lib/ld.so.1 and disable shared libraries on
11099   # powerpc, because MkLinux only supported shared libraries with the
11100   # GNU dynamic linker.  Since this was broken with cross compilers,
11101   # most powerpc-linux boxes support dynamic linking these days and
11102   # people can always --disable-shared, the test was removed, and we
11103   # assume the GNU/Linux dynamic linker is in use.
11104   dynamic_linker='GNU/Linux ld.so'
11105   ;;
11107 netbsdelf*-gnu)
11108   version_type=linux
11109   need_lib_prefix=no
11110   need_version=no
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112   soname_spec='${libname}${release}${shared_ext}$major'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   shlibpath_overrides_runpath=no
11115   hardcode_into_libs=yes
11116   dynamic_linker='NetBSD ld.elf_so'
11117   ;;
11119 netbsd*)
11120   version_type=sunos
11121   need_lib_prefix=no
11122   need_version=no
11123   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11126     dynamic_linker='NetBSD (a.out) ld.so'
11127   else
11128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11129     soname_spec='${libname}${release}${shared_ext}$major'
11130     dynamic_linker='NetBSD ld.elf_so'
11131   fi
11132   shlibpath_var=LD_LIBRARY_PATH
11133   shlibpath_overrides_runpath=yes
11134   hardcode_into_libs=yes
11135   ;;
11137 newsos6)
11138   version_type=linux # correct to gnu/linux during the next big refactor
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=yes
11142   ;;
11144 *nto* | *qnx*)
11145   version_type=qnx
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   shlibpath_overrides_runpath=no
11152   hardcode_into_libs=yes
11153   dynamic_linker='ldqnx.so'
11154   ;;
11156 openbsd*)
11157   version_type=sunos
11158   sys_lib_dlsearch_path_spec="/usr/lib"
11159   need_lib_prefix=no
11160   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11161   case $host_os in
11162     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11163     *)                          need_version=no  ;;
11164   esac
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11169     case $host_os in
11170       openbsd2.[89] | openbsd2.[89].*)
11171         shlibpath_overrides_runpath=no
11172         ;;
11173       *)
11174         shlibpath_overrides_runpath=yes
11175         ;;
11176       esac
11177   else
11178     shlibpath_overrides_runpath=yes
11179   fi
11180   ;;
11182 os2*)
11183   libname_spec='$name'
11184   shrext_cmds=".dll"
11185   need_lib_prefix=no
11186   library_names_spec='$libname${shared_ext} $libname.a'
11187   dynamic_linker='OS/2 ld.exe'
11188   shlibpath_var=LIBPATH
11189   ;;
11191 osf3* | osf4* | osf5*)
11192   version_type=osf
11193   need_lib_prefix=no
11194   need_version=no
11195   soname_spec='${libname}${release}${shared_ext}$major'
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11199   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11200   ;;
11202 rdos*)
11203   dynamic_linker=no
11204   ;;
11206 solaris*)
11207   version_type=linux # correct to gnu/linux during the next big refactor
11208   need_lib_prefix=no
11209   need_version=no
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211   soname_spec='${libname}${release}${shared_ext}$major'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=yes
11214   hardcode_into_libs=yes
11215   # ldd complains unless libraries are executable
11216   postinstall_cmds='chmod +x $lib'
11217   ;;
11219 sunos4*)
11220   version_type=sunos
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   if test "$with_gnu_ld" = yes; then
11226     need_lib_prefix=no
11227   fi
11228   need_version=yes
11229   ;;
11231 sysv4 | sysv4.3*)
11232   version_type=linux # correct to gnu/linux during the next big refactor
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   case $host_vendor in
11237     sni)
11238       shlibpath_overrides_runpath=no
11239       need_lib_prefix=no
11240       runpath_var=LD_RUN_PATH
11241       ;;
11242     siemens)
11243       need_lib_prefix=no
11244       ;;
11245     motorola)
11246       need_lib_prefix=no
11247       need_version=no
11248       shlibpath_overrides_runpath=no
11249       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11250       ;;
11251   esac
11252   ;;
11254 sysv4*MP*)
11255   if test -d /usr/nec ;then
11256     version_type=linux # correct to gnu/linux during the next big refactor
11257     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11258     soname_spec='$libname${shared_ext}.$major'
11259     shlibpath_var=LD_LIBRARY_PATH
11260   fi
11261   ;;
11263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11264   version_type=freebsd-elf
11265   need_lib_prefix=no
11266   need_version=no
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11268   soname_spec='${libname}${release}${shared_ext}$major'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=yes
11271   hardcode_into_libs=yes
11272   if test "$with_gnu_ld" = yes; then
11273     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11274   else
11275     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11276     case $host_os in
11277       sco3.2v5*)
11278         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11279         ;;
11280     esac
11281   fi
11282   sys_lib_dlsearch_path_spec='/usr/lib'
11283   ;;
11285 tpf*)
11286   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   shlibpath_var=LD_LIBRARY_PATH
11292   shlibpath_overrides_runpath=no
11293   hardcode_into_libs=yes
11294   ;;
11296 uts4*)
11297   version_type=linux # correct to gnu/linux during the next big refactor
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299   soname_spec='${libname}${release}${shared_ext}$major'
11300   shlibpath_var=LD_LIBRARY_PATH
11301   ;;
11304   dynamic_linker=no
11305   ;;
11306 esac
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11308 $as_echo "$dynamic_linker" >&6; }
11309 test "$dynamic_linker" = no && can_build_shared=no
11311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11312 if test "$GCC" = yes; then
11313   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11317   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11319 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11320   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11324     
11325     
11326     
11329     
11330     
11331     
11334     
11335     
11336     
11339     
11340     
11341     
11344     
11345     
11346     
11349     
11350     
11351     
11354     
11355     
11356     
11359     
11360     
11361     
11364     
11365     
11366     
11369     
11370     
11371     
11374     
11375     
11376     
11379     
11380     
11381     
11384     
11385     
11386     
11389     
11390     
11391     
11394     
11395     
11396     
11399     
11400     
11401     
11404     
11405     
11406     
11409     
11410     
11411     
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11416 hardcode_action=
11417 if test -n "$hardcode_libdir_flag_spec" ||
11418    test -n "$runpath_var" ||
11419    test "X$hardcode_automatic" = "Xyes" ; then
11421   # We can hardcode non-existent directories.
11422   if test "$hardcode_direct" != no &&
11423      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11424      # have to relink, otherwise we might link with an installed library
11425      # when we should be linking with a yet-to-be-installed one
11426      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11427      test "$hardcode_minus_L" != no; then
11428     # Linking always hardcodes the temporary library directory.
11429     hardcode_action=relink
11430   else
11431     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11432     hardcode_action=immediate
11433   fi
11434 else
11435   # We cannot hardcode anything, or else we can only hardcode existing
11436   # directories.
11437   hardcode_action=unsupported
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11440 $as_echo "$hardcode_action" >&6; }
11442 if test "$hardcode_action" = relink ||
11443    test "$inherit_rpath" = yes; then
11444   # Fast installation is not supported
11445   enable_fast_install=no
11446 elif test "$shlibpath_overrides_runpath" = yes ||
11447      test "$enable_shared" = no; then
11448   # Fast installation is not necessary
11449   enable_fast_install=needless
11452     
11453     
11454     
11457   if test "x$enable_dlopen" != xyes; then
11458   enable_dlopen=unknown
11459   enable_dlopen_self=unknown
11460   enable_dlopen_self_static=unknown
11461 else
11462   lt_cv_dlopen=no
11463   lt_cv_dlopen_libs=
11465   case $host_os in
11466   beos*)
11467     lt_cv_dlopen="load_add_on"
11468     lt_cv_dlopen_libs=
11469     lt_cv_dlopen_self=yes
11470     ;;
11472   mingw* | pw32* | cegcc*)
11473     lt_cv_dlopen="LoadLibrary"
11474     lt_cv_dlopen_libs=
11475     ;;
11477   cygwin*)
11478     lt_cv_dlopen="dlopen"
11479     lt_cv_dlopen_libs=
11480     ;;
11482   darwin*)
11483   # if libdl is installed we need to link against it
11484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11485 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11486 if ${ac_cv_lib_dl_dlopen+:} false; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldl  $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11494 /* Override any GCC internal prototype to avoid an error.
11495    Use char because int might match the return type of a GCC
11496    builtin and then its argument prototype would still apply.  */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char dlopen ();
11502 main ()
11504 return dlopen ();
11505   ;
11506   return 0;
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510   ac_cv_lib_dl_dlopen=yes
11511 else
11512   ac_cv_lib_dl_dlopen=no
11514 rm -f core conftest.err conftest.$ac_objext \
11515     conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11519 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11520 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11522 else
11523   
11524     lt_cv_dlopen="dyld"
11525     lt_cv_dlopen_libs=
11526     lt_cv_dlopen_self=yes
11527     
11530     ;;
11532   *)
11533     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11534 if test "x$ac_cv_func_shl_load" = xyes; then :
11535   lt_cv_dlopen="shl_load"
11536 else
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11538 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11539 if ${ac_cv_lib_dld_shl_load+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   ac_check_lib_save_LIBS=$LIBS
11543 LIBS="-ldld  $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h.  */
11547 /* Override any GCC internal prototype to avoid an error.
11548    Use char because int might match the return type of a GCC
11549    builtin and then its argument prototype would still apply.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char shl_load ();
11555 main ()
11557 return shl_load ();
11558   ;
11559   return 0;
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563   ac_cv_lib_dld_shl_load=yes
11564 else
11565   ac_cv_lib_dld_shl_load=no
11567 rm -f core conftest.err conftest.$ac_objext \
11568     conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11572 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11573 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11574   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11575 else
11576   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11577 if test "x$ac_cv_func_dlopen" = xyes; then :
11578   lt_cv_dlopen="dlopen"
11579 else
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11582 if ${ac_cv_lib_dl_dlopen+:} false; then :
11583   $as_echo_n "(cached) " >&6
11584 else
11585   ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-ldl  $LIBS"
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11590 /* Override any GCC internal prototype to avoid an error.
11591    Use char because int might match the return type of a GCC
11592    builtin and then its argument prototype would still apply.  */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char dlopen ();
11598 main ()
11600 return dlopen ();
11601   ;
11602   return 0;
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"; then :
11606   ac_cv_lib_dl_dlopen=yes
11607 else
11608   ac_cv_lib_dl_dlopen=no
11610 rm -f core conftest.err conftest.$ac_objext \
11611     conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11616 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11617   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618 else
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11620 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11621 if ${ac_cv_lib_svld_dlopen+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lsvld  $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h.  */
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char dlopen ();
11637 main ()
11639 return dlopen ();
11640   ;
11641   return 0;
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645   ac_cv_lib_svld_dlopen=yes
11646 else
11647   ac_cv_lib_svld_dlopen=no
11649 rm -f core conftest.err conftest.$ac_objext \
11650     conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11654 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11655 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11657 else
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11659 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11660 if ${ac_cv_lib_dld_dld_link+:} false; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   ac_check_lib_save_LIBS=$LIBS
11664 LIBS="-ldld  $LIBS"
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h.  */
11668 /* Override any GCC internal prototype to avoid an error.
11669    Use char because int might match the return type of a GCC
11670    builtin and then its argument prototype would still apply.  */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char dld_link ();
11676 main ()
11678 return dld_link ();
11679   ;
11680   return 0;
11682 _ACEOF
11683 if ac_fn_c_try_link "$LINENO"; then :
11684   ac_cv_lib_dld_dld_link=yes
11685 else
11686   ac_cv_lib_dld_dld_link=no
11688 rm -f core conftest.err conftest.$ac_objext \
11689     conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11693 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11694 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11698               
11701             
11704           
11707         
11710       
11713     ;;
11714   esac
11716   if test "x$lt_cv_dlopen" != xno; then
11717     enable_dlopen=yes
11718   else
11719     enable_dlopen=no
11720   fi
11722   case $lt_cv_dlopen in
11723   dlopen)
11724     save_CPPFLAGS="$CPPFLAGS"
11725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11727     save_LDFLAGS="$LDFLAGS"
11728     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11730     save_LIBS="$LIBS"
11731     LIBS="$lt_cv_dlopen_libs $LIBS"
11733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11734 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11735 if ${lt_cv_dlopen_self+:} false; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738           if test "$cross_compiling" = yes; then :
11739   lt_cv_dlopen_self=cross
11740 else
11741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742   lt_status=$lt_dlunknown
11743   cat > conftest.$ac_ext <<_LT_EOF
11744 #line $LINENO "configure"
11745 #include "confdefs.h"
11747 #if HAVE_DLFCN_H
11748 #include <dlfcn.h>
11749 #endif
11751 #include <stdio.h>
11753 #ifdef RTLD_GLOBAL
11754 #  define LT_DLGLOBAL           RTLD_GLOBAL
11755 #else
11756 #  ifdef DL_GLOBAL
11757 #    define LT_DLGLOBAL         DL_GLOBAL
11758 #  else
11759 #    define LT_DLGLOBAL         0
11760 #  endif
11761 #endif
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764    find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11766 #  ifdef RTLD_LAZY
11767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11768 #  else
11769 #    ifdef DL_LAZY
11770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11771 #    else
11772 #      ifdef RTLD_NOW
11773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11774 #      else
11775 #        ifdef DL_NOW
11776 #          define LT_DLLAZY_OR_NOW      DL_NOW
11777 #        else
11778 #          define LT_DLLAZY_OR_NOW      0
11779 #        endif
11780 #      endif
11781 #    endif
11782 #  endif
11783 #endif
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786    correspondingly for the symbols needed.  */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 int fnord () __attribute__((visibility("default")));
11789 #endif
11791 int fnord () { return 42; }
11792 int main ()
11794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795   int status = $lt_dlunknown;
11797   if (self)
11798     {
11799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11800       else
11801         {
11802           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11803           else puts (dlerror ());
11804         }
11805       /* dlclose (self); */
11806     }
11807   else
11808     puts (dlerror ());
11810   return status;
11812 _LT_EOF
11813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814   (eval $ac_link) 2>&5
11815   ac_status=$?
11816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818     (./conftest; exit; ) >&5 2>/dev/null
11819     lt_status=$?
11820     case x$lt_status in
11821       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11824     esac
11825   else :
11826     # compilation failed
11827     lt_cv_dlopen_self=no
11828   fi
11830 rm -fr conftest*
11832     
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11835 $as_echo "$lt_cv_dlopen_self" >&6; }
11837     if test "x$lt_cv_dlopen_self" = xyes; then
11838       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11840 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11841 if ${lt_cv_dlopen_self_static+:} false; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844           if test "$cross_compiling" = yes; then :
11845   lt_cv_dlopen_self_static=cross
11846 else
11847   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848   lt_status=$lt_dlunknown
11849   cat > conftest.$ac_ext <<_LT_EOF
11850 #line $LINENO "configure"
11851 #include "confdefs.h"
11853 #if HAVE_DLFCN_H
11854 #include <dlfcn.h>
11855 #endif
11857 #include <stdio.h>
11859 #ifdef RTLD_GLOBAL
11860 #  define LT_DLGLOBAL           RTLD_GLOBAL
11861 #else
11862 #  ifdef DL_GLOBAL
11863 #    define LT_DLGLOBAL         DL_GLOBAL
11864 #  else
11865 #    define LT_DLGLOBAL         0
11866 #  endif
11867 #endif
11869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870    find out it does not work in some platform. */
11871 #ifndef LT_DLLAZY_OR_NOW
11872 #  ifdef RTLD_LAZY
11873 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11874 #  else
11875 #    ifdef DL_LAZY
11876 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11877 #    else
11878 #      ifdef RTLD_NOW
11879 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11880 #      else
11881 #        ifdef DL_NOW
11882 #          define LT_DLLAZY_OR_NOW      DL_NOW
11883 #        else
11884 #          define LT_DLLAZY_OR_NOW      0
11885 #        endif
11886 #      endif
11887 #    endif
11888 #  endif
11889 #endif
11891 /* When -fvisbility=hidden is used, assume the code has been annotated
11892    correspondingly for the symbols needed.  */
11893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11894 int fnord () __attribute__((visibility("default")));
11895 #endif
11897 int fnord () { return 42; }
11898 int main ()
11900   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11901   int status = $lt_dlunknown;
11903   if (self)
11904     {
11905       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11906       else
11907         {
11908           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11909           else puts (dlerror ());
11910         }
11911       /* dlclose (self); */
11912     }
11913   else
11914     puts (dlerror ());
11916   return status;
11918 _LT_EOF
11919   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11920   (eval $ac_link) 2>&5
11921   ac_status=$?
11922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11923   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11924     (./conftest; exit; ) >&5 2>/dev/null
11925     lt_status=$?
11926     case x$lt_status in
11927       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11928       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11929       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11930     esac
11931   else :
11932     # compilation failed
11933     lt_cv_dlopen_self_static=no
11934   fi
11936 rm -fr conftest*
11938       
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11942     fi
11944     CPPFLAGS="$save_CPPFLAGS"
11945     LDFLAGS="$save_LDFLAGS"
11946     LIBS="$save_LIBS"
11947     ;;
11948   esac
11950   case $lt_cv_dlopen_self in
11951   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11952   *) enable_dlopen_self=unknown ;;
11953   esac
11955   case $lt_cv_dlopen_self_static in
11956   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11957   *) enable_dlopen_self_static=unknown ;;
11958   esac
11961     
11962     
11963     
11966     
11967     
11968     
11971     
11972     
11973     
11976   
11977 striplib=
11978 old_striplib=
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11981 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11982   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11983   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985 $as_echo "yes" >&6; }
11986 else
11987 # FIXME - insert some real tests, host_os isn't really good enough
11988   case $host_os in
11989   darwin*)
11990     if test -n "$STRIP" ; then
11991       striplib="$STRIP -x"
11992       old_striplib="$STRIP -S"
11993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 $as_echo "yes" >&6; }
11995     else
11996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998     fi
11999     ;;
12000   *)
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12003     ;;
12004   esac
12007     
12008     
12009     
12012     
12013     
12014     
12018   # Report which library types will actually be built
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12020 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12022 $as_echo "$can_build_shared" >&6; }
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12025 $as_echo_n "checking whether to build shared libraries... " >&6; }
12026   test "$can_build_shared" = "no" && enable_shared=no
12028   # On AIX, shared libraries and static libraries use the same namespace, and
12029   # are all built from PIC.
12030   case $host_os in
12031   aix3*)
12032     test "$enable_shared" = yes && enable_static=no
12033     if test -n "$RANLIB"; then
12034       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12035       postinstall_cmds='$RANLIB $lib'
12036     fi
12037     ;;
12039   aix[4-9]*)
12040     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12041       test "$enable_shared" = yes && enable_static=no
12042     fi
12043     ;;
12044   esac
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12046 $as_echo "$enable_shared" >&6; }
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12049 $as_echo_n "checking whether to build static libraries... " >&6; }
12050   # Make sure either enable_shared or enable_static is yes.
12051   test "$enable_shared" = yes || enable_static=yes
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12053 $as_echo "$enable_static" >&6; }
12055   
12059 ac_ext=c
12060 ac_cpp='$CPP $CPPFLAGS'
12061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12065 CC="$lt_save_CC"
12074        
12075        
12081         ac_config_commands="$ac_config_commands libtool"
12086 # Only expand once:
12092  if test "$enable_libevent_regress" = "yes"; then
12093   BUILD_REGRESS_TRUE=
12094   BUILD_REGRESS_FALSE='#'
12095 else
12096   BUILD_REGRESS_TRUE='#'
12097   BUILD_REGRESS_FALSE=
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12102 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12103 if ${ac_cv_search_inet_ntoa+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   ac_func_search_save_LIBS=$LIBS
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h.  */
12110 /* Override any GCC internal prototype to avoid an error.
12111    Use char because int might match the return type of a GCC
12112    builtin and then its argument prototype would still apply.  */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char inet_ntoa ();
12118 main ()
12120 return inet_ntoa ();
12121   ;
12122   return 0;
12124 _ACEOF
12125 for ac_lib in '' nsl; do
12126   if test -z "$ac_lib"; then
12127     ac_res="none required"
12128   else
12129     ac_res=-l$ac_lib
12130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12131   fi
12132   if ac_fn_c_try_link "$LINENO"; then :
12133   ac_cv_search_inet_ntoa=$ac_res
12135 rm -f core conftest.err conftest.$ac_objext \
12136     conftest$ac_exeext
12137   if ${ac_cv_search_inet_ntoa+:} false; then :
12138   break
12140 done
12141 if ${ac_cv_search_inet_ntoa+:} false; then :
12142   
12143 else
12144   ac_cv_search_inet_ntoa=no
12146 rm conftest.$ac_ext
12147 LIBS=$ac_func_search_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12150 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12151 ac_res=$ac_cv_search_inet_ntoa
12152 if test "$ac_res" != no; then :
12153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12154   
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12158 $as_echo_n "checking for library containing socket... " >&6; }
12159 if ${ac_cv_search_socket+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_func_search_save_LIBS=$LIBS
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h.  */
12166 /* Override any GCC internal prototype to avoid an error.
12167    Use char because int might match the return type of a GCC
12168    builtin and then its argument prototype would still apply.  */
12169 #ifdef __cplusplus
12170 extern "C"
12171 #endif
12172 char socket ();
12174 main ()
12176 return socket ();
12177   ;
12178   return 0;
12180 _ACEOF
12181 for ac_lib in '' socket; do
12182   if test -z "$ac_lib"; then
12183     ac_res="none required"
12184   else
12185     ac_res=-l$ac_lib
12186     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12187   fi
12188   if ac_fn_c_try_link "$LINENO"; then :
12189   ac_cv_search_socket=$ac_res
12191 rm -f core conftest.err conftest.$ac_objext \
12192     conftest$ac_exeext
12193   if ${ac_cv_search_socket+:} false; then :
12194   break
12196 done
12197 if ${ac_cv_search_socket+:} false; then :
12198   
12199 else
12200   ac_cv_search_socket=no
12202 rm conftest.$ac_ext
12203 LIBS=$ac_func_search_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12206 $as_echo "$ac_cv_search_socket" >&6; }
12207 ac_res=$ac_cv_search_socket
12208 if test "$ac_res" != no; then :
12209   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12210   
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12214 $as_echo_n "checking for library containing inet_aton... " >&6; }
12215 if ${ac_cv_search_inet_aton+:} false; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   ac_func_search_save_LIBS=$LIBS
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h.  */
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char inet_aton ();
12230 main ()
12232 return inet_aton ();
12233   ;
12234   return 0;
12236 _ACEOF
12237 for ac_lib in '' resolv; do
12238   if test -z "$ac_lib"; then
12239     ac_res="none required"
12240   else
12241     ac_res=-l$ac_lib
12242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12243   fi
12244   if ac_fn_c_try_link "$LINENO"; then :
12245   ac_cv_search_inet_aton=$ac_res
12247 rm -f core conftest.err conftest.$ac_objext \
12248     conftest$ac_exeext
12249   if ${ac_cv_search_inet_aton+:} false; then :
12250   break
12252 done
12253 if ${ac_cv_search_inet_aton+:} false; then :
12254   
12255 else
12256   ac_cv_search_inet_aton=no
12258 rm conftest.$ac_ext
12259 LIBS=$ac_func_search_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12262 $as_echo "$ac_cv_search_inet_aton" >&6; }
12263 ac_res=$ac_cv_search_inet_aton
12264 if test "$ac_res" != no; then :
12265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12266   
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12270 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12271 if ${ac_cv_search_clock_gettime+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   ac_func_search_save_LIBS=$LIBS
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12278 /* Override any GCC internal prototype to avoid an error.
12279    Use char because int might match the return type of a GCC
12280    builtin and then its argument prototype would still apply.  */
12281 #ifdef __cplusplus
12282 extern "C"
12283 #endif
12284 char clock_gettime ();
12286 main ()
12288 return clock_gettime ();
12289   ;
12290   return 0;
12292 _ACEOF
12293 for ac_lib in '' rt; do
12294   if test -z "$ac_lib"; then
12295     ac_res="none required"
12296   else
12297     ac_res=-l$ac_lib
12298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12299   fi
12300   if ac_fn_c_try_link "$LINENO"; then :
12301   ac_cv_search_clock_gettime=$ac_res
12303 rm -f core conftest.err conftest.$ac_objext \
12304     conftest$ac_exeext
12305   if ${ac_cv_search_clock_gettime+:} false; then :
12306   break
12308 done
12309 if ${ac_cv_search_clock_gettime+:} false; then :
12310   
12311 else
12312   ac_cv_search_clock_gettime=no
12314 rm conftest.$ac_ext
12315 LIBS=$ac_func_search_save_LIBS
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12318 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12319 ac_res=$ac_cv_search_clock_gettime
12320 if test "$ac_res" != no; then :
12321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12322   
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12326 $as_echo_n "checking for library containing sendfile... " >&6; }
12327 if ${ac_cv_search_sendfile+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   ac_func_search_save_LIBS=$LIBS
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12334 /* Override any GCC internal prototype to avoid an error.
12335    Use char because int might match the return type of a GCC
12336    builtin and then its argument prototype would still apply.  */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char sendfile ();
12342 main ()
12344 return sendfile ();
12345   ;
12346   return 0;
12348 _ACEOF
12349 for ac_lib in '' sendfile; do
12350   if test -z "$ac_lib"; then
12351     ac_res="none required"
12352   else
12353     ac_res=-l$ac_lib
12354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12355   fi
12356   if ac_fn_c_try_link "$LINENO"; then :
12357   ac_cv_search_sendfile=$ac_res
12359 rm -f core conftest.err conftest.$ac_objext \
12360     conftest$ac_exeext
12361   if ${ac_cv_search_sendfile+:} false; then :
12362   break
12364 done
12365 if ${ac_cv_search_sendfile+:} false; then :
12366   
12367 else
12368   ac_cv_search_sendfile=no
12370 rm conftest.$ac_ext
12371 LIBS=$ac_func_search_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12374 $as_echo "$ac_cv_search_sendfile" >&6; }
12375 ac_res=$ac_cv_search_sendfile
12376 if test "$ac_res" != no; then :
12377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12378   
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12383 $as_echo_n "checking for WIN32... " >&6; }
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12388 main ()
12391 #ifndef WIN32
12392 die horribly
12393 #endif
12394         
12395   ;
12396   return 0;
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12402 else
12403   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12409 $as_echo_n "checking for CYGWIN... " >&6; }
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h.  */
12414 main ()
12417 #ifndef __CYGWIN__
12418 die horribly
12419 #endif
12420         
12421   ;
12422   return 0;
12424 _ACEOF
12425 if ac_fn_c_try_compile "$LINENO"; then :
12426   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427 $as_echo "yes" >&6; }
12428 else
12429   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 for ac_header in zlib.h
12435 do :
12436   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12437 if test "x$ac_cv_header_zlib_h" = xyes; then :
12438   cat >>confdefs.h <<_ACEOF
12439 @%:@define HAVE_ZLIB_H 1
12440 _ACEOF
12444 done
12447 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12448 save_LIBS="$LIBS"
12449 LIBS=""
12450 ZLIB_LIBS=""
12451 have_zlib=no
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12453 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12454 if ${ac_cv_search_inflateEnd+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   ac_func_search_save_LIBS=$LIBS
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h.  */
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char inflateEnd ();
12469 main ()
12471 return inflateEnd ();
12472   ;
12473   return 0;
12475 _ACEOF
12476 for ac_lib in '' z; do
12477   if test -z "$ac_lib"; then
12478     ac_res="none required"
12479   else
12480     ac_res=-l$ac_lib
12481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12482   fi
12483   if ac_fn_c_try_link "$LINENO"; then :
12484   ac_cv_search_inflateEnd=$ac_res
12486 rm -f core conftest.err conftest.$ac_objext \
12487     conftest$ac_exeext
12488   if ${ac_cv_search_inflateEnd+:} false; then :
12489   break
12491 done
12492 if ${ac_cv_search_inflateEnd+:} false; then :
12493   
12494 else
12495   ac_cv_search_inflateEnd=no
12497 rm conftest.$ac_ext
12498 LIBS=$ac_func_search_save_LIBS
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12501 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12502 ac_res=$ac_cv_search_inflateEnd
12503 if test "$ac_res" != no; then :
12504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12505   have_zlib=yes
12506         ZLIB_LIBS="$LIBS"
12507         
12508 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12512 LIBS="$save_LIBS"
12515  if test "$have_zlib" = "yes"; then
12516   ZLIB_REGRESS_TRUE=
12517   ZLIB_REGRESS_FALSE='#'
12518 else
12519   ZLIB_REGRESS_TRUE='#'
12520   ZLIB_REGRESS_FALSE=
12524 if test "$bwin32" = true; then
12525   EV_LIB_WS32=-lws2_32
12526   EV_LIB_GDI=-lgdi32
12527 else
12528   EV_LIB_WS32=
12529   EV_LIB_GDI=
12535 for ac_header in openssl/bio.h
12536 do :
12537   ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12539   cat >>confdefs.h <<_ACEOF
12540 @%:@define HAVE_OPENSSL_BIO_H 1
12541 _ACEOF
12545 done
12548 if test "$enable_openssl" = "yes"; then
12549 save_LIBS="$LIBS"
12550 LIBS=""
12551 OPENSSL_LIBS=""
12552 have_openssl=no
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12554 $as_echo_n "checking for library containing SSL_new... " >&6; }
12555 if ${ac_cv_search_SSL_new+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   ac_func_search_save_LIBS=$LIBS
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12562 /* Override any GCC internal prototype to avoid an error.
12563    Use char because int might match the return type of a GCC
12564    builtin and then its argument prototype would still apply.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char SSL_new ();
12570 main ()
12572 return SSL_new ();
12573   ;
12574   return 0;
12576 _ACEOF
12577 for ac_lib in '' ssl; do
12578   if test -z "$ac_lib"; then
12579     ac_res="none required"
12580   else
12581     ac_res=-l$ac_lib
12582     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12583   fi
12584   if ac_fn_c_try_link "$LINENO"; then :
12585   ac_cv_search_SSL_new=$ac_res
12587 rm -f core conftest.err conftest.$ac_objext \
12588     conftest$ac_exeext
12589   if ${ac_cv_search_SSL_new+:} false; then :
12590   break
12592 done
12593 if ${ac_cv_search_SSL_new+:} false; then :
12594   
12595 else
12596   ac_cv_search_SSL_new=no
12598 rm conftest.$ac_ext
12599 LIBS=$ac_func_search_save_LIBS
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12602 $as_echo "$ac_cv_search_SSL_new" >&6; }
12603 ac_res=$ac_cv_search_SSL_new
12604 if test "$ac_res" != no; then :
12605   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12606   have_openssl=yes
12607         OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12608         
12609 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12611 else
12612   have_openssl=no
12615 LIBS="$save_LIBS"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12620 $as_echo_n "checking for ANSI C header files... " >&6; }
12621 if ${ac_cv_header_stdc+:} false; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626 #include <stdlib.h>
12627 #include <stdarg.h>
12628 #include <string.h>
12629 #include <float.h>
12632 main ()
12635   ;
12636   return 0;
12638 _ACEOF
12639 if ac_fn_c_try_compile "$LINENO"; then :
12640   ac_cv_header_stdc=yes
12641 else
12642   ac_cv_header_stdc=no
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test $ac_cv_header_stdc = yes; then
12647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650 #include <string.h>
12652 _ACEOF
12653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654   $EGREP "memchr" >/dev/null 2>&1; then :
12655   
12656 else
12657   ac_cv_header_stdc=no
12659 rm -f conftest*
12663 if test $ac_cv_header_stdc = yes; then
12664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h.  */
12667 #include <stdlib.h>
12669 _ACEOF
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671   $EGREP "free" >/dev/null 2>&1; then :
12672   
12673 else
12674   ac_cv_header_stdc=no
12676 rm -f conftest*
12680 if test $ac_cv_header_stdc = yes; then
12681   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12682   if test "$cross_compiling" = yes; then :
12683   :
12684 else
12685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h.  */
12687 #include <ctype.h>
12688 #include <stdlib.h>
12689 #if ((' ' & 0x0FF) == 0x020)
12690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12692 #else
12693 # define ISLOWER(c) \
12694                    (('a' <= (c) && (c) <= 'i') \
12695                      || ('j' <= (c) && (c) <= 'r') \
12696                      || ('s' <= (c) && (c) <= 'z'))
12697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12698 #endif
12700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12702 main ()
12704   int i;
12705   for (i = 0; i < 256; i++)
12706     if (XOR (islower (i), ISLOWER (i))
12707         || toupper (i) != TOUPPER (i))
12708       return 2;
12709   return 0;
12711 _ACEOF
12712 if ac_fn_c_try_run "$LINENO"; then :
12713   
12714 else
12715   ac_cv_header_stdc=no
12717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718   conftest.$ac_objext conftest.beam conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12724 $as_echo "$ac_cv_header_stdc" >&6; }
12725 if test $ac_cv_header_stdc = yes; then
12726   
12727 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12731 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
12732 do :
12733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12736   cat >>confdefs.h <<_ACEOF
12737 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12738 _ACEOF
12742 done
12744 for ac_header in sys/stat.h
12745 do :
12746   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12747 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12748   cat >>confdefs.h <<_ACEOF
12749 @%:@define HAVE_SYS_STAT_H 1
12750 _ACEOF
12754 done
12756 for ac_header in sys/sysctl.h
12757 do :
12758   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12759 #ifdef HAVE_SYS_PARAM_H
12760 #include <sys/param.h>
12761 #endif
12764 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12765   cat >>confdefs.h <<_ACEOF
12766 @%:@define HAVE_SYS_SYSCTL_H 1
12767 _ACEOF
12771 done
12773 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12775 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12776         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12779 #include <sys/queue.h>
12780 #ifdef TAILQ_FOREACH
12781  yes
12782 #endif
12784 _ACEOF
12785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12786   $EGREP "yes" >/dev/null 2>&1; then :
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788 $as_echo "yes" >&6; }
12789          
12790 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12792 else
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795         
12797 rm -f conftest*
12801 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12803 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12807 #include <sys/time.h>
12808 #ifdef timeradd
12809  yes
12810 #endif
12812 _ACEOF
12813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12814   $EGREP "yes" >/dev/null 2>&1; then :
12815    
12816 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12818           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; } 
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12825 rm -f conftest*
12829 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12831 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12832         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12835 #include <sys/time.h>
12836 #ifdef timercmp
12837  yes
12838 #endif
12840 _ACEOF
12841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12842   $EGREP "yes" >/dev/null 2>&1; then :
12843    
12844 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12846           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; } 
12848 else
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12853 rm -f conftest*
12857 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12858         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12859 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12860         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12863 #include <sys/time.h>
12864 #ifdef timerclear
12865  yes
12866 #endif
12868 _ACEOF
12869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12870   $EGREP "yes" >/dev/null 2>&1; then :
12871    
12872 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12875 $as_echo "yes" >&6; } 
12876 else
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12881 rm -f conftest*
12885 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12887 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h.  */
12891 #include <sys/time.h>
12892 #ifdef timerisset
12893  yes
12894 #endif
12896 _ACEOF
12897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12898   $EGREP "yes" >/dev/null 2>&1; then :
12899    
12900 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12902           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; } 
12904 else
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12909 rm -f conftest*
12913 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12914         ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12915              #include <sys/sysctl.h>
12916         
12918 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12919   ac_have_decl=1
12920 else
12921   ac_have_decl=0
12924 cat >>confdefs.h <<_ACEOF
12925 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12926 _ACEOF
12927 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12928              #include <sys/sysctl.h>
12929         
12931 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12932   ac_have_decl=1
12933 else
12934   ac_have_decl=0
12937 cat >>confdefs.h <<_ACEOF
12938 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12939 _ACEOF
12940 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12941              #include <sys/sysctl.h>
12942         
12944 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12945   ac_have_decl=1
12946 else
12947   ac_have_decl=0
12950 cat >>confdefs.h <<_ACEOF
12951 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12952 _ACEOF
12953 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12954              #include <sys/sysctl.h>
12955         
12957 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12958   ac_have_decl=1
12959 else
12960   ac_have_decl=0
12963 cat >>confdefs.h <<_ACEOF
12964 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12965 _ACEOF
12969  if test x$bwin32 = xtrue; then
12970   BUILD_WIN32_TRUE=
12971   BUILD_WIN32_FALSE='#'
12972 else
12973   BUILD_WIN32_TRUE='#'
12974   BUILD_WIN32_FALSE=
12977  if test x$cygwin = xtrue; then
12978   BUILD_CYGWIN_TRUE=
12979   BUILD_CYGWIN_FALSE='#'
12980 else
12981   BUILD_CYGWIN_TRUE='#'
12982   BUILD_CYGWIN_FALSE=
12985  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12986   BUILD_WITH_NO_UNDEFINED_TRUE=
12987   BUILD_WITH_NO_UNDEFINED_FALSE='#'
12988 else
12989   BUILD_WITH_NO_UNDEFINED_TRUE='#'
12990   BUILD_WITH_NO_UNDEFINED_FALSE=
12994 if test x$bwin32 = xtrue; then
12995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12996 $as_echo_n "checking for library containing getservbyname... " >&6; }
12997 if ${ac_cv_search_getservbyname+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   ac_func_search_save_LIBS=$LIBS
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h.  */
13004 /* Override any GCC internal prototype to avoid an error.
13005    Use char because int might match the return type of a GCC
13006    builtin and then its argument prototype would still apply.  */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char getservbyname ();
13012 main ()
13014 return getservbyname ();
13015   ;
13016   return 0;
13018 _ACEOF
13019 for ac_lib in '' ws2_32; do
13020   if test -z "$ac_lib"; then
13021     ac_res="none required"
13022   else
13023     ac_res=-l$ac_lib
13024     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13025   fi
13026   if ac_fn_c_try_link "$LINENO"; then :
13027   ac_cv_search_getservbyname=$ac_res
13029 rm -f core conftest.err conftest.$ac_objext \
13030     conftest$ac_exeext
13031   if ${ac_cv_search_getservbyname+:} false; then :
13032   break
13034 done
13035 if ${ac_cv_search_getservbyname+:} false; then :
13036   
13037 else
13038   ac_cv_search_getservbyname=no
13040 rm conftest.$ac_ext
13041 LIBS=$ac_func_search_save_LIBS
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13044 $as_echo "$ac_cv_search_getservbyname" >&6; }
13045 ac_res=$ac_cv_search_getservbyname
13046 if test "$ac_res" != no; then :
13047   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13048   
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13054 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13055 if ${ac_cv_c_const+:} false; then :
13056   $as_echo_n "(cached) " >&6
13057 else
13058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h.  */
13062 main ()
13065 #ifndef __cplusplus
13066   /* Ultrix mips cc rejects this sort of thing.  */
13067   typedef int charset[2];
13068   const charset cs = { 0, 0 };
13069   /* SunOS 4.1.1 cc rejects this.  */
13070   char const *const *pcpcc;
13071   char **ppc;
13072   /* NEC SVR4.0.2 mips cc rejects this.  */
13073   struct point {int x, y;};
13074   static struct point const zero = {0,0};
13075   /* AIX XL C 1.02.0.0 rejects this.
13076      It does not let you subtract one const X* pointer from another in
13077      an arm of an if-expression whose if-part is not a constant
13078      expression */
13079   const char *g = "string";
13080   pcpcc = &g + (g ? g-g : 0);
13081   /* HPUX 7.0 cc rejects these. */
13082   ++pcpcc;
13083   ppc = (char**) pcpcc;
13084   pcpcc = (char const *const *) ppc;
13085   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13086     char tx;
13087     char *t = &tx;
13088     char const *s = 0 ? (char *) 0 : (char const *) 0;
13090     *t++ = 0;
13091     if (s) return 0;
13092   }
13093   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13094     int x[] = {25, 17};
13095     const int *foo = &x[0];
13096     ++foo;
13097   }
13098   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13099     typedef const int *iptr;
13100     iptr p = 0;
13101     ++p;
13102   }
13103   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13104        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13105     struct s { int j; const int *ap[3]; } bx;
13106     struct s *b = &bx; b->j = 5;
13107   }
13108   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13109     const int foo = 10;
13110     if (!foo) return 0;
13111   }
13112   return !cs[0] && !zero.x;
13113 #endif
13115   ;
13116   return 0;
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120   ac_cv_c_const=yes
13121 else
13122   ac_cv_c_const=no
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13127 $as_echo "$ac_cv_c_const" >&6; }
13128 if test $ac_cv_c_const = no; then
13129   
13130 $as_echo "@%:@define const /**/" >>confdefs.h
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13135 $as_echo_n "checking for inline... " >&6; }
13136 if ${ac_cv_c_inline+:} false; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   ac_cv_c_inline=no
13140 for ac_kw in inline __inline__ __inline; do
13141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h.  */
13143 #ifndef __cplusplus
13144 typedef int foo_t;
13145 static $ac_kw foo_t static_foo () {return 0; }
13146 $ac_kw foo_t foo () {return 0; }
13147 #endif
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151   ac_cv_c_inline=$ac_kw
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154   test "$ac_cv_c_inline" != no && break
13155 done
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13159 $as_echo "$ac_cv_c_inline" >&6; }
13161 case $ac_cv_c_inline in
13162   inline | yes) ;;
13163   *)
13164     case $ac_cv_c_inline in
13165       no) ac_val=;;
13166       *) ac_val=$ac_cv_c_inline;;
13167     esac
13168     cat >>confdefs.h <<_ACEOF
13169 #ifndef __cplusplus
13170 #define inline $ac_val
13171 #endif
13172 _ACEOF
13173     ;;
13174 esac
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13178 if ${ac_cv_header_time+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h.  */
13183 #include <sys/types.h>
13184 #include <sys/time.h>
13185 #include <time.h>
13188 main ()
13190 if ((struct tm *) 0)
13191 return 0;
13192   ;
13193   return 0;
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197   ac_cv_header_time=yes
13198 else
13199   ac_cv_header_time=no
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13204 $as_echo "$ac_cv_header_time" >&6; }
13205 if test $ac_cv_header_time = yes; then
13206   
13207 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13212 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13213 do :
13214   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13217   cat >>confdefs.h <<_ACEOF
13218 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13219 _ACEOF
13222 done
13224 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
13225 do :
13226   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13229   cat >>confdefs.h <<_ACEOF
13230 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 _ACEOF
13234 done
13236 for ac_func in umask
13237 do :
13238   ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13239 if test "x$ac_cv_func_umask" = xyes; then :
13240   cat >>confdefs.h <<_ACEOF
13241 @%:@define HAVE_UMASK 1
13242 _ACEOF
13245 done
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13249 $as_echo_n "checking for getaddrinfo... " >&6; }
13250 if ${libevent_cv_getaddrinfo+:} false; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h.  */
13256                 #ifdef HAVE_NETDB_H
13257                 #include <netdb.h>
13258                 #endif
13259             
13261 main ()
13264                 getaddrinfo;
13265             
13266         
13267   ;
13268   return 0;
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272   libevent_cv_getaddrinfo=yes
13273 else
13274   libevent_cv_getaddrinfo=no
13275     
13277 rm -f core conftest.err conftest.$ac_objext \
13278     conftest$ac_exeext conftest.$ac_ext
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13282 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13283 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13284     
13285 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13287 else
13289 for ac_func in getservbyname
13290 do :
13291   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13292 if test "x$ac_cv_func_getservbyname" = xyes; then :
13293   cat >>confdefs.h <<_ACEOF
13294 @%:@define HAVE_GETSERVBYNAME 1
13295 _ACEOF
13298 done
13300 # Check for gethostbyname_r in all its glorious incompatible versions.
13301 #   (This is cut-and-pasted from Tor, which based its logic on
13302 #   Python's configure.in.)
13305 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13306 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13307   
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13309 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13310   OLD_CFLAGS=$CFLAGS
13311   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h.  */
13315 #include <netdb.h>
13316   
13318 main ()
13321     char *cp1, *cp2;
13322     struct hostent *h1, *h2;
13323     int i1, i2;
13324     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13325   
13326   ;
13327   return 0;
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331   
13332     $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13334     
13335 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13338 $as_echo "6" >&6; }
13339   
13340 else
13341   
13342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13345 #include <netdb.h>
13346     
13348 main ()
13351       char *cp1, *cp2;
13352       struct hostent *h1;
13353       int i1, i2;
13354       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13355     
13356   ;
13357   return 0;
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361   
13362       $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13364       
13365 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13368 $as_echo "5" >&6; }
13369    
13370 else
13371   
13372       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h.  */
13375 #include <netdb.h>
13376      
13378 main ()
13381        char *cp1;
13382        struct hostent *h1;
13383        struct hostent_data hd;
13384        (void) gethostbyname_r(cp1,h1,&hd);
13385      
13386   ;
13387   return 0;
13389 _ACEOF
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391   
13392        $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13394        
13395 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13398 $as_echo "3" >&6; }
13399      
13400 else
13401   
13402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13403 $as_echo "0" >&6; }
13404      
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407   
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413  CFLAGS=$OLD_CFLAGS
13420 # The cast to long int works around a bug in the HP C Compiler
13421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13423 # This bug is HP SR number 8606223364.
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13425 $as_echo_n "checking size of long... " >&6; }
13426 if ${ac_cv_sizeof_long+:} false; then :
13427   $as_echo_n "(cached) " >&6
13428 else
13429   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13430   
13431 else
13432   if test "$ac_cv_type_long" = yes; then
13433      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 as_fn_error 77 "cannot compute sizeof (long)
13436 See \`config.log' for more details" "$LINENO" 5; }
13437    else
13438      ac_cv_sizeof_long=0
13439    fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13444 $as_echo "$ac_cv_sizeof_long" >&6; }
13448 cat >>confdefs.h <<_ACEOF
13449 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13450 _ACEOF
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13455 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h.  */
13459 #define _GNU_SOURCE
13460 #include <fcntl.h>
13461 #ifdef F_SETFD
13463 #endif
13465 _ACEOF
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467   $EGREP "yes" >/dev/null 2>&1; then :
13468    
13469 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13471           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 $as_echo "yes" >&6; } 
13473 else
13474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13477 rm -f conftest*
13480 needsignal=no
13481 haveselect=no
13482 if test x$bwin32 != xtrue; then
13483     for ac_func in select
13484 do :
13485   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13486 if test "x$ac_cv_func_select" = xyes; then :
13487   cat >>confdefs.h <<_ACEOF
13488 @%:@define HAVE_SELECT 1
13489 _ACEOF
13490  haveselect=yes
13492 done
13494     if test "x$haveselect" = "xyes" ; then
13495         needsignal=yes
13496     fi
13498  if test "x$haveselect" = "xyes"; then
13499   SELECT_BACKEND_TRUE=
13500   SELECT_BACKEND_FALSE='#'
13501 else
13502   SELECT_BACKEND_TRUE='#'
13503   SELECT_BACKEND_FALSE=
13507 havepoll=no
13508 for ac_func in poll
13509 do :
13510   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13511 if test "x$ac_cv_func_poll" = xyes; then :
13512   cat >>confdefs.h <<_ACEOF
13513 @%:@define HAVE_POLL 1
13514 _ACEOF
13515  havepoll=yes
13517 done
13519 if test "x$havepoll" = "xyes" ; then
13520         needsignal=yes
13522  if test "x$havepoll" = "xyes"; then
13523   POLL_BACKEND_TRUE=
13524   POLL_BACKEND_FALSE='#'
13525 else
13526   POLL_BACKEND_TRUE='#'
13527   POLL_BACKEND_FALSE=
13531 havedevpoll=no
13532 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13533         
13534 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13537  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13538   DEVPOLL_BACKEND_TRUE=
13539   DEVPOLL_BACKEND_FALSE='#'
13540 else
13541   DEVPOLL_BACKEND_TRUE='#'
13542   DEVPOLL_BACKEND_FALSE=
13546 havekqueue=no
13547 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13548         for ac_func in kqueue
13549 do :
13550   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13551 if test "x$ac_cv_func_kqueue" = xyes; then :
13552   cat >>confdefs.h <<_ACEOF
13553 @%:@define HAVE_KQUEUE 1
13554 _ACEOF
13555  havekqueue=yes
13557 done
13559         if test "x$havekqueue" = "xyes" ; then
13560                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13561 $as_echo_n "checking for working kqueue... " >&6; }
13562                 if test "$cross_compiling" = yes; then :
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13565 else
13566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568 #include <sys/types.h>
13569 #include <sys/time.h>
13570 #include <sys/event.h>
13571 #include <stdio.h>
13572 #include <unistd.h>
13573 #include <fcntl.h>
13576 main(int argc, char **argv)
13578         int kq;
13579         int n;
13580         int fd[2];
13581         struct kevent ev;
13582         struct timespec ts;
13583         char buf[8000];
13585         if (pipe(fd) == -1)
13586                 exit(1);
13587         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13588                 exit(1);
13590         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13591                 ;
13593         if ((kq = kqueue()) == -1)
13594                 exit(1);
13596         memset(&ev, 0, sizeof(ev));
13597         ev.ident = fd[1];
13598         ev.filter = EVFILT_WRITE;
13599         ev.flags = EV_ADD | EV_ENABLE;
13600         n = kevent(kq, &ev, 1, NULL, 0, NULL);
13601         if (n == -1)
13602                 exit(1);
13604         read(fd[0], buf, sizeof(buf));
13606         ts.tv_sec = 0;
13607         ts.tv_nsec = 0;
13608         n = kevent(kq, NULL, 0, &ev, 1, &ts);
13609         if (n == -1 || n == 0)
13610                 exit(1);
13612         exit(0);
13614 _ACEOF
13615 if ac_fn_c_try_run "$LINENO"; then :
13616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618     
13619 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13621     havekqueue=yes
13622     
13623 else
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13628   conftest.$ac_objext conftest.beam conftest.$ac_ext
13631         fi
13633  if test "x$havekqueue" = "xyes"; then
13634   KQUEUE_BACKEND_TRUE=
13635   KQUEUE_BACKEND_FALSE='#'
13636 else
13637   KQUEUE_BACKEND_TRUE='#'
13638   KQUEUE_BACKEND_FALSE=
13642 haveepollsyscall=no
13643 haveepoll=no
13644 for ac_func in epoll_ctl
13645 do :
13646   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13647 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13648   cat >>confdefs.h <<_ACEOF
13649 @%:@define HAVE_EPOLL_CTL 1
13650 _ACEOF
13651  haveepoll=yes
13653 done
13655 if test "x$haveepoll" = "xyes" ; then
13656         
13657 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13659         needsignal=yes
13661 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13662         if test "x$haveepoll" = "xno" ; then
13663                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13664 $as_echo_n "checking for epoll system call... " >&6; }
13665                 if test "$cross_compiling" = yes; then :
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13668 else
13669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h.  */
13671 #include <stdint.h>
13672 #include <sys/param.h>
13673 #include <sys/types.h>
13674 #include <sys/syscall.h>
13675 #include <sys/epoll.h>
13676 #include <unistd.h>
13679 epoll_create(int size)
13681         return (syscall(__NR_epoll_create, size));
13685 main(int argc, char **argv)
13687         int epfd;
13689         epfd = epoll_create(256);
13690         exit (epfd == -1 ? 1 : 0);
13692 _ACEOF
13693 if ac_fn_c_try_run "$LINENO"; then :
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 $as_echo "yes" >&6; }
13696     
13697 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13699     needsignal=yes
13700     have_epoll=yes
13701     case " $LIB@&t@OBJS " in
13702   *" epoll_sub.$ac_objext "* ) ;;
13703   *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13704  ;;
13705 esac
13707     
13708 else
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13713   conftest.$ac_objext conftest.beam conftest.$ac_ext
13716         fi
13718  if test "x$haveepoll" = "xyes"; then
13719   EPOLL_BACKEND_TRUE=
13720   EPOLL_BACKEND_FALSE='#'
13721 else
13722   EPOLL_BACKEND_TRUE='#'
13723   EPOLL_BACKEND_FALSE=
13727 haveeventports=no
13728 for ac_func in port_create
13729 do :
13730   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13731 if test "x$ac_cv_func_port_create" = xyes; then :
13732   cat >>confdefs.h <<_ACEOF
13733 @%:@define HAVE_PORT_CREATE 1
13734 _ACEOF
13735  haveeventports=yes
13737 done
13739 if test "x$haveeventports" = "xyes" ; then
13740         
13741 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13743         needsignal=yes
13745  if test "x$haveeventports" = "xyes"; then
13746   EVPORT_BACKEND_TRUE=
13747   EVPORT_BACKEND_FALSE='#'
13748 else
13749   EVPORT_BACKEND_TRUE='#'
13750   EVPORT_BACKEND_FALSE=
13754 if test "x$bwin32" = "xtrue"; then
13755         needsignal=yes
13758  if test "x$needsignal" = "xyes"; then
13759   SIGNAL_SUPPORT_TRUE=
13760   SIGNAL_SUPPORT_FALSE='#'
13761 else
13762   SIGNAL_SUPPORT_TRUE='#'
13763   SIGNAL_SUPPORT_FALSE=
13767 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13768 if test "x$ac_cv_type_pid_t" = xyes; then :
13769   
13770 else
13771   
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define pid_t int
13774 _ACEOF
13778 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13779 if test "x$ac_cv_type_size_t" = xyes; then :
13780   
13781 else
13782   
13783 cat >>confdefs.h <<_ACEOF
13784 @%:@define size_t unsigned int
13785 _ACEOF
13789 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13790 if test "x$ac_cv_type_ssize_t" = xyes; then :
13791   
13792 else
13793   
13794 cat >>confdefs.h <<_ACEOF
13795 @%:@define ssize_t int
13796 _ACEOF
13801 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13802 #include <stdint.h>
13803 #elif defined(HAVE_INTTYPES_H)
13804 #include <inttypes.h>
13805 #endif
13806 #ifdef HAVE_SYS_TYPES_H
13807 #include <sys/types.h>
13808 #endif
13810 if test "x$ac_cv_type_uint64_t" = xyes; then :
13811   
13812 cat >>confdefs.h <<_ACEOF
13813 @%:@define HAVE_UINT64_T 1
13814 _ACEOF
13818 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13819 #include <stdint.h>
13820 #elif defined(HAVE_INTTYPES_H)
13821 #include <inttypes.h>
13822 #endif
13823 #ifdef HAVE_SYS_TYPES_H
13824 #include <sys/types.h>
13825 #endif
13827 if test "x$ac_cv_type_uint32_t" = xyes; then :
13828   
13829 cat >>confdefs.h <<_ACEOF
13830 @%:@define HAVE_UINT32_T 1
13831 _ACEOF
13835 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13836 #include <stdint.h>
13837 #elif defined(HAVE_INTTYPES_H)
13838 #include <inttypes.h>
13839 #endif
13840 #ifdef HAVE_SYS_TYPES_H
13841 #include <sys/types.h>
13842 #endif
13844 if test "x$ac_cv_type_uint16_t" = xyes; then :
13845   
13846 cat >>confdefs.h <<_ACEOF
13847 @%:@define HAVE_UINT16_T 1
13848 _ACEOF
13852 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13853 #include <stdint.h>
13854 #elif defined(HAVE_INTTYPES_H)
13855 #include <inttypes.h>
13856 #endif
13857 #ifdef HAVE_SYS_TYPES_H
13858 #include <sys/types.h>
13859 #endif
13861 if test "x$ac_cv_type_uint8_t" = xyes; then :
13862   
13863 cat >>confdefs.h <<_ACEOF
13864 @%:@define HAVE_UINT8_T 1
13865 _ACEOF
13869 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13870 #include <stdint.h>
13871 #elif defined(HAVE_INTTYPES_H)
13872 #include <inttypes.h>
13873 #endif
13874 #ifdef HAVE_SYS_TYPES_H
13875 #include <sys/types.h>
13876 #endif
13878 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13879   
13880 cat >>confdefs.h <<_ACEOF
13881 @%:@define HAVE_UINTPTR_T 1
13882 _ACEOF
13888 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13889 #include <sys/types.h>
13890 #endif
13891 #ifdef HAVE_SYS_SELECT_H
13892 #include <sys/select.h>
13893 #endif
13895 if test "x$ac_cv_type_fd_mask" = xyes; then :
13896   
13897 cat >>confdefs.h <<_ACEOF
13898 @%:@define HAVE_FD_MASK 1
13899 _ACEOF
13905 # The cast to long int works around a bug in the HP C Compiler
13906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13908 # This bug is HP SR number 8606223364.
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13910 $as_echo_n "checking size of long long... " >&6; }
13911 if ${ac_cv_sizeof_long_long+:} false; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13915   
13916 else
13917   if test "$ac_cv_type_long_long" = yes; then
13918      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13920 as_fn_error 77 "cannot compute sizeof (long long)
13921 See \`config.log' for more details" "$LINENO" 5; }
13922    else
13923      ac_cv_sizeof_long_long=0
13924    fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13929 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13933 cat >>confdefs.h <<_ACEOF
13934 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13935 _ACEOF
13938 # The cast to long int works around a bug in the HP C Compiler
13939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13941 # This bug is HP SR number 8606223364.
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13943 $as_echo_n "checking size of long... " >&6; }
13944 if ${ac_cv_sizeof_long+:} false; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13948   
13949 else
13950   if test "$ac_cv_type_long" = yes; then
13951      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13953 as_fn_error 77 "cannot compute sizeof (long)
13954 See \`config.log' for more details" "$LINENO" 5; }
13955    else
13956      ac_cv_sizeof_long=0
13957    fi
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13962 $as_echo "$ac_cv_sizeof_long" >&6; }
13966 cat >>confdefs.h <<_ACEOF
13967 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13968 _ACEOF
13971 # The cast to long int works around a bug in the HP C Compiler
13972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13974 # This bug is HP SR number 8606223364.
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13976 $as_echo_n "checking size of int... " >&6; }
13977 if ${ac_cv_sizeof_int+:} false; then :
13978   $as_echo_n "(cached) " >&6
13979 else
13980   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13981   
13982 else
13983   if test "$ac_cv_type_int" = yes; then
13984      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13986 as_fn_error 77 "cannot compute sizeof (int)
13987 See \`config.log' for more details" "$LINENO" 5; }
13988    else
13989      ac_cv_sizeof_int=0
13990    fi
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13995 $as_echo "$ac_cv_sizeof_int" >&6; }
13999 cat >>confdefs.h <<_ACEOF
14000 @%:@define SIZEOF_INT $ac_cv_sizeof_int
14001 _ACEOF
14004 # The cast to long int works around a bug in the HP C Compiler
14005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14007 # This bug is HP SR number 8606223364.
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14009 $as_echo_n "checking size of short... " >&6; }
14010 if ${ac_cv_sizeof_short+:} false; then :
14011   $as_echo_n "(cached) " >&6
14012 else
14013   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14014   
14015 else
14016   if test "$ac_cv_type_short" = yes; then
14017      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14019 as_fn_error 77 "cannot compute sizeof (short)
14020 See \`config.log' for more details" "$LINENO" 5; }
14021    else
14022      ac_cv_sizeof_short=0
14023    fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14028 $as_echo "$ac_cv_sizeof_short" >&6; }
14032 cat >>confdefs.h <<_ACEOF
14033 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
14034 _ACEOF
14037 # The cast to long int works around a bug in the HP C Compiler
14038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14040 # This bug is HP SR number 8606223364.
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14042 $as_echo_n "checking size of size_t... " >&6; }
14043 if ${ac_cv_sizeof_size_t+:} false; then :
14044   $as_echo_n "(cached) " >&6
14045 else
14046   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14047   
14048 else
14049   if test "$ac_cv_type_size_t" = yes; then
14050      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14052 as_fn_error 77 "cannot compute sizeof (size_t)
14053 See \`config.log' for more details" "$LINENO" 5; }
14054    else
14055      ac_cv_sizeof_size_t=0
14056    fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14061 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14065 cat >>confdefs.h <<_ACEOF
14066 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14067 _ACEOF
14070 # The cast to long int works around a bug in the HP C Compiler
14071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14073 # This bug is HP SR number 8606223364.
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14075 $as_echo_n "checking size of void *... " >&6; }
14076 if ${ac_cv_sizeof_void_p+:} false; then :
14077   $as_echo_n "(cached) " >&6
14078 else
14079   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14080   
14081 else
14082   if test "$ac_cv_type_void_p" = yes; then
14083      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14085 as_fn_error 77 "cannot compute sizeof (void *)
14086 See \`config.log' for more details" "$LINENO" 5; }
14087    else
14088      ac_cv_sizeof_void_p=0
14089    fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14094 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14098 cat >>confdefs.h <<_ACEOF
14099 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14100 _ACEOF
14104 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14105 #include <sys/types.h>
14106 #ifdef HAVE_NETINET_IN_H
14107 #include <netinet/in.h>
14108 #endif
14109 #ifdef HAVE_NETINET_IN6_H
14110 #include <netinet/in6.h>
14111 #endif
14112 #ifdef HAVE_SYS_SOCKET_H
14113 #include <sys/socket.h>
14114 #endif
14115 #ifdef HAVE_NETDB_H
14116 #include <netdb.h>
14117 #endif
14118 #ifdef WIN32
14119 #define WIN32_WINNT 0x400
14120 #define _WIN32_WINNT 0x400
14121 #define WIN32_LEAN_AND_MEAN
14122 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14123 #include <winsock.h>
14124 #else
14125 #include <winsock2.h>
14126 #include <ws2tcpip.h>
14127 #endif
14128 #endif
14131 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14132   
14133 cat >>confdefs.h <<_ACEOF
14134 @%:@define HAVE_STRUCT_IN6_ADDR 1
14135 _ACEOF
14139 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14140 #include <sys/types.h>
14141 #ifdef HAVE_NETINET_IN_H
14142 #include <netinet/in.h>
14143 #endif
14144 #ifdef HAVE_NETINET_IN6_H
14145 #include <netinet/in6.h>
14146 #endif
14147 #ifdef HAVE_SYS_SOCKET_H
14148 #include <sys/socket.h>
14149 #endif
14150 #ifdef HAVE_NETDB_H
14151 #include <netdb.h>
14152 #endif
14153 #ifdef WIN32
14154 #define WIN32_WINNT 0x400
14155 #define _WIN32_WINNT 0x400
14156 #define WIN32_LEAN_AND_MEAN
14157 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14158 #include <winsock.h>
14159 #else
14160 #include <winsock2.h>
14161 #include <ws2tcpip.h>
14162 #endif
14163 #endif
14166 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14167   
14168 cat >>confdefs.h <<_ACEOF
14169 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
14170 _ACEOF
14174 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14175 #include <sys/types.h>
14176 #ifdef HAVE_NETINET_IN_H
14177 #include <netinet/in.h>
14178 #endif
14179 #ifdef HAVE_NETINET_IN6_H
14180 #include <netinet/in6.h>
14181 #endif
14182 #ifdef HAVE_SYS_SOCKET_H
14183 #include <sys/socket.h>
14184 #endif
14185 #ifdef HAVE_NETDB_H
14186 #include <netdb.h>
14187 #endif
14188 #ifdef WIN32
14189 #define WIN32_WINNT 0x400
14190 #define _WIN32_WINNT 0x400
14191 #define WIN32_LEAN_AND_MEAN
14192 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14193 #include <winsock.h>
14194 #else
14195 #include <winsock2.h>
14196 #include <ws2tcpip.h>
14197 #endif
14198 #endif
14201 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14202   
14203 cat >>confdefs.h <<_ACEOF
14204 @%:@define HAVE_SA_FAMILY_T 1
14205 _ACEOF
14209 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14210 #include <sys/types.h>
14211 #ifdef HAVE_NETINET_IN_H
14212 #include <netinet/in.h>
14213 #endif
14214 #ifdef HAVE_NETINET_IN6_H
14215 #include <netinet/in6.h>
14216 #endif
14217 #ifdef HAVE_SYS_SOCKET_H
14218 #include <sys/socket.h>
14219 #endif
14220 #ifdef HAVE_NETDB_H
14221 #include <netdb.h>
14222 #endif
14223 #ifdef WIN32
14224 #define WIN32_WINNT 0x400
14225 #define _WIN32_WINNT 0x400
14226 #define WIN32_LEAN_AND_MEAN
14227 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14228 #include <winsock.h>
14229 #else
14230 #include <winsock2.h>
14231 #include <ws2tcpip.h>
14232 #endif
14233 #endif
14236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14237   
14238 cat >>confdefs.h <<_ACEOF
14239 @%:@define HAVE_STRUCT_ADDRINFO 1
14240 _ACEOF
14244 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14245 #include <sys/types.h>
14246 #ifdef HAVE_NETINET_IN_H
14247 #include <netinet/in.h>
14248 #endif
14249 #ifdef HAVE_NETINET_IN6_H
14250 #include <netinet/in6.h>
14251 #endif
14252 #ifdef HAVE_SYS_SOCKET_H
14253 #include <sys/socket.h>
14254 #endif
14255 #ifdef HAVE_NETDB_H
14256 #include <netdb.h>
14257 #endif
14258 #ifdef WIN32
14259 #define WIN32_WINNT 0x400
14260 #define _WIN32_WINNT 0x400
14261 #define WIN32_LEAN_AND_MEAN
14262 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14263 #include <winsock.h>
14264 #else
14265 #include <winsock2.h>
14266 #include <ws2tcpip.h>
14267 #endif
14268 #endif
14271 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14272   
14273 cat >>confdefs.h <<_ACEOF
14274 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14275 _ACEOF
14280 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14281 #ifdef HAVE_NETINET_IN_H
14282 #include <netinet/in.h>
14283 #endif
14284 #ifdef HAVE_NETINET_IN6_H
14285 #include <netinet/in6.h>
14286 #endif
14287 #ifdef HAVE_SYS_SOCKET_H
14288 #include <sys/socket.h>
14289 #endif
14290 #ifdef WIN32
14291 #define WIN32_WINNT 0x400
14292 #define _WIN32_WINNT 0x400
14293 #define WIN32_LEAN_AND_MEAN
14294 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14295 #include <winsock.h>
14296 #else
14297 #include <winsock2.h>
14298 #include <ws2tcpip.h>
14299 #endif
14300 #endif
14303 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14304   
14305 cat >>confdefs.h <<_ACEOF
14306 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14307 _ACEOF
14311 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14312 #ifdef HAVE_NETINET_IN_H
14313 #include <netinet/in.h>
14314 #endif
14315 #ifdef HAVE_NETINET_IN6_H
14316 #include <netinet/in6.h>
14317 #endif
14318 #ifdef HAVE_SYS_SOCKET_H
14319 #include <sys/socket.h>
14320 #endif
14321 #ifdef WIN32
14322 #define WIN32_WINNT 0x400
14323 #define _WIN32_WINNT 0x400
14324 #define WIN32_LEAN_AND_MEAN
14325 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14326 #include <winsock.h>
14327 #else
14328 #include <winsock2.h>
14329 #include <ws2tcpip.h>
14330 #endif
14331 #endif
14334 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14335   
14336 cat >>confdefs.h <<_ACEOF
14337 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14338 _ACEOF
14342 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14343 #ifdef HAVE_NETINET_IN_H
14344 #include <netinet/in.h>
14345 #endif
14346 #ifdef HAVE_NETINET_IN6_H
14347 #include <netinet/in6.h>
14348 #endif
14349 #ifdef HAVE_SYS_SOCKET_H
14350 #include <sys/socket.h>
14351 #endif
14352 #ifdef WIN32
14353 #define WIN32_WINNT 0x400
14354 #define _WIN32_WINNT 0x400
14355 #define WIN32_LEAN_AND_MEAN
14356 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14357 #include <winsock.h>
14358 #else
14359 #include <winsock2.h>
14360 #include <ws2tcpip.h>
14361 #endif
14362 #endif
14365 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14366   
14367 cat >>confdefs.h <<_ACEOF
14368 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14369 _ACEOF
14373 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14374 #ifdef HAVE_NETINET_IN_H
14375 #include <netinet/in.h>
14376 #endif
14377 #ifdef HAVE_NETINET_IN6_H
14378 #include <netinet/in6.h>
14379 #endif
14380 #ifdef HAVE_SYS_SOCKET_H
14381 #include <sys/socket.h>
14382 #endif
14383 #ifdef WIN32
14384 #define WIN32_WINNT 0x400
14385 #define _WIN32_WINNT 0x400
14386 #define WIN32_LEAN_AND_MEAN
14387 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14388 #include <winsock.h>
14389 #else
14390 #include <winsock2.h>
14391 #include <ws2tcpip.h>
14392 #endif
14393 #endif
14396 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14397   
14398 cat >>confdefs.h <<_ACEOF
14399 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14400 _ACEOF
14404 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14405 #ifdef HAVE_NETINET_IN_H
14406 #include <netinet/in.h>
14407 #endif
14408 #ifdef HAVE_NETINET_IN6_H
14409 #include <netinet/in6.h>
14410 #endif
14411 #ifdef HAVE_SYS_SOCKET_H
14412 #include <sys/socket.h>
14413 #endif
14414 #ifdef WIN32
14415 #define WIN32_WINNT 0x400
14416 #define _WIN32_WINNT 0x400
14417 #define WIN32_LEAN_AND_MEAN
14418 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14419 #include <winsock.h>
14420 #else
14421 #include <winsock2.h>
14422 #include <ws2tcpip.h>
14423 #endif
14424 #endif
14427 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14428   
14429 cat >>confdefs.h <<_ACEOF
14430 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14431 _ACEOF
14435 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14436 #ifdef HAVE_NETINET_IN_H
14437 #include <netinet/in.h>
14438 #endif
14439 #ifdef HAVE_NETINET_IN6_H
14440 #include <netinet/in6.h>
14441 #endif
14442 #ifdef HAVE_SYS_SOCKET_H
14443 #include <sys/socket.h>
14444 #endif
14445 #ifdef WIN32
14446 #define WIN32_WINNT 0x400
14447 #define _WIN32_WINNT 0x400
14448 #define WIN32_LEAN_AND_MEAN
14449 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14450 #include <winsock.h>
14451 #else
14452 #include <winsock2.h>
14453 #include <ws2tcpip.h>
14454 #endif
14455 #endif
14458 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14459   
14460 cat >>confdefs.h <<_ACEOF
14461 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14462 _ACEOF
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14469 $as_echo_n "checking for socklen_t... " >&6; }
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h.  */
14473  #include <sys/types.h>
14474  #include <sys/socket.h>
14476 main ()
14478 socklen_t x;
14479   ;
14480   return 0;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14486 else
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14489   
14490 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14497 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h.  */
14502 main ()
14504  const char *cp = __func__; 
14505   ;
14506   return 0;
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511 $as_echo "yes" >&6; }
14512 else
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14516 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14521 main ()
14523  const char *cp = __FUNCTION__; 
14524   ;
14525   return 0;
14527 _ACEOF
14528 if ac_fn_c_try_compile "$LINENO"; then :
14529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14530 $as_echo "yes" >&6; }
14531    
14532 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14534 else
14535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536 $as_echo "no" >&6; }
14537    
14538 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 # check if we can compile with pthreads
14547 have_pthreads=no
14548 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14549   
14552 ac_ext=c
14553 ac_cpp='$CPP $CPPFLAGS'
14554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14558 acx_pthread_ok=no
14560 # We used to check for pthread.h first, but this fails if pthread.h
14561 # requires special compiler flags (e.g. on True64 or Sequent).
14562 # It gets checked for in the link test anyway.
14564 # First of all, check if the user has set any of the PTHREAD_LIBS,
14565 # etcetera environment variables, and if threads linking works using
14566 # them:
14567 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14568         save_CFLAGS="$CFLAGS"
14569         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14570         save_LIBS="$LIBS"
14571         LIBS="$PTHREAD_LIBS $LIBS"
14572         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14573 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14574         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h.  */
14577 /* Override any GCC internal prototype to avoid an error.
14578    Use char because int might match the return type of a GCC
14579    builtin and then its argument prototype would still apply.  */
14580 #ifdef __cplusplus
14581 extern "C"
14582 #endif
14583 char pthread_join ();
14585 main ()
14587 return pthread_join ();
14588   ;
14589   return 0;
14591 _ACEOF
14592 if ac_fn_c_try_link "$LINENO"; then :
14593   acx_pthread_ok=yes
14595 rm -f core conftest.err conftest.$ac_objext \
14596     conftest$ac_exeext conftest.$ac_ext
14597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14598 $as_echo "$acx_pthread_ok" >&6; }
14599         if test x"$acx_pthread_ok" = xno; then
14600                 PTHREAD_LIBS=""
14601                 PTHREAD_CFLAGS=""
14602         fi
14603         LIBS="$save_LIBS"
14604         CFLAGS="$save_CFLAGS"
14607 # We must check for the threads library under a number of different
14608 # names; the ordering is very important because some systems
14609 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14610 # libraries is broken (non-POSIX).
14612 # Create a list of thread flags to try.  Items starting with a "-" are
14613 # C compiler flags, and other items are library names, except for "none"
14614 # which indicates that we try without any flags at all, and "pthread-config"
14615 # which is a program returning the flags for the Pth emulation library.
14617 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14619 # The ordering *is* (sometimes) important.  Some notes on the
14620 # individual items follow:
14622 # pthreads: AIX (must check this before -lpthread)
14623 # none: in case threads are in libc; should be tried before -Kthread and
14624 #       other compiler flags to prevent continual compiler warnings
14625 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14626 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14627 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14628 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14629 # -pthreads: Solaris/gcc
14630 # -mthreads: Mingw32/gcc, Lynx/gcc
14631 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14632 #      doesn't hurt to check since this sometimes defines pthreads too;
14633 #      also defines -D_REENTRANT)
14634 #      ... -mt is also the pthreads flag for HP/aCC
14635 # pthread: Linux, etcetera
14636 # --thread-safe: KAI C++
14637 # pthread-config: use pthread-config program (for GNU Pth library)
14639 case "${host_cpu}-${host_os}" in
14640         *solaris*)
14642         # On Solaris (at least, for some versions), libc contains stubbed
14643         # (non-functional) versions of the pthreads routines, so link-based
14644         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14645         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14646         # a function called by this macro, so we could check for that, but
14647         # who knows whether they'll stub that too in a future libc.)  So,
14648         # we'll just look for -pthreads and -lpthread first:
14650         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14651         ;;
14652 esac
14654 if test x"$acx_pthread_ok" = xno; then
14655 for flag in $acx_pthread_flags; do
14657         case $flag in
14658                 none)
14659                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14660 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14661                 ;;
14663                 -*)
14664                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14665 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14666                 PTHREAD_CFLAGS="$flag"
14667                 ;;
14669                 pthread-config)
14670                 # Extract the first word of "pthread-config", so it can be a program name with args.
14671 set dummy pthread-config; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14675   $as_echo_n "(cached) " >&6
14676 else
14677   if test -n "$acx_pthread_config"; then
14678   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14679 else
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14683   IFS=$as_save_IFS
14684   test -z "$as_dir" && as_dir=.
14685     for ac_exec_ext in '' $ac_executable_extensions; do
14686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687     ac_cv_prog_acx_pthread_config="yes"
14688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14689     break 2
14690   fi
14691 done
14692   done
14693 IFS=$as_save_IFS
14695   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14698 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14699 if test -n "$acx_pthread_config"; then
14700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14701 $as_echo "$acx_pthread_config" >&6; }
14702 else
14703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14708                 if test x"$acx_pthread_config" = xno; then continue; fi
14709                 PTHREAD_CFLAGS="`pthread-config --cflags`"
14710                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14711                 ;;
14713                 *)
14714                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14715 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14716                 PTHREAD_LIBS="-l$flag"
14717                 ;;
14718         esac
14720         save_LIBS="$LIBS"
14721         save_CFLAGS="$CFLAGS"
14722         LIBS="$PTHREAD_LIBS $LIBS"
14723         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14725         # Check for various functions.  We must include pthread.h,
14726         # since some functions may be macros.  (On the Sequent, we
14727         # need a special flag -Kthread to make this header compile.)
14728         # We check for pthread_join because it is in -lpthread on IRIX
14729         # while pthread_create is in libc.  We check for pthread_attr_init
14730         # due to DEC craziness with -lpthreads.  We check for
14731         # pthread_cleanup_push because it is one of the few pthread
14732         # functions on Solaris that doesn't have a non-functional libc stub.
14733         # We try pthread_create on general principles.
14734         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h.  */
14736 #include <pthread.h>
14738 main ()
14740 pthread_t th; pthread_join(th, 0);
14741                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
14742                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
14743   ;
14744   return 0;
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"; then :
14748   acx_pthread_ok=yes
14750 rm -f core conftest.err conftest.$ac_objext \
14751     conftest$ac_exeext conftest.$ac_ext
14753         LIBS="$save_LIBS"
14754         CFLAGS="$save_CFLAGS"
14756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14757 $as_echo "$acx_pthread_ok" >&6; }
14758         if test "x$acx_pthread_ok" = xyes; then
14759                 break;
14760         fi
14762         PTHREAD_LIBS=""
14763         PTHREAD_CFLAGS=""
14764 done
14767 # Various other checks:
14768 if test "x$acx_pthread_ok" = xyes; then
14769         save_LIBS="$LIBS"
14770         LIBS="$PTHREAD_LIBS $LIBS"
14771         save_CFLAGS="$CFLAGS"
14772         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14774         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14776 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14777         attr_name=unknown
14778         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14779             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781 #include <pthread.h>
14783 main ()
14785 int attr=$attr; return attr;
14786   ;
14787   return 0;
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"; then :
14791   attr_name=$attr; break
14793 rm -f core conftest.err conftest.$ac_objext \
14794     conftest$ac_exeext conftest.$ac_ext
14795         done
14796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14797 $as_echo "$attr_name" >&6; }
14798         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14799             
14800 cat >>confdefs.h <<_ACEOF
14801 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14802 _ACEOF
14804         fi
14806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14807 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14808         flag=no
14809         case "${host_cpu}-${host_os}" in
14810             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14811             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14812         esac
14813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14814 $as_echo "${flag}" >&6; }
14815         if test "x$flag" != xno; then
14816             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14817         fi
14819         LIBS="$save_LIBS"
14820         CFLAGS="$save_CFLAGS"
14822         # More AIX lossage: must compile with xlc_r or cc_r
14823         if test x"$GCC" != xyes; then
14824           for ac_prog in xlc_r cc_r
14826   # Extract the first word of "$ac_prog", so it can be a program name with args.
14827 set dummy $ac_prog; ac_word=$2
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14829 $as_echo_n "checking for $ac_word... " >&6; }
14830 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14831   $as_echo_n "(cached) " >&6
14832 else
14833   if test -n "$PTHREAD_CC"; then
14834   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14835 else
14836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14837 for as_dir in $PATH
14839   IFS=$as_save_IFS
14840   test -z "$as_dir" && as_dir=.
14841     for ac_exec_ext in '' $ac_executable_extensions; do
14842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14843     ac_cv_prog_PTHREAD_CC="$ac_prog"
14844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14845     break 2
14846   fi
14847 done
14848   done
14849 IFS=$as_save_IFS
14853 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14854 if test -n "$PTHREAD_CC"; then
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14856 $as_echo "$PTHREAD_CC" >&6; }
14857 else
14858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14859 $as_echo "no" >&6; }
14863   test -n "$PTHREAD_CC" && break
14864 done
14865 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14867         else
14868           PTHREAD_CC=$CC
14869         fi
14870 else
14871         PTHREAD_CC="$CC"
14878 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14879 if test x"$acx_pthread_ok" = xyes; then
14880         
14881         
14882 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14884         have_pthreads=yes
14885         :
14886 else
14887         acx_pthread_ok=no
14888         
14890 ac_ext=c
14891 ac_cpp='$CPP $CPPFLAGS'
14892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14897   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14898   # The cast to long int works around a bug in the HP C Compiler
14899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14901 # This bug is HP SR number 8606223364.
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14903 $as_echo_n "checking size of pthread_t... " >&6; }
14904 if ${ac_cv_sizeof_pthread_t+:} false; then :
14905   $as_echo_n "(cached) " >&6
14906 else
14907   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14908       #include <pthread.h> 
14909   
14910 "; then :
14911   
14912 else
14913   if test "$ac_cv_type_pthread_t" = yes; then
14914      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14916 as_fn_error 77 "cannot compute sizeof (pthread_t)
14917 See \`config.log' for more details" "$LINENO" 5; }
14918    else
14919      ac_cv_sizeof_pthread_t=0
14920    fi
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14925 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14929 cat >>confdefs.h <<_ACEOF
14930 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14931 _ACEOF
14935  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14936   PTHREADS_TRUE=
14937   PTHREADS_FALSE='#'
14938 else
14939   PTHREADS_TRUE='#'
14940   PTHREADS_FALSE=
14944 # check if we should compile locking into the library
14945 if test x$enable_thread_support = xno; then
14946    
14947 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14951 # check if we should hard-code the mm functions.
14952 if test x$enable_malloc_replacement = xno; then
14953   
14954 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14958 # check if we should hard-code debugging out
14959 if test x$enable_debug_mode = xno; then
14960   
14961 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14965 # check if we have and should use openssl
14966  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14967   OPENSSL_TRUE=
14968   OPENSSL_FALSE='#'
14969 else
14970   OPENSSL_TRUE='#'
14971   OPENSSL_FALSE=
14975 # Add some more warnings which we use in development but not in the
14976 # released versions.  (Some relevant gcc versions can't handle these.)
14977 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h.  */
14983 main ()
14986 #if !defined(__GNUC__) || (__GNUC__ < 4)
14987 #error
14988 #endif
14989   ;
14990   return 0;
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994   have_gcc4=yes
14995 else
14996   have_gcc4=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h.  */
15004 main ()
15007 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15008 #error
15009 #endif
15010   ;
15011   return 0;
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015   have_gcc42=yes
15016 else
15017   have_gcc42=no
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15025 main ()
15028 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15029 #error
15030 #endif
15031   ;
15032   return 0;
15034 _ACEOF
15035 if ac_fn_c_try_compile "$LINENO"; then :
15036   have_gcc45=yes
15037 else
15038   have_gcc45=no
15040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15046 main ()
15049 #if !defined(__clang__)
15050 #error
15051 #endif
15052   ;
15053   return 0;
15055 _ACEOF
15056 if ac_fn_c_try_compile "$LINENO"; then :
15057   have_clang=yes
15058 else
15059   have_clang=no
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063   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"
15064   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15066   if test x$have_gcc4 = xyes ; then
15067     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15068     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15069     #CFLAGS="$CFLAGS -Wold-style-definition"
15070   fi
15072   if test x$have_gcc42 = xyes ; then
15073     # These warnings break gcc 4.0.2 and work on gcc 4.2
15074     CFLAGS="$CFLAGS -Waddress"
15075   fi
15077   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15078     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15079     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15080   fi
15082   if test x$have_gcc45 = xyes ; then
15083     # These warnings work on gcc 4.5
15084     CFLAGS="$CFLAGS -Wlogical-op"
15085   fi
15087   if test x$have_clang = xyes; then
15088     # Disable the unused-function warnings, because these trigger
15089     # for minheap-internal.h related code.
15090     CFLAGS="$CFLAGS -Wno-unused-function"
15092     # clang on macosx emits warnigns for each directory specified which
15093     # isn't "used" generating a lot of build noise (typically 3 warnings
15094     # per file
15095     case "$host_os" in
15096         darwin*)
15097             CFLAGS="$CFLAGS -Qunused-arguments"
15098         ;;
15099     esac
15100   fi
15102 ##This will break the world on some 64-bit architectures
15103 # CFLAGS="$CFLAGS -Winline"
15107 LIBEVENT_GC_SECTIONS=
15108 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15110 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15111 if ${libevent_cv_gc_sections_runs+:} false; then :
15112   $as_echo_n "(cached) " >&6
15113 else
15114   
15115                                                                                             origCFLAGS="$CFLAGS"
15116             CFLAGS="$CFLAGS -Wl,--gc-sections"
15117             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h.  */
15120                         #include <stdlib.h>
15121                         #include <stdio.h>
15122                     
15124 main ()
15127                         FILE *  fpC;
15128                         char    buf[32];
15129                         size_t  cch;
15130                         int     read_success_once;
15132                         fpC = fopen("conftest.c", "r");
15133                         if (NULL == fpC)
15134                                 exit(1);
15135                         do {
15136                                 cch = fread(buf, sizeof(buf), 1, fpC);
15137                                 read_success_once |= (0 != cch);
15138                         } while (0 != cch);
15139                         if (!read_success_once)
15140                                 exit(2);
15141                         if (!feof(fpC))
15142                                 exit(3);
15143                         if (0 != fclose(fpC))
15144                                 exit(4);
15146                         exit(EXIT_SUCCESS);
15147                     
15148                 
15149   ;
15150   return 0;
15152 _ACEOF
15153 if ac_fn_c_try_link "$LINENO"; then :
15154   
15155                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15156                         libevent_cv_gc_sections_runs=no
15157                     else
15158                         libevent_cv_gc_sections_runs=no
15159                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15160                     fi
15161                 
15162 else
15163   libevent_cv_gc_sections_runs=no
15164             
15166 rm -f core conftest.err conftest.$ac_objext \
15167     conftest$ac_exeext conftest.$ac_ext
15168             CFLAGS="$origCFLAGS"
15169             { origCFLAGS=; unset origCFLAGS;}
15170         
15171     
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15174 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15175     case "$libevent_cv_gc_sections_runs" in
15176      yes)
15177         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15178         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15179         ;;
15180     esac
15184  if test "$enable_libevent_install" = "yes"; then
15185   INSTALL_LIBEVENT_TRUE=
15186   INSTALL_LIBEVENT_FALSE='#'
15187 else
15188   INSTALL_LIBEVENT_TRUE='#'
15189   INSTALL_LIBEVENT_FALSE=
15193 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15195 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15197 cat >confcache <<\_ACEOF
15198 # This file is a shell script that caches the results of configure
15199 # tests run on this system so they can be shared between configure
15200 # scripts and configure runs, see configure's option --config-cache.
15201 # It is not useful on other systems.  If it contains results you don't
15202 # want to keep, you may remove or edit it.
15204 # config.status only pays attention to the cache file if you give it
15205 # the --recheck option to rerun configure.
15207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15209 # following values.
15211 _ACEOF
15213 # The following way of writing the cache mishandles newlines in values,
15214 # but we know of no workaround that is simple, portable, and efficient.
15215 # So, we kill variables containing newlines.
15216 # Ultrix sh set writes to stderr and can't be redirected directly,
15217 # and sets the high bit in the cache file unless we assign to the vars.
15219   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15220     eval ac_val=\$$ac_var
15221     case $ac_val in #(
15222     *${as_nl}*)
15223       case $ac_var in #(
15224       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15226       esac
15227       case $ac_var in #(
15228       _ | IFS | as_nl) ;; #(
15229       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15230       *) { eval $ac_var=; unset $ac_var;} ;;
15231       esac ;;
15232     esac
15233   done
15235   (set) 2>&1 |
15236     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15237     *${as_nl}ac_space=\ *)
15238       # `set' does not quote correctly, so add quotes: double-quote
15239       # substitution turns \\\\ into \\, and sed turns \\ into \.
15240       sed -n \
15241         "s/'/'\\\\''/g;
15242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15243       ;; #(
15244     *)
15245       # `set' quotes correctly as required by POSIX, so do not add quotes.
15246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15247       ;;
15248     esac |
15249     sort
15250 ) |
15251   sed '
15252      /^ac_cv_env_/b end
15253      t clear
15254      :clear
15255      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15256      t end
15257      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15258      :end' >>confcache
15259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15260   if test -w "$cache_file"; then
15261     if test "x$cache_file" != "x/dev/null"; then
15262       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15263 $as_echo "$as_me: updating cache $cache_file" >&6;}
15264       if test ! -f "$cache_file" || test -h "$cache_file"; then
15265         cat confcache >"$cache_file"
15266       else
15267         case $cache_file in #(
15268         */* | ?:*)
15269           mv -f confcache "$cache_file"$$ &&
15270           mv -f "$cache_file"$$ "$cache_file" ;; #(
15271         *)
15272           mv -f confcache "$cache_file" ;;
15273         esac
15274       fi
15275     fi
15276   else
15277     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15278 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15279   fi
15281 rm -f confcache
15283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15284 # Let make expand exec_prefix.
15285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15287 DEFS=-DHAVE_CONFIG_H
15289 ac_libobjs=
15290 ac_ltlibobjs=
15292 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15293   # 1. Remove the extension, and $U if already installed.
15294   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15295   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15296   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15297   #    will be set to the directory where LIBOBJS objects are built.
15298   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15299   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15300 done
15301 LIB@&t@OBJS=$ac_libobjs
15303 LTLIBOBJS=$ac_ltlibobjs
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15307 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15308    if test -n "$am_sleep_pid"; then
15309      # Hide warnings about reused PIDs.
15310      wait $am_sleep_pid 2>/dev/null
15311    fi
15312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15313 $as_echo "done" >&6; }
15314  if test -n "$EXEEXT"; then
15315   am__EXEEXT_TRUE=
15316   am__EXEEXT_FALSE='#'
15317 else
15318   am__EXEEXT_TRUE='#'
15319   am__EXEEXT_FALSE=
15322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15323   as_fn_error $? "conditional \"AMDEP\" was never defined.
15324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15327   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15331   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15335   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15339   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15343   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15347   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15351   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15355   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15359   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15363   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15367   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15371   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15375   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15379   as_fn_error $? "conditional \"PTHREADS\" was never defined.
15380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15383   as_fn_error $? "conditional \"OPENSSL\" was never defined.
15384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15387   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 : "${CONFIG_STATUS=./config.status}"
15392 ac_write_fail=0
15393 ac_clean_files_save=$ac_clean_files
15394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15396 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15397 as_write_fail=0
15398 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15399 #! $SHELL
15400 # Generated by $as_me.
15401 # Run this file to recreate the current configuration.
15402 # Compiler output produced by configure, useful for debugging
15403 # configure, is in config.log if it exists.
15405 debug=false
15406 ac_cs_recheck=false
15407 ac_cs_silent=false
15409 SHELL=\${CONFIG_SHELL-$SHELL}
15410 export SHELL
15411 _ASEOF
15412 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15413 ## -------------------- ##
15414 ## M4sh Initialization. ##
15415 ## -------------------- ##
15417 # Be more Bourne compatible
15418 DUALCASE=1; export DUALCASE # for MKS sh
15419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15420   emulate sh
15421   NULLCMD=:
15422   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15423   # is contrary to our usage.  Disable this feature.
15424   alias -g '${1+"$@"}'='"$@"'
15425   setopt NO_GLOB_SUBST
15426 else
15427   case `(set -o) 2>/dev/null` in @%:@(
15428   *posix*) :
15429     set -o posix ;; @%:@(
15430   *) :
15431      ;;
15432 esac
15436 as_nl='
15438 export as_nl
15439 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15440 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15443 # Prefer a ksh shell builtin over an external printf program on Solaris,
15444 # but without wasting forks for bash or zsh.
15445 if test -z "$BASH_VERSION$ZSH_VERSION" \
15446     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15447   as_echo='print -r --'
15448   as_echo_n='print -rn --'
15449 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15450   as_echo='printf %s\n'
15451   as_echo_n='printf %s'
15452 else
15453   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15454     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15455     as_echo_n='/usr/ucb/echo -n'
15456   else
15457     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15458     as_echo_n_body='eval
15459       arg=$1;
15460       case $arg in @%:@(
15461       *"$as_nl"*)
15462         expr "X$arg" : "X\\(.*\\)$as_nl";
15463         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15464       esac;
15465       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15466     '
15467     export as_echo_n_body
15468     as_echo_n='sh -c $as_echo_n_body as_echo'
15469   fi
15470   export as_echo_body
15471   as_echo='sh -c $as_echo_body as_echo'
15474 # The user is always right.
15475 if test "${PATH_SEPARATOR+set}" != set; then
15476   PATH_SEPARATOR=:
15477   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15478     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15479       PATH_SEPARATOR=';'
15480   }
15484 # IFS
15485 # We need space, tab and new line, in precisely that order.  Quoting is
15486 # there to prevent editors from complaining about space-tab.
15487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15488 # splitting by setting IFS to empty value.)
15489 IFS=" ""        $as_nl"
15491 # Find who we are.  Look in the path if we contain no directory separator.
15492 as_myself=
15493 case $0 in @%:@((
15494   *[\\/]* ) as_myself=$0 ;;
15495   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15498   IFS=$as_save_IFS
15499   test -z "$as_dir" && as_dir=.
15500     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15501   done
15502 IFS=$as_save_IFS
15504      ;;
15505 esac
15506 # We did not find ourselves, most probably we were run as `sh COMMAND'
15507 # in which case we are not to be found in the path.
15508 if test "x$as_myself" = x; then
15509   as_myself=$0
15511 if test ! -f "$as_myself"; then
15512   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15513   exit 1
15516 # Unset variables that we do not need and which cause bugs (e.g. in
15517 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15518 # suppresses any "Segmentation fault" message there.  '((' could
15519 # trigger a bug in pdksh 5.2.14.
15520 for as_var in BASH_ENV ENV MAIL MAILPATH
15521 do eval test x\${$as_var+set} = xset \
15522   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15523 done
15524 PS1='$ '
15525 PS2='> '
15526 PS4='+ '
15528 # NLS nuisances.
15529 LC_ALL=C
15530 export LC_ALL
15531 LANGUAGE=C
15532 export LANGUAGE
15534 # CDPATH.
15535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15538 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15539 @%:@ ----------------------------------------
15540 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15541 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15542 @%:@ script with STATUS, using 1 if that was 0.
15543 as_fn_error ()
15545   as_status=$1; test $as_status -eq 0 && as_status=1
15546   if test "$4"; then
15547     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15548     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15549   fi
15550   $as_echo "$as_me: error: $2" >&2
15551   as_fn_exit $as_status
15552 } @%:@ as_fn_error
15555 @%:@ as_fn_set_status STATUS
15556 @%:@ -----------------------
15557 @%:@ Set @S|@? to STATUS, without forking.
15558 as_fn_set_status ()
15560   return $1
15561 } @%:@ as_fn_set_status
15563 @%:@ as_fn_exit STATUS
15564 @%:@ -----------------
15565 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15566 as_fn_exit ()
15568   set +e
15569   as_fn_set_status $1
15570   exit $1
15571 } @%:@ as_fn_exit
15573 @%:@ as_fn_unset VAR
15574 @%:@ ---------------
15575 @%:@ Portably unset VAR.
15576 as_fn_unset ()
15578   { eval $1=; unset $1;}
15580 as_unset=as_fn_unset
15581 @%:@ as_fn_append VAR VALUE
15582 @%:@ ----------------------
15583 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15584 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15585 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15586 @%:@ implementations.
15587 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15588   eval 'as_fn_append ()
15589   {
15590     eval $1+=\$2
15591   }'
15592 else
15593   as_fn_append ()
15594   {
15595     eval $1=\$$1\$2
15596   }
15597 fi # as_fn_append
15599 @%:@ as_fn_arith ARG...
15600 @%:@ ------------------
15601 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15602 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15603 @%:@ must be portable across @S|@(()) and expr.
15604 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15605   eval 'as_fn_arith ()
15606   {
15607     as_val=$(( $* ))
15608   }'
15609 else
15610   as_fn_arith ()
15611   {
15612     as_val=`expr "$@" || test $? -eq 1`
15613   }
15614 fi # as_fn_arith
15617 if expr a : '\(a\)' >/dev/null 2>&1 &&
15618    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15619   as_expr=expr
15620 else
15621   as_expr=false
15624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15625   as_basename=basename
15626 else
15627   as_basename=false
15630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15631   as_dirname=dirname
15632 else
15633   as_dirname=false
15636 as_me=`$as_basename -- "$0" ||
15637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15638          X"$0" : 'X\(//\)$' \| \
15639          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15640 $as_echo X/"$0" |
15641     sed '/^.*\/\([^/][^/]*\)\/*$/{
15642             s//\1/
15643             q
15644           }
15645           /^X\/\(\/\/\)$/{
15646             s//\1/
15647             q
15648           }
15649           /^X\/\(\/\).*/{
15650             s//\1/
15651             q
15652           }
15653           s/.*/./; q'`
15655 # Avoid depending upon Character Ranges.
15656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15659 as_cr_digits='0123456789'
15660 as_cr_alnum=$as_cr_Letters$as_cr_digits
15662 ECHO_C= ECHO_N= ECHO_T=
15663 case `echo -n x` in @%:@(((((
15664 -n*)
15665   case `echo 'xy\c'` in
15666   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15667   xy)  ECHO_C='\c';;
15668   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15669        ECHO_T=' ';;
15670   esac;;
15672   ECHO_N='-n';;
15673 esac
15675 rm -f conf$$ conf$$.exe conf$$.file
15676 if test -d conf$$.dir; then
15677   rm -f conf$$.dir/conf$$.file
15678 else
15679   rm -f conf$$.dir
15680   mkdir conf$$.dir 2>/dev/null
15682 if (echo >conf$$.file) 2>/dev/null; then
15683   if ln -s conf$$.file conf$$ 2>/dev/null; then
15684     as_ln_s='ln -s'
15685     # ... but there are two gotchas:
15686     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15687     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15688     # In both cases, we have to default to `cp -pR'.
15689     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15690       as_ln_s='cp -pR'
15691   elif ln conf$$.file conf$$ 2>/dev/null; then
15692     as_ln_s=ln
15693   else
15694     as_ln_s='cp -pR'
15695   fi
15696 else
15697   as_ln_s='cp -pR'
15699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15700 rmdir conf$$.dir 2>/dev/null
15703 @%:@ as_fn_mkdir_p
15704 @%:@ -------------
15705 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15706 as_fn_mkdir_p ()
15709   case $as_dir in #(
15710   -*) as_dir=./$as_dir;;
15711   esac
15712   test -d "$as_dir" || eval $as_mkdir_p || {
15713     as_dirs=
15714     while :; do
15715       case $as_dir in #(
15716       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15717       *) as_qdir=$as_dir;;
15718       esac
15719       as_dirs="'$as_qdir' $as_dirs"
15720       as_dir=`$as_dirname -- "$as_dir" ||
15721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15722          X"$as_dir" : 'X\(//\)[^/]' \| \
15723          X"$as_dir" : 'X\(//\)$' \| \
15724          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15725 $as_echo X"$as_dir" |
15726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15727             s//\1/
15728             q
15729           }
15730           /^X\(\/\/\)[^/].*/{
15731             s//\1/
15732             q
15733           }
15734           /^X\(\/\/\)$/{
15735             s//\1/
15736             q
15737           }
15738           /^X\(\/\).*/{
15739             s//\1/
15740             q
15741           }
15742           s/.*/./; q'`
15743       test -d "$as_dir" && break
15744     done
15745     test -z "$as_dirs" || eval "mkdir $as_dirs"
15746   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15749 } @%:@ as_fn_mkdir_p
15750 if mkdir -p . 2>/dev/null; then
15751   as_mkdir_p='mkdir -p "$as_dir"'
15752 else
15753   test -d ./-p && rmdir ./-p
15754   as_mkdir_p=false
15758 @%:@ as_fn_executable_p FILE
15759 @%:@ -----------------------
15760 @%:@ Test if FILE is an executable regular file.
15761 as_fn_executable_p ()
15763   test -f "$1" && test -x "$1"
15764 } @%:@ as_fn_executable_p
15765 as_test_x='test -x'
15766 as_executable_p=as_fn_executable_p
15768 # Sed expression to map a string onto a valid CPP name.
15769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15771 # Sed expression to map a string onto a valid variable name.
15772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15775 exec 6>&1
15776 ## ----------------------------------- ##
15777 ## Main body of $CONFIG_STATUS script. ##
15778 ## ----------------------------------- ##
15779 _ASEOF
15780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 # Save the log message, to keep $0 and so on meaningful, and to
15784 # report actual input values of CONFIG_FILES etc. instead of their
15785 # values after options handling.
15786 ac_log="
15787 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15788 generated by GNU Autoconf 2.69.  Invocation command line was
15790   CONFIG_FILES    = $CONFIG_FILES
15791   CONFIG_HEADERS  = $CONFIG_HEADERS
15792   CONFIG_LINKS    = $CONFIG_LINKS
15793   CONFIG_COMMANDS = $CONFIG_COMMANDS
15794   $ $0 $@
15796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15799 _ACEOF
15801 case $ac_config_files in *"
15802 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15803 esac
15805 case $ac_config_headers in *"
15806 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15807 esac
15810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15811 # Files that config.status was made for.
15812 config_files="$ac_config_files"
15813 config_headers="$ac_config_headers"
15814 config_commands="$ac_config_commands"
15816 _ACEOF
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819 ac_cs_usage="\
15820 \`$as_me' instantiates files and other configuration actions
15821 from templates according to the current configuration.  Unless the files
15822 and actions are specified as TAGs, all are instantiated by default.
15824 Usage: $0 [OPTION]... [TAG]...
15826   -h, --help       print this help, then exit
15827   -V, --version    print version number and configuration settings, then exit
15828       --config     print configuration, then exit
15829   -q, --quiet, --silent
15830                    do not print progress messages
15831   -d, --debug      don't remove temporary files
15832       --recheck    update $as_me by reconfiguring in the same conditions
15833       --file=FILE[:TEMPLATE] 
15834                    instantiate the configuration file FILE
15835       --header=FILE[:TEMPLATE] 
15836                    instantiate the configuration header FILE
15838 Configuration files:
15839 $config_files
15841 Configuration headers:
15842 $config_headers
15844 Configuration commands:
15845 $config_commands
15847 Report bugs to the package provider."
15849 _ACEOF
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15852 ac_cs_version="\\
15853 libevent config.status 2.0.21-stable-dev
15854 configured by $0, generated by GNU Autoconf 2.69,
15855   with options \\"\$ac_cs_config\\"
15857 Copyright (C) 2012 Free Software Foundation, Inc.
15858 This config.status script is free software; the Free Software Foundation
15859 gives unlimited permission to copy, distribute and modify it."
15861 ac_pwd='$ac_pwd'
15862 srcdir='$srcdir'
15863 INSTALL='$INSTALL'
15864 MKDIR_P='$MKDIR_P'
15865 AWK='$AWK'
15866 test -n "\$AWK" || AWK=awk
15867 _ACEOF
15869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870 # The default lists apply if the user does not specify any file.
15871 ac_need_defaults=:
15872 while test $# != 0
15874   case $1 in
15875   --*=?*)
15876     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15877     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15878     ac_shift=:
15879     ;;
15880   --*=)
15881     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15882     ac_optarg=
15883     ac_shift=:
15884     ;;
15885   *)
15886     ac_option=$1
15887     ac_optarg=$2
15888     ac_shift=shift
15889     ;;
15890   esac
15892   case $ac_option in
15893   # Handling of the options.
15894   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15895     ac_cs_recheck=: ;;
15896   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15897     $as_echo "$ac_cs_version"; exit ;;
15898   --config | --confi | --conf | --con | --co | --c )
15899     $as_echo "$ac_cs_config"; exit ;;
15900   --debug | --debu | --deb | --de | --d | -d )
15901     debug=: ;;
15902   --file | --fil | --fi | --f )
15903     $ac_shift
15904     case $ac_optarg in
15905     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15906     '') as_fn_error $? "missing file argument" ;;
15907     esac
15908     as_fn_append CONFIG_FILES " '$ac_optarg'"
15909     ac_need_defaults=false;;
15910   --header | --heade | --head | --hea )
15911     $ac_shift
15912     case $ac_optarg in
15913     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15914     esac
15915     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15916     ac_need_defaults=false;;
15917   --he | --h)
15918     # Conflict between --help and --header
15919     as_fn_error $? "ambiguous option: \`$1'
15920 Try \`$0 --help' for more information.";;
15921   --help | --hel | -h )
15922     $as_echo "$ac_cs_usage"; exit ;;
15923   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15924   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15925     ac_cs_silent=: ;;
15927   # This is an error.
15928   -*) as_fn_error $? "unrecognized option: \`$1'
15929 Try \`$0 --help' for more information." ;;
15931   *) as_fn_append ac_config_targets " $1"
15932      ac_need_defaults=false ;;
15934   esac
15935   shift
15936 done
15938 ac_configure_extra_args=
15940 if $ac_cs_silent; then
15941   exec 6>/dev/null
15942   ac_configure_extra_args="$ac_configure_extra_args --silent"
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15947 if \$ac_cs_recheck; then
15948   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15949   shift
15950   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15951   CONFIG_SHELL='$SHELL'
15952   export CONFIG_SHELL
15953   exec "\$@"
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958 exec 5>>config.log
15960   echo
15961   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15962 @%:@@%:@ Running $as_me. @%:@@%:@
15963 _ASBOX
15964   $as_echo "$ac_log"
15965 } >&5
15967 _ACEOF
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970 # INIT-COMMANDS
15972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15975 # The HP-UX ksh and POSIX shell print the target directory to stdout
15976 # if CDPATH is set.
15977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15979 sed_quote_subst='$sed_quote_subst'
15980 double_quote_subst='$double_quote_subst'
15981 delay_variable_subst='$delay_variable_subst'
15982 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15983 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15984 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15985 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15986 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15987 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16018 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16019 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16020 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16021 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16024 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16025 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16026 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16027 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16028 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16029 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16030 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16031 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16032 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16033 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16034 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16035 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16036 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16037 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16038 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"`'
16039 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16040 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16044 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16049 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16081 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16082 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16083 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16084 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16085 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16086 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16105 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16106 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16107 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16108 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16109 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16110 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16111 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16113 LTCC='$LTCC'
16114 LTCFLAGS='$LTCFLAGS'
16115 compiler='$compiler_DEFAULT'
16117 # A function that is used when there is no print builtin or printf.
16118 func_fallback_echo ()
16120   eval 'cat <<_LTECHO_EOF
16122 _LTECHO_EOF'
16125 # Quote evaled strings.
16126 for var in SHELL \
16127 ECHO \
16128 PATH_SEPARATOR \
16129 SED \
16130 GREP \
16131 EGREP \
16132 FGREP \
16133 LD \
16134 NM \
16135 LN_S \
16136 lt_SP2NL \
16137 lt_NL2SP \
16138 reload_flag \
16139 OBJDUMP \
16140 deplibs_check_method \
16141 file_magic_cmd \
16142 file_magic_glob \
16143 want_nocaseglob \
16144 DLLTOOL \
16145 sharedlib_from_linklib_cmd \
16146 AR \
16147 AR_FLAGS \
16148 archiver_list_spec \
16149 STRIP \
16150 RANLIB \
16151 CC \
16152 CFLAGS \
16153 compiler \
16154 lt_cv_sys_global_symbol_pipe \
16155 lt_cv_sys_global_symbol_to_cdecl \
16156 lt_cv_sys_global_symbol_to_c_name_address \
16157 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16158 nm_file_list_spec \
16159 lt_prog_compiler_no_builtin_flag \
16160 lt_prog_compiler_pic \
16161 lt_prog_compiler_wl \
16162 lt_prog_compiler_static \
16163 lt_cv_prog_compiler_c_o \
16164 need_locks \
16165 MANIFEST_TOOL \
16166 DSYMUTIL \
16167 NMEDIT \
16168 LIPO \
16169 OTOOL \
16170 OTOOL64 \
16171 shrext_cmds \
16172 export_dynamic_flag_spec \
16173 whole_archive_flag_spec \
16174 compiler_needs_object \
16175 with_gnu_ld \
16176 allow_undefined_flag \
16177 no_undefined_flag \
16178 hardcode_libdir_flag_spec \
16179 hardcode_libdir_separator \
16180 exclude_expsyms \
16181 include_expsyms \
16182 file_list_spec \
16183 variables_saved_for_relink \
16184 libname_spec \
16185 library_names_spec \
16186 soname_spec \
16187 install_override_mode \
16188 finish_eval \
16189 old_striplib \
16190 striplib; do
16191     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16192     *[\\\\\\\`\\"\\\$]*)
16193       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16194       ;;
16195     *)
16196       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16197       ;;
16198     esac
16199 done
16201 # Double-quote double-evaled strings.
16202 for var in reload_cmds \
16203 old_postinstall_cmds \
16204 old_postuninstall_cmds \
16205 old_archive_cmds \
16206 extract_expsyms_cmds \
16207 old_archive_from_new_cmds \
16208 old_archive_from_expsyms_cmds \
16209 archive_cmds \
16210 archive_expsym_cmds \
16211 module_cmds \
16212 module_expsym_cmds \
16213 export_symbols_cmds \
16214 prelink_cmds \
16215 postlink_cmds \
16216 postinstall_cmds \
16217 postuninstall_cmds \
16218 finish_cmds \
16219 sys_lib_search_path_spec \
16220 sys_lib_dlsearch_path_spec; do
16221     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16222     *[\\\\\\\`\\"\\\$]*)
16223       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16224       ;;
16225     *)
16226       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16227       ;;
16228     esac
16229 done
16231 ac_aux_dir='$ac_aux_dir'
16232 xsi_shell='$xsi_shell'
16233 lt_shell_append='$lt_shell_append'
16235 # See if we are running on zsh, and set the options which allow our
16236 # commands through without removal of \ escapes INIT.
16237 if test -n "\${ZSH_VERSION+set}" ; then
16238    setopt NO_GLOB_SUBST
16242     PACKAGE='$PACKAGE'
16243     VERSION='$VERSION'
16244     TIMESTAMP='$TIMESTAMP'
16245     RM='$RM'
16246     ofile='$ofile'
16251 _ACEOF
16253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255 # Handling of arguments.
16256 for ac_config_target in $ac_config_targets
16258   case $ac_config_target in
16259     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16260     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16261     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16262     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16263     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16264     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16265     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16266     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16267     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16268     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16270   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16271   esac
16272 done
16275 # If the user did not use the arguments to specify the items to instantiate,
16276 # then the envvar interface is used.  Set only those that are not.
16277 # We use the long form for the default assignment because of an extremely
16278 # bizarre bug on SunOS 4.1.3.
16279 if $ac_need_defaults; then
16280   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16281   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16282   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16285 # Have a temporary directory for convenience.  Make it in the build tree
16286 # simply because there is no reason against having it here, and in addition,
16287 # creating and moving files from /tmp can sometimes cause problems.
16288 # Hook for its removal unless debugging.
16289 # Note that there is a small window in which the directory will not be cleaned:
16290 # after its creation but before its name has been assigned to `$tmp'.
16291 $debug ||
16293   tmp= ac_tmp=
16294   trap 'exit_status=$?
16295   : "${ac_tmp:=$tmp}"
16296   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16297 ' 0
16298   trap 'as_fn_exit 1' 1 2 13 15
16300 # Create a (secure) tmp directory for tmp files.
16303   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16304   test -d "$tmp"
16305 }  ||
16307   tmp=./conf$$-$RANDOM
16308   (umask 077 && mkdir "$tmp")
16309 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16310 ac_tmp=$tmp
16312 # Set up the scripts for CONFIG_FILES section.
16313 # No need to generate them if there are no CONFIG_FILES.
16314 # This happens for instance with `./config.status config.h'.
16315 if test -n "$CONFIG_FILES"; then
16318 ac_cr=`echo X | tr X '\015'`
16319 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16320 # But we know of no other shell where ac_cr would be empty at this
16321 # point, so we can use a bashism as a fallback.
16322 if test "x$ac_cr" = x; then
16323   eval ac_cr=\$\'\\r\'
16325 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16326 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16327   ac_cs_awk_cr='\\r'
16328 else
16329   ac_cs_awk_cr=$ac_cr
16332 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16333 _ACEOF
16337   echo "cat >conf$$subs.awk <<_ACEOF" &&
16338   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16339   echo "_ACEOF"
16340 } >conf$$subs.sh ||
16341   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16343 ac_delim='%!_!# '
16344 for ac_last_try in false false false false false :; do
16345   . ./conf$$subs.sh ||
16346     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16348   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16349   if test $ac_delim_n = $ac_delim_num; then
16350     break
16351   elif $ac_last_try; then
16352     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16353   else
16354     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16355   fi
16356 done
16357 rm -f conf$$subs.sh
16359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16360 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16361 _ACEOF
16362 sed -n '
16364 s/^/S["/; s/!.*/"]=/
16367 s/^[^!]*!//
16368 :repl
16369 t repl
16370 s/'"$ac_delim"'$//
16371 t delim
16374 s/\(.\{148\}\)..*/\1/
16375 t more1
16376 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16379 b repl
16380 :more1
16381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16384 s/.\{148\}//
16385 t nl
16386 :delim
16388 s/\(.\{148\}\)..*/\1/
16389 t more2
16390 s/["\\]/\\&/g; s/^/"/; s/$/"/
16393 :more2
16394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16397 s/.\{148\}//
16398 t delim
16399 ' <conf$$subs.awk | sed '
16400 /^[^""]/{
16401   N
16402   s/\n//
16404 ' >>$CONFIG_STATUS || ac_write_fail=1
16405 rm -f conf$$subs.awk
16406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16407 _ACAWK
16408 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16409   for (key in S) S_is_set[key] = 1
16410   FS = "\a"
16414   line = $ 0
16415   nfields = split(line, field, "@")
16416   substed = 0
16417   len = length(field[1])
16418   for (i = 2; i < nfields; i++) {
16419     key = field[i]
16420     keylen = length(key)
16421     if (S_is_set[key]) {
16422       value = S[key]
16423       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16424       len += length(value) + length(field[++i])
16425       substed = 1
16426     } else
16427       len += 1 + keylen
16428   }
16430   print line
16433 _ACAWK
16434 _ACEOF
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16437   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16438 else
16439   cat
16440 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16441   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16442 _ACEOF
16444 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16445 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16446 # trailing colons and then remove the whole line if VPATH becomes empty
16447 # (actually we leave an empty line to preserve line numbers).
16448 if test "x$srcdir" = x.; then
16449   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16451 s///
16452 s/^/:/
16453 s/[      ]*$/:/
16454 s/:\$(srcdir):/:/g
16455 s/:\${srcdir}:/:/g
16456 s/:@srcdir@:/:/g
16457 s/^:*//
16458 s/:*$//
16460 s/\(=[   ]*\).*/\1/
16462 s/\n//
16463 s/^[^=]*=[       ]*$//
16467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468 fi # test -n "$CONFIG_FILES"
16470 # Set up the scripts for CONFIG_HEADERS section.
16471 # No need to generate them if there are no CONFIG_HEADERS.
16472 # This happens for instance with `./config.status Makefile'.
16473 if test -n "$CONFIG_HEADERS"; then
16474 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16475 BEGIN {
16476 _ACEOF
16478 # Transform confdefs.h into an awk script `defines.awk', embedded as
16479 # here-document in config.status, that substitutes the proper values into
16480 # config.h.in to produce config.h.
16482 # Create a delimiter string that does not exist in confdefs.h, to ease
16483 # handling of long lines.
16484 ac_delim='%!_!# '
16485 for ac_last_try in false false :; do
16486   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16487   if test -z "$ac_tt"; then
16488     break
16489   elif $ac_last_try; then
16490     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16491   else
16492     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16493   fi
16494 done
16496 # For the awk script, D is an array of macro values keyed by name,
16497 # likewise P contains macro parameters if any.  Preserve backslash
16498 # newline sequences.
16500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16501 sed -n '
16502 s/.\{148\}/&'"$ac_delim"'/g
16503 t rset
16504 :rset
16505 s/^[     ]*#[    ]*define[       ][      ]*/ /
16506 t def
16508 :def
16509 s/\\$//
16510 t bsnl
16511 s/["\\]/\\&/g
16512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16513 D["\1"]=" \3"/p
16514 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16516 :bsnl
16517 s/["\\]/\\&/g
16518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16519 D["\1"]=" \3\\\\\\n"\\/p
16520 t cont
16521 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16522 t cont
16524 :cont
16526 s/.\{148\}/&'"$ac_delim"'/g
16527 t clear
16528 :clear
16529 s/\\$//
16530 t bsnlc
16531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16533 :bsnlc
16534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16535 b cont
16536 ' <confdefs.h | sed '
16537 s/'"$ac_delim"'/"\\\
16538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541   for (key in D) D_is_set[key] = 1
16542   FS = "\a"
16544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16545   line = \$ 0
16546   split(line, arg, " ")
16547   if (arg[1] == "#") {
16548     defundef = arg[2]
16549     mac1 = arg[3]
16550   } else {
16551     defundef = substr(arg[1], 2)
16552     mac1 = arg[2]
16553   }
16554   split(mac1, mac2, "(") #)
16555   macro = mac2[1]
16556   prefix = substr(line, 1, index(line, defundef) - 1)
16557   if (D_is_set[macro]) {
16558     # Preserve the white space surrounding the "#".
16559     print prefix "define", macro P[macro] D[macro]
16560     next
16561   } else {
16562     # Replace #undef with comments.  This is necessary, for example,
16563     # in the case of _POSIX_SOURCE, which is predefined and required
16564     # on some systems where configure will not decide to define it.
16565     if (defundef == "undef") {
16566       print "/*", prefix defundef, macro, "*/"
16567       next
16568     }
16569   }
16571 { print }
16572 _ACAWK
16573 _ACEOF
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16576 fi # test -n "$CONFIG_HEADERS"
16579 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16580 shift
16581 for ac_tag
16583   case $ac_tag in
16584   :[FHLC]) ac_mode=$ac_tag; continue;;
16585   esac
16586   case $ac_mode$ac_tag in
16587   :[FHL]*:*);;
16588   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16589   :[FH]-) ac_tag=-:-;;
16590   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16591   esac
16592   ac_save_IFS=$IFS
16593   IFS=:
16594   set x $ac_tag
16595   IFS=$ac_save_IFS
16596   shift
16597   ac_file=$1
16598   shift
16600   case $ac_mode in
16601   :L) ac_source=$1;;
16602   :[FH])
16603     ac_file_inputs=
16604     for ac_f
16605     do
16606       case $ac_f in
16607       -) ac_f="$ac_tmp/stdin";;
16608       *) # Look for the file first in the build tree, then in the source tree
16609          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16610          # because $ac_f cannot contain `:'.
16611          test -f "$ac_f" ||
16612            case $ac_f in
16613            [\\/$]*) false;;
16614            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16615            esac ||
16616            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16617       esac
16618       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16619       as_fn_append ac_file_inputs " '$ac_f'"
16620     done
16622     # Let's still pretend it is `configure' which instantiates (i.e., don't
16623     # use $as_me), people would be surprised to read:
16624     #    /* config.h.  Generated by config.status.  */
16625     configure_input='Generated from '`
16626           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16627         `' by configure.'
16628     if test x"$ac_file" != x-; then
16629       configure_input="$ac_file.  $configure_input"
16630       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16631 $as_echo "$as_me: creating $ac_file" >&6;}
16632     fi
16633     # Neutralize special characters interpreted by sed in replacement strings.
16634     case $configure_input in #(
16635     *\&* | *\|* | *\\* )
16636        ac_sed_conf_input=`$as_echo "$configure_input" |
16637        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16638     *) ac_sed_conf_input=$configure_input;;
16639     esac
16641     case $ac_tag in
16642     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16643       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16644     esac
16645     ;;
16646   esac
16648   ac_dir=`$as_dirname -- "$ac_file" ||
16649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650          X"$ac_file" : 'X\(//\)[^/]' \| \
16651          X"$ac_file" : 'X\(//\)$' \| \
16652          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16653 $as_echo X"$ac_file" |
16654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16655             s//\1/
16656             q
16657           }
16658           /^X\(\/\/\)[^/].*/{
16659             s//\1/
16660             q
16661           }
16662           /^X\(\/\/\)$/{
16663             s//\1/
16664             q
16665           }
16666           /^X\(\/\).*/{
16667             s//\1/
16668             q
16669           }
16670           s/.*/./; q'`
16671   as_dir="$ac_dir"; as_fn_mkdir_p
16672   ac_builddir=.
16674 case "$ac_dir" in
16675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16677   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16678   # A ".." for each directory in $ac_dir_suffix.
16679   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16680   case $ac_top_builddir_sub in
16681   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16682   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16683   esac ;;
16684 esac
16685 ac_abs_top_builddir=$ac_pwd
16686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16687 # for backward compatibility:
16688 ac_top_builddir=$ac_top_build_prefix
16690 case $srcdir in
16691   .)  # We are building in place.
16692     ac_srcdir=.
16693     ac_top_srcdir=$ac_top_builddir_sub
16694     ac_abs_top_srcdir=$ac_pwd ;;
16695   [\\/]* | ?:[\\/]* )  # Absolute name.
16696     ac_srcdir=$srcdir$ac_dir_suffix;
16697     ac_top_srcdir=$srcdir
16698     ac_abs_top_srcdir=$srcdir ;;
16699   *) # Relative name.
16700     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16701     ac_top_srcdir=$ac_top_build_prefix$srcdir
16702     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16703 esac
16704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16707   case $ac_mode in
16708   :F)
16709   #
16710   # CONFIG_FILE
16711   #
16713   case $INSTALL in
16714   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16715   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16716   esac
16717   ac_MKDIR_P=$MKDIR_P
16718   case $MKDIR_P in
16719   [\\/$]* | ?:[\\/]* ) ;;
16720   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16721   esac
16722 _ACEOF
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 # If the template does not know about datarootdir, expand it.
16726 # FIXME: This hack should be removed a few years after 2.60.
16727 ac_datarootdir_hack=; ac_datarootdir_seen=
16728 ac_sed_dataroot='
16729 /datarootdir/ {
16730   p
16731   q
16733 /@datadir@/p
16734 /@docdir@/p
16735 /@infodir@/p
16736 /@localedir@/p
16737 /@mandir@/p'
16738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16739 *datarootdir*) ac_datarootdir_seen=yes;;
16740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16741   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16743 _ACEOF
16744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745   ac_datarootdir_hack='
16746   s&@datadir@&$datadir&g
16747   s&@docdir@&$docdir&g
16748   s&@infodir@&$infodir&g
16749   s&@localedir@&$localedir&g
16750   s&@mandir@&$mandir&g
16751   s&\\\${datarootdir}&$datarootdir&g' ;;
16752 esac
16753 _ACEOF
16755 # Neutralize VPATH when `$srcdir' = `.'.
16756 # Shell code in configure.ac might set extrasub.
16757 # FIXME: do we really want to maintain this feature?
16758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 ac_sed_extra="$ac_vpsub
16760 $extrasub
16761 _ACEOF
16762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16765 s|@configure_input@|$ac_sed_conf_input|;t t
16766 s&@top_builddir@&$ac_top_builddir_sub&;t t
16767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16768 s&@srcdir@&$ac_srcdir&;t t
16769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16770 s&@top_srcdir@&$ac_top_srcdir&;t t
16771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16772 s&@builddir@&$ac_builddir&;t t
16773 s&@abs_builddir@&$ac_abs_builddir&;t t
16774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16775 s&@INSTALL@&$ac_INSTALL&;t t
16776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16777 $ac_datarootdir_hack
16779 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16780   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16783   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16784   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16785       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16786   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16787 which seems to be undefined.  Please make sure it is defined" >&5
16788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16789 which seems to be undefined.  Please make sure it is defined" >&2;}
16791   rm -f "$ac_tmp/stdin"
16792   case $ac_file in
16793   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16794   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16795   esac \
16796   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16797  ;;
16798   :H)
16799   #
16800   # CONFIG_HEADER
16801   #
16802   if test x"$ac_file" != x-; then
16803     {
16804       $as_echo "/* $configure_input  */" \
16805       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16806     } >"$ac_tmp/config.h" \
16807       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16808     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16809       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16810 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16811     else
16812       rm -f "$ac_file"
16813       mv "$ac_tmp/config.h" "$ac_file" \
16814         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16815     fi
16816   else
16817     $as_echo "/* $configure_input  */" \
16818       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16819       || as_fn_error $? "could not create -" "$LINENO" 5
16820   fi
16821 # Compute "$ac_file"'s index in $config_headers.
16822 _am_arg="$ac_file"
16823 _am_stamp_count=1
16824 for _am_header in $config_headers :; do
16825   case $_am_header in
16826     $_am_arg | $_am_arg:* )
16827       break ;;
16828     * )
16829       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16830   esac
16831 done
16832 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16833 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16834          X"$_am_arg" : 'X\(//\)[^/]' \| \
16835          X"$_am_arg" : 'X\(//\)$' \| \
16836          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16837 $as_echo X"$_am_arg" |
16838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16839             s//\1/
16840             q
16841           }
16842           /^X\(\/\/\)[^/].*/{
16843             s//\1/
16844             q
16845           }
16846           /^X\(\/\/\)$/{
16847             s//\1/
16848             q
16849           }
16850           /^X\(\/\).*/{
16851             s//\1/
16852             q
16853           }
16854           s/.*/./; q'`/stamp-h$_am_stamp_count
16855  ;;
16856   
16857   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16858 $as_echo "$as_me: executing $ac_file commands" >&6;}
16859  ;;
16860   esac
16863   case $ac_file$ac_mode in
16864     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16865   # Older Autoconf quotes --file arguments for eval, but not when files
16866   # are listed without --file.  Let's play safe and only enable the eval
16867   # if we detect the quoting.
16868   case $CONFIG_FILES in
16869   *\'*) eval set x "$CONFIG_FILES" ;;
16870   *)   set x $CONFIG_FILES ;;
16871   esac
16872   shift
16873   for mf
16874   do
16875     # Strip MF so we end up with the name of the file.
16876     mf=`echo "$mf" | sed -e 's/:.*$//'`
16877     # Check whether this is an Automake generated Makefile or not.
16878     # We used to match only the files named 'Makefile.in', but
16879     # some people rename them; so instead we look at the file content.
16880     # Grep'ing the first line is not enough: some people post-process
16881     # each Makefile.in and add a new line on top of each file to say so.
16882     # Grep'ing the whole file is not good either: AIX grep has a line
16883     # limit of 2048, but all sed's we know have understand at least 4000.
16884     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16885       dirpart=`$as_dirname -- "$mf" ||
16886 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16887          X"$mf" : 'X\(//\)[^/]' \| \
16888          X"$mf" : 'X\(//\)$' \| \
16889          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16890 $as_echo X"$mf" |
16891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16892             s//\1/
16893             q
16894           }
16895           /^X\(\/\/\)[^/].*/{
16896             s//\1/
16897             q
16898           }
16899           /^X\(\/\/\)$/{
16900             s//\1/
16901             q
16902           }
16903           /^X\(\/\).*/{
16904             s//\1/
16905             q
16906           }
16907           s/.*/./; q'`
16908     else
16909       continue
16910     fi
16911     # Extract the definition of DEPDIR, am__include, and am__quote
16912     # from the Makefile without running 'make'.
16913     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16914     test -z "$DEPDIR" && continue
16915     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16916     test -z "$am__include" && continue
16917     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16918     # Find all dependency output files, they are included files with
16919     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16920     # simplest approach to changing $(DEPDIR) to its actual value in the
16921     # expansion.
16922     for file in `sed -n "
16923       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16924          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16925       # Make sure the directory exists.
16926       test -f "$dirpart/$file" && continue
16927       fdir=`$as_dirname -- "$file" ||
16928 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16929          X"$file" : 'X\(//\)[^/]' \| \
16930          X"$file" : 'X\(//\)$' \| \
16931          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16932 $as_echo X"$file" |
16933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16934             s//\1/
16935             q
16936           }
16937           /^X\(\/\/\)[^/].*/{
16938             s//\1/
16939             q
16940           }
16941           /^X\(\/\/\)$/{
16942             s//\1/
16943             q
16944           }
16945           /^X\(\/\).*/{
16946             s//\1/
16947             q
16948           }
16949           s/.*/./; q'`
16950       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16951       # echo "creating $dirpart/$file"
16952       echo '# dummy' > "$dirpart/$file"
16953     done
16954   done
16956  ;;
16957     "libtool":C) 
16958     
16959     # See if we are running on zsh, and set the options which allow our
16960     # commands through without removal of \ escapes.
16961     if test -n "${ZSH_VERSION+set}" ; then
16962       setopt NO_GLOB_SUBST
16963     fi
16965     cfgfile="${ofile}T"
16966     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16967     $RM "$cfgfile"
16969     cat <<_LT_EOF >> "$cfgfile"
16970 #! $SHELL
16972 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16973 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16974 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16975 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16977 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16978 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16979 #                 Foundation, Inc.
16980 #   Written by Gordon Matzigkeit, 1996
16982 #   This file is part of GNU Libtool.
16984 # GNU Libtool is free software; you can redistribute it and/or
16985 # modify it under the terms of the GNU General Public License as
16986 # published by the Free Software Foundation; either version 2 of
16987 # the License, or (at your option) any later version.
16989 # As a special exception to the GNU General Public License,
16990 # if you distribute this file as part of a program or library that
16991 # is built using GNU Libtool, you may include this file under the
16992 # same distribution terms that you use for the rest of that program.
16994 # GNU Libtool is distributed in the hope that it will be useful,
16995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16997 # GNU General Public License for more details.
16999 # You should have received a copy of the GNU General Public License
17000 # along with GNU Libtool; see the file COPYING.  If not, a copy
17001 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17002 # obtained by writing to the Free Software Foundation, Inc.,
17003 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17006 # The names of the tagged configurations supported by this script.
17007 available_tags=""
17009 # ### BEGIN LIBTOOL CONFIG
17011 # Which release of libtool.m4 was used?
17012 macro_version=$macro_version
17013 macro_revision=$macro_revision
17015 # Whether or not to build shared libraries.
17016 build_libtool_libs=$enable_shared
17018 # Whether or not to build static libraries.
17019 build_old_libs=$enable_static
17021 # What type of objects to build.
17022 pic_mode=$pic_mode
17024 # Whether or not to optimize for fast installation.
17025 fast_install=$enable_fast_install
17027 # Shell to use when invoking shell scripts.
17028 SHELL=$lt_SHELL
17030 # An echo program that protects backslashes.
17031 ECHO=$lt_ECHO
17033 # The PATH separator for the build system.
17034 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17036 # The host system.
17037 host_alias=$host_alias
17038 host=$host
17039 host_os=$host_os
17041 # The build system.
17042 build_alias=$build_alias
17043 build=$build
17044 build_os=$build_os
17046 # A sed program that does not truncate output.
17047 SED=$lt_SED
17049 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17050 Xsed="\$SED -e 1s/^X//"
17052 # A grep program that handles long lines.
17053 GREP=$lt_GREP
17055 # An ERE matcher.
17056 EGREP=$lt_EGREP
17058 # A literal string matcher.
17059 FGREP=$lt_FGREP
17061 # A BSD- or MS-compatible name lister.
17062 NM=$lt_NM
17064 # Whether we need soft or hard links.
17065 LN_S=$lt_LN_S
17067 # What is the maximum length of a command?
17068 max_cmd_len=$max_cmd_len
17070 # Object file suffix (normally "o").
17071 objext=$ac_objext
17073 # Executable file suffix (normally "").
17074 exeext=$exeext
17076 # whether the shell understands "unset".
17077 lt_unset=$lt_unset
17079 # turn spaces into newlines.
17080 SP2NL=$lt_lt_SP2NL
17082 # turn newlines into spaces.
17083 NL2SP=$lt_lt_NL2SP
17085 # convert \$build file names to \$host format.
17086 to_host_file_cmd=$lt_cv_to_host_file_cmd
17088 # convert \$build files to toolchain format.
17089 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17091 # An object symbol dumper.
17092 OBJDUMP=$lt_OBJDUMP
17094 # Method to check whether dependent libraries are shared objects.
17095 deplibs_check_method=$lt_deplibs_check_method
17097 # Command to use when deplibs_check_method = "file_magic".
17098 file_magic_cmd=$lt_file_magic_cmd
17100 # How to find potential files when deplibs_check_method = "file_magic".
17101 file_magic_glob=$lt_file_magic_glob
17103 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17104 want_nocaseglob=$lt_want_nocaseglob
17106 # DLL creation program.
17107 DLLTOOL=$lt_DLLTOOL
17109 # Command to associate shared and link libraries.
17110 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17112 # The archiver.
17113 AR=$lt_AR
17115 # Flags to create an archive.
17116 AR_FLAGS=$lt_AR_FLAGS
17118 # How to feed a file listing to the archiver.
17119 archiver_list_spec=$lt_archiver_list_spec
17121 # A symbol stripping program.
17122 STRIP=$lt_STRIP
17124 # Commands used to install an old-style archive.
17125 RANLIB=$lt_RANLIB
17126 old_postinstall_cmds=$lt_old_postinstall_cmds
17127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17129 # Whether to use a lock for old archive extraction.
17130 lock_old_archive_extraction=$lock_old_archive_extraction
17132 # A C compiler.
17133 LTCC=$lt_CC
17135 # LTCC compiler flags.
17136 LTCFLAGS=$lt_CFLAGS
17138 # Take the output of nm and produce a listing of raw symbols and C names.
17139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17141 # Transform the output of nm in a proper C declaration.
17142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17144 # Transform the output of nm in a C name address pair.
17145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17147 # Transform the output of nm in a C name address pair when lib prefix is needed.
17148 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17150 # Specify filename containing input files for \$NM.
17151 nm_file_list_spec=$lt_nm_file_list_spec
17153 # The root where to search for dependent libraries,and in which our libraries should be installed.
17154 lt_sysroot=$lt_sysroot
17156 # The name of the directory that contains temporary libtool files.
17157 objdir=$objdir
17159 # Used to examine libraries when file_magic_cmd begins with "file".
17160 MAGIC_CMD=$MAGIC_CMD
17162 # Must we lock files when doing compilation?
17163 need_locks=$lt_need_locks
17165 # Manifest tool.
17166 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17168 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17169 DSYMUTIL=$lt_DSYMUTIL
17171 # Tool to change global to local symbols on Mac OS X.
17172 NMEDIT=$lt_NMEDIT
17174 # Tool to manipulate fat objects and archives on Mac OS X.
17175 LIPO=$lt_LIPO
17177 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17178 OTOOL=$lt_OTOOL
17180 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17181 OTOOL64=$lt_OTOOL64
17183 # Old archive suffix (normally "a").
17184 libext=$libext
17186 # Shared library suffix (normally ".so").
17187 shrext_cmds=$lt_shrext_cmds
17189 # The commands to extract the exported symbol list from a shared archive.
17190 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17192 # Variables whose values should be saved in libtool wrapper scripts and
17193 # restored at link time.
17194 variables_saved_for_relink=$lt_variables_saved_for_relink
17196 # Do we need the "lib" prefix for modules?
17197 need_lib_prefix=$need_lib_prefix
17199 # Do we need a version for libraries?
17200 need_version=$need_version
17202 # Library versioning type.
17203 version_type=$version_type
17205 # Shared library runtime path variable.
17206 runpath_var=$runpath_var
17208 # Shared library path variable.
17209 shlibpath_var=$shlibpath_var
17211 # Is shlibpath searched before the hard-coded library search path?
17212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17214 # Format of library name prefix.
17215 libname_spec=$lt_libname_spec
17217 # List of archive names.  First name is the real one, the rest are links.
17218 # The last name is the one that the linker finds with -lNAME
17219 library_names_spec=$lt_library_names_spec
17221 # The coded name of the library, if different from the real name.
17222 soname_spec=$lt_soname_spec
17224 # Permission mode override for installation of shared libraries.
17225 install_override_mode=$lt_install_override_mode
17227 # Command to use after installation of a shared archive.
17228 postinstall_cmds=$lt_postinstall_cmds
17230 # Command to use after uninstallation of a shared archive.
17231 postuninstall_cmds=$lt_postuninstall_cmds
17233 # Commands used to finish a libtool library installation in a directory.
17234 finish_cmds=$lt_finish_cmds
17236 # As "finish_cmds", except a single script fragment to be evaled but
17237 # not shown.
17238 finish_eval=$lt_finish_eval
17240 # Whether we should hardcode library paths into libraries.
17241 hardcode_into_libs=$hardcode_into_libs
17243 # Compile-time system search path for libraries.
17244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17246 # Run-time system search path for libraries.
17247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17249 # Whether dlopen is supported.
17250 dlopen_support=$enable_dlopen
17252 # Whether dlopen of programs is supported.
17253 dlopen_self=$enable_dlopen_self
17255 # Whether dlopen of statically linked programs is supported.
17256 dlopen_self_static=$enable_dlopen_self_static
17258 # Commands to strip libraries.
17259 old_striplib=$lt_old_striplib
17260 striplib=$lt_striplib
17263 # The linker used to build libraries.
17264 LD=$lt_LD
17266 # How to create reloadable object files.
17267 reload_flag=$lt_reload_flag
17268 reload_cmds=$lt_reload_cmds
17270 # Commands used to build an old-style archive.
17271 old_archive_cmds=$lt_old_archive_cmds
17273 # A language specific compiler.
17274 CC=$lt_compiler
17276 # Is the compiler the GNU compiler?
17277 with_gcc=$GCC
17279 # Compiler flag to turn off builtin functions.
17280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17282 # Additional compiler flags for building library objects.
17283 pic_flag=$lt_lt_prog_compiler_pic
17285 # How to pass a linker flag through the compiler.
17286 wl=$lt_lt_prog_compiler_wl
17288 # Compiler flag to prevent dynamic linking.
17289 link_static_flag=$lt_lt_prog_compiler_static
17291 # Does compiler simultaneously support -c and -o options?
17292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17294 # Whether or not to add -lc for building shared libraries.
17295 build_libtool_need_lc=$archive_cmds_need_lc
17297 # Whether or not to disallow shared libs when runtime libs are static.
17298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17300 # Compiler flag to allow reflexive dlopens.
17301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17303 # Compiler flag to generate shared objects directly from archives.
17304 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17306 # Whether the compiler copes with passing no objects directly.
17307 compiler_needs_object=$lt_compiler_needs_object
17309 # Create an old-style archive from a shared archive.
17310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17312 # Create a temporary old-style archive to link instead of a shared archive.
17313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17315 # Commands used to build a shared archive.
17316 archive_cmds=$lt_archive_cmds
17317 archive_expsym_cmds=$lt_archive_expsym_cmds
17319 # Commands used to build a loadable module if different from building
17320 # a shared archive.
17321 module_cmds=$lt_module_cmds
17322 module_expsym_cmds=$lt_module_expsym_cmds
17324 # Whether we are building with GNU ld or not.
17325 with_gnu_ld=$lt_with_gnu_ld
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag
17330 # Flag that enforces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag
17333 # Flag to hardcode \$libdir into a binary during linking.
17334 # This must work even if \$libdir does not exist
17335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17337 # Whether we need a single "-rpath" flag with a separated argument.
17338 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17341 # DIR into the resulting binary.
17342 hardcode_direct=$hardcode_direct
17344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17345 # DIR into the resulting binary and the resulting library dependency is
17346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17347 # library is relocated.
17348 hardcode_direct_absolute=$hardcode_direct_absolute
17350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17351 # into the resulting binary.
17352 hardcode_minus_L=$hardcode_minus_L
17354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17355 # into the resulting binary.
17356 hardcode_shlibpath_var=$hardcode_shlibpath_var
17358 # Set to "yes" if building a shared library automatically hardcodes DIR
17359 # into the library and all subsequent libraries and executables linked
17360 # against it.
17361 hardcode_automatic=$hardcode_automatic
17363 # Set to yes if linker adds runtime paths of dependent libraries
17364 # to runtime path list.
17365 inherit_rpath=$inherit_rpath
17367 # Whether libtool must link a program against all its dependency libraries.
17368 link_all_deplibs=$link_all_deplibs
17370 # Set to "yes" if exported symbols are required.
17371 always_export_symbols=$always_export_symbols
17373 # The commands to list exported symbols.
17374 export_symbols_cmds=$lt_export_symbols_cmds
17376 # Symbols that should not be listed in the preloaded symbols.
17377 exclude_expsyms=$lt_exclude_expsyms
17379 # Symbols that must always be exported.
17380 include_expsyms=$lt_include_expsyms
17382 # Commands necessary for linking programs (against libraries) with templates.
17383 prelink_cmds=$lt_prelink_cmds
17385 # Commands necessary for finishing linking programs.
17386 postlink_cmds=$lt_postlink_cmds
17388 # Specify filename containing input files.
17389 file_list_spec=$lt_file_list_spec
17391 # How to hardcode a shared library path into an executable.
17392 hardcode_action=$hardcode_action
17394 # ### END LIBTOOL CONFIG
17396 _LT_EOF
17398   case $host_os in
17399   aix3*)
17400     cat <<\_LT_EOF >> "$cfgfile"
17401 # AIX sometimes has problems with the GCC collect2 program.  For some
17402 # reason, if we set the COLLECT_NAMES environment variable, the problems
17403 # vanish in a puff of smoke.
17404 if test "X${COLLECT_NAMES+set}" != Xset; then
17405   COLLECT_NAMES=
17406   export COLLECT_NAMES
17408 _LT_EOF
17409     ;;
17410   esac
17412   
17413 ltmain="$ac_aux_dir/ltmain.sh"
17416   # We use sed instead of cat because bash on DJGPP gets confused if
17417   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17418   # text mode, it properly converts lines to CR/LF.  This bash problem
17419   # is reportedly fixed, but why not run on old versions too?
17420   sed '$q' "$ltmain" >> "$cfgfile" \
17421      || (rm -f "$cfgfile"; exit 1)
17423   if test x"$xsi_shell" = xyes; then
17424   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17425 func_dirname ()\
17427 \    case ${1} in\
17428 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17429 \      *  ) func_dirname_result="${3}" ;;\
17430 \    esac\
17431 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17432   && mv -f "$cfgfile.tmp" "$cfgfile" \
17433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17434 test 0 -eq $? || _lt_function_replace_fail=:
17437   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17438 func_basename ()\
17440 \    func_basename_result="${1##*/}"\
17441 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17442   && mv -f "$cfgfile.tmp" "$cfgfile" \
17443     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17444 test 0 -eq $? || _lt_function_replace_fail=:
17447   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17448 func_dirname_and_basename ()\
17450 \    case ${1} in\
17451 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17452 \      *  ) func_dirname_result="${3}" ;;\
17453 \    esac\
17454 \    func_basename_result="${1##*/}"\
17455 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17456   && mv -f "$cfgfile.tmp" "$cfgfile" \
17457     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17458 test 0 -eq $? || _lt_function_replace_fail=:
17461   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17462 func_stripname ()\
17464 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17465 \    # positional parameters, so assign one to ordinary parameter first.\
17466 \    func_stripname_result=${3}\
17467 \    func_stripname_result=${func_stripname_result#"${1}"}\
17468 \    func_stripname_result=${func_stripname_result%"${2}"}\
17469 } # Extended-shell func_stripname 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_long_opt ()$/,/^} # func_split_long_opt /c\
17476 func_split_long_opt ()\
17478 \    func_split_long_opt_name=${1%%=*}\
17479 \    func_split_long_opt_arg=${1#*=}\
17480 } # Extended-shell func_split_long_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_split_short_opt ()$/,/^} # func_split_short_opt /c\
17487 func_split_short_opt ()\
17489 \    func_split_short_opt_arg=${1#??}\
17490 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17491 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17492   && mv -f "$cfgfile.tmp" "$cfgfile" \
17493     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17494 test 0 -eq $? || _lt_function_replace_fail=:
17497   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17498 func_lo2o ()\
17500 \    case ${1} in\
17501 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17502 \      *)    func_lo2o_result=${1} ;;\
17503 \    esac\
17504 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17505   && mv -f "$cfgfile.tmp" "$cfgfile" \
17506     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17507 test 0 -eq $? || _lt_function_replace_fail=:
17510   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17511 func_xform ()\
17513     func_xform_result=${1%.*}.lo\
17514 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17515   && mv -f "$cfgfile.tmp" "$cfgfile" \
17516     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17517 test 0 -eq $? || _lt_function_replace_fail=:
17520   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17521 func_arith ()\
17523     func_arith_result=$(( $* ))\
17524 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17525   && mv -f "$cfgfile.tmp" "$cfgfile" \
17526     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17527 test 0 -eq $? || _lt_function_replace_fail=:
17530   sed -e '/^func_len ()$/,/^} # func_len /c\
17531 func_len ()\
17533     func_len_result=${#1}\
17534 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17535   && mv -f "$cfgfile.tmp" "$cfgfile" \
17536     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17537 test 0 -eq $? || _lt_function_replace_fail=:
17541 if test x"$lt_shell_append" = xyes; then
17542   sed -e '/^func_append ()$/,/^} # func_append /c\
17543 func_append ()\
17545     eval "${1}+=\\${2}"\
17546 } # Extended-shell func_append 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   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17553 func_append_quoted ()\
17555 \    func_quote_for_eval "${2}"\
17556 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17557 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17558   && mv -f "$cfgfile.tmp" "$cfgfile" \
17559     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17560 test 0 -eq $? || _lt_function_replace_fail=:
17563   # Save a `func_append' function call where possible by direct use of '+='
17564   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17565     && mv -f "$cfgfile.tmp" "$cfgfile" \
17566       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17567   test 0 -eq $? || _lt_function_replace_fail=:
17568 else
17569   # Save a `func_append' function call even when '+=' is not available
17570   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17571     && mv -f "$cfgfile.tmp" "$cfgfile" \
17572       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17573   test 0 -eq $? || _lt_function_replace_fail=:
17576 if test x"$_lt_function_replace_fail" = x":"; then
17577   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17578 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17582    mv -f "$cfgfile" "$ofile" ||
17583     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17584   chmod +x "$ofile"
17586  ;;
17588   esac
17589 done # for ac_tag
17592 as_fn_exit 0
17593 _ACEOF
17594 ac_clean_files=$ac_clean_files_save
17596 test $ac_write_fail = 0 ||
17597   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17600 # configure is writing to config.log, and then calls config.status.
17601 # config.status does its own redirection, appending to config.log.
17602 # Unfortunately, on DOS this fails, as config.log is still kept open
17603 # by configure, so config.status won't be able to write to it; its
17604 # output is simply discarded.  So we exec the FD to /dev/null,
17605 # effectively closing config.log, so it can be properly (re)opened and
17606 # appended to by config.status.  When coming back to configure, we
17607 # need to make the FD available again.
17608 if test "$no_create" != yes; then
17609   ac_cs_success=:
17610   ac_config_status_args=
17611   test "$silent" = yes &&
17612     ac_config_status_args="$ac_config_status_args --quiet"
17613   exec 5>/dev/null
17614   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17615   exec 5>>config.log
17616   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17617   # would make configure fail if this is the last instruction.
17618   $ac_cs_success || as_fn_exit 1
17620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}