]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/ntp/sntp/libevent/configure
Fix multiple vulnerabilities of ntp. [SA-17:03]
[FreeBSD/releng/10.3.git] / contrib / ntp / sntp / libevent / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.1.5-beta'
591 PACKAGE_STRING='libevent 2.1.5-beta'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="event.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LEP_LDFLAGS
636 LEP_CPPFLAGS
637 LEP_CFLAGS
638 INSTALL_LIBEVENT_FALSE
639 INSTALL_LIBEVENT_TRUE
640 LIBEVENT_GC_SECTIONS
641 PTHREADS_FALSE
642 PTHREADS_TRUE
643 PTHREAD_CFLAGS
644 PTHREAD_LIBS
645 PTHREAD_CC
646 acx_pthread_config
647 SIGNAL_SUPPORT_FALSE
648 SIGNAL_SUPPORT_TRUE
649 EVPORT_BACKEND_FALSE
650 EVPORT_BACKEND_TRUE
651 EPOLL_BACKEND_FALSE
652 EPOLL_BACKEND_TRUE
653 LIBOBJS
654 KQUEUE_BACKEND_FALSE
655 KQUEUE_BACKEND_TRUE
656 DEVPOLL_BACKEND_FALSE
657 DEVPOLL_BACKEND_TRUE
658 POLL_BACKEND_FALSE
659 POLL_BACKEND_TRUE
660 SELECT_BACKEND_FALSE
661 SELECT_BACKEND_TRUE
662 STRLCPY_IMPL_FALSE
663 STRLCPY_IMPL_TRUE
664 BUILD_WITH_NO_UNDEFINED_FALSE
665 BUILD_WITH_NO_UNDEFINED_TRUE
666 BUILD_CYGWIN_FALSE
667 BUILD_CYGWIN_TRUE
668 BUILD_WIN32_FALSE
669 BUILD_WIN32_TRUE
670 OPENSSL_FALSE
671 OPENSSL_TRUE
672 OPENSSL_LIBS
673 OPENSSL_INCS
674 PKG_CONFIG
675 OPENSSL_LIBADD
676 EV_LIB_GDI
677 EV_LIB_WS32
678 ZLIB_REGRESS_FALSE
679 ZLIB_REGRESS_TRUE
680 ZLIB_LIBS
681 BUILD_REGRESS_FALSE
682 BUILD_REGRESS_TRUE
683 BUILD_SAMPLES_FALSE
684 BUILD_SAMPLES_TRUE
685 LIBTOOL_DEPS
686 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 DLLTOOL
697 OBJDUMP
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 LIBTOOL
704 SED
705 LN_S
706 EGREP
707 GREP
708 CPP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_gcc_warnings
805 enable_gcc_hardening
806 enable_thread_support
807 enable_malloc_replacement
808 enable_openssl
809 enable_debug_mode
810 enable_libevent_install
811 enable_libevent_regress
812 enable_samples
813 enable_function_sections
814 enable_verbose_debug
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_aix_soname
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_largefile
824 '
825       ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 LT_SYS_LIBRARY_PATH'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of libevent 2.1.5-beta:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules   less verbose build output (undo: "make V=1")
1454   --disable-silent-rules  verbose build output (undo: "make V=0")
1455   --enable-dependency-tracking
1456                           do not reject slow dependency extractors
1457   --disable-dependency-tracking
1458                           speeds up one-time build
1459   --disable-gcc-warnings  disable verbose warnings with GCC
1460   --enable-gcc-hardening  enable compiler security checks
1461   --disable-thread-support
1462                           disable support for threading
1463   --disable-malloc-replacement
1464                           disable support for replacing the memory mgt
1465                           functions
1466   --disable-openssl       disable support for openssl encryption
1467   --disable-debug-mode    disable support for running in debug mode
1468   --disable-libevent-install, disable installation of libevent
1469
1470   --disable-libevent-regress, skip regress in make check
1471
1472   --disable-samples, skip building of sample programs
1473
1474   --enable-function-sections, make static library allow smaller binaries with --gc-sections
1475
1476   --enable-verbose-debug, verbose debug logging
1477
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483   --disable-largefile     omit support for large files
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1489                           both]
1490   --with-aix-soname=aix|svr4|both
1491                           shared library versioning (aka "SONAME") variant to
1492                           provide on AIX, [default=aix].
1493   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1495                           compiler's sysroot if not specified).
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   LT_SYS_LIBRARY_PATH
1507               User-defined run-time library search path.
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to the package provider.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518   # If there are subdirs, report their specific --help.
1519   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520     test -d "$ac_dir" ||
1521       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522       continue
1523     ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529   # A ".." for each directory in $ac_dir_suffix.
1530   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531   case $ac_top_builddir_sub in
1532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534   esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542   .)  # We are building in place.
1543     ac_srcdir=.
1544     ac_top_srcdir=$ac_top_builddir_sub
1545     ac_abs_top_srcdir=$ac_pwd ;;
1546   [\\/]* | ?:[\\/]* )  # Absolute name.
1547     ac_srcdir=$srcdir$ac_dir_suffix;
1548     ac_top_srcdir=$srcdir
1549     ac_abs_top_srcdir=$srcdir ;;
1550   *) # Relative name.
1551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552     ac_top_srcdir=$ac_top_build_prefix$srcdir
1553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557     cd "$ac_dir" || { ac_status=$?; continue; }
1558     # Check for guested configure.
1559     if test -f "$ac_srcdir/configure.gnu"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562     elif test -f "$ac_srcdir/configure"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure" --help=recursive
1565     else
1566       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567     fi || ac_status=$?
1568     cd "$ac_pwd" || { ac_status=$?; break; }
1569   done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574   cat <<\_ACEOF
1575 libevent configure 2.1.5-beta
1576 generated by GNU Autoconf 2.69
1577
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582   exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   rm -f conftest.$ac_objext
1596   if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_compile") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } && {
1612          test -z "$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        } && test -s conftest.$ac_objext; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620         ac_retval=1
1621 fi
1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623   as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1668 # accordingly.
1669 ac_fn_c_check_header_mongrel ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if eval \${$3+:} false; then :
1673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676   $as_echo_n "(cached) " >&6
1677 fi
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 else
1682   # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h.  */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691   ac_header_compiler=yes
1692 else
1693   ac_header_compiler=no
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1698
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707   ac_header_preproc=yes
1708 else
1709   ac_header_preproc=no
1710 fi
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1714
1715 # So?  What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717   yes:no: )
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722     ;;
1723   no:yes:* )
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735 esac
1736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739   $as_echo_n "(cached) " >&6
1740 else
1741   eval "$3=\$ac_header_compiler"
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 fi
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_mongrel
1750
1751 # ac_fn_c_try_run LINENO
1752 # ----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1754 # that executables *can* be run.
1755 ac_fn_c_try_run ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_link") 2>&5
1766   ac_status=$?
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1769   { { case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_try") 2>&5
1776   ac_status=$?
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; }; }; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: program exited with status $ac_status" >&5
1782        $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785        ac_retval=$ac_status
1786 fi
1787   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789   as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_run
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811   eval "$3=yes"
1812 else
1813   eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_link ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   rm -f conftest.$ac_objext conftest$ac_exeext
1831   if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_link") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } && {
1847          test -z "$ac_c_werror_flag" ||
1848          test ! -s conftest.err
1849        } && test -s conftest$ac_exeext && {
1850          test "$cross_compiling" = yes ||
1851          test -x conftest$ac_exeext
1852        }; then :
1853   ac_retval=0
1854 else
1855   $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858         ac_retval=1
1859 fi
1860   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862   # interfere with the next link command; also delete a directory that is
1863   # left behind by Apple's compiler.  We do this before executing the actions.
1864   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_link
1869
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879   $as_echo_n "(cached) " >&6
1880 else
1881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1885 #define $2 innocuous_$2
1886
1887 /* System header to define __stub macros and hopefully few prototypes,
1888     which can conflict with char $2 (); below.
1889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890     <limits.h> exists even on freestanding compilers.  */
1891
1892 #ifdef __STDC__
1893 # include <limits.h>
1894 #else
1895 # include <assert.h>
1896 #endif
1897
1898 #undef $2
1899
1900 /* Override any GCC internal prototype to avoid an error.
1901    Use char because int might match the return type of a GCC
1902    builtin and then its argument prototype would still apply.  */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908     to always fail with ENOSYS.  Some functions are actually named
1909     something starting with __ and the normal name is an alias.  */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1913
1914 int
1915 main ()
1916 {
1917 return $2 ();
1918   ;
1919   return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"; then :
1923   eval "$3=yes"
1924 else
1925   eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext \
1928     conftest$ac_exeext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_func
1936
1937 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1938 # ---------------------------------------------
1939 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1940 # accordingly.
1941 ac_fn_c_check_decl ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   as_decl_name=`echo $2|sed 's/ *(.*//'`
1945   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1947 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 int
1955 main ()
1956 {
1957 #ifndef $as_decl_name
1958 #ifdef __cplusplus
1959   (void) $as_decl_use;
1960 #else
1961   (void) $as_decl_name;
1962 #endif
1963 #endif
1964
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981 } # ac_fn_c_check_decl
1982
1983 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984 # -------------------------------------------
1985 # Tests whether TYPE exists after having included INCLUDES, setting cache
1986 # variable VAR accordingly.
1987 ac_fn_c_check_type ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   eval "$3=no"
1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 int
2000 main ()
2001 {
2002 if (sizeof ($2))
2003          return 0;
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 int
2013 main ()
2014 {
2015 if (sizeof (($2)))
2016             return 0;
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022
2023 else
2024   eval "$3=yes"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035 } # ac_fn_c_check_type
2036
2037 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038 # --------------------------------------------
2039 # Tries to find the compile-time value of EXPR in a program that includes
2040 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2041 # computed
2042 ac_fn_c_compute_int ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if test "$cross_compiling" = yes; then
2046     # Depending upon the size, compute the lo and hi bounds.
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 static int test_array [1 - 2 * !(($2) >= 0)];
2054 test_array [0] = 0;
2055 return test_array [0];
2056
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062   ac_lo=0 ac_mid=0
2063   while :; do
2064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 $4
2067 int
2068 main ()
2069 {
2070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071 test_array [0] = 0;
2072 return test_array [0];
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0;
2099 return test_array [0];
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=-1 ac_mid=-1
2107   while :; do
2108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 test_array [0] = 0;
2116 return test_array [0];
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123   ac_lo=$ac_mid; break
2124 else
2125   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2126                         if test $ac_mid -le $ac_hi; then
2127                           ac_lo= ac_hi=
2128                           break
2129                         fi
2130                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133   done
2134 else
2135   ac_lo= ac_hi=
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 # Binary search between lo and hi bounds.
2141 while test "x$ac_lo" != "x$ac_hi"; do
2142   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 test_array [0] = 0;
2151 return test_array [0];
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158   ac_hi=$ac_mid
2159 else
2160   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 case $ac_lo in #((
2165 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2166 '') ac_retval=1 ;;
2167 esac
2168   else
2169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 static long int longval () { return $2; }
2173 static unsigned long int ulongval () { return $2; }
2174 #include <stdio.h>
2175 #include <stdlib.h>
2176 int
2177 main ()
2178 {
2179
2180   FILE *f = fopen ("conftest.val", "w");
2181   if (! f)
2182     return 1;
2183   if (($2) < 0)
2184     {
2185       long int i = longval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%ld", i);
2189     }
2190   else
2191     {
2192       unsigned long int i = ulongval ();
2193       if (i != ($2))
2194         return 1;
2195       fprintf (f, "%lu", i);
2196     }
2197   /* Do not output a trailing newline, as this causes \r\n confusion
2198      on some platforms.  */
2199   return ferror (f) || fclose (f) != 0;
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_run "$LINENO"; then :
2206   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2207 else
2208   ac_retval=1
2209 fi
2210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2211   conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 rm -f conftest.val
2213
2214   fi
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_compute_int
2219
2220 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2221 # ----------------------------------------------------
2222 # Tries to find if the field MEMBER exists in type AGGR, after including
2223 # INCLUDES, setting cache variable VAR accordingly.
2224 ac_fn_c_check_member ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2228 $as_echo_n "checking for $2.$3... " >&6; }
2229 if eval \${$4+:} false; then :
2230   $as_echo_n "(cached) " >&6
2231 else
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $5
2235 int
2236 main ()
2237 {
2238 static $2 ac_aggr;
2239 if (ac_aggr.$3)
2240 return 0;
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   eval "$4=yes"
2247 else
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $5
2251 int
2252 main ()
2253 {
2254 static $2 ac_aggr;
2255 if (sizeof ac_aggr.$3)
2256 return 0;
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262   eval "$4=yes"
2263 else
2264   eval "$4=no"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$4
2271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274
2275 } # ac_fn_c_check_member
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2279
2280 It was created by libevent $as_me 2.1.5-beta, which was
2281 generated by GNU Autoconf 2.69.  Invocation command line was
2282
2283   $ $0 $@
2284
2285 _ACEOF
2286 exec 5>>config.log
2287 {
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2292
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310 _ASUNAME
2311
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317     $as_echo "PATH: $as_dir"
2318   done
2319 IFS=$as_save_IFS
2320
2321 } >&5
2322
2323 cat >&5 <<_ACEOF
2324
2325
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2329
2330 _ACEOF
2331
2332
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2343 do
2344   for ac_arg
2345   do
2346     case $ac_arg in
2347     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349     | -silent | --silent | --silen | --sile | --sil)
2350       continue ;;
2351     *\'*)
2352       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353     esac
2354     case $ac_pass in
2355     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356     2)
2357       as_fn_append ac_configure_args1 " '$ac_arg'"
2358       if test $ac_must_keep_next = true; then
2359         ac_must_keep_next=false # Got value, back to normal.
2360       else
2361         case $ac_arg in
2362           *=* | --config-cache | -C | -disable-* | --disable-* \
2363           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365           | -with-* | --with-* | -without-* | --without-* | --x)
2366             case "$ac_configure_args0 " in
2367               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368             esac
2369             ;;
2370           -* ) ac_must_keep_next=true ;;
2371         esac
2372       fi
2373       as_fn_append ac_configure_args " '$ac_arg'"
2374       ;;
2375     esac
2376   done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2380
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log.  We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387   # Save into config.log some information that might help in debugging.
2388   {
2389     echo
2390
2391     $as_echo "## ---------------- ##
2392 ## Cache variables. ##
2393 ## ---------------- ##"
2394     echo
2395     # The following way of writing the cache mishandles newlines in values,
2396 (
2397   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398     eval ac_val=\$$ac_var
2399     case $ac_val in #(
2400     *${as_nl}*)
2401       case $ac_var in #(
2402       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404       esac
2405       case $ac_var in #(
2406       _ | IFS | as_nl) ;; #(
2407       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408       *) { eval $ac_var=; unset $ac_var;} ;;
2409       esac ;;
2410     esac
2411   done
2412   (set) 2>&1 |
2413     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414     *${as_nl}ac_space=\ *)
2415       sed -n \
2416         "s/'\''/'\''\\\\'\'''\''/g;
2417           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418       ;; #(
2419     *)
2420       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421       ;;
2422     esac |
2423     sort
2424 )
2425     echo
2426
2427     $as_echo "## ----------------- ##
2428 ## Output variables. ##
2429 ## ----------------- ##"
2430     echo
2431     for ac_var in $ac_subst_vars
2432     do
2433       eval ac_val=\$$ac_var
2434       case $ac_val in
2435       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436       esac
2437       $as_echo "$ac_var='\''$ac_val'\''"
2438     done | sort
2439     echo
2440
2441     if test -n "$ac_subst_files"; then
2442       $as_echo "## ------------------- ##
2443 ## File substitutions. ##
2444 ## ------------------- ##"
2445       echo
2446       for ac_var in $ac_subst_files
2447       do
2448         eval ac_val=\$$ac_var
2449         case $ac_val in
2450         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451         esac
2452         $as_echo "$ac_var='\''$ac_val'\''"
2453       done | sort
2454       echo
2455     fi
2456
2457     if test -s confdefs.h; then
2458       $as_echo "## ----------- ##
2459 ## confdefs.h. ##
2460 ## ----------- ##"
2461       echo
2462       cat confdefs.h
2463       echo
2464     fi
2465     test "$ac_signal" != 0 &&
2466       $as_echo "$as_me: caught signal $ac_signal"
2467     $as_echo "$as_me: exit $exit_status"
2468   } >&5
2469   rm -f core *.core core.conftest.* &&
2470     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471     exit $exit_status
2472 ' 0
2473 for ac_signal in 1 2 13 15; do
2474   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475 done
2476 ac_signal=0
2477
2478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2479 rm -f -r conftest* confdefs.h
2480
2481 $as_echo "/* confdefs.h */" > confdefs.h
2482
2483 # Predefined preprocessor variables.
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_NAME "$PACKAGE_NAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_STRING "$PACKAGE_STRING"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_URL "$PACKAGE_URL"
2507 _ACEOF
2508
2509
2510 # Let the site file select an alternate cache file if it wants to.
2511 # Prefer an explicitly selected file to automatically selected ones.
2512 ac_site_file1=NONE
2513 ac_site_file2=NONE
2514 if test -n "$CONFIG_SITE"; then
2515   # We do not want a PATH search for config.site.
2516   case $CONFIG_SITE in #((
2517     -*)  ac_site_file1=./$CONFIG_SITE;;
2518     */*) ac_site_file1=$CONFIG_SITE;;
2519     *)   ac_site_file1=./$CONFIG_SITE;;
2520   esac
2521 elif test "x$prefix" != xNONE; then
2522   ac_site_file1=$prefix/share/config.site
2523   ac_site_file2=$prefix/etc/config.site
2524 else
2525   ac_site_file1=$ac_default_prefix/share/config.site
2526   ac_site_file2=$ac_default_prefix/etc/config.site
2527 fi
2528 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529 do
2530   test "x$ac_site_file" = xNONE && continue
2531   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534     sed 's/^/| /' "$ac_site_file" >&5
2535     . "$ac_site_file" \
2536       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 as_fn_error $? "failed to load site script $ac_site_file
2539 See \`config.log' for more details" "$LINENO" 5; }
2540   fi
2541 done
2542
2543 if test -r "$cache_file"; then
2544   # Some versions of bash will fail to source /dev/null (special files
2545   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548 $as_echo "$as_me: loading cache $cache_file" >&6;}
2549     case $cache_file in
2550       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551       *)                      . "./$cache_file";;
2552     esac
2553   fi
2554 else
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557   >$cache_file
2558 fi
2559
2560 # Check that the precious variables saved in the cache have kept the same
2561 # value.
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565   eval ac_new_set=\$ac_env_${ac_var}_set
2566   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567   eval ac_new_val=\$ac_env_${ac_var}_value
2568   case $ac_old_set,$ac_new_set in
2569     set,)
2570       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572       ac_cache_corrupted=: ;;
2573     ,set)
2574       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576       ac_cache_corrupted=: ;;
2577     ,);;
2578     *)
2579       if test "x$ac_old_val" != "x$ac_new_val"; then
2580         # differences in whitespace do not lead to failure.
2581         ac_old_val_w=`echo x $ac_old_val`
2582         ac_new_val_w=`echo x $ac_new_val`
2583         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586           ac_cache_corrupted=:
2587         else
2588           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590           eval $ac_var=\$ac_old_val
2591         fi
2592         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2593 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2594         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2595 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2596       fi;;
2597   esac
2598   # Pass precious variables to config.status.
2599   if test "$ac_new_set" = set; then
2600     case $ac_new_val in
2601     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602     *) ac_arg=$ac_var=$ac_new_val ;;
2603     esac
2604     case " $ac_configure_args " in
2605       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2606       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607     esac
2608   fi
2609 done
2610 if $ac_cache_corrupted; then
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616 fi
2617 ## -------------------- ##
2618 ## Main body of script. ##
2619 ## -------------------- ##
2620
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627
2628
2629
2630
2631
2632 ac_aux_dir=
2633 for ac_dir in build-aux "$srcdir"/build-aux; do
2634   if test -f "$ac_dir/install-sh"; then
2635     ac_aux_dir=$ac_dir
2636     ac_install_sh="$ac_aux_dir/install-sh -c"
2637     break
2638   elif test -f "$ac_dir/install.sh"; then
2639     ac_aux_dir=$ac_dir
2640     ac_install_sh="$ac_aux_dir/install.sh -c"
2641     break
2642   elif test -f "$ac_dir/shtool"; then
2643     ac_aux_dir=$ac_dir
2644     ac_install_sh="$ac_aux_dir/shtool install -c"
2645     break
2646   fi
2647 done
2648 if test -z "$ac_aux_dir"; then
2649   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2650 fi
2651
2652 # These three variables are undocumented and unsupported,
2653 # and are intended to be withdrawn in a future Autoconf release.
2654 # They can cause serious problems if a builder's source tree is in a directory
2655 # whose full name contains unusual characters.
2656 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2657 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2658 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2659
2660
2661 am__api_version='1.15'
2662
2663 # Find a good install program.  We prefer a C program (faster),
2664 # so one script is as good as another.  But avoid the broken or
2665 # incompatible versions:
2666 # SysV /etc/install, /usr/sbin/install
2667 # SunOS /usr/etc/install
2668 # IRIX /sbin/install
2669 # AIX /bin/install
2670 # AmigaOS /C/install, which installs bootblocks on floppy discs
2671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2674 # OS/2's system install, which has a completely different semantic
2675 # ./install, which can be erroneously created by make from ./install.sh.
2676 # Reject install programs that cannot install multiple files.
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2678 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2679 if test -z "$INSTALL"; then
2680 if ${ac_cv_path_install+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     # Account for people who put trailing slashes in PATH elements.
2689 case $as_dir/ in #((
2690   ./ | .// | /[cC]/* | \
2691   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2692   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2693   /usr/ucb/* ) ;;
2694   *)
2695     # OSF1 and SCO ODT 3.0 have their own names for install.
2696     # Don't use installbsd from OSF since it installs stuff as root
2697     # by default.
2698     for ac_prog in ginstall scoinst install; do
2699       for ac_exec_ext in '' $ac_executable_extensions; do
2700         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2701           if test $ac_prog = install &&
2702             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703             # AIX install.  It has an incompatible calling convention.
2704             :
2705           elif test $ac_prog = install &&
2706             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707             # program-specific install script used by HP pwplus--don't use.
2708             :
2709           else
2710             rm -rf conftest.one conftest.two conftest.dir
2711             echo one > conftest.one
2712             echo two > conftest.two
2713             mkdir conftest.dir
2714             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2715               test -s conftest.one && test -s conftest.two &&
2716               test -s conftest.dir/conftest.one &&
2717               test -s conftest.dir/conftest.two
2718             then
2719               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2720               break 3
2721             fi
2722           fi
2723         fi
2724       done
2725     done
2726     ;;
2727 esac
2728
2729   done
2730 IFS=$as_save_IFS
2731
2732 rm -rf conftest.one conftest.two conftest.dir
2733
2734 fi
2735   if test "${ac_cv_path_install+set}" = set; then
2736     INSTALL=$ac_cv_path_install
2737   else
2738     # As a last resort, use the slow shell script.  Don't cache a
2739     # value for INSTALL within a source directory, because that will
2740     # break other packages using the cache if that directory is
2741     # removed, or if the value is a relative name.
2742     INSTALL=$ac_install_sh
2743   fi
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2746 $as_echo "$INSTALL" >&6; }
2747
2748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749 # It thinks the first close brace ends the variable substitution.
2750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751
2752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753
2754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2757 $as_echo_n "checking whether build environment is sane... " >&6; }
2758 # Reject unsafe characters in $srcdir or the absolute working directory
2759 # name.  Accept space and tab only in the latter.
2760 am_lf='
2761 '
2762 case `pwd` in
2763   *[\\\"\#\$\&\'\`$am_lf]*)
2764     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765 esac
2766 case $srcdir in
2767   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2768     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2769 esac
2770
2771 # Do 'set' in a subshell so we don't clobber the current shell's
2772 # arguments.  Must try -L first in case configure is actually a
2773 # symlink; some systems play weird games with the mod time of symlinks
2774 # (eg FreeBSD returns the mod time of the symlink's containing
2775 # directory).
2776 if (
2777    am_has_slept=no
2778    for am_try in 1 2; do
2779      echo "timestamp, slept: $am_has_slept" > conftest.file
2780      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2781      if test "$*" = "X"; then
2782         # -L didn't work.
2783         set X `ls -t "$srcdir/configure" conftest.file`
2784      fi
2785      if test "$*" != "X $srcdir/configure conftest.file" \
2786         && test "$*" != "X conftest.file $srcdir/configure"; then
2787
2788         # If neither matched, then we have a broken ls.  This can happen
2789         # if, for instance, CONFIG_SHELL is bash and it inherits a
2790         # broken ls alias from the environment.  This has actually
2791         # happened.  Such a system could not be considered "sane".
2792         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2793   alias in your environment" "$LINENO" 5
2794      fi
2795      if test "$2" = conftest.file || test $am_try -eq 2; then
2796        break
2797      fi
2798      # Just in case.
2799      sleep 1
2800      am_has_slept=yes
2801    done
2802    test "$2" = conftest.file
2803    )
2804 then
2805    # Ok.
2806    :
2807 else
2808    as_fn_error $? "newly created file is older than distributed files!
2809 Check your system clock" "$LINENO" 5
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 # If we didn't sleep, we still need to ensure time stamps of config.status and
2814 # generated files are strictly newer.
2815 am_sleep_pid=
2816 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2817   ( sleep 1 ) &
2818   am_sleep_pid=$!
2819 fi
2820
2821 rm -f conftest.file
2822
2823 test "$program_prefix" != NONE &&
2824   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825 # Use a double $ so make ignores it.
2826 test "$program_suffix" != NONE &&
2827   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828 # Double any \ or $.
2829 # By default was `s,x,x', remove it if useless.
2830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2832
2833 # Expand $ac_aux_dir to an absolute path.
2834 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2835
2836 if test x"${MISSING+set}" != xset; then
2837   case $am_aux_dir in
2838   *\ * | *\     *)
2839     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2840   *)
2841     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2842   esac
2843 fi
2844 # Use eval to expand $SHELL
2845 if eval "$MISSING --is-lightweight"; then
2846   am_missing_run="$MISSING "
2847 else
2848   am_missing_run=
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2850 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2851 fi
2852
2853 if test x"${install_sh+set}" != xset; then
2854   case $am_aux_dir in
2855   *\ * | *\     *)
2856     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2857   *)
2858     install_sh="\${SHELL} $am_aux_dir/install-sh"
2859   esac
2860 fi
2861
2862 # Installed binaries are usually stripped using 'strip' when the user
2863 # run "make install-strip".  However 'strip' might not be the right
2864 # tool to use in cross-compilation environments, therefore Automake
2865 # will honor the 'STRIP' environment variable to overrule this program.
2866 if test "$cross_compiling" != no; then
2867   if test -n "$ac_tool_prefix"; then
2868   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_STRIP+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$STRIP"; then
2876   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 STRIP=$ac_cv_prog_STRIP
2896 if test -n "$STRIP"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898 $as_echo "$STRIP" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_STRIP"; then
2907   ac_ct_STRIP=$STRIP
2908   # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$ac_ct_STRIP"; then
2916   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_ac_ct_STRIP="strip"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2938 $as_echo "$ac_ct_STRIP" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944   if test "x$ac_ct_STRIP" = x; then
2945     STRIP=":"
2946   else
2947     case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953     STRIP=$ac_ct_STRIP
2954   fi
2955 else
2956   STRIP="$ac_cv_prog_STRIP"
2957 fi
2958
2959 fi
2960 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2963 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2964 if test -z "$MKDIR_P"; then
2965   if ${ac_cv_path_mkdir+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973     for ac_prog in mkdir gmkdir; do
2974          for ac_exec_ext in '' $ac_executable_extensions; do
2975            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2976            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977              'mkdir (GNU coreutils) '* | \
2978              'mkdir (coreutils) '* | \
2979              'mkdir (fileutils) '4.1*)
2980                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2981                break 3;;
2982            esac
2983          done
2984        done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989
2990   test -d ./--version && rmdir ./--version
2991   if test "${ac_cv_path_mkdir+set}" = set; then
2992     MKDIR_P="$ac_cv_path_mkdir -p"
2993   else
2994     # As a last resort, use the slow shell script.  Don't cache a
2995     # value for MKDIR_P within a source directory, because that will
2996     # break other packages using the cache if that directory is
2997     # removed, or if the value is a relative name.
2998     MKDIR_P="$ac_install_sh -d"
2999   fi
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002 $as_echo "$MKDIR_P" >&6; }
3003
3004 for ac_prog in gawk mawk nawk awk
3005 do
3006   # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_AWK+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$AWK"; then
3014   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_AWK="$ac_prog"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043   test -n "$AWK" && break
3044 done
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056         @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060   *@@@%%%=?*=@@@%%%*)
3061     eval ac_cv_prog_make_${ac_make}_set=yes;;
3062   *)
3063     eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3066 fi
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070   SET_MAKE=
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074   SET_MAKE="MAKE=${MAKE-make}"
3075 fi
3076
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080   am__leading_dot=.
3081 else
3082   am__leading_dot=_
3083 fi
3084 rmdir .tst 2>/dev/null
3085
3086 # Check whether --enable-silent-rules was given.
3087 if test "${enable_silent_rules+set}" = set; then :
3088   enableval=$enable_silent_rules;
3089 fi
3090
3091 case $enable_silent_rules in # (((
3092   yes) AM_DEFAULT_VERBOSITY=0;;
3093    no) AM_DEFAULT_VERBOSITY=1;;
3094     *) AM_DEFAULT_VERBOSITY=1;;
3095 esac
3096 am_make=${MAKE-make}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3098 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3099 if ${am_cv_make_support_nested_variables+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if $as_echo 'TRUE=$(BAR$(V))
3103 BAR0=false
3104 BAR1=true
3105 V=1
3106 am__doit:
3107         @$(TRUE)
3108 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3109   am_cv_make_support_nested_variables=yes
3110 else
3111   am_cv_make_support_nested_variables=no
3112 fi
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3115 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3116 if test $am_cv_make_support_nested_variables = yes; then
3117     AM_V='$(V)'
3118   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119 else
3120   AM_V=$AM_DEFAULT_VERBOSITY
3121   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3122 fi
3123 AM_BACKSLASH='\'
3124
3125 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127   # is not polluted with repeated "-I."
3128   am__isrc=' -I$(srcdir)'
3129   # test to see if srcdir already configured
3130   if test -f $srcdir/config.status; then
3131     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132   fi
3133 fi
3134
3135 # test whether we have cygpath
3136 if test -z "$CYGPATH_W"; then
3137   if (cygpath --version) >/dev/null 2>/dev/null; then
3138     CYGPATH_W='cygpath -w'
3139   else
3140     CYGPATH_W=echo
3141   fi
3142 fi
3143
3144
3145 # Define the identity of the package.
3146  PACKAGE='libevent'
3147  VERSION='2.1.5-beta'
3148
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE "$PACKAGE"
3152 _ACEOF
3153
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define VERSION "$VERSION"
3157 _ACEOF
3158
3159 # Some tools Automake needs.
3160
3161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175 # For better backward compatibility.  To be removed once Automake 1.9.x
3176 # dies out for good.  For more background, see:
3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3178 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3179 mkdir_p='$(MKDIR_P)'
3180
3181 # We need awk for the "check" target (and possibly the TAP driver).  The
3182 # system "awk" is bad on some platforms.
3183 # Always define AMTAR for backward compatibility.  Yes, it's still used
3184 # in the wild :-(  We should find a proper way to deprecate it ...
3185 AMTAR='$${TAR-tar}'
3186
3187
3188 # We'll loop over all known methods to create a tar archive until one works.
3189 _am_tools='gnutar  pax cpio none'
3190
3191 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192
3193
3194
3195
3196
3197
3198 # POSIX will say in a future version that running "rm -f" with no argument
3199 # is OK; and we want to be able to make that assumption in our Makefile
3200 # recipes.  So use an aggressive probe to check that the usage we want is
3201 # actually supported "in the wild" to an acceptable degree.
3202 # See automake bug#10828.
3203 # To make any issue more visible, cause the running configure to be aborted
3204 # by default if the 'rm' program in use doesn't match our expectations; the
3205 # user can still override this though.
3206 if rm -f && rm -fr && rm -rf; then : OK; else
3207   cat >&2 <<'END'
3208 Oops!
3209
3210 Your 'rm' program seems unable to run without file operands specified
3211 on the command line, even when the '-f' option is present.  This is contrary
3212 to the behaviour of most rm programs out there, and not conforming with
3213 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3214
3215 Please tell bug-automake@gnu.org about your system, including the value
3216 of your $PATH and any error possibly output before this message.  This
3217 can help us improve future automake versions.
3218
3219 END
3220   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3221     echo 'Configuration will proceed anyway, since you have set the' >&2
3222     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3223     echo >&2
3224   else
3225     cat >&2 <<'END'
3226 Aborting the configuration process, to ensure you take notice of the issue.
3227
3228 You can download and install GNU coreutils to get an 'rm' implementation
3229 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3230
3231 If you want to complete the configuration process using your problematic
3232 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3233 to "yes", and re-run configure.
3234
3235 END
3236     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3237   fi
3238 fi
3239
3240 # Check whether --enable-silent-rules was given.
3241 if test "${enable_silent_rules+set}" = set; then :
3242   enableval=$enable_silent_rules;
3243 fi
3244
3245 case $enable_silent_rules in # (((
3246   yes) AM_DEFAULT_VERBOSITY=0;;
3247    no) AM_DEFAULT_VERBOSITY=1;;
3248     *) AM_DEFAULT_VERBOSITY=0;;
3249 esac
3250 am_make=${MAKE-make}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3252 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3253 if ${am_cv_make_support_nested_variables+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if $as_echo 'TRUE=$(BAR$(V))
3257 BAR0=false
3258 BAR1=true
3259 V=1
3260 am__doit:
3261         @$(TRUE)
3262 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3263   am_cv_make_support_nested_variables=yes
3264 else
3265   am_cv_make_support_nested_variables=no
3266 fi
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3269 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3270 if test $am_cv_make_support_nested_variables = yes; then
3271     AM_V='$(V)'
3272   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3273 else
3274   AM_V=$AM_DEFAULT_VERBOSITY
3275   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3276 fi
3277 AM_BACKSLASH='\'
3278
3279 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3280
3281
3282 $as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h
3283
3284
3285 if test "$prefix" = "NONE"; then
3286    prefix="/usr/local"
3287 fi
3288
3289
3290 # Make sure we can run config.sub.
3291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3292   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3295 $as_echo_n "checking build system type... " >&6; }
3296 if ${ac_cv_build+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   ac_build_alias=$build_alias
3300 test "x$ac_build_alias" = x &&
3301   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3302 test "x$ac_build_alias" = x &&
3303   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3305   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3306
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3309 $as_echo "$ac_cv_build" >&6; }
3310 case $ac_cv_build in
3311 *-*-*) ;;
3312 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3313 esac
3314 build=$ac_cv_build
3315 ac_save_IFS=$IFS; IFS='-'
3316 set x $ac_cv_build
3317 shift
3318 build_cpu=$1
3319 build_vendor=$2
3320 shift; shift
3321 # Remember, the first character of IFS is used to create $*,
3322 # except with old shells:
3323 build_os=$*
3324 IFS=$ac_save_IFS
3325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3326
3327
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3329 $as_echo_n "checking host system type... " >&6; }
3330 if ${ac_cv_host+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test "x$host_alias" = x; then
3334   ac_cv_host=$ac_cv_build
3335 else
3336   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3337     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3338 fi
3339
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3342 $as_echo "$ac_cv_host" >&6; }
3343 case $ac_cv_host in
3344 *-*-*) ;;
3345 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3346 esac
3347 host=$ac_cv_host
3348 ac_save_IFS=$IFS; IFS='-'
3349 set x $ac_cv_host
3350 shift
3351 host_cpu=$1
3352 host_vendor=$2
3353 shift; shift
3354 # Remember, the first character of IFS is used to create $*,
3355 # except with old shells:
3356 host_os=$*
3357 IFS=$ac_save_IFS
3358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3359
3360
3361 DEPDIR="${am__leading_dot}deps"
3362
3363 ac_config_commands="$ac_config_commands depfiles"
3364
3365
3366 am_make=${MAKE-make}
3367 cat > confinc << 'END'
3368 am__doit:
3369         @echo this is the am__doit target
3370 .PHONY: am__doit
3371 END
3372 # If we don't find an include directive, just comment out the code.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3374 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3375 am__include="#"
3376 am__quote=
3377 _am_result=none
3378 # First try GNU make style include.
3379 echo "include confinc" > confmf
3380 # Ignore all kinds of additional output from 'make'.
3381 case `$am_make -s -f confmf 2> /dev/null` in #(
3382 *the\ am__doit\ target*)
3383   am__include=include
3384   am__quote=
3385   _am_result=GNU
3386   ;;
3387 esac
3388 # Now try BSD make style include.
3389 if test "$am__include" = "#"; then
3390    echo '.include "confinc"' > confmf
3391    case `$am_make -s -f confmf 2> /dev/null` in #(
3392    *the\ am__doit\ target*)
3393      am__include=.include
3394      am__quote="\""
3395      _am_result=BSD
3396      ;;
3397    esac
3398 fi
3399
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3402 $as_echo "$_am_result" >&6; }
3403 rm -f confinc confmf
3404
3405 # Check whether --enable-dependency-tracking was given.
3406 if test "${enable_dependency_tracking+set}" = set; then :
3407   enableval=$enable_dependency_tracking;
3408 fi
3409
3410 if test "x$enable_dependency_tracking" != xno; then
3411   am_depcomp="$ac_aux_dir/depcomp"
3412   AMDEPBACKSLASH='\'
3413   am__nodep='_no'
3414 fi
3415  if test "x$enable_dependency_tracking" != xno; then
3416   AMDEP_TRUE=
3417   AMDEP_FALSE='#'
3418 else
3419   AMDEP_TRUE='#'
3420   AMDEP_FALSE=
3421 fi
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 if test -n "$ac_tool_prefix"; then
3430   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   if test -n "$CC"; then
3438   ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_exec_ext in '' $ac_executable_extensions; do
3446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452   done
3453 IFS=$as_save_IFS
3454
3455 fi
3456 fi
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 $as_echo "$CC" >&6; }
3461 else
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 fi
3465
3466
3467 fi
3468 if test -z "$ac_cv_prog_CC"; then
3469   ac_ct_CC=$CC
3470   # Extract the first word of "gcc", so it can be a program name with args.
3471 set dummy gcc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$ac_ct_CC"; then
3478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_prog_ac_ct_CC="gcc"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506   if test "x$ac_ct_CC" = x; then
3507     CC=""
3508   else
3509     case $cross_compiling:$ac_tool_warned in
3510 yes:)
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3513 ac_tool_warned=yes ;;
3514 esac
3515     CC=$ac_ct_CC
3516   fi
3517 else
3518   CC="$ac_cv_prog_CC"
3519 fi
3520
3521 if test -z "$CC"; then
3522           if test -n "$ac_tool_prefix"; then
3523     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3524 set dummy ${ac_tool_prefix}cc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$CC"; then
3531   ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_prog_CC="${ac_tool_prefix}cc"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 $as_echo "$CC" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559
3560   fi
3561 fi
3562 if test -z "$CC"; then
3563   # Extract the first word of "cc", so it can be a program name with args.
3564 set dummy cc; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_CC+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   if test -n "$CC"; then
3571   ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573   ac_prog_rejected=no
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579     for ac_exec_ext in '' $ac_executable_extensions; do
3580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3582        ac_prog_rejected=yes
3583        continue
3584      fi
3585     ac_cv_prog_CC="cc"
3586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590   done
3591 IFS=$as_save_IFS
3592
3593 if test $ac_prog_rejected = yes; then
3594   # We found a bogon in the path, so make sure we never use it.
3595   set dummy $ac_cv_prog_CC
3596   shift
3597   if test $# != 0; then
3598     # We chose a different compiler from the bogus one.
3599     # However, it has the same basename, so the bogon will be chosen
3600     # first if we set CC to just the basename; use the full file name.
3601     shift
3602     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3603   fi
3604 fi
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3611 else
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$CC"; then
3619   if test -n "$ac_tool_prefix"; then
3620   for ac_prog in cl.exe
3621   do
3622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_CC+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$CC"; then
3630   ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644   done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658
3659     test -n "$CC" && break
3660   done
3661 fi
3662 if test -z "$CC"; then
3663   ac_ct_CC=$CC
3664   for ac_prog in cl.exe
3665 do
3666   # Extract the first word of "$ac_prog", so it can be a program name with args.
3667 set dummy $ac_prog; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673   if test -n "$ac_ct_CC"; then
3674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681     for ac_exec_ext in '' $ac_executable_extensions; do
3682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683     ac_cv_prog_ac_ct_CC="$ac_prog"
3684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688   done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3697 else
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3701
3702
3703   test -n "$ac_ct_CC" && break
3704 done
3705
3706   if test "x$ac_ct_CC" = x; then
3707     CC=""
3708   else
3709     case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715     CC=$ac_ct_CC
3716   fi
3717 fi
3718
3719 fi
3720
3721
3722 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "no acceptable C compiler found in \$PATH
3725 See \`config.log' for more details" "$LINENO" 5; }
3726
3727 # Provide some information about the compiler.
3728 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3729 set X $ac_compile
3730 ac_compiler=$2
3731 for ac_option in --version -v -V -qversion; do
3732   { { ac_try="$ac_compiler $ac_option >&5"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3740   ac_status=$?
3741   if test -s conftest.err; then
3742     sed '10a\
3743 ... rest of stderr output deleted ...
3744          10q' conftest.err >conftest.er1
3745     cat conftest.er1 >&5
3746   fi
3747   rm -f conftest.er1 conftest.err
3748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749   test $ac_status = 0; }
3750 done
3751
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754
3755 int
3756 main ()
3757 {
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 ac_clean_files_save=$ac_clean_files
3764 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3765 # Try to create an executable without -o first, disregard a.out.
3766 # It will help us diagnose broken compilers, and finding out an intuition
3767 # of exeext.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3769 $as_echo_n "checking whether the C compiler works... " >&6; }
3770 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3771
3772 # The possible output files:
3773 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3774
3775 ac_rmfiles=
3776 for ac_file in $ac_files
3777 do
3778   case $ac_file in
3779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3781   esac
3782 done
3783 rm -f $ac_rmfiles
3784
3785 if { { ac_try="$ac_link_default"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792   (eval "$ac_link_default") 2>&5
3793   ac_status=$?
3794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795   test $ac_status = 0; }; then :
3796   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3798 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3799 # so that the user can short-circuit this test for compilers unknown to
3800 # Autoconf.
3801 for ac_file in $ac_files ''
3802 do
3803   test -f "$ac_file" || continue
3804   case $ac_file in
3805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3806         ;;
3807     [ab].out )
3808         # We found the default executable, but exeext='' is most
3809         # certainly right.
3810         break;;
3811     *.* )
3812         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3813         then :; else
3814            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3815         fi
3816         # We set ac_cv_exeext here because the later test for it is not
3817         # safe: cross compilers may not add the suffix if given an `-o'
3818         # argument, so we may need to know it at that point already.
3819         # Even if this section looks crufty: it has the advantage of
3820         # actually working.
3821         break;;
3822     * )
3823         break;;
3824   esac
3825 done
3826 test "$ac_cv_exeext" = no && ac_cv_exeext=
3827
3828 else
3829   ac_file=''
3830 fi
3831 if test -z "$ac_file"; then :
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 as_fn_error 77 "C compiler cannot create executables
3840 See \`config.log' for more details" "$LINENO" 5; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3843 $as_echo "yes" >&6; }
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3846 $as_echo_n "checking for C compiler default output file name... " >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3848 $as_echo "$ac_file" >&6; }
3849 ac_exeext=$ac_cv_exeext
3850
3851 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3852 ac_clean_files=$ac_clean_files_save
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3854 $as_echo_n "checking for suffix of executables... " >&6; }
3855 if { { ac_try="$ac_link"
3856 case "(($ac_try" in
3857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858   *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862   (eval "$ac_link") 2>&5
3863   ac_status=$?
3864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865   test $ac_status = 0; }; then :
3866   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3867 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3868 # work properly (i.e., refer to `conftest.exe'), while it won't with
3869 # `rm'.
3870 for ac_file in conftest.exe conftest conftest.*; do
3871   test -f "$ac_file" || continue
3872   case $ac_file in
3873     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3875           break;;
3876     * ) break;;
3877   esac
3878 done
3879 else
3880   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3883 See \`config.log' for more details" "$LINENO" 5; }
3884 fi
3885 rm -f conftest conftest$ac_cv_exeext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3887 $as_echo "$ac_cv_exeext" >&6; }
3888
3889 rm -f conftest.$ac_ext
3890 EXEEXT=$ac_cv_exeext
3891 ac_exeext=$EXEEXT
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894 #include <stdio.h>
3895 int
3896 main ()
3897 {
3898 FILE *f = fopen ("conftest.out", "w");
3899  return ferror (f) || fclose (f) != 0;
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 ac_clean_files="$ac_clean_files conftest.out"
3906 # Check that the compiler produces executables we can run.  If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3909 $as_echo_n "checking whether we are cross compiling... " >&6; }
3910 if test "$cross_compiling" != yes; then
3911   { { ac_try="$ac_link"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918   (eval "$ac_link") 2>&5
3919   ac_status=$?
3920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921   test $ac_status = 0; }
3922   if { ac_try='./conftest$ac_cv_exeext'
3923   { { case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929   (eval "$ac_try") 2>&5
3930   ac_status=$?
3931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }; }; then
3933     cross_compiling=no
3934   else
3935     if test "$cross_compiling" = maybe; then
3936         cross_compiling=yes
3937     else
3938         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot run C compiled programs.
3941 If you meant to cross compile, use \`--host'.
3942 See \`config.log' for more details" "$LINENO" 5; }
3943     fi
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947 $as_echo "$cross_compiling" >&6; }
3948
3949 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3950 ac_clean_files=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3952 $as_echo_n "checking for suffix of object files... " >&6; }
3953 if ${ac_cv_objext+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.o conftest.obj
3968 if { { ac_try="$ac_compile"
3969 case "(($ac_try" in
3970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971   *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975   (eval "$ac_compile") 2>&5
3976   ac_status=$?
3977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978   test $ac_status = 0; }; then :
3979   for ac_file in conftest.o conftest.obj conftest.*; do
3980   test -f "$ac_file" || continue;
3981   case $ac_file in
3982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3983     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3984        break;;
3985   esac
3986 done
3987 else
3988   $as_echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $? "cannot compute suffix of object files: cannot compile
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 fi
3996 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3999 $as_echo "$ac_cv_objext" >&6; }
4000 OBJEXT=$ac_cv_objext
4001 ac_objext=$OBJEXT
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4003 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4004 if ${ac_cv_c_compiler_gnu+:} false; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013 #ifndef __GNUC__
4014        choke me
4015 #endif
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022   ac_compiler_gnu=yes
4023 else
4024   ac_compiler_gnu=no
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4031 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4032 if test $ac_compiler_gnu = yes; then
4033   GCC=yes
4034 else
4035   GCC=
4036 fi
4037 ac_test_CFLAGS=${CFLAGS+set}
4038 ac_save_CFLAGS=$CFLAGS
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4040 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4041 if ${ac_cv_prog_cc_g+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   ac_save_c_werror_flag=$ac_c_werror_flag
4045    ac_c_werror_flag=yes
4046    ac_cv_prog_cc_g=no
4047    CFLAGS="-g"
4048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050
4051 int
4052 main ()
4053 {
4054
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060   ac_cv_prog_cc_g=yes
4061 else
4062   CFLAGS=""
4063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065
4066 int
4067 main ()
4068 {
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075
4076 else
4077   ac_c_werror_flag=$ac_save_c_werror_flag
4078          CFLAGS="-g"
4079          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091   ac_cv_prog_cc_g=yes
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098    ac_c_werror_flag=$ac_save_c_werror_flag
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4101 $as_echo "$ac_cv_prog_cc_g" >&6; }
4102 if test "$ac_test_CFLAGS" = set; then
4103   CFLAGS=$ac_save_CFLAGS
4104 elif test $ac_cv_prog_cc_g = yes; then
4105   if test "$GCC" = yes; then
4106     CFLAGS="-g -O2"
4107   else
4108     CFLAGS="-g"
4109   fi
4110 else
4111   if test "$GCC" = yes; then
4112     CFLAGS="-O2"
4113   else
4114     CFLAGS=
4115   fi
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4118 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4119 if ${ac_cv_prog_cc_c89+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   ac_cv_prog_cc_c89=no
4123 ac_save_CC=$CC
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #include <stdarg.h>
4127 #include <stdio.h>
4128 struct stat;
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4133      char **p;
4134      int i;
4135 {
4136   return p[i];
4137 }
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4139 {
4140   char *s;
4141   va_list v;
4142   va_start (v,p);
4143   s = g (p, va_arg (v,int));
4144   va_end (v);
4145   return s;
4146 }
4147
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4149    function prototypes and stuff, but not '\xHH' hex character constants.
4150    These don't provoke an error unfortunately, instead are silently treated
4151    as 'x'.  The following induces an error, until -std is added to get
4152    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4153    array size at least.  It's necessary to write '\x00'==0 to get something
4154    that's true only with -std.  */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158    inside strings and character constants.  */
4159 #define FOO(x) 'x'
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166 int argc;
4167 char **argv;
4168 int
4169 main ()
4170 {
4171 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 do
4179   CC="$ac_save_CC $ac_arg"
4180   if ac_fn_c_try_compile "$LINENO"; then :
4181   ac_cv_prog_cc_c89=$ac_arg
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext
4184   test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4188
4189 fi
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in
4192   x)
4193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195   xno)
4196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4198   *)
4199     CC="$CC $ac_cv_prog_cc_c89"
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4219 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4220 if ${am_cv_prog_cc_c_o+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234   # Make sure it works both with $CC and with simple cc.
4235   # Following AC_PROG_CC_C_O, we do the test twice because some
4236   # compilers refuse to overwrite an existing .o file with -o,
4237   # though they will create one.
4238   am_cv_prog_cc_c_o=yes
4239   for am_i in 1 2; do
4240     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4241    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4242    ac_status=$?
4243    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244    (exit $ac_status); } \
4245          && test -f conftest2.$ac_objext; then
4246       : OK
4247     else
4248       am_cv_prog_cc_c_o=no
4249       break
4250     fi
4251   done
4252   rm -f core conftest*
4253   unset am_i
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4256 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4257 if test "$am_cv_prog_cc_c_o" != yes; then
4258    # Losing compiler, so override with the script.
4259    # FIXME: It is wrong to rewrite CC.
4260    # But if we don't then we get into trouble of one sort or another.
4261    # A longer-term fix would be to have automake use am__CC in this case,
4262    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4263    CC="$am_aux_dir/compile $CC"
4264 fi
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271
4272 depcc="$CC"   am_compiler_list=
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280   # We make a subdir and do the tests there.  Otherwise we can end up
4281   # making bogus files that we don't know about and never remove.  For
4282   # instance it was reported that on HP-UX the gcc test will end up
4283   # making a dummy file named 'D' -- because '-MD' means "put the output
4284   # in D".
4285   rm -rf conftest.dir
4286   mkdir conftest.dir
4287   # Copy depcomp to subdir because otherwise we won't find it if we're
4288   # using a relative directory.
4289   cp "$am_depcomp" conftest.dir
4290   cd conftest.dir
4291   # We will build objects and dependencies in a subdirectory because
4292   # it helps to detect inapplicable dependency modes.  For instance
4293   # both Tru64's cc and ICC support -MD to output dependencies as a
4294   # side effect of compilation, but ICC will put the dependencies in
4295   # the current directory while Tru64 will put them in the object
4296   # directory.
4297   mkdir sub
4298
4299   am_cv_CC_dependencies_compiler_type=none
4300   if test "$am_compiler_list" = ""; then
4301      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4302   fi
4303   am__universal=false
4304   case " $depcc " in #(
4305      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4306      esac
4307
4308   for depmode in $am_compiler_list; do
4309     # Setup a source with many dependencies, because some compilers
4310     # like to wrap large dependency lists on column 80 (with \), and
4311     # we should not choose a depcomp mode which is confused by this.
4312     #
4313     # We need to recreate these files for each test, as the compiler may
4314     # overwrite some of them when testing with obscure command lines.
4315     # This happens at least with the AIX C compiler.
4316     : > sub/conftest.c
4317     for i in 1 2 3 4 5 6; do
4318       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4319       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4320       # Solaris 10 /bin/sh.
4321       echo '/* dummy */' > sub/conftst$i.h
4322     done
4323     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4324
4325     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4326     # mode.  It turns out that the SunPro C++ compiler does not properly
4327     # handle '-M -o', and we need to detect this.  Also, some Intel
4328     # versions had trouble with output in subdirs.
4329     am__obj=sub/conftest.${OBJEXT-o}
4330     am__minus_obj="-o $am__obj"
4331     case $depmode in
4332     gcc)
4333       # This depmode causes a compiler race in universal mode.
4334       test "$am__universal" = false || continue
4335       ;;
4336     nosideeffect)
4337       # After this tag, mechanisms are not by side-effect, so they'll
4338       # only be used when explicitly requested.
4339       if test "x$enable_dependency_tracking" = xyes; then
4340         continue
4341       else
4342         break
4343       fi
4344       ;;
4345     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4346       # This compiler won't grok '-c -o', but also, the minuso test has
4347       # not run yet.  These depmodes are late enough in the game, and
4348       # so weak that their functioning should not be impacted.
4349       am__obj=conftest.${OBJEXT-o}
4350       am__minus_obj=
4351       ;;
4352     none) break ;;
4353     esac
4354     if depmode=$depmode \
4355        source=sub/conftest.c object=$am__obj \
4356        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4358          >/dev/null 2>conftest.err &&
4359        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4360        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4361        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4362        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4363       # icc doesn't choke on unknown options, it will just issue warnings
4364       # or remarks (even with -Werror).  So we grep stderr for any message
4365       # that says an option was ignored or not supported.
4366       # When given -MP, icc 7.0 and 7.1 complain thusly:
4367       #   icc: Command line warning: ignoring option '-M'; no argument required
4368       # The diagnosis changed in icc 8.0:
4369       #   icc: Command line remark: option '-MP' not supported
4370       if (grep 'ignoring option' conftest.err ||
4371           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372         am_cv_CC_dependencies_compiler_type=$depmode
4373         break
4374       fi
4375     fi
4376   done
4377
4378   cd ..
4379   rm -rf conftest.dir
4380 else
4381   am_cv_CC_dependencies_compiler_type=none
4382 fi
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4386 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4387 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4388
4389  if
4390   test "x$enable_dependency_tracking" != xno \
4391   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392   am__fastdepCC_TRUE=
4393   am__fastdepCC_FALSE='#'
4394 else
4395   am__fastdepCC_TRUE='#'
4396   am__fastdepCC_FALSE=
4397 fi
4398
4399
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4407 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4408 # On Suns, sometimes $CPP names a directory.
4409 if test -n "$CPP" && test -d "$CPP"; then
4410   CPP=
4411 fi
4412 if test -z "$CPP"; then
4413   if ${ac_cv_prog_CPP+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416       # Double quotes because CPP needs to be expanded
4417     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4418     do
4419       ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4421 do
4422   # Use a header file that comes with gcc, so configuring glibc
4423   # with a fresh cross-compiler works.
4424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425   # <limits.h> exists even on freestanding compilers.
4426   # On the NeXT, cc -E runs the code through the compiler's parser,
4427   # not just through cpp. "Syntax error" is here to catch this case.
4428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435                      Syntax error
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4438
4439 else
4440   # Broken: fails on valid input.
4441 continue
4442 fi
4443 rm -f conftest.err conftest.i conftest.$ac_ext
4444
4445   # OK, works on sane cases.  Now check whether nonexistent headers
4446   # can be detected and how.
4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #include <ac_nonexistent.h>
4450 _ACEOF
4451 if ac_fn_c_try_cpp "$LINENO"; then :
4452   # Broken: success on invalid input.
4453 continue
4454 else
4455   # Passes both tests.
4456 ac_preproc_ok=:
4457 break
4458 fi
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461 done
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.i conftest.err conftest.$ac_ext
4464 if $ac_preproc_ok; then :
4465   break
4466 fi
4467
4468     done
4469     ac_cv_prog_CPP=$CPP
4470
4471 fi
4472   CPP=$ac_cv_prog_CPP
4473 else
4474   ac_cv_prog_CPP=$CPP
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4477 $as_echo "$CPP" >&6; }
4478 ac_preproc_ok=false
4479 for ac_c_preproc_warn_flag in '' yes
4480 do
4481   # Use a header file that comes with gcc, so configuring glibc
4482   # with a fresh cross-compiler works.
4483   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484   # <limits.h> exists even on freestanding compilers.
4485   # On the NeXT, cc -E runs the code through the compiler's parser,
4486   # not just through cpp. "Syntax error" is here to catch this case.
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494                      Syntax error
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497
4498 else
4499   # Broken: fails on valid input.
4500 continue
4501 fi
4502 rm -f conftest.err conftest.i conftest.$ac_ext
4503
4504   # OK, works on sane cases.  Now check whether nonexistent headers
4505   # can be detected and how.
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #include <ac_nonexistent.h>
4509 _ACEOF
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4511   # Broken: success on invalid input.
4512 continue
4513 else
4514   # Passes both tests.
4515 ac_preproc_ok=:
4516 break
4517 fi
4518 rm -f conftest.err conftest.i conftest.$ac_ext
4519
4520 done
4521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4522 rm -f conftest.i conftest.err conftest.$ac_ext
4523 if $ac_preproc_ok; then :
4524
4525 else
4526   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4529 See \`config.log' for more details" "$LINENO" 5; }
4530 fi
4531
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4540 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4541 if ${ac_cv_path_GREP+:} false; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   if test -z "$GREP"; then
4545   ac_path_GREP_found=false
4546   # Loop through the user's path and test for each of PROGNAME-LIST
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552     for ac_prog in grep ggrep; do
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4555       as_fn_executable_p "$ac_path_GREP" || continue
4556 # Check for GNU ac_path_GREP and select it if it is found.
4557   # Check for GNU $ac_path_GREP
4558 case `"$ac_path_GREP" --version 2>&1` in
4559 *GNU*)
4560   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4561 *)
4562   ac_count=0
4563   $as_echo_n 0123456789 >"conftest.in"
4564   while :
4565   do
4566     cat "conftest.in" "conftest.in" >"conftest.tmp"
4567     mv "conftest.tmp" "conftest.in"
4568     cp "conftest.in" "conftest.nl"
4569     $as_echo 'GREP' >> "conftest.nl"
4570     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572     as_fn_arith $ac_count + 1 && ac_count=$as_val
4573     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4574       # Best one so far, save it but keep looking for a better one
4575       ac_cv_path_GREP="$ac_path_GREP"
4576       ac_path_GREP_max=$ac_count
4577     fi
4578     # 10*(2^10) chars as input seems more than enough
4579     test $ac_count -gt 10 && break
4580   done
4581   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582 esac
4583
4584       $ac_path_GREP_found && break 3
4585     done
4586   done
4587   done
4588 IFS=$as_save_IFS
4589   if test -z "$ac_cv_path_GREP"; then
4590     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4591   fi
4592 else
4593   ac_cv_path_GREP=$GREP
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4598 $as_echo "$ac_cv_path_GREP" >&6; }
4599  GREP="$ac_cv_path_GREP"
4600
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4603 $as_echo_n "checking for egrep... " >&6; }
4604 if ${ac_cv_path_EGREP+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4608    then ac_cv_path_EGREP="$GREP -E"
4609    else
4610      if test -z "$EGREP"; then
4611   ac_path_EGREP_found=false
4612   # Loop through the user's path and test for each of PROGNAME-LIST
4613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_prog in egrep; do
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4621       as_fn_executable_p "$ac_path_EGREP" || continue
4622 # Check for GNU ac_path_EGREP and select it if it is found.
4623   # Check for GNU $ac_path_EGREP
4624 case `"$ac_path_EGREP" --version 2>&1` in
4625 *GNU*)
4626   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4627 *)
4628   ac_count=0
4629   $as_echo_n 0123456789 >"conftest.in"
4630   while :
4631   do
4632     cat "conftest.in" "conftest.in" >"conftest.tmp"
4633     mv "conftest.tmp" "conftest.in"
4634     cp "conftest.in" "conftest.nl"
4635     $as_echo 'EGREP' >> "conftest.nl"
4636     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638     as_fn_arith $ac_count + 1 && ac_count=$as_val
4639     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4640       # Best one so far, save it but keep looking for a better one
4641       ac_cv_path_EGREP="$ac_path_EGREP"
4642       ac_path_EGREP_max=$ac_count
4643     fi
4644     # 10*(2^10) chars as input seems more than enough
4645     test $ac_count -gt 10 && break
4646   done
4647   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648 esac
4649
4650       $ac_path_EGREP_found && break 3
4651     done
4652   done
4653   done
4654 IFS=$as_save_IFS
4655   if test -z "$ac_cv_path_EGREP"; then
4656     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4657   fi
4658 else
4659   ac_cv_path_EGREP=$EGREP
4660 fi
4661
4662    fi
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4665 $as_echo "$ac_cv_path_EGREP" >&6; }
4666  EGREP="$ac_cv_path_EGREP"
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4670 $as_echo_n "checking for ANSI C header files... " >&6; }
4671 if ${ac_cv_header_stdc+:} false; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676 #include <stdlib.h>
4677 #include <stdarg.h>
4678 #include <string.h>
4679 #include <float.h>
4680
4681 int
4682 main ()
4683 {
4684
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690   ac_cv_header_stdc=yes
4691 else
4692   ac_cv_header_stdc=no
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 #include <string.h>
4701
4702 _ACEOF
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704   $EGREP "memchr" >/dev/null 2>&1; then :
4705
4706 else
4707   ac_cv_header_stdc=no
4708 fi
4709 rm -f conftest*
4710
4711 fi
4712
4713 if test $ac_cv_header_stdc = yes; then
4714   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717 #include <stdlib.h>
4718
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721   $EGREP "free" >/dev/null 2>&1; then :
4722
4723 else
4724   ac_cv_header_stdc=no
4725 fi
4726 rm -f conftest*
4727
4728 fi
4729
4730 if test $ac_cv_header_stdc = yes; then
4731   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4732   if test "$cross_compiling" = yes; then :
4733   :
4734 else
4735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h.  */
4737 #include <ctype.h>
4738 #include <stdlib.h>
4739 #if ((' ' & 0x0FF) == 0x020)
4740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4742 #else
4743 # define ISLOWER(c) \
4744                    (('a' <= (c) && (c) <= 'i') \
4745                      || ('j' <= (c) && (c) <= 'r') \
4746                      || ('s' <= (c) && (c) <= 'z'))
4747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4748 #endif
4749
4750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4751 int
4752 main ()
4753 {
4754   int i;
4755   for (i = 0; i < 256; i++)
4756     if (XOR (islower (i), ISLOWER (i))
4757         || toupper (i) != TOUPPER (i))
4758       return 2;
4759   return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_run "$LINENO"; then :
4763
4764 else
4765   ac_cv_header_stdc=no
4766 fi
4767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4768   conftest.$ac_objext conftest.beam conftest.$ac_ext
4769 fi
4770
4771 fi
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4774 $as_echo "$ac_cv_header_stdc" >&6; }
4775 if test $ac_cv_header_stdc = yes; then
4776
4777 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4778
4779 fi
4780
4781 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4783                   inttypes.h stdint.h unistd.h
4784 do :
4785   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4786 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4787 "
4788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4789   cat >>confdefs.h <<_ACEOF
4790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4791 _ACEOF
4792
4793 fi
4794
4795 done
4796
4797
4798
4799
4800
4801   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4802 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4803   MINIX=yes
4804 else
4805   MINIX=
4806 fi
4807
4808
4809   if test "$MINIX" = yes; then
4810
4811 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4812
4813
4814 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4815
4816
4817 $as_echo "#define _MINIX 1" >>confdefs.h
4818
4819   fi
4820
4821         case "$host_os" in
4822     hpux*)
4823
4824 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4825
4826       ;;
4827   esac
4828
4829
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4831 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4832 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837
4838 #         define __EXTENSIONS__ 1
4839           $ac_includes_default
4840 int
4841 main ()
4842 {
4843
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_c_try_compile "$LINENO"; then :
4849   ac_cv_safe_to_define___extensions__=yes
4850 else
4851   ac_cv_safe_to_define___extensions__=no
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4856 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4857   test $ac_cv_safe_to_define___extensions__ = yes &&
4858     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4859
4860   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4861
4862   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4863
4864   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4865
4866   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4867
4868
4869
4870
4871
4872
4873
4874 #case "$host_os" in
4875 #
4876 # osf5*)
4877 #    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4878 #    ;;
4879 #esac
4880
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
4885 LN_S=$as_ln_s
4886 if test "$LN_S" = "ln -s"; then
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 else
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4892 fi
4893
4894 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4895
4896 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4897 # versions
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4899 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4900 if ${ac_cv_path_SED+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4904      for ac_i in 1 2 3 4 5 6 7; do
4905        ac_script="$ac_script$as_nl$ac_script"
4906      done
4907      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4908      { ac_script=; unset ac_script;}
4909      if test -z "$SED"; then
4910   ac_path_SED_found=false
4911   # Loop through the user's path and test for each of PROGNAME-LIST
4912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917     for ac_prog in sed gsed; do
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4920       as_fn_executable_p "$ac_path_SED" || continue
4921 # Check for GNU ac_path_SED and select it if it is found.
4922   # Check for GNU $ac_path_SED
4923 case `"$ac_path_SED" --version 2>&1` in
4924 *GNU*)
4925   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4926 *)
4927   ac_count=0
4928   $as_echo_n 0123456789 >"conftest.in"
4929   while :
4930   do
4931     cat "conftest.in" "conftest.in" >"conftest.tmp"
4932     mv "conftest.tmp" "conftest.in"
4933     cp "conftest.in" "conftest.nl"
4934     $as_echo '' >> "conftest.nl"
4935     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937     as_fn_arith $ac_count + 1 && ac_count=$as_val
4938     if test $ac_count -gt ${ac_path_SED_max-0}; then
4939       # Best one so far, save it but keep looking for a better one
4940       ac_cv_path_SED="$ac_path_SED"
4941       ac_path_SED_max=$ac_count
4942     fi
4943     # 10*(2^10) chars as input seems more than enough
4944     test $ac_count -gt 10 && break
4945   done
4946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947 esac
4948
4949       $ac_path_SED_found && break 3
4950     done
4951   done
4952   done
4953 IFS=$as_save_IFS
4954   if test -z "$ac_cv_path_SED"; then
4955     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4956   fi
4957 else
4958   ac_cv_path_SED=$SED
4959 fi
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4963 $as_echo "$ac_cv_path_SED" >&6; }
4964  SED="$ac_cv_path_SED"
4965   rm -f conftest.sed
4966
4967
4968 if test $ac_cv_c_compiler_gnu = yes; then
4969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4970 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4971 if ${ac_cv_prog_gcc_traditional+:} false; then :
4972   $as_echo_n "(cached) " >&6
4973 else
4974     ac_pattern="Autoconf.*'x'"
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <sgtty.h>
4978 Autoconf TIOCGETP
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4982   ac_cv_prog_gcc_traditional=yes
4983 else
4984   ac_cv_prog_gcc_traditional=no
4985 fi
4986 rm -f conftest*
4987
4988
4989   if test $ac_cv_prog_gcc_traditional = no; then
4990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992 #include <termio.h>
4993 Autoconf TCGETA
4994 _ACEOF
4995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4997   ac_cv_prog_gcc_traditional=yes
4998 fi
4999 rm -f conftest*
5000
5001   fi
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5004 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5005   if test $ac_cv_prog_gcc_traditional = yes; then
5006     CC="$CC -traditional"
5007   fi
5008 fi
5009
5010
5011 # We need to test for at least gcc 2.95 here, because older versions don't
5012 # have -fno-strict-aliasing
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h.  */
5015
5016 int
5017 main ()
5018 {
5019
5020 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5021 #error
5022 #endif
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028   have_gcc295=yes
5029 else
5030   have_gcc295=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
5034 if test "$GCC" = "yes" ; then
5035         # Enable many gcc warnings by default...
5036         CFLAGS="$CFLAGS -Wall"
5037         # And disable the strict-aliasing optimization, since it breaks
5038         # our sockaddr-handling code in strange ways.
5039         if test x$have_gcc295 = xyes; then
5040                 CFLAGS="$CFLAGS -fno-strict-aliasing"
5041         fi
5042 fi
5043
5044 # OS X Lion started deprecating the system openssl. Let's just disable
5045 # all deprecation warnings on OS X.
5046 case "$host_os" in
5047
5048  darwin*)
5049     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5050     ;;
5051 esac
5052
5053 # Check whether --enable-gcc-warnings was given.
5054 if test "${enable_gcc_warnings+set}" = set; then :
5055   enableval=$enable_gcc_warnings;
5056 fi
5057
5058
5059 # Check whether --enable-gcc-hardening was given.
5060 if test "${enable_gcc_hardening+set}" = set; then :
5061   enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5062     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5063     CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5064     CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5065 fi
5066 fi
5067
5068
5069 # Check whether --enable-thread-support was given.
5070 if test "${enable_thread_support+set}" = set; then :
5071   enableval=$enable_thread_support;
5072 else
5073   enable_thread_support=yes
5074 fi
5075
5076 # Check whether --enable-malloc-replacement was given.
5077 if test "${enable_malloc_replacement+set}" = set; then :
5078   enableval=$enable_malloc_replacement;
5079 else
5080   enable_malloc_replacement=yes
5081 fi
5082
5083 # Check whether --enable-openssl was given.
5084 if test "${enable_openssl+set}" = set; then :
5085   enableval=$enable_openssl;
5086 else
5087   enable_openssl=yes
5088 fi
5089
5090 # Check whether --enable-debug-mode was given.
5091 if test "${enable_debug_mode+set}" = set; then :
5092   enableval=$enable_debug_mode;
5093 else
5094   enable_debug_mode=yes
5095 fi
5096
5097 # Check whether --enable-libevent-install was given.
5098 if test "${enable_libevent_install+set}" = set; then :
5099   enableval=$enable_libevent_install;
5100 else
5101   enable_libevent_install=yes
5102 fi
5103
5104 # Check whether --enable-libevent-regress was given.
5105 if test "${enable_libevent_regress+set}" = set; then :
5106   enableval=$enable_libevent_regress;
5107 else
5108   enable_libevent_regress=yes
5109 fi
5110
5111 # Check whether --enable-samples was given.
5112 if test "${enable_samples+set}" = set; then :
5113   enableval=$enable_samples;
5114 else
5115   enable_samples=yes
5116 fi
5117
5118 # Check whether --enable-function-sections was given.
5119 if test "${enable_function_sections+set}" = set; then :
5120   enableval=$enable_function_sections;
5121 else
5122   enable_function_sections=no
5123 fi
5124
5125 # Check whether --enable-verbose-debug was given.
5126 if test "${enable_verbose_debug+set}" = set; then :
5127   enableval=$enable_verbose_debug;
5128 else
5129   enable_verbose_debug=no
5130 fi
5131
5132
5133
5134 case `pwd` in
5135   *\ * | *\     *)
5136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5137 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5138 esac
5139
5140
5141
5142 macro_version='2.4.6'
5143 macro_revision='2.4.6'
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 ltmain=$ac_aux_dir/ltmain.sh
5158
5159 # Backslashify metacharacters that are still active within
5160 # double-quoted strings.
5161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5162
5163 # Same as above, but do not quote variable references.
5164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5165
5166 # Sed substitution to delay expansion of an escaped shell variable in a
5167 # double_quote_subst'ed string.
5168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5169
5170 # Sed substitution to delay expansion of an escaped single quote.
5171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5172
5173 # Sed substitution to avoid accidental globbing in evaled expressions
5174 no_glob_subst='s/\*/\\\*/g'
5175
5176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5177 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5178 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5181 $as_echo_n "checking how to print strings... " >&6; }
5182 # Test print first, because it will be a builtin if present.
5183 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5184    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5185   ECHO='print -r --'
5186 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5187   ECHO='printf %s\n'
5188 else
5189   # Use this function as a fallback that always works.
5190   func_fallback_echo ()
5191   {
5192     eval 'cat <<_LTECHO_EOF
5193 $1
5194 _LTECHO_EOF'
5195   }
5196   ECHO='func_fallback_echo'
5197 fi
5198
5199 # func_echo_all arg...
5200 # Invoke $ECHO with all args, space-separated.
5201 func_echo_all ()
5202 {
5203     $ECHO ""
5204 }
5205
5206 case $ECHO in
5207   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5208 $as_echo "printf" >&6; } ;;
5209   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5210 $as_echo "print -r" >&6; } ;;
5211   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5212 $as_echo "cat" >&6; } ;;
5213 esac
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5229 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5230 if ${ac_cv_path_SED+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5234      for ac_i in 1 2 3 4 5 6 7; do
5235        ac_script="$ac_script$as_nl$ac_script"
5236      done
5237      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5238      { ac_script=; unset ac_script;}
5239      if test -z "$SED"; then
5240   ac_path_SED_found=false
5241   # Loop through the user's path and test for each of PROGNAME-LIST
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_prog in sed gsed; do
5248     for ac_exec_ext in '' $ac_executable_extensions; do
5249       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5250       as_fn_executable_p "$ac_path_SED" || continue
5251 # Check for GNU ac_path_SED and select it if it is found.
5252   # Check for GNU $ac_path_SED
5253 case `"$ac_path_SED" --version 2>&1` in
5254 *GNU*)
5255   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5256 *)
5257   ac_count=0
5258   $as_echo_n 0123456789 >"conftest.in"
5259   while :
5260   do
5261     cat "conftest.in" "conftest.in" >"conftest.tmp"
5262     mv "conftest.tmp" "conftest.in"
5263     cp "conftest.in" "conftest.nl"
5264     $as_echo '' >> "conftest.nl"
5265     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267     as_fn_arith $ac_count + 1 && ac_count=$as_val
5268     if test $ac_count -gt ${ac_path_SED_max-0}; then
5269       # Best one so far, save it but keep looking for a better one
5270       ac_cv_path_SED="$ac_path_SED"
5271       ac_path_SED_max=$ac_count
5272     fi
5273     # 10*(2^10) chars as input seems more than enough
5274     test $ac_count -gt 10 && break
5275   done
5276   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5278
5279       $ac_path_SED_found && break 3
5280     done
5281   done
5282   done
5283 IFS=$as_save_IFS
5284   if test -z "$ac_cv_path_SED"; then
5285     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5286   fi
5287 else
5288   ac_cv_path_SED=$SED
5289 fi
5290
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5293 $as_echo "$ac_cv_path_SED" >&6; }
5294  SED="$ac_cv_path_SED"
5295   rm -f conftest.sed
5296
5297 test -z "$SED" && SED=sed
5298 Xsed="$SED -e 1s/^X//"
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5311 $as_echo_n "checking for fgrep... " >&6; }
5312 if ${ac_cv_path_FGREP+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5316    then ac_cv_path_FGREP="$GREP -F"
5317    else
5318      if test -z "$FGREP"; then
5319   ac_path_FGREP_found=false
5320   # Loop through the user's path and test for each of PROGNAME-LIST
5321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326     for ac_prog in fgrep; do
5327     for ac_exec_ext in '' $ac_executable_extensions; do
5328       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5329       as_fn_executable_p "$ac_path_FGREP" || continue
5330 # Check for GNU ac_path_FGREP and select it if it is found.
5331   # Check for GNU $ac_path_FGREP
5332 case `"$ac_path_FGREP" --version 2>&1` in
5333 *GNU*)
5334   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5335 *)
5336   ac_count=0
5337   $as_echo_n 0123456789 >"conftest.in"
5338   while :
5339   do
5340     cat "conftest.in" "conftest.in" >"conftest.tmp"
5341     mv "conftest.tmp" "conftest.in"
5342     cp "conftest.in" "conftest.nl"
5343     $as_echo 'FGREP' >> "conftest.nl"
5344     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346     as_fn_arith $ac_count + 1 && ac_count=$as_val
5347     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5348       # Best one so far, save it but keep looking for a better one
5349       ac_cv_path_FGREP="$ac_path_FGREP"
5350       ac_path_FGREP_max=$ac_count
5351     fi
5352     # 10*(2^10) chars as input seems more than enough
5353     test $ac_count -gt 10 && break
5354   done
5355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 esac
5357
5358       $ac_path_FGREP_found && break 3
5359     done
5360   done
5361   done
5362 IFS=$as_save_IFS
5363   if test -z "$ac_cv_path_FGREP"; then
5364     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365   fi
5366 else
5367   ac_cv_path_FGREP=$FGREP
5368 fi
5369
5370    fi
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5373 $as_echo "$ac_cv_path_FGREP" >&6; }
5374  FGREP="$ac_cv_path_FGREP"
5375
5376
5377 test -z "$GREP" && GREP=grep
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397 # Check whether --with-gnu-ld was given.
5398 if test "${with_gnu_ld+set}" = set; then :
5399   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5400 else
5401   with_gnu_ld=no
5402 fi
5403
5404 ac_prog=ld
5405 if test yes = "$GCC"; then
5406   # Check if gcc -print-prog-name=ld gives a path.
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5408 $as_echo_n "checking for ld used by $CC... " >&6; }
5409   case $host in
5410   *-*-mingw*)
5411     # gcc leaves a trailing carriage return, which upsets mingw
5412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5413   *)
5414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5415   esac
5416   case $ac_prog in
5417     # Accept absolute paths.
5418     [\\/]* | ?:[\\/]*)
5419       re_direlt='/[^/][^/]*/\.\./'
5420       # Canonicalize the pathname of ld
5421       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5422       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5423         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5424       done
5425       test -z "$LD" && LD=$ac_prog
5426       ;;
5427   "")
5428     # If it fails, then pretend we aren't using GCC.
5429     ac_prog=ld
5430     ;;
5431   *)
5432     # If it is relative, then search for the first ld in PATH.
5433     with_gnu_ld=unknown
5434     ;;
5435   esac
5436 elif test yes = "$with_gnu_ld"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5438 $as_echo_n "checking for GNU ld... " >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5441 $as_echo_n "checking for non-GNU ld... " >&6; }
5442 fi
5443 if ${lt_cv_path_LD+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   if test -z "$LD"; then
5447   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5448   for ac_dir in $PATH; do
5449     IFS=$lt_save_ifs
5450     test -z "$ac_dir" && ac_dir=.
5451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5452       lt_cv_path_LD=$ac_dir/$ac_prog
5453       # Check to see if the program is GNU ld.  I'd rather use --version,
5454       # but apparently some variants of GNU ld only accept -v.
5455       # Break only if it was the GNU/non-GNU ld that we prefer.
5456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5457       *GNU* | *'with BFD'*)
5458         test no != "$with_gnu_ld" && break
5459         ;;
5460       *)
5461         test yes != "$with_gnu_ld" && break
5462         ;;
5463       esac
5464     fi
5465   done
5466   IFS=$lt_save_ifs
5467 else
5468   lt_cv_path_LD=$LD # Let the user override the test with a path.
5469 fi
5470 fi
5471
5472 LD=$lt_cv_path_LD
5473 if test -n "$LD"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5475 $as_echo "$LD" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5482 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5483 if ${lt_cv_prog_gnu_ld+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5487 case `$LD -v 2>&1 </dev/null` in
5488 *GNU* | *'with BFD'*)
5489   lt_cv_prog_gnu_ld=yes
5490   ;;
5491 *)
5492   lt_cv_prog_gnu_ld=no
5493   ;;
5494 esac
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5497 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5498 with_gnu_ld=$lt_cv_prog_gnu_ld
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5509 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5510 if ${lt_cv_path_NM+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$NM"; then
5514   # Let the user override the test.
5515   lt_cv_path_NM=$NM
5516 else
5517   lt_nm_to_check=${ac_tool_prefix}nm
5518   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5519     lt_nm_to_check="$lt_nm_to_check nm"
5520   fi
5521   for lt_tmp_nm in $lt_nm_to_check; do
5522     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5523     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5524       IFS=$lt_save_ifs
5525       test -z "$ac_dir" && ac_dir=.
5526       tmp_nm=$ac_dir/$lt_tmp_nm
5527       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5528         # Check to see if the nm accepts a BSD-compat flag.
5529         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5530         #   nm: unknown option "B" ignored
5531         # Tru64's nm complains that /dev/null is an invalid object file
5532         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5533         case $build_os in
5534         mingw*) lt_bad_file=conftest.nm/nofile ;;
5535         *) lt_bad_file=/dev/null ;;
5536         esac
5537         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5538         *$lt_bad_file* | *'Invalid file or object type'*)
5539           lt_cv_path_NM="$tmp_nm -B"
5540           break 2
5541           ;;
5542         *)
5543           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5544           */dev/null*)
5545             lt_cv_path_NM="$tmp_nm -p"
5546             break 2
5547             ;;
5548           *)
5549             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5550             continue # so that we can try to find one that supports BSD flags
5551             ;;
5552           esac
5553           ;;
5554         esac
5555       fi
5556     done
5557     IFS=$lt_save_ifs
5558   done
5559   : ${lt_cv_path_NM=no}
5560 fi
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5563 $as_echo "$lt_cv_path_NM" >&6; }
5564 if test no != "$lt_cv_path_NM"; then
5565   NM=$lt_cv_path_NM
5566 else
5567   # Didn't find any BSD compatible name lister, look for dumpbin.
5568   if test -n "$DUMPBIN"; then :
5569     # Let the user override the test.
5570   else
5571     if test -n "$ac_tool_prefix"; then
5572   for ac_prog in dumpbin "link -dump"
5573   do
5574     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_DUMPBIN+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$DUMPBIN"; then
5582   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 DUMPBIN=$ac_cv_prog_DUMPBIN
5602 if test -n "$DUMPBIN"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5604 $as_echo "$DUMPBIN" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611     test -n "$DUMPBIN" && break
5612   done
5613 fi
5614 if test -z "$DUMPBIN"; then
5615   ac_ct_DUMPBIN=$DUMPBIN
5616   for ac_prog in dumpbin "link -dump"
5617 do
5618   # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if test -n "$ac_ct_DUMPBIN"; then
5626   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640   done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5646 if test -n "$ac_ct_DUMPBIN"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5648 $as_echo "$ac_ct_DUMPBIN" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655   test -n "$ac_ct_DUMPBIN" && break
5656 done
5657
5658   if test "x$ac_ct_DUMPBIN" = x; then
5659     DUMPBIN=":"
5660   else
5661     case $cross_compiling:$ac_tool_warned in
5662 yes:)
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667     DUMPBIN=$ac_ct_DUMPBIN
5668   fi
5669 fi
5670
5671     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5672     *COFF*)
5673       DUMPBIN="$DUMPBIN -symbols -headers"
5674       ;;
5675     *)
5676       DUMPBIN=:
5677       ;;
5678     esac
5679   fi
5680
5681   if test : != "$DUMPBIN"; then
5682     NM=$DUMPBIN
5683   fi
5684 fi
5685 test -z "$NM" && NM=nm
5686
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5693 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5694 if ${lt_cv_nm_interface+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   lt_cv_nm_interface="BSD nm"
5698   echo "int some_variable = 0;" > conftest.$ac_ext
5699   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5700   (eval "$ac_compile" 2>conftest.err)
5701   cat conftest.err >&5
5702   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5703   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5704   cat conftest.err >&5
5705   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5706   cat conftest.out >&5
5707   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5708     lt_cv_nm_interface="MS dumpbin"
5709   fi
5710   rm -f conftest*
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5713 $as_echo "$lt_cv_nm_interface" >&6; }
5714
5715 # find the maximum length of command line arguments
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5717 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5718 if ${lt_cv_sys_max_cmd_len+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721     i=0
5722   teststring=ABCD
5723
5724   case $build_os in
5725   msdosdjgpp*)
5726     # On DJGPP, this test can blow up pretty badly due to problems in libc
5727     # (any single argument exceeding 2000 bytes causes a buffer overrun
5728     # during glob expansion).  Even if it were fixed, the result of this
5729     # check would be larger than it should be.
5730     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5731     ;;
5732
5733   gnu*)
5734     # Under GNU Hurd, this test is not required because there is
5735     # no limit to the length of command line arguments.
5736     # Libtool will interpret -1 as no limit whatsoever
5737     lt_cv_sys_max_cmd_len=-1;
5738     ;;
5739
5740   cygwin* | mingw* | cegcc*)
5741     # On Win9x/ME, this test blows up -- it succeeds, but takes
5742     # about 5 minutes as the teststring grows exponentially.
5743     # Worse, since 9x/ME are not pre-emptively multitasking,
5744     # you end up with a "frozen" computer, even though with patience
5745     # the test eventually succeeds (with a max line length of 256k).
5746     # Instead, let's just punt: use the minimum linelength reported by
5747     # all of the supported platforms: 8192 (on NT/2K/XP).
5748     lt_cv_sys_max_cmd_len=8192;
5749     ;;
5750
5751   mint*)
5752     # On MiNT this can take a long time and run out of memory.
5753     lt_cv_sys_max_cmd_len=8192;
5754     ;;
5755
5756   amigaos*)
5757     # On AmigaOS with pdksh, this test takes hours, literally.
5758     # So we just punt and use a minimum line length of 8192.
5759     lt_cv_sys_max_cmd_len=8192;
5760     ;;
5761
5762   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5763     # This has been around since 386BSD, at least.  Likely further.
5764     if test -x /sbin/sysctl; then
5765       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5766     elif test -x /usr/sbin/sysctl; then
5767       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5768     else
5769       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5770     fi
5771     # And add a safety zone
5772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5774     ;;
5775
5776   interix*)
5777     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5778     lt_cv_sys_max_cmd_len=196608
5779     ;;
5780
5781   os2*)
5782     # The test takes a long time on OS/2.
5783     lt_cv_sys_max_cmd_len=8192
5784     ;;
5785
5786   osf*)
5787     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5788     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5789     # nice to cause kernel panics so lets avoid the loop below.
5790     # First set a reasonable default.
5791     lt_cv_sys_max_cmd_len=16384
5792     #
5793     if test -x /sbin/sysconfig; then
5794       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5795         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5796       esac
5797     fi
5798     ;;
5799   sco3.2v5*)
5800     lt_cv_sys_max_cmd_len=102400
5801     ;;
5802   sysv5* | sco5v6* | sysv4.2uw2*)
5803     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5804     if test -n "$kargmax"; then
5805       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5806     else
5807       lt_cv_sys_max_cmd_len=32768
5808     fi
5809     ;;
5810   *)
5811     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5812     if test -n "$lt_cv_sys_max_cmd_len" && \
5813        test undefined != "$lt_cv_sys_max_cmd_len"; then
5814       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5816     else
5817       # Make teststring a little bigger before we do anything with it.
5818       # a 1K string should be a reasonable start.
5819       for i in 1 2 3 4 5 6 7 8; do
5820         teststring=$teststring$teststring
5821       done
5822       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5823       # If test is not a shell built-in, we'll probably end up computing a
5824       # maximum length that is only half of the actual maximum length, but
5825       # we can't tell.
5826       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5827                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5828               test 17 != "$i" # 1/2 MB should be enough
5829       do
5830         i=`expr $i + 1`
5831         teststring=$teststring$teststring
5832       done
5833       # Only check the string length outside the loop.
5834       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5835       teststring=
5836       # Add a significant safety factor because C++ compilers can tack on
5837       # massive amounts of additional arguments before passing them to the
5838       # linker.  It appears as though 1/2 is a usable value.
5839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5840     fi
5841     ;;
5842   esac
5843
5844 fi
5845
5846 if test -n "$lt_cv_sys_max_cmd_len"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5848 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5851 $as_echo "none" >&6; }
5852 fi
5853 max_cmd_len=$lt_cv_sys_max_cmd_len
5854
5855
5856
5857
5858
5859
5860 : ${CP="cp -f"}
5861 : ${MV="mv -f"}
5862 : ${RM="rm -f"}
5863
5864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5865   lt_unset=unset
5866 else
5867   lt_unset=false
5868 fi
5869
5870
5871
5872
5873
5874 # test EBCDIC or ASCII
5875 case `echo X|tr X '\101'` in
5876  A) # ASCII based system
5877     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5878   lt_SP2NL='tr \040 \012'
5879   lt_NL2SP='tr \015\012 \040\040'
5880   ;;
5881  *) # EBCDIC based system
5882   lt_SP2NL='tr \100 \n'
5883   lt_NL2SP='tr \r\n \100\100'
5884   ;;
5885 esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5896 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5897 if ${lt_cv_to_host_file_cmd+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   case $host in
5901   *-*-mingw* )
5902     case $build in
5903       *-*-mingw* ) # actually msys
5904         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5905         ;;
5906       *-*-cygwin* )
5907         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5908         ;;
5909       * ) # otherwise, assume *nix
5910         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5911         ;;
5912     esac
5913     ;;
5914   *-*-cygwin* )
5915     case $build in
5916       *-*-mingw* ) # actually msys
5917         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5918         ;;
5919       *-*-cygwin* )
5920         lt_cv_to_host_file_cmd=func_convert_file_noop
5921         ;;
5922       * ) # otherwise, assume *nix
5923         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5924         ;;
5925     esac
5926     ;;
5927   * ) # unhandled hosts (and "normal" native builds)
5928     lt_cv_to_host_file_cmd=func_convert_file_noop
5929     ;;
5930 esac
5931
5932 fi
5933
5934 to_host_file_cmd=$lt_cv_to_host_file_cmd
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5936 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5937
5938
5939
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5943 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5944 if ${lt_cv_to_tool_file_cmd+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   #assume ordinary cross tools, or native build.
5948 lt_cv_to_tool_file_cmd=func_convert_file_noop
5949 case $host in
5950   *-*-mingw* )
5951     case $build in
5952       *-*-mingw* ) # actually msys
5953         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5954         ;;
5955     esac
5956     ;;
5957 esac
5958
5959 fi
5960
5961 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5963 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5970 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5971 if ${lt_cv_ld_reload_flag+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   lt_cv_ld_reload_flag='-r'
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5977 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5978 reload_flag=$lt_cv_ld_reload_flag
5979 case $reload_flag in
5980 "" | " "*) ;;
5981 *) reload_flag=" $reload_flag" ;;
5982 esac
5983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5984 case $host_os in
5985   cygwin* | mingw* | pw32* | cegcc*)
5986     if test yes != "$GCC"; then
5987       reload_cmds=false
5988     fi
5989     ;;
5990   darwin*)
5991     if test yes = "$GCC"; then
5992       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5993     else
5994       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5995     fi
5996     ;;
5997 esac
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007 if test -n "$ac_tool_prefix"; then
6008   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_OBJDUMP+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   if test -n "$OBJDUMP"; then
6016   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030   done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 OBJDUMP=$ac_cv_prog_OBJDUMP
6036 if test -n "$OBJDUMP"; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6038 $as_echo "$OBJDUMP" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044
6045 fi
6046 if test -z "$ac_cv_prog_OBJDUMP"; then
6047   ac_ct_OBJDUMP=$OBJDUMP
6048   # Extract the first word of "objdump", so it can be a program name with args.
6049 set dummy objdump; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$ac_ct_OBJDUMP"; then
6056   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6076 if test -n "$ac_ct_OBJDUMP"; then
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6078 $as_echo "$ac_ct_OBJDUMP" >&6; }
6079 else
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084   if test "x$ac_ct_OBJDUMP" = x; then
6085     OBJDUMP="false"
6086   else
6087     case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093     OBJDUMP=$ac_ct_OBJDUMP
6094   fi
6095 else
6096   OBJDUMP="$ac_cv_prog_OBJDUMP"
6097 fi
6098
6099 test -z "$OBJDUMP" && OBJDUMP=objdump
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6110 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6111 if ${lt_cv_deplibs_check_method+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   lt_cv_file_magic_cmd='$MAGIC_CMD'
6115 lt_cv_file_magic_test_file=
6116 lt_cv_deplibs_check_method='unknown'
6117 # Need to set the preceding variable on all platforms that support
6118 # interlibrary dependencies.
6119 # 'none' -- dependencies not supported.
6120 # 'unknown' -- same as none, but documents that we really don't know.
6121 # 'pass_all' -- all dependencies passed with no checks.
6122 # 'test_compile' -- check by making test program.
6123 # 'file_magic [[regex]]' -- check by looking for files in library path
6124 # that responds to the $file_magic_cmd with a given extended regex.
6125 # If you have 'file' or equivalent on your system and you're not sure
6126 # whether 'pass_all' will *always* work, you probably want this one.
6127
6128 case $host_os in
6129 aix[4-9]*)
6130   lt_cv_deplibs_check_method=pass_all
6131   ;;
6132
6133 beos*)
6134   lt_cv_deplibs_check_method=pass_all
6135   ;;
6136
6137 bsdi[45]*)
6138   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6139   lt_cv_file_magic_cmd='/usr/bin/file -L'
6140   lt_cv_file_magic_test_file=/shlib/libc.so
6141   ;;
6142
6143 cygwin*)
6144   # func_win32_libid is a shell function defined in ltmain.sh
6145   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6146   lt_cv_file_magic_cmd='func_win32_libid'
6147   ;;
6148
6149 mingw* | pw32*)
6150   # Base MSYS/MinGW do not provide the 'file' command needed by
6151   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6152   # unless we find 'file', for example because we are cross-compiling.
6153   if ( file / ) >/dev/null 2>&1; then
6154     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6155     lt_cv_file_magic_cmd='func_win32_libid'
6156   else
6157     # Keep this pattern in sync with the one in func_win32_libid.
6158     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6159     lt_cv_file_magic_cmd='$OBJDUMP -f'
6160   fi
6161   ;;
6162
6163 cegcc*)
6164   # use the weaker test based on 'objdump'. See mingw*.
6165   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6166   lt_cv_file_magic_cmd='$OBJDUMP -f'
6167   ;;
6168
6169 darwin* | rhapsody*)
6170   lt_cv_deplibs_check_method=pass_all
6171   ;;
6172
6173 freebsd* | dragonfly*)
6174   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6175     case $host_cpu in
6176     i*86 )
6177       # Not sure whether the presence of OpenBSD here was a mistake.
6178       # Let's accept both of them until this is cleared up.
6179       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6180       lt_cv_file_magic_cmd=/usr/bin/file
6181       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6182       ;;
6183     esac
6184   else
6185     lt_cv_deplibs_check_method=pass_all
6186   fi
6187   ;;
6188
6189 haiku*)
6190   lt_cv_deplibs_check_method=pass_all
6191   ;;
6192
6193 hpux10.20* | hpux11*)
6194   lt_cv_file_magic_cmd=/usr/bin/file
6195   case $host_cpu in
6196   ia64*)
6197     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6198     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6199     ;;
6200   hppa*64*)
6201     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]'
6202     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6203     ;;
6204   *)
6205     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6206     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6207     ;;
6208   esac
6209   ;;
6210
6211 interix[3-9]*)
6212   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6213   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6214   ;;
6215
6216 irix5* | irix6* | nonstopux*)
6217   case $LD in
6218   *-32|*"-32 ") libmagic=32-bit;;
6219   *-n32|*"-n32 ") libmagic=N32;;
6220   *-64|*"-64 ") libmagic=64-bit;;
6221   *) libmagic=never-match;;
6222   esac
6223   lt_cv_deplibs_check_method=pass_all
6224   ;;
6225
6226 # This must be glibc/ELF.
6227 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 netbsd*)
6232   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6233     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6234   else
6235     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6236   fi
6237   ;;
6238
6239 newos6*)
6240   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6241   lt_cv_file_magic_cmd=/usr/bin/file
6242   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6243   ;;
6244
6245 *nto* | *qnx*)
6246   lt_cv_deplibs_check_method=pass_all
6247   ;;
6248
6249 openbsd* | bitrig*)
6250   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6251     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6252   else
6253     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6254   fi
6255   ;;
6256
6257 osf3* | osf4* | osf5*)
6258   lt_cv_deplibs_check_method=pass_all
6259   ;;
6260
6261 rdos*)
6262   lt_cv_deplibs_check_method=pass_all
6263   ;;
6264
6265 solaris*)
6266   lt_cv_deplibs_check_method=pass_all
6267   ;;
6268
6269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6270   lt_cv_deplibs_check_method=pass_all
6271   ;;
6272
6273 sysv4 | sysv4.3*)
6274   case $host_vendor in
6275   motorola)
6276     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]'
6277     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6278     ;;
6279   ncr)
6280     lt_cv_deplibs_check_method=pass_all
6281     ;;
6282   sequent)
6283     lt_cv_file_magic_cmd='/bin/file'
6284     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6285     ;;
6286   sni)
6287     lt_cv_file_magic_cmd='/bin/file'
6288     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6289     lt_cv_file_magic_test_file=/lib/libc.so
6290     ;;
6291   siemens)
6292     lt_cv_deplibs_check_method=pass_all
6293     ;;
6294   pc)
6295     lt_cv_deplibs_check_method=pass_all
6296     ;;
6297   esac
6298   ;;
6299
6300 tpf*)
6301   lt_cv_deplibs_check_method=pass_all
6302   ;;
6303 os2*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306 esac
6307
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6310 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6311
6312 file_magic_glob=
6313 want_nocaseglob=no
6314 if test "$build" = "$host"; then
6315   case $host_os in
6316   mingw* | pw32*)
6317     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6318       want_nocaseglob=yes
6319     else
6320       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6321     fi
6322     ;;
6323   esac
6324 fi
6325
6326 file_magic_cmd=$lt_cv_file_magic_cmd
6327 deplibs_check_method=$lt_cv_deplibs_check_method
6328 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 if test -n "$ac_tool_prefix"; then
6352   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_DLLTOOL+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$DLLTOOL"; then
6360   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 DLLTOOL=$ac_cv_prog_DLLTOOL
6380 if test -n "$DLLTOOL"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6382 $as_echo "$DLLTOOL" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_DLLTOOL"; then
6391   ac_ct_DLLTOOL=$DLLTOOL
6392   # Extract the first word of "dlltool", so it can be a program name with args.
6393 set dummy dlltool; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   if test -n "$ac_ct_DLLTOOL"; then
6400   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6420 if test -n "$ac_ct_DLLTOOL"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6422 $as_echo "$ac_ct_DLLTOOL" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428   if test "x$ac_ct_DLLTOOL" = x; then
6429     DLLTOOL="false"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437     DLLTOOL=$ac_ct_DLLTOOL
6438   fi
6439 else
6440   DLLTOOL="$ac_cv_prog_DLLTOOL"
6441 fi
6442
6443 test -z "$DLLTOOL" && DLLTOOL=dlltool
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6455 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6456 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   lt_cv_sharedlib_from_linklib_cmd='unknown'
6460
6461 case $host_os in
6462 cygwin* | mingw* | pw32* | cegcc*)
6463   # two different shell functions defined in ltmain.sh;
6464   # decide which one to use based on capabilities of $DLLTOOL
6465   case `$DLLTOOL --help 2>&1` in
6466   *--identify-strict*)
6467     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6468     ;;
6469   *)
6470     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6471     ;;
6472   esac
6473   ;;
6474 *)
6475   # fallback: assume linklib IS sharedlib
6476   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6477   ;;
6478 esac
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6482 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6483 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6484 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6485
6486
6487
6488
6489
6490
6491
6492 if test -n "$ac_tool_prefix"; then
6493   for ac_prog in ar
6494   do
6495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_AR+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   if test -n "$AR"; then
6503   ac_cv_prog_AR="$AR" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 AR=$ac_cv_prog_AR
6523 if test -n "$AR"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6525 $as_echo "$AR" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532     test -n "$AR" && break
6533   done
6534 fi
6535 if test -z "$AR"; then
6536   ac_ct_AR=$AR
6537   for ac_prog in ar
6538 do
6539   # Extract the first word of "$ac_prog", so it can be a program name with args.
6540 set dummy $ac_prog; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$ac_ct_AR"; then
6547   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556     ac_cv_prog_ac_ct_AR="$ac_prog"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567 if test -n "$ac_ct_AR"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6569 $as_echo "$ac_ct_AR" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576   test -n "$ac_ct_AR" && break
6577 done
6578
6579   if test "x$ac_ct_AR" = x; then
6580     AR="false"
6581   else
6582     case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588     AR=$ac_ct_AR
6589   fi
6590 fi
6591
6592 : ${AR=ar}
6593 : ${AR_FLAGS=cru}
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6606 $as_echo_n "checking for archiver @FILE support... " >&6; }
6607 if ${lt_cv_ar_at_file+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   lt_cv_ar_at_file=no
6611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614 int
6615 main ()
6616 {
6617
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623   echo conftest.$ac_objext > conftest.lst
6624       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6625       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6626   (eval $lt_ar_try) 2>&5
6627   ac_status=$?
6628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629   test $ac_status = 0; }
6630       if test 0 -eq "$ac_status"; then
6631         # Ensure the archiver fails upon bogus file names.
6632         rm -f conftest.$ac_objext libconftest.a
6633         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6634   (eval $lt_ar_try) 2>&5
6635   ac_status=$?
6636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637   test $ac_status = 0; }
6638         if test 0 -ne "$ac_status"; then
6639           lt_cv_ar_at_file=@
6640         fi
6641       fi
6642       rm -f conftest.* libconftest.a
6643
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6649 $as_echo "$lt_cv_ar_at_file" >&6; }
6650
6651 if test no = "$lt_cv_ar_at_file"; then
6652   archiver_list_spec=
6653 else
6654   archiver_list_spec=$lt_cv_ar_at_file
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663 if test -n "$ac_tool_prefix"; then
6664   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_STRIP+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$STRIP"; then
6672   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 STRIP=$ac_cv_prog_STRIP
6692 if test -n "$STRIP"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6694 $as_echo "$STRIP" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_STRIP"; then
6703   ac_ct_STRIP=$STRIP
6704   # Extract the first word of "strip", so it can be a program name with args.
6705 set dummy strip; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711   if test -n "$ac_ct_STRIP"; then
6712   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719     for ac_exec_ext in '' $ac_executable_extensions; do
6720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721     ac_cv_prog_ac_ct_STRIP="strip"
6722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726   done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6732 if test -n "$ac_ct_STRIP"; then
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6734 $as_echo "$ac_ct_STRIP" >&6; }
6735 else
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740   if test "x$ac_ct_STRIP" = x; then
6741     STRIP=":"
6742   else
6743     case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749     STRIP=$ac_ct_STRIP
6750   fi
6751 else
6752   STRIP="$ac_cv_prog_STRIP"
6753 fi
6754
6755 test -z "$STRIP" && STRIP=:
6756
6757
6758
6759
6760
6761
6762 if test -n "$ac_tool_prefix"; then
6763   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_RANLIB+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$RANLIB"; then
6771   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 RANLIB=$ac_cv_prog_RANLIB
6791 if test -n "$RANLIB"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6793 $as_echo "$RANLIB" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_RANLIB"; then
6802   ac_ct_RANLIB=$RANLIB
6803   # Extract the first word of "ranlib", so it can be a program name with args.
6804 set dummy ranlib; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   if test -n "$ac_ct_RANLIB"; then
6811   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816   IFS=$as_save_IFS
6817   test -z "$as_dir" && as_dir=.
6818     for ac_exec_ext in '' $ac_executable_extensions; do
6819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820     ac_cv_prog_ac_ct_RANLIB="ranlib"
6821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822     break 2
6823   fi
6824 done
6825   done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6831 if test -n "$ac_ct_RANLIB"; then
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6833 $as_echo "$ac_ct_RANLIB" >&6; }
6834 else
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838
6839   if test "x$ac_ct_RANLIB" = x; then
6840     RANLIB=":"
6841   else
6842     case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848     RANLIB=$ac_ct_RANLIB
6849   fi
6850 else
6851   RANLIB="$ac_cv_prog_RANLIB"
6852 fi
6853
6854 test -z "$RANLIB" && RANLIB=:
6855
6856
6857
6858
6859
6860
6861 # Determine commands to create old-style static archives.
6862 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6863 old_postinstall_cmds='chmod 644 $oldlib'
6864 old_postuninstall_cmds=
6865
6866 if test -n "$RANLIB"; then
6867   case $host_os in
6868   bitrig* | openbsd*)
6869     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6870     ;;
6871   *)
6872     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6873     ;;
6874   esac
6875   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6876 fi
6877
6878 case $host_os in
6879   darwin*)
6880     lock_old_archive_extraction=yes ;;
6881   *)
6882     lock_old_archive_extraction=no ;;
6883 esac
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 # If no C compiler was specified, use CC.
6924 LTCC=${LTCC-"$CC"}
6925
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6928
6929 # Allow CC to be a program name with arguments.
6930 compiler=$CC
6931
6932
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6935 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6936 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952   symcode='[BCDT]'
6953   ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955   symcode='[ABCDGISTW]'
6956   ;;
6957 hpux*)
6958   if test ia64 = "$host_cpu"; then
6959     symcode='[ABCDEGRST]'
6960   fi
6961   ;;
6962 irix* | nonstopux*)
6963   symcode='[BCDEGRST]'
6964   ;;
6965 osf*)
6966   symcode='[BCDEGQRST]'
6967   ;;
6968 solaris*)
6969   symcode='[BDRT]'
6970   ;;
6971 sco3.2v5*)
6972   symcode='[DT]'
6973   ;;
6974 sysv4.2uw2*)
6975   symcode='[DT]'
6976   ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978   symcode='[ABDT]'
6979   ;;
6980 sysv4)
6981   symcode='[DFNSTU]'
6982   ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988   symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6992   # Gets list of data symbols to import.
6993   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6994   # Adjust the below global symbol transforms to fixup imported variables.
6995   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6996   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6997   lt_c_name_lib_hook="\
6998   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6999   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7000 else
7001   # Disable hooks by default.
7002   lt_cv_sys_global_symbol_to_import=
7003   lt_cdecl_hook=
7004   lt_c_name_hook=
7005   lt_c_name_lib_hook=
7006 fi
7007
7008 # Transform an extracted symbol line into a proper C declaration.
7009 # Some systems (esp. on ia64) link data and code symbols differently,
7010 # so use this general approach.
7011 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7012 $lt_cdecl_hook\
7013 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7014 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7015
7016 # Transform an extracted symbol line into symbol name and symbol address
7017 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7018 $lt_c_name_hook\
7019 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7020 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7021
7022 # Transform an extracted symbol line into symbol name with lib prefix and
7023 # symbol address.
7024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7025 $lt_c_name_lib_hook\
7026 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7027 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7028 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7029
7030 # Handle CRLF in mingw tool chain
7031 opt_cr=
7032 case $build_os in
7033 mingw*)
7034   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035   ;;
7036 esac
7037
7038 # Try without a prefix underscore, then with it.
7039 for ac_symprfx in "" "_"; do
7040
7041   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7042   symxfrm="\\1 $ac_symprfx\\2 \\2"
7043
7044   # Write the raw and C identifiers.
7045   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046     # Fake it for dumpbin and say T for any non-static function,
7047     # D for any global variable and I for any imported variable.
7048     # Also find C++ and __fastcall symbols from MSVC++,
7049     # which start with @ or ?.
7050     lt_cv_sys_global_symbol_pipe="$AWK '"\
7051 "     {last_section=section; section=\$ 3};"\
7052 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7053 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7055 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7056 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7057 "     \$ 0!~/External *\|/{next};"\
7058 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7059 "     {if(hide[section]) next};"\
7060 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7061 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7062 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7063 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7064 "     ' prfx=^$ac_symprfx"
7065   else
7066     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7067   fi
7068   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7069
7070   # Check to see that the pipe works correctly.
7071   pipe_works=no
7072
7073   rm -f conftest*
7074   cat > conftest.$ac_ext <<_LT_EOF
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078 char nm_test_var;
7079 void nm_test_func(void);
7080 void nm_test_func(void){}
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 int main(){nm_test_var='a';nm_test_func();return(0);}
7085 _LT_EOF
7086
7087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091   test $ac_status = 0; }; then
7092     # Now try to grab the symbols.
7093     nlist=conftest.nm
7094     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7095   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7096   ac_status=$?
7097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098   test $ac_status = 0; } && test -s "$nlist"; then
7099       # Try sorting and uniquifying the output.
7100       if sort "$nlist" | uniq > "$nlist"T; then
7101         mv -f "$nlist"T "$nlist"
7102       else
7103         rm -f "$nlist"T
7104       fi
7105
7106       # Make sure that we snagged all the symbols we need.
7107       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7108         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7109           cat <<_LT_EOF > conftest.$ac_ext
7110 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7111 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7112 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7113    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7114 # define LT_DLSYM_CONST
7115 #elif defined __osf__
7116 /* This system does not cope well with relocations in const data.  */
7117 # define LT_DLSYM_CONST
7118 #else
7119 # define LT_DLSYM_CONST const
7120 #endif
7121
7122 #ifdef __cplusplus
7123 extern "C" {
7124 #endif
7125
7126 _LT_EOF
7127           # Now generate the symbol file.
7128           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7129
7130           cat <<_LT_EOF >> conftest.$ac_ext
7131
7132 /* The mapping between symbol names and symbols.  */
7133 LT_DLSYM_CONST struct {
7134   const char *name;
7135   void       *address;
7136 }
7137 lt__PROGRAM__LTX_preloaded_symbols[] =
7138 {
7139   { "@PROGRAM@", (void *) 0 },
7140 _LT_EOF
7141           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7142           cat <<\_LT_EOF >> conftest.$ac_ext
7143   {0, (void *) 0}
7144 };
7145
7146 /* This works around a problem in FreeBSD linker */
7147 #ifdef FREEBSD_WORKAROUND
7148 static const void *lt_preloaded_setup() {
7149   return lt__PROGRAM__LTX_preloaded_symbols;
7150 }
7151 #endif
7152
7153 #ifdef __cplusplus
7154 }
7155 #endif
7156 _LT_EOF
7157           # Now try linking the two files.
7158           mv conftest.$ac_objext conftstm.$ac_objext
7159           lt_globsym_save_LIBS=$LIBS
7160           lt_globsym_save_CFLAGS=$CFLAGS
7161           LIBS=conftstm.$ac_objext
7162           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7163           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7164   (eval $ac_link) 2>&5
7165   ac_status=$?
7166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7168             pipe_works=yes
7169           fi
7170           LIBS=$lt_globsym_save_LIBS
7171           CFLAGS=$lt_globsym_save_CFLAGS
7172         else
7173           echo "cannot find nm_test_func in $nlist" >&5
7174         fi
7175       else
7176         echo "cannot find nm_test_var in $nlist" >&5
7177       fi
7178     else
7179       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7180     fi
7181   else
7182     echo "$progname: failed program was:" >&5
7183     cat conftest.$ac_ext >&5
7184   fi
7185   rm -rf conftest* conftst*
7186
7187   # Do not use the global_symbol_pipe unless it works.
7188   if test yes = "$pipe_works"; then
7189     break
7190   else
7191     lt_cv_sys_global_symbol_pipe=
7192   fi
7193 done
7194
7195 fi
7196
7197 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7198   lt_cv_sys_global_symbol_to_cdecl=
7199 fi
7200 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7202 $as_echo "failed" >&6; }
7203 else
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7205 $as_echo "ok" >&6; }
7206 fi
7207
7208 # Response file support.
7209 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7210   nm_file_list_spec='@'
7211 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7212   nm_file_list_spec='@'
7213 fi
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7252 $as_echo_n "checking for sysroot... " >&6; }
7253
7254 # Check whether --with-sysroot was given.
7255 if test "${with_sysroot+set}" = set; then :
7256   withval=$with_sysroot;
7257 else
7258   with_sysroot=no
7259 fi
7260
7261
7262 lt_sysroot=
7263 case $with_sysroot in #(
7264  yes)
7265    if test yes = "$GCC"; then
7266      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7267    fi
7268    ;; #(
7269  /*)
7270    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7271    ;; #(
7272  no|'')
7273    ;; #(
7274  *)
7275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7276 $as_echo "$with_sysroot" >&6; }
7277    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7278    ;;
7279 esac
7280
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7282 $as_echo "${lt_sysroot:-no}" >&6; }
7283
7284
7285
7286
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7289 $as_echo_n "checking for a working dd... " >&6; }
7290 if ${ac_cv_path_lt_DD+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   printf 0123456789abcdef0123456789abcdef >conftest.i
7294 cat conftest.i conftest.i >conftest2.i
7295 : ${lt_DD:=$DD}
7296 if test -z "$lt_DD"; then
7297   ac_path_lt_DD_found=false
7298   # Loop through the user's path and test for each of PROGNAME-LIST
7299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_prog in dd; do
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7307       as_fn_executable_p "$ac_path_lt_DD" || continue
7308 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7309   cmp -s conftest.i conftest.out \
7310   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7311 fi
7312       $ac_path_lt_DD_found && break 3
7313     done
7314   done
7315   done
7316 IFS=$as_save_IFS
7317   if test -z "$ac_cv_path_lt_DD"; then
7318     :
7319   fi
7320 else
7321   ac_cv_path_lt_DD=$lt_DD
7322 fi
7323
7324 rm -f conftest.i conftest2.i conftest.out
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7327 $as_echo "$ac_cv_path_lt_DD" >&6; }
7328
7329
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7331 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7332 if ${lt_cv_truncate_bin+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   printf 0123456789abcdef0123456789abcdef >conftest.i
7336 cat conftest.i conftest.i >conftest2.i
7337 lt_cv_truncate_bin=
7338 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7339   cmp -s conftest.i conftest.out \
7340   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7341 fi
7342 rm -f conftest.i conftest2.i conftest.out
7343 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7346 $as_echo "$lt_cv_truncate_bin" >&6; }
7347
7348
7349
7350
7351
7352
7353
7354 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7355 func_cc_basename ()
7356 {
7357     for cc_temp in $*""; do
7358       case $cc_temp in
7359         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7360         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7361         \-*) ;;
7362         *) break;;
7363       esac
7364     done
7365     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7366 }
7367
7368 # Check whether --enable-libtool-lock was given.
7369 if test "${enable_libtool_lock+set}" = set; then :
7370   enableval=$enable_libtool_lock;
7371 fi
7372
7373 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7374
7375 # Some flags need to be propagated to the compiler or linker for good
7376 # libtool support.
7377 case $host in
7378 ia64-*-hpux*)
7379   # Find out what ABI is being produced by ac_compile, and set mode
7380   # options accordingly.
7381   echo 'int i;' > conftest.$ac_ext
7382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383   (eval $ac_compile) 2>&5
7384   ac_status=$?
7385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386   test $ac_status = 0; }; then
7387     case `/usr/bin/file conftest.$ac_objext` in
7388       *ELF-32*)
7389         HPUX_IA64_MODE=32
7390         ;;
7391       *ELF-64*)
7392         HPUX_IA64_MODE=64
7393         ;;
7394     esac
7395   fi
7396   rm -rf conftest*
7397   ;;
7398 *-*-irix6*)
7399   # Find out what ABI is being produced by ac_compile, and set linker
7400   # options accordingly.
7401   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7402   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403   (eval $ac_compile) 2>&5
7404   ac_status=$?
7405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406   test $ac_status = 0; }; then
7407     if test yes = "$lt_cv_prog_gnu_ld"; then
7408       case `/usr/bin/file conftest.$ac_objext` in
7409         *32-bit*)
7410           LD="${LD-ld} -melf32bsmip"
7411           ;;
7412         *N32*)
7413           LD="${LD-ld} -melf32bmipn32"
7414           ;;
7415         *64-bit*)
7416           LD="${LD-ld} -melf64bmip"
7417         ;;
7418       esac
7419     else
7420       case `/usr/bin/file conftest.$ac_objext` in
7421         *32-bit*)
7422           LD="${LD-ld} -32"
7423           ;;
7424         *N32*)
7425           LD="${LD-ld} -n32"
7426           ;;
7427         *64-bit*)
7428           LD="${LD-ld} -64"
7429           ;;
7430       esac
7431     fi
7432   fi
7433   rm -rf conftest*
7434   ;;
7435
7436 mips64*-*linux*)
7437   # Find out what ABI is being produced by ac_compile, and set linker
7438   # options accordingly.
7439   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441   (eval $ac_compile) 2>&5
7442   ac_status=$?
7443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444   test $ac_status = 0; }; then
7445     emul=elf
7446     case `/usr/bin/file conftest.$ac_objext` in
7447       *32-bit*)
7448         emul="${emul}32"
7449         ;;
7450       *64-bit*)
7451         emul="${emul}64"
7452         ;;
7453     esac
7454     case `/usr/bin/file conftest.$ac_objext` in
7455       *MSB*)
7456         emul="${emul}btsmip"
7457         ;;
7458       *LSB*)
7459         emul="${emul}ltsmip"
7460         ;;
7461     esac
7462     case `/usr/bin/file conftest.$ac_objext` in
7463       *N32*)
7464         emul="${emul}n32"
7465         ;;
7466     esac
7467     LD="${LD-ld} -m $emul"
7468   fi
7469   rm -rf conftest*
7470   ;;
7471
7472 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7473 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7474   # Find out what ABI is being produced by ac_compile, and set linker
7475   # options accordingly.  Note that the listed cases only cover the
7476   # situations where additional linker options are needed (such as when
7477   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7478   # vice versa); the common cases where no linker options are needed do
7479   # not appear in the list.
7480   echo 'int i;' > conftest.$ac_ext
7481   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7482   (eval $ac_compile) 2>&5
7483   ac_status=$?
7484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485   test $ac_status = 0; }; then
7486     case `/usr/bin/file conftest.o` in
7487       *32-bit*)
7488         case $host in
7489           x86_64-*kfreebsd*-gnu)
7490             LD="${LD-ld} -m elf_i386_fbsd"
7491             ;;
7492           x86_64-*linux*)
7493             case `/usr/bin/file conftest.o` in
7494               *x86-64*)
7495                 LD="${LD-ld} -m elf32_x86_64"
7496                 ;;
7497               *)
7498                 LD="${LD-ld} -m elf_i386"
7499                 ;;
7500             esac
7501             ;;
7502           powerpc64le-*linux*)
7503             LD="${LD-ld} -m elf32lppclinux"
7504             ;;
7505           powerpc64-*linux*)
7506             LD="${LD-ld} -m elf32ppclinux"
7507             ;;
7508           s390x-*linux*)
7509             LD="${LD-ld} -m elf_s390"
7510             ;;
7511           sparc64-*linux*)
7512             LD="${LD-ld} -m elf32_sparc"
7513             ;;
7514         esac
7515         ;;
7516       *64-bit*)
7517         case $host in
7518           x86_64-*kfreebsd*-gnu)
7519             LD="${LD-ld} -m elf_x86_64_fbsd"
7520             ;;
7521           x86_64-*linux*)
7522             LD="${LD-ld} -m elf_x86_64"
7523             ;;
7524           powerpcle-*linux*)
7525             LD="${LD-ld} -m elf64lppc"
7526             ;;
7527           powerpc-*linux*)
7528             LD="${LD-ld} -m elf64ppc"
7529             ;;
7530           s390*-*linux*|s390*-*tpf*)
7531             LD="${LD-ld} -m elf64_s390"
7532             ;;
7533           sparc*-*linux*)
7534             LD="${LD-ld} -m elf64_sparc"
7535             ;;
7536         esac
7537         ;;
7538     esac
7539   fi
7540   rm -rf conftest*
7541   ;;
7542
7543 *-*-sco3.2v5*)
7544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7545   SAVE_CFLAGS=$CFLAGS
7546   CFLAGS="$CFLAGS -belf"
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7548 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7549 if ${lt_cv_cc_needs_belf+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   ac_ext=c
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557
7558      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h.  */
7560
7561 int
7562 main ()
7563 {
7564
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_link "$LINENO"; then :
7570   lt_cv_cc_needs_belf=yes
7571 else
7572   lt_cv_cc_needs_belf=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext \
7575     conftest$ac_exeext conftest.$ac_ext
7576      ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7584 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7585   if test yes != "$lt_cv_cc_needs_belf"; then
7586     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7587     CFLAGS=$SAVE_CFLAGS
7588   fi
7589   ;;
7590 *-*solaris*)
7591   # Find out what ABI is being produced by ac_compile, and set linker
7592   # options accordingly.
7593   echo 'int i;' > conftest.$ac_ext
7594   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7595   (eval $ac_compile) 2>&5
7596   ac_status=$?
7597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7598   test $ac_status = 0; }; then
7599     case `/usr/bin/file conftest.o` in
7600     *64-bit*)
7601       case $lt_cv_prog_gnu_ld in
7602       yes*)
7603         case $host in
7604         i?86-*-solaris*|x86_64-*-solaris*)
7605           LD="${LD-ld} -m elf_x86_64"
7606           ;;
7607         sparc*-*-solaris*)
7608           LD="${LD-ld} -m elf64_sparc"
7609           ;;
7610         esac
7611         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7612         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7613           LD=${LD-ld}_sol2
7614         fi
7615         ;;
7616       *)
7617         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7618           LD="${LD-ld} -64"
7619         fi
7620         ;;
7621       esac
7622       ;;
7623     esac
7624   fi
7625   rm -rf conftest*
7626   ;;
7627 esac
7628
7629 need_locks=$enable_libtool_lock
7630
7631 if test -n "$ac_tool_prefix"; then
7632   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7633 set dummy ${ac_tool_prefix}mt; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639   if test -n "$MANIFEST_TOOL"; then
7640   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647     for ac_exec_ext in '' $ac_executable_extensions; do
7648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654   done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7660 if test -n "$MANIFEST_TOOL"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7662 $as_echo "$MANIFEST_TOOL" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668
7669 fi
7670 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7671   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7672   # Extract the first word of "mt", so it can be a program name with args.
7673 set dummy mt; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7677   $as_echo_n "(cached) " >&6
7678 else
7679   if test -n "$ac_ct_MANIFEST_TOOL"; then
7680   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687     for ac_exec_ext in '' $ac_executable_extensions; do
7688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694   done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7700 if test -n "$ac_ct_MANIFEST_TOOL"; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7702 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7709     MANIFEST_TOOL=":"
7710   else
7711     case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7715 ac_tool_warned=yes ;;
7716 esac
7717     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7718   fi
7719 else
7720   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7721 fi
7722
7723 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7725 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7726 if ${lt_cv_path_mainfest_tool+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   lt_cv_path_mainfest_tool=no
7730   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7731   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7732   cat conftest.err >&5
7733   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7734     lt_cv_path_mainfest_tool=yes
7735   fi
7736   rm -f conftest*
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7739 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7740 if test yes != "$lt_cv_path_mainfest_tool"; then
7741   MANIFEST_TOOL=:
7742 fi
7743
7744
7745
7746
7747
7748
7749   case $host_os in
7750     rhapsody* | darwin*)
7751     if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$DSYMUTIL"; then
7760   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7780 if test -n "$DSYMUTIL"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7782 $as_echo "$DSYMUTIL" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_DSYMUTIL"; then
7791   ac_ct_DSYMUTIL=$DSYMUTIL
7792   # Extract the first word of "dsymutil", so it can be a program name with args.
7793 set dummy dsymutil; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_DSYMUTIL"; then
7800   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7820 if test -n "$ac_ct_DSYMUTIL"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7822 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_DSYMUTIL" = x; then
7829     DSYMUTIL=":"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837     DSYMUTIL=$ac_ct_DSYMUTIL
7838   fi
7839 else
7840   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7841 fi
7842
7843     if test -n "$ac_tool_prefix"; then
7844   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_NMEDIT+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$NMEDIT"; then
7852   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 NMEDIT=$ac_cv_prog_NMEDIT
7872 if test -n "$NMEDIT"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7874 $as_echo "$NMEDIT" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_prog_NMEDIT"; then
7883   ac_ct_NMEDIT=$NMEDIT
7884   # Extract the first word of "nmedit", so it can be a program name with args.
7885 set dummy nmedit; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   if test -n "$ac_ct_NMEDIT"; then
7892   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7912 if test -n "$ac_ct_NMEDIT"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7914 $as_echo "$ac_ct_NMEDIT" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920   if test "x$ac_ct_NMEDIT" = x; then
7921     NMEDIT=":"
7922   else
7923     case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929     NMEDIT=$ac_ct_NMEDIT
7930   fi
7931 else
7932   NMEDIT="$ac_cv_prog_NMEDIT"
7933 fi
7934
7935     if test -n "$ac_tool_prefix"; then
7936   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if ${ac_cv_prog_LIPO+:} false; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   if test -n "$LIPO"; then
7944   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951     for ac_exec_ext in '' $ac_executable_extensions; do
7952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955     break 2
7956   fi
7957 done
7958   done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 LIPO=$ac_cv_prog_LIPO
7964 if test -n "$LIPO"; then
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7966 $as_echo "$LIPO" >&6; }
7967 else
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 fi
7974 if test -z "$ac_cv_prog_LIPO"; then
7975   ac_ct_LIPO=$LIPO
7976   # Extract the first word of "lipo", so it can be a program name with args.
7977 set dummy lipo; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   if test -n "$ac_ct_LIPO"; then
7984   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991     for ac_exec_ext in '' $ac_executable_extensions; do
7992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993     ac_cv_prog_ac_ct_LIPO="lipo"
7994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998   done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8004 if test -n "$ac_ct_LIPO"; then
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8006 $as_echo "$ac_ct_LIPO" >&6; }
8007 else
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012   if test "x$ac_ct_LIPO" = x; then
8013     LIPO=":"
8014   else
8015     case $cross_compiling:$ac_tool_warned in
8016 yes:)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8020 esac
8021     LIPO=$ac_ct_LIPO
8022   fi
8023 else
8024   LIPO="$ac_cv_prog_LIPO"
8025 fi
8026
8027     if test -n "$ac_tool_prefix"; then
8028   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}otool; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_prog_OTOOL+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   if test -n "$OTOOL"; then
8036   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043     for ac_exec_ext in '' $ac_executable_extensions; do
8044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050   done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 OTOOL=$ac_cv_prog_OTOOL
8056 if test -n "$OTOOL"; then
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8058 $as_echo "$OTOOL" >&6; }
8059 else
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065 fi
8066 if test -z "$ac_cv_prog_OTOOL"; then
8067   ac_ct_OTOOL=$OTOOL
8068   # Extract the first word of "otool", so it can be a program name with args.
8069 set dummy otool; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   if test -n "$ac_ct_OTOOL"; then
8076   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081   IFS=$as_save_IFS
8082   test -z "$as_dir" && as_dir=.
8083     for ac_exec_ext in '' $ac_executable_extensions; do
8084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085     ac_cv_prog_ac_ct_OTOOL="otool"
8086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087     break 2
8088   fi
8089 done
8090   done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8096 if test -n "$ac_ct_OTOOL"; then
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8098 $as_echo "$ac_ct_OTOOL" >&6; }
8099 else
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104   if test "x$ac_ct_OTOOL" = x; then
8105     OTOOL=":"
8106   else
8107     case $cross_compiling:$ac_tool_warned in
8108 yes:)
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8112 esac
8113     OTOOL=$ac_ct_OTOOL
8114   fi
8115 else
8116   OTOOL="$ac_cv_prog_OTOOL"
8117 fi
8118
8119     if test -n "$ac_tool_prefix"; then
8120   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8121 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if ${ac_cv_prog_OTOOL64+:} false; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   if test -n "$OTOOL64"; then
8128   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   test -z "$as_dir" && as_dir=.
8135     for ac_exec_ext in '' $ac_executable_extensions; do
8136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139     break 2
8140   fi
8141 done
8142   done
8143 IFS=$as_save_IFS
8144
8145 fi
8146 fi
8147 OTOOL64=$ac_cv_prog_OTOOL64
8148 if test -n "$OTOOL64"; then
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8150 $as_echo "$OTOOL64" >&6; }
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156
8157 fi
8158 if test -z "$ac_cv_prog_OTOOL64"; then
8159   ac_ct_OTOOL64=$OTOOL64
8160   # Extract the first word of "otool64", so it can be a program name with args.
8161 set dummy otool64; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   if test -n "$ac_ct_OTOOL64"; then
8168   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177     ac_cv_prog_ac_ct_OTOOL64="otool64"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8188 if test -n "$ac_ct_OTOOL64"; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8190 $as_echo "$ac_ct_OTOOL64" >&6; }
8191 else
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196   if test "x$ac_ct_OTOOL64" = x; then
8197     OTOOL64=":"
8198   else
8199     case $cross_compiling:$ac_tool_warned in
8200 yes:)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8203 ac_tool_warned=yes ;;
8204 esac
8205     OTOOL64=$ac_ct_OTOOL64
8206   fi
8207 else
8208   OTOOL64="$ac_cv_prog_OTOOL64"
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8238 $as_echo_n "checking for -single_module linker flag... " >&6; }
8239 if ${lt_cv_apple_cc_single_mod+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   lt_cv_apple_cc_single_mod=no
8243       if test -z "$LT_MULTI_MODULE"; then
8244         # By default we will add the -single_module flag. You can override
8245         # by either setting the environment variable LT_MULTI_MODULE
8246         # non-empty at configure time, or by adding -multi_module to the
8247         # link flags.
8248         rm -rf libconftest.dylib*
8249         echo "int foo(void){return 1;}" > conftest.c
8250         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8251 -dynamiclib -Wl,-single_module conftest.c" >&5
8252         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8253           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8254         _lt_result=$?
8255         # If there is a non-empty error log, and "single_module"
8256         # appears in it, assume the flag caused a linker warning
8257         if test -s conftest.err && $GREP single_module conftest.err; then
8258           cat conftest.err >&5
8259         # Otherwise, if the output was created with a 0 exit code from
8260         # the compiler, it worked.
8261         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8262           lt_cv_apple_cc_single_mod=yes
8263         else
8264           cat conftest.err >&5
8265         fi
8266         rm -rf libconftest.dylib*
8267         rm -f conftest.*
8268       fi
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8271 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8272
8273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8274 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8275 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   lt_cv_ld_exported_symbols_list=no
8279       save_LDFLAGS=$LDFLAGS
8280       echo "_main" > conftest.sym
8281       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h.  */
8284
8285 int
8286 main ()
8287 {
8288
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_link "$LINENO"; then :
8294   lt_cv_ld_exported_symbols_list=yes
8295 else
8296   lt_cv_ld_exported_symbols_list=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299     conftest$ac_exeext conftest.$ac_ext
8300         LDFLAGS=$save_LDFLAGS
8301
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8304 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8305
8306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8307 $as_echo_n "checking for -force_load linker flag... " >&6; }
8308 if ${lt_cv_ld_force_load+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   lt_cv_ld_force_load=no
8312       cat > conftest.c << _LT_EOF
8313 int forced_loaded() { return 2;}
8314 _LT_EOF
8315       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8316       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8317       echo "$AR cru libconftest.a conftest.o" >&5
8318       $AR cru libconftest.a conftest.o 2>&5
8319       echo "$RANLIB libconftest.a" >&5
8320       $RANLIB libconftest.a 2>&5
8321       cat > conftest.c << _LT_EOF
8322 int main() { return 0;}
8323 _LT_EOF
8324       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8325       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8326       _lt_result=$?
8327       if test -s conftest.err && $GREP force_load conftest.err; then
8328         cat conftest.err >&5
8329       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8330         lt_cv_ld_force_load=yes
8331       else
8332         cat conftest.err >&5
8333       fi
8334         rm -f conftest.err libconftest.a conftest conftest.c
8335         rm -rf conftest.dSYM
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8339 $as_echo "$lt_cv_ld_force_load" >&6; }
8340     case $host_os in
8341     rhapsody* | darwin1.[012])
8342       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8343     darwin1.*)
8344       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8345     darwin*) # darwin 5.x on
8346       # if running on 10.5 or later, the deployment target defaults
8347       # to the OS version, if on x86, and 10.4, the deployment
8348       # target defaults to 10.4. Don't you love it?
8349       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8350         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8351           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8352         10.[012][,.]*)
8353           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8354         10.*)
8355           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8356       esac
8357     ;;
8358   esac
8359     if test yes = "$lt_cv_apple_cc_single_mod"; then
8360       _lt_dar_single_mod='$single_module'
8361     fi
8362     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8363       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8364     else
8365       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8366     fi
8367     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8368       _lt_dsymutil='~$DSYMUTIL $lib || :'
8369     else
8370       _lt_dsymutil=
8371     fi
8372     ;;
8373   esac
8374
8375 # func_munge_path_list VARIABLE PATH
8376 # -----------------------------------
8377 # VARIABLE is name of variable containing _space_ separated list of
8378 # directories to be munged by the contents of PATH, which is string
8379 # having a format:
8380 # "DIR[:DIR]:"
8381 #       string "DIR[ DIR]" will be prepended to VARIABLE
8382 # ":DIR[:DIR]"
8383 #       string "DIR[ DIR]" will be appended to VARIABLE
8384 # "DIRP[:DIRP]::[DIRA:]DIRA"
8385 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8386 #       "DIRA[ DIRA]" will be appended to VARIABLE
8387 # "DIR[:DIR]"
8388 #       VARIABLE will be replaced by "DIR[ DIR]"
8389 func_munge_path_list ()
8390 {
8391     case x$2 in
8392     x)
8393         ;;
8394     *:)
8395         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8396         ;;
8397     x:*)
8398         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8399         ;;
8400     *::*)
8401         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8402         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8403         ;;
8404     *)
8405         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8406         ;;
8407     esac
8408 }
8409
8410 for ac_header in dlfcn.h
8411 do :
8412   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8413 "
8414 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8415   cat >>confdefs.h <<_ACEOF
8416 #define HAVE_DLFCN_H 1
8417 _ACEOF
8418
8419 fi
8420
8421 done
8422
8423
8424
8425
8426
8427 # Set options
8428
8429
8430
8431         enable_dlopen=no
8432
8433
8434   enable_win32_dll=no
8435
8436
8437             # Check whether --enable-shared was given.
8438 if test "${enable_shared+set}" = set; then :
8439   enableval=$enable_shared; p=${PACKAGE-default}
8440     case $enableval in
8441     yes) enable_shared=yes ;;
8442     no) enable_shared=no ;;
8443     *)
8444       enable_shared=no
8445       # Look at the argument we got.  We use all the common list separators.
8446       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8447       for pkg in $enableval; do
8448         IFS=$lt_save_ifs
8449         if test "X$pkg" = "X$p"; then
8450           enable_shared=yes
8451         fi
8452       done
8453       IFS=$lt_save_ifs
8454       ;;
8455     esac
8456 else
8457   enable_shared=yes
8458 fi
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468   # Check whether --enable-static was given.
8469 if test "${enable_static+set}" = set; then :
8470   enableval=$enable_static; p=${PACKAGE-default}
8471     case $enableval in
8472     yes) enable_static=yes ;;
8473     no) enable_static=no ;;
8474     *)
8475      enable_static=no
8476       # Look at the argument we got.  We use all the common list separators.
8477       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8478       for pkg in $enableval; do
8479         IFS=$lt_save_ifs
8480         if test "X$pkg" = "X$p"; then
8481           enable_static=yes
8482         fi
8483       done
8484       IFS=$lt_save_ifs
8485       ;;
8486     esac
8487 else
8488   enable_static=yes
8489 fi
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 # Check whether --with-pic was given.
8501 if test "${with_pic+set}" = set; then :
8502   withval=$with_pic; lt_p=${PACKAGE-default}
8503     case $withval in
8504     yes|no) pic_mode=$withval ;;
8505     *)
8506       pic_mode=default
8507       # Look at the argument we got.  We use all the common list separators.
8508       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8509       for lt_pkg in $withval; do
8510         IFS=$lt_save_ifs
8511         if test "X$lt_pkg" = "X$lt_p"; then
8512           pic_mode=yes
8513         fi
8514       done
8515       IFS=$lt_save_ifs
8516       ;;
8517     esac
8518 else
8519   pic_mode=default
8520 fi
8521
8522
8523
8524
8525
8526
8527
8528
8529   # Check whether --enable-fast-install was given.
8530 if test "${enable_fast_install+set}" = set; then :
8531   enableval=$enable_fast_install; p=${PACKAGE-default}
8532     case $enableval in
8533     yes) enable_fast_install=yes ;;
8534     no) enable_fast_install=no ;;
8535     *)
8536       enable_fast_install=no
8537       # Look at the argument we got.  We use all the common list separators.
8538       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8539       for pkg in $enableval; do
8540         IFS=$lt_save_ifs
8541         if test "X$pkg" = "X$p"; then
8542           enable_fast_install=yes
8543         fi
8544       done
8545       IFS=$lt_save_ifs
8546       ;;
8547     esac
8548 else
8549   enable_fast_install=yes
8550 fi
8551
8552
8553
8554
8555
8556
8557
8558
8559   shared_archive_member_spec=
8560 case $host,$enable_shared in
8561 power*-*-aix[5-9]*,yes)
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8563 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8564
8565 # Check whether --with-aix-soname was given.
8566 if test "${with_aix_soname+set}" = set; then :
8567   withval=$with_aix_soname; case $withval in
8568     aix|svr4|both)
8569       ;;
8570     *)
8571       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8572       ;;
8573     esac
8574     lt_cv_with_aix_soname=$with_aix_soname
8575 else
8576   if ${lt_cv_with_aix_soname+:} false; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   lt_cv_with_aix_soname=aix
8580 fi
8581
8582     with_aix_soname=$lt_cv_with_aix_soname
8583 fi
8584
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8586 $as_echo "$with_aix_soname" >&6; }
8587   if test aix != "$with_aix_soname"; then
8588     # For the AIX way of multilib, we name the shared archive member
8589     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8590     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8591     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8592     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8593     if test 64 = "${OBJECT_MODE-32}"; then
8594       shared_archive_member_spec=shr_64
8595     else
8596       shared_archive_member_spec=shr
8597     fi
8598   fi
8599   ;;
8600 *)
8601   with_aix_soname=aix
8602   ;;
8603 esac
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614 # This can be used to rebuild libtool when needed
8615 LIBTOOL_DEPS=$ltmain
8616
8617 # Always use our own libtool.
8618 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649 test -z "$LN_S" && LN_S="ln -s"
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 if test -n "${ZSH_VERSION+set}"; then
8665    setopt NO_GLOB_SUBST
8666 fi
8667
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8669 $as_echo_n "checking for objdir... " >&6; }
8670 if ${lt_cv_objdir+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   rm -f .libs 2>/dev/null
8674 mkdir .libs 2>/dev/null
8675 if test -d .libs; then
8676   lt_cv_objdir=.libs
8677 else
8678   # MS-DOS does not allow filenames that begin with a dot.
8679   lt_cv_objdir=_libs
8680 fi
8681 rmdir .libs 2>/dev/null
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8684 $as_echo "$lt_cv_objdir" >&6; }
8685 objdir=$lt_cv_objdir
8686
8687
8688
8689
8690
8691 cat >>confdefs.h <<_ACEOF
8692 #define LT_OBJDIR "$lt_cv_objdir/"
8693 _ACEOF
8694
8695
8696
8697
8698 case $host_os in
8699 aix3*)
8700   # AIX sometimes has problems with the GCC collect2 program.  For some
8701   # reason, if we set the COLLECT_NAMES environment variable, the problems
8702   # vanish in a puff of smoke.
8703   if test set != "${COLLECT_NAMES+set}"; then
8704     COLLECT_NAMES=
8705     export COLLECT_NAMES
8706   fi
8707   ;;
8708 esac
8709
8710 # Global variables:
8711 ofile=libtool
8712 can_build_shared=yes
8713
8714 # All known linkers require a '.a' archive for static linking (except MSVC,
8715 # which needs '.lib').
8716 libext=a
8717
8718 with_gnu_ld=$lt_cv_prog_gnu_ld
8719
8720 old_CC=$CC
8721 old_CFLAGS=$CFLAGS
8722
8723 # Set sane defaults for various variables
8724 test -z "$CC" && CC=cc
8725 test -z "$LTCC" && LTCC=$CC
8726 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8727 test -z "$LD" && LD=ld
8728 test -z "$ac_objext" && ac_objext=o
8729
8730 func_cc_basename $compiler
8731 cc_basename=$func_cc_basename_result
8732
8733
8734 # Only perform the check for file, if the check method requires it
8735 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8736 case $deplibs_check_method in
8737 file_magic*)
8738   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8740 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8741 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   case $MAGIC_CMD in
8745 [\\/*] |  ?:[\\/]*)
8746   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8747   ;;
8748 *)
8749   lt_save_MAGIC_CMD=$MAGIC_CMD
8750   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8751   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8752   for ac_dir in $ac_dummy; do
8753     IFS=$lt_save_ifs
8754     test -z "$ac_dir" && ac_dir=.
8755     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8756       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8757       if test -n "$file_magic_test_file"; then
8758         case $deplibs_check_method in
8759         "file_magic "*)
8760           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8761           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8762           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8763             $EGREP "$file_magic_regex" > /dev/null; then
8764             :
8765           else
8766             cat <<_LT_EOF 1>&2
8767
8768 *** Warning: the command libtool uses to detect shared libraries,
8769 *** $file_magic_cmd, produces output that libtool cannot recognize.
8770 *** The result is that libtool may fail to recognize shared libraries
8771 *** as such.  This will affect the creation of libtool libraries that
8772 *** depend on shared libraries, but programs linked with such libtool
8773 *** libraries will work regardless of this problem.  Nevertheless, you
8774 *** may want to report the problem to your system manager and/or to
8775 *** bug-libtool@gnu.org
8776
8777 _LT_EOF
8778           fi ;;
8779         esac
8780       fi
8781       break
8782     fi
8783   done
8784   IFS=$lt_save_ifs
8785   MAGIC_CMD=$lt_save_MAGIC_CMD
8786   ;;
8787 esac
8788 fi
8789
8790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8791 if test -n "$MAGIC_CMD"; then
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8793 $as_echo "$MAGIC_CMD" >&6; }
8794 else
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800
8801
8802
8803 if test -z "$lt_cv_path_MAGIC_CMD"; then
8804   if test -n "$ac_tool_prefix"; then
8805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8806 $as_echo_n "checking for file... " >&6; }
8807 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   case $MAGIC_CMD in
8811 [\\/*] |  ?:[\\/]*)
8812   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8813   ;;
8814 *)
8815   lt_save_MAGIC_CMD=$MAGIC_CMD
8816   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8817   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8818   for ac_dir in $ac_dummy; do
8819     IFS=$lt_save_ifs
8820     test -z "$ac_dir" && ac_dir=.
8821     if test -f "$ac_dir/file"; then
8822       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8823       if test -n "$file_magic_test_file"; then
8824         case $deplibs_check_method in
8825         "file_magic "*)
8826           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8827           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8828           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8829             $EGREP "$file_magic_regex" > /dev/null; then
8830             :
8831           else
8832             cat <<_LT_EOF 1>&2
8833
8834 *** Warning: the command libtool uses to detect shared libraries,
8835 *** $file_magic_cmd, produces output that libtool cannot recognize.
8836 *** The result is that libtool may fail to recognize shared libraries
8837 *** as such.  This will affect the creation of libtool libraries that
8838 *** depend on shared libraries, but programs linked with such libtool
8839 *** libraries will work regardless of this problem.  Nevertheless, you
8840 *** may want to report the problem to your system manager and/or to
8841 *** bug-libtool@gnu.org
8842
8843 _LT_EOF
8844           fi ;;
8845         esac
8846       fi
8847       break
8848     fi
8849   done
8850   IFS=$lt_save_ifs
8851   MAGIC_CMD=$lt_save_MAGIC_CMD
8852   ;;
8853 esac
8854 fi
8855
8856 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8857 if test -n "$MAGIC_CMD"; then
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8859 $as_echo "$MAGIC_CMD" >&6; }
8860 else
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8863 fi
8864
8865
8866   else
8867     MAGIC_CMD=:
8868   fi
8869 fi
8870
8871   fi
8872   ;;
8873 esac
8874
8875 # Use C for the default configuration in the libtool script
8876
8877 lt_save_CC=$CC
8878 ac_ext=c
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8883
8884
8885 # Source file extension for C test sources.
8886 ac_ext=c
8887
8888 # Object file extension for compiled C test sources.
8889 objext=o
8890 objext=$objext
8891
8892 # Code to be used in simple compile tests
8893 lt_simple_compile_test_code="int some_variable = 0;"
8894
8895 # Code to be used in simple link tests
8896 lt_simple_link_test_code='int main(){return(0);}'
8897
8898
8899
8900
8901
8902
8903
8904 # If no C compiler was specified, use CC.
8905 LTCC=${LTCC-"$CC"}
8906
8907 # If no C compiler flags were specified, use CFLAGS.
8908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8909
8910 # Allow CC to be a program name with arguments.
8911 compiler=$CC
8912
8913 # Save the default compiler, since it gets overwritten when the other
8914 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8915 compiler_DEFAULT=$CC
8916
8917 # save warnings/boilerplate of simple test code
8918 ac_outfile=conftest.$ac_objext
8919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8921 _lt_compiler_boilerplate=`cat conftest.err`
8922 $RM conftest*
8923
8924 ac_outfile=conftest.$ac_objext
8925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8927 _lt_linker_boilerplate=`cat conftest.err`
8928 $RM -r conftest*
8929
8930
8931 ## CAVEAT EMPTOR:
8932 ## There is no encapsulation within the following macros, do not change
8933 ## the running order or otherwise move them around unless you know exactly
8934 ## what you are doing...
8935 if test -n "$compiler"; then
8936
8937 lt_prog_compiler_no_builtin_flag=
8938
8939 if test yes = "$GCC"; then
8940   case $cc_basename in
8941   nvcc*)
8942     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8943   *)
8944     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8945   esac
8946
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8948 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8949 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   lt_cv_prog_compiler_rtti_exceptions=no
8953    ac_outfile=conftest.$ac_objext
8954    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8956    # Insert the option either (1) after the last *FLAGS variable, or
8957    # (2) before a word containing "conftest.", or (3) at the end.
8958    # Note that $ac_compile itself does not contain backslashes and begins
8959    # with a dollar sign (not a hyphen), so the echo should work correctly.
8960    # The option is referenced via a variable to avoid confusing sed.
8961    lt_compile=`echo "$ac_compile" | $SED \
8962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964    -e 's:$: $lt_compiler_flag:'`
8965    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8966    (eval "$lt_compile" 2>conftest.err)
8967    ac_status=$?
8968    cat conftest.err >&5
8969    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970    if (exit $ac_status) && test -s "$ac_outfile"; then
8971      # The compiler can only warn and ignore the option if not recognized
8972      # So say no if there are warnings other than the usual output.
8973      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8974      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976        lt_cv_prog_compiler_rtti_exceptions=yes
8977      fi
8978    fi
8979    $RM conftest*
8980
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8983 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8984
8985 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8986     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8987 else
8988     :
8989 fi
8990
8991 fi
8992
8993
8994
8995
8996
8997
8998   lt_prog_compiler_wl=
8999 lt_prog_compiler_pic=
9000 lt_prog_compiler_static=
9001
9002
9003   if test yes = "$GCC"; then
9004     lt_prog_compiler_wl='-Wl,'
9005     lt_prog_compiler_static='-static'
9006
9007     case $host_os in
9008       aix*)
9009       # All AIX code is PIC.
9010       if test ia64 = "$host_cpu"; then
9011         # AIX 5 now supports IA64 processor
9012         lt_prog_compiler_static='-Bstatic'
9013       fi
9014       lt_prog_compiler_pic='-fPIC'
9015       ;;
9016
9017     amigaos*)
9018       case $host_cpu in
9019       powerpc)
9020             # see comment about AmigaOS4 .so support
9021             lt_prog_compiler_pic='-fPIC'
9022         ;;
9023       m68k)
9024             # FIXME: we need at least 68020 code to build shared libraries, but
9025             # adding the '-m68020' flag to GCC prevents building anything better,
9026             # like '-m68040'.
9027             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9028         ;;
9029       esac
9030       ;;
9031
9032     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9033       # PIC is the default for these OSes.
9034       ;;
9035
9036     mingw* | cygwin* | pw32* | os2* | cegcc*)
9037       # This hack is so that the source file can tell whether it is being
9038       # built for inclusion in a dll (and should export symbols for example).
9039       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9040       # (--disable-auto-import) libraries
9041       lt_prog_compiler_pic='-DDLL_EXPORT'
9042       case $host_os in
9043       os2*)
9044         lt_prog_compiler_static='$wl-static'
9045         ;;
9046       esac
9047       ;;
9048
9049     darwin* | rhapsody*)
9050       # PIC is the default on this platform
9051       # Common symbols not allowed in MH_DYLIB files
9052       lt_prog_compiler_pic='-fno-common'
9053       ;;
9054
9055     haiku*)
9056       # PIC is the default for Haiku.
9057       # The "-static" flag exists, but is broken.
9058       lt_prog_compiler_static=
9059       ;;
9060
9061     hpux*)
9062       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9063       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9064       # sets the default TLS model and affects inlining.
9065       case $host_cpu in
9066       hppa*64*)
9067         # +Z the default
9068         ;;
9069       *)
9070         lt_prog_compiler_pic='-fPIC'
9071         ;;
9072       esac
9073       ;;
9074
9075     interix[3-9]*)
9076       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9077       # Instead, we relocate shared libraries at runtime.
9078       ;;
9079
9080     msdosdjgpp*)
9081       # Just because we use GCC doesn't mean we suddenly get shared libraries
9082       # on systems that don't support them.
9083       lt_prog_compiler_can_build_shared=no
9084       enable_shared=no
9085       ;;
9086
9087     *nto* | *qnx*)
9088       # QNX uses GNU C++, but need to define -shared option too, otherwise
9089       # it will coredump.
9090       lt_prog_compiler_pic='-fPIC -shared'
9091       ;;
9092
9093     sysv4*MP*)
9094       if test -d /usr/nec; then
9095         lt_prog_compiler_pic=-Kconform_pic
9096       fi
9097       ;;
9098
9099     *)
9100       lt_prog_compiler_pic='-fPIC'
9101       ;;
9102     esac
9103
9104     case $cc_basename in
9105     nvcc*) # Cuda Compiler Driver 2.2
9106       lt_prog_compiler_wl='-Xlinker '
9107       if test -n "$lt_prog_compiler_pic"; then
9108         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9109       fi
9110       ;;
9111     esac
9112   else
9113     # PORTME Check for flag to pass linker flags through the system compiler.
9114     case $host_os in
9115     aix*)
9116       lt_prog_compiler_wl='-Wl,'
9117       if test ia64 = "$host_cpu"; then
9118         # AIX 5 now supports IA64 processor
9119         lt_prog_compiler_static='-Bstatic'
9120       else
9121         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9122       fi
9123       ;;
9124
9125     darwin* | rhapsody*)
9126       # PIC is the default on this platform
9127       # Common symbols not allowed in MH_DYLIB files
9128       lt_prog_compiler_pic='-fno-common'
9129       case $cc_basename in
9130       nagfor*)
9131         # NAG Fortran compiler
9132         lt_prog_compiler_wl='-Wl,-Wl,,'
9133         lt_prog_compiler_pic='-PIC'
9134         lt_prog_compiler_static='-Bstatic'
9135         ;;
9136       esac
9137       ;;
9138
9139     mingw* | cygwin* | pw32* | os2* | cegcc*)
9140       # This hack is so that the source file can tell whether it is being
9141       # built for inclusion in a dll (and should export symbols for example).
9142       lt_prog_compiler_pic='-DDLL_EXPORT'
9143       case $host_os in
9144       os2*)
9145         lt_prog_compiler_static='$wl-static'
9146         ;;
9147       esac
9148       ;;
9149
9150     hpux9* | hpux10* | hpux11*)
9151       lt_prog_compiler_wl='-Wl,'
9152       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9153       # not for PA HP-UX.
9154       case $host_cpu in
9155       hppa*64*|ia64*)
9156         # +Z the default
9157         ;;
9158       *)
9159         lt_prog_compiler_pic='+Z'
9160         ;;
9161       esac
9162       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9163       lt_prog_compiler_static='$wl-a ${wl}archive'
9164       ;;
9165
9166     irix5* | irix6* | nonstopux*)
9167       lt_prog_compiler_wl='-Wl,'
9168       # PIC (with -KPIC) is the default.
9169       lt_prog_compiler_static='-non_shared'
9170       ;;
9171
9172     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9173       case $cc_basename in
9174       # old Intel for x86_64, which still supported -KPIC.
9175       ecc*)
9176         lt_prog_compiler_wl='-Wl,'
9177         lt_prog_compiler_pic='-KPIC'
9178         lt_prog_compiler_static='-static'
9179         ;;
9180       # icc used to be incompatible with GCC.
9181       # ICC 10 doesn't accept -KPIC any more.
9182       icc* | ifort*)
9183         lt_prog_compiler_wl='-Wl,'
9184         lt_prog_compiler_pic='-fPIC'
9185         lt_prog_compiler_static='-static'
9186         ;;
9187       # Lahey Fortran 8.1.
9188       lf95*)
9189         lt_prog_compiler_wl='-Wl,'
9190         lt_prog_compiler_pic='--shared'
9191         lt_prog_compiler_static='--static'
9192         ;;
9193       nagfor*)
9194         # NAG Fortran compiler
9195         lt_prog_compiler_wl='-Wl,-Wl,,'
9196         lt_prog_compiler_pic='-PIC'
9197         lt_prog_compiler_static='-Bstatic'
9198         ;;
9199       tcc*)
9200         # Fabrice Bellard et al's Tiny C Compiler
9201         lt_prog_compiler_wl='-Wl,'
9202         lt_prog_compiler_pic='-fPIC'
9203         lt_prog_compiler_static='-static'
9204         ;;
9205       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9206         # Portland Group compilers (*not* the Pentium gcc compiler,
9207         # which looks to be a dead project)
9208         lt_prog_compiler_wl='-Wl,'
9209         lt_prog_compiler_pic='-fpic'
9210         lt_prog_compiler_static='-Bstatic'
9211         ;;
9212       ccc*)
9213         lt_prog_compiler_wl='-Wl,'
9214         # All Alpha code is PIC.
9215         lt_prog_compiler_static='-non_shared'
9216         ;;
9217       xl* | bgxl* | bgf* | mpixl*)
9218         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9219         lt_prog_compiler_wl='-Wl,'
9220         lt_prog_compiler_pic='-qpic'
9221         lt_prog_compiler_static='-qstaticlink'
9222         ;;
9223       *)
9224         case `$CC -V 2>&1 | sed 5q` in
9225         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9226           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9227           lt_prog_compiler_pic='-KPIC'
9228           lt_prog_compiler_static='-Bstatic'
9229           lt_prog_compiler_wl=''
9230           ;;
9231         *Sun\ F* | *Sun*Fortran*)
9232           lt_prog_compiler_pic='-KPIC'
9233           lt_prog_compiler_static='-Bstatic'
9234           lt_prog_compiler_wl='-Qoption ld '
9235           ;;
9236         *Sun\ C*)
9237           # Sun C 5.9
9238           lt_prog_compiler_pic='-KPIC'
9239           lt_prog_compiler_static='-Bstatic'
9240           lt_prog_compiler_wl='-Wl,'
9241           ;;
9242         *Intel*\ [CF]*Compiler*)
9243           lt_prog_compiler_wl='-Wl,'
9244           lt_prog_compiler_pic='-fPIC'
9245           lt_prog_compiler_static='-static'
9246           ;;
9247         *Portland\ Group*)
9248           lt_prog_compiler_wl='-Wl,'
9249           lt_prog_compiler_pic='-fpic'
9250           lt_prog_compiler_static='-Bstatic'
9251           ;;
9252         esac
9253         ;;
9254       esac
9255       ;;
9256
9257     newsos6)
9258       lt_prog_compiler_pic='-KPIC'
9259       lt_prog_compiler_static='-Bstatic'
9260       ;;
9261
9262     *nto* | *qnx*)
9263       # QNX uses GNU C++, but need to define -shared option too, otherwise
9264       # it will coredump.
9265       lt_prog_compiler_pic='-fPIC -shared'
9266       ;;
9267
9268     osf3* | osf4* | osf5*)
9269       lt_prog_compiler_wl='-Wl,'
9270       # All OSF/1 code is PIC.
9271       lt_prog_compiler_static='-non_shared'
9272       ;;
9273
9274     rdos*)
9275       lt_prog_compiler_static='-non_shared'
9276       ;;
9277
9278     solaris*)
9279       lt_prog_compiler_pic='-KPIC'
9280       lt_prog_compiler_static='-Bstatic'
9281       case $cc_basename in
9282       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9283         lt_prog_compiler_wl='-Qoption ld ';;
9284       *)
9285         lt_prog_compiler_wl='-Wl,';;
9286       esac
9287       ;;
9288
9289     sunos4*)
9290       lt_prog_compiler_wl='-Qoption ld '
9291       lt_prog_compiler_pic='-PIC'
9292       lt_prog_compiler_static='-Bstatic'
9293       ;;
9294
9295     sysv4 | sysv4.2uw2* | sysv4.3*)
9296       lt_prog_compiler_wl='-Wl,'
9297       lt_prog_compiler_pic='-KPIC'
9298       lt_prog_compiler_static='-Bstatic'
9299       ;;
9300
9301     sysv4*MP*)
9302       if test -d /usr/nec; then
9303         lt_prog_compiler_pic='-Kconform_pic'
9304         lt_prog_compiler_static='-Bstatic'
9305       fi
9306       ;;
9307
9308     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9309       lt_prog_compiler_wl='-Wl,'
9310       lt_prog_compiler_pic='-KPIC'
9311       lt_prog_compiler_static='-Bstatic'
9312       ;;
9313
9314     unicos*)
9315       lt_prog_compiler_wl='-Wl,'
9316       lt_prog_compiler_can_build_shared=no
9317       ;;
9318
9319     uts4*)
9320       lt_prog_compiler_pic='-pic'
9321       lt_prog_compiler_static='-Bstatic'
9322       ;;
9323
9324     *)
9325       lt_prog_compiler_can_build_shared=no
9326       ;;
9327     esac
9328   fi
9329
9330 case $host_os in
9331   # For platforms that do not support PIC, -DPIC is meaningless:
9332   *djgpp*)
9333     lt_prog_compiler_pic=
9334     ;;
9335   *)
9336     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9337     ;;
9338 esac
9339
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9341 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9342 if ${lt_cv_prog_compiler_pic+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9348 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9349 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9350
9351 #
9352 # Check to make sure the PIC flag actually works.
9353 #
9354 if test -n "$lt_prog_compiler_pic"; then
9355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9356 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9357 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9358   $as_echo_n "(cached) " >&6
9359 else
9360   lt_cv_prog_compiler_pic_works=no
9361    ac_outfile=conftest.$ac_objext
9362    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9364    # Insert the option either (1) after the last *FLAGS variable, or
9365    # (2) before a word containing "conftest.", or (3) at the end.
9366    # Note that $ac_compile itself does not contain backslashes and begins
9367    # with a dollar sign (not a hyphen), so the echo should work correctly.
9368    # The option is referenced via a variable to avoid confusing sed.
9369    lt_compile=`echo "$ac_compile" | $SED \
9370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372    -e 's:$: $lt_compiler_flag:'`
9373    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374    (eval "$lt_compile" 2>conftest.err)
9375    ac_status=$?
9376    cat conftest.err >&5
9377    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378    if (exit $ac_status) && test -s "$ac_outfile"; then
9379      # The compiler can only warn and ignore the option if not recognized
9380      # So say no if there are warnings other than the usual output.
9381      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9382      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9383      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9384        lt_cv_prog_compiler_pic_works=yes
9385      fi
9386    fi
9387    $RM conftest*
9388
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9391 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9392
9393 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9394     case $lt_prog_compiler_pic in
9395      "" | " "*) ;;
9396      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9397      esac
9398 else
9399     lt_prog_compiler_pic=
9400      lt_prog_compiler_can_build_shared=no
9401 fi
9402
9403 fi
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415 #
9416 # Check to make sure the static flag actually works.
9417 #
9418 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9421 if ${lt_cv_prog_compiler_static_works+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   lt_cv_prog_compiler_static_works=no
9425    save_LDFLAGS=$LDFLAGS
9426    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9427    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429      # The linker can only warn and ignore the option if not recognized
9430      # So say no if there are warnings
9431      if test -s conftest.err; then
9432        # Append any errors to the config.log.
9433        cat conftest.err 1>&5
9434        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436        if diff conftest.exp conftest.er2 >/dev/null; then
9437          lt_cv_prog_compiler_static_works=yes
9438        fi
9439      else
9440        lt_cv_prog_compiler_static_works=yes
9441      fi
9442    fi
9443    $RM -r conftest*
9444    LDFLAGS=$save_LDFLAGS
9445
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9448 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9449
9450 if test yes = "$lt_cv_prog_compiler_static_works"; then
9451     :
9452 else
9453     lt_prog_compiler_static=
9454 fi
9455
9456
9457
9458
9459
9460
9461
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9464 if ${lt_cv_prog_compiler_c_o+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   lt_cv_prog_compiler_c_o=no
9468    $RM -r conftest 2>/dev/null
9469    mkdir conftest
9470    cd conftest
9471    mkdir out
9472    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9473
9474    lt_compiler_flag="-o out/conftest2.$ac_objext"
9475    # Insert the option either (1) after the last *FLAGS variable, or
9476    # (2) before a word containing "conftest.", or (3) at the end.
9477    # Note that $ac_compile itself does not contain backslashes and begins
9478    # with a dollar sign (not a hyphen), so the echo should work correctly.
9479    lt_compile=`echo "$ac_compile" | $SED \
9480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9482    -e 's:$: $lt_compiler_flag:'`
9483    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9484    (eval "$lt_compile" 2>out/conftest.err)
9485    ac_status=$?
9486    cat out/conftest.err >&5
9487    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9489    then
9490      # The compiler can only warn and ignore the option if not recognized
9491      # So say no if there are warnings
9492      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9493      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9494      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9495        lt_cv_prog_compiler_c_o=yes
9496      fi
9497    fi
9498    chmod u+w . 2>&5
9499    $RM conftest*
9500    # SGI C++ compiler will create directory out/ii_files/ for
9501    # template instantiation
9502    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9503    $RM out/* && rmdir out
9504    cd ..
9505    $RM -r conftest
9506    $RM conftest*
9507
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9511
9512
9513
9514
9515
9516
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9519 if ${lt_cv_prog_compiler_c_o+:} false; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   lt_cv_prog_compiler_c_o=no
9523    $RM -r conftest 2>/dev/null
9524    mkdir conftest
9525    cd conftest
9526    mkdir out
9527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528
9529    lt_compiler_flag="-o out/conftest2.$ac_objext"
9530    # Insert the option either (1) after the last *FLAGS variable, or
9531    # (2) before a word containing "conftest.", or (3) at the end.
9532    # Note that $ac_compile itself does not contain backslashes and begins
9533    # with a dollar sign (not a hyphen), so the echo should work correctly.
9534    lt_compile=`echo "$ac_compile" | $SED \
9535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9537    -e 's:$: $lt_compiler_flag:'`
9538    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9539    (eval "$lt_compile" 2>out/conftest.err)
9540    ac_status=$?
9541    cat out/conftest.err >&5
9542    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9544    then
9545      # The compiler can only warn and ignore the option if not recognized
9546      # So say no if there are warnings
9547      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9548      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9549      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9550        lt_cv_prog_compiler_c_o=yes
9551      fi
9552    fi
9553    chmod u+w . 2>&5
9554    $RM conftest*
9555    # SGI C++ compiler will create directory out/ii_files/ for
9556    # template instantiation
9557    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9558    $RM out/* && rmdir out
9559    cd ..
9560    $RM -r conftest
9561    $RM conftest*
9562
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9566
9567
9568
9569
9570 hard_links=nottested
9571 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9572   # do not overwrite the value of need_locks provided by the user
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9574 $as_echo_n "checking if we can lock with hard links... " >&6; }
9575   hard_links=yes
9576   $RM conftest*
9577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9578   touch conftest.a
9579   ln conftest.a conftest.b 2>&5 || hard_links=no
9580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9582 $as_echo "$hard_links" >&6; }
9583   if test no = "$hard_links"; then
9584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9585 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9586     need_locks=warn
9587   fi
9588 else
9589   need_locks=no
9590 fi
9591
9592
9593
9594
9595
9596
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9599
9600   runpath_var=
9601   allow_undefined_flag=
9602   always_export_symbols=no
9603   archive_cmds=
9604   archive_expsym_cmds=
9605   compiler_needs_object=no
9606   enable_shared_with_static_runtimes=no
9607   export_dynamic_flag_spec=
9608   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9609   hardcode_automatic=no
9610   hardcode_direct=no
9611   hardcode_direct_absolute=no
9612   hardcode_libdir_flag_spec=
9613   hardcode_libdir_separator=
9614   hardcode_minus_L=no
9615   hardcode_shlibpath_var=unsupported
9616   inherit_rpath=no
9617   link_all_deplibs=unknown
9618   module_cmds=
9619   module_expsym_cmds=
9620   old_archive_from_new_cmds=
9621   old_archive_from_expsyms_cmds=
9622   thread_safe_flag_spec=
9623   whole_archive_flag_spec=
9624   # include_expsyms should be a list of space-separated symbols to be *always*
9625   # included in the symbol list
9626   include_expsyms=
9627   # exclude_expsyms can be an extended regexp of symbols to exclude
9628   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9629   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9630   # as well as any symbol that contains 'd'.
9631   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9632   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9633   # platforms (ab)use it in PIC code, but their linkers get confused if
9634   # the symbol is explicitly referenced.  Since portable code cannot
9635   # rely on this symbol name, it's probably fine to never include it in
9636   # preloaded symbol tables.
9637   # Exclude shared library initialization/finalization symbols.
9638   extract_expsyms_cmds=
9639
9640   case $host_os in
9641   cygwin* | mingw* | pw32* | cegcc*)
9642     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9643     # When not using gcc, we currently assume that we are using
9644     # Microsoft Visual C++.
9645     if test yes != "$GCC"; then
9646       with_gnu_ld=no
9647     fi
9648     ;;
9649   interix*)
9650     # we just hope/assume this is gcc and not c89 (= MSVC++)
9651     with_gnu_ld=yes
9652     ;;
9653   openbsd* | bitrig*)
9654     with_gnu_ld=no
9655     ;;
9656   esac
9657
9658   ld_shlibs=yes
9659
9660   # On some targets, GNU ld is compatible enough with the native linker
9661   # that we're better off using the native interface for both.
9662   lt_use_gnu_ld_interface=no
9663   if test yes = "$with_gnu_ld"; then
9664     case $host_os in
9665       aix*)
9666         # The AIX port of GNU ld has always aspired to compatibility
9667         # with the native linker.  However, as the warning in the GNU ld
9668         # block says, versions before 2.19.5* couldn't really create working
9669         # shared libraries, regardless of the interface used.
9670         case `$LD -v 2>&1` in
9671           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9672           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9673           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9674           *)
9675             lt_use_gnu_ld_interface=yes
9676             ;;
9677         esac
9678         ;;
9679       *)
9680         lt_use_gnu_ld_interface=yes
9681         ;;
9682     esac
9683   fi
9684
9685   if test yes = "$lt_use_gnu_ld_interface"; then
9686     # If archive_cmds runs LD, not CC, wlarc should be empty
9687     wlarc='$wl'
9688
9689     # Set some defaults for GNU ld with shared library support. These
9690     # are reset later if shared libraries are not supported. Putting them
9691     # here allows them to be overridden if necessary.
9692     runpath_var=LD_RUN_PATH
9693     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9694     export_dynamic_flag_spec='$wl--export-dynamic'
9695     # ancient GNU ld didn't support --whole-archive et. al.
9696     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9697       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9698     else
9699       whole_archive_flag_spec=
9700     fi
9701     supports_anon_versioning=no
9702     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9703       *GNU\ gold*) supports_anon_versioning=yes ;;
9704       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9705       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9706       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9707       *\ 2.11.*) ;; # other 2.11 versions
9708       *) supports_anon_versioning=yes ;;
9709     esac
9710
9711     # See if GNU ld supports shared libraries.
9712     case $host_os in
9713     aix[3-9]*)
9714       # On AIX/PPC, the GNU linker is very broken
9715       if test ia64 != "$host_cpu"; then
9716         ld_shlibs=no
9717         cat <<_LT_EOF 1>&2
9718
9719 *** Warning: the GNU linker, at least up to release 2.19, is reported
9720 *** to be unable to reliably create shared libraries on AIX.
9721 *** Therefore, libtool is disabling shared libraries support.  If you
9722 *** really care for shared libraries, you may want to install binutils
9723 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9724 *** You will then need to restart the configuration process.
9725
9726 _LT_EOF
9727       fi
9728       ;;
9729
9730     amigaos*)
9731       case $host_cpu in
9732       powerpc)
9733             # see comment about AmigaOS4 .so support
9734             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735             archive_expsym_cmds=''
9736         ;;
9737       m68k)
9738             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)'
9739             hardcode_libdir_flag_spec='-L$libdir'
9740             hardcode_minus_L=yes
9741         ;;
9742       esac
9743       ;;
9744
9745     beos*)
9746       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747         allow_undefined_flag=unsupported
9748         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9749         # support --undefined.  This deserves some investigation.  FIXME
9750         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751       else
9752         ld_shlibs=no
9753       fi
9754       ;;
9755
9756     cygwin* | mingw* | pw32* | cegcc*)
9757       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9758       # as there is no search path for DLLs.
9759       hardcode_libdir_flag_spec='-L$libdir'
9760       export_dynamic_flag_spec='$wl--export-all-symbols'
9761       allow_undefined_flag=unsupported
9762       always_export_symbols=no
9763       enable_shared_with_static_runtimes=yes
9764       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'
9765       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9766
9767       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769         # If the export-symbols file already is a .def file, use it as
9770         # is; otherwise, prepend EXPORTS...
9771         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9772           cp $export_symbols $output_objdir/$soname.def;
9773         else
9774           echo EXPORTS > $output_objdir/$soname.def;
9775           cat $export_symbols >> $output_objdir/$soname.def;
9776         fi~
9777         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9778       else
9779         ld_shlibs=no
9780       fi
9781       ;;
9782
9783     haiku*)
9784       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9785       link_all_deplibs=yes
9786       ;;
9787
9788     os2*)
9789       hardcode_libdir_flag_spec='-L$libdir'
9790       hardcode_minus_L=yes
9791       allow_undefined_flag=unsupported
9792       shrext_cmds=.dll
9793       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9794         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9795         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9796         $ECHO EXPORTS >> $output_objdir/$libname.def~
9797         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9798         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9799         emximp -o $lib $output_objdir/$libname.def'
9800       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9801         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9802         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9803         $ECHO EXPORTS >> $output_objdir/$libname.def~
9804         prefix_cmds="$SED"~
9805         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9806           prefix_cmds="$prefix_cmds -e 1d";
9807         fi~
9808         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9809         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9810         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9811         emximp -o $lib $output_objdir/$libname.def'
9812       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9813       enable_shared_with_static_runtimes=yes
9814       ;;
9815
9816     interix[3-9]*)
9817       hardcode_direct=no
9818       hardcode_shlibpath_var=no
9819       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9820       export_dynamic_flag_spec='$wl-E'
9821       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9822       # Instead, shared libraries are loaded at an image base (0x10000000 by
9823       # default) and relocated if they conflict, which is a slow very memory
9824       # consuming and fragmenting process.  To avoid this, we pick a random,
9825       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9826       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9827       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9828       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'
9829       ;;
9830
9831     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9832       tmp_diet=no
9833       if test linux-dietlibc = "$host_os"; then
9834         case $cc_basename in
9835           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9836         esac
9837       fi
9838       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9839          && test no = "$tmp_diet"
9840       then
9841         tmp_addflag=' $pic_flag'
9842         tmp_sharedflag='-shared'
9843         case $cc_basename,$host_cpu in
9844         pgcc*)                          # Portland Group C compiler
9845           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'
9846           tmp_addflag=' $pic_flag'
9847           ;;
9848         pgf77* | pgf90* | pgf95* | pgfortran*)
9849                                         # Portland Group f77 and f90 compilers
9850           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'
9851           tmp_addflag=' $pic_flag -Mnomain' ;;
9852         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9853           tmp_addflag=' -i_dynamic' ;;
9854         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9855           tmp_addflag=' -i_dynamic -nofor_main' ;;
9856         ifc* | ifort*)                  # Intel Fortran compiler
9857           tmp_addflag=' -nofor_main' ;;
9858         lf95*)                          # Lahey Fortran 8.1
9859           whole_archive_flag_spec=
9860           tmp_sharedflag='--shared' ;;
9861         nagfor*)                        # NAGFOR 5.3
9862           tmp_sharedflag='-Wl,-shared' ;;
9863         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9864           tmp_sharedflag='-qmkshrobj'
9865           tmp_addflag= ;;
9866         nvcc*)  # Cuda Compiler Driver 2.2
9867           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'
9868           compiler_needs_object=yes
9869           ;;
9870         esac
9871         case `$CC -V 2>&1 | sed 5q` in
9872         *Sun\ C*)                       # Sun C 5.9
9873           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'
9874           compiler_needs_object=yes
9875           tmp_sharedflag='-G' ;;
9876         *Sun\ F*)                       # Sun Fortran 8.3
9877           tmp_sharedflag='-G' ;;
9878         esac
9879         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9880
9881         if test yes = "$supports_anon_versioning"; then
9882           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884             echo "local: *; };" >> $output_objdir/$libname.ver~
9885             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9886         fi
9887
9888         case $cc_basename in
9889         tcc*)
9890           export_dynamic_flag_spec='-rdynamic'
9891           ;;
9892         xlf* | bgf* | bgxlf* | mpixlf*)
9893           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9894           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9895           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9896           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9897           if test yes = "$supports_anon_versioning"; then
9898             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9899               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9900               echo "local: *; };" >> $output_objdir/$libname.ver~
9901               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9902           fi
9903           ;;
9904         esac
9905       else
9906         ld_shlibs=no
9907       fi
9908       ;;
9909
9910     netbsd*)
9911       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9912         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9913         wlarc=
9914       else
9915         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9916         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9917       fi
9918       ;;
9919
9920     solaris*)
9921       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9922         ld_shlibs=no
9923         cat <<_LT_EOF 1>&2
9924
9925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9926 *** create shared libraries on Solaris systems.  Therefore, libtool
9927 *** is disabling shared libraries support.  We urge you to upgrade GNU
9928 *** binutils to release 2.9.1 or newer.  Another option is to modify
9929 *** your PATH or compiler configuration so that the native linker is
9930 *** used, and then restart.
9931
9932 _LT_EOF
9933       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9934         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9936       else
9937         ld_shlibs=no
9938       fi
9939       ;;
9940
9941     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9942       case `$LD -v 2>&1` in
9943         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9944         ld_shlibs=no
9945         cat <<_LT_EOF 1>&2
9946
9947 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9948 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9949 *** is disabling shared libraries support.  We urge you to upgrade GNU
9950 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9951 *** your PATH or compiler configuration so that the native linker is
9952 *** used, and then restart.
9953
9954 _LT_EOF
9955         ;;
9956         *)
9957           # For security reasons, it is highly recommended that you always
9958           # use absolute paths for naming shared libraries, and exclude the
9959           # DT_RUNPATH tag from executables and libraries.  But doing so
9960           # requires that you compile everything twice, which is a pain.
9961           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9962             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9964             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9965           else
9966             ld_shlibs=no
9967           fi
9968         ;;
9969       esac
9970       ;;
9971
9972     sunos4*)
9973       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974       wlarc=
9975       hardcode_direct=yes
9976       hardcode_shlibpath_var=no
9977       ;;
9978
9979     *)
9980       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9982         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9983       else
9984         ld_shlibs=no
9985       fi
9986       ;;
9987     esac
9988
9989     if test no = "$ld_shlibs"; then
9990       runpath_var=
9991       hardcode_libdir_flag_spec=
9992       export_dynamic_flag_spec=
9993       whole_archive_flag_spec=
9994     fi
9995   else
9996     # PORTME fill in a description of your system's linker (not GNU ld)
9997     case $host_os in
9998     aix3*)
9999       allow_undefined_flag=unsupported
10000       always_export_symbols=yes
10001       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'
10002       # Note: this linker hardcodes the directories in LIBPATH if there
10003       # are no directories specified by -L.
10004       hardcode_minus_L=yes
10005       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10006         # Neither direct hardcoding nor static linking is supported with a
10007         # broken collect2.
10008         hardcode_direct=unsupported
10009       fi
10010       ;;
10011
10012     aix[4-9]*)
10013       if test ia64 = "$host_cpu"; then
10014         # On IA64, the linker does run time linking by default, so we don't
10015         # have to do anything special.
10016         aix_use_runtimelinking=no
10017         exp_sym_flag='-Bexport'
10018         no_entry_flag=
10019       else
10020         # If we're using GNU nm, then we don't want the "-C" option.
10021         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10022         # Without the "-l" option, or with the "-B" option, AIX nm treats
10023         # weak defined symbols like other global defined symbols, whereas
10024         # GNU nm marks them as "W".
10025         # While the 'weak' keyword is ignored in the Export File, we need
10026         # it in the Import File for the 'aix-soname' feature, so we have
10027         # to replace the "-B" option with "-P" for AIX nm.
10028         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10029           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10030         else
10031           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10032         fi
10033         aix_use_runtimelinking=no
10034
10035         # Test if we are trying to use run time linking or normal
10036         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10037         # have runtime linking enabled, and use it for executables.
10038         # For shared libraries, we enable/disable runtime linking
10039         # depending on the kind of the shared library created -
10040         # when "with_aix_soname,aix_use_runtimelinking" is:
10041         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10042         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10043         #            lib.a           static archive
10044         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10045         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10046         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10047         #            lib.a(lib.so.V) shared, rtl:no
10048         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10049         #            lib.a           static archive
10050         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10051           for ld_flag in $LDFLAGS; do
10052           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10053             aix_use_runtimelinking=yes
10054             break
10055           fi
10056           done
10057           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10058             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10059             # so we don't have lib.a shared libs to link our executables.
10060             # We have to force runtime linking in this case.
10061             aix_use_runtimelinking=yes
10062             LDFLAGS="$LDFLAGS -Wl,-brtl"
10063           fi
10064           ;;
10065         esac
10066
10067         exp_sym_flag='-bexport'
10068         no_entry_flag='-bnoentry'
10069       fi
10070
10071       # When large executables or shared objects are built, AIX ld can
10072       # have problems creating the table of contents.  If linking a library
10073       # or program results in "error TOC overflow" add -mminimal-toc to
10074       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10075       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10076
10077       archive_cmds=''
10078       hardcode_direct=yes
10079       hardcode_direct_absolute=yes
10080       hardcode_libdir_separator=':'
10081       link_all_deplibs=yes
10082       file_list_spec='$wl-f,'
10083       case $with_aix_soname,$aix_use_runtimelinking in
10084       aix,*) ;; # traditional, no import file
10085       svr4,* | *,yes) # use import file
10086         # The Import File defines what to hardcode.
10087         hardcode_direct=no
10088         hardcode_direct_absolute=no
10089         ;;
10090       esac
10091
10092       if test yes = "$GCC"; then
10093         case $host_os in aix4.[012]|aix4.[012].*)
10094         # We only want to do this on AIX 4.2 and lower, the check
10095         # below for broken collect2 doesn't work under 4.3+
10096           collect2name=`$CC -print-prog-name=collect2`
10097           if test -f "$collect2name" &&
10098            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10099           then
10100           # We have reworked collect2
10101           :
10102           else
10103           # We have old collect2
10104           hardcode_direct=unsupported
10105           # It fails to find uninstalled libraries when the uninstalled
10106           # path is not listed in the libpath.  Setting hardcode_minus_L
10107           # to unsupported forces relinking
10108           hardcode_minus_L=yes
10109           hardcode_libdir_flag_spec='-L$libdir'
10110           hardcode_libdir_separator=
10111           fi
10112           ;;
10113         esac
10114         shared_flag='-shared'
10115         if test yes = "$aix_use_runtimelinking"; then
10116           shared_flag="$shared_flag "'$wl-G'
10117         fi
10118         # Need to ensure runtime linking is disabled for the traditional
10119         # shared library, or the linker may eventually find shared libraries
10120         # /with/ Import File - we do not want to mix them.
10121         shared_flag_aix='-shared'
10122         shared_flag_svr4='-shared $wl-G'
10123       else
10124         # not using gcc
10125         if test ia64 = "$host_cpu"; then
10126         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10127         # chokes on -Wl,-G. The following line is correct:
10128           shared_flag='-G'
10129         else
10130           if test yes = "$aix_use_runtimelinking"; then
10131             shared_flag='$wl-G'
10132           else
10133             shared_flag='$wl-bM:SRE'
10134           fi
10135           shared_flag_aix='$wl-bM:SRE'
10136           shared_flag_svr4='$wl-G'
10137         fi
10138       fi
10139
10140       export_dynamic_flag_spec='$wl-bexpall'
10141       # It seems that -bexpall does not export symbols beginning with
10142       # underscore (_), so it is better to generate a list of symbols to export.
10143       always_export_symbols=yes
10144       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10145         # Warning - without using the other runtime loading flags (-brtl),
10146         # -berok will link without error, but may produce a broken library.
10147         allow_undefined_flag='-berok'
10148         # Determine the default libpath from the value encoded in an
10149         # empty executable.
10150         if test set = "${lt_cv_aix_libpath+set}"; then
10151   aix_libpath=$lt_cv_aix_libpath
10152 else
10153   if ${lt_cv_aix_libpath_+:} false; then :
10154   $as_echo_n "(cached) " >&6
10155 else
10156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158
10159 int
10160 main ()
10161 {
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168
10169   lt_aix_libpath_sed='
10170       /Import File Strings/,/^$/ {
10171           /^0/ {
10172               s/^0  *\([^ ]*\) *$/\1/
10173               p
10174           }
10175       }'
10176   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10177   # Check for a 64-bit object if we didn't find anything.
10178   if test -z "$lt_cv_aix_libpath_"; then
10179     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180   fi
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext \
10183     conftest$ac_exeext conftest.$ac_ext
10184   if test -z "$lt_cv_aix_libpath_"; then
10185     lt_cv_aix_libpath_=/usr/lib:/lib
10186   fi
10187
10188 fi
10189
10190   aix_libpath=$lt_cv_aix_libpath_
10191 fi
10192
10193         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10194         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10195       else
10196         if test ia64 = "$host_cpu"; then
10197           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10198           allow_undefined_flag="-z nodefs"
10199           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"
10200         else
10201          # Determine the default libpath from the value encoded in an
10202          # empty executable.
10203          if test set = "${lt_cv_aix_libpath+set}"; then
10204   aix_libpath=$lt_cv_aix_libpath
10205 else
10206   if ${lt_cv_aix_libpath_+:} false; then :
10207   $as_echo_n "(cached) " >&6
10208 else
10209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h.  */
10211
10212 int
10213 main ()
10214 {
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221
10222   lt_aix_libpath_sed='
10223       /Import File Strings/,/^$/ {
10224           /^0/ {
10225               s/^0  *\([^ ]*\) *$/\1/
10226               p
10227           }
10228       }'
10229   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230   # Check for a 64-bit object if we didn't find anything.
10231   if test -z "$lt_cv_aix_libpath_"; then
10232     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233   fi
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext \
10236     conftest$ac_exeext conftest.$ac_ext
10237   if test -z "$lt_cv_aix_libpath_"; then
10238     lt_cv_aix_libpath_=/usr/lib:/lib
10239   fi
10240
10241 fi
10242
10243   aix_libpath=$lt_cv_aix_libpath_
10244 fi
10245
10246          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10247           # Warning - without using the other run time loading flags,
10248           # -berok will link without error, but may produce a broken library.
10249           no_undefined_flag=' $wl-bernotok'
10250           allow_undefined_flag=' $wl-berok'
10251           if test yes = "$with_gnu_ld"; then
10252             # We only use this code for GNU lds that support --whole-archive.
10253             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10254           else
10255             # Exported symbols can be pulled into shared objects from archives
10256             whole_archive_flag_spec='$convenience'
10257           fi
10258           archive_cmds_need_lc=yes
10259           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10260           # -brtl affects multiple linker settings, -berok does not and is overridden later
10261           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10262           if test svr4 != "$with_aix_soname"; then
10263             # This is similar to how AIX traditionally builds its shared libraries.
10264             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10265           fi
10266           if test aix != "$with_aix_soname"; then
10267             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10268           else
10269             # used by -dlpreopen to get the symbols
10270             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10271           fi
10272           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10273         fi
10274       fi
10275       ;;
10276
10277     amigaos*)
10278       case $host_cpu in
10279       powerpc)
10280             # see comment about AmigaOS4 .so support
10281             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10282             archive_expsym_cmds=''
10283         ;;
10284       m68k)
10285             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)'
10286             hardcode_libdir_flag_spec='-L$libdir'
10287             hardcode_minus_L=yes
10288         ;;
10289       esac
10290       ;;
10291
10292     bsdi[45]*)
10293       export_dynamic_flag_spec=-rdynamic
10294       ;;
10295
10296     cygwin* | mingw* | pw32* | cegcc*)
10297       # When not using gcc, we currently assume that we are using
10298       # Microsoft Visual C++.
10299       # hardcode_libdir_flag_spec is actually meaningless, as there is
10300       # no search path for DLLs.
10301       case $cc_basename in
10302       cl*)
10303         # Native MSVC
10304         hardcode_libdir_flag_spec=' '
10305         allow_undefined_flag=unsupported
10306         always_export_symbols=yes
10307         file_list_spec='@'
10308         # Tell ltmain to make .lib files, not .a files.
10309         libext=lib
10310         # Tell ltmain to make .dll files, not .so files.
10311         shrext_cmds=.dll
10312         # FIXME: Setting linknames here is a bad hack.
10313         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10314         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10315             cp "$export_symbols" "$output_objdir/$soname.def";
10316             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10317           else
10318             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10319           fi~
10320           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10321           linknames='
10322         # The linker will not automatically build a static lib if we build a DLL.
10323         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10324         enable_shared_with_static_runtimes=yes
10325         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10326         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10327         # Don't use ranlib
10328         old_postinstall_cmds='chmod 644 $oldlib'
10329         postlink_cmds='lt_outputfile="@OUTPUT@"~
10330           lt_tool_outputfile="@TOOL_OUTPUT@"~
10331           case $lt_outputfile in
10332             *.exe|*.EXE) ;;
10333             *)
10334               lt_outputfile=$lt_outputfile.exe
10335               lt_tool_outputfile=$lt_tool_outputfile.exe
10336               ;;
10337           esac~
10338           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10339             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10340             $RM "$lt_outputfile.manifest";
10341           fi'
10342         ;;
10343       *)
10344         # Assume MSVC wrapper
10345         hardcode_libdir_flag_spec=' '
10346         allow_undefined_flag=unsupported
10347         # Tell ltmain to make .lib files, not .a files.
10348         libext=lib
10349         # Tell ltmain to make .dll files, not .so files.
10350         shrext_cmds=.dll
10351         # FIXME: Setting linknames here is a bad hack.
10352         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10353         # The linker will automatically build a .lib file if we build a DLL.
10354         old_archive_from_new_cmds='true'
10355         # FIXME: Should let the user specify the lib program.
10356         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10357         enable_shared_with_static_runtimes=yes
10358         ;;
10359       esac
10360       ;;
10361
10362     darwin* | rhapsody*)
10363
10364
10365   archive_cmds_need_lc=no
10366   hardcode_direct=no
10367   hardcode_automatic=yes
10368   hardcode_shlibpath_var=unsupported
10369   if test yes = "$lt_cv_ld_force_load"; then
10370     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\"`'
10371
10372   else
10373     whole_archive_flag_spec=''
10374   fi
10375   link_all_deplibs=yes
10376   allow_undefined_flag=$_lt_dar_allow_undefined
10377   case $cc_basename in
10378      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10379      *) _lt_dar_can_shared=$GCC ;;
10380   esac
10381   if test yes = "$_lt_dar_can_shared"; then
10382     output_verbose_link_cmd=func_echo_all
10383     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10384     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10385     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"
10386     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"
10387
10388   else
10389   ld_shlibs=no
10390   fi
10391
10392       ;;
10393
10394     dgux*)
10395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396       hardcode_libdir_flag_spec='-L$libdir'
10397       hardcode_shlibpath_var=no
10398       ;;
10399
10400     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10401     # support.  Future versions do this automatically, but an explicit c++rt0.o
10402     # does not break anything, and helps significantly (at the cost of a little
10403     # extra space).
10404     freebsd2.2*)
10405       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10406       hardcode_libdir_flag_spec='-R$libdir'
10407       hardcode_direct=yes
10408       hardcode_shlibpath_var=no
10409       ;;
10410
10411     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10412     freebsd2.*)
10413       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10414       hardcode_direct=yes
10415       hardcode_minus_L=yes
10416       hardcode_shlibpath_var=no
10417       ;;
10418
10419     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10420     freebsd* | dragonfly*)
10421       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422       hardcode_libdir_flag_spec='-R$libdir'
10423       hardcode_direct=yes
10424       hardcode_shlibpath_var=no
10425       ;;
10426
10427     hpux9*)
10428       if test yes = "$GCC"; then
10429         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10430       else
10431         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10432       fi
10433       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10434       hardcode_libdir_separator=:
10435       hardcode_direct=yes
10436
10437       # hardcode_minus_L: Not really in the search PATH,
10438       # but as the default location of the library.
10439       hardcode_minus_L=yes
10440       export_dynamic_flag_spec='$wl-E'
10441       ;;
10442
10443     hpux10*)
10444       if test yes,no = "$GCC,$with_gnu_ld"; then
10445         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10446       else
10447         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10448       fi
10449       if test no = "$with_gnu_ld"; then
10450         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10451         hardcode_libdir_separator=:
10452         hardcode_direct=yes
10453         hardcode_direct_absolute=yes
10454         export_dynamic_flag_spec='$wl-E'
10455         # hardcode_minus_L: Not really in the search PATH,
10456         # but as the default location of the library.
10457         hardcode_minus_L=yes
10458       fi
10459       ;;
10460
10461     hpux11*)
10462       if test yes,no = "$GCC,$with_gnu_ld"; then
10463         case $host_cpu in
10464         hppa*64*)
10465           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10466           ;;
10467         ia64*)
10468           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10469           ;;
10470         *)
10471           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10472           ;;
10473         esac
10474       else
10475         case $host_cpu in
10476         hppa*64*)
10477           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10478           ;;
10479         ia64*)
10480           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10481           ;;
10482         *)
10483
10484           # Older versions of the 11.00 compiler do not understand -b yet
10485           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10486           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10487 $as_echo_n "checking if $CC understands -b... " >&6; }
10488 if ${lt_cv_prog_compiler__b+:} false; then :
10489   $as_echo_n "(cached) " >&6
10490 else
10491   lt_cv_prog_compiler__b=no
10492    save_LDFLAGS=$LDFLAGS
10493    LDFLAGS="$LDFLAGS -b"
10494    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10496      # The linker can only warn and ignore the option if not recognized
10497      # So say no if there are warnings
10498      if test -s conftest.err; then
10499        # Append any errors to the config.log.
10500        cat conftest.err 1>&5
10501        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10502        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10503        if diff conftest.exp conftest.er2 >/dev/null; then
10504          lt_cv_prog_compiler__b=yes
10505        fi
10506      else
10507        lt_cv_prog_compiler__b=yes
10508      fi
10509    fi
10510    $RM -r conftest*
10511    LDFLAGS=$save_LDFLAGS
10512
10513 fi
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10515 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10516
10517 if test yes = "$lt_cv_prog_compiler__b"; then
10518     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10519 else
10520     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10521 fi
10522
10523           ;;
10524         esac
10525       fi
10526       if test no = "$with_gnu_ld"; then
10527         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10528         hardcode_libdir_separator=:
10529
10530         case $host_cpu in
10531         hppa*64*|ia64*)
10532           hardcode_direct=no
10533           hardcode_shlibpath_var=no
10534           ;;
10535         *)
10536           hardcode_direct=yes
10537           hardcode_direct_absolute=yes
10538           export_dynamic_flag_spec='$wl-E'
10539
10540           # hardcode_minus_L: Not really in the search PATH,
10541           # but as the default location of the library.
10542           hardcode_minus_L=yes
10543           ;;
10544         esac
10545       fi
10546       ;;
10547
10548     irix5* | irix6* | nonstopux*)
10549       if test yes = "$GCC"; then
10550         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'
10551         # Try to use the -exported_symbol ld option, if it does not
10552         # work, assume that -exports_file does not work either and
10553         # implicitly export all symbols.
10554         # This should be the same for all languages, so no per-tag cache variable.
10555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10556 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10557 if ${lt_cv_irix_exported_symbol+:} false; then :
10558   $as_echo_n "(cached) " >&6
10559 else
10560   save_LDFLAGS=$LDFLAGS
10561            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10562            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h.  */
10564 int foo (void) { return 0; }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567   lt_cv_irix_exported_symbol=yes
10568 else
10569   lt_cv_irix_exported_symbol=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572     conftest$ac_exeext conftest.$ac_ext
10573            LDFLAGS=$save_LDFLAGS
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10576 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10577         if test yes = "$lt_cv_irix_exported_symbol"; then
10578           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'
10579         fi
10580       else
10581         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'
10582         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'
10583       fi
10584       archive_cmds_need_lc='no'
10585       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10586       hardcode_libdir_separator=:
10587       inherit_rpath=yes
10588       link_all_deplibs=yes
10589       ;;
10590
10591     linux*)
10592       case $cc_basename in
10593       tcc*)
10594         # Fabrice Bellard et al's Tiny C Compiler
10595         ld_shlibs=yes
10596         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597         ;;
10598       esac
10599       ;;
10600
10601     netbsd*)
10602       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10603         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10604       else
10605         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10606       fi
10607       hardcode_libdir_flag_spec='-R$libdir'
10608       hardcode_direct=yes
10609       hardcode_shlibpath_var=no
10610       ;;
10611
10612     newsos6)
10613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614       hardcode_direct=yes
10615       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10616       hardcode_libdir_separator=:
10617       hardcode_shlibpath_var=no
10618       ;;
10619
10620     *nto* | *qnx*)
10621       ;;
10622
10623     openbsd* | bitrig*)
10624       if test -f /usr/libexec/ld.so; then
10625         hardcode_direct=yes
10626         hardcode_shlibpath_var=no
10627         hardcode_direct_absolute=yes
10628         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10629           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10630           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10631           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10632           export_dynamic_flag_spec='$wl-E'
10633         else
10634           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10636         fi
10637       else
10638         ld_shlibs=no
10639       fi
10640       ;;
10641
10642     os2*)
10643       hardcode_libdir_flag_spec='-L$libdir'
10644       hardcode_minus_L=yes
10645       allow_undefined_flag=unsupported
10646       shrext_cmds=.dll
10647       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10648         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10649         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10650         $ECHO EXPORTS >> $output_objdir/$libname.def~
10651         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10652         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653         emximp -o $lib $output_objdir/$libname.def'
10654       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10655         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10656         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10657         $ECHO EXPORTS >> $output_objdir/$libname.def~
10658         prefix_cmds="$SED"~
10659         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10660           prefix_cmds="$prefix_cmds -e 1d";
10661         fi~
10662         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10663         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10664         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10665         emximp -o $lib $output_objdir/$libname.def'
10666       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10667       enable_shared_with_static_runtimes=yes
10668       ;;
10669
10670     osf3*)
10671       if test yes = "$GCC"; then
10672         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10673         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'
10674       else
10675         allow_undefined_flag=' -expect_unresolved \*'
10676         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'
10677       fi
10678       archive_cmds_need_lc='no'
10679       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10680       hardcode_libdir_separator=:
10681       ;;
10682
10683     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10684       if test yes = "$GCC"; then
10685         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10686         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'
10687         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10688       else
10689         allow_undefined_flag=' -expect_unresolved \*'
10690         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'
10691         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~
10692           $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'
10693
10694         # Both c and cxx compiler support -rpath directly
10695         hardcode_libdir_flag_spec='-rpath $libdir'
10696       fi
10697       archive_cmds_need_lc='no'
10698       hardcode_libdir_separator=:
10699       ;;
10700
10701     solaris*)
10702       no_undefined_flag=' -z defs'
10703       if test yes = "$GCC"; then
10704         wlarc='$wl'
10705         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10706         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10707           $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'
10708       else
10709         case `$CC -V 2>&1` in
10710         *"Compilers 5.0"*)
10711           wlarc=''
10712           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10714             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10715           ;;
10716         *)
10717           wlarc='$wl'
10718           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10719           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10720             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10721           ;;
10722         esac
10723       fi
10724       hardcode_libdir_flag_spec='-R$libdir'
10725       hardcode_shlibpath_var=no
10726       case $host_os in
10727       solaris2.[0-5] | solaris2.[0-5].*) ;;
10728       *)
10729         # The compiler driver will combine and reorder linker options,
10730         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10731         # but is careful enough not to reorder.
10732         # Supported since Solaris 2.6 (maybe 2.5.1?)
10733         if test yes = "$GCC"; then
10734           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10735         else
10736           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10737         fi
10738         ;;
10739       esac
10740       link_all_deplibs=yes
10741       ;;
10742
10743     sunos4*)
10744       if test sequent = "$host_vendor"; then
10745         # Use $CC to link under sequent, because it throws in some extra .o
10746         # files that make .init and .fini sections work.
10747         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10748       else
10749         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10750       fi
10751       hardcode_libdir_flag_spec='-L$libdir'
10752       hardcode_direct=yes
10753       hardcode_minus_L=yes
10754       hardcode_shlibpath_var=no
10755       ;;
10756
10757     sysv4)
10758       case $host_vendor in
10759         sni)
10760           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761           hardcode_direct=yes # is this really true???
10762         ;;
10763         siemens)
10764           ## LD is ld it makes a PLAMLIB
10765           ## CC just makes a GrossModule.
10766           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10767           reload_cmds='$CC -r -o $output$reload_objs'
10768           hardcode_direct=no
10769         ;;
10770         motorola)
10771           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10773         ;;
10774       esac
10775       runpath_var='LD_RUN_PATH'
10776       hardcode_shlibpath_var=no
10777       ;;
10778
10779     sysv4.3*)
10780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781       hardcode_shlibpath_var=no
10782       export_dynamic_flag_spec='-Bexport'
10783       ;;
10784
10785     sysv4*MP*)
10786       if test -d /usr/nec; then
10787         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788         hardcode_shlibpath_var=no
10789         runpath_var=LD_RUN_PATH
10790         hardcode_runpath_var=yes
10791         ld_shlibs=yes
10792       fi
10793       ;;
10794
10795     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10796       no_undefined_flag='$wl-z,text'
10797       archive_cmds_need_lc=no
10798       hardcode_shlibpath_var=no
10799       runpath_var='LD_RUN_PATH'
10800
10801       if test yes = "$GCC"; then
10802         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804       else
10805         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807       fi
10808       ;;
10809
10810     sysv5* | sco3.2v5* | sco5v6*)
10811       # Note: We CANNOT use -z defs as we might desire, because we do not
10812       # link with -lc, and that would cause any symbols used from libc to
10813       # always be unresolved, which means just about no library would
10814       # ever link correctly.  If we're not using GNU ld we use -z text
10815       # though, which does catch some bad symbols but isn't as heavy-handed
10816       # as -z defs.
10817       no_undefined_flag='$wl-z,text'
10818       allow_undefined_flag='$wl-z,nodefs'
10819       archive_cmds_need_lc=no
10820       hardcode_shlibpath_var=no
10821       hardcode_libdir_flag_spec='$wl-R,$libdir'
10822       hardcode_libdir_separator=':'
10823       link_all_deplibs=yes
10824       export_dynamic_flag_spec='$wl-Bexport'
10825       runpath_var='LD_RUN_PATH'
10826
10827       if test yes = "$GCC"; then
10828         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830       else
10831         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833       fi
10834       ;;
10835
10836     uts4*)
10837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838       hardcode_libdir_flag_spec='-L$libdir'
10839       hardcode_shlibpath_var=no
10840       ;;
10841
10842     *)
10843       ld_shlibs=no
10844       ;;
10845     esac
10846
10847     if test sni = "$host_vendor"; then
10848       case $host in
10849       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10850         export_dynamic_flag_spec='$wl-Blargedynsym'
10851         ;;
10852       esac
10853     fi
10854   fi
10855
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10857 $as_echo "$ld_shlibs" >&6; }
10858 test no = "$ld_shlibs" && can_build_shared=no
10859
10860 with_gnu_ld=$with_gnu_ld
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 #
10877 # Do we need to explicitly link libc?
10878 #
10879 case "x$archive_cmds_need_lc" in
10880 x|xyes)
10881   # Assume -lc should be added
10882   archive_cmds_need_lc=yes
10883
10884   if test yes,yes = "$GCC,$enable_shared"; then
10885     case $archive_cmds in
10886     *'~'*)
10887       # FIXME: we may have to deal with multi-command sequences.
10888       ;;
10889     '$CC '*)
10890       # Test whether the compiler implicitly links with -lc since on some
10891       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10892       # to ld, don't add -lc before -lgcc.
10893       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10894 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10895 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898   $RM conftest*
10899         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10900
10901         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10902   (eval $ac_compile) 2>&5
10903   ac_status=$?
10904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10905   test $ac_status = 0; } 2>conftest.err; then
10906           soname=conftest
10907           lib=conftest
10908           libobjs=conftest.$ac_objext
10909           deplibs=
10910           wl=$lt_prog_compiler_wl
10911           pic_flag=$lt_prog_compiler_pic
10912           compiler_flags=-v
10913           linker_flags=-v
10914           verstring=
10915           output_objdir=.
10916           libname=conftest
10917           lt_save_allow_undefined_flag=$allow_undefined_flag
10918           allow_undefined_flag=
10919           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10920   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10921   ac_status=$?
10922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923   test $ac_status = 0; }
10924           then
10925             lt_cv_archive_cmds_need_lc=no
10926           else
10927             lt_cv_archive_cmds_need_lc=yes
10928           fi
10929           allow_undefined_flag=$lt_save_allow_undefined_flag
10930         else
10931           cat conftest.err 1>&5
10932         fi
10933         $RM conftest*
10934
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10937 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10938       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10939       ;;
10940     esac
10941   fi
10942   ;;
10943 esac
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11097 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11098
11099 if test yes = "$GCC"; then
11100   case $host_os in
11101     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11102     *) lt_awk_arg='/^libraries:/' ;;
11103   esac
11104   case $host_os in
11105     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11106     *) lt_sed_strip_eq='s|=/|/|g' ;;
11107   esac
11108   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11109   case $lt_search_path_spec in
11110   *\;*)
11111     # if the path contains ";" then we assume it to be the separator
11112     # otherwise default to the standard path separator (i.e. ":") - it is
11113     # assumed that no part of a normal pathname contains ";" but that should
11114     # okay in the real world where ";" in dirpaths is itself problematic.
11115     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11116     ;;
11117   *)
11118     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11119     ;;
11120   esac
11121   # Ok, now we have the path, separated by spaces, we can step through it
11122   # and add multilib dir if necessary...
11123   lt_tmp_lt_search_path_spec=
11124   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11125   # ...but if some path component already ends with the multilib dir we assume
11126   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11127   case "$lt_multi_os_dir; $lt_search_path_spec " in
11128   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11129     lt_multi_os_dir=
11130     ;;
11131   esac
11132   for lt_sys_path in $lt_search_path_spec; do
11133     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11134       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11135     elif test -n "$lt_multi_os_dir"; then
11136       test -d "$lt_sys_path" && \
11137         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11138     fi
11139   done
11140   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11141 BEGIN {RS = " "; FS = "/|\n";} {
11142   lt_foo = "";
11143   lt_count = 0;
11144   for (lt_i = NF; lt_i > 0; lt_i--) {
11145     if ($lt_i != "" && $lt_i != ".") {
11146       if ($lt_i == "..") {
11147         lt_count++;
11148       } else {
11149         if (lt_count == 0) {
11150           lt_foo = "/" $lt_i lt_foo;
11151         } else {
11152           lt_count--;
11153         }
11154       }
11155     }
11156   }
11157   if (lt_foo != "") { lt_freq[lt_foo]++; }
11158   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11159 }'`
11160   # AWK program above erroneously prepends '/' to C:/dos/paths
11161   # for these hosts.
11162   case $host_os in
11163     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11164       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11165   esac
11166   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11167 else
11168   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11169 fi
11170 library_names_spec=
11171 libname_spec='lib$name'
11172 soname_spec=
11173 shrext_cmds=.so
11174 postinstall_cmds=
11175 postuninstall_cmds=
11176 finish_cmds=
11177 finish_eval=
11178 shlibpath_var=
11179 shlibpath_overrides_runpath=unknown
11180 version_type=none
11181 dynamic_linker="$host_os ld.so"
11182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11183 need_lib_prefix=unknown
11184 hardcode_into_libs=no
11185
11186 # when you set need_version to no, make sure it does not cause -set_version
11187 # flags to be left without arguments
11188 need_version=unknown
11189
11190
11191
11192 case $host_os in
11193 aix3*)
11194   version_type=linux # correct to gnu/linux during the next big refactor
11195   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11196   shlibpath_var=LIBPATH
11197
11198   # AIX 3 has no versioning support, so we append a major version to the name.
11199   soname_spec='$libname$release$shared_ext$major'
11200   ;;
11201
11202 aix[4-9]*)
11203   version_type=linux # correct to gnu/linux during the next big refactor
11204   need_lib_prefix=no
11205   need_version=no
11206   hardcode_into_libs=yes
11207   if test ia64 = "$host_cpu"; then
11208     # AIX 5 supports IA64
11209     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11210     shlibpath_var=LD_LIBRARY_PATH
11211   else
11212     # With GCC up to 2.95.x, collect2 would create an import file
11213     # for dependence libraries.  The import file would start with
11214     # the line '#! .'.  This would cause the generated library to
11215     # depend on '.', always an invalid library.  This was fixed in
11216     # development snapshots of GCC prior to 3.0.
11217     case $host_os in
11218       aix4 | aix4.[01] | aix4.[01].*)
11219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11220            echo ' yes '
11221            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11222         :
11223       else
11224         can_build_shared=no
11225       fi
11226       ;;
11227     esac
11228     # Using Import Files as archive members, it is possible to support
11229     # filename-based versioning of shared library archives on AIX. While
11230     # this would work for both with and without runtime linking, it will
11231     # prevent static linking of such archives. So we do filename-based
11232     # shared library versioning with .so extension only, which is used
11233     # when both runtime linking and shared linking is enabled.
11234     # Unfortunately, runtime linking may impact performance, so we do
11235     # not want this to be the default eventually. Also, we use the
11236     # versioned .so libs for executables only if there is the -brtl
11237     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11238     # To allow for filename-based versioning support, we need to create
11239     # libNAME.so.V as an archive file, containing:
11240     # *) an Import File, referring to the versioned filename of the
11241     #    archive as well as the shared archive member, telling the
11242     #    bitwidth (32 or 64) of that shared object, and providing the
11243     #    list of exported symbols of that shared object, eventually
11244     #    decorated with the 'weak' keyword
11245     # *) the shared object with the F_LOADONLY flag set, to really avoid
11246     #    it being seen by the linker.
11247     # At run time we better use the real file rather than another symlink,
11248     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11249
11250     case $with_aix_soname,$aix_use_runtimelinking in
11251     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11252     # soname into executable. Probably we can add versioning support to
11253     # collect2, so additional links can be useful in future.
11254     aix,yes) # traditional libtool
11255       dynamic_linker='AIX unversionable lib.so'
11256       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11257       # instead of lib<name>.a to let people know that these are not
11258       # typical AIX shared libraries.
11259       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260       ;;
11261     aix,no) # traditional AIX only
11262       dynamic_linker='AIX lib.a(lib.so.V)'
11263       # We preserve .a as extension for shared libraries through AIX4.2
11264       # and later when we are not doing run time linking.
11265       library_names_spec='$libname$release.a $libname.a'
11266       soname_spec='$libname$release$shared_ext$major'
11267       ;;
11268     svr4,*) # full svr4 only
11269       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11270       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11271       # We do not specify a path in Import Files, so LIBPATH fires.
11272       shlibpath_overrides_runpath=yes
11273       ;;
11274     *,yes) # both, prefer svr4
11275       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11276       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11277       # unpreferred sharedlib libNAME.a needs extra handling
11278       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11279       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11280       # We do not specify a path in Import Files, so LIBPATH fires.
11281       shlibpath_overrides_runpath=yes
11282       ;;
11283     *,no) # both, prefer aix
11284       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11285       library_names_spec='$libname$release.a $libname.a'
11286       soname_spec='$libname$release$shared_ext$major'
11287       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11288       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11289       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11290       ;;
11291     esac
11292     shlibpath_var=LIBPATH
11293   fi
11294   ;;
11295
11296 amigaos*)
11297   case $host_cpu in
11298   powerpc)
11299     # Since July 2007 AmigaOS4 officially supports .so libraries.
11300     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11301     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302     ;;
11303   m68k)
11304     library_names_spec='$libname.ixlibrary $libname.a'
11305     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11306     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11307     ;;
11308   esac
11309   ;;
11310
11311 beos*)
11312   library_names_spec='$libname$shared_ext'
11313   dynamic_linker="$host_os ld.so"
11314   shlibpath_var=LIBRARY_PATH
11315   ;;
11316
11317 bsdi[45]*)
11318   version_type=linux # correct to gnu/linux during the next big refactor
11319   need_version=no
11320   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321   soname_spec='$libname$release$shared_ext$major'
11322   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11323   shlibpath_var=LD_LIBRARY_PATH
11324   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11325   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11326   # the default ld.so.conf also contains /usr/contrib/lib and
11327   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11328   # libtool to hard-code these into programs
11329   ;;
11330
11331 cygwin* | mingw* | pw32* | cegcc*)
11332   version_type=windows
11333   shrext_cmds=.dll
11334   need_version=no
11335   need_lib_prefix=no
11336
11337   case $GCC,$cc_basename in
11338   yes,*)
11339     # gcc
11340     library_names_spec='$libname.dll.a'
11341     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11342     postinstall_cmds='base_file=`basename \$file`~
11343       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11344       dldir=$destdir/`dirname \$dlpath`~
11345       test -d \$dldir || mkdir -p \$dldir~
11346       $install_prog $dir/$dlname \$dldir/$dlname~
11347       chmod a+x \$dldir/$dlname~
11348       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11349         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11350       fi'
11351     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11352       dlpath=$dir/\$dldll~
11353        $RM \$dlpath'
11354     shlibpath_overrides_runpath=yes
11355
11356     case $host_os in
11357     cygwin*)
11358       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11359       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11360
11361       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11362       ;;
11363     mingw* | cegcc*)
11364       # MinGW DLLs use traditional 'lib' prefix
11365       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11366       ;;
11367     pw32*)
11368       # pw32 DLLs use 'pw' prefix rather than 'lib'
11369       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11370       ;;
11371     esac
11372     dynamic_linker='Win32 ld.exe'
11373     ;;
11374
11375   *,cl*)
11376     # Native MSVC
11377     libname_spec='$name'
11378     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11379     library_names_spec='$libname.dll.lib'
11380
11381     case $build_os in
11382     mingw*)
11383       sys_lib_search_path_spec=
11384       lt_save_ifs=$IFS
11385       IFS=';'
11386       for lt_path in $LIB
11387       do
11388         IFS=$lt_save_ifs
11389         # Let DOS variable expansion print the short 8.3 style file name.
11390         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11391         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11392       done
11393       IFS=$lt_save_ifs
11394       # Convert to MSYS style.
11395       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11396       ;;
11397     cygwin*)
11398       # Convert to unix form, then to dos form, then back to unix form
11399       # but this time dos style (no spaces!) so that the unix form looks
11400       # like /cygdrive/c/PROGRA~1:/cygdr...
11401       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11402       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11403       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11404       ;;
11405     *)
11406       sys_lib_search_path_spec=$LIB
11407       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11408         # It is most probably a Windows format PATH.
11409         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11410       else
11411         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11412       fi
11413       # FIXME: find the short name or the path components, as spaces are
11414       # common. (e.g. "Program Files" -> "PROGRA~1")
11415       ;;
11416     esac
11417
11418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11419     postinstall_cmds='base_file=`basename \$file`~
11420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11421       dldir=$destdir/`dirname \$dlpath`~
11422       test -d \$dldir || mkdir -p \$dldir~
11423       $install_prog $dir/$dlname \$dldir/$dlname'
11424     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11425       dlpath=$dir/\$dldll~
11426        $RM \$dlpath'
11427     shlibpath_overrides_runpath=yes
11428     dynamic_linker='Win32 link.exe'
11429     ;;
11430
11431   *)
11432     # Assume MSVC wrapper
11433     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11434     dynamic_linker='Win32 ld.exe'
11435     ;;
11436   esac
11437   # FIXME: first we should search . and the directory the executable is in
11438   shlibpath_var=PATH
11439   ;;
11440
11441 darwin* | rhapsody*)
11442   dynamic_linker="$host_os dyld"
11443   version_type=darwin
11444   need_lib_prefix=no
11445   need_version=no
11446   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11447   soname_spec='$libname$release$major$shared_ext'
11448   shlibpath_overrides_runpath=yes
11449   shlibpath_var=DYLD_LIBRARY_PATH
11450   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11451
11452   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11453   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11454   ;;
11455
11456 dgux*)
11457   version_type=linux # correct to gnu/linux during the next big refactor
11458   need_lib_prefix=no
11459   need_version=no
11460   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461   soname_spec='$libname$release$shared_ext$major'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   ;;
11464
11465 freebsd* | dragonfly*)
11466   # DragonFly does not have aout.  When/if they implement a new
11467   # versioning mechanism, adjust this.
11468   if test -x /usr/bin/objformat; then
11469     objformat=`/usr/bin/objformat`
11470   else
11471     case $host_os in
11472     freebsd[23].*) objformat=aout ;;
11473     *) objformat=elf ;;
11474     esac
11475   fi
11476   version_type=freebsd-$objformat
11477   case $version_type in
11478     freebsd-elf*)
11479       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480       soname_spec='$libname$release$shared_ext$major'
11481       need_version=no
11482       need_lib_prefix=no
11483       ;;
11484     freebsd-*)
11485       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11486       need_version=yes
11487       ;;
11488   esac
11489   shlibpath_var=LD_LIBRARY_PATH
11490   case $host_os in
11491   freebsd2.*)
11492     shlibpath_overrides_runpath=yes
11493     ;;
11494   freebsd3.[01]* | freebsdelf3.[01]*)
11495     shlibpath_overrides_runpath=yes
11496     hardcode_into_libs=yes
11497     ;;
11498   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11499   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11500     shlibpath_overrides_runpath=no
11501     hardcode_into_libs=yes
11502     ;;
11503   *) # from 4.6 on, and DragonFly
11504     shlibpath_overrides_runpath=yes
11505     hardcode_into_libs=yes
11506     ;;
11507   esac
11508   ;;
11509
11510 haiku*)
11511   version_type=linux # correct to gnu/linux during the next big refactor
11512   need_lib_prefix=no
11513   need_version=no
11514   dynamic_linker="$host_os runtime_loader"
11515   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516   soname_spec='$libname$release$shared_ext$major'
11517   shlibpath_var=LIBRARY_PATH
11518   shlibpath_overrides_runpath=no
11519   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11520   hardcode_into_libs=yes
11521   ;;
11522
11523 hpux9* | hpux10* | hpux11*)
11524   # Give a soname corresponding to the major version so that dld.sl refuses to
11525   # link against other versions.
11526   version_type=sunos
11527   need_lib_prefix=no
11528   need_version=no
11529   case $host_cpu in
11530   ia64*)
11531     shrext_cmds='.so'
11532     hardcode_into_libs=yes
11533     dynamic_linker="$host_os dld.so"
11534     shlibpath_var=LD_LIBRARY_PATH
11535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537     soname_spec='$libname$release$shared_ext$major'
11538     if test 32 = "$HPUX_IA64_MODE"; then
11539       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11540       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11541     else
11542       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11543       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11544     fi
11545     ;;
11546   hppa*64*)
11547     shrext_cmds='.sl'
11548     hardcode_into_libs=yes
11549     dynamic_linker="$host_os dld.sl"
11550     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553     soname_spec='$libname$release$shared_ext$major'
11554     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556     ;;
11557   *)
11558     shrext_cmds='.sl'
11559     dynamic_linker="$host_os dld.sl"
11560     shlibpath_var=SHLIB_PATH
11561     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11563     soname_spec='$libname$release$shared_ext$major'
11564     ;;
11565   esac
11566   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11567   postinstall_cmds='chmod 555 $lib'
11568   # or fails outright, so override atomically:
11569   install_override_mode=555
11570   ;;
11571
11572 interix[3-9]*)
11573   version_type=linux # correct to gnu/linux during the next big refactor
11574   need_lib_prefix=no
11575   need_version=no
11576   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11577   soname_spec='$libname$release$shared_ext$major'
11578   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   shlibpath_overrides_runpath=no
11581   hardcode_into_libs=yes
11582   ;;
11583
11584 irix5* | irix6* | nonstopux*)
11585   case $host_os in
11586     nonstopux*) version_type=nonstopux ;;
11587     *)
11588         if test yes = "$lt_cv_prog_gnu_ld"; then
11589                 version_type=linux # correct to gnu/linux during the next big refactor
11590         else
11591                 version_type=irix
11592         fi ;;
11593   esac
11594   need_lib_prefix=no
11595   need_version=no
11596   soname_spec='$libname$release$shared_ext$major'
11597   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11598   case $host_os in
11599   irix5* | nonstopux*)
11600     libsuff= shlibsuff=
11601     ;;
11602   *)
11603     case $LD in # libtool.m4 will add one of these switches to LD
11604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11605       libsuff= shlibsuff= libmagic=32-bit;;
11606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11607       libsuff=32 shlibsuff=N32 libmagic=N32;;
11608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11610     *) libsuff= shlibsuff= libmagic=never-match;;
11611     esac
11612     ;;
11613   esac
11614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11615   shlibpath_overrides_runpath=no
11616   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11617   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11618   hardcode_into_libs=yes
11619   ;;
11620
11621 # No shared lib support for Linux oldld, aout, or coff.
11622 linux*oldld* | linux*aout* | linux*coff*)
11623   dynamic_linker=no
11624   ;;
11625
11626 linux*android*)
11627   version_type=none # Android doesn't support versioned libraries.
11628   need_lib_prefix=no
11629   need_version=no
11630   library_names_spec='$libname$release$shared_ext'
11631   soname_spec='$libname$release$shared_ext'
11632   finish_cmds=
11633   shlibpath_var=LD_LIBRARY_PATH
11634   shlibpath_overrides_runpath=yes
11635
11636   # This implies no fast_install, which is unacceptable.
11637   # Some rework will be needed to allow for fast_install
11638   # before this can be enabled.
11639   hardcode_into_libs=yes
11640
11641   dynamic_linker='Android linker'
11642   # Don't embed -rpath directories since the linker doesn't support them.
11643   hardcode_libdir_flag_spec='-L$libdir'
11644   ;;
11645
11646 # This must be glibc/ELF.
11647 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11648   version_type=linux # correct to gnu/linux during the next big refactor
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11652   soname_spec='$libname$release$shared_ext$major'
11653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656
11657   # Some binutils ld are patched to set DT_RUNPATH
11658   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   lt_cv_shlibpath_overrides_runpath=no
11662     save_LDFLAGS=$LDFLAGS
11663     save_libdir=$libdir
11664     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11665          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h.  */
11668
11669 int
11670 main ()
11671 {
11672
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11679   lt_cv_shlibpath_overrides_runpath=yes
11680 fi
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext \
11683     conftest$ac_exeext conftest.$ac_ext
11684     LDFLAGS=$save_LDFLAGS
11685     libdir=$save_libdir
11686
11687 fi
11688
11689   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11690
11691   # This implies no fast_install, which is unacceptable.
11692   # Some rework will be needed to allow for fast_install
11693   # before this can be enabled.
11694   hardcode_into_libs=yes
11695
11696   # Ideally, we could use ldconfig to report *all* directores which are
11697   # searched for libraries, however this is still not possible.  Aside from not
11698   # being certain /sbin/ldconfig is available, command
11699   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11700   # even though it is searched at run-time.  Try to do the best guess by
11701   # appending ld.so.conf contents (and includes) to the search path.
11702   if test -f /etc/ld.so.conf; then
11703     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' ' '`
11704     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11705   fi
11706
11707   # We used to test for /lib/ld.so.1 and disable shared libraries on
11708   # powerpc, because MkLinux only supported shared libraries with the
11709   # GNU dynamic linker.  Since this was broken with cross compilers,
11710   # most powerpc-linux boxes support dynamic linking these days and
11711   # people can always --disable-shared, the test was removed, and we
11712   # assume the GNU/Linux dynamic linker is in use.
11713   dynamic_linker='GNU/Linux ld.so'
11714   ;;
11715
11716 netbsd*)
11717   version_type=sunos
11718   need_lib_prefix=no
11719   need_version=no
11720   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11721     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11723     dynamic_linker='NetBSD (a.out) ld.so'
11724   else
11725     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726     soname_spec='$libname$release$shared_ext$major'
11727     dynamic_linker='NetBSD ld.elf_so'
11728   fi
11729   shlibpath_var=LD_LIBRARY_PATH
11730   shlibpath_overrides_runpath=yes
11731   hardcode_into_libs=yes
11732   ;;
11733
11734 newsos6)
11735   version_type=linux # correct to gnu/linux during the next big refactor
11736   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737   shlibpath_var=LD_LIBRARY_PATH
11738   shlibpath_overrides_runpath=yes
11739   ;;
11740
11741 *nto* | *qnx*)
11742   version_type=qnx
11743   need_lib_prefix=no
11744   need_version=no
11745   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746   soname_spec='$libname$release$shared_ext$major'
11747   shlibpath_var=LD_LIBRARY_PATH
11748   shlibpath_overrides_runpath=no
11749   hardcode_into_libs=yes
11750   dynamic_linker='ldqnx.so'
11751   ;;
11752
11753 openbsd* | bitrig*)
11754   version_type=sunos
11755   sys_lib_dlsearch_path_spec=/usr/lib
11756   need_lib_prefix=no
11757   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11758     need_version=no
11759   else
11760     need_version=yes
11761   fi
11762   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11763   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11764   shlibpath_var=LD_LIBRARY_PATH
11765   shlibpath_overrides_runpath=yes
11766   ;;
11767
11768 os2*)
11769   libname_spec='$name'
11770   version_type=windows
11771   shrext_cmds=.dll
11772   need_version=no
11773   need_lib_prefix=no
11774   # OS/2 can only load a DLL with a base name of 8 characters or less.
11775   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11776     v=$($ECHO $release$versuffix | tr -d .-);
11777     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11778     $ECHO $n$v`$shared_ext'
11779   library_names_spec='${libname}_dll.$libext'
11780   dynamic_linker='OS/2 ld.exe'
11781   shlibpath_var=BEGINLIBPATH
11782   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11783   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11784   postinstall_cmds='base_file=`basename \$file`~
11785     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11786     dldir=$destdir/`dirname \$dlpath`~
11787     test -d \$dldir || mkdir -p \$dldir~
11788     $install_prog $dir/$dlname \$dldir/$dlname~
11789     chmod a+x \$dldir/$dlname~
11790     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11791       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11792     fi'
11793   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11794     dlpath=$dir/\$dldll~
11795     $RM \$dlpath'
11796   ;;
11797
11798 osf3* | osf4* | osf5*)
11799   version_type=osf
11800   need_lib_prefix=no
11801   need_version=no
11802   soname_spec='$libname$release$shared_ext$major'
11803   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11807   ;;
11808
11809 rdos*)
11810   dynamic_linker=no
11811   ;;
11812
11813 solaris*)
11814   version_type=linux # correct to gnu/linux during the next big refactor
11815   need_lib_prefix=no
11816   need_version=no
11817   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11818   soname_spec='$libname$release$shared_ext$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   hardcode_into_libs=yes
11822   # ldd complains unless libraries are executable
11823   postinstall_cmds='chmod +x $lib'
11824   ;;
11825
11826 sunos4*)
11827   version_type=sunos
11828   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   if test yes = "$with_gnu_ld"; then
11833     need_lib_prefix=no
11834   fi
11835   need_version=yes
11836   ;;
11837
11838 sysv4 | sysv4.3*)
11839   version_type=linux # correct to gnu/linux during the next big refactor
11840   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841   soname_spec='$libname$release$shared_ext$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   case $host_vendor in
11844     sni)
11845       shlibpath_overrides_runpath=no
11846       need_lib_prefix=no
11847       runpath_var=LD_RUN_PATH
11848       ;;
11849     siemens)
11850       need_lib_prefix=no
11851       ;;
11852     motorola)
11853       need_lib_prefix=no
11854       need_version=no
11855       shlibpath_overrides_runpath=no
11856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857       ;;
11858   esac
11859   ;;
11860
11861 sysv4*MP*)
11862   if test -d /usr/nec; then
11863     version_type=linux # correct to gnu/linux during the next big refactor
11864     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11865     soname_spec='$libname$shared_ext.$major'
11866     shlibpath_var=LD_LIBRARY_PATH
11867   fi
11868   ;;
11869
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871   version_type=sco
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11875   soname_spec='$libname$release$shared_ext$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   if test yes = "$with_gnu_ld"; then
11880     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881   else
11882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883     case $host_os in
11884       sco3.2v5*)
11885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886         ;;
11887     esac
11888   fi
11889   sys_lib_dlsearch_path_spec='/usr/lib'
11890   ;;
11891
11892 tpf*)
11893   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11894   version_type=linux # correct to gnu/linux during the next big refactor
11895   need_lib_prefix=no
11896   need_version=no
11897   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   shlibpath_overrides_runpath=no
11900   hardcode_into_libs=yes
11901   ;;
11902
11903 uts4*)
11904   version_type=linux # correct to gnu/linux during the next big refactor
11905   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906   soname_spec='$libname$release$shared_ext$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   ;;
11909
11910 *)
11911   dynamic_linker=no
11912   ;;
11913 esac
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11915 $as_echo "$dynamic_linker" >&6; }
11916 test no = "$dynamic_linker" && can_build_shared=no
11917
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test yes = "$GCC"; then
11920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921 fi
11922
11923 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11924   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11925 fi
11926
11927 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11928   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11929 fi
11930
11931 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11932 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11933
11934 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11935 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11936
11937 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11938 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12037 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12038 hardcode_action=
12039 if test -n "$hardcode_libdir_flag_spec" ||
12040    test -n "$runpath_var" ||
12041    test yes = "$hardcode_automatic"; then
12042
12043   # We can hardcode non-existent directories.
12044   if test no != "$hardcode_direct" &&
12045      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12046      # have to relink, otherwise we might link with an installed library
12047      # when we should be linking with a yet-to-be-installed one
12048      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12049      test no != "$hardcode_minus_L"; then
12050     # Linking always hardcodes the temporary library directory.
12051     hardcode_action=relink
12052   else
12053     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12054     hardcode_action=immediate
12055   fi
12056 else
12057   # We cannot hardcode anything, or else we can only hardcode existing
12058   # directories.
12059   hardcode_action=unsupported
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12062 $as_echo "$hardcode_action" >&6; }
12063
12064 if test relink = "$hardcode_action" ||
12065    test yes = "$inherit_rpath"; then
12066   # Fast installation is not supported
12067   enable_fast_install=no
12068 elif test yes = "$shlibpath_overrides_runpath" ||
12069      test no = "$enable_shared"; then
12070   # Fast installation is not necessary
12071   enable_fast_install=needless
12072 fi
12073
12074
12075
12076
12077
12078
12079   if test yes != "$enable_dlopen"; then
12080   enable_dlopen=unknown
12081   enable_dlopen_self=unknown
12082   enable_dlopen_self_static=unknown
12083 else
12084   lt_cv_dlopen=no
12085   lt_cv_dlopen_libs=
12086
12087   case $host_os in
12088   beos*)
12089     lt_cv_dlopen=load_add_on
12090     lt_cv_dlopen_libs=
12091     lt_cv_dlopen_self=yes
12092     ;;
12093
12094   mingw* | pw32* | cegcc*)
12095     lt_cv_dlopen=LoadLibrary
12096     lt_cv_dlopen_libs=
12097     ;;
12098
12099   cygwin*)
12100     lt_cv_dlopen=dlopen
12101     lt_cv_dlopen_libs=
12102     ;;
12103
12104   darwin*)
12105     # if libdl is installed we need to link against it
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12107 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12108 if ${ac_cv_lib_dl_dlopen+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   ac_check_lib_save_LIBS=$LIBS
12112 LIBS="-ldl  $LIBS"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115
12116 /* Override any GCC internal prototype to avoid an error.
12117    Use char because int might match the return type of a GCC
12118    builtin and then its argument prototype would still apply.  */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char dlopen ();
12123 int
12124 main ()
12125 {
12126 return dlopen ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_link "$LINENO"; then :
12132   ac_cv_lib_dl_dlopen=yes
12133 else
12134   ac_cv_lib_dl_dlopen=no
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext \
12137     conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12142 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12143   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12144 else
12145
12146     lt_cv_dlopen=dyld
12147     lt_cv_dlopen_libs=
12148     lt_cv_dlopen_self=yes
12149
12150 fi
12151
12152     ;;
12153
12154   tpf*)
12155     # Don't try to run any link tests for TPF.  We know it's impossible
12156     # because TPF is a cross-compiler, and we know how we open DSOs.
12157     lt_cv_dlopen=dlopen
12158     lt_cv_dlopen_libs=
12159     lt_cv_dlopen_self=no
12160     ;;
12161
12162   *)
12163     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12164 if test "x$ac_cv_func_shl_load" = xyes; then :
12165   lt_cv_dlopen=shl_load
12166 else
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12168 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12169 if ${ac_cv_lib_dld_shl_load+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-ldld  $LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178    Use char because int might match the return type of a GCC
12179    builtin and then its argument prototype would still apply.  */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char shl_load ();
12184 int
12185 main ()
12186 {
12187 return shl_load ();
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193   ac_cv_lib_dld_shl_load=yes
12194 else
12195   ac_cv_lib_dld_shl_load=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198     conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12202 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12203 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12204   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12205 else
12206   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12207 if test "x$ac_cv_func_dlopen" = xyes; then :
12208   lt_cv_dlopen=dlopen
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12212 if ${ac_cv_lib_dl_dlopen+:} false; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-ldl  $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219
12220 /* Override any GCC internal prototype to avoid an error.
12221    Use char because int might match the return type of a GCC
12222    builtin and then its argument prototype would still apply.  */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char dlopen ();
12227 int
12228 main ()
12229 {
12230 return dlopen ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236   ac_cv_lib_dl_dlopen=yes
12237 else
12238   ac_cv_lib_dl_dlopen=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241     conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12247   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12248 else
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12250 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12251 if ${ac_cv_lib_svld_dlopen+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lsvld  $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h.  */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260    Use char because int might match the return type of a GCC
12261    builtin and then its argument prototype would still apply.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char dlopen ();
12266 int
12267 main ()
12268 {
12269 return dlopen ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275   ac_cv_lib_svld_dlopen=yes
12276 else
12277   ac_cv_lib_svld_dlopen=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280     conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12284 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12285 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12286   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12287 else
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12289 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12290 if ${ac_cv_lib_dld_dld_link+:} false; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293   ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-ldld  $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299    Use char because int might match the return type of a GCC
12300    builtin and then its argument prototype would still apply.  */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char dld_link ();
12305 int
12306 main ()
12307 {
12308 return dld_link ();
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314   ac_cv_lib_dld_dld_link=yes
12315 else
12316   ac_cv_lib_dld_dld_link=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319     conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12323 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12324 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12325   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340
12341 fi
12342
12343     ;;
12344   esac
12345
12346   if test no = "$lt_cv_dlopen"; then
12347     enable_dlopen=no
12348   else
12349     enable_dlopen=yes
12350   fi
12351
12352   case $lt_cv_dlopen in
12353   dlopen)
12354     save_CPPFLAGS=$CPPFLAGS
12355     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12356
12357     save_LDFLAGS=$LDFLAGS
12358     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12359
12360     save_LIBS=$LIBS
12361     LIBS="$lt_cv_dlopen_libs $LIBS"
12362
12363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12364 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12365 if ${lt_cv_dlopen_self+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368           if test yes = "$cross_compiling"; then :
12369   lt_cv_dlopen_self=cross
12370 else
12371   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12372   lt_status=$lt_dlunknown
12373   cat > conftest.$ac_ext <<_LT_EOF
12374 #line $LINENO "configure"
12375 #include "confdefs.h"
12376
12377 #if HAVE_DLFCN_H
12378 #include <dlfcn.h>
12379 #endif
12380
12381 #include <stdio.h>
12382
12383 #ifdef RTLD_GLOBAL
12384 #  define LT_DLGLOBAL           RTLD_GLOBAL
12385 #else
12386 #  ifdef DL_GLOBAL
12387 #    define LT_DLGLOBAL         DL_GLOBAL
12388 #  else
12389 #    define LT_DLGLOBAL         0
12390 #  endif
12391 #endif
12392
12393 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12394    find out it does not work in some platform. */
12395 #ifndef LT_DLLAZY_OR_NOW
12396 #  ifdef RTLD_LAZY
12397 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12398 #  else
12399 #    ifdef DL_LAZY
12400 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12401 #    else
12402 #      ifdef RTLD_NOW
12403 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12404 #      else
12405 #        ifdef DL_NOW
12406 #          define LT_DLLAZY_OR_NOW      DL_NOW
12407 #        else
12408 #          define LT_DLLAZY_OR_NOW      0
12409 #        endif
12410 #      endif
12411 #    endif
12412 #  endif
12413 #endif
12414
12415 /* When -fvisibility=hidden is used, assume the code has been annotated
12416    correspondingly for the symbols needed.  */
12417 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12418 int fnord () __attribute__((visibility("default")));
12419 #endif
12420
12421 int fnord () { return 42; }
12422 int main ()
12423 {
12424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12425   int status = $lt_dlunknown;
12426
12427   if (self)
12428     {
12429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12430       else
12431         {
12432           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12433           else puts (dlerror ());
12434         }
12435       /* dlclose (self); */
12436     }
12437   else
12438     puts (dlerror ());
12439
12440   return status;
12441 }
12442 _LT_EOF
12443   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12444   (eval $ac_link) 2>&5
12445   ac_status=$?
12446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12447   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12448     (./conftest; exit; ) >&5 2>/dev/null
12449     lt_status=$?
12450     case x$lt_status in
12451       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12452       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12453       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12454     esac
12455   else :
12456     # compilation failed
12457     lt_cv_dlopen_self=no
12458   fi
12459 fi
12460 rm -fr conftest*
12461
12462
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12465 $as_echo "$lt_cv_dlopen_self" >&6; }
12466
12467     if test yes = "$lt_cv_dlopen_self"; then
12468       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12469       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12470 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12471 if ${lt_cv_dlopen_self_static+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474           if test yes = "$cross_compiling"; then :
12475   lt_cv_dlopen_self_static=cross
12476 else
12477   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478   lt_status=$lt_dlunknown
12479   cat > conftest.$ac_ext <<_LT_EOF
12480 #line $LINENO "configure"
12481 #include "confdefs.h"
12482
12483 #if HAVE_DLFCN_H
12484 #include <dlfcn.h>
12485 #endif
12486
12487 #include <stdio.h>
12488
12489 #ifdef RTLD_GLOBAL
12490 #  define LT_DLGLOBAL           RTLD_GLOBAL
12491 #else
12492 #  ifdef DL_GLOBAL
12493 #    define LT_DLGLOBAL         DL_GLOBAL
12494 #  else
12495 #    define LT_DLGLOBAL         0
12496 #  endif
12497 #endif
12498
12499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500    find out it does not work in some platform. */
12501 #ifndef LT_DLLAZY_OR_NOW
12502 #  ifdef RTLD_LAZY
12503 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12504 #  else
12505 #    ifdef DL_LAZY
12506 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12507 #    else
12508 #      ifdef RTLD_NOW
12509 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12510 #      else
12511 #        ifdef DL_NOW
12512 #          define LT_DLLAZY_OR_NOW      DL_NOW
12513 #        else
12514 #          define LT_DLLAZY_OR_NOW      0
12515 #        endif
12516 #      endif
12517 #    endif
12518 #  endif
12519 #endif
12520
12521 /* When -fvisibility=hidden is used, assume the code has been annotated
12522    correspondingly for the symbols needed.  */
12523 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12524 int fnord () __attribute__((visibility("default")));
12525 #endif
12526
12527 int fnord () { return 42; }
12528 int main ()
12529 {
12530   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531   int status = $lt_dlunknown;
12532
12533   if (self)
12534     {
12535       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12536       else
12537         {
12538           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12539           else puts (dlerror ());
12540         }
12541       /* dlclose (self); */
12542     }
12543   else
12544     puts (dlerror ());
12545
12546   return status;
12547 }
12548 _LT_EOF
12549   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12550   (eval $ac_link) 2>&5
12551   ac_status=$?
12552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12554     (./conftest; exit; ) >&5 2>/dev/null
12555     lt_status=$?
12556     case x$lt_status in
12557       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12558       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12559       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12560     esac
12561   else :
12562     # compilation failed
12563     lt_cv_dlopen_self_static=no
12564   fi
12565 fi
12566 rm -fr conftest*
12567
12568
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12571 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12572     fi
12573
12574     CPPFLAGS=$save_CPPFLAGS
12575     LDFLAGS=$save_LDFLAGS
12576     LIBS=$save_LIBS
12577     ;;
12578   esac
12579
12580   case $lt_cv_dlopen_self in
12581   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12582   *) enable_dlopen_self=unknown ;;
12583   esac
12584
12585   case $lt_cv_dlopen_self_static in
12586   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12587   *) enable_dlopen_self_static=unknown ;;
12588   esac
12589 fi
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607 striplib=
12608 old_striplib=
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12610 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12611 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615 $as_echo "yes" >&6; }
12616 else
12617 # FIXME - insert some real tests, host_os isn't really good enough
12618   case $host_os in
12619   darwin*)
12620     if test -n "$STRIP"; then
12621       striplib="$STRIP -x"
12622       old_striplib="$STRIP -S"
12623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625     else
12626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628     fi
12629     ;;
12630   *)
12631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633     ;;
12634   esac
12635 fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648   # Report what library types will actually be built
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12650 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12652 $as_echo "$can_build_shared" >&6; }
12653
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12655 $as_echo_n "checking whether to build shared libraries... " >&6; }
12656   test no = "$can_build_shared" && enable_shared=no
12657
12658   # On AIX, shared libraries and static libraries use the same namespace, and
12659   # are all built from PIC.
12660   case $host_os in
12661   aix3*)
12662     test yes = "$enable_shared" && enable_static=no
12663     if test -n "$RANLIB"; then
12664       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12665       postinstall_cmds='$RANLIB $lib'
12666     fi
12667     ;;
12668
12669   aix[4-9]*)
12670     if test ia64 != "$host_cpu"; then
12671       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12672       yes,aix,yes) ;;                   # shared object as lib.so file only
12673       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12674       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12675       esac
12676     fi
12677     ;;
12678   esac
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12680 $as_echo "$enable_shared" >&6; }
12681
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12683 $as_echo_n "checking whether to build static libraries... " >&6; }
12684   # Make sure either enable_shared or enable_static is yes.
12685   test yes = "$enable_shared" || enable_static=yes
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12687 $as_echo "$enable_static" >&6; }
12688
12689
12690
12691
12692 fi
12693 ac_ext=c
12694 ac_cpp='$CPP $CPPFLAGS'
12695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12698
12699 CC=$lt_save_CC
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715         ac_config_commands="$ac_config_commands libtool"
12716
12717
12718
12719
12720 # Only expand once:
12721
12722
12723
12724
12725
12726  if test "$enable_samples" = "yes"; then
12727   BUILD_SAMPLES_TRUE=
12728   BUILD_SAMPLES_FALSE='#'
12729 else
12730   BUILD_SAMPLES_TRUE='#'
12731   BUILD_SAMPLES_FALSE=
12732 fi
12733
12734  if test "$enable_libevent_regress" = "yes"; then
12735   BUILD_REGRESS_TRUE=
12736   BUILD_REGRESS_FALSE='#'
12737 else
12738   BUILD_REGRESS_TRUE='#'
12739   BUILD_REGRESS_FALSE=
12740 fi
12741
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12744 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12745 if ${ac_cv_search_inet_ntoa+:} false; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748   ac_func_search_save_LIBS=$LIBS
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h.  */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753    Use char because int might match the return type of a GCC
12754    builtin and then its argument prototype would still apply.  */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char inet_ntoa ();
12759 int
12760 main ()
12761 {
12762 return inet_ntoa ();
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 for ac_lib in '' nsl; do
12768   if test -z "$ac_lib"; then
12769     ac_res="none required"
12770   else
12771     ac_res=-l$ac_lib
12772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12773   fi
12774   if ac_fn_c_try_link "$LINENO"; then :
12775   ac_cv_search_inet_ntoa=$ac_res
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext \
12778     conftest$ac_exeext
12779   if ${ac_cv_search_inet_ntoa+:} false; then :
12780   break
12781 fi
12782 done
12783 if ${ac_cv_search_inet_ntoa+:} false; then :
12784
12785 else
12786   ac_cv_search_inet_ntoa=no
12787 fi
12788 rm conftest.$ac_ext
12789 LIBS=$ac_func_search_save_LIBS
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12792 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12793 ac_res=$ac_cv_search_inet_ntoa
12794 if test "$ac_res" != no; then :
12795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12796
12797 fi
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12800 $as_echo_n "checking for library containing socket... " >&6; }
12801 if ${ac_cv_search_socket+:} false; then :
12802   $as_echo_n "(cached) " >&6
12803 else
12804   ac_func_search_save_LIBS=$LIBS
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h.  */
12807
12808 /* Override any GCC internal prototype to avoid an error.
12809    Use char because int might match the return type of a GCC
12810    builtin and then its argument prototype would still apply.  */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char socket ();
12815 int
12816 main ()
12817 {
12818 return socket ();
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 for ac_lib in '' socket; do
12824   if test -z "$ac_lib"; then
12825     ac_res="none required"
12826   else
12827     ac_res=-l$ac_lib
12828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12829   fi
12830   if ac_fn_c_try_link "$LINENO"; then :
12831   ac_cv_search_socket=$ac_res
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext
12835   if ${ac_cv_search_socket+:} false; then :
12836   break
12837 fi
12838 done
12839 if ${ac_cv_search_socket+:} false; then :
12840
12841 else
12842   ac_cv_search_socket=no
12843 fi
12844 rm conftest.$ac_ext
12845 LIBS=$ac_func_search_save_LIBS
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12848 $as_echo "$ac_cv_search_socket" >&6; }
12849 ac_res=$ac_cv_search_socket
12850 if test "$ac_res" != no; then :
12851   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12852
12853 fi
12854
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12856 $as_echo_n "checking for library containing inet_aton... " >&6; }
12857 if ${ac_cv_search_inet_aton+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860   ac_func_search_save_LIBS=$LIBS
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h.  */
12863
12864 /* Override any GCC internal prototype to avoid an error.
12865    Use char because int might match the return type of a GCC
12866    builtin and then its argument prototype would still apply.  */
12867 #ifdef __cplusplus
12868 extern "C"
12869 #endif
12870 char inet_aton ();
12871 int
12872 main ()
12873 {
12874 return inet_aton ();
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 for ac_lib in '' resolv; do
12880   if test -z "$ac_lib"; then
12881     ac_res="none required"
12882   else
12883     ac_res=-l$ac_lib
12884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12885   fi
12886   if ac_fn_c_try_link "$LINENO"; then :
12887   ac_cv_search_inet_aton=$ac_res
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext \
12890     conftest$ac_exeext
12891   if ${ac_cv_search_inet_aton+:} false; then :
12892   break
12893 fi
12894 done
12895 if ${ac_cv_search_inet_aton+:} false; then :
12896
12897 else
12898   ac_cv_search_inet_aton=no
12899 fi
12900 rm conftest.$ac_ext
12901 LIBS=$ac_func_search_save_LIBS
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12904 $as_echo "$ac_cv_search_inet_aton" >&6; }
12905 ac_res=$ac_cv_search_inet_aton
12906 if test "$ac_res" != no; then :
12907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12908
12909 fi
12910
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12912 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12913 if ${ac_cv_search_clock_gettime+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   ac_func_search_save_LIBS=$LIBS
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h.  */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921    Use char because int might match the return type of a GCC
12922    builtin and then its argument prototype would still apply.  */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char clock_gettime ();
12927 int
12928 main ()
12929 {
12930 return clock_gettime ();
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 for ac_lib in '' rt; do
12936   if test -z "$ac_lib"; then
12937     ac_res="none required"
12938   else
12939     ac_res=-l$ac_lib
12940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12941   fi
12942   if ac_fn_c_try_link "$LINENO"; then :
12943   ac_cv_search_clock_gettime=$ac_res
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946     conftest$ac_exeext
12947   if ${ac_cv_search_clock_gettime+:} false; then :
12948   break
12949 fi
12950 done
12951 if ${ac_cv_search_clock_gettime+:} false; then :
12952
12953 else
12954   ac_cv_search_clock_gettime=no
12955 fi
12956 rm conftest.$ac_ext
12957 LIBS=$ac_func_search_save_LIBS
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12960 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12961 ac_res=$ac_cv_search_clock_gettime
12962 if test "$ac_res" != no; then :
12963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12964
12965 fi
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12968 $as_echo_n "checking for library containing sendfile... " >&6; }
12969 if ${ac_cv_search_sendfile+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   ac_func_search_save_LIBS=$LIBS
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h.  */
12975
12976 /* Override any GCC internal prototype to avoid an error.
12977    Use char because int might match the return type of a GCC
12978    builtin and then its argument prototype would still apply.  */
12979 #ifdef __cplusplus
12980 extern "C"
12981 #endif
12982 char sendfile ();
12983 int
12984 main ()
12985 {
12986 return sendfile ();
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 for ac_lib in '' sendfile; do
12992   if test -z "$ac_lib"; then
12993     ac_res="none required"
12994   else
12995     ac_res=-l$ac_lib
12996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12997   fi
12998   if ac_fn_c_try_link "$LINENO"; then :
12999   ac_cv_search_sendfile=$ac_res
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext \
13002     conftest$ac_exeext
13003   if ${ac_cv_search_sendfile+:} false; then :
13004   break
13005 fi
13006 done
13007 if ${ac_cv_search_sendfile+:} false; then :
13008
13009 else
13010   ac_cv_search_sendfile=no
13011 fi
13012 rm conftest.$ac_ext
13013 LIBS=$ac_func_search_save_LIBS
13014 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13016 $as_echo "$ac_cv_search_sendfile" >&6; }
13017 ac_res=$ac_cv_search_sendfile
13018 if test "$ac_res" != no; then :
13019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13020
13021 fi
13022
13023
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13025 $as_echo_n "checking for WIN32... " >&6; }
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h.  */
13028
13029 int
13030 main ()
13031 {
13032
13033 #ifndef _WIN32
13034 die horribly
13035 #endif
13036
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043 $as_echo "yes" >&6; }
13044 else
13045   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13051 $as_echo_n "checking for CYGWIN... " >&6; }
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h.  */
13054
13055 int
13056 main ()
13057 {
13058
13059 #ifndef __CYGWIN__
13060 die horribly
13061 #endif
13062
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"; then :
13068   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13070 else
13071   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075
13076 for ac_header in zlib.h
13077 do :
13078   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13079 if test "x$ac_cv_header_zlib_h" = xyes; then :
13080   cat >>confdefs.h <<_ACEOF
13081 #define HAVE_ZLIB_H 1
13082 _ACEOF
13083
13084 fi
13085
13086 done
13087
13088
13089 if test "x$ac_cv_header_zlib_h" = "xyes"; then
13090 save_LIBS="$LIBS"
13091 LIBS=""
13092 ZLIB_LIBS=""
13093 have_zlib=no
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13095 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13096 if ${ac_cv_search_inflateEnd+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   ac_func_search_save_LIBS=$LIBS
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h.  */
13102
13103 /* Override any GCC internal prototype to avoid an error.
13104    Use char because int might match the return type of a GCC
13105    builtin and then its argument prototype would still apply.  */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 char inflateEnd ();
13110 int
13111 main ()
13112 {
13113 return inflateEnd ();
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 for ac_lib in '' z; do
13119   if test -z "$ac_lib"; then
13120     ac_res="none required"
13121   else
13122     ac_res=-l$ac_lib
13123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13124   fi
13125   if ac_fn_c_try_link "$LINENO"; then :
13126   ac_cv_search_inflateEnd=$ac_res
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext \
13129     conftest$ac_exeext
13130   if ${ac_cv_search_inflateEnd+:} false; then :
13131   break
13132 fi
13133 done
13134 if ${ac_cv_search_inflateEnd+:} false; then :
13135
13136 else
13137   ac_cv_search_inflateEnd=no
13138 fi
13139 rm conftest.$ac_ext
13140 LIBS=$ac_func_search_save_LIBS
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13143 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13144 ac_res=$ac_cv_search_inflateEnd
13145 if test "$ac_res" != no; then :
13146   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13147   have_zlib=yes
13148         ZLIB_LIBS="$LIBS"
13149
13150 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13151
13152 fi
13153
13154 LIBS="$save_LIBS"
13155
13156 fi
13157  if test "$have_zlib" = "yes"; then
13158   ZLIB_REGRESS_TRUE=
13159   ZLIB_REGRESS_FALSE='#'
13160 else
13161   ZLIB_REGRESS_TRUE='#'
13162   ZLIB_REGRESS_FALSE=
13163 fi
13164
13165
13166 if test "$bwin32" = true; then
13167   EV_LIB_WS32=-lws2_32
13168   EV_LIB_GDI=-lgdi32
13169 else
13170   EV_LIB_WS32=
13171   EV_LIB_GDI=
13172 fi
13173
13174
13175
13176
13177 # Check whether --enable-largefile was given.
13178 if test "${enable_largefile+set}" = set; then :
13179   enableval=$enable_largefile;
13180 fi
13181
13182 if test "$enable_largefile" != no; then
13183
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13185 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13186 if ${ac_cv_sys_largefile_CC+:} false; then :
13187   $as_echo_n "(cached) " >&6
13188 else
13189   ac_cv_sys_largefile_CC=no
13190      if test "$GCC" != yes; then
13191        ac_save_CC=$CC
13192        while :; do
13193          # IRIX 6.2 and later do not support large files by default,
13194          # so use the C compiler's -n32 option if that helps.
13195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197 #include <sys/types.h>
13198  /* Check that off_t can represent 2**63 - 1 correctly.
13199     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13200     since some C++ compilers masquerading as C compilers
13201     incorrectly reject 9223372036854775807.  */
13202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13203   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13204                        && LARGE_OFF_T % 2147483647 == 1)
13205                       ? 1 : -1];
13206 int
13207 main ()
13208 {
13209
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214          if ac_fn_c_try_compile "$LINENO"; then :
13215   break
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext
13218          CC="$CC -n32"
13219          if ac_fn_c_try_compile "$LINENO"; then :
13220   ac_cv_sys_largefile_CC=' -n32'; break
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext
13223          break
13224        done
13225        CC=$ac_save_CC
13226        rm -f conftest.$ac_ext
13227     fi
13228 fi
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13230 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13231   if test "$ac_cv_sys_largefile_CC" != no; then
13232     CC=$CC$ac_cv_sys_largefile_CC
13233   fi
13234
13235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13236 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13237 if ${ac_cv_sys_file_offset_bits+:} false; then :
13238   $as_echo_n "(cached) " >&6
13239 else
13240   while :; do
13241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243 #include <sys/types.h>
13244  /* Check that off_t can represent 2**63 - 1 correctly.
13245     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13246     since some C++ compilers masquerading as C compilers
13247     incorrectly reject 9223372036854775807.  */
13248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13249   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13250                        && LARGE_OFF_T % 2147483647 == 1)
13251                       ? 1 : -1];
13252 int
13253 main ()
13254 {
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_c_try_compile "$LINENO"; then :
13261   ac_cv_sys_file_offset_bits=no; break
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h.  */
13266 #define _FILE_OFFSET_BITS 64
13267 #include <sys/types.h>
13268  /* Check that off_t can represent 2**63 - 1 correctly.
13269     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13270     since some C++ compilers masquerading as C compilers
13271     incorrectly reject 9223372036854775807.  */
13272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13273   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13274                        && LARGE_OFF_T % 2147483647 == 1)
13275                       ? 1 : -1];
13276 int
13277 main ()
13278 {
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285   ac_cv_sys_file_offset_bits=64; break
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288   ac_cv_sys_file_offset_bits=unknown
13289   break
13290 done
13291 fi
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13293 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13294 case $ac_cv_sys_file_offset_bits in #(
13295   no | unknown) ;;
13296   *)
13297 cat >>confdefs.h <<_ACEOF
13298 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13299 _ACEOF
13300 ;;
13301 esac
13302 rm -rf conftest*
13303   if test $ac_cv_sys_file_offset_bits = unknown; then
13304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13305 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13306 if ${ac_cv_sys_large_files+:} false; then :
13307   $as_echo_n "(cached) " >&6
13308 else
13309   while :; do
13310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h.  */
13312 #include <sys/types.h>
13313  /* Check that off_t can represent 2**63 - 1 correctly.
13314     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13315     since some C++ compilers masquerading as C compilers
13316     incorrectly reject 9223372036854775807.  */
13317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13318   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13319                        && LARGE_OFF_T % 2147483647 == 1)
13320                       ? 1 : -1];
13321 int
13322 main ()
13323 {
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_c_try_compile "$LINENO"; then :
13330   ac_cv_sys_large_files=no; break
13331 fi
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h.  */
13335 #define _LARGE_FILES 1
13336 #include <sys/types.h>
13337  /* Check that off_t can represent 2**63 - 1 correctly.
13338     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13339     since some C++ compilers masquerading as C compilers
13340     incorrectly reject 9223372036854775807.  */
13341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13342   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13343                        && LARGE_OFF_T % 2147483647 == 1)
13344                       ? 1 : -1];
13345 int
13346 main ()
13347 {
13348
13349   ;
13350   return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354   ac_cv_sys_large_files=1; break
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357   ac_cv_sys_large_files=unknown
13358   break
13359 done
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13362 $as_echo "$ac_cv_sys_large_files" >&6; }
13363 case $ac_cv_sys_large_files in #(
13364   no | unknown) ;;
13365   *)
13366 cat >>confdefs.h <<_ACEOF
13367 #define _LARGE_FILES $ac_cv_sys_large_files
13368 _ACEOF
13369 ;;
13370 esac
13371 rm -rf conftest*
13372   fi
13373
13374
13375 fi
13376
13377
13378
13379
13380 ntp_pkgconfig_min_version='0.15.0'
13381 if test -n "$ac_tool_prefix"; then
13382   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13383 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13387   $as_echo_n "(cached) " >&6
13388 else
13389   case $PKG_CONFIG in
13390   [\\/]* | ?:[\\/]*)
13391   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13392   ;;
13393   *)
13394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13396 do
13397   IFS=$as_save_IFS
13398   test -z "$as_dir" && as_dir=.
13399     for ac_exec_ext in '' $ac_executable_extensions; do
13400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403     break 2
13404   fi
13405 done
13406   done
13407 IFS=$as_save_IFS
13408
13409   ;;
13410 esac
13411 fi
13412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13413 if test -n "$PKG_CONFIG"; then
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13415 $as_echo "$PKG_CONFIG" >&6; }
13416 else
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13419 fi
13420
13421
13422 fi
13423 if test -z "$ac_cv_path_PKG_CONFIG"; then
13424   ac_pt_PKG_CONFIG=$PKG_CONFIG
13425   # Extract the first word of "pkg-config", so it can be a program name with args.
13426 set dummy pkg-config; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13430   $as_echo_n "(cached) " >&6
13431 else
13432   case $ac_pt_PKG_CONFIG in
13433   [\\/]* | ?:[\\/]*)
13434   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13435   ;;
13436   *)
13437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13439 do
13440   IFS=$as_save_IFS
13441   test -z "$as_dir" && as_dir=.
13442     for ac_exec_ext in '' $ac_executable_extensions; do
13443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446     break 2
13447   fi
13448 done
13449   done
13450 IFS=$as_save_IFS
13451
13452   ;;
13453 esac
13454 fi
13455 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13456 if test -n "$ac_pt_PKG_CONFIG"; then
13457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13458 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13459 else
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462 fi
13463
13464   if test "x$ac_pt_PKG_CONFIG" = x; then
13465     PKG_CONFIG=""
13466   else
13467     case $cross_compiling:$ac_tool_warned in
13468 yes:)
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13471 ac_tool_warned=yes ;;
13472 esac
13473     PKG_CONFIG=$ac_pt_PKG_CONFIG
13474   fi
13475 else
13476   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13477 fi
13478
13479 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
13480 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
13481
13482 case "$PKG_CONFIG" in
13483  /*)
13484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
13485 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
13486     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
13487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 $as_echo "yes" >&6; }
13489     else
13490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492         PKG_CONFIG=""
13493     fi
13494     ;;
13495 esac
13496
13497
13498
13499
13500 case "$enable_openssl" in
13501  yes)
13502     have_openssl=no
13503     case "$PKG_CONFIG" in
13504      '')
13505         ;;
13506      *)
13507         OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
13508         case "$OPENSSL_LIBS" in
13509          '') ;;
13510          *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13511             have_openssl=yes
13512             ;;
13513         esac
13514         OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
13515         ;;
13516     esac
13517     case "$have_openssl" in
13518      yes) ;;
13519      *)
13520         save_LIBS="$LIBS"
13521         LIBS=""
13522         OPENSSL_LIBS=""
13523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13524 $as_echo_n "checking for library containing SSL_new... " >&6; }
13525 if ${ac_cv_search_SSL_new+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   ac_func_search_save_LIBS=$LIBS
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h.  */
13531
13532 /* Override any GCC internal prototype to avoid an error.
13533    Use char because int might match the return type of a GCC
13534    builtin and then its argument prototype would still apply.  */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char SSL_new ();
13539 int
13540 main ()
13541 {
13542 return SSL_new ();
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 for ac_lib in '' ssl; do
13548   if test -z "$ac_lib"; then
13549     ac_res="none required"
13550   else
13551     ac_res=-l$ac_lib
13552     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13553   fi
13554   if ac_fn_c_try_link "$LINENO"; then :
13555   ac_cv_search_SSL_new=$ac_res
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558     conftest$ac_exeext
13559   if ${ac_cv_search_SSL_new+:} false; then :
13560   break
13561 fi
13562 done
13563 if ${ac_cv_search_SSL_new+:} false; then :
13564
13565 else
13566   ac_cv_search_SSL_new=no
13567 fi
13568 rm conftest.$ac_ext
13569 LIBS=$ac_func_search_save_LIBS
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13572 $as_echo "$ac_cv_search_SSL_new" >&6; }
13573 ac_res=$ac_cv_search_SSL_new
13574 if test "$ac_res" != no; then :
13575   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13576   have_openssl=yes
13577             OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13578 else
13579   have_openssl=no
13580 fi
13581
13582         LIBS="$save_LIBS"
13583         ;;
13584     esac
13585
13586
13587     case "$have_openssl" in
13588      yes)
13589 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13590  ;;
13591     esac
13592     ;;
13593 esac
13594
13595 # check if we have and should use openssl
13596  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13597   OPENSSL_TRUE=
13598   OPENSSL_FALSE='#'
13599 else
13600   OPENSSL_TRUE='#'
13601   OPENSSL_FALSE=
13602 fi
13603
13604
13605
13606 for ac_header in  \
13607   arpa/inet.h \
13608   fcntl.h \
13609   ifaddrs.h \
13610   mach/mach_time.h \
13611   netdb.h \
13612   netinet/in.h \
13613   netinet/in6.h \
13614   netinet/tcp.h \
13615   poll.h \
13616   port.h \
13617   stdarg.h \
13618   stddef.h \
13619   sys/devpoll.h \
13620   sys/epoll.h \
13621   sys/event.h \
13622   sys/eventfd.h \
13623   sys/ioctl.h \
13624   sys/mman.h \
13625   sys/param.h \
13626   sys/queue.h \
13627   sys/resource.h \
13628   sys/select.h \
13629   sys/sendfile.h \
13630   sys/socket.h \
13631   sys/stat.h \
13632   sys/time.h \
13633   sys/timerfd.h \
13634   sys/uio.h \
13635   sys/wait.h \
13636
13637 do :
13638   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13639 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13641   cat >>confdefs.h <<_ACEOF
13642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13643 _ACEOF
13644
13645 fi
13646
13647 done
13648
13649
13650 for ac_header in sys/sysctl.h
13651 do :
13652   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13653 #ifdef HAVE_SYS_PARAM_H
13654 #include <sys/param.h>
13655 #endif
13656
13657 "
13658 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13659   cat >>confdefs.h <<_ACEOF
13660 #define HAVE_SYS_SYSCTL_H 1
13661 _ACEOF
13662
13663 fi
13664
13665 done
13666
13667 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13669 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13670         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h.  */
13672
13673 #include <sys/queue.h>
13674 #ifdef TAILQ_FOREACH
13675  yes
13676 #endif
13677
13678 _ACEOF
13679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13680   $EGREP "yes" >/dev/null 2>&1; then :
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13682 $as_echo "yes" >&6; }
13683
13684 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13685
13686 else
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689
13690 fi
13691 rm -f conftest*
13692
13693 fi
13694
13695 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13697 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13698         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h.  */
13700
13701 #include <sys/time.h>
13702 #ifdef timeradd
13703  yes
13704 #endif
13705
13706 _ACEOF
13707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708   $EGREP "yes" >/dev/null 2>&1; then :
13709
13710 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13711
13712           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713 $as_echo "yes" >&6; }
13714 else
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717
13718 fi
13719 rm -f conftest*
13720
13721 fi
13722
13723 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13725 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h.  */
13728
13729 #include <sys/time.h>
13730 #ifdef timercmp
13731  yes
13732 #endif
13733
13734 _ACEOF
13735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13736   $EGREP "yes" >/dev/null 2>&1; then :
13737
13738 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13739
13740           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13742 else
13743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 $as_echo "no" >&6; }
13745
13746 fi
13747 rm -f conftest*
13748
13749 fi
13750
13751 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13753 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13754         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756
13757 #include <sys/time.h>
13758 #ifdef timerclear
13759  yes
13760 #endif
13761
13762 _ACEOF
13763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13764   $EGREP "yes" >/dev/null 2>&1; then :
13765
13766 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13767
13768           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13769 $as_echo "yes" >&6; }
13770 else
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772 $as_echo "no" >&6; }
13773
13774 fi
13775 rm -f conftest*
13776
13777 fi
13778
13779 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13781 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13782         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h.  */
13784
13785 #include <sys/time.h>
13786 #ifdef timerisset
13787  yes
13788 #endif
13789
13790 _ACEOF
13791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13792   $EGREP "yes" >/dev/null 2>&1; then :
13793
13794 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13795
13796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797 $as_echo "yes" >&6; }
13798 else
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13801
13802 fi
13803 rm -f conftest*
13804
13805 fi
13806
13807 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13808         ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13809              #include <sys/sysctl.h>
13810
13811 "
13812 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13813   ac_have_decl=1
13814 else
13815   ac_have_decl=0
13816 fi
13817
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_DECL_CTL_KERN $ac_have_decl
13820 _ACEOF
13821 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13822              #include <sys/sysctl.h>
13823
13824 "
13825 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13826   ac_have_decl=1
13827 else
13828   ac_have_decl=0
13829 fi
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13833 _ACEOF
13834 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13835              #include <sys/sysctl.h>
13836
13837 "
13838 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13839   ac_have_decl=1
13840 else
13841   ac_have_decl=0
13842 fi
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13846 _ACEOF
13847 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13848              #include <sys/sysctl.h>
13849
13850 "
13851 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13852   ac_have_decl=1
13853 else
13854   ac_have_decl=0
13855 fi
13856
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_DECL_KERN_ARND $ac_have_decl
13859 _ACEOF
13860
13861 fi
13862
13863  if test x$bwin32 = xtrue; then
13864   BUILD_WIN32_TRUE=
13865   BUILD_WIN32_FALSE='#'
13866 else
13867   BUILD_WIN32_TRUE='#'
13868   BUILD_WIN32_FALSE=
13869 fi
13870
13871  if test x$cygwin = xtrue; then
13872   BUILD_CYGWIN_TRUE=
13873   BUILD_CYGWIN_FALSE='#'
13874 else
13875   BUILD_CYGWIN_TRUE='#'
13876   BUILD_CYGWIN_FALSE=
13877 fi
13878
13879  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13880   BUILD_WITH_NO_UNDEFINED_TRUE=
13881   BUILD_WITH_NO_UNDEFINED_FALSE='#'
13882 else
13883   BUILD_WITH_NO_UNDEFINED_TRUE='#'
13884   BUILD_WITH_NO_UNDEFINED_FALSE=
13885 fi
13886
13887
13888 if test x$bwin32 = xtrue; then
13889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13890 $as_echo_n "checking for library containing getservbyname... " >&6; }
13891 if ${ac_cv_search_getservbyname+:} false; then :
13892   $as_echo_n "(cached) " >&6
13893 else
13894   ac_func_search_save_LIBS=$LIBS
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h.  */
13897
13898 /* Override any GCC internal prototype to avoid an error.
13899    Use char because int might match the return type of a GCC
13900    builtin and then its argument prototype would still apply.  */
13901 #ifdef __cplusplus
13902 extern "C"
13903 #endif
13904 char getservbyname ();
13905 int
13906 main ()
13907 {
13908 return getservbyname ();
13909   ;
13910   return 0;
13911 }
13912 _ACEOF
13913 for ac_lib in '' ws2_32; do
13914   if test -z "$ac_lib"; then
13915     ac_res="none required"
13916   else
13917     ac_res=-l$ac_lib
13918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13919   fi
13920   if ac_fn_c_try_link "$LINENO"; then :
13921   ac_cv_search_getservbyname=$ac_res
13922 fi
13923 rm -f core conftest.err conftest.$ac_objext \
13924     conftest$ac_exeext
13925   if ${ac_cv_search_getservbyname+:} false; then :
13926   break
13927 fi
13928 done
13929 if ${ac_cv_search_getservbyname+:} false; then :
13930
13931 else
13932   ac_cv_search_getservbyname=no
13933 fi
13934 rm conftest.$ac_ext
13935 LIBS=$ac_func_search_save_LIBS
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13938 $as_echo "$ac_cv_search_getservbyname" >&6; }
13939 ac_res=$ac_cv_search_getservbyname
13940 if test "$ac_res" != no; then :
13941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13942
13943 fi
13944
13945 fi
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13948 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13949 if ${ac_cv_c_const+:} false; then :
13950   $as_echo_n "(cached) " >&6
13951 else
13952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h.  */
13954
13955 int
13956 main ()
13957 {
13958
13959 #ifndef __cplusplus
13960   /* Ultrix mips cc rejects this sort of thing.  */
13961   typedef int charset[2];
13962   const charset cs = { 0, 0 };
13963   /* SunOS 4.1.1 cc rejects this.  */
13964   char const *const *pcpcc;
13965   char **ppc;
13966   /* NEC SVR4.0.2 mips cc rejects this.  */
13967   struct point {int x, y;};
13968   static struct point const zero = {0,0};
13969   /* AIX XL C 1.02.0.0 rejects this.
13970      It does not let you subtract one const X* pointer from another in
13971      an arm of an if-expression whose if-part is not a constant
13972      expression */
13973   const char *g = "string";
13974   pcpcc = &g + (g ? g-g : 0);
13975   /* HPUX 7.0 cc rejects these. */
13976   ++pcpcc;
13977   ppc = (char**) pcpcc;
13978   pcpcc = (char const *const *) ppc;
13979   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13980     char tx;
13981     char *t = &tx;
13982     char const *s = 0 ? (char *) 0 : (char const *) 0;
13983
13984     *t++ = 0;
13985     if (s) return 0;
13986   }
13987   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13988     int x[] = {25, 17};
13989     const int *foo = &x[0];
13990     ++foo;
13991   }
13992   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13993     typedef const int *iptr;
13994     iptr p = 0;
13995     ++p;
13996   }
13997   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13998        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13999     struct s { int j; const int *ap[3]; } bx;
14000     struct s *b = &bx; b->j = 5;
14001   }
14002   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14003     const int foo = 10;
14004     if (!foo) return 0;
14005   }
14006   return !cs[0] && !zero.x;
14007 #endif
14008
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 if ac_fn_c_try_compile "$LINENO"; then :
14014   ac_cv_c_const=yes
14015 else
14016   ac_cv_c_const=no
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14021 $as_echo "$ac_cv_c_const" >&6; }
14022 if test $ac_cv_c_const = no; then
14023
14024 $as_echo "#define const /**/" >>confdefs.h
14025
14026 fi
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14029 $as_echo_n "checking for inline... " >&6; }
14030 if ${ac_cv_c_inline+:} false; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   ac_cv_c_inline=no
14034 for ac_kw in inline __inline__ __inline; do
14035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h.  */
14037 #ifndef __cplusplus
14038 typedef int foo_t;
14039 static $ac_kw foo_t static_foo () {return 0; }
14040 $ac_kw foo_t foo () {return 0; }
14041 #endif
14042
14043 _ACEOF
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045   ac_cv_c_inline=$ac_kw
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048   test "$ac_cv_c_inline" != no && break
14049 done
14050
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14053 $as_echo "$ac_cv_c_inline" >&6; }
14054
14055 case $ac_cv_c_inline in
14056   inline | yes) ;;
14057   *)
14058     case $ac_cv_c_inline in
14059       no) ac_val=;;
14060       *) ac_val=$ac_cv_c_inline;;
14061     esac
14062     cat >>confdefs.h <<_ACEOF
14063 #ifndef __cplusplus
14064 #define inline $ac_val
14065 #endif
14066 _ACEOF
14067     ;;
14068 esac
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14071 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14072 if ${ac_cv_header_time+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h.  */
14077 #include <sys/types.h>
14078 #include <sys/time.h>
14079 #include <time.h>
14080
14081 int
14082 main ()
14083 {
14084 if ((struct tm *) 0)
14085 return 0;
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091   ac_cv_header_time=yes
14092 else
14093   ac_cv_header_time=no
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14098 $as_echo "$ac_cv_header_time" >&6; }
14099 if test $ac_cv_header_time = yes; then
14100
14101 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14102
14103 fi
14104
14105
14106 for ac_func in  \
14107   accept4 \
14108   arc4random \
14109   arc4random_buf \
14110   clock_gettime \
14111   eventfd \
14112   epoll_create1 \
14113   fcntl \
14114   getegid \
14115   geteuid \
14116   getifaddrs \
14117   getnameinfo \
14118   getprotobynumber \
14119   gettimeofday \
14120   inet_ntop \
14121   inet_pton \
14122   issetugid \
14123   mach_absolute_time \
14124   mmap \
14125   nanosleep \
14126   pipe \
14127   pipe2 \
14128   putenv \
14129   sendfile \
14130   setenv \
14131   setrlimit \
14132   sigaction \
14133   signal \
14134   splice \
14135   strlcpy \
14136   strsep \
14137   strtok_r \
14138   strtoll \
14139   sysctl \
14140   timerfd_create \
14141   umask \
14142   unsetenv \
14143   usleep \
14144   vasprintf \
14145
14146 do :
14147   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14150   cat >>confdefs.h <<_ACEOF
14151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14152 _ACEOF
14153
14154 fi
14155 done
14156
14157  if test x"$ac_cv_func_strlcpy" = xno; then
14158   STRLCPY_IMPL_TRUE=
14159   STRLCPY_IMPL_FALSE='#'
14160 else
14161   STRLCPY_IMPL_TRUE='#'
14162   STRLCPY_IMPL_FALSE=
14163 fi
14164
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
14167 $as_echo_n "checking for getaddrinfo... " >&6; }
14168 if ${libevent_cv_getaddrinfo+:} false; then :
14169   $as_echo_n "(cached) " >&6
14170 else
14171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h.  */
14173
14174                 #ifdef HAVE_NETDB_H
14175                 #include <netdb.h>
14176                 #endif
14177
14178 int
14179 main ()
14180 {
14181
14182                 getaddrinfo;
14183
14184
14185   ;
14186   return 0;
14187 }
14188 _ACEOF
14189 if ac_fn_c_try_link "$LINENO"; then :
14190   libevent_cv_getaddrinfo=yes
14191 else
14192   libevent_cv_getaddrinfo=no
14193
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext \
14196     conftest$ac_exeext conftest.$ac_ext
14197
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
14200 $as_echo "$libevent_cv_getaddrinfo" >&6; }
14201 if test "$libevent_cv_getaddrinfo" = "yes" ; then
14202
14203 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14204
14205 else
14206
14207 for ac_func in getservbyname
14208 do :
14209   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
14210 if test "x$ac_cv_func_getservbyname" = xyes; then :
14211   cat >>confdefs.h <<_ACEOF
14212 #define HAVE_GETSERVBYNAME 1
14213 _ACEOF
14214
14215 fi
14216 done
14217
14218 # Check for gethostbyname_r in all its glorious incompatible versions.
14219 #   (This is cut-and-pasted from Tor, which based its logic on
14220 #   Python's configure.in.)
14221
14222
14223 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14224 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14225
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
14227 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
14228   OLD_CFLAGS=$CFLAGS
14229   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h.  */
14232
14233 #include <netdb.h>
14234
14235 int
14236 main ()
14237 {
14238
14239     char *cp1, *cp2;
14240     struct hostent *h1, *h2;
14241     int i1, i2;
14242     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
14243
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 if ac_fn_c_try_compile "$LINENO"; then :
14249
14250     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14251
14252
14253 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14254
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
14256 $as_echo "6" >&6; }
14257
14258 else
14259
14260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h.  */
14262
14263 #include <netdb.h>
14264
14265 int
14266 main ()
14267 {
14268
14269       char *cp1, *cp2;
14270       struct hostent *h1;
14271       int i1, i2;
14272       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
14273
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279
14280       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14281
14282
14283 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14284
14285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
14286 $as_echo "5" >&6; }
14287
14288 else
14289
14290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h.  */
14292
14293 #include <netdb.h>
14294
14295 int
14296 main ()
14297 {
14298
14299        char *cp1;
14300        struct hostent *h1;
14301        struct hostent_data hd;
14302        (void) gethostbyname_r(cp1,h1,&hd);
14303
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309
14310        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14311
14312
14313 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14314
14315        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
14316 $as_echo "3" >&6; }
14317
14318 else
14319
14320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
14321 $as_echo "0" >&6; }
14322
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331  CFLAGS=$OLD_CFLAGS
14332
14333 fi
14334
14335
14336 fi
14337
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
14339 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h.  */
14342
14343 #define _GNU_SOURCE
14344 #include <fcntl.h>
14345 #ifdef F_SETFD
14346 yes
14347 #endif
14348
14349 _ACEOF
14350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14351   $EGREP "yes" >/dev/null 2>&1; then :
14352
14353 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
14354
14355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14356 $as_echo "yes" >&6; }
14357 else
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361 rm -f conftest*
14362
14363
14364 needsignal=no
14365 haveselect=no
14366 if test x$bwin32 != xtrue; then
14367     for ac_func in select
14368 do :
14369   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14370 if test "x$ac_cv_func_select" = xyes; then :
14371   cat >>confdefs.h <<_ACEOF
14372 #define HAVE_SELECT 1
14373 _ACEOF
14374  haveselect=yes
14375 fi
14376 done
14377
14378     if test "x$haveselect" = "xyes" ; then
14379         needsignal=yes
14380     fi
14381 fi
14382  if test "x$haveselect" = "xyes"; then
14383   SELECT_BACKEND_TRUE=
14384   SELECT_BACKEND_FALSE='#'
14385 else
14386   SELECT_BACKEND_TRUE='#'
14387   SELECT_BACKEND_FALSE=
14388 fi
14389
14390
14391 havepoll=no
14392 for ac_func in poll
14393 do :
14394   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14395 if test "x$ac_cv_func_poll" = xyes; then :
14396   cat >>confdefs.h <<_ACEOF
14397 #define HAVE_POLL 1
14398 _ACEOF
14399  havepoll=yes
14400 fi
14401 done
14402
14403 if test "x$havepoll" = "xyes" ; then
14404         needsignal=yes
14405 fi
14406  if test "x$havepoll" = "xyes"; then
14407   POLL_BACKEND_TRUE=
14408   POLL_BACKEND_FALSE='#'
14409 else
14410   POLL_BACKEND_TRUE='#'
14411   POLL_BACKEND_FALSE=
14412 fi
14413
14414
14415 havedevpoll=no
14416 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14417
14418 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14419
14420 fi
14421  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14422   DEVPOLL_BACKEND_TRUE=
14423   DEVPOLL_BACKEND_FALSE='#'
14424 else
14425   DEVPOLL_BACKEND_TRUE='#'
14426   DEVPOLL_BACKEND_FALSE=
14427 fi
14428
14429
14430 havekqueue=no
14431 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
14432         for ac_func in kqueue
14433 do :
14434   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14435 if test "x$ac_cv_func_kqueue" = xyes; then :
14436   cat >>confdefs.h <<_ACEOF
14437 #define HAVE_KQUEUE 1
14438 _ACEOF
14439  havekqueue=yes
14440 fi
14441 done
14442
14443         if test "x$havekqueue" = "xyes" ; then
14444                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
14445 $as_echo_n "checking for working kqueue... " >&6; }
14446                 if test "$cross_compiling" = yes; then :
14447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14449 else
14450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h.  */
14452 #include <sys/types.h>
14453 #include <sys/time.h>
14454 #include <sys/event.h>
14455 #include <stdio.h>
14456 #include <unistd.h>
14457 #include <fcntl.h>
14458
14459 int
14460 main(int argc, char **argv)
14461 {
14462         int kq;
14463         int n;
14464         int fd[2];
14465         struct kevent ev;
14466         struct timespec ts;
14467         char buf[8000];
14468
14469         if (pipe(fd) == -1)
14470                 exit(1);
14471         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
14472                 exit(1);
14473
14474         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
14475                 ;
14476
14477         if ((kq = kqueue()) == -1)
14478                 exit(1);
14479
14480         memset(&ev, 0, sizeof(ev));
14481         ev.ident = fd[1];
14482         ev.filter = EVFILT_WRITE;
14483         ev.flags = EV_ADD | EV_ENABLE;
14484         n = kevent(kq, &ev, 1, NULL, 0, NULL);
14485         if (n == -1)
14486                 exit(1);
14487
14488         read(fd[0], buf, sizeof(buf));
14489
14490         ts.tv_sec = 0;
14491         ts.tv_nsec = 0;
14492         n = kevent(kq, NULL, 0, &ev, 1, &ts);
14493         if (n == -1 || n == 0)
14494                 exit(1);
14495
14496         exit(0);
14497 }
14498 _ACEOF
14499 if ac_fn_c_try_run "$LINENO"; then :
14500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14501 $as_echo "yes" >&6; }
14502
14503 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
14504
14505     havekqueue=yes
14506
14507 else
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14510 fi
14511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14512   conftest.$ac_objext conftest.beam conftest.$ac_ext
14513 fi
14514
14515         fi
14516 fi
14517  if test "x$havekqueue" = "xyes"; then
14518   KQUEUE_BACKEND_TRUE=
14519   KQUEUE_BACKEND_FALSE='#'
14520 else
14521   KQUEUE_BACKEND_TRUE='#'
14522   KQUEUE_BACKEND_FALSE=
14523 fi
14524
14525
14526 haveepollsyscall=no
14527 haveepoll=no
14528 for ac_func in epoll_ctl
14529 do :
14530   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14531 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
14532   cat >>confdefs.h <<_ACEOF
14533 #define HAVE_EPOLL_CTL 1
14534 _ACEOF
14535  haveepoll=yes
14536 fi
14537 done
14538
14539 if test "x$haveepoll" = "xyes" ; then
14540
14541 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14542
14543         needsignal=yes
14544 fi
14545 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
14546         if test "x$haveepoll" = "xno" ; then
14547                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14548 $as_echo_n "checking for epoll system call... " >&6; }
14549                 if test "$cross_compiling" = yes; then :
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14552 else
14553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h.  */
14555 #include <stdint.h>
14556 #include <sys/param.h>
14557 #include <sys/types.h>
14558 #include <sys/syscall.h>
14559 #include <sys/epoll.h>
14560 #include <unistd.h>
14561
14562 int
14563 epoll_create(int size)
14564 {
14565         return (syscall(__NR_epoll_create, size));
14566 }
14567
14568 int
14569 main(int argc, char **argv)
14570 {
14571         int epfd;
14572
14573         epfd = epoll_create(256);
14574         exit (epfd == -1 ? 1 : 0);
14575 }
14576 _ACEOF
14577 if ac_fn_c_try_run "$LINENO"; then :
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14579 $as_echo "yes" >&6; }
14580
14581 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14582
14583     needsignal=yes
14584     have_epoll=yes
14585     case " $LIBOBJS " in
14586   *" epoll_sub.$ac_objext "* ) ;;
14587   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14588  ;;
14589 esac
14590
14591
14592 else
14593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14595 fi
14596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14597   conftest.$ac_objext conftest.beam conftest.$ac_ext
14598 fi
14599
14600         fi
14601 fi
14602  if test "x$haveepoll" = "xyes"; then
14603   EPOLL_BACKEND_TRUE=
14604   EPOLL_BACKEND_FALSE='#'
14605 else
14606   EPOLL_BACKEND_TRUE='#'
14607   EPOLL_BACKEND_FALSE=
14608 fi
14609
14610
14611 haveeventports=no
14612 for ac_func in port_create
14613 do :
14614   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14615 if test "x$ac_cv_func_port_create" = xyes; then :
14616   cat >>confdefs.h <<_ACEOF
14617 #define HAVE_PORT_CREATE 1
14618 _ACEOF
14619  haveeventports=yes
14620 fi
14621 done
14622
14623 if test "x$haveeventports" = "xyes" ; then
14624
14625 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14626
14627         needsignal=yes
14628 fi
14629  if test "x$haveeventports" = "xyes"; then
14630   EVPORT_BACKEND_TRUE=
14631   EVPORT_BACKEND_FALSE='#'
14632 else
14633   EVPORT_BACKEND_TRUE='#'
14634   EVPORT_BACKEND_FALSE=
14635 fi
14636
14637
14638 if test "x$bwin32" = "xtrue"; then
14639         needsignal=yes
14640 fi
14641
14642  if test "x$needsignal" = "xyes"; then
14643   SIGNAL_SUPPORT_TRUE=
14644   SIGNAL_SUPPORT_FALSE='#'
14645 else
14646   SIGNAL_SUPPORT_TRUE='#'
14647   SIGNAL_SUPPORT_FALSE=
14648 fi
14649
14650
14651 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14652 if test "x$ac_cv_type_pid_t" = xyes; then :
14653
14654 else
14655
14656 cat >>confdefs.h <<_ACEOF
14657 #define pid_t int
14658 _ACEOF
14659
14660 fi
14661
14662 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14663 if test "x$ac_cv_type_size_t" = xyes; then :
14664
14665 else
14666
14667 cat >>confdefs.h <<_ACEOF
14668 #define size_t unsigned int
14669 _ACEOF
14670
14671 fi
14672
14673 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14674 if test "x$ac_cv_type_ssize_t" = xyes; then :
14675
14676 else
14677
14678 cat >>confdefs.h <<_ACEOF
14679 #define ssize_t int
14680 _ACEOF
14681
14682 fi
14683
14684
14685 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14686 #include <stdint.h>
14687 #elif defined(HAVE_INTTYPES_H)
14688 #include <inttypes.h>
14689 #endif
14690 #ifdef HAVE_SYS_TYPES_H
14691 #include <sys/types.h>
14692 #endif
14693 "
14694 if test "x$ac_cv_type_uint64_t" = xyes; then :
14695
14696 cat >>confdefs.h <<_ACEOF
14697 #define HAVE_UINT64_T 1
14698 _ACEOF
14699
14700
14701 fi
14702 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14703 #include <stdint.h>
14704 #elif defined(HAVE_INTTYPES_H)
14705 #include <inttypes.h>
14706 #endif
14707 #ifdef HAVE_SYS_TYPES_H
14708 #include <sys/types.h>
14709 #endif
14710 "
14711 if test "x$ac_cv_type_uint32_t" = xyes; then :
14712
14713 cat >>confdefs.h <<_ACEOF
14714 #define HAVE_UINT32_T 1
14715 _ACEOF
14716
14717
14718 fi
14719 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14720 #include <stdint.h>
14721 #elif defined(HAVE_INTTYPES_H)
14722 #include <inttypes.h>
14723 #endif
14724 #ifdef HAVE_SYS_TYPES_H
14725 #include <sys/types.h>
14726 #endif
14727 "
14728 if test "x$ac_cv_type_uint16_t" = xyes; then :
14729
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_UINT16_T 1
14732 _ACEOF
14733
14734
14735 fi
14736 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14737 #include <stdint.h>
14738 #elif defined(HAVE_INTTYPES_H)
14739 #include <inttypes.h>
14740 #endif
14741 #ifdef HAVE_SYS_TYPES_H
14742 #include <sys/types.h>
14743 #endif
14744 "
14745 if test "x$ac_cv_type_uint8_t" = xyes; then :
14746
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_UINT8_T 1
14749 _ACEOF
14750
14751
14752 fi
14753 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14754 #include <stdint.h>
14755 #elif defined(HAVE_INTTYPES_H)
14756 #include <inttypes.h>
14757 #endif
14758 #ifdef HAVE_SYS_TYPES_H
14759 #include <sys/types.h>
14760 #endif
14761 "
14762 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14763
14764 cat >>confdefs.h <<_ACEOF
14765 #define HAVE_UINTPTR_T 1
14766 _ACEOF
14767
14768
14769 fi
14770
14771
14772 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14773 #include <sys/types.h>
14774 #endif
14775 #ifdef HAVE_SYS_SELECT_H
14776 #include <sys/select.h>
14777 #endif
14778 "
14779 if test "x$ac_cv_type_fd_mask" = xyes; then :
14780
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_FD_MASK 1
14783 _ACEOF
14784
14785
14786 fi
14787
14788
14789 # The cast to long int works around a bug in the HP C Compiler
14790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14792 # This bug is HP SR number 8606223364.
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14794 $as_echo_n "checking size of long long... " >&6; }
14795 if ${ac_cv_sizeof_long_long+:} false; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14799
14800 else
14801   if test "$ac_cv_type_long_long" = yes; then
14802      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14804 as_fn_error 77 "cannot compute sizeof (long long)
14805 See \`config.log' for more details" "$LINENO" 5; }
14806    else
14807      ac_cv_sizeof_long_long=0
14808    fi
14809 fi
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14813 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14814
14815
14816
14817 cat >>confdefs.h <<_ACEOF
14818 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14819 _ACEOF
14820
14821
14822 # The cast to long int works around a bug in the HP C Compiler
14823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14825 # This bug is HP SR number 8606223364.
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14827 $as_echo_n "checking size of long... " >&6; }
14828 if ${ac_cv_sizeof_long+:} false; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14832
14833 else
14834   if test "$ac_cv_type_long" = yes; then
14835      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14837 as_fn_error 77 "cannot compute sizeof (long)
14838 See \`config.log' for more details" "$LINENO" 5; }
14839    else
14840      ac_cv_sizeof_long=0
14841    fi
14842 fi
14843
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14846 $as_echo "$ac_cv_sizeof_long" >&6; }
14847
14848
14849
14850 cat >>confdefs.h <<_ACEOF
14851 #define SIZEOF_LONG $ac_cv_sizeof_long
14852 _ACEOF
14853
14854
14855 # The cast to long int works around a bug in the HP C Compiler
14856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14858 # This bug is HP SR number 8606223364.
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14860 $as_echo_n "checking size of int... " >&6; }
14861 if ${ac_cv_sizeof_int+:} false; then :
14862   $as_echo_n "(cached) " >&6
14863 else
14864   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14865
14866 else
14867   if test "$ac_cv_type_int" = yes; then
14868      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14870 as_fn_error 77 "cannot compute sizeof (int)
14871 See \`config.log' for more details" "$LINENO" 5; }
14872    else
14873      ac_cv_sizeof_int=0
14874    fi
14875 fi
14876
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14879 $as_echo "$ac_cv_sizeof_int" >&6; }
14880
14881
14882
14883 cat >>confdefs.h <<_ACEOF
14884 #define SIZEOF_INT $ac_cv_sizeof_int
14885 _ACEOF
14886
14887
14888 # The cast to long int works around a bug in the HP C Compiler
14889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14891 # This bug is HP SR number 8606223364.
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14893 $as_echo_n "checking size of short... " >&6; }
14894 if ${ac_cv_sizeof_short+:} false; then :
14895   $as_echo_n "(cached) " >&6
14896 else
14897   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14898
14899 else
14900   if test "$ac_cv_type_short" = yes; then
14901      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14903 as_fn_error 77 "cannot compute sizeof (short)
14904 See \`config.log' for more details" "$LINENO" 5; }
14905    else
14906      ac_cv_sizeof_short=0
14907    fi
14908 fi
14909
14910 fi
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14912 $as_echo "$ac_cv_sizeof_short" >&6; }
14913
14914
14915
14916 cat >>confdefs.h <<_ACEOF
14917 #define SIZEOF_SHORT $ac_cv_sizeof_short
14918 _ACEOF
14919
14920
14921 # The cast to long int works around a bug in the HP C Compiler
14922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14924 # This bug is HP SR number 8606223364.
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14926 $as_echo_n "checking size of size_t... " >&6; }
14927 if ${ac_cv_sizeof_size_t+:} false; then :
14928   $as_echo_n "(cached) " >&6
14929 else
14930   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14931
14932 else
14933   if test "$ac_cv_type_size_t" = yes; then
14934      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14936 as_fn_error 77 "cannot compute sizeof (size_t)
14937 See \`config.log' for more details" "$LINENO" 5; }
14938    else
14939      ac_cv_sizeof_size_t=0
14940    fi
14941 fi
14942
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14945 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14946
14947
14948
14949 cat >>confdefs.h <<_ACEOF
14950 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14951 _ACEOF
14952
14953
14954 # The cast to long int works around a bug in the HP C Compiler
14955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14957 # This bug is HP SR number 8606223364.
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14959 $as_echo_n "checking size of void *... " >&6; }
14960 if ${ac_cv_sizeof_void_p+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14964
14965 else
14966   if test "$ac_cv_type_void_p" = yes; then
14967      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14969 as_fn_error 77 "cannot compute sizeof (void *)
14970 See \`config.log' for more details" "$LINENO" 5; }
14971    else
14972      ac_cv_sizeof_void_p=0
14973    fi
14974 fi
14975
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14978 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14979
14980
14981
14982 cat >>confdefs.h <<_ACEOF
14983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14984 _ACEOF
14985
14986
14987 # The cast to long int works around a bug in the HP C Compiler
14988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14990 # This bug is HP SR number 8606223364.
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14992 $as_echo_n "checking size of off_t... " >&6; }
14993 if ${ac_cv_sizeof_off_t+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14997
14998 else
14999   if test "$ac_cv_type_off_t" = yes; then
15000      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15002 as_fn_error 77 "cannot compute sizeof (off_t)
15003 See \`config.log' for more details" "$LINENO" 5; }
15004    else
15005      ac_cv_sizeof_off_t=0
15006    fi
15007 fi
15008
15009 fi
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15011 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15012
15013
15014
15015 cat >>confdefs.h <<_ACEOF
15016 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15017 _ACEOF
15018
15019
15020
15021 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
15022 #include <sys/types.h>
15023 #ifdef HAVE_NETINET_IN_H
15024 #include <netinet/in.h>
15025 #endif
15026 #ifdef HAVE_NETINET_IN6_H
15027 #include <netinet/in6.h>
15028 #endif
15029 #ifdef HAVE_SYS_SOCKET_H
15030 #include <sys/socket.h>
15031 #endif
15032 #ifdef HAVE_NETDB_H
15033 #include <netdb.h>
15034 #endif
15035 #ifdef _WIN32
15036 #define WIN32_WINNT 0x400
15037 #define _WIN32_WINNT 0x400
15038 #define WIN32_LEAN_AND_MEAN
15039 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15040 #include <winsock.h>
15041 #else
15042 #include <winsock2.h>
15043 #include <ws2tcpip.h>
15044 #endif
15045 #endif
15046
15047 "
15048 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15049
15050 cat >>confdefs.h <<_ACEOF
15051 #define HAVE_STRUCT_IN6_ADDR 1
15052 _ACEOF
15053
15054
15055 fi
15056 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
15057 #include <sys/types.h>
15058 #ifdef HAVE_NETINET_IN_H
15059 #include <netinet/in.h>
15060 #endif
15061 #ifdef HAVE_NETINET_IN6_H
15062 #include <netinet/in6.h>
15063 #endif
15064 #ifdef HAVE_SYS_SOCKET_H
15065 #include <sys/socket.h>
15066 #endif
15067 #ifdef HAVE_NETDB_H
15068 #include <netdb.h>
15069 #endif
15070 #ifdef _WIN32
15071 #define WIN32_WINNT 0x400
15072 #define _WIN32_WINNT 0x400
15073 #define WIN32_LEAN_AND_MEAN
15074 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15075 #include <winsock.h>
15076 #else
15077 #include <winsock2.h>
15078 #include <ws2tcpip.h>
15079 #endif
15080 #endif
15081
15082 "
15083 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15084
15085 cat >>confdefs.h <<_ACEOF
15086 #define HAVE_STRUCT_SOCKADDR_IN6 1
15087 _ACEOF
15088
15089
15090 fi
15091 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
15092 #include <sys/types.h>
15093 #ifdef HAVE_NETINET_IN_H
15094 #include <netinet/in.h>
15095 #endif
15096 #ifdef HAVE_NETINET_IN6_H
15097 #include <netinet/in6.h>
15098 #endif
15099 #ifdef HAVE_SYS_SOCKET_H
15100 #include <sys/socket.h>
15101 #endif
15102 #ifdef HAVE_NETDB_H
15103 #include <netdb.h>
15104 #endif
15105 #ifdef _WIN32
15106 #define WIN32_WINNT 0x400
15107 #define _WIN32_WINNT 0x400
15108 #define WIN32_LEAN_AND_MEAN
15109 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15110 #include <winsock.h>
15111 #else
15112 #include <winsock2.h>
15113 #include <ws2tcpip.h>
15114 #endif
15115 #endif
15116
15117 "
15118 if test "x$ac_cv_type_sa_family_t" = xyes; then :
15119
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_SA_FAMILY_T 1
15122 _ACEOF
15123
15124
15125 fi
15126 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
15127 #include <sys/types.h>
15128 #ifdef HAVE_NETINET_IN_H
15129 #include <netinet/in.h>
15130 #endif
15131 #ifdef HAVE_NETINET_IN6_H
15132 #include <netinet/in6.h>
15133 #endif
15134 #ifdef HAVE_SYS_SOCKET_H
15135 #include <sys/socket.h>
15136 #endif
15137 #ifdef HAVE_NETDB_H
15138 #include <netdb.h>
15139 #endif
15140 #ifdef _WIN32
15141 #define WIN32_WINNT 0x400
15142 #define _WIN32_WINNT 0x400
15143 #define WIN32_LEAN_AND_MEAN
15144 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15145 #include <winsock.h>
15146 #else
15147 #include <winsock2.h>
15148 #include <ws2tcpip.h>
15149 #endif
15150 #endif
15151
15152 "
15153 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
15154
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_STRUCT_ADDRINFO 1
15157 _ACEOF
15158
15159
15160 fi
15161 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
15162 #include <sys/types.h>
15163 #ifdef HAVE_NETINET_IN_H
15164 #include <netinet/in.h>
15165 #endif
15166 #ifdef HAVE_NETINET_IN6_H
15167 #include <netinet/in6.h>
15168 #endif
15169 #ifdef HAVE_SYS_SOCKET_H
15170 #include <sys/socket.h>
15171 #endif
15172 #ifdef HAVE_NETDB_H
15173 #include <netdb.h>
15174 #endif
15175 #ifdef _WIN32
15176 #define WIN32_WINNT 0x400
15177 #define _WIN32_WINNT 0x400
15178 #define WIN32_LEAN_AND_MEAN
15179 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15180 #include <winsock.h>
15181 #else
15182 #include <winsock2.h>
15183 #include <ws2tcpip.h>
15184 #endif
15185 #endif
15186
15187 "
15188 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
15189
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15192 _ACEOF
15193
15194
15195 fi
15196
15197 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
15198 #ifdef HAVE_NETINET_IN_H
15199 #include <netinet/in.h>
15200 #endif
15201 #ifdef HAVE_NETINET_IN6_H
15202 #include <netinet/in6.h>
15203 #endif
15204 #ifdef HAVE_SYS_SOCKET_H
15205 #include <sys/socket.h>
15206 #endif
15207 #ifdef _WIN32
15208 #define WIN32_WINNT 0x400
15209 #define _WIN32_WINNT 0x400
15210 #define WIN32_LEAN_AND_MEAN
15211 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15212 #include <winsock.h>
15213 #else
15214 #include <winsock2.h>
15215 #include <ws2tcpip.h>
15216 #endif
15217 #endif
15218
15219 "
15220 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
15221
15222 cat >>confdefs.h <<_ACEOF
15223 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
15224 _ACEOF
15225
15226
15227 fi
15228 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
15229 #ifdef HAVE_NETINET_IN_H
15230 #include <netinet/in.h>
15231 #endif
15232 #ifdef HAVE_NETINET_IN6_H
15233 #include <netinet/in6.h>
15234 #endif
15235 #ifdef HAVE_SYS_SOCKET_H
15236 #include <sys/socket.h>
15237 #endif
15238 #ifdef _WIN32
15239 #define WIN32_WINNT 0x400
15240 #define _WIN32_WINNT 0x400
15241 #define WIN32_LEAN_AND_MEAN
15242 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15243 #include <winsock.h>
15244 #else
15245 #include <winsock2.h>
15246 #include <ws2tcpip.h>
15247 #endif
15248 #endif
15249
15250 "
15251 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
15252
15253 cat >>confdefs.h <<_ACEOF
15254 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
15255 _ACEOF
15256
15257
15258 fi
15259 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
15260 #ifdef HAVE_NETINET_IN_H
15261 #include <netinet/in.h>
15262 #endif
15263 #ifdef HAVE_NETINET_IN6_H
15264 #include <netinet/in6.h>
15265 #endif
15266 #ifdef HAVE_SYS_SOCKET_H
15267 #include <sys/socket.h>
15268 #endif
15269 #ifdef _WIN32
15270 #define WIN32_WINNT 0x400
15271 #define _WIN32_WINNT 0x400
15272 #define WIN32_LEAN_AND_MEAN
15273 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15274 #include <winsock.h>
15275 #else
15276 #include <winsock2.h>
15277 #include <ws2tcpip.h>
15278 #endif
15279 #endif
15280
15281 "
15282 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15283
15284 cat >>confdefs.h <<_ACEOF
15285 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
15286 _ACEOF
15287
15288
15289 fi
15290 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
15291 #ifdef HAVE_NETINET_IN_H
15292 #include <netinet/in.h>
15293 #endif
15294 #ifdef HAVE_NETINET_IN6_H
15295 #include <netinet/in6.h>
15296 #endif
15297 #ifdef HAVE_SYS_SOCKET_H
15298 #include <sys/socket.h>
15299 #endif
15300 #ifdef _WIN32
15301 #define WIN32_WINNT 0x400
15302 #define _WIN32_WINNT 0x400
15303 #define WIN32_LEAN_AND_MEAN
15304 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15305 #include <winsock.h>
15306 #else
15307 #include <winsock2.h>
15308 #include <ws2tcpip.h>
15309 #endif
15310 #endif
15311
15312 "
15313 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
15314
15315 cat >>confdefs.h <<_ACEOF
15316 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
15317 _ACEOF
15318
15319
15320 fi
15321 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15322 #ifdef HAVE_NETINET_IN_H
15323 #include <netinet/in.h>
15324 #endif
15325 #ifdef HAVE_NETINET_IN6_H
15326 #include <netinet/in6.h>
15327 #endif
15328 #ifdef HAVE_SYS_SOCKET_H
15329 #include <sys/socket.h>
15330 #endif
15331 #ifdef _WIN32
15332 #define WIN32_WINNT 0x400
15333 #define _WIN32_WINNT 0x400
15334 #define WIN32_LEAN_AND_MEAN
15335 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15336 #include <winsock.h>
15337 #else
15338 #include <winsock2.h>
15339 #include <ws2tcpip.h>
15340 #endif
15341 #endif
15342
15343 "
15344 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15345
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15348 _ACEOF
15349
15350
15351 fi
15352 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15353 #ifdef HAVE_NETINET_IN_H
15354 #include <netinet/in.h>
15355 #endif
15356 #ifdef HAVE_NETINET_IN6_H
15357 #include <netinet/in6.h>
15358 #endif
15359 #ifdef HAVE_SYS_SOCKET_H
15360 #include <sys/socket.h>
15361 #endif
15362 #ifdef _WIN32
15363 #define WIN32_WINNT 0x400
15364 #define _WIN32_WINNT 0x400
15365 #define WIN32_LEAN_AND_MEAN
15366 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15367 #include <winsock.h>
15368 #else
15369 #include <winsock2.h>
15370 #include <ws2tcpip.h>
15371 #endif
15372 #endif
15373
15374 "
15375 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15376
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15379 _ACEOF
15380
15381
15382 fi
15383
15384
15385 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
15386 #ifdef HAVE_SYS_SOCKET_H
15387 #include <sys/socket.h>
15388 #endif
15389
15390 "
15391 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
15392
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_STRUCT_SO_LINGER 1
15395 _ACEOF
15396
15397 #define HAVE_SO_LINGER
15398 fi
15399
15400
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15402 $as_echo_n "checking for socklen_t... " >&6; }
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h.  */
15405
15406  #include <sys/types.h>
15407  #include <sys/socket.h>
15408 int
15409 main ()
15410 {
15411 socklen_t x;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"; then :
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15418 $as_echo "yes" >&6; }
15419 else
15420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422
15423 $as_echo "#define socklen_t unsigned int" >>confdefs.h
15424
15425
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
15430 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h.  */
15433
15434 int
15435 main ()
15436 {
15437  const char *cp = __func__;
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15444 $as_echo "yes" >&6; }
15445 else
15446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447 $as_echo "no" >&6; }
15448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
15449 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h.  */
15452
15453 int
15454 main ()
15455 {
15456  const char *cp = __FUNCTION__;
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_c_try_compile "$LINENO"; then :
15462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15463 $as_echo "yes" >&6; }
15464
15465 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
15466
15467 else
15468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469 $as_echo "no" >&6; }
15470
15471 $as_echo "#define __func__ __FILE__" >>confdefs.h
15472
15473 fi
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477
15478
15479 # check if we can compile with pthreads
15480 have_pthreads=no
15481 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
15482
15483
15484
15485 ac_ext=c
15486 ac_cpp='$CPP $CPPFLAGS'
15487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
15491 acx_pthread_ok=no
15492
15493 # We used to check for pthread.h first, but this fails if pthread.h
15494 # requires special compiler flags (e.g. on True64 or Sequent).
15495 # It gets checked for in the link test anyway.
15496
15497 # First of all, check if the user has set any of the PTHREAD_LIBS,
15498 # etcetera environment variables, and if threads linking works using
15499 # them:
15500 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15501         save_CFLAGS="$CFLAGS"
15502         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15503         save_LIBS="$LIBS"
15504         LIBS="$PTHREAD_LIBS $LIBS"
15505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15506 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15507         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h.  */
15509
15510 /* Override any GCC internal prototype to avoid an error.
15511    Use char because int might match the return type of a GCC
15512    builtin and then its argument prototype would still apply.  */
15513 #ifdef __cplusplus
15514 extern "C"
15515 #endif
15516 char pthread_join ();
15517 int
15518 main ()
15519 {
15520 return pthread_join ();
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_link "$LINENO"; then :
15526   acx_pthread_ok=yes
15527 fi
15528 rm -f core conftest.err conftest.$ac_objext \
15529     conftest$ac_exeext conftest.$ac_ext
15530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15531 $as_echo "$acx_pthread_ok" >&6; }
15532         if test x"$acx_pthread_ok" = xno; then
15533                 PTHREAD_LIBS=""
15534                 PTHREAD_CFLAGS=""
15535         fi
15536         LIBS="$save_LIBS"
15537         CFLAGS="$save_CFLAGS"
15538 fi
15539
15540 # We must check for the threads library under a number of different
15541 # names; the ordering is very important because some systems
15542 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15543 # libraries is broken (non-POSIX).
15544
15545 # Create a list of thread flags to try.  Items starting with a "-" are
15546 # C compiler flags, and other items are library names, except for "none"
15547 # which indicates that we try without any flags at all, and "pthread-config"
15548 # which is a program returning the flags for the Pth emulation library.
15549
15550 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15551
15552 # The ordering *is* (sometimes) important.  Some notes on the
15553 # individual items follow:
15554
15555 # pthreads: AIX (must check this before -lpthread)
15556 # none: in case threads are in libc; should be tried before -Kthread and
15557 #       other compiler flags to prevent continual compiler warnings
15558 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15559 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15560 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15561 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15562 # -pthreads: Solaris/gcc
15563 # -mthreads: Mingw32/gcc, Lynx/gcc
15564 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15565 #      doesn't hurt to check since this sometimes defines pthreads too;
15566 #      also defines -D_REENTRANT)
15567 #      ... -mt is also the pthreads flag for HP/aCC
15568 # pthread: Linux, etcetera
15569 # --thread-safe: KAI C++
15570 # pthread-config: use pthread-config program (for GNU Pth library)
15571
15572 case "${host_cpu}-${host_os}" in
15573         *solaris*)
15574
15575         # On Solaris (at least, for some versions), libc contains stubbed
15576         # (non-functional) versions of the pthreads routines, so link-based
15577         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15578         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15579         # a function called by this macro, so we could check for that, but
15580         # who knows whether they'll stub that too in a future libc.)  So,
15581         # we'll just look for -pthreads and -lpthread first:
15582
15583         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15584         ;;
15585 esac
15586
15587 if test x"$acx_pthread_ok" = xno; then
15588 for flag in $acx_pthread_flags; do
15589
15590         case $flag in
15591                 none)
15592                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15593 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15594                 ;;
15595
15596                 -*)
15597                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15598 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15599                 PTHREAD_CFLAGS="$flag"
15600                 ;;
15601
15602                 pthread-config)
15603                 # Extract the first word of "pthread-config", so it can be a program name with args.
15604 set dummy pthread-config; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15608   $as_echo_n "(cached) " >&6
15609 else
15610   if test -n "$acx_pthread_config"; then
15611   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15612 else
15613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15614 for as_dir in $PATH
15615 do
15616   IFS=$as_save_IFS
15617   test -z "$as_dir" && as_dir=.
15618     for ac_exec_ext in '' $ac_executable_extensions; do
15619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15620     ac_cv_prog_acx_pthread_config="yes"
15621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15622     break 2
15623   fi
15624 done
15625   done
15626 IFS=$as_save_IFS
15627
15628   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15629 fi
15630 fi
15631 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15632 if test -n "$acx_pthread_config"; then
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15634 $as_echo "$acx_pthread_config" >&6; }
15635 else
15636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15638 fi
15639
15640
15641                 if test x"$acx_pthread_config" = xno; then continue; fi
15642                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15643                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15644                 ;;
15645
15646                 *)
15647                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15648 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15649                 PTHREAD_LIBS="-l$flag"
15650                 ;;
15651         esac
15652
15653         save_LIBS="$LIBS"
15654         save_CFLAGS="$CFLAGS"
15655         LIBS="$PTHREAD_LIBS $LIBS"
15656         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15657
15658         # Check for various functions.  We must include pthread.h,
15659         # since some functions may be macros.  (On the Sequent, we
15660         # need a special flag -Kthread to make this header compile.)
15661         # We check for pthread_join because it is in -lpthread on IRIX
15662         # while pthread_create is in libc.  We check for pthread_attr_init
15663         # due to DEC craziness with -lpthreads.  We check for
15664         # pthread_cleanup_push because it is one of the few pthread
15665         # functions on Solaris that doesn't have a non-functional libc stub.
15666         # We try pthread_create on general principles.
15667         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h.  */
15669 #include <pthread.h>
15670 int
15671 main ()
15672 {
15673 pthread_t th; pthread_join(th, 0);
15674                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15675                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681   acx_pthread_ok=yes
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684     conftest$ac_exeext conftest.$ac_ext
15685
15686         LIBS="$save_LIBS"
15687         CFLAGS="$save_CFLAGS"
15688
15689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15690 $as_echo "$acx_pthread_ok" >&6; }
15691         if test "x$acx_pthread_ok" = xyes; then
15692                 break;
15693         fi
15694
15695         PTHREAD_LIBS=""
15696         PTHREAD_CFLAGS=""
15697 done
15698 fi
15699
15700 # Various other checks:
15701 if test "x$acx_pthread_ok" = xyes; then
15702         save_LIBS="$LIBS"
15703         LIBS="$PTHREAD_LIBS $LIBS"
15704         save_CFLAGS="$CFLAGS"
15705         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15706
15707         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15709 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15710         attr_name=unknown
15711         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15712             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h.  */
15714 #include <pthread.h>
15715 int
15716 main ()
15717 {
15718 int attr=$attr; return attr;
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_link "$LINENO"; then :
15724   attr_name=$attr; break
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727     conftest$ac_exeext conftest.$ac_ext
15728         done
15729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15730 $as_echo "$attr_name" >&6; }
15731         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15732
15733 cat >>confdefs.h <<_ACEOF
15734 #define PTHREAD_CREATE_JOINABLE $attr_name
15735 _ACEOF
15736
15737         fi
15738
15739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15740 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15741         flag=no
15742         case "${host_cpu}-${host_os}" in
15743             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15744             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15745         esac
15746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15747 $as_echo "${flag}" >&6; }
15748         if test "x$flag" != xno; then
15749             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15750         fi
15751
15752         LIBS="$save_LIBS"
15753         CFLAGS="$save_CFLAGS"
15754
15755         # More AIX lossage: must compile with xlc_r or cc_r
15756         if test x"$GCC" != xyes; then
15757           for ac_prog in xlc_r cc_r
15758 do
15759   # Extract the first word of "$ac_prog", so it can be a program name with args.
15760 set dummy $ac_prog; ac_word=$2
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15762 $as_echo_n "checking for $ac_word... " >&6; }
15763 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15764   $as_echo_n "(cached) " >&6
15765 else
15766   if test -n "$PTHREAD_CC"; then
15767   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15768 else
15769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15771 do
15772   IFS=$as_save_IFS
15773   test -z "$as_dir" && as_dir=.
15774     for ac_exec_ext in '' $ac_executable_extensions; do
15775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15776     ac_cv_prog_PTHREAD_CC="$ac_prog"
15777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15778     break 2
15779   fi
15780 done
15781   done
15782 IFS=$as_save_IFS
15783
15784 fi
15785 fi
15786 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15787 if test -n "$PTHREAD_CC"; then
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15789 $as_echo "$PTHREAD_CC" >&6; }
15790 else
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15793 fi
15794
15795
15796   test -n "$PTHREAD_CC" && break
15797 done
15798 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15799
15800         else
15801           PTHREAD_CC=$CC
15802         fi
15803 else
15804         PTHREAD_CC="$CC"
15805 fi
15806
15807
15808
15809
15810
15811 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15812 if test x"$acx_pthread_ok" = xyes; then
15813
15814
15815 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
15816
15817         have_pthreads=yes
15818         :
15819 else
15820         acx_pthread_ok=no
15821
15822 fi
15823 ac_ext=c
15824 ac_cpp='$CPP $CPPFLAGS'
15825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15828
15829
15830   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15831   # The cast to long int works around a bug in the HP C Compiler
15832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15834 # This bug is HP SR number 8606223364.
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15836 $as_echo_n "checking size of pthread_t... " >&6; }
15837 if ${ac_cv_sizeof_pthread_t+:} false; then :
15838   $as_echo_n "(cached) " >&6
15839 else
15840   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
15841       #include <pthread.h>
15842
15843 "; then :
15844
15845 else
15846   if test "$ac_cv_type_pthread_t" = yes; then
15847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15849 as_fn_error 77 "cannot compute sizeof (pthread_t)
15850 See \`config.log' for more details" "$LINENO" 5; }
15851    else
15852      ac_cv_sizeof_pthread_t=0
15853    fi
15854 fi
15855
15856 fi
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15858 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15859
15860
15861
15862 cat >>confdefs.h <<_ACEOF
15863 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15864 _ACEOF
15865
15866
15867 fi
15868  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
15869   PTHREADS_TRUE=
15870   PTHREADS_FALSE='#'
15871 else
15872   PTHREADS_TRUE='#'
15873   PTHREADS_FALSE=
15874 fi
15875
15876
15877 # check if we should compile locking into the library
15878 if test x$enable_thread_support = xno; then
15879
15880 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
15881
15882 fi
15883
15884 # check if we should hard-code the mm functions.
15885 if test x$enable_malloc_replacement = xno; then
15886
15887 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
15888
15889 fi
15890
15891 # check if we should hard-code debugging out
15892 if test x$enable_debug_mode = xno; then
15893
15894 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
15895
15896 fi
15897
15898 # check if we should enable verbose debugging
15899 if test x$enable_verbose_debug = xyes; then
15900         CFLAGS="$CFLAGS -DUSE_DEBUG"
15901 fi
15902
15903 # check if we have and should use openssl
15904  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15905   OPENSSL_TRUE=
15906   OPENSSL_FALSE='#'
15907 else
15908   OPENSSL_TRUE='#'
15909   OPENSSL_FALSE=
15910 fi
15911
15912
15913 # Add some more warnings which we use in development but not in the
15914 # released versions.  (Some relevant gcc versions can't handle these.)
15915 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
15916
15917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919
15920 int
15921 main ()
15922 {
15923
15924 #if !defined(__GNUC__) || (__GNUC__ < 4)
15925 #error
15926 #endif
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"; then :
15932   have_gcc4=yes
15933 else
15934   have_gcc4=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937
15938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h.  */
15940
15941 int
15942 main ()
15943 {
15944
15945 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15946 #error
15947 #endif
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_compile "$LINENO"; then :
15953   have_gcc42=yes
15954 else
15955   have_gcc42=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958
15959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h.  */
15961
15962 int
15963 main ()
15964 {
15965
15966 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15967 #error
15968 #endif
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974   have_gcc45=yes
15975 else
15976   have_gcc45=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979
15980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h.  */
15982
15983 int
15984 main ()
15985 {
15986
15987 #if !defined(__clang__)
15988 #error
15989 #endif
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"; then :
15995   have_clang=yes
15996 else
15997   have_clang=no
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16000
16001   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"
16002   if test x$enable_gcc_warnings = xyes; then
16003     CFLAGS="$CFLAGS -Werror"
16004   fi
16005
16006   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
16007
16008   if test x$have_gcc4 = xyes ; then
16009     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
16010     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
16011     #CFLAGS="$CFLAGS -Wold-style-definition"
16012   fi
16013
16014   if test x$have_gcc42 = xyes ; then
16015     # These warnings break gcc 4.0.2 and work on gcc 4.2
16016     CFLAGS="$CFLAGS -Waddress"
16017   fi
16018
16019   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
16020     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
16021     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
16022   fi
16023
16024   if test x$have_gcc45 = xyes ; then
16025     # These warnings work on gcc 4.5
16026     CFLAGS="$CFLAGS -Wlogical-op"
16027   fi
16028
16029   if test x$have_clang = xyes; then
16030     # Disable the unused-function warnings, because these trigger
16031     # for minheap-internal.h related code.
16032     CFLAGS="$CFLAGS -Wno-unused-function"
16033
16034     # clang on macosx emits warnigns for each directory specified which
16035     # isn't "used" generating a lot of build noise (typically 3 warnings
16036     # per file
16037     case "$host_os" in
16038         darwin*)
16039             CFLAGS="$CFLAGS -Qunused-arguments"
16040         ;;
16041     esac
16042   fi
16043
16044 ##This will break the world on some 64-bit architectures
16045 # CFLAGS="$CFLAGS -Winline"
16046
16047 fi
16048
16049 LIBEVENT_GC_SECTIONS=
16050 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
16051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
16052 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
16053 if ${libevent_cv_gc_sections_runs+:} false; then :
16054   $as_echo_n "(cached) " >&6
16055 else
16056
16057                                                                                             origCFLAGS="$CFLAGS"
16058             CFLAGS="$CFLAGS -Wl,--gc-sections"
16059             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h.  */
16061
16062                         #include <stdlib.h>
16063                         #include <stdio.h>
16064
16065 int
16066 main ()
16067 {
16068
16069                         FILE *  fpC;
16070                         char    buf[32];
16071                         size_t  cch;
16072                         int     read_success_once;
16073
16074                         fpC = fopen("conftest.c", "r");
16075                         if (NULL == fpC)
16076                                 exit(1);
16077                         do {
16078                                 cch = fread(buf, sizeof(buf), 1, fpC);
16079                                 read_success_once |= (0 != cch);
16080                         } while (0 != cch);
16081                         if (!read_success_once)
16082                                 exit(2);
16083                         if (!feof(fpC))
16084                                 exit(3);
16085                         if (0 != fclose(fpC))
16086                                 exit(4);
16087
16088                         exit(EXIT_SUCCESS);
16089
16090
16091   ;
16092   return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096
16097                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
16098                         libevent_cv_gc_sections_runs=no
16099                     else
16100                         libevent_cv_gc_sections_runs=no
16101                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
16102                     fi
16103
16104 else
16105   libevent_cv_gc_sections_runs=no
16106
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext \
16109     conftest$ac_exeext conftest.$ac_ext
16110             CFLAGS="$origCFLAGS"
16111             { origCFLAGS=; unset origCFLAGS;}
16112
16113
16114 fi
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
16116 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
16117     case "$libevent_cv_gc_sections_runs" in
16118      yes)
16119         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
16120         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
16121         ;;
16122     esac
16123 fi
16124
16125
16126  if test "$enable_libevent_install" = "yes"; then
16127   INSTALL_LIBEVENT_TRUE=
16128   INSTALL_LIBEVENT_FALSE='#'
16129 else
16130   INSTALL_LIBEVENT_TRUE='#'
16131   INSTALL_LIBEVENT_FALSE=
16132 fi
16133
16134
16135
16136
16137
16138
16139 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
16140
16141 ac_config_files="$ac_config_files Makefile"
16142
16143 cat >confcache <<\_ACEOF
16144 # This file is a shell script that caches the results of configure
16145 # tests run on this system so they can be shared between configure
16146 # scripts and configure runs, see configure's option --config-cache.
16147 # It is not useful on other systems.  If it contains results you don't
16148 # want to keep, you may remove or edit it.
16149 #
16150 # config.status only pays attention to the cache file if you give it
16151 # the --recheck option to rerun configure.
16152 #
16153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16155 # following values.
16156
16157 _ACEOF
16158
16159 # The following way of writing the cache mishandles newlines in values,
16160 # but we know of no workaround that is simple, portable, and efficient.
16161 # So, we kill variables containing newlines.
16162 # Ultrix sh set writes to stderr and can't be redirected directly,
16163 # and sets the high bit in the cache file unless we assign to the vars.
16164 (
16165   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16166     eval ac_val=\$$ac_var
16167     case $ac_val in #(
16168     *${as_nl}*)
16169       case $ac_var in #(
16170       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16172       esac
16173       case $ac_var in #(
16174       _ | IFS | as_nl) ;; #(
16175       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16176       *) { eval $ac_var=; unset $ac_var;} ;;
16177       esac ;;
16178     esac
16179   done
16180
16181   (set) 2>&1 |
16182     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16183     *${as_nl}ac_space=\ *)
16184       # `set' does not quote correctly, so add quotes: double-quote
16185       # substitution turns \\\\ into \\, and sed turns \\ into \.
16186       sed -n \
16187         "s/'/'\\\\''/g;
16188           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16189       ;; #(
16190     *)
16191       # `set' quotes correctly as required by POSIX, so do not add quotes.
16192       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16193       ;;
16194     esac |
16195     sort
16196 ) |
16197   sed '
16198      /^ac_cv_env_/b end
16199      t clear
16200      :clear
16201      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16202      t end
16203      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16204      :end' >>confcache
16205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16206   if test -w "$cache_file"; then
16207     if test "x$cache_file" != "x/dev/null"; then
16208       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16209 $as_echo "$as_me: updating cache $cache_file" >&6;}
16210       if test ! -f "$cache_file" || test -h "$cache_file"; then
16211         cat confcache >"$cache_file"
16212       else
16213         case $cache_file in #(
16214         */* | ?:*)
16215           mv -f confcache "$cache_file"$$ &&
16216           mv -f "$cache_file"$$ "$cache_file" ;; #(
16217         *)
16218           mv -f confcache "$cache_file" ;;
16219         esac
16220       fi
16221     fi
16222   else
16223     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16225   fi
16226 fi
16227 rm -f confcache
16228
16229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16230 # Let make expand exec_prefix.
16231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16232
16233 DEFS=-DHAVE_CONFIG_H
16234
16235 ac_libobjs=
16236 ac_ltlibobjs=
16237 U=
16238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16239   # 1. Remove the extension, and $U if already installed.
16240   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16241   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16242   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16243   #    will be set to the directory where LIBOBJS objects are built.
16244   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16245   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16246 done
16247 LIBOBJS=$ac_libobjs
16248
16249 LTLIBOBJS=$ac_ltlibobjs
16250
16251
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16253 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16254    if test -n "$am_sleep_pid"; then
16255      # Hide warnings about reused PIDs.
16256      wait $am_sleep_pid 2>/dev/null
16257    fi
16258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16259 $as_echo "done" >&6; }
16260  if test -n "$EXEEXT"; then
16261   am__EXEEXT_TRUE=
16262   am__EXEEXT_FALSE='#'
16263 else
16264   am__EXEEXT_TRUE='#'
16265   am__EXEEXT_FALSE=
16266 fi
16267
16268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16269   as_fn_error $? "conditional \"AMDEP\" was never defined.
16270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271 fi
16272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16273   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 fi
16276 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
16277   as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 fi
16280 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
16281   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 fi
16284 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
16285   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
16286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16287 fi
16288 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
16289   as_fn_error $? "conditional \"OPENSSL\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 fi
16292 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
16293   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16295 fi
16296 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
16297   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16299 fi
16300 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
16301   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16303 fi
16304 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
16305   as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 fi
16308 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
16309   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi
16312 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
16313   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 fi
16316 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
16317   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
16318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16319 fi
16320 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
16321   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
16322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16323 fi
16324 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
16325   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
16326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16327 fi
16328 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
16329   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
16330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16331 fi
16332 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
16333   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
16334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16335 fi
16336 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
16337   as_fn_error $? "conditional \"PTHREADS\" was never defined.
16338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16339 fi
16340 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
16341   as_fn_error $? "conditional \"OPENSSL\" was never defined.
16342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16343 fi
16344 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
16345   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
16346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16347 fi
16348
16349 : "${CONFIG_STATUS=./config.status}"
16350 ac_write_fail=0
16351 ac_clean_files_save=$ac_clean_files
16352 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16354 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16355 as_write_fail=0
16356 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16357 #! $SHELL
16358 # Generated by $as_me.
16359 # Run this file to recreate the current configuration.
16360 # Compiler output produced by configure, useful for debugging
16361 # configure, is in config.log if it exists.
16362
16363 debug=false
16364 ac_cs_recheck=false
16365 ac_cs_silent=false
16366
16367 SHELL=\${CONFIG_SHELL-$SHELL}
16368 export SHELL
16369 _ASEOF
16370 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16371 ## -------------------- ##
16372 ## M4sh Initialization. ##
16373 ## -------------------- ##
16374
16375 # Be more Bourne compatible
16376 DUALCASE=1; export DUALCASE # for MKS sh
16377 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16378   emulate sh
16379   NULLCMD=:
16380   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16381   # is contrary to our usage.  Disable this feature.
16382   alias -g '${1+"$@"}'='"$@"'
16383   setopt NO_GLOB_SUBST
16384 else
16385   case `(set -o) 2>/dev/null` in #(
16386   *posix*) :
16387     set -o posix ;; #(
16388   *) :
16389      ;;
16390 esac
16391 fi
16392
16393
16394 as_nl='
16395 '
16396 export as_nl
16397 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16398 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16399 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16401 # Prefer a ksh shell builtin over an external printf program on Solaris,
16402 # but without wasting forks for bash or zsh.
16403 if test -z "$BASH_VERSION$ZSH_VERSION" \
16404     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16405   as_echo='print -r --'
16406   as_echo_n='print -rn --'
16407 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16408   as_echo='printf %s\n'
16409   as_echo_n='printf %s'
16410 else
16411   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16412     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16413     as_echo_n='/usr/ucb/echo -n'
16414   else
16415     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16416     as_echo_n_body='eval
16417       arg=$1;
16418       case $arg in #(
16419       *"$as_nl"*)
16420         expr "X$arg" : "X\\(.*\\)$as_nl";
16421         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16422       esac;
16423       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16424     '
16425     export as_echo_n_body
16426     as_echo_n='sh -c $as_echo_n_body as_echo'
16427   fi
16428   export as_echo_body
16429   as_echo='sh -c $as_echo_body as_echo'
16430 fi
16431
16432 # The user is always right.
16433 if test "${PATH_SEPARATOR+set}" != set; then
16434   PATH_SEPARATOR=:
16435   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16436     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16437       PATH_SEPARATOR=';'
16438   }
16439 fi
16440
16441
16442 # IFS
16443 # We need space, tab and new line, in precisely that order.  Quoting is
16444 # there to prevent editors from complaining about space-tab.
16445 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16446 # splitting by setting IFS to empty value.)
16447 IFS=" ""        $as_nl"
16448
16449 # Find who we are.  Look in the path if we contain no directory separator.
16450 as_myself=
16451 case $0 in #((
16452   *[\\/]* ) as_myself=$0 ;;
16453   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454 for as_dir in $PATH
16455 do
16456   IFS=$as_save_IFS
16457   test -z "$as_dir" && as_dir=.
16458     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16459   done
16460 IFS=$as_save_IFS
16461
16462      ;;
16463 esac
16464 # We did not find ourselves, most probably we were run as `sh COMMAND'
16465 # in which case we are not to be found in the path.
16466 if test "x$as_myself" = x; then
16467   as_myself=$0
16468 fi
16469 if test ! -f "$as_myself"; then
16470   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16471   exit 1
16472 fi
16473
16474 # Unset variables that we do not need and which cause bugs (e.g. in
16475 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16476 # suppresses any "Segmentation fault" message there.  '((' could
16477 # trigger a bug in pdksh 5.2.14.
16478 for as_var in BASH_ENV ENV MAIL MAILPATH
16479 do eval test x\${$as_var+set} = xset \
16480   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16481 done
16482 PS1='$ '
16483 PS2='> '
16484 PS4='+ '
16485
16486 # NLS nuisances.
16487 LC_ALL=C
16488 export LC_ALL
16489 LANGUAGE=C
16490 export LANGUAGE
16491
16492 # CDPATH.
16493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16494
16495
16496 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16497 # ----------------------------------------
16498 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16499 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16500 # script with STATUS, using 1 if that was 0.
16501 as_fn_error ()
16502 {
16503   as_status=$1; test $as_status -eq 0 && as_status=1
16504   if test "$4"; then
16505     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16506     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16507   fi
16508   $as_echo "$as_me: error: $2" >&2
16509   as_fn_exit $as_status
16510 } # as_fn_error
16511
16512
16513 # as_fn_set_status STATUS
16514 # -----------------------
16515 # Set $? to STATUS, without forking.
16516 as_fn_set_status ()
16517 {
16518   return $1
16519 } # as_fn_set_status
16520
16521 # as_fn_exit STATUS
16522 # -----------------
16523 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16524 as_fn_exit ()
16525 {
16526   set +e
16527   as_fn_set_status $1
16528   exit $1
16529 } # as_fn_exit
16530
16531 # as_fn_unset VAR
16532 # ---------------
16533 # Portably unset VAR.
16534 as_fn_unset ()
16535 {
16536   { eval $1=; unset $1;}
16537 }
16538 as_unset=as_fn_unset
16539 # as_fn_append VAR VALUE
16540 # ----------------------
16541 # Append the text in VALUE to the end of the definition contained in VAR. Take
16542 # advantage of any shell optimizations that allow amortized linear growth over
16543 # repeated appends, instead of the typical quadratic growth present in naive
16544 # implementations.
16545 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16546   eval 'as_fn_append ()
16547   {
16548     eval $1+=\$2
16549   }'
16550 else
16551   as_fn_append ()
16552   {
16553     eval $1=\$$1\$2
16554   }
16555 fi # as_fn_append
16556
16557 # as_fn_arith ARG...
16558 # ------------------
16559 # Perform arithmetic evaluation on the ARGs, and store the result in the
16560 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16561 # must be portable across $(()) and expr.
16562 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16563   eval 'as_fn_arith ()
16564   {
16565     as_val=$(( $* ))
16566   }'
16567 else
16568   as_fn_arith ()
16569   {
16570     as_val=`expr "$@" || test $? -eq 1`
16571   }
16572 fi # as_fn_arith
16573
16574
16575 if expr a : '\(a\)' >/dev/null 2>&1 &&
16576    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16577   as_expr=expr
16578 else
16579   as_expr=false
16580 fi
16581
16582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16583   as_basename=basename
16584 else
16585   as_basename=false
16586 fi
16587
16588 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16589   as_dirname=dirname
16590 else
16591   as_dirname=false
16592 fi
16593
16594 as_me=`$as_basename -- "$0" ||
16595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16596          X"$0" : 'X\(//\)$' \| \
16597          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16598 $as_echo X/"$0" |
16599     sed '/^.*\/\([^/][^/]*\)\/*$/{
16600             s//\1/
16601             q
16602           }
16603           /^X\/\(\/\/\)$/{
16604             s//\1/
16605             q
16606           }
16607           /^X\/\(\/\).*/{
16608             s//\1/
16609             q
16610           }
16611           s/.*/./; q'`
16612
16613 # Avoid depending upon Character Ranges.
16614 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16617 as_cr_digits='0123456789'
16618 as_cr_alnum=$as_cr_Letters$as_cr_digits
16619
16620 ECHO_C= ECHO_N= ECHO_T=
16621 case `echo -n x` in #(((((
16622 -n*)
16623   case `echo 'xy\c'` in
16624   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16625   xy)  ECHO_C='\c';;
16626   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16627        ECHO_T=' ';;
16628   esac;;
16629 *)
16630   ECHO_N='-n';;
16631 esac
16632
16633 rm -f conf$$ conf$$.exe conf$$.file
16634 if test -d conf$$.dir; then
16635   rm -f conf$$.dir/conf$$.file
16636 else
16637   rm -f conf$$.dir
16638   mkdir conf$$.dir 2>/dev/null
16639 fi
16640 if (echo >conf$$.file) 2>/dev/null; then
16641   if ln -s conf$$.file conf$$ 2>/dev/null; then
16642     as_ln_s='ln -s'
16643     # ... but there are two gotchas:
16644     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16645     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16646     # In both cases, we have to default to `cp -pR'.
16647     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16648       as_ln_s='cp -pR'
16649   elif ln conf$$.file conf$$ 2>/dev/null; then
16650     as_ln_s=ln
16651   else
16652     as_ln_s='cp -pR'
16653   fi
16654 else
16655   as_ln_s='cp -pR'
16656 fi
16657 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16658 rmdir conf$$.dir 2>/dev/null
16659
16660
16661 # as_fn_mkdir_p
16662 # -------------
16663 # Create "$as_dir" as a directory, including parents if necessary.
16664 as_fn_mkdir_p ()
16665 {
16666
16667   case $as_dir in #(
16668   -*) as_dir=./$as_dir;;
16669   esac
16670   test -d "$as_dir" || eval $as_mkdir_p || {
16671     as_dirs=
16672     while :; do
16673       case $as_dir in #(
16674       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16675       *) as_qdir=$as_dir;;
16676       esac
16677       as_dirs="'$as_qdir' $as_dirs"
16678       as_dir=`$as_dirname -- "$as_dir" ||
16679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680          X"$as_dir" : 'X\(//\)[^/]' \| \
16681          X"$as_dir" : 'X\(//\)$' \| \
16682          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16683 $as_echo X"$as_dir" |
16684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16685             s//\1/
16686             q
16687           }
16688           /^X\(\/\/\)[^/].*/{
16689             s//\1/
16690             q
16691           }
16692           /^X\(\/\/\)$/{
16693             s//\1/
16694             q
16695           }
16696           /^X\(\/\).*/{
16697             s//\1/
16698             q
16699           }
16700           s/.*/./; q'`
16701       test -d "$as_dir" && break
16702     done
16703     test -z "$as_dirs" || eval "mkdir $as_dirs"
16704   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16705
16706
16707 } # as_fn_mkdir_p
16708 if mkdir -p . 2>/dev/null; then
16709   as_mkdir_p='mkdir -p "$as_dir"'
16710 else
16711   test -d ./-p && rmdir ./-p
16712   as_mkdir_p=false
16713 fi
16714
16715
16716 # as_fn_executable_p FILE
16717 # -----------------------
16718 # Test if FILE is an executable regular file.
16719 as_fn_executable_p ()
16720 {
16721   test -f "$1" && test -x "$1"
16722 } # as_fn_executable_p
16723 as_test_x='test -x'
16724 as_executable_p=as_fn_executable_p
16725
16726 # Sed expression to map a string onto a valid CPP name.
16727 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16728
16729 # Sed expression to map a string onto a valid variable name.
16730 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16731
16732
16733 exec 6>&1
16734 ## ----------------------------------- ##
16735 ## Main body of $CONFIG_STATUS script. ##
16736 ## ----------------------------------- ##
16737 _ASEOF
16738 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16739
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 # Save the log message, to keep $0 and so on meaningful, and to
16742 # report actual input values of CONFIG_FILES etc. instead of their
16743 # values after options handling.
16744 ac_log="
16745 This file was extended by libevent $as_me 2.1.5-beta, which was
16746 generated by GNU Autoconf 2.69.  Invocation command line was
16747
16748   CONFIG_FILES    = $CONFIG_FILES
16749   CONFIG_HEADERS  = $CONFIG_HEADERS
16750   CONFIG_LINKS    = $CONFIG_LINKS
16751   CONFIG_COMMANDS = $CONFIG_COMMANDS
16752   $ $0 $@
16753
16754 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16755 "
16756
16757 _ACEOF
16758
16759 case $ac_config_files in *"
16760 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16761 esac
16762
16763 case $ac_config_headers in *"
16764 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16765 esac
16766
16767
16768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16769 # Files that config.status was made for.
16770 config_files="$ac_config_files"
16771 config_headers="$ac_config_headers"
16772 config_commands="$ac_config_commands"
16773
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 ac_cs_usage="\
16778 \`$as_me' instantiates files and other configuration actions
16779 from templates according to the current configuration.  Unless the files
16780 and actions are specified as TAGs, all are instantiated by default.
16781
16782 Usage: $0 [OPTION]... [TAG]...
16783
16784   -h, --help       print this help, then exit
16785   -V, --version    print version number and configuration settings, then exit
16786       --config     print configuration, then exit
16787   -q, --quiet, --silent
16788                    do not print progress messages
16789   -d, --debug      don't remove temporary files
16790       --recheck    update $as_me by reconfiguring in the same conditions
16791       --file=FILE[:TEMPLATE]
16792                    instantiate the configuration file FILE
16793       --header=FILE[:TEMPLATE]
16794                    instantiate the configuration header FILE
16795
16796 Configuration files:
16797 $config_files
16798
16799 Configuration headers:
16800 $config_headers
16801
16802 Configuration commands:
16803 $config_commands
16804
16805 Report bugs to the package provider."
16806
16807 _ACEOF
16808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16809 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16810 ac_cs_version="\\
16811 libevent config.status 2.1.5-beta
16812 configured by $0, generated by GNU Autoconf 2.69,
16813   with options \\"\$ac_cs_config\\"
16814
16815 Copyright (C) 2012 Free Software Foundation, Inc.
16816 This config.status script is free software; the Free Software Foundation
16817 gives unlimited permission to copy, distribute and modify it."
16818
16819 ac_pwd='$ac_pwd'
16820 srcdir='$srcdir'
16821 INSTALL='$INSTALL'
16822 MKDIR_P='$MKDIR_P'
16823 AWK='$AWK'
16824 test -n "\$AWK" || AWK=awk
16825 _ACEOF
16826
16827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16828 # The default lists apply if the user does not specify any file.
16829 ac_need_defaults=:
16830 while test $# != 0
16831 do
16832   case $1 in
16833   --*=?*)
16834     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16835     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16836     ac_shift=:
16837     ;;
16838   --*=)
16839     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16840     ac_optarg=
16841     ac_shift=:
16842     ;;
16843   *)
16844     ac_option=$1
16845     ac_optarg=$2
16846     ac_shift=shift
16847     ;;
16848   esac
16849
16850   case $ac_option in
16851   # Handling of the options.
16852   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16853     ac_cs_recheck=: ;;
16854   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16855     $as_echo "$ac_cs_version"; exit ;;
16856   --config | --confi | --conf | --con | --co | --c )
16857     $as_echo "$ac_cs_config"; exit ;;
16858   --debug | --debu | --deb | --de | --d | -d )
16859     debug=: ;;
16860   --file | --fil | --fi | --f )
16861     $ac_shift
16862     case $ac_optarg in
16863     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16864     '') as_fn_error $? "missing file argument" ;;
16865     esac
16866     as_fn_append CONFIG_FILES " '$ac_optarg'"
16867     ac_need_defaults=false;;
16868   --header | --heade | --head | --hea )
16869     $ac_shift
16870     case $ac_optarg in
16871     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16872     esac
16873     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16874     ac_need_defaults=false;;
16875   --he | --h)
16876     # Conflict between --help and --header
16877     as_fn_error $? "ambiguous option: \`$1'
16878 Try \`$0 --help' for more information.";;
16879   --help | --hel | -h )
16880     $as_echo "$ac_cs_usage"; exit ;;
16881   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16882   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16883     ac_cs_silent=: ;;
16884
16885   # This is an error.
16886   -*) as_fn_error $? "unrecognized option: \`$1'
16887 Try \`$0 --help' for more information." ;;
16888
16889   *) as_fn_append ac_config_targets " $1"
16890      ac_need_defaults=false ;;
16891
16892   esac
16893   shift
16894 done
16895
16896 ac_configure_extra_args=
16897
16898 if $ac_cs_silent; then
16899   exec 6>/dev/null
16900   ac_configure_extra_args="$ac_configure_extra_args --silent"
16901 fi
16902
16903 _ACEOF
16904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16905 if \$ac_cs_recheck; then
16906   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16907   shift
16908   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16909   CONFIG_SHELL='$SHELL'
16910   export CONFIG_SHELL
16911   exec "\$@"
16912 fi
16913
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16916 exec 5>>config.log
16917 {
16918   echo
16919   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16920 ## Running $as_me. ##
16921 _ASBOX
16922   $as_echo "$ac_log"
16923 } >&5
16924
16925 _ACEOF
16926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16927 #
16928 # INIT-COMMANDS
16929 #
16930 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16931
16932
16933 # The HP-UX ksh and POSIX shell print the target directory to stdout
16934 # if CDPATH is set.
16935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16936
16937 sed_quote_subst='$sed_quote_subst'
16938 double_quote_subst='$double_quote_subst'
16939 delay_variable_subst='$delay_variable_subst'
16940 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16941 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16942 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16943 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16944 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16945 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16946 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16947 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16948 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16949 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16974 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16975 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16976 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16977 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16978 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16980 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16983 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16984 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16985 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16986 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16987 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16988 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16989 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16990 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16991 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16992 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16993 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16994 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16996 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16997 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16998 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"`'
16999 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17000 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17001 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17002 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17003 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17004 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17005 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17006 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17007 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17008 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17009 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17010 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17011 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17012 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17013 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17014 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17015 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17016 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17017 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17018 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17019 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17020 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17021 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17022 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17023 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17024 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17025 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17026 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17027 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17028 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17029 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17030 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17031 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17032 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17033 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17034 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17035 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17036 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17037 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17038 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17039 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17040 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17041 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17042 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17043 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17044 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17045 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17046 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17047 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17048 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17049 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17050 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17051 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17052 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17053 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17054 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17055 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17056 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17057 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17058 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17059 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17060 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17061 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17062 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17063 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17064 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17065 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17066 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17067 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17068 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17069 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17070 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17071 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17072 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17073 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17074 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17075
17076 LTCC='$LTCC'
17077 LTCFLAGS='$LTCFLAGS'
17078 compiler='$compiler_DEFAULT'
17079
17080 # A function that is used when there is no print builtin or printf.
17081 func_fallback_echo ()
17082 {
17083   eval 'cat <<_LTECHO_EOF
17084 \$1
17085 _LTECHO_EOF'
17086 }
17087
17088 # Quote evaled strings.
17089 for var in SHELL \
17090 ECHO \
17091 PATH_SEPARATOR \
17092 SED \
17093 GREP \
17094 EGREP \
17095 FGREP \
17096 LD \
17097 NM \
17098 LN_S \
17099 lt_SP2NL \
17100 lt_NL2SP \
17101 reload_flag \
17102 OBJDUMP \
17103 deplibs_check_method \
17104 file_magic_cmd \
17105 file_magic_glob \
17106 want_nocaseglob \
17107 DLLTOOL \
17108 sharedlib_from_linklib_cmd \
17109 AR \
17110 AR_FLAGS \
17111 archiver_list_spec \
17112 STRIP \
17113 RANLIB \
17114 CC \
17115 CFLAGS \
17116 compiler \
17117 lt_cv_sys_global_symbol_pipe \
17118 lt_cv_sys_global_symbol_to_cdecl \
17119 lt_cv_sys_global_symbol_to_import \
17120 lt_cv_sys_global_symbol_to_c_name_address \
17121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17122 lt_cv_nm_interface \
17123 nm_file_list_spec \
17124 lt_cv_truncate_bin \
17125 lt_prog_compiler_no_builtin_flag \
17126 lt_prog_compiler_pic \
17127 lt_prog_compiler_wl \
17128 lt_prog_compiler_static \
17129 lt_cv_prog_compiler_c_o \
17130 need_locks \
17131 MANIFEST_TOOL \
17132 DSYMUTIL \
17133 NMEDIT \
17134 LIPO \
17135 OTOOL \
17136 OTOOL64 \
17137 shrext_cmds \
17138 export_dynamic_flag_spec \
17139 whole_archive_flag_spec \
17140 compiler_needs_object \
17141 with_gnu_ld \
17142 allow_undefined_flag \
17143 no_undefined_flag \
17144 hardcode_libdir_flag_spec \
17145 hardcode_libdir_separator \
17146 exclude_expsyms \
17147 include_expsyms \
17148 file_list_spec \
17149 variables_saved_for_relink \
17150 libname_spec \
17151 library_names_spec \
17152 soname_spec \
17153 install_override_mode \
17154 finish_eval \
17155 old_striplib \
17156 striplib; do
17157     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17158     *[\\\\\\\`\\"\\\$]*)
17159       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17160       ;;
17161     *)
17162       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17163       ;;
17164     esac
17165 done
17166
17167 # Double-quote double-evaled strings.
17168 for var in reload_cmds \
17169 old_postinstall_cmds \
17170 old_postuninstall_cmds \
17171 old_archive_cmds \
17172 extract_expsyms_cmds \
17173 old_archive_from_new_cmds \
17174 old_archive_from_expsyms_cmds \
17175 archive_cmds \
17176 archive_expsym_cmds \
17177 module_cmds \
17178 module_expsym_cmds \
17179 export_symbols_cmds \
17180 prelink_cmds \
17181 postlink_cmds \
17182 postinstall_cmds \
17183 postuninstall_cmds \
17184 finish_cmds \
17185 sys_lib_search_path_spec \
17186 configure_time_dlsearch_path \
17187 configure_time_lt_sys_library_path; do
17188     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17189     *[\\\\\\\`\\"\\\$]*)
17190       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17191       ;;
17192     *)
17193       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17194       ;;
17195     esac
17196 done
17197
17198 ac_aux_dir='$ac_aux_dir'
17199
17200 # See if we are running on zsh, and set the options that allow our
17201 # commands through without removal of \ escapes INIT.
17202 if test -n "\${ZSH_VERSION+set}"; then
17203    setopt NO_GLOB_SUBST
17204 fi
17205
17206
17207     PACKAGE='$PACKAGE'
17208     VERSION='$VERSION'
17209     RM='$RM'
17210     ofile='$ofile'
17211
17212
17213
17214
17215 _ACEOF
17216
17217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218
17219 # Handling of arguments.
17220 for ac_config_target in $ac_config_targets
17221 do
17222   case $ac_config_target in
17223     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17224     "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
17225     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17226     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17227     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
17228     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
17229     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
17230     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17231
17232   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17233   esac
17234 done
17235
17236
17237 # If the user did not use the arguments to specify the items to instantiate,
17238 # then the envvar interface is used.  Set only those that are not.
17239 # We use the long form for the default assignment because of an extremely
17240 # bizarre bug on SunOS 4.1.3.
17241 if $ac_need_defaults; then
17242   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17243   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17244   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17245 fi
17246
17247 # Have a temporary directory for convenience.  Make it in the build tree
17248 # simply because there is no reason against having it here, and in addition,
17249 # creating and moving files from /tmp can sometimes cause problems.
17250 # Hook for its removal unless debugging.
17251 # Note that there is a small window in which the directory will not be cleaned:
17252 # after its creation but before its name has been assigned to `$tmp'.
17253 $debug ||
17254 {
17255   tmp= ac_tmp=
17256   trap 'exit_status=$?
17257   : "${ac_tmp:=$tmp}"
17258   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17259 ' 0
17260   trap 'as_fn_exit 1' 1 2 13 15
17261 }
17262 # Create a (secure) tmp directory for tmp files.
17263
17264 {
17265   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17266   test -d "$tmp"
17267 }  ||
17268 {
17269   tmp=./conf$$-$RANDOM
17270   (umask 077 && mkdir "$tmp")
17271 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17272 ac_tmp=$tmp
17273
17274 # Set up the scripts for CONFIG_FILES section.
17275 # No need to generate them if there are no CONFIG_FILES.
17276 # This happens for instance with `./config.status config.h'.
17277 if test -n "$CONFIG_FILES"; then
17278
17279
17280 ac_cr=`echo X | tr X '\015'`
17281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17282 # But we know of no other shell where ac_cr would be empty at this
17283 # point, so we can use a bashism as a fallback.
17284 if test "x$ac_cr" = x; then
17285   eval ac_cr=\$\'\\r\'
17286 fi
17287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17289   ac_cs_awk_cr='\\r'
17290 else
17291   ac_cs_awk_cr=$ac_cr
17292 fi
17293
17294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17295 _ACEOF
17296
17297
17298 {
17299   echo "cat >conf$$subs.awk <<_ACEOF" &&
17300   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17301   echo "_ACEOF"
17302 } >conf$$subs.sh ||
17303   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17305 ac_delim='%!_!# '
17306 for ac_last_try in false false false false false :; do
17307   . ./conf$$subs.sh ||
17308     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17309
17310   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17311   if test $ac_delim_n = $ac_delim_num; then
17312     break
17313   elif $ac_last_try; then
17314     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17315   else
17316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17317   fi
17318 done
17319 rm -f conf$$subs.sh
17320
17321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17322 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17323 _ACEOF
17324 sed -n '
17325 h
17326 s/^/S["/; s/!.*/"]=/
17327 p
17328 g
17329 s/^[^!]*!//
17330 :repl
17331 t repl
17332 s/'"$ac_delim"'$//
17333 t delim
17334 :nl
17335 h
17336 s/\(.\{148\}\)..*/\1/
17337 t more1
17338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17339 p
17340 n
17341 b repl
17342 :more1
17343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17344 p
17345 g
17346 s/.\{148\}//
17347 t nl
17348 :delim
17349 h
17350 s/\(.\{148\}\)..*/\1/
17351 t more2
17352 s/["\\]/\\&/g; s/^/"/; s/$/"/
17353 p
17354 b
17355 :more2
17356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17357 p
17358 g
17359 s/.\{148\}//
17360 t delim
17361 ' <conf$$subs.awk | sed '
17362 /^[^""]/{
17363   N
17364   s/\n//
17365 }
17366 ' >>$CONFIG_STATUS || ac_write_fail=1
17367 rm -f conf$$subs.awk
17368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 _ACAWK
17370 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17371   for (key in S) S_is_set[key] = 1
17372   FS = "\a"
17373
17374 }
17375 {
17376   line = $ 0
17377   nfields = split(line, field, "@")
17378   substed = 0
17379   len = length(field[1])
17380   for (i = 2; i < nfields; i++) {
17381     key = field[i]
17382     keylen = length(key)
17383     if (S_is_set[key]) {
17384       value = S[key]
17385       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17386       len += length(value) + length(field[++i])
17387       substed = 1
17388     } else
17389       len += 1 + keylen
17390   }
17391
17392   print line
17393 }
17394
17395 _ACAWK
17396 _ACEOF
17397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17398 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17399   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17400 else
17401   cat
17402 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17403   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17404 _ACEOF
17405
17406 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17407 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17408 # trailing colons and then remove the whole line if VPATH becomes empty
17409 # (actually we leave an empty line to preserve line numbers).
17410 if test "x$srcdir" = x.; then
17411   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17412 h
17413 s///
17414 s/^/:/
17415 s/[      ]*$/:/
17416 s/:\$(srcdir):/:/g
17417 s/:\${srcdir}:/:/g
17418 s/:@srcdir@:/:/g
17419 s/^:*//
17420 s/:*$//
17421 x
17422 s/\(=[   ]*\).*/\1/
17423 G
17424 s/\n//
17425 s/^[^=]*=[       ]*$//
17426 }'
17427 fi
17428
17429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17430 fi # test -n "$CONFIG_FILES"
17431
17432 # Set up the scripts for CONFIG_HEADERS section.
17433 # No need to generate them if there are no CONFIG_HEADERS.
17434 # This happens for instance with `./config.status Makefile'.
17435 if test -n "$CONFIG_HEADERS"; then
17436 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17437 BEGIN {
17438 _ACEOF
17439
17440 # Transform confdefs.h into an awk script `defines.awk', embedded as
17441 # here-document in config.status, that substitutes the proper values into
17442 # config.h.in to produce config.h.
17443
17444 # Create a delimiter string that does not exist in confdefs.h, to ease
17445 # handling of long lines.
17446 ac_delim='%!_!# '
17447 for ac_last_try in false false :; do
17448   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17449   if test -z "$ac_tt"; then
17450     break
17451   elif $ac_last_try; then
17452     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17453   else
17454     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17455   fi
17456 done
17457
17458 # For the awk script, D is an array of macro values keyed by name,
17459 # likewise P contains macro parameters if any.  Preserve backslash
17460 # newline sequences.
17461
17462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17463 sed -n '
17464 s/.\{148\}/&'"$ac_delim"'/g
17465 t rset
17466 :rset
17467 s/^[     ]*#[    ]*define[       ][      ]*/ /
17468 t def
17469 d
17470 :def
17471 s/\\$//
17472 t bsnl
17473 s/["\\]/\\&/g
17474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17475 D["\1"]=" \3"/p
17476 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17477 d
17478 :bsnl
17479 s/["\\]/\\&/g
17480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17481 D["\1"]=" \3\\\\\\n"\\/p
17482 t cont
17483 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17484 t cont
17485 d
17486 :cont
17487 n
17488 s/.\{148\}/&'"$ac_delim"'/g
17489 t clear
17490 :clear
17491 s/\\$//
17492 t bsnlc
17493 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17494 d
17495 :bsnlc
17496 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17497 b cont
17498 ' <confdefs.h | sed '
17499 s/'"$ac_delim"'/"\\\
17500 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17501
17502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503   for (key in D) D_is_set[key] = 1
17504   FS = "\a"
17505 }
17506 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17507   line = \$ 0
17508   split(line, arg, " ")
17509   if (arg[1] == "#") {
17510     defundef = arg[2]
17511     mac1 = arg[3]
17512   } else {
17513     defundef = substr(arg[1], 2)
17514     mac1 = arg[2]
17515   }
17516   split(mac1, mac2, "(") #)
17517   macro = mac2[1]
17518   prefix = substr(line, 1, index(line, defundef) - 1)
17519   if (D_is_set[macro]) {
17520     # Preserve the white space surrounding the "#".
17521     print prefix "define", macro P[macro] D[macro]
17522     next
17523   } else {
17524     # Replace #undef with comments.  This is necessary, for example,
17525     # in the case of _POSIX_SOURCE, which is predefined and required
17526     # on some systems where configure will not decide to define it.
17527     if (defundef == "undef") {
17528       print "/*", prefix defundef, macro, "*/"
17529       next
17530     }
17531   }
17532 }
17533 { print }
17534 _ACAWK
17535 _ACEOF
17536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17537   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17538 fi # test -n "$CONFIG_HEADERS"
17539
17540
17541 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17542 shift
17543 for ac_tag
17544 do
17545   case $ac_tag in
17546   :[FHLC]) ac_mode=$ac_tag; continue;;
17547   esac
17548   case $ac_mode$ac_tag in
17549   :[FHL]*:*);;
17550   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17551   :[FH]-) ac_tag=-:-;;
17552   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17553   esac
17554   ac_save_IFS=$IFS
17555   IFS=:
17556   set x $ac_tag
17557   IFS=$ac_save_IFS
17558   shift
17559   ac_file=$1
17560   shift
17561
17562   case $ac_mode in
17563   :L) ac_source=$1;;
17564   :[FH])
17565     ac_file_inputs=
17566     for ac_f
17567     do
17568       case $ac_f in
17569       -) ac_f="$ac_tmp/stdin";;
17570       *) # Look for the file first in the build tree, then in the source tree
17571          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17572          # because $ac_f cannot contain `:'.
17573          test -f "$ac_f" ||
17574            case $ac_f in
17575            [\\/$]*) false;;
17576            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17577            esac ||
17578            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17579       esac
17580       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17581       as_fn_append ac_file_inputs " '$ac_f'"
17582     done
17583
17584     # Let's still pretend it is `configure' which instantiates (i.e., don't
17585     # use $as_me), people would be surprised to read:
17586     #    /* config.h.  Generated by config.status.  */
17587     configure_input='Generated from '`
17588           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17589         `' by configure.'
17590     if test x"$ac_file" != x-; then
17591       configure_input="$ac_file.  $configure_input"
17592       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17593 $as_echo "$as_me: creating $ac_file" >&6;}
17594     fi
17595     # Neutralize special characters interpreted by sed in replacement strings.
17596     case $configure_input in #(
17597     *\&* | *\|* | *\\* )
17598        ac_sed_conf_input=`$as_echo "$configure_input" |
17599        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17600     *) ac_sed_conf_input=$configure_input;;
17601     esac
17602
17603     case $ac_tag in
17604     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17605       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17606     esac
17607     ;;
17608   esac
17609
17610   ac_dir=`$as_dirname -- "$ac_file" ||
17611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17612          X"$ac_file" : 'X\(//\)[^/]' \| \
17613          X"$ac_file" : 'X\(//\)$' \| \
17614          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17615 $as_echo X"$ac_file" |
17616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17617             s//\1/
17618             q
17619           }
17620           /^X\(\/\/\)[^/].*/{
17621             s//\1/
17622             q
17623           }
17624           /^X\(\/\/\)$/{
17625             s//\1/
17626             q
17627           }
17628           /^X\(\/\).*/{
17629             s//\1/
17630             q
17631           }
17632           s/.*/./; q'`
17633   as_dir="$ac_dir"; as_fn_mkdir_p
17634   ac_builddir=.
17635
17636 case "$ac_dir" in
17637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17638 *)
17639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17640   # A ".." for each directory in $ac_dir_suffix.
17641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17642   case $ac_top_builddir_sub in
17643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17645   esac ;;
17646 esac
17647 ac_abs_top_builddir=$ac_pwd
17648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17649 # for backward compatibility:
17650 ac_top_builddir=$ac_top_build_prefix
17651
17652 case $srcdir in
17653   .)  # We are building in place.
17654     ac_srcdir=.
17655     ac_top_srcdir=$ac_top_builddir_sub
17656     ac_abs_top_srcdir=$ac_pwd ;;
17657   [\\/]* | ?:[\\/]* )  # Absolute name.
17658     ac_srcdir=$srcdir$ac_dir_suffix;
17659     ac_top_srcdir=$srcdir
17660     ac_abs_top_srcdir=$srcdir ;;
17661   *) # Relative name.
17662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17663     ac_top_srcdir=$ac_top_build_prefix$srcdir
17664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17665 esac
17666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17667
17668
17669   case $ac_mode in
17670   :F)
17671   #
17672   # CONFIG_FILE
17673   #
17674
17675   case $INSTALL in
17676   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17677   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17678   esac
17679   ac_MKDIR_P=$MKDIR_P
17680   case $MKDIR_P in
17681   [\\/$]* | ?:[\\/]* ) ;;
17682   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17683   esac
17684 _ACEOF
17685
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 # If the template does not know about datarootdir, expand it.
17688 # FIXME: This hack should be removed a few years after 2.60.
17689 ac_datarootdir_hack=; ac_datarootdir_seen=
17690 ac_sed_dataroot='
17691 /datarootdir/ {
17692   p
17693   q
17694 }
17695 /@datadir@/p
17696 /@docdir@/p
17697 /@infodir@/p
17698 /@localedir@/p
17699 /@mandir@/p'
17700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17701 *datarootdir*) ac_datarootdir_seen=yes;;
17702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17705 _ACEOF
17706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17707   ac_datarootdir_hack='
17708   s&@datadir@&$datadir&g
17709   s&@docdir@&$docdir&g
17710   s&@infodir@&$infodir&g
17711   s&@localedir@&$localedir&g
17712   s&@mandir@&$mandir&g
17713   s&\\\${datarootdir}&$datarootdir&g' ;;
17714 esac
17715 _ACEOF
17716
17717 # Neutralize VPATH when `$srcdir' = `.'.
17718 # Shell code in configure.ac might set extrasub.
17719 # FIXME: do we really want to maintain this feature?
17720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17721 ac_sed_extra="$ac_vpsub
17722 $extrasub
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 :t
17726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17727 s|@configure_input@|$ac_sed_conf_input|;t t
17728 s&@top_builddir@&$ac_top_builddir_sub&;t t
17729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17730 s&@srcdir@&$ac_srcdir&;t t
17731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17732 s&@top_srcdir@&$ac_top_srcdir&;t t
17733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17734 s&@builddir@&$ac_builddir&;t t
17735 s&@abs_builddir@&$ac_abs_builddir&;t t
17736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17737 s&@INSTALL@&$ac_INSTALL&;t t
17738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17739 $ac_datarootdir_hack
17740 "
17741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17742   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17743
17744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17745   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17746   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17747       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17748   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17749 which seems to be undefined.  Please make sure it is defined" >&5
17750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17751 which seems to be undefined.  Please make sure it is defined" >&2;}
17752
17753   rm -f "$ac_tmp/stdin"
17754   case $ac_file in
17755   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17756   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17757   esac \
17758   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17759  ;;
17760   :H)
17761   #
17762   # CONFIG_HEADER
17763   #
17764   if test x"$ac_file" != x-; then
17765     {
17766       $as_echo "/* $configure_input  */" \
17767       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17768     } >"$ac_tmp/config.h" \
17769       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17770     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17771       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17772 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17773     else
17774       rm -f "$ac_file"
17775       mv "$ac_tmp/config.h" "$ac_file" \
17776         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17777     fi
17778   else
17779     $as_echo "/* $configure_input  */" \
17780       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17781       || as_fn_error $? "could not create -" "$LINENO" 5
17782   fi
17783 # Compute "$ac_file"'s index in $config_headers.
17784 _am_arg="$ac_file"
17785 _am_stamp_count=1
17786 for _am_header in $config_headers :; do
17787   case $_am_header in
17788     $_am_arg | $_am_arg:* )
17789       break ;;
17790     * )
17791       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17792   esac
17793 done
17794 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17795 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796          X"$_am_arg" : 'X\(//\)[^/]' \| \
17797          X"$_am_arg" : 'X\(//\)$' \| \
17798          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17799 $as_echo X"$_am_arg" |
17800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17801             s//\1/
17802             q
17803           }
17804           /^X\(\/\/\)[^/].*/{
17805             s//\1/
17806             q
17807           }
17808           /^X\(\/\/\)$/{
17809             s//\1/
17810             q
17811           }
17812           /^X\(\/\).*/{
17813             s//\1/
17814             q
17815           }
17816           s/.*/./; q'`/stamp-h$_am_stamp_count
17817  ;;
17818
17819   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17820 $as_echo "$as_me: executing $ac_file commands" >&6;}
17821  ;;
17822   esac
17823
17824
17825   case $ac_file$ac_mode in
17826     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17827   # Older Autoconf quotes --file arguments for eval, but not when files
17828   # are listed without --file.  Let's play safe and only enable the eval
17829   # if we detect the quoting.
17830   case $CONFIG_FILES in
17831   *\'*) eval set x "$CONFIG_FILES" ;;
17832   *)   set x $CONFIG_FILES ;;
17833   esac
17834   shift
17835   for mf
17836   do
17837     # Strip MF so we end up with the name of the file.
17838     mf=`echo "$mf" | sed -e 's/:.*$//'`
17839     # Check whether this is an Automake generated Makefile or not.
17840     # We used to match only the files named 'Makefile.in', but
17841     # some people rename them; so instead we look at the file content.
17842     # Grep'ing the first line is not enough: some people post-process
17843     # each Makefile.in and add a new line on top of each file to say so.
17844     # Grep'ing the whole file is not good either: AIX grep has a line
17845     # limit of 2048, but all sed's we know have understand at least 4000.
17846     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17847       dirpart=`$as_dirname -- "$mf" ||
17848 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849          X"$mf" : 'X\(//\)[^/]' \| \
17850          X"$mf" : 'X\(//\)$' \| \
17851          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17852 $as_echo X"$mf" |
17853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17854             s//\1/
17855             q
17856           }
17857           /^X\(\/\/\)[^/].*/{
17858             s//\1/
17859             q
17860           }
17861           /^X\(\/\/\)$/{
17862             s//\1/
17863             q
17864           }
17865           /^X\(\/\).*/{
17866             s//\1/
17867             q
17868           }
17869           s/.*/./; q'`
17870     else
17871       continue
17872     fi
17873     # Extract the definition of DEPDIR, am__include, and am__quote
17874     # from the Makefile without running 'make'.
17875     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17876     test -z "$DEPDIR" && continue
17877     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17878     test -z "$am__include" && continue
17879     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17880     # Find all dependency output files, they are included files with
17881     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17882     # simplest approach to changing $(DEPDIR) to its actual value in the
17883     # expansion.
17884     for file in `sed -n "
17885       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17886          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17887       # Make sure the directory exists.
17888       test -f "$dirpart/$file" && continue
17889       fdir=`$as_dirname -- "$file" ||
17890 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891          X"$file" : 'X\(//\)[^/]' \| \
17892          X"$file" : 'X\(//\)$' \| \
17893          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17894 $as_echo X"$file" |
17895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17896             s//\1/
17897             q
17898           }
17899           /^X\(\/\/\)[^/].*/{
17900             s//\1/
17901             q
17902           }
17903           /^X\(\/\/\)$/{
17904             s//\1/
17905             q
17906           }
17907           /^X\(\/\).*/{
17908             s//\1/
17909             q
17910           }
17911           s/.*/./; q'`
17912       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17913       # echo "creating $dirpart/$file"
17914       echo '# dummy' > "$dirpart/$file"
17915     done
17916   done
17917 }
17918  ;;
17919     "libtool":C)
17920
17921     # See if we are running on zsh, and set the options that allow our
17922     # commands through without removal of \ escapes.
17923     if test -n "${ZSH_VERSION+set}"; then
17924       setopt NO_GLOB_SUBST
17925     fi
17926
17927     cfgfile=${ofile}T
17928     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17929     $RM "$cfgfile"
17930
17931     cat <<_LT_EOF >> "$cfgfile"
17932 #! $SHELL
17933 # Generated automatically by $as_me ($PACKAGE) $VERSION
17934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17935 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17936
17937 # Provide generalized library-building support services.
17938 # Written by Gordon Matzigkeit, 1996
17939
17940 # Copyright (C) 2014 Free Software Foundation, Inc.
17941 # This is free software; see the source for copying conditions.  There is NO
17942 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17943
17944 # GNU Libtool is free software; you can redistribute it and/or modify
17945 # it under the terms of the GNU General Public License as published by
17946 # the Free Software Foundation; either version 2 of of the License, or
17947 # (at your option) any later version.
17948 #
17949 # As a special exception to the GNU General Public License, if you
17950 # distribute this file as part of a program or library that is built
17951 # using GNU Libtool, you may include this file under the  same
17952 # distribution terms that you use for the rest of that program.
17953 #
17954 # GNU Libtool is distributed in the hope that it will be useful, but
17955 # WITHOUT ANY WARRANTY; without even the implied warranty of
17956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17957 # GNU General Public License for more details.
17958 #
17959 # You should have received a copy of the GNU General Public License
17960 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17961
17962
17963 # The names of the tagged configurations supported by this script.
17964 available_tags=''
17965
17966 # Configured defaults for sys_lib_dlsearch_path munging.
17967 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17968
17969 # ### BEGIN LIBTOOL CONFIG
17970
17971 # Which release of libtool.m4 was used?
17972 macro_version=$macro_version
17973 macro_revision=$macro_revision
17974
17975 # Whether or not to build shared libraries.
17976 build_libtool_libs=$enable_shared
17977
17978 # Whether or not to build static libraries.
17979 build_old_libs=$enable_static
17980
17981 # What type of objects to build.
17982 pic_mode=$pic_mode
17983
17984 # Whether or not to optimize for fast installation.
17985 fast_install=$enable_fast_install
17986
17987 # Shared archive member basename,for filename based shared library versioning on AIX.
17988 shared_archive_member_spec=$shared_archive_member_spec
17989
17990 # Shell to use when invoking shell scripts.
17991 SHELL=$lt_SHELL
17992
17993 # An echo program that protects backslashes.
17994 ECHO=$lt_ECHO
17995
17996 # The PATH separator for the build system.
17997 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17998
17999 # The host system.
18000 host_alias=$host_alias
18001 host=$host
18002 host_os=$host_os
18003
18004 # The build system.
18005 build_alias=$build_alias
18006 build=$build
18007 build_os=$build_os
18008
18009 # A sed program that does not truncate output.
18010 SED=$lt_SED
18011
18012 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18013 Xsed="\$SED -e 1s/^X//"
18014
18015 # A grep program that handles long lines.
18016 GREP=$lt_GREP
18017
18018 # An ERE matcher.
18019 EGREP=$lt_EGREP
18020
18021 # A literal string matcher.
18022 FGREP=$lt_FGREP
18023
18024 # A BSD- or MS-compatible name lister.
18025 NM=$lt_NM
18026
18027 # Whether we need soft or hard links.
18028 LN_S=$lt_LN_S
18029
18030 # What is the maximum length of a command?
18031 max_cmd_len=$max_cmd_len
18032
18033 # Object file suffix (normally "o").
18034 objext=$ac_objext
18035
18036 # Executable file suffix (normally "").
18037 exeext=$exeext
18038
18039 # whether the shell understands "unset".
18040 lt_unset=$lt_unset
18041
18042 # turn spaces into newlines.
18043 SP2NL=$lt_lt_SP2NL
18044
18045 # turn newlines into spaces.
18046 NL2SP=$lt_lt_NL2SP
18047
18048 # convert \$build file names to \$host format.
18049 to_host_file_cmd=$lt_cv_to_host_file_cmd
18050
18051 # convert \$build files to toolchain format.
18052 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18053
18054 # An object symbol dumper.
18055 OBJDUMP=$lt_OBJDUMP
18056
18057 # Method to check whether dependent libraries are shared objects.
18058 deplibs_check_method=$lt_deplibs_check_method
18059
18060 # Command to use when deplibs_check_method = "file_magic".
18061 file_magic_cmd=$lt_file_magic_cmd
18062
18063 # How to find potential files when deplibs_check_method = "file_magic".
18064 file_magic_glob=$lt_file_magic_glob
18065
18066 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18067 want_nocaseglob=$lt_want_nocaseglob
18068
18069 # DLL creation program.
18070 DLLTOOL=$lt_DLLTOOL
18071
18072 # Command to associate shared and link libraries.
18073 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18074
18075 # The archiver.
18076 AR=$lt_AR
18077
18078 # Flags to create an archive.
18079 AR_FLAGS=$lt_AR_FLAGS
18080
18081 # How to feed a file listing to the archiver.
18082 archiver_list_spec=$lt_archiver_list_spec
18083
18084 # A symbol stripping program.
18085 STRIP=$lt_STRIP
18086
18087 # Commands used to install an old-style archive.
18088 RANLIB=$lt_RANLIB
18089 old_postinstall_cmds=$lt_old_postinstall_cmds
18090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18091
18092 # Whether to use a lock for old archive extraction.
18093 lock_old_archive_extraction=$lock_old_archive_extraction
18094
18095 # A C compiler.
18096 LTCC=$lt_CC
18097
18098 # LTCC compiler flags.
18099 LTCFLAGS=$lt_CFLAGS
18100
18101 # Take the output of nm and produce a listing of raw symbols and C names.
18102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18103
18104 # Transform the output of nm in a proper C declaration.
18105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18106
18107 # Transform the output of nm into a list of symbols to manually relocate.
18108 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18109
18110 # Transform the output of nm in a C name address pair.
18111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18112
18113 # Transform the output of nm in a C name address pair when lib prefix is needed.
18114 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18115
18116 # The name lister interface.
18117 nm_interface=$lt_lt_cv_nm_interface
18118
18119 # Specify filename containing input files for \$NM.
18120 nm_file_list_spec=$lt_nm_file_list_spec
18121
18122 # The root where to search for dependent libraries,and where our libraries should be installed.
18123 lt_sysroot=$lt_sysroot
18124
18125 # Command to truncate a binary pipe.
18126 lt_truncate_bin=$lt_lt_cv_truncate_bin
18127
18128 # The name of the directory that contains temporary libtool files.
18129 objdir=$objdir
18130
18131 # Used to examine libraries when file_magic_cmd begins with "file".
18132 MAGIC_CMD=$MAGIC_CMD
18133
18134 # Must we lock files when doing compilation?
18135 need_locks=$lt_need_locks
18136
18137 # Manifest tool.
18138 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18139
18140 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18141 DSYMUTIL=$lt_DSYMUTIL
18142
18143 # Tool to change global to local symbols on Mac OS X.
18144 NMEDIT=$lt_NMEDIT
18145
18146 # Tool to manipulate fat objects and archives on Mac OS X.
18147 LIPO=$lt_LIPO
18148
18149 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18150 OTOOL=$lt_OTOOL
18151
18152 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18153 OTOOL64=$lt_OTOOL64
18154
18155 # Old archive suffix (normally "a").
18156 libext=$libext
18157
18158 # Shared library suffix (normally ".so").
18159 shrext_cmds=$lt_shrext_cmds
18160
18161 # The commands to extract the exported symbol list from a shared archive.
18162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18163
18164 # Variables whose values should be saved in libtool wrapper scripts and
18165 # restored at link time.
18166 variables_saved_for_relink=$lt_variables_saved_for_relink
18167
18168 # Do we need the "lib" prefix for modules?
18169 need_lib_prefix=$need_lib_prefix
18170
18171 # Do we need a version for libraries?
18172 need_version=$need_version
18173
18174 # Library versioning type.
18175 version_type=$version_type
18176
18177 # Shared library runtime path variable.
18178 runpath_var=$runpath_var
18179
18180 # Shared library path variable.
18181 shlibpath_var=$shlibpath_var
18182
18183 # Is shlibpath searched before the hard-coded library search path?
18184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18185
18186 # Format of library name prefix.
18187 libname_spec=$lt_libname_spec
18188
18189 # List of archive names.  First name is the real one, the rest are links.
18190 # The last name is the one that the linker finds with -lNAME
18191 library_names_spec=$lt_library_names_spec
18192
18193 # The coded name of the library, if different from the real name.
18194 soname_spec=$lt_soname_spec
18195
18196 # Permission mode override for installation of shared libraries.
18197 install_override_mode=$lt_install_override_mode
18198
18199 # Command to use after installation of a shared archive.
18200 postinstall_cmds=$lt_postinstall_cmds
18201
18202 # Command to use after uninstallation of a shared archive.
18203 postuninstall_cmds=$lt_postuninstall_cmds
18204
18205 # Commands used to finish a libtool library installation in a directory.
18206 finish_cmds=$lt_finish_cmds
18207
18208 # As "finish_cmds", except a single script fragment to be evaled but
18209 # not shown.
18210 finish_eval=$lt_finish_eval
18211
18212 # Whether we should hardcode library paths into libraries.
18213 hardcode_into_libs=$hardcode_into_libs
18214
18215 # Compile-time system search path for libraries.
18216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18217
18218 # Detected run-time system search path for libraries.
18219 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18220
18221 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18222 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18223
18224 # Whether dlopen is supported.
18225 dlopen_support=$enable_dlopen
18226
18227 # Whether dlopen of programs is supported.
18228 dlopen_self=$enable_dlopen_self
18229
18230 # Whether dlopen of statically linked programs is supported.
18231 dlopen_self_static=$enable_dlopen_self_static
18232
18233 # Commands to strip libraries.
18234 old_striplib=$lt_old_striplib
18235 striplib=$lt_striplib
18236
18237
18238 # The linker used to build libraries.
18239 LD=$lt_LD
18240
18241 # How to create reloadable object files.
18242 reload_flag=$lt_reload_flag
18243 reload_cmds=$lt_reload_cmds
18244
18245 # Commands used to build an old-style archive.
18246 old_archive_cmds=$lt_old_archive_cmds
18247
18248 # A language specific compiler.
18249 CC=$lt_compiler
18250
18251 # Is the compiler the GNU compiler?
18252 with_gcc=$GCC
18253
18254 # Compiler flag to turn off builtin functions.
18255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18256
18257 # Additional compiler flags for building library objects.
18258 pic_flag=$lt_lt_prog_compiler_pic
18259
18260 # How to pass a linker flag through the compiler.
18261 wl=$lt_lt_prog_compiler_wl
18262
18263 # Compiler flag to prevent dynamic linking.
18264 link_static_flag=$lt_lt_prog_compiler_static
18265
18266 # Does compiler simultaneously support -c and -o options?
18267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18268
18269 # Whether or not to add -lc for building shared libraries.
18270 build_libtool_need_lc=$archive_cmds_need_lc
18271
18272 # Whether or not to disallow shared libs when runtime libs are static.
18273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18274
18275 # Compiler flag to allow reflexive dlopens.
18276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18277
18278 # Compiler flag to generate shared objects directly from archives.
18279 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18280
18281 # Whether the compiler copes with passing no objects directly.
18282 compiler_needs_object=$lt_compiler_needs_object
18283
18284 # Create an old-style archive from a shared archive.
18285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18286
18287 # Create a temporary old-style archive to link instead of a shared archive.
18288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18289
18290 # Commands used to build a shared archive.
18291 archive_cmds=$lt_archive_cmds
18292 archive_expsym_cmds=$lt_archive_expsym_cmds
18293
18294 # Commands used to build a loadable module if different from building
18295 # a shared archive.
18296 module_cmds=$lt_module_cmds
18297 module_expsym_cmds=$lt_module_expsym_cmds
18298
18299 # Whether we are building with GNU ld or not.
18300 with_gnu_ld=$lt_with_gnu_ld
18301
18302 # Flag that allows shared libraries with undefined symbols to be built.
18303 allow_undefined_flag=$lt_allow_undefined_flag
18304
18305 # Flag that enforces no undefined symbols.
18306 no_undefined_flag=$lt_no_undefined_flag
18307
18308 # Flag to hardcode \$libdir into a binary during linking.
18309 # This must work even if \$libdir does not exist
18310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18311
18312 # Whether we need a single "-rpath" flag with a separated argument.
18313 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18314
18315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18316 # DIR into the resulting binary.
18317 hardcode_direct=$hardcode_direct
18318
18319 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18320 # DIR into the resulting binary and the resulting library dependency is
18321 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18322 # library is relocated.
18323 hardcode_direct_absolute=$hardcode_direct_absolute
18324
18325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18326 # into the resulting binary.
18327 hardcode_minus_L=$hardcode_minus_L
18328
18329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18330 # into the resulting binary.
18331 hardcode_shlibpath_var=$hardcode_shlibpath_var
18332
18333 # Set to "yes" if building a shared library automatically hardcodes DIR
18334 # into the library and all subsequent libraries and executables linked
18335 # against it.
18336 hardcode_automatic=$hardcode_automatic
18337
18338 # Set to yes if linker adds runtime paths of dependent libraries
18339 # to runtime path list.
18340 inherit_rpath=$inherit_rpath
18341
18342 # Whether libtool must link a program against all its dependency libraries.
18343 link_all_deplibs=$link_all_deplibs
18344
18345 # Set to "yes" if exported symbols are required.
18346 always_export_symbols=$always_export_symbols
18347
18348 # The commands to list exported symbols.
18349 export_symbols_cmds=$lt_export_symbols_cmds
18350
18351 # Symbols that should not be listed in the preloaded symbols.
18352 exclude_expsyms=$lt_exclude_expsyms
18353
18354 # Symbols that must always be exported.
18355 include_expsyms=$lt_include_expsyms
18356
18357 # Commands necessary for linking programs (against libraries) with templates.
18358 prelink_cmds=$lt_prelink_cmds
18359
18360 # Commands necessary for finishing linking programs.
18361 postlink_cmds=$lt_postlink_cmds
18362
18363 # Specify filename containing input files.
18364 file_list_spec=$lt_file_list_spec
18365
18366 # How to hardcode a shared library path into an executable.
18367 hardcode_action=$hardcode_action
18368
18369 # ### END LIBTOOL CONFIG
18370
18371 _LT_EOF
18372
18373     cat <<'_LT_EOF' >> "$cfgfile"
18374
18375 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18376
18377 # func_munge_path_list VARIABLE PATH
18378 # -----------------------------------
18379 # VARIABLE is name of variable containing _space_ separated list of
18380 # directories to be munged by the contents of PATH, which is string
18381 # having a format:
18382 # "DIR[:DIR]:"
18383 #       string "DIR[ DIR]" will be prepended to VARIABLE
18384 # ":DIR[:DIR]"
18385 #       string "DIR[ DIR]" will be appended to VARIABLE
18386 # "DIRP[:DIRP]::[DIRA:]DIRA"
18387 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18388 #       "DIRA[ DIRA]" will be appended to VARIABLE
18389 # "DIR[:DIR]"
18390 #       VARIABLE will be replaced by "DIR[ DIR]"
18391 func_munge_path_list ()
18392 {
18393     case x$2 in
18394     x)
18395         ;;
18396     *:)
18397         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18398         ;;
18399     x:*)
18400         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18401         ;;
18402     *::*)
18403         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18404         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18405         ;;
18406     *)
18407         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18408         ;;
18409     esac
18410 }
18411
18412
18413 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18414 func_cc_basename ()
18415 {
18416     for cc_temp in $*""; do
18417       case $cc_temp in
18418         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18419         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18420         \-*) ;;
18421         *) break;;
18422       esac
18423     done
18424     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18425 }
18426
18427
18428 # ### END FUNCTIONS SHARED WITH CONFIGURE
18429
18430 _LT_EOF
18431
18432   case $host_os in
18433   aix3*)
18434     cat <<\_LT_EOF >> "$cfgfile"
18435 # AIX sometimes has problems with the GCC collect2 program.  For some
18436 # reason, if we set the COLLECT_NAMES environment variable, the problems
18437 # vanish in a puff of smoke.
18438 if test set != "${COLLECT_NAMES+set}"; then
18439   COLLECT_NAMES=
18440   export COLLECT_NAMES
18441 fi
18442 _LT_EOF
18443     ;;
18444   esac
18445
18446
18447 ltmain=$ac_aux_dir/ltmain.sh
18448
18449
18450   # We use sed instead of cat because bash on DJGPP gets confused if
18451   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18452   # text mode, it properly converts lines to CR/LF.  This bash problem
18453   # is reportedly fixed, but why not run on old versions too?
18454   sed '$q' "$ltmain" >> "$cfgfile" \
18455      || (rm -f "$cfgfile"; exit 1)
18456
18457    mv -f "$cfgfile" "$ofile" ||
18458     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18459   chmod +x "$ofile"
18460
18461  ;;
18462
18463   esac
18464 done # for ac_tag
18465
18466
18467 as_fn_exit 0
18468 _ACEOF
18469 ac_clean_files=$ac_clean_files_save
18470
18471 test $ac_write_fail = 0 ||
18472   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18473
18474
18475 # configure is writing to config.log, and then calls config.status.
18476 # config.status does its own redirection, appending to config.log.
18477 # Unfortunately, on DOS this fails, as config.log is still kept open
18478 # by configure, so config.status won't be able to write to it; its
18479 # output is simply discarded.  So we exec the FD to /dev/null,
18480 # effectively closing config.log, so it can be properly (re)opened and
18481 # appended to by config.status.  When coming back to configure, we
18482 # need to make the FD available again.
18483 if test "$no_create" != yes; then
18484   ac_cs_success=:
18485   ac_config_status_args=
18486   test "$silent" = yes &&
18487     ac_config_status_args="$ac_config_status_args --quiet"
18488   exec 5>/dev/null
18489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18490   exec 5>>config.log
18491   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18492   # would make configure fail if this is the last instruction.
18493   $ac_cs_success || as_fn_exit 1
18494 fi
18495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18496   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18497 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18498 fi
18499