Apply PIE to nghttpx
[platform/upstream/nghttp2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nghttp2 1.41.0.
4 #
5 # Report bugs to <t-tujikawa@users.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: t-tujikawa@users.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='nghttp2'
592 PACKAGE_TARNAME='nghttp2'
593 PACKAGE_VERSION='1.41.0'
594 PACKAGE_STRING='nghttp2 1.41.0'
595 PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 APPLDFLAGS
638 TESTLDADD
639 ENABLE_STATIC_FALSE
640 ENABLE_STATIC_TRUE
641 EXTRACFLAG
642 WARNCXXFLAGS
643 WARNCFLAGS
644 LIBOBJS
645 ENABLE_FAILMALLOC_FALSE
646 ENABLE_FAILMALLOC_TRUE
647 HAVE_CYTHON_FALSE
648 HAVE_CYTHON_TRUE
649 ENABLE_PYTHON_BINDINGS_FALSE
650 ENABLE_PYTHON_BINDINGS_TRUE
651 HAVE_NEVERBLEED_FALSE
652 HAVE_NEVERBLEED_TRUE
653 HAVE_MRUBY_FALSE
654 HAVE_MRUBY_TRUE
655 ENABLE_THIRD_PARTY_FALSE
656 ENABLE_THIRD_PARTY_TRUE
657 LIBMRUBY_CFLAGS
658 LIBMRUBY_LIBS
659 ENABLE_EXAMPLES_FALSE
660 ENABLE_EXAMPLES_TRUE
661 ENABLE_ASIO_LIB_FALSE
662 ENABLE_ASIO_LIB_TRUE
663 ENABLE_HPACK_TOOLS_FALSE
664 ENABLE_HPACK_TOOLS_TRUE
665 ENABLE_APP_FALSE
666 ENABLE_APP_TRUE
667 BOOST_THREAD_LIB
668 BOOST_SYSTEM_LIB
669 BOOST_ASIO_LIB
670 BOOST_LDFLAGS
671 BOOST_CPPFLAGS
672 JEMALLOC_LIBS
673 HAVE_LIBXML2_FALSE
674 HAVE_LIBXML2_TRUE
675 LIBXML2_LIBS
676 LIBXML2_CFLAGS
677 SYSTEMD_LIBS
678 SYSTEMD_CFLAGS
679 JANSSON_LIBS
680 JANSSON_CFLAGS
681 LIBEVENT_OPENSSL_LIBS
682 LIBEVENT_OPENSSL_CFLAGS
683 LIBCARES_LIBS
684 LIBCARES_CFLAGS
685 OPENSSL_LIBS
686 OPENSSL_CFLAGS
687 LIBEV_CFLAGS
688 LIBEV_LIBS
689 HAVE_CUNIT_FALSE
690 HAVE_CUNIT_TRUE
691 CUNIT_LIBS
692 CUNIT_CFLAGS
693 ZLIB_LIBS
694 ZLIB_CFLAGS
695 CXX1XCXXFLAGS
696 HAVE_CXX14
697 PYTHON_EXTRA_LDFLAGS
698 PYTHON_EXTRA_LIBS
699 PYTHON_SITE_PKG
700 PYTHON_LDFLAGS
701 PYTHON_CPPFLAGS
702 pkgpyexecdir
703 pyexecdir
704 pkgpythondir
705 pythondir
706 PYTHON_PLATFORM
707 PYTHON_EXEC_PREFIX
708 PYTHON_PREFIX
709 PYTHON_VERSION
710 PYTHON
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 am__fastdepCXX_FALSE
715 am__fastdepCXX_TRUE
716 CXXDEPMODE
717 CXXCPP
718 ac_ct_CXX
719 CXXFLAGS
720 CXX
721 CYTHON
722 PACKAGE_VERSION_NUM
723 LT_AGE
724 LT_REVISION
725 LT_CURRENT
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__fastdepCC_FALSE
731 am__fastdepCC_TRUE
732 CCDEPMODE
733 am__nodep
734 AMDEPBACKSLASH
735 AMDEP_FALSE
736 AMDEP_TRUE
737 am__include
738 DEPDIR
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_os
761 target_vendor
762 target_cpu
763 target
764 LT_SYS_LIBRARY_PATH
765 OTOOL64
766 OTOOL
767 LIPO
768 NMEDIT
769 DSYMUTIL
770 MANIFEST_TOOL
771 AWK
772 RANLIB
773 STRIP
774 ac_ct_AR
775 AR
776 DLLTOOL
777 OBJDUMP
778 LN_S
779 NM
780 ac_ct_DUMPBIN
781 DUMPBIN
782 LD
783 FGREP
784 SED
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 LIBTOOL
794 EGREP
795 GREP
796 CPP
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 runstatedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL
843 am__quote'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_shared
848 enable_static
849 with_pic
850 enable_fast_install
851 with_aix_soname
852 with_gnu_ld
853 with_sysroot
854 enable_libtool_lock
855 enable_dependency_tracking
856 enable_silent_rules
857 enable_werror
858 enable_debug
859 enable_threads
860 enable_app
861 enable_hpack_tools
862 enable_asio_lib
863 enable_examples
864 enable_python_bindings
865 enable_failmalloc
866 enable_lib_only
867 with_libxml2
868 with_jemalloc
869 with_systemd
870 with_mruby
871 with_neverbleed
872 with_cython
873 with_boost
874 with_boost_libdir
875 with_boost_asio
876 with_boost_system
877 with_boost_thread
878 enable_assert
879 enable_largefile
880 '
881       ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 LT_SYS_LIBRARY_PATH
891 CYTHON
892 CXX
893 CXXFLAGS
894 CCC
895 CXXCPP
896 PKG_CONFIG
897 PKG_CONFIG_PATH
898 PKG_CONFIG_LIBDIR
899 PYTHON
900 PYTHON_VERSION
901 ZLIB_CFLAGS
902 ZLIB_LIBS
903 CUNIT_CFLAGS
904 CUNIT_LIBS
905 OPENSSL_CFLAGS
906 OPENSSL_LIBS
907 LIBCARES_CFLAGS
908 LIBCARES_LIBS
909 LIBEVENT_OPENSSL_CFLAGS
910 LIBEVENT_OPENSSL_LIBS
911 JANSSON_CFLAGS
912 JANSSON_LIBS
913 SYSTEMD_CFLAGS
914 SYSTEMD_LIBS
915 LIBXML2_CFLAGS
916 LIBXML2_LIBS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *=)   ac_optarg= ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error $? "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -runstatedir | --runstatedir | --runstatedi | --runstated \
1209   | --runstate | --runstat | --runsta | --runst | --runs \
1210   | --run | --ru | --r)
1211     ac_prev=runstatedir ;;
1212   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214   | --run=* | --ru=* | --r=*)
1215     runstatedir=$ac_optarg ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266       as_fn_error $? "invalid package name: $ac_useropt"
1267     ac_useropt_orig=$ac_useropt
1268     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269     case $ac_user_opts in
1270       *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274          ac_unrecognized_sep=', ';;
1275     esac
1276     eval with_$ac_useropt=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     case $ac_envvar in #(
1320       '' | [0-9]* | *[!_$as_cr_alnum]* )
1321       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322     esac
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   as_fn_error $? "missing argument to $ac_option"
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343   case $enable_option_checking in
1344     no) ;;
1345     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347   esac
1348 fi
1349
1350 # Check all directory arguments for consistency.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir runstatedir
1355 do
1356   eval ac_val=\$$ac_var
1357   # Remove trailing slashes.
1358   case $ac_val in
1359     */ )
1360       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361       eval $ac_var=\$ac_val;;
1362   esac
1363   # Be sure to have absolute directory names.
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398   as_fn_error $? "pwd does not report name of working directory"
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403   ac_srcdir_defaulted=yes
1404   # Try the directory containing this script, then the parent directory.
1405   ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407          X"$as_myself" : 'X\(//\)[^/]' \| \
1408          X"$as_myself" : 'X\(//\)$' \| \
1409          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)[^/].*/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\).*/{
1424             s//\1/
1425             q
1426           }
1427           s/.*/./; q'`
1428   srcdir=$ac_confdir
1429   if test ! -r "$srcdir/$ac_unique_file"; then
1430     srcdir=..
1431   fi
1432 else
1433   ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures nghttp2 1.41.0 to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking ...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR            user executables [EPREFIX/bin]
1502   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR        program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1507   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/nghttp2]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 Program names:
1526   --program-prefix=PREFIX            prepend PREFIX to installed program names
1527   --program-suffix=SUFFIX            append SUFFIX to installed program names
1528   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1529
1530 System types:
1531   --build=BUILD     configure for building on BUILD [guessed]
1532   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1533   --target=TARGET   configure for building compilers for TARGET [HOST]
1534 _ACEOF
1535 fi
1536
1537 if test -n "$ac_init_help"; then
1538   case $ac_init_help in
1539      short | recursive ) echo "Configuration of nghttp2 1.41.0:";;
1540    esac
1541   cat <<\_ACEOF
1542
1543 Optional Features:
1544   --disable-option-checking  ignore unrecognized --enable/--with options
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-shared[=PKGS]  build shared libraries [default=yes]
1548   --enable-static[=PKGS]  build static libraries [default=yes]
1549   --enable-fast-install[=PKGS]
1550                           optimize for fast installation [default=yes]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552   --enable-dependency-tracking
1553                           do not reject slow dependency extractors
1554   --disable-dependency-tracking
1555                           speeds up one-time build
1556   --enable-silent-rules   less verbose build output (undo: "make V=1")
1557   --disable-silent-rules  verbose build output (undo: "make V=0")
1558   --enable-werror         Turn on compile time warnings
1559   --enable-debug          Turn on debug output
1560   --disable-threads       Turn off threading in apps
1561   --enable-app            Build applications (nghttp, nghttpd, nghttpx and
1562                           h2load) [default=check]
1563   --enable-hpack-tools    Build HPACK tools [default=check]
1564   --enable-asio-lib       Build C++ libnghttp2_asio library [default=no]
1565   --enable-examples       Build examples [default=check]
1566   --enable-python-bindings
1567                           Build Python bindings [default=check]
1568   --disable-failmalloc    Do not build failmalloc test program
1569   --enable-lib-only       Build libnghttp2 only. This is a short hand for
1570                           --disable-app --disable-examples
1571                           --disable-hpack-tools --disable-python-bindings
1572   --disable-assert        turn off assertions
1573   --disable-largefile     omit support for large files
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1579                           both]
1580   --with-aix-soname=aix|svr4|both
1581                           shared library versioning (aka "SONAME") variant to
1582                           provide on AIX, [default=aix].
1583   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1584   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1585                           compiler's sysroot if not specified).
1586   --with-libxml2          Use libxml2 [default=check]
1587   --with-jemalloc         Use jemalloc [default=check]
1588   --with-systemd          Enable systemd support in nghttpx [default=check]
1589   --with-mruby            Use mruby [default=no]
1590   --with-neverbleed       Use neverbleed [default=no]
1591   --with-cython=PATH      Use cython in given PATH
1592   --with-boost[=ARG]      use Boost library from a standard location
1593                           (ARG=yes), from the specified location (ARG=<path>),
1594                           or disable it (ARG=no) [ARG=yes]
1595   --with-boost-libdir=LIB_DIR
1596                           Force given directory for boost libraries. Note that
1597                           this will override library path detection, so use
1598                           this parameter only if default library detection
1599                           fails and you know exactly where your boost
1600                           libraries are located.
1601   --with-boost-asio[=special-lib]
1602                           use the ASIO library from boost - it is possible to
1603                           specify a certain library for the linker e.g.
1604                           --with-boost-asio=boost_system-gcc41-mt-1_34
1605   --with-boost-system[=special-lib]
1606                           use the System library from boost - it is possible
1607                           to specify a certain library for the linker e.g.
1608                           --with-boost-system=boost_system-gcc-mt
1609   --with-boost-thread[=special-lib]
1610                           use the Thread library from boost - it is possible
1611                           to specify a certain library for the linker e.g.
1612                           --with-boost-thread=boost_thread-gcc-mt
1613
1614 Some influential environment variables:
1615   CC          C compiler command
1616   CFLAGS      C compiler flags
1617   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1618               nonstandard directory <lib dir>
1619   LIBS        libraries to pass to the linker, e.g. -l<library>
1620   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621               you have headers in a nonstandard directory <include dir>
1622   CPP         C preprocessor
1623   LT_SYS_LIBRARY_PATH
1624               User-defined run-time library search path.
1625   CYTHON      the Cython executable
1626   CXX         C++ compiler command
1627   CXXFLAGS    C++ compiler flags
1628   CXXCPP      C++ preprocessor
1629   PKG_CONFIG  path to pkg-config utility
1630   PKG_CONFIG_PATH
1631               directories to add to pkg-config's search path
1632   PKG_CONFIG_LIBDIR
1633               path overriding pkg-config's built-in search path
1634   PYTHON      the Python interpreter
1635   PYTHON_VERSION
1636               The installed Python version to use, for example '2.3'. This
1637               string will be appended to the Python interpreter canonical
1638               name.
1639   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1640   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1641   CUNIT_CFLAGS
1642               C compiler flags for CUNIT, overriding pkg-config
1643   CUNIT_LIBS  linker flags for CUNIT, overriding pkg-config
1644   OPENSSL_CFLAGS
1645               C compiler flags for OPENSSL, overriding pkg-config
1646   OPENSSL_LIBS
1647               linker flags for OPENSSL, overriding pkg-config
1648   LIBCARES_CFLAGS
1649               C compiler flags for LIBCARES, overriding pkg-config
1650   LIBCARES_LIBS
1651               linker flags for LIBCARES, overriding pkg-config
1652   LIBEVENT_OPENSSL_CFLAGS
1653               C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1654   LIBEVENT_OPENSSL_LIBS
1655               linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1656   JANSSON_CFLAGS
1657               C compiler flags for JANSSON, overriding pkg-config
1658   JANSSON_LIBS
1659               linker flags for JANSSON, overriding pkg-config
1660   SYSTEMD_CFLAGS
1661               C compiler flags for SYSTEMD, overriding pkg-config
1662   SYSTEMD_LIBS
1663               linker flags for SYSTEMD, overriding pkg-config
1664   LIBXML2_CFLAGS
1665               C compiler flags for LIBXML2, overriding pkg-config
1666   LIBXML2_LIBS
1667               linker flags for LIBXML2, overriding pkg-config
1668
1669 Use these variables to override the choices made by `configure' or to help
1670 it to find libraries and programs with nonstandard names/locations.
1671
1672 Report bugs to <t-tujikawa@users.sourceforge.net>.
1673 _ACEOF
1674 ac_status=$?
1675 fi
1676
1677 if test "$ac_init_help" = "recursive"; then
1678   # If there are subdirs, report their specific --help.
1679   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680     test -d "$ac_dir" ||
1681       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682       continue
1683     ac_builddir=.
1684
1685 case "$ac_dir" in
1686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *)
1688   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689   # A ".." for each directory in $ac_dir_suffix.
1690   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691   case $ac_top_builddir_sub in
1692   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694   esac ;;
1695 esac
1696 ac_abs_top_builddir=$ac_pwd
1697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698 # for backward compatibility:
1699 ac_top_builddir=$ac_top_build_prefix
1700
1701 case $srcdir in
1702   .)  # We are building in place.
1703     ac_srcdir=.
1704     ac_top_srcdir=$ac_top_builddir_sub
1705     ac_abs_top_srcdir=$ac_pwd ;;
1706   [\\/]* | ?:[\\/]* )  # Absolute name.
1707     ac_srcdir=$srcdir$ac_dir_suffix;
1708     ac_top_srcdir=$srcdir
1709     ac_abs_top_srcdir=$srcdir ;;
1710   *) # Relative name.
1711     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712     ac_top_srcdir=$ac_top_build_prefix$srcdir
1713     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714 esac
1715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717     cd "$ac_dir" || { ac_status=$?; continue; }
1718     # Check for guested configure.
1719     if test -f "$ac_srcdir/configure.gnu"; then
1720       echo &&
1721       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722     elif test -f "$ac_srcdir/configure"; then
1723       echo &&
1724       $SHELL "$ac_srcdir/configure" --help=recursive
1725     else
1726       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727     fi || ac_status=$?
1728     cd "$ac_pwd" || { ac_status=$?; break; }
1729   done
1730 fi
1731
1732 test -n "$ac_init_help" && exit $ac_status
1733 if $ac_init_version; then
1734   cat <<\_ACEOF
1735 nghttp2 configure 1.41.0
1736 generated by GNU Autoconf 2.69
1737
1738 Copyright (C) 2012 Free Software Foundation, Inc.
1739 This configure script is free software; the Free Software Foundation
1740 gives unlimited permission to copy, distribute and modify it.
1741 _ACEOF
1742   exit
1743 fi
1744
1745 ## ------------------------ ##
1746 ## Autoconf initialization. ##
1747 ## ------------------------ ##
1748
1749 # ac_fn_c_try_compile LINENO
1750 # --------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_compile ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   rm -f conftest.$ac_objext
1756   if { { ac_try="$ac_compile"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_compile") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && {
1772          test -z "$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        } && test -s conftest.$ac_objext; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780         ac_retval=1
1781 fi
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_compile
1786
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_cpp ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } > conftest.i && {
1809          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810          test ! -s conftest.err
1811        }; then :
1812   ac_retval=0
1813 else
1814   $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817     ac_retval=1
1818 fi
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_cpp
1823
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   if eval \${$3+:} false; then :
1833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836   $as_echo_n "(cached) " >&6
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842   # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851   ac_header_compiler=yes
1852 else
1853   ac_header_compiler=no
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1858
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867   ac_header_preproc=yes
1868 else
1869   ac_header_preproc=no
1870 fi
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1874
1875 # So?  What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877   yes:no: )
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882     ;;
1883   no:yes:* )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ( $as_echo "## ----------------------------------------------- ##
1895 ## Report this to t-tujikawa@users.sourceforge.net ##
1896 ## ----------------------------------------------- ##"
1897      ) | sed "s/^/$as_me: WARNING:     /" >&2
1898     ;;
1899 esac
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   eval "$3=\$ac_header_compiler"
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 fi
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_header_mongrel
1914
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1919 ac_fn_c_try_run ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925   *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929   (eval "$ac_link") 2>&5
1930   ac_status=$?
1931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933   { { case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_try") 2>&5
1940   ac_status=$?
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; }; }; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: program exited with status $ac_status" >&5
1946        $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949        ac_retval=$ac_status
1950 fi
1951   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953   as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_run
1956
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967   $as_echo_n "(cached) " >&6
1968 else
1969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 $4
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975   eval "$3=yes"
1976 else
1977   eval "$3=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_header_compile
1987
1988 # ac_fn_c_try_link LINENO
1989 # -----------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_link ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   rm -f conftest.$ac_objext conftest$ac_exeext
1995   if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_link") 2>conftest.err
2003   ac_status=$?
2004   if test -s conftest.err; then
2005     grep -v '^ *+' conftest.err >conftest.er1
2006     cat conftest.er1 >&5
2007     mv -f conftest.er1 conftest.err
2008   fi
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; } && {
2011          test -z "$ac_c_werror_flag" ||
2012          test ! -s conftest.err
2013        } && test -s conftest$ac_exeext && {
2014          test "$cross_compiling" = yes ||
2015          test -x conftest$ac_exeext
2016        }; then :
2017   ac_retval=0
2018 else
2019   $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022         ac_retval=1
2023 fi
2024   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026   # interfere with the next link command; also delete a directory that is
2027   # left behind by Apple's compiler.  We do this before executing the actions.
2028   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030   as_fn_set_status $ac_retval
2031
2032 } # ac_fn_c_try_link
2033
2034 # ac_fn_c_check_func LINENO FUNC VAR
2035 # ----------------------------------
2036 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2037 ac_fn_c_check_func ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043   $as_echo_n "(cached) " >&6
2044 else
2045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2049 #define $2 innocuous_$2
2050
2051 /* System header to define __stub macros and hopefully few prototypes,
2052     which can conflict with char $2 (); below.
2053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2054     <limits.h> exists even on freestanding compilers.  */
2055
2056 #ifdef __STDC__
2057 # include <limits.h>
2058 #else
2059 # include <assert.h>
2060 #endif
2061
2062 #undef $2
2063
2064 /* Override any GCC internal prototype to avoid an error.
2065    Use char because int might match the return type of a GCC
2066    builtin and then its argument prototype would still apply.  */
2067 #ifdef __cplusplus
2068 extern "C"
2069 #endif
2070 char $2 ();
2071 /* The GNU C library defines this for functions which it implements
2072     to always fail with ENOSYS.  Some functions are actually named
2073     something starting with __ and the normal name is an alias.  */
2074 #if defined __stub_$2 || defined __stub___$2
2075 choke me
2076 #endif
2077
2078 int
2079 main ()
2080 {
2081 return $2 ();
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_link "$LINENO"; then :
2087   eval "$3=yes"
2088 else
2089   eval "$3=no"
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext \
2092     conftest$ac_exeext conftest.$ac_ext
2093 fi
2094 eval ac_res=\$$3
2095                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099 } # ac_fn_c_check_func
2100
2101 # ac_fn_cxx_try_compile LINENO
2102 # ----------------------------
2103 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_cxx_try_compile ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   rm -f conftest.$ac_objext
2108   if { { ac_try="$ac_compile"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115   (eval "$ac_compile") 2>conftest.err
2116   ac_status=$?
2117   if test -s conftest.err; then
2118     grep -v '^ *+' conftest.err >conftest.er1
2119     cat conftest.er1 >&5
2120     mv -f conftest.er1 conftest.err
2121   fi
2122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123   test $ac_status = 0; } && {
2124          test -z "$ac_cxx_werror_flag" ||
2125          test ! -s conftest.err
2126        } && test -s conftest.$ac_objext; then :
2127   ac_retval=0
2128 else
2129   $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132         ac_retval=1
2133 fi
2134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135   as_fn_set_status $ac_retval
2136
2137 } # ac_fn_cxx_try_compile
2138
2139 # ac_fn_cxx_try_cpp LINENO
2140 # ------------------------
2141 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_cxx_try_cpp ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   if { { ac_try="$ac_cpp conftest.$ac_ext"
2146 case "(($ac_try" in
2147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148   *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2153   ac_status=$?
2154   if test -s conftest.err; then
2155     grep -v '^ *+' conftest.err >conftest.er1
2156     cat conftest.er1 >&5
2157     mv -f conftest.er1 conftest.err
2158   fi
2159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160   test $ac_status = 0; } > conftest.i && {
2161          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2162          test ! -s conftest.err
2163        }; then :
2164   ac_retval=0
2165 else
2166   $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169     ac_retval=1
2170 fi
2171   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172   as_fn_set_status $ac_retval
2173
2174 } # ac_fn_cxx_try_cpp
2175
2176 # ac_fn_cxx_try_link LINENO
2177 # -------------------------
2178 # Try to link conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_cxx_try_link ()
2180 {
2181   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182   rm -f conftest.$ac_objext conftest$ac_exeext
2183   if { { ac_try="$ac_link"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190   (eval "$ac_link") 2>conftest.err
2191   ac_status=$?
2192   if test -s conftest.err; then
2193     grep -v '^ *+' conftest.err >conftest.er1
2194     cat conftest.er1 >&5
2195     mv -f conftest.er1 conftest.err
2196   fi
2197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198   test $ac_status = 0; } && {
2199          test -z "$ac_cxx_werror_flag" ||
2200          test ! -s conftest.err
2201        } && test -s conftest$ac_exeext && {
2202          test "$cross_compiling" = yes ||
2203          test -x conftest$ac_exeext
2204        }; then :
2205   ac_retval=0
2206 else
2207   $as_echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210         ac_retval=1
2211 fi
2212   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2213   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2214   # interfere with the next link command; also delete a directory that is
2215   # left behind by Apple's compiler.  We do this before executing the actions.
2216   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2217   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218   as_fn_set_status $ac_retval
2219
2220 } # ac_fn_cxx_try_link
2221
2222 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2223 # -------------------------------------------
2224 # Tests whether TYPE exists after having included INCLUDES, setting cache
2225 # variable VAR accordingly.
2226 ac_fn_c_check_type ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if eval \${$3+:} false; then :
2232   $as_echo_n "(cached) " >&6
2233 else
2234   eval "$3=no"
2235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 if (sizeof ($2))
2242          return 0;
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 if (sizeof (($2)))
2255             return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261
2262 else
2263   eval "$3=yes"
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 eval ac_res=\$$3
2270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274 } # ac_fn_c_check_type
2275
2276 # ac_fn_c_find_uintX_t LINENO BITS VAR
2277 # ------------------------------------
2278 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2279 # accordingly.
2280 ac_fn_c_find_uintX_t ()
2281 {
2282   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2284 $as_echo_n "checking for uint$2_t... " >&6; }
2285 if eval \${$3+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   eval "$3=no"
2289      # Order is important - never check a type that is potentially smaller
2290      # than half of the expected target width.
2291      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2292          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2293        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2300 test_array [0] = 0;
2301 return test_array [0];
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308   case $ac_type in #(
2309   uint$2_t) :
2310     eval "$3=yes" ;; #(
2311   *) :
2312     eval "$3=\$ac_type" ;;
2313 esac
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316        if eval test \"x\$"$3"\" = x"no"; then :
2317
2318 else
2319   break
2320 fi
2321      done
2322 fi
2323 eval ac_res=\$$3
2324                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328 } # ac_fn_c_find_uintX_t
2329
2330 # ac_fn_c_find_intX_t LINENO BITS VAR
2331 # -----------------------------------
2332 # Finds a signed integer type with width BITS, setting cache variable VAR
2333 # accordingly.
2334 ac_fn_c_find_intX_t ()
2335 {
2336   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2338 $as_echo_n "checking for int$2_t... " >&6; }
2339 if eval \${$3+:} false; then :
2340   $as_echo_n "(cached) " >&6
2341 else
2342   eval "$3=no"
2343      # Order is important - never check a type that is potentially smaller
2344      # than half of the expected target width.
2345      for ac_type in int$2_t 'int' 'long int' \
2346          'long long int' 'short int' 'signed char'; do
2347        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $ac_includes_default
2350              enum { N = $2 / 2 - 1 };
2351 int
2352 main ()
2353 {
2354 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2355 test_array [0] = 0;
2356 return test_array [0];
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h.  */
2365 $ac_includes_default
2366                 enum { N = $2 / 2 - 1 };
2367 int
2368 main ()
2369 {
2370 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2371                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2372 test_array [0] = 0;
2373 return test_array [0];
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380
2381 else
2382   case $ac_type in #(
2383   int$2_t) :
2384     eval "$3=yes" ;; #(
2385   *) :
2386     eval "$3=\$ac_type" ;;
2387 esac
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392        if eval test \"x\$"$3"\" = x"no"; then :
2393
2394 else
2395   break
2396 fi
2397      done
2398 fi
2399 eval ac_res=\$$3
2400                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403
2404 } # ac_fn_c_find_intX_t
2405
2406 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2407 # ----------------------------------------------------
2408 # Tries to find if the field MEMBER exists in type AGGR, after including
2409 # INCLUDES, setting cache variable VAR accordingly.
2410 ac_fn_c_check_member ()
2411 {
2412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2414 $as_echo_n "checking for $2.$3... " >&6; }
2415 if eval \${$4+:} false; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h.  */
2420 $5
2421 int
2422 main ()
2423 {
2424 static $2 ac_aggr;
2425 if (ac_aggr.$3)
2426 return 0;
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432   eval "$4=yes"
2433 else
2434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h.  */
2436 $5
2437 int
2438 main ()
2439 {
2440 static $2 ac_aggr;
2441 if (sizeof ac_aggr.$3)
2442 return 0;
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448   eval "$4=yes"
2449 else
2450   eval "$4=no"
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 eval ac_res=\$$4
2457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461 } # ac_fn_c_check_member
2462
2463 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464 # --------------------------------------------
2465 # Tries to find the compile-time value of EXPR in a program that includes
2466 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2467 # computed
2468 ac_fn_c_compute_int ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   if test "$cross_compiling" = yes; then
2472     # Depending upon the size, compute the lo and hi bounds.
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 $4
2476 int
2477 main ()
2478 {
2479 static int test_array [1 - 2 * !(($2) >= 0)];
2480 test_array [0] = 0;
2481 return test_array [0];
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   ac_lo=0 ac_mid=0
2489   while :; do
2490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497 test_array [0] = 0;
2498 return test_array [0];
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   ac_hi=$ac_mid; break
2506 else
2507   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2508                         if test $ac_lo -le $ac_mid; then
2509                           ac_lo= ac_hi=
2510                           break
2511                         fi
2512                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515   done
2516 else
2517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519 $4
2520 int
2521 main ()
2522 {
2523 static int test_array [1 - 2 * !(($2) < 0)];
2524 test_array [0] = 0;
2525 return test_array [0];
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 if ac_fn_c_try_compile "$LINENO"; then :
2532   ac_hi=-1 ac_mid=-1
2533   while :; do
2534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h.  */
2536 $4
2537 int
2538 main ()
2539 {
2540 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2541 test_array [0] = 0;
2542 return test_array [0];
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549   ac_lo=$ac_mid; break
2550 else
2551   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2552                         if test $ac_mid -le $ac_hi; then
2553                           ac_lo= ac_hi=
2554                           break
2555                         fi
2556                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559   done
2560 else
2561   ac_lo= ac_hi=
2562 fi
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 fi
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 # Binary search between lo and hi bounds.
2567 while test "x$ac_lo" != "x$ac_hi"; do
2568   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h.  */
2571 $4
2572 int
2573 main ()
2574 {
2575 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2576 test_array [0] = 0;
2577 return test_array [0];
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584   ac_hi=$ac_mid
2585 else
2586   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 done
2590 case $ac_lo in #((
2591 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2592 '') ac_retval=1 ;;
2593 esac
2594   else
2595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h.  */
2597 $4
2598 static long int longval () { return $2; }
2599 static unsigned long int ulongval () { return $2; }
2600 #include <stdio.h>
2601 #include <stdlib.h>
2602 int
2603 main ()
2604 {
2605
2606   FILE *f = fopen ("conftest.val", "w");
2607   if (! f)
2608     return 1;
2609   if (($2) < 0)
2610     {
2611       long int i = longval ();
2612       if (i != ($2))
2613         return 1;
2614       fprintf (f, "%ld", i);
2615     }
2616   else
2617     {
2618       unsigned long int i = ulongval ();
2619       if (i != ($2))
2620         return 1;
2621       fprintf (f, "%lu", i);
2622     }
2623   /* Do not output a trailing newline, as this causes \r\n confusion
2624      on some platforms.  */
2625   return ferror (f) || fclose (f) != 0;
2626
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_c_try_run "$LINENO"; then :
2632   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2633 else
2634   ac_retval=1
2635 fi
2636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637   conftest.$ac_objext conftest.beam conftest.$ac_ext
2638 rm -f conftest.val
2639
2640   fi
2641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642   as_fn_set_status $ac_retval
2643
2644 } # ac_fn_c_compute_int
2645
2646 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2647 # ---------------------------------------------
2648 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2649 # accordingly.
2650 ac_fn_c_check_decl ()
2651 {
2652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653   as_decl_name=`echo $2|sed 's/ *(.*//'`
2654   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if eval \${$3+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h.  */
2662 $4
2663 int
2664 main ()
2665 {
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668   (void) $as_decl_use;
2669 #else
2670   (void) $as_decl_name;
2671 #endif
2672 #endif
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679   eval "$3=yes"
2680 else
2681   eval "$3=no"
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690 } # ac_fn_c_check_decl
2691 cat >config.log <<_ACEOF
2692 This file contains any messages produced by compilers while
2693 running configure, to aid debugging if configure makes a mistake.
2694
2695 It was created by nghttp2 $as_me 1.41.0, which was
2696 generated by GNU Autoconf 2.69.  Invocation command line was
2697
2698   $ $0 $@
2699
2700 _ACEOF
2701 exec 5>>config.log
2702 {
2703 cat <<_ASUNAME
2704 ## --------- ##
2705 ## Platform. ##
2706 ## --------- ##
2707
2708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2713
2714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2715 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2716
2717 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2718 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2720 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2721 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2722 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2723 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2724
2725 _ASUNAME
2726
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     $as_echo "PATH: $as_dir"
2733   done
2734 IFS=$as_save_IFS
2735
2736 } >&5
2737
2738 cat >&5 <<_ACEOF
2739
2740
2741 ## ----------- ##
2742 ## Core tests. ##
2743 ## ----------- ##
2744
2745 _ACEOF
2746
2747
2748 # Keep a trace of the command line.
2749 # Strip out --no-create and --no-recursion so they do not pile up.
2750 # Strip out --silent because we don't want to record it for future runs.
2751 # Also quote any args containing shell meta-characters.
2752 # Make two passes to allow for proper duplicate-argument suppression.
2753 ac_configure_args=
2754 ac_configure_args0=
2755 ac_configure_args1=
2756 ac_must_keep_next=false
2757 for ac_pass in 1 2
2758 do
2759   for ac_arg
2760   do
2761     case $ac_arg in
2762     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2763     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2764     | -silent | --silent | --silen | --sile | --sil)
2765       continue ;;
2766     *\'*)
2767       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2768     esac
2769     case $ac_pass in
2770     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2771     2)
2772       as_fn_append ac_configure_args1 " '$ac_arg'"
2773       if test $ac_must_keep_next = true; then
2774         ac_must_keep_next=false # Got value, back to normal.
2775       else
2776         case $ac_arg in
2777           *=* | --config-cache | -C | -disable-* | --disable-* \
2778           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2779           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2780           | -with-* | --with-* | -without-* | --without-* | --x)
2781             case "$ac_configure_args0 " in
2782               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2783             esac
2784             ;;
2785           -* ) ac_must_keep_next=true ;;
2786         esac
2787       fi
2788       as_fn_append ac_configure_args " '$ac_arg'"
2789       ;;
2790     esac
2791   done
2792 done
2793 { ac_configure_args0=; unset ac_configure_args0;}
2794 { ac_configure_args1=; unset ac_configure_args1;}
2795
2796 # When interrupted or exit'd, cleanup temporary files, and complete
2797 # config.log.  We remove comments because anyway the quotes in there
2798 # would cause problems or look ugly.
2799 # WARNING: Use '\'' to represent an apostrophe within the trap.
2800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2801 trap 'exit_status=$?
2802   # Save into config.log some information that might help in debugging.
2803   {
2804     echo
2805
2806     $as_echo "## ---------------- ##
2807 ## Cache variables. ##
2808 ## ---------------- ##"
2809     echo
2810     # The following way of writing the cache mishandles newlines in values,
2811 (
2812   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2813     eval ac_val=\$$ac_var
2814     case $ac_val in #(
2815     *${as_nl}*)
2816       case $ac_var in #(
2817       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2819       esac
2820       case $ac_var in #(
2821       _ | IFS | as_nl) ;; #(
2822       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2823       *) { eval $ac_var=; unset $ac_var;} ;;
2824       esac ;;
2825     esac
2826   done
2827   (set) 2>&1 |
2828     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2829     *${as_nl}ac_space=\ *)
2830       sed -n \
2831         "s/'\''/'\''\\\\'\'''\''/g;
2832           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2833       ;; #(
2834     *)
2835       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2836       ;;
2837     esac |
2838     sort
2839 )
2840     echo
2841
2842     $as_echo "## ----------------- ##
2843 ## Output variables. ##
2844 ## ----------------- ##"
2845     echo
2846     for ac_var in $ac_subst_vars
2847     do
2848       eval ac_val=\$$ac_var
2849       case $ac_val in
2850       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2851       esac
2852       $as_echo "$ac_var='\''$ac_val'\''"
2853     done | sort
2854     echo
2855
2856     if test -n "$ac_subst_files"; then
2857       $as_echo "## ------------------- ##
2858 ## File substitutions. ##
2859 ## ------------------- ##"
2860       echo
2861       for ac_var in $ac_subst_files
2862       do
2863         eval ac_val=\$$ac_var
2864         case $ac_val in
2865         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2866         esac
2867         $as_echo "$ac_var='\''$ac_val'\''"
2868       done | sort
2869       echo
2870     fi
2871
2872     if test -s confdefs.h; then
2873       $as_echo "## ----------- ##
2874 ## confdefs.h. ##
2875 ## ----------- ##"
2876       echo
2877       cat confdefs.h
2878       echo
2879     fi
2880     test "$ac_signal" != 0 &&
2881       $as_echo "$as_me: caught signal $ac_signal"
2882     $as_echo "$as_me: exit $exit_status"
2883   } >&5
2884   rm -f core *.core core.conftest.* &&
2885     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886     exit $exit_status
2887 ' 0
2888 for ac_signal in 1 2 13 15; do
2889   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2892
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2895
2896 $as_echo "/* confdefs.h */" > confdefs.h
2897
2898 # Predefined preprocessor variables.
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2919
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2923
2924
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930   # We do not want a PATH search for config.site.
2931   case $CONFIG_SITE in #((
2932     -*)  ac_site_file1=./$CONFIG_SITE;;
2933     */*) ac_site_file1=$CONFIG_SITE;;
2934     *)   ac_site_file1=./$CONFIG_SITE;;
2935   esac
2936 elif test "x$prefix" != xNONE; then
2937   ac_site_file1=$prefix/share/config.site
2938   ac_site_file2=$prefix/etc/config.site
2939 else
2940   ac_site_file1=$ac_default_prefix/share/config.site
2941   ac_site_file2=$ac_default_prefix/etc/config.site
2942 fi
2943 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2944 do
2945   test "x$ac_site_file" = xNONE && continue
2946   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2947     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2948 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2949     sed 's/^/| /' "$ac_site_file" >&5
2950     . "$ac_site_file" \
2951       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error $? "failed to load site script $ac_site_file
2954 See \`config.log' for more details" "$LINENO" 5; }
2955   fi
2956 done
2957
2958 if test -r "$cache_file"; then
2959   # Some versions of bash will fail to source /dev/null (special files
2960   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2961   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2962     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2963 $as_echo "$as_me: loading cache $cache_file" >&6;}
2964     case $cache_file in
2965       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2966       *)                      . "./$cache_file";;
2967     esac
2968   fi
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2971 $as_echo "$as_me: creating cache $cache_file" >&6;}
2972   >$cache_file
2973 fi
2974
2975 # Check that the precious variables saved in the cache have kept the same
2976 # value.
2977 ac_cache_corrupted=false
2978 for ac_var in $ac_precious_vars; do
2979   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2980   eval ac_new_set=\$ac_env_${ac_var}_set
2981   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2982   eval ac_new_val=\$ac_env_${ac_var}_value
2983   case $ac_old_set,$ac_new_set in
2984     set,)
2985       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2987       ac_cache_corrupted=: ;;
2988     ,set)
2989       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2991       ac_cache_corrupted=: ;;
2992     ,);;
2993     *)
2994       if test "x$ac_old_val" != "x$ac_new_val"; then
2995         # differences in whitespace do not lead to failure.
2996         ac_old_val_w=`echo x $ac_old_val`
2997         ac_new_val_w=`echo x $ac_new_val`
2998         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2999           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3001           ac_cache_corrupted=:
3002         else
3003           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3005           eval $ac_var=\$ac_old_val
3006         fi
3007         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3008 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3009         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3010 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3011       fi;;
3012   esac
3013   # Pass precious variables to config.status.
3014   if test "$ac_new_set" = set; then
3015     case $ac_new_val in
3016     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3017     *) ac_arg=$ac_var=$ac_new_val ;;
3018     esac
3019     case " $ac_configure_args " in
3020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3021       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3022     esac
3023   fi
3024 done
3025 if $ac_cache_corrupted; then
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3030   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3031 fi
3032 ## -------------------- ##
3033 ## Main body of script. ##
3034 ## -------------------- ##
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3042
3043 ac_aux_dir=
3044 for ac_dir in . "$srcdir"/.; do
3045   if test -f "$ac_dir/install-sh"; then
3046     ac_aux_dir=$ac_dir
3047     ac_install_sh="$ac_aux_dir/install-sh -c"
3048     break
3049   elif test -f "$ac_dir/install.sh"; then
3050     ac_aux_dir=$ac_dir
3051     ac_install_sh="$ac_aux_dir/install.sh -c"
3052     break
3053   elif test -f "$ac_dir/shtool"; then
3054     ac_aux_dir=$ac_dir
3055     ac_install_sh="$ac_aux_dir/shtool install -c"
3056     break
3057   fi
3058 done
3059 if test -z "$ac_aux_dir"; then
3060   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
3061 fi
3062
3063 # These three variables are undocumented and unsupported,
3064 # and are intended to be withdrawn in a future Autoconf release.
3065 # They can cause serious problems if a builder's source tree is in a directory
3066 # whose full name contains unusual characters.
3067 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3068 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3069 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3070
3071
3072
3073 ac_config_headers="$ac_config_headers config.h"
3074
3075 # Expand $ac_aux_dir to an absolute path.
3076 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$CC"; then
3092   ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 fi
3122 if test -z "$ac_cv_prog_CC"; then
3123   ac_ct_CC=$CC
3124   # Extract the first word of "gcc", so it can be a program name with args.
3125 set dummy gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$ac_ct_CC"; then
3132   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141     ac_cv_prog_ac_ct_CC="gcc"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152 if test -n "$ac_ct_CC"; then
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154 $as_echo "$ac_ct_CC" >&6; }
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160   if test "x$ac_ct_CC" = x; then
3161     CC=""
3162   else
3163     case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169     CC=$ac_ct_CC
3170   fi
3171 else
3172   CC="$ac_cv_prog_CC"
3173 fi
3174
3175 if test -z "$CC"; then
3176           if test -n "$ac_tool_prefix"; then
3177     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}cc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_CC+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$CC"; then
3185   ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     for ac_exec_ext in '' $ac_executable_extensions; do
3193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_CC="${ac_tool_prefix}cc"
3195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199   done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214   fi
3215 fi
3216 if test -z "$CC"; then
3217   # Extract the first word of "cc", so it can be a program name with args.
3218 set dummy cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222   $as_echo_n "(cached) " >&6
3223 else
3224   if test -n "$CC"; then
3225   ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227   ac_prog_rejected=no
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233     for ac_exec_ext in '' $ac_executable_extensions; do
3234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3236        ac_prog_rejected=yes
3237        continue
3238      fi
3239     ac_cv_prog_CC="cc"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 if test $ac_prog_rejected = yes; then
3248   # We found a bogon in the path, so make sure we never use it.
3249   set dummy $ac_cv_prog_CC
3250   shift
3251   if test $# != 0; then
3252     # We chose a different compiler from the bogus one.
3253     # However, it has the same basename, so the bogon will be chosen
3254     # first if we set CC to just the basename; use the full file name.
3255     shift
3256     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3257   fi
3258 fi
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271 fi
3272 if test -z "$CC"; then
3273   if test -n "$ac_tool_prefix"; then
3274   for ac_prog in cl.exe
3275   do
3276     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291     for ac_exec_ext in '' $ac_executable_extensions; do
3292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313     test -n "$CC" && break
3314   done
3315 fi
3316 if test -z "$CC"; then
3317   ac_ct_CC=$CC
3318   for ac_prog in cl.exe
3319 do
3320   # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy $ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$ac_ct_CC"; then
3328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_ac_ct_CC="$ac_prog"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3350 $as_echo "$ac_ct_CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357   test -n "$ac_ct_CC" && break
3358 done
3359
3360   if test "x$ac_ct_CC" = x; then
3361     CC=""
3362   else
3363     case $cross_compiling:$ac_tool_warned in
3364 yes:)
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned=yes ;;
3368 esac
3369     CC=$ac_ct_CC
3370   fi
3371 fi
3372
3373 fi
3374
3375
3376 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "no acceptable C compiler found in \$PATH
3379 See \`config.log' for more details" "$LINENO" 5; }
3380
3381 # Provide some information about the compiler.
3382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3383 set X $ac_compile
3384 ac_compiler=$2
3385 for ac_option in --version -v -V -qversion; do
3386   { { ac_try="$ac_compiler $ac_option >&5"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3394   ac_status=$?
3395   if test -s conftest.err; then
3396     sed '10a\
3397 ... rest of stderr output deleted ...
3398          10q' conftest.err >conftest.er1
3399     cat conftest.er1 >&5
3400   fi
3401   rm -f conftest.er1 conftest.err
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }
3404 done
3405
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h.  */
3408
3409 int
3410 main ()
3411 {
3412
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 ac_clean_files_save=$ac_clean_files
3418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3419 # Try to create an executable without -o first, disregard a.out.
3420 # It will help us diagnose broken compilers, and finding out an intuition
3421 # of exeext.
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3423 $as_echo_n "checking whether the C compiler works... " >&6; }
3424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3425
3426 # The possible output files:
3427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3428
3429 ac_rmfiles=
3430 for ac_file in $ac_files
3431 do
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3435   esac
3436 done
3437 rm -f $ac_rmfiles
3438
3439 if { { ac_try="$ac_link_default"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446   (eval "$ac_link_default") 2>&5
3447   ac_status=$?
3448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449   test $ac_status = 0; }; then :
3450   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3452 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3453 # so that the user can short-circuit this test for compilers unknown to
3454 # Autoconf.
3455 for ac_file in $ac_files ''
3456 do
3457   test -f "$ac_file" || continue
3458   case $ac_file in
3459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3460         ;;
3461     [ab].out )
3462         # We found the default executable, but exeext='' is most
3463         # certainly right.
3464         break;;
3465     *.* )
3466         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3467         then :; else
3468            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469         fi
3470         # We set ac_cv_exeext here because the later test for it is not
3471         # safe: cross compilers may not add the suffix if given an `-o'
3472         # argument, so we may need to know it at that point already.
3473         # Even if this section looks crufty: it has the advantage of
3474         # actually working.
3475         break;;
3476     * )
3477         break;;
3478   esac
3479 done
3480 test "$ac_cv_exeext" = no && ac_cv_exeext=
3481
3482 else
3483   ac_file=''
3484 fi
3485 if test -z "$ac_file"; then :
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error 77 "C compiler cannot create executables
3494 See \`config.log' for more details" "$LINENO" 5; }
3495 else
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3500 $as_echo_n "checking for C compiler default output file name... " >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3502 $as_echo "$ac_file" >&6; }
3503 ac_exeext=$ac_cv_exeext
3504
3505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3506 ac_clean_files=$ac_clean_files_save
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3508 $as_echo_n "checking for suffix of executables... " >&6; }
3509 if { { ac_try="$ac_link"
3510 case "(($ac_try" in
3511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512   *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516   (eval "$ac_link") 2>&5
3517   ac_status=$?
3518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519   test $ac_status = 0; }; then :
3520   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3521 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3522 # work properly (i.e., refer to `conftest.exe'), while it won't with
3523 # `rm'.
3524 for ac_file in conftest.exe conftest conftest.*; do
3525   test -f "$ac_file" || continue
3526   case $ac_file in
3527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529           break;;
3530     * ) break;;
3531   esac
3532 done
3533 else
3534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3537 See \`config.log' for more details" "$LINENO" 5; }
3538 fi
3539 rm -f conftest conftest$ac_cv_exeext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3541 $as_echo "$ac_cv_exeext" >&6; }
3542
3543 rm -f conftest.$ac_ext
3544 EXEEXT=$ac_cv_exeext
3545 ac_exeext=$EXEEXT
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h.  */
3548 #include <stdio.h>
3549 int
3550 main ()
3551 {
3552 FILE *f = fopen ("conftest.out", "w");
3553  return ferror (f) || fclose (f) != 0;
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 ac_clean_files="$ac_clean_files conftest.out"
3560 # Check that the compiler produces executables we can run.  If not, either
3561 # the compiler is broken, or we cross compile.
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563 $as_echo_n "checking whether we are cross compiling... " >&6; }
3564 if test "$cross_compiling" != yes; then
3565   { { ac_try="$ac_link"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572   (eval "$ac_link") 2>&5
3573   ac_status=$?
3574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575   test $ac_status = 0; }
3576   if { ac_try='./conftest$ac_cv_exeext'
3577   { { case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_try") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586   test $ac_status = 0; }; }; then
3587     cross_compiling=no
3588   else
3589     if test "$cross_compiling" = maybe; then
3590         cross_compiling=yes
3591     else
3592         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "cannot run C compiled programs.
3595 If you meant to cross compile, use \`--host'.
3596 See \`config.log' for more details" "$LINENO" 5; }
3597     fi
3598   fi
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3601 $as_echo "$cross_compiling" >&6; }
3602
3603 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3604 ac_clean_files=$ac_clean_files_save
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3606 $as_echo_n "checking for suffix of object files... " >&6; }
3607 if ${ac_cv_objext+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.o conftest.obj
3622 if { { ac_try="$ac_compile"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_compile") 2>&5
3630   ac_status=$?
3631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632   test $ac_status = 0; }; then :
3633   for ac_file in conftest.o conftest.obj conftest.*; do
3634   test -f "$ac_file" || continue;
3635   case $ac_file in
3636     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3637     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3638        break;;
3639   esac
3640 done
3641 else
3642   $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot compute suffix of object files: cannot compile
3648 See \`config.log' for more details" "$LINENO" 5; }
3649 fi
3650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3653 $as_echo "$ac_cv_objext" >&6; }
3654 OBJEXT=$ac_cv_objext
3655 ac_objext=$OBJEXT
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3657 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3658 if ${ac_cv_c_compiler_gnu+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h.  */
3663
3664 int
3665 main ()
3666 {
3667 #ifndef __GNUC__
3668        choke me
3669 #endif
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676   ac_compiler_gnu=yes
3677 else
3678   ac_compiler_gnu=no
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3682
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3685 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3686 if test $ac_compiler_gnu = yes; then
3687   GCC=yes
3688 else
3689   GCC=
3690 fi
3691 ac_test_CFLAGS=${CFLAGS+set}
3692 ac_save_CFLAGS=$CFLAGS
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3694 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3695 if ${ac_cv_prog_cc_g+:} false; then :
3696   $as_echo_n "(cached) " >&6
3697 else
3698   ac_save_c_werror_flag=$ac_c_werror_flag
3699    ac_c_werror_flag=yes
3700    ac_cv_prog_cc_g=no
3701    CFLAGS="-g"
3702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714   ac_cv_prog_cc_g=yes
3715 else
3716   CFLAGS=""
3717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729
3730 else
3731   ac_c_werror_flag=$ac_save_c_werror_flag
3732          CFLAGS="-g"
3733          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735
3736 int
3737 main ()
3738 {
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745   ac_cv_prog_cc_g=yes
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752    ac_c_werror_flag=$ac_save_c_werror_flag
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3755 $as_echo "$ac_cv_prog_cc_g" >&6; }
3756 if test "$ac_test_CFLAGS" = set; then
3757   CFLAGS=$ac_save_CFLAGS
3758 elif test $ac_cv_prog_cc_g = yes; then
3759   if test "$GCC" = yes; then
3760     CFLAGS="-g -O2"
3761   else
3762     CFLAGS="-g"
3763   fi
3764 else
3765   if test "$GCC" = yes; then
3766     CFLAGS="-O2"
3767   else
3768     CFLAGS=
3769   fi
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3773 if ${ac_cv_prog_cc_c89+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   ac_cv_prog_cc_c89=no
3777 ac_save_CC=$CC
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780 #include <stdarg.h>
3781 #include <stdio.h>
3782 struct stat;
3783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3784 struct buf { int x; };
3785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786 static char *e (p, i)
3787      char **p;
3788      int i;
3789 {
3790   return p[i];
3791 }
3792 static char *f (char * (*g) (char **, int), char **p, ...)
3793 {
3794   char *s;
3795   va_list v;
3796   va_start (v,p);
3797   s = g (p, va_arg (v,int));
3798   va_end (v);
3799   return s;
3800 }
3801
3802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3803    function prototypes and stuff, but not '\xHH' hex character constants.
3804    These don't provoke an error unfortunately, instead are silently treated
3805    as 'x'.  The following induces an error, until -std is added to get
3806    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3807    array size at least.  It's necessary to write '\x00'==0 to get something
3808    that's true only with -std.  */
3809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3810
3811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812    inside strings and character constants.  */
3813 #define FOO(x) 'x'
3814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3815
3816 int test (int i, double x);
3817 struct s1 {int (*f) (int a);};
3818 struct s2 {int (*f) (double a);};
3819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820 int argc;
3821 char **argv;
3822 int
3823 main ()
3824 {
3825 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832 do
3833   CC="$ac_save_CC $ac_arg"
3834   if ac_fn_c_try_compile "$LINENO"; then :
3835   ac_cv_prog_cc_c89=$ac_arg
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext
3838   test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 done
3840 rm -f conftest.$ac_ext
3841 CC=$ac_save_CC
3842
3843 fi
3844 # AC_CACHE_VAL
3845 case "x$ac_cv_prog_cc_c89" in
3846   x)
3847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3848 $as_echo "none needed" >&6; } ;;
3849   xno)
3850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;;
3852   *)
3853     CC="$CC $ac_cv_prog_cc_c89"
3854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3856 esac
3857 if test "x$ac_cv_prog_cc_c89" != xno; then :
3858
3859 fi
3860
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867 ac_ext=c
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3873 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3874 if ${am_cv_prog_cc_c_o+:} false; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888   # Make sure it works both with $CC and with simple cc.
3889   # Following AC_PROG_CC_C_O, we do the test twice because some
3890   # compilers refuse to overwrite an existing .o file with -o,
3891   # though they will create one.
3892   am_cv_prog_cc_c_o=yes
3893   for am_i in 1 2; do
3894     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3895    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3896    ac_status=$?
3897    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898    (exit $ac_status); } \
3899          && test -f conftest2.$ac_objext; then
3900       : OK
3901     else
3902       am_cv_prog_cc_c_o=no
3903       break
3904     fi
3905   done
3906   rm -f core conftest*
3907   unset am_i
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3910 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3911 if test "$am_cv_prog_cc_c_o" != yes; then
3912    # Losing compiler, so override with the script.
3913    # FIXME: It is wrong to rewrite CC.
3914    # But if we don't then we get into trouble of one sort or another.
3915    # A longer-term fix would be to have automake use am__CC in this case,
3916    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3917    CC="$am_aux_dir/compile $CC"
3918 fi
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3934 # On Suns, sometimes $CPP names a directory.
3935 if test -n "$CPP" && test -d "$CPP"; then
3936   CPP=
3937 fi
3938 if test -z "$CPP"; then
3939   if ${ac_cv_prog_CPP+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942       # Double quotes because CPP needs to be expanded
3943     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3944     do
3945       ac_preproc_ok=false
3946 for ac_c_preproc_warn_flag in '' yes
3947 do
3948   # Use a header file that comes with gcc, so configuring glibc
3949   # with a fresh cross-compiler works.
3950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3951   # <limits.h> exists even on freestanding compilers.
3952   # On the NeXT, cc -E runs the code through the compiler's parser,
3953   # not just through cpp. "Syntax error" is here to catch this case.
3954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961                      Syntax error
3962 _ACEOF
3963 if ac_fn_c_try_cpp "$LINENO"; then :
3964
3965 else
3966   # Broken: fails on valid input.
3967 continue
3968 fi
3969 rm -f conftest.err conftest.i conftest.$ac_ext
3970
3971   # OK, works on sane cases.  Now check whether nonexistent headers
3972   # can be detected and how.
3973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h.  */
3975 #include <ac_nonexistent.h>
3976 _ACEOF
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3978   # Broken: success on invalid input.
3979 continue
3980 else
3981   # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3984 fi
3985 rm -f conftest.err conftest.i conftest.$ac_ext
3986
3987 done
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.i conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then :
3991   break
3992 fi
3993
3994     done
3995     ac_cv_prog_CPP=$CPP
3996
3997 fi
3998   CPP=$ac_cv_prog_CPP
3999 else
4000   ac_cv_prog_CPP=$CPP
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4003 $as_echo "$CPP" >&6; }
4004 ac_preproc_ok=false
4005 for ac_c_preproc_warn_flag in '' yes
4006 do
4007   # Use a header file that comes with gcc, so configuring glibc
4008   # with a fresh cross-compiler works.
4009   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4010   # <limits.h> exists even on freestanding compilers.
4011   # On the NeXT, cc -E runs the code through the compiler's parser,
4012   # not just through cpp. "Syntax error" is here to catch this case.
4013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015 #ifdef __STDC__
4016 # include <limits.h>
4017 #else
4018 # include <assert.h>
4019 #endif
4020                      Syntax error
4021 _ACEOF
4022 if ac_fn_c_try_cpp "$LINENO"; then :
4023
4024 else
4025   # Broken: fails on valid input.
4026 continue
4027 fi
4028 rm -f conftest.err conftest.i conftest.$ac_ext
4029
4030   # OK, works on sane cases.  Now check whether nonexistent headers
4031   # can be detected and how.
4032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034 #include <ac_nonexistent.h>
4035 _ACEOF
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4037   # Broken: success on invalid input.
4038 continue
4039 else
4040   # Passes both tests.
4041 ac_preproc_ok=:
4042 break
4043 fi
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045
4046 done
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.i conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok; then :
4050
4051 else
4052   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details" "$LINENO" 5; }
4056 fi
4057
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4066 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4067 if ${ac_cv_path_GREP+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if test -z "$GREP"; then
4071   ac_path_GREP_found=false
4072   # Loop through the user's path and test for each of PROGNAME-LIST
4073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 do
4076   IFS=$as_save_IFS
4077   test -z "$as_dir" && as_dir=.
4078     for ac_prog in grep ggrep; do
4079     for ac_exec_ext in '' $ac_executable_extensions; do
4080       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4081       as_fn_executable_p "$ac_path_GREP" || continue
4082 # Check for GNU ac_path_GREP and select it if it is found.
4083   # Check for GNU $ac_path_GREP
4084 case `"$ac_path_GREP" --version 2>&1` in
4085 *GNU*)
4086   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4087 *)
4088   ac_count=0
4089   $as_echo_n 0123456789 >"conftest.in"
4090   while :
4091   do
4092     cat "conftest.in" "conftest.in" >"conftest.tmp"
4093     mv "conftest.tmp" "conftest.in"
4094     cp "conftest.in" "conftest.nl"
4095     $as_echo 'GREP' >> "conftest.nl"
4096     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4097     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4098     as_fn_arith $ac_count + 1 && ac_count=$as_val
4099     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4100       # Best one so far, save it but keep looking for a better one
4101       ac_cv_path_GREP="$ac_path_GREP"
4102       ac_path_GREP_max=$ac_count
4103     fi
4104     # 10*(2^10) chars as input seems more than enough
4105     test $ac_count -gt 10 && break
4106   done
4107   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4108 esac
4109
4110       $ac_path_GREP_found && break 3
4111     done
4112   done
4113   done
4114 IFS=$as_save_IFS
4115   if test -z "$ac_cv_path_GREP"; then
4116     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4117   fi
4118 else
4119   ac_cv_path_GREP=$GREP
4120 fi
4121
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4124 $as_echo "$ac_cv_path_GREP" >&6; }
4125  GREP="$ac_cv_path_GREP"
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4129 $as_echo_n "checking for egrep... " >&6; }
4130 if ${ac_cv_path_EGREP+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4134    then ac_cv_path_EGREP="$GREP -E"
4135    else
4136      if test -z "$EGREP"; then
4137   ac_path_EGREP_found=false
4138   # Loop through the user's path and test for each of PROGNAME-LIST
4139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144     for ac_prog in egrep; do
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4147       as_fn_executable_p "$ac_path_EGREP" || continue
4148 # Check for GNU ac_path_EGREP and select it if it is found.
4149   # Check for GNU $ac_path_EGREP
4150 case `"$ac_path_EGREP" --version 2>&1` in
4151 *GNU*)
4152   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4153 *)
4154   ac_count=0
4155   $as_echo_n 0123456789 >"conftest.in"
4156   while :
4157   do
4158     cat "conftest.in" "conftest.in" >"conftest.tmp"
4159     mv "conftest.tmp" "conftest.in"
4160     cp "conftest.in" "conftest.nl"
4161     $as_echo 'EGREP' >> "conftest.nl"
4162     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164     as_fn_arith $ac_count + 1 && ac_count=$as_val
4165     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4166       # Best one so far, save it but keep looking for a better one
4167       ac_cv_path_EGREP="$ac_path_EGREP"
4168       ac_path_EGREP_max=$ac_count
4169     fi
4170     # 10*(2^10) chars as input seems more than enough
4171     test $ac_count -gt 10 && break
4172   done
4173   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 esac
4175
4176       $ac_path_EGREP_found && break 3
4177     done
4178   done
4179   done
4180 IFS=$as_save_IFS
4181   if test -z "$ac_cv_path_EGREP"; then
4182     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183   fi
4184 else
4185   ac_cv_path_EGREP=$EGREP
4186 fi
4187
4188    fi
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4191 $as_echo "$ac_cv_path_EGREP" >&6; }
4192  EGREP="$ac_cv_path_EGREP"
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4196 $as_echo_n "checking for ANSI C header files... " >&6; }
4197 if ${ac_cv_header_stdc+:} false; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202 #include <stdlib.h>
4203 #include <stdarg.h>
4204 #include <string.h>
4205 #include <float.h>
4206
4207 int
4208 main ()
4209 {
4210
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216   ac_cv_header_stdc=yes
4217 else
4218   ac_cv_header_stdc=no
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221
4222 if test $ac_cv_header_stdc = yes; then
4223   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226 #include <string.h>
4227
4228 _ACEOF
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230   $EGREP "memchr" >/dev/null 2>&1; then :
4231
4232 else
4233   ac_cv_header_stdc=no
4234 fi
4235 rm -f conftest*
4236
4237 fi
4238
4239 if test $ac_cv_header_stdc = yes; then
4240   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h.  */
4243 #include <stdlib.h>
4244
4245 _ACEOF
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247   $EGREP "free" >/dev/null 2>&1; then :
4248
4249 else
4250   ac_cv_header_stdc=no
4251 fi
4252 rm -f conftest*
4253
4254 fi
4255
4256 if test $ac_cv_header_stdc = yes; then
4257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258   if test "$cross_compiling" = yes; then :
4259   :
4260 else
4261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263 #include <ctype.h>
4264 #include <stdlib.h>
4265 #if ((' ' & 0x0FF) == 0x020)
4266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268 #else
4269 # define ISLOWER(c) \
4270                    (('a' <= (c) && (c) <= 'i') \
4271                      || ('j' <= (c) && (c) <= 'r') \
4272                      || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4274 #endif
4275
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4277 int
4278 main ()
4279 {
4280   int i;
4281   for (i = 0; i < 256; i++)
4282     if (XOR (islower (i), ISLOWER (i))
4283         || toupper (i) != TOUPPER (i))
4284       return 2;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_run "$LINENO"; then :
4289
4290 else
4291   ac_cv_header_stdc=no
4292 fi
4293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4294   conftest.$ac_objext conftest.beam conftest.$ac_ext
4295 fi
4296
4297 fi
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4300 $as_echo "$ac_cv_header_stdc" >&6; }
4301 if test $ac_cv_header_stdc = yes; then
4302
4303 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4304
4305 fi
4306
4307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4309                   inttypes.h stdint.h unistd.h
4310 do :
4311   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4313 "
4314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4315   cat >>confdefs.h <<_ACEOF
4316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4318
4319 fi
4320
4321 done
4322
4323
4324
4325   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4326 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4327   MINIX=yes
4328 else
4329   MINIX=
4330 fi
4331
4332
4333   if test "$MINIX" = yes; then
4334
4335 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4336
4337
4338 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4339
4340
4341 $as_echo "#define _MINIX 1" >>confdefs.h
4342
4343   fi
4344
4345
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4347 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4348 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353
4354 #         define __EXTENSIONS__ 1
4355           $ac_includes_default
4356 int
4357 main ()
4358 {
4359
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365   ac_cv_safe_to_define___extensions__=yes
4366 else
4367   ac_cv_safe_to_define___extensions__=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4372 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4373   test $ac_cv_safe_to_define___extensions__ = yes &&
4374     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4375
4376   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4377
4378   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4379
4380   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4381
4382   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4383
4384
4385
4386
4387 case `pwd` in
4388   *\ * | *\     *)
4389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4391 esac
4392
4393
4394
4395 macro_version='2.4.6'
4396 macro_revision='2.4.6'
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410 ltmain=$ac_aux_dir/ltmain.sh
4411
4412 # Make sure we can run config.sub.
4413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4414   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4417 $as_echo_n "checking build system type... " >&6; }
4418 if ${ac_cv_build+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   ac_build_alias=$build_alias
4422 test "x$ac_build_alias" = x &&
4423   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4424 test "x$ac_build_alias" = x &&
4425   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4426 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4427   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4431 $as_echo "$ac_cv_build" >&6; }
4432 case $ac_cv_build in
4433 *-*-*) ;;
4434 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4435 esac
4436 build=$ac_cv_build
4437 ac_save_IFS=$IFS; IFS='-'
4438 set x $ac_cv_build
4439 shift
4440 build_cpu=$1
4441 build_vendor=$2
4442 shift; shift
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4445 build_os=$*
4446 IFS=$ac_save_IFS
4447 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4451 $as_echo_n "checking host system type... " >&6; }
4452 if ${ac_cv_host+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test "x$host_alias" = x; then
4456   ac_cv_host=$ac_cv_build
4457 else
4458   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4459     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4460 fi
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4464 $as_echo "$ac_cv_host" >&6; }
4465 case $ac_cv_host in
4466 *-*-*) ;;
4467 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4468 esac
4469 host=$ac_cv_host
4470 ac_save_IFS=$IFS; IFS='-'
4471 set x $ac_cv_host
4472 shift
4473 host_cpu=$1
4474 host_vendor=$2
4475 shift; shift
4476 # Remember, the first character of IFS is used to create $*,
4477 # except with old shells:
4478 host_os=$*
4479 IFS=$ac_save_IFS
4480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4481
4482
4483 # Backslashify metacharacters that are still active within
4484 # double-quoted strings.
4485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4486
4487 # Same as above, but do not quote variable references.
4488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4489
4490 # Sed substitution to delay expansion of an escaped shell variable in a
4491 # double_quote_subst'ed string.
4492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4493
4494 # Sed substitution to delay expansion of an escaped single quote.
4495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4496
4497 # Sed substitution to avoid accidental globbing in evaled expressions
4498 no_glob_subst='s/\*/\\\*/g'
4499
4500 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4505 $as_echo_n "checking how to print strings... " >&6; }
4506 # Test print first, because it will be a builtin if present.
4507 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4508    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4509   ECHO='print -r --'
4510 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4511   ECHO='printf %s\n'
4512 else
4513   # Use this function as a fallback that always works.
4514   func_fallback_echo ()
4515   {
4516     eval 'cat <<_LTECHO_EOF
4517 $1
4518 _LTECHO_EOF'
4519   }
4520   ECHO='func_fallback_echo'
4521 fi
4522
4523 # func_echo_all arg...
4524 # Invoke $ECHO with all args, space-separated.
4525 func_echo_all ()
4526 {
4527     $ECHO ""
4528 }
4529
4530 case $ECHO in
4531   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4532 $as_echo "printf" >&6; } ;;
4533   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4534 $as_echo "print -r" >&6; } ;;
4535   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4536 $as_echo "cat" >&6; } ;;
4537 esac
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4553 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4554 if ${ac_cv_path_SED+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4558      for ac_i in 1 2 3 4 5 6 7; do
4559        ac_script="$ac_script$as_nl$ac_script"
4560      done
4561      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4562      { ac_script=; unset ac_script;}
4563      if test -z "$SED"; then
4564   ac_path_SED_found=false
4565   # Loop through the user's path and test for each of PROGNAME-LIST
4566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571     for ac_prog in sed gsed; do
4572     for ac_exec_ext in '' $ac_executable_extensions; do
4573       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4574       as_fn_executable_p "$ac_path_SED" || continue
4575 # Check for GNU ac_path_SED and select it if it is found.
4576   # Check for GNU $ac_path_SED
4577 case `"$ac_path_SED" --version 2>&1` in
4578 *GNU*)
4579   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4580 *)
4581   ac_count=0
4582   $as_echo_n 0123456789 >"conftest.in"
4583   while :
4584   do
4585     cat "conftest.in" "conftest.in" >"conftest.tmp"
4586     mv "conftest.tmp" "conftest.in"
4587     cp "conftest.in" "conftest.nl"
4588     $as_echo '' >> "conftest.nl"
4589     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591     as_fn_arith $ac_count + 1 && ac_count=$as_val
4592     if test $ac_count -gt ${ac_path_SED_max-0}; then
4593       # Best one so far, save it but keep looking for a better one
4594       ac_cv_path_SED="$ac_path_SED"
4595       ac_path_SED_max=$ac_count
4596     fi
4597     # 10*(2^10) chars as input seems more than enough
4598     test $ac_count -gt 10 && break
4599   done
4600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601 esac
4602
4603       $ac_path_SED_found && break 3
4604     done
4605   done
4606   done
4607 IFS=$as_save_IFS
4608   if test -z "$ac_cv_path_SED"; then
4609     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4610   fi
4611 else
4612   ac_cv_path_SED=$SED
4613 fi
4614
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4617 $as_echo "$ac_cv_path_SED" >&6; }
4618  SED="$ac_cv_path_SED"
4619   rm -f conftest.sed
4620
4621 test -z "$SED" && SED=sed
4622 Xsed="$SED -e 1s/^X//"
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4635 $as_echo_n "checking for fgrep... " >&6; }
4636 if ${ac_cv_path_FGREP+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4640    then ac_cv_path_FGREP="$GREP -F"
4641    else
4642      if test -z "$FGREP"; then
4643   ac_path_FGREP_found=false
4644   # Loop through the user's path and test for each of PROGNAME-LIST
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_prog in fgrep; do
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4653       as_fn_executable_p "$ac_path_FGREP" || continue
4654 # Check for GNU ac_path_FGREP and select it if it is found.
4655   # Check for GNU $ac_path_FGREP
4656 case `"$ac_path_FGREP" --version 2>&1` in
4657 *GNU*)
4658   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4659 *)
4660   ac_count=0
4661   $as_echo_n 0123456789 >"conftest.in"
4662   while :
4663   do
4664     cat "conftest.in" "conftest.in" >"conftest.tmp"
4665     mv "conftest.tmp" "conftest.in"
4666     cp "conftest.in" "conftest.nl"
4667     $as_echo 'FGREP' >> "conftest.nl"
4668     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670     as_fn_arith $ac_count + 1 && ac_count=$as_val
4671     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4672       # Best one so far, save it but keep looking for a better one
4673       ac_cv_path_FGREP="$ac_path_FGREP"
4674       ac_path_FGREP_max=$ac_count
4675     fi
4676     # 10*(2^10) chars as input seems more than enough
4677     test $ac_count -gt 10 && break
4678   done
4679   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682       $ac_path_FGREP_found && break 3
4683     done
4684   done
4685   done
4686 IFS=$as_save_IFS
4687   if test -z "$ac_cv_path_FGREP"; then
4688     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4689   fi
4690 else
4691   ac_cv_path_FGREP=$FGREP
4692 fi
4693
4694    fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4697 $as_echo "$ac_cv_path_FGREP" >&6; }
4698  FGREP="$ac_cv_path_FGREP"
4699
4700
4701 test -z "$GREP" && GREP=grep
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721 # Check whether --with-gnu-ld was given.
4722 if test "${with_gnu_ld+set}" = set; then :
4723   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4724 else
4725   with_gnu_ld=no
4726 fi
4727
4728 ac_prog=ld
4729 if test yes = "$GCC"; then
4730   # Check if gcc -print-prog-name=ld gives a path.
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4732 $as_echo_n "checking for ld used by $CC... " >&6; }
4733   case $host in
4734   *-*-mingw*)
4735     # gcc leaves a trailing carriage return, which upsets mingw
4736     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4737   *)
4738     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4739   esac
4740   case $ac_prog in
4741     # Accept absolute paths.
4742     [\\/]* | ?:[\\/]*)
4743       re_direlt='/[^/][^/]*/\.\./'
4744       # Canonicalize the pathname of ld
4745       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4746       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4747         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4748       done
4749       test -z "$LD" && LD=$ac_prog
4750       ;;
4751   "")
4752     # If it fails, then pretend we aren't using GCC.
4753     ac_prog=ld
4754     ;;
4755   *)
4756     # If it is relative, then search for the first ld in PATH.
4757     with_gnu_ld=unknown
4758     ;;
4759   esac
4760 elif test yes = "$with_gnu_ld"; then
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4762 $as_echo_n "checking for GNU ld... " >&6; }
4763 else
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4765 $as_echo_n "checking for non-GNU ld... " >&6; }
4766 fi
4767 if ${lt_cv_path_LD+:} false; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   if test -z "$LD"; then
4771   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4772   for ac_dir in $PATH; do
4773     IFS=$lt_save_ifs
4774     test -z "$ac_dir" && ac_dir=.
4775     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776       lt_cv_path_LD=$ac_dir/$ac_prog
4777       # Check to see if the program is GNU ld.  I'd rather use --version,
4778       # but apparently some variants of GNU ld only accept -v.
4779       # Break only if it was the GNU/non-GNU ld that we prefer.
4780       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781       *GNU* | *'with BFD'*)
4782         test no != "$with_gnu_ld" && break
4783         ;;
4784       *)
4785         test yes != "$with_gnu_ld" && break
4786         ;;
4787       esac
4788     fi
4789   done
4790   IFS=$lt_save_ifs
4791 else
4792   lt_cv_path_LD=$LD # Let the user override the test with a path.
4793 fi
4794 fi
4795
4796 LD=$lt_cv_path_LD
4797 if test -n "$LD"; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4799 $as_echo "$LD" >&6; }
4800 else
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4806 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4807 if ${lt_cv_prog_gnu_ld+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4811 case `$LD -v 2>&1 </dev/null` in
4812 *GNU* | *'with BFD'*)
4813   lt_cv_prog_gnu_ld=yes
4814   ;;
4815 *)
4816   lt_cv_prog_gnu_ld=no
4817   ;;
4818 esac
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4821 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4822 with_gnu_ld=$lt_cv_prog_gnu_ld
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4833 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4834 if ${lt_cv_path_NM+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   if test -n "$NM"; then
4838   # Let the user override the test.
4839   lt_cv_path_NM=$NM
4840 else
4841   lt_nm_to_check=${ac_tool_prefix}nm
4842   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4843     lt_nm_to_check="$lt_nm_to_check nm"
4844   fi
4845   for lt_tmp_nm in $lt_nm_to_check; do
4846     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4847     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4848       IFS=$lt_save_ifs
4849       test -z "$ac_dir" && ac_dir=.
4850       tmp_nm=$ac_dir/$lt_tmp_nm
4851       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4852         # Check to see if the nm accepts a BSD-compat flag.
4853         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4854         #   nm: unknown option "B" ignored
4855         # Tru64's nm complains that /dev/null is an invalid object file
4856         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4857         case $build_os in
4858         mingw*) lt_bad_file=conftest.nm/nofile ;;
4859         *) lt_bad_file=/dev/null ;;
4860         esac
4861         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4862         *$lt_bad_file* | *'Invalid file or object type'*)
4863           lt_cv_path_NM="$tmp_nm -B"
4864           break 2
4865           ;;
4866         *)
4867           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4868           */dev/null*)
4869             lt_cv_path_NM="$tmp_nm -p"
4870             break 2
4871             ;;
4872           *)
4873             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4874             continue # so that we can try to find one that supports BSD flags
4875             ;;
4876           esac
4877           ;;
4878         esac
4879       fi
4880     done
4881     IFS=$lt_save_ifs
4882   done
4883   : ${lt_cv_path_NM=no}
4884 fi
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4887 $as_echo "$lt_cv_path_NM" >&6; }
4888 if test no != "$lt_cv_path_NM"; then
4889   NM=$lt_cv_path_NM
4890 else
4891   # Didn't find any BSD compatible name lister, look for dumpbin.
4892   if test -n "$DUMPBIN"; then :
4893     # Let the user override the test.
4894   else
4895     if test -n "$ac_tool_prefix"; then
4896   for ac_prog in dumpbin "link -dump"
4897   do
4898     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_DUMPBIN+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   if test -n "$DUMPBIN"; then
4906   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_exec_ext in '' $ac_executable_extensions; do
4914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920   done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 DUMPBIN=$ac_cv_prog_DUMPBIN
4926 if test -n "$DUMPBIN"; then
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4928 $as_echo "$DUMPBIN" >&6; }
4929 else
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933
4934
4935     test -n "$DUMPBIN" && break
4936   done
4937 fi
4938 if test -z "$DUMPBIN"; then
4939   ac_ct_DUMPBIN=$DUMPBIN
4940   for ac_prog in dumpbin "link -dump"
4941 do
4942   # Extract the first word of "$ac_prog", so it can be a program name with args.
4943 set dummy $ac_prog; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if test -n "$ac_ct_DUMPBIN"; then
4950   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964   done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4970 if test -n "$ac_ct_DUMPBIN"; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4972 $as_echo "$ac_ct_DUMPBIN" >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979   test -n "$ac_ct_DUMPBIN" && break
4980 done
4981
4982   if test "x$ac_ct_DUMPBIN" = x; then
4983     DUMPBIN=":"
4984   else
4985     case $cross_compiling:$ac_tool_warned in
4986 yes:)
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989 ac_tool_warned=yes ;;
4990 esac
4991     DUMPBIN=$ac_ct_DUMPBIN
4992   fi
4993 fi
4994
4995     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4996     *COFF*)
4997       DUMPBIN="$DUMPBIN -symbols -headers"
4998       ;;
4999     *)
5000       DUMPBIN=:
5001       ;;
5002     esac
5003   fi
5004
5005   if test : != "$DUMPBIN"; then
5006     NM=$DUMPBIN
5007   fi
5008 fi
5009 test -z "$NM" && NM=nm
5010
5011
5012
5013
5014
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5017 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5018 if ${lt_cv_nm_interface+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   lt_cv_nm_interface="BSD nm"
5022   echo "int some_variable = 0;" > conftest.$ac_ext
5023   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5024   (eval "$ac_compile" 2>conftest.err)
5025   cat conftest.err >&5
5026   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5027   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5028   cat conftest.err >&5
5029   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5030   cat conftest.out >&5
5031   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5032     lt_cv_nm_interface="MS dumpbin"
5033   fi
5034   rm -f conftest*
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5037 $as_echo "$lt_cv_nm_interface" >&6; }
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5040 $as_echo_n "checking whether ln -s works... " >&6; }
5041 LN_S=$as_ln_s
5042 if test "$LN_S" = "ln -s"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5047 $as_echo "no, using $LN_S" >&6; }
5048 fi
5049
5050 # find the maximum length of command line arguments
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5052 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5053 if ${lt_cv_sys_max_cmd_len+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056     i=0
5057   teststring=ABCD
5058
5059   case $build_os in
5060   msdosdjgpp*)
5061     # On DJGPP, this test can blow up pretty badly due to problems in libc
5062     # (any single argument exceeding 2000 bytes causes a buffer overrun
5063     # during glob expansion).  Even if it were fixed, the result of this
5064     # check would be larger than it should be.
5065     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5066     ;;
5067
5068   gnu*)
5069     # Under GNU Hurd, this test is not required because there is
5070     # no limit to the length of command line arguments.
5071     # Libtool will interpret -1 as no limit whatsoever
5072     lt_cv_sys_max_cmd_len=-1;
5073     ;;
5074
5075   cygwin* | mingw* | cegcc*)
5076     # On Win9x/ME, this test blows up -- it succeeds, but takes
5077     # about 5 minutes as the teststring grows exponentially.
5078     # Worse, since 9x/ME are not pre-emptively multitasking,
5079     # you end up with a "frozen" computer, even though with patience
5080     # the test eventually succeeds (with a max line length of 256k).
5081     # Instead, let's just punt: use the minimum linelength reported by
5082     # all of the supported platforms: 8192 (on NT/2K/XP).
5083     lt_cv_sys_max_cmd_len=8192;
5084     ;;
5085
5086   mint*)
5087     # On MiNT this can take a long time and run out of memory.
5088     lt_cv_sys_max_cmd_len=8192;
5089     ;;
5090
5091   amigaos*)
5092     # On AmigaOS with pdksh, this test takes hours, literally.
5093     # So we just punt and use a minimum line length of 8192.
5094     lt_cv_sys_max_cmd_len=8192;
5095     ;;
5096
5097   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5098     # This has been around since 386BSD, at least.  Likely further.
5099     if test -x /sbin/sysctl; then
5100       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5101     elif test -x /usr/sbin/sysctl; then
5102       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5103     else
5104       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5105     fi
5106     # And add a safety zone
5107     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5108     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5109     ;;
5110
5111   interix*)
5112     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5113     lt_cv_sys_max_cmd_len=196608
5114     ;;
5115
5116   os2*)
5117     # The test takes a long time on OS/2.
5118     lt_cv_sys_max_cmd_len=8192
5119     ;;
5120
5121   osf*)
5122     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124     # nice to cause kernel panics so lets avoid the loop below.
5125     # First set a reasonable default.
5126     lt_cv_sys_max_cmd_len=16384
5127     #
5128     if test -x /sbin/sysconfig; then
5129       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131       esac
5132     fi
5133     ;;
5134   sco3.2v5*)
5135     lt_cv_sys_max_cmd_len=102400
5136     ;;
5137   sysv5* | sco5v6* | sysv4.2uw2*)
5138     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139     if test -n "$kargmax"; then
5140       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5141     else
5142       lt_cv_sys_max_cmd_len=32768
5143     fi
5144     ;;
5145   *)
5146     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147     if test -n "$lt_cv_sys_max_cmd_len" && \
5148        test undefined != "$lt_cv_sys_max_cmd_len"; then
5149       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5150       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5151     else
5152       # Make teststring a little bigger before we do anything with it.
5153       # a 1K string should be a reasonable start.
5154       for i in 1 2 3 4 5 6 7 8; do
5155         teststring=$teststring$teststring
5156       done
5157       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5158       # If test is not a shell built-in, we'll probably end up computing a
5159       # maximum length that is only half of the actual maximum length, but
5160       # we can't tell.
5161       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5162                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5163               test 17 != "$i" # 1/2 MB should be enough
5164       do
5165         i=`expr $i + 1`
5166         teststring=$teststring$teststring
5167       done
5168       # Only check the string length outside the loop.
5169       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5170       teststring=
5171       # Add a significant safety factor because C++ compilers can tack on
5172       # massive amounts of additional arguments before passing them to the
5173       # linker.  It appears as though 1/2 is a usable value.
5174       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5175     fi
5176     ;;
5177   esac
5178
5179 fi
5180
5181 if test -n "$lt_cv_sys_max_cmd_len"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5183 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5186 $as_echo "none" >&6; }
5187 fi
5188 max_cmd_len=$lt_cv_sys_max_cmd_len
5189
5190
5191
5192
5193
5194
5195 : ${CP="cp -f"}
5196 : ${MV="mv -f"}
5197 : ${RM="rm -f"}
5198
5199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5200   lt_unset=unset
5201 else
5202   lt_unset=false
5203 fi
5204
5205
5206
5207
5208
5209 # test EBCDIC or ASCII
5210 case `echo X|tr X '\101'` in
5211  A) # ASCII based system
5212     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5213   lt_SP2NL='tr \040 \012'
5214   lt_NL2SP='tr \015\012 \040\040'
5215   ;;
5216  *) # EBCDIC based system
5217   lt_SP2NL='tr \100 \n'
5218   lt_NL2SP='tr \r\n \100\100'
5219   ;;
5220 esac
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5231 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5232 if ${lt_cv_to_host_file_cmd+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   case $host in
5236   *-*-mingw* )
5237     case $build in
5238       *-*-mingw* ) # actually msys
5239         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5240         ;;
5241       *-*-cygwin* )
5242         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5243         ;;
5244       * ) # otherwise, assume *nix
5245         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5246         ;;
5247     esac
5248     ;;
5249   *-*-cygwin* )
5250     case $build in
5251       *-*-mingw* ) # actually msys
5252         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5253         ;;
5254       *-*-cygwin* )
5255         lt_cv_to_host_file_cmd=func_convert_file_noop
5256         ;;
5257       * ) # otherwise, assume *nix
5258         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5259         ;;
5260     esac
5261     ;;
5262   * ) # unhandled hosts (and "normal" native builds)
5263     lt_cv_to_host_file_cmd=func_convert_file_noop
5264     ;;
5265 esac
5266
5267 fi
5268
5269 to_host_file_cmd=$lt_cv_to_host_file_cmd
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5271 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5278 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5279 if ${lt_cv_to_tool_file_cmd+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   #assume ordinary cross tools, or native build.
5283 lt_cv_to_tool_file_cmd=func_convert_file_noop
5284 case $host in
5285   *-*-mingw* )
5286     case $build in
5287       *-*-mingw* ) # actually msys
5288         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5289         ;;
5290     esac
5291     ;;
5292 esac
5293
5294 fi
5295
5296 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5298 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5299
5300
5301
5302
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5305 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5306 if ${lt_cv_ld_reload_flag+:} false; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   lt_cv_ld_reload_flag='-r'
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5312 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5313 reload_flag=$lt_cv_ld_reload_flag
5314 case $reload_flag in
5315 "" | " "*) ;;
5316 *) reload_flag=" $reload_flag" ;;
5317 esac
5318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5319 case $host_os in
5320   cygwin* | mingw* | pw32* | cegcc*)
5321     if test yes != "$GCC"; then
5322       reload_cmds=false
5323     fi
5324     ;;
5325   darwin*)
5326     if test yes = "$GCC"; then
5327       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5328     else
5329       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330     fi
5331     ;;
5332 esac
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 if test -n "$ac_tool_prefix"; then
5343   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_OBJDUMP+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   if test -n "$OBJDUMP"; then
5351   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358     for ac_exec_ext in '' $ac_executable_extensions; do
5359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365   done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 OBJDUMP=$ac_cv_prog_OBJDUMP
5371 if test -n "$OBJDUMP"; then
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5373 $as_echo "$OBJDUMP" >&6; }
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378
5379
5380 fi
5381 if test -z "$ac_cv_prog_OBJDUMP"; then
5382   ac_ct_OBJDUMP=$OBJDUMP
5383   # Extract the first word of "objdump", so it can be a program name with args.
5384 set dummy objdump; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   if test -n "$ac_ct_OBJDUMP"; then
5391   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405   done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5411 if test -n "$ac_ct_OBJDUMP"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5413 $as_echo "$ac_ct_OBJDUMP" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419   if test "x$ac_ct_OBJDUMP" = x; then
5420     OBJDUMP="false"
5421   else
5422     case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428     OBJDUMP=$ac_ct_OBJDUMP
5429   fi
5430 else
5431   OBJDUMP="$ac_cv_prog_OBJDUMP"
5432 fi
5433
5434 test -z "$OBJDUMP" && OBJDUMP=objdump
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5445 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5446 if ${lt_cv_deplibs_check_method+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   lt_cv_file_magic_cmd='$MAGIC_CMD'
5450 lt_cv_file_magic_test_file=
5451 lt_cv_deplibs_check_method='unknown'
5452 # Need to set the preceding variable on all platforms that support
5453 # interlibrary dependencies.
5454 # 'none' -- dependencies not supported.
5455 # 'unknown' -- same as none, but documents that we really don't know.
5456 # 'pass_all' -- all dependencies passed with no checks.
5457 # 'test_compile' -- check by making test program.
5458 # 'file_magic [[regex]]' -- check by looking for files in library path
5459 # that responds to the $file_magic_cmd with a given extended regex.
5460 # If you have 'file' or equivalent on your system and you're not sure
5461 # whether 'pass_all' will *always* work, you probably want this one.
5462
5463 case $host_os in
5464 aix[4-9]*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 beos*)
5469   lt_cv_deplibs_check_method=pass_all
5470   ;;
5471
5472 bsdi[45]*)
5473   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5474   lt_cv_file_magic_cmd='/usr/bin/file -L'
5475   lt_cv_file_magic_test_file=/shlib/libc.so
5476   ;;
5477
5478 cygwin*)
5479   # func_win32_libid is a shell function defined in ltmain.sh
5480   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5481   lt_cv_file_magic_cmd='func_win32_libid'
5482   ;;
5483
5484 mingw* | pw32*)
5485   # Base MSYS/MinGW do not provide the 'file' command needed by
5486   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5487   # unless we find 'file', for example because we are cross-compiling.
5488   if ( file / ) >/dev/null 2>&1; then
5489     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490     lt_cv_file_magic_cmd='func_win32_libid'
5491   else
5492     # Keep this pattern in sync with the one in func_win32_libid.
5493     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5494     lt_cv_file_magic_cmd='$OBJDUMP -f'
5495   fi
5496   ;;
5497
5498 cegcc*)
5499   # use the weaker test based on 'objdump'. See mingw*.
5500   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5501   lt_cv_file_magic_cmd='$OBJDUMP -f'
5502   ;;
5503
5504 darwin* | rhapsody*)
5505   lt_cv_deplibs_check_method=pass_all
5506   ;;
5507
5508 freebsd* | dragonfly*)
5509   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5510     case $host_cpu in
5511     i*86 )
5512       # Not sure whether the presence of OpenBSD here was a mistake.
5513       # Let's accept both of them until this is cleared up.
5514       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5515       lt_cv_file_magic_cmd=/usr/bin/file
5516       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5517       ;;
5518     esac
5519   else
5520     lt_cv_deplibs_check_method=pass_all
5521   fi
5522   ;;
5523
5524 haiku*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 hpux10.20* | hpux11*)
5529   lt_cv_file_magic_cmd=/usr/bin/file
5530   case $host_cpu in
5531   ia64*)
5532     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5533     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5534     ;;
5535   hppa*64*)
5536     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]'
5537     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5538     ;;
5539   *)
5540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5541     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5542     ;;
5543   esac
5544   ;;
5545
5546 interix[3-9]*)
5547   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5548   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5549   ;;
5550
5551 irix5* | irix6* | nonstopux*)
5552   case $LD in
5553   *-32|*"-32 ") libmagic=32-bit;;
5554   *-n32|*"-n32 ") libmagic=N32;;
5555   *-64|*"-64 ") libmagic=64-bit;;
5556   *) libmagic=never-match;;
5557   esac
5558   lt_cv_deplibs_check_method=pass_all
5559   ;;
5560
5561 # This must be glibc/ELF.
5562 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 netbsd* | netbsdelf*-gnu)
5567   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5569   else
5570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5571   fi
5572   ;;
5573
5574 newos6*)
5575   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5576   lt_cv_file_magic_cmd=/usr/bin/file
5577   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5578   ;;
5579
5580 *nto* | *qnx*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 openbsd* | bitrig*)
5585   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5586     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5587   else
5588     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5589   fi
5590   ;;
5591
5592 osf3* | osf4* | osf5*)
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 rdos*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 solaris*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 sysv4 | sysv4.3*)
5609   case $host_vendor in
5610   motorola)
5611     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]'
5612     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5613     ;;
5614   ncr)
5615     lt_cv_deplibs_check_method=pass_all
5616     ;;
5617   sequent)
5618     lt_cv_file_magic_cmd='/bin/file'
5619     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5620     ;;
5621   sni)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5624     lt_cv_file_magic_test_file=/lib/libc.so
5625     ;;
5626   siemens)
5627     lt_cv_deplibs_check_method=pass_all
5628     ;;
5629   pc)
5630     lt_cv_deplibs_check_method=pass_all
5631     ;;
5632   esac
5633   ;;
5634
5635 tpf*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638 os2*)
5639   lt_cv_deplibs_check_method=pass_all
5640   ;;
5641 esac
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5645 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5646
5647 file_magic_glob=
5648 want_nocaseglob=no
5649 if test "$build" = "$host"; then
5650   case $host_os in
5651   mingw* | pw32*)
5652     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5653       want_nocaseglob=yes
5654     else
5655       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5656     fi
5657     ;;
5658   esac
5659 fi
5660
5661 file_magic_cmd=$lt_cv_file_magic_cmd
5662 deplibs_check_method=$lt_cv_deplibs_check_method
5663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_DLLTOOL+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   if test -n "$DLLTOOL"; then
5695   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702     for ac_exec_ext in '' $ac_executable_extensions; do
5703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709   done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 DLLTOOL=$ac_cv_prog_DLLTOOL
5715 if test -n "$DLLTOOL"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5717 $as_echo "$DLLTOOL" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_DLLTOOL"; then
5726   ac_ct_DLLTOOL=$DLLTOOL
5727   # Extract the first word of "dlltool", so it can be a program name with args.
5728 set dummy dlltool; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$ac_ct_DLLTOOL"; then
5735   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5755 if test -n "$ac_ct_DLLTOOL"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5757 $as_echo "$ac_ct_DLLTOOL" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763   if test "x$ac_ct_DLLTOOL" = x; then
5764     DLLTOOL="false"
5765   else
5766     case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772     DLLTOOL=$ac_ct_DLLTOOL
5773   fi
5774 else
5775   DLLTOOL="$ac_cv_prog_DLLTOOL"
5776 fi
5777
5778 test -z "$DLLTOOL" && DLLTOOL=dlltool
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5790 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5791 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   lt_cv_sharedlib_from_linklib_cmd='unknown'
5795
5796 case $host_os in
5797 cygwin* | mingw* | pw32* | cegcc*)
5798   # two different shell functions defined in ltmain.sh;
5799   # decide which one to use based on capabilities of $DLLTOOL
5800   case `$DLLTOOL --help 2>&1` in
5801   *--identify-strict*)
5802     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5803     ;;
5804   *)
5805     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5806     ;;
5807   esac
5808   ;;
5809 *)
5810   # fallback: assume linklib IS sharedlib
5811   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5812   ;;
5813 esac
5814
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5817 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5818 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5819 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5820
5821
5822
5823
5824
5825
5826
5827 if test -n "$ac_tool_prefix"; then
5828   for ac_prog in ar
5829   do
5830     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_AR+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$AR"; then
5838   ac_cv_prog_AR="$AR" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 AR=$ac_cv_prog_AR
5858 if test -n "$AR"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860 $as_echo "$AR" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867     test -n "$AR" && break
5868   done
5869 fi
5870 if test -z "$AR"; then
5871   ac_ct_AR=$AR
5872   for ac_prog in ar
5873 do
5874   # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   if test -n "$ac_ct_AR"; then
5882   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_ac_ct_AR="$ac_prog"
5892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896   done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904 $as_echo "$ac_ct_AR" >&6; }
5905 else
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911   test -n "$ac_ct_AR" && break
5912 done
5913
5914   if test "x$ac_ct_AR" = x; then
5915     AR="false"
5916   else
5917     case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923     AR=$ac_ct_AR
5924   fi
5925 fi
5926
5927 : ${AR=ar}
5928 : ${AR_FLAGS=cr}
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5941 $as_echo_n "checking for archiver @FILE support... " >&6; }
5942 if ${lt_cv_ar_at_file+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   lt_cv_ar_at_file=no
5946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948
5949 int
5950 main ()
5951 {
5952
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958   echo conftest.$ac_objext > conftest.lst
5959       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5960       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5961   (eval $lt_ar_try) 2>&5
5962   ac_status=$?
5963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964   test $ac_status = 0; }
5965       if test 0 -eq "$ac_status"; then
5966         # Ensure the archiver fails upon bogus file names.
5967         rm -f conftest.$ac_objext libconftest.a
5968         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5969   (eval $lt_ar_try) 2>&5
5970   ac_status=$?
5971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972   test $ac_status = 0; }
5973         if test 0 -ne "$ac_status"; then
5974           lt_cv_ar_at_file=@
5975         fi
5976       fi
5977       rm -f conftest.* libconftest.a
5978
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5984 $as_echo "$lt_cv_ar_at_file" >&6; }
5985
5986 if test no = "$lt_cv_ar_at_file"; then
5987   archiver_list_spec=
5988 else
5989   archiver_list_spec=$lt_cv_ar_at_file
5990 fi
5991
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_STRIP+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   if test -n "$STRIP"; then
6007   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_STRIP"; then
6038   ac_ct_STRIP=$STRIP
6039   # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   if test -n "$ac_ct_STRIP"; then
6047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054     for ac_exec_ext in '' $ac_executable_extensions; do
6055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056     ac_cv_prog_ac_ct_STRIP="strip"
6057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061   done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075   if test "x$ac_ct_STRIP" = x; then
6076     STRIP=":"
6077   else
6078     case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084     STRIP=$ac_ct_STRIP
6085   fi
6086 else
6087   STRIP="$ac_cv_prog_STRIP"
6088 fi
6089
6090 test -z "$STRIP" && STRIP=:
6091
6092
6093
6094
6095
6096
6097 if test -n "$ac_tool_prefix"; then
6098   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_RANLIB+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$RANLIB"; then
6106   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137   ac_ct_RANLIB=$RANLIB
6138   # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   if test -n "$ac_ct_RANLIB"; then
6146   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_exec_ext in '' $ac_executable_extensions; do
6154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155     ac_cv_prog_ac_ct_RANLIB="ranlib"
6156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160   done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174   if test "x$ac_ct_RANLIB" = x; then
6175     RANLIB=":"
6176   else
6177     case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     RANLIB=$ac_ct_RANLIB
6184   fi
6185 else
6186   RANLIB="$ac_cv_prog_RANLIB"
6187 fi
6188
6189 test -z "$RANLIB" && RANLIB=:
6190
6191
6192
6193
6194
6195
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6200
6201 if test -n "$RANLIB"; then
6202   case $host_os in
6203   bitrig* | openbsd*)
6204     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6205     ;;
6206   *)
6207     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6208     ;;
6209   esac
6210   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6211 fi
6212
6213 case $host_os in
6214   darwin*)
6215     lock_old_archive_extraction=yes ;;
6216   *)
6217     lock_old_archive_extraction=no ;;
6218 esac
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 for ac_prog in gawk mawk nawk awk
6241 do
6242   # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_AWK+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -n "$AWK"; then
6250   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259     ac_cv_prog_AWK="$ac_prog"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264   done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 AWK=$ac_cv_prog_AWK
6270 if test -n "$AWK"; then
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6272 $as_echo "$AWK" >&6; }
6273 else
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279   test -n "$AWK" && break
6280 done
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 # If no C compiler was specified, use CC.
6301 LTCC=${LTCC-"$CC"}
6302
6303 # If no C compiler flags were specified, use CFLAGS.
6304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6305
6306 # Allow CC to be a program name with arguments.
6307 compiler=$CC
6308
6309
6310 # Check for command to grab the raw symbol name followed by C symbol from nm.
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6312 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6313 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316
6317 # These are sane defaults that work on at least a few old systems.
6318 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6319
6320 # Character class describing NM global symbol codes.
6321 symcode='[BCDEGRST]'
6322
6323 # Regexp to match symbols that can be accessed directly from C.
6324 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6325
6326 # Define system-specific variables.
6327 case $host_os in
6328 aix*)
6329   symcode='[BCDT]'
6330   ;;
6331 cygwin* | mingw* | pw32* | cegcc*)
6332   symcode='[ABCDGISTW]'
6333   ;;
6334 hpux*)
6335   if test ia64 = "$host_cpu"; then
6336     symcode='[ABCDEGRST]'
6337   fi
6338   ;;
6339 irix* | nonstopux*)
6340   symcode='[BCDEGRST]'
6341   ;;
6342 osf*)
6343   symcode='[BCDEGQRST]'
6344   ;;
6345 solaris*)
6346   symcode='[BDRT]'
6347   ;;
6348 sco3.2v5*)
6349   symcode='[DT]'
6350   ;;
6351 sysv4.2uw2*)
6352   symcode='[DT]'
6353   ;;
6354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6355   symcode='[ABDT]'
6356   ;;
6357 sysv4)
6358   symcode='[DFNSTU]'
6359   ;;
6360 esac
6361
6362 # If we're using GNU nm, then use its standard symbol codes.
6363 case `$NM -V 2>&1` in
6364 *GNU* | *'with BFD'*)
6365   symcode='[ABCDGIRSTW]' ;;
6366 esac
6367
6368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6369   # Gets list of data symbols to import.
6370   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6371   # Adjust the below global symbol transforms to fixup imported variables.
6372   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6373   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6374   lt_c_name_lib_hook="\
6375   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6376   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6377 else
6378   # Disable hooks by default.
6379   lt_cv_sys_global_symbol_to_import=
6380   lt_cdecl_hook=
6381   lt_c_name_hook=
6382   lt_c_name_lib_hook=
6383 fi
6384
6385 # Transform an extracted symbol line into a proper C declaration.
6386 # Some systems (esp. on ia64) link data and code symbols differently,
6387 # so use this general approach.
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6389 $lt_cdecl_hook\
6390 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6391 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6392
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6395 $lt_c_name_hook\
6396 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6397 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6398
6399 # Transform an extracted symbol line into symbol name with lib prefix and
6400 # symbol address.
6401 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6402 $lt_c_name_lib_hook\
6403 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6404 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6405 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6406
6407 # Handle CRLF in mingw tool chain
6408 opt_cr=
6409 case $build_os in
6410 mingw*)
6411   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6412   ;;
6413 esac
6414
6415 # Try without a prefix underscore, then with it.
6416 for ac_symprfx in "" "_"; do
6417
6418   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6419   symxfrm="\\1 $ac_symprfx\\2 \\2"
6420
6421   # Write the raw and C identifiers.
6422   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423     # Fake it for dumpbin and say T for any non-static function,
6424     # D for any global variable and I for any imported variable.
6425     # Also find C++ and __fastcall symbols from MSVC++,
6426     # which start with @ or ?.
6427     lt_cv_sys_global_symbol_pipe="$AWK '"\
6428 "     {last_section=section; section=\$ 3};"\
6429 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6430 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6431 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6432 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6433 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6434 "     \$ 0!~/External *\|/{next};"\
6435 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6436 "     {if(hide[section]) next};"\
6437 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6438 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6439 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6440 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6441 "     ' prfx=^$ac_symprfx"
6442   else
6443     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6444   fi
6445   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6446
6447   # Check to see that the pipe works correctly.
6448   pipe_works=no
6449
6450   rm -f conftest*
6451   cat > conftest.$ac_ext <<_LT_EOF
6452 #ifdef __cplusplus
6453 extern "C" {
6454 #endif
6455 char nm_test_var;
6456 void nm_test_func(void);
6457 void nm_test_func(void){}
6458 #ifdef __cplusplus
6459 }
6460 #endif
6461 int main(){nm_test_var='a';nm_test_func();return(0);}
6462 _LT_EOF
6463
6464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }; then
6469     # Now try to grab the symbols.
6470     nlist=conftest.nm
6471     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6472     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6485 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6486 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6487    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6488 # define LT_DLSYM_CONST
6489 #elif defined __osf__
6490 /* This system does not cope well with relocations in const data.  */
6491 # define LT_DLSYM_CONST
6492 #else
6493 # define LT_DLSYM_CONST const
6494 #endif
6495
6496 #ifdef __cplusplus
6497 extern "C" {
6498 #endif
6499
6500 _LT_EOF
6501           # Now generate the symbol file.
6502           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6503
6504           cat <<_LT_EOF >> conftest.$ac_ext
6505
6506 /* The mapping between symbol names and symbols.  */
6507 LT_DLSYM_CONST struct {
6508   const char *name;
6509   void       *address;
6510 }
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6512 {
6513   { "@PROGRAM@", (void *) 0 },
6514 _LT_EOF
6515           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516           cat <<\_LT_EOF >> conftest.$ac_ext
6517   {0, (void *) 0}
6518 };
6519
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523   return lt__PROGRAM__LTX_preloaded_symbols;
6524 }
6525 #endif
6526
6527 #ifdef __cplusplus
6528 }
6529 #endif
6530 _LT_EOF
6531           # Now try linking the two files.
6532           mv conftest.$ac_objext conftstm.$ac_objext
6533           lt_globsym_save_LIBS=$LIBS
6534           lt_globsym_save_CFLAGS=$CFLAGS
6535           LIBS=conftstm.$ac_objext
6536           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6542             pipe_works=yes
6543           fi
6544           LIBS=$lt_globsym_save_LIBS
6545           CFLAGS=$lt_globsym_save_CFLAGS
6546         else
6547           echo "cannot find nm_test_func in $nlist" >&5
6548         fi
6549       else
6550         echo "cannot find nm_test_var in $nlist" >&5
6551       fi
6552     else
6553       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6554     fi
6555   else
6556     echo "$progname: failed program was:" >&5
6557     cat conftest.$ac_ext >&5
6558   fi
6559   rm -rf conftest* conftst*
6560
6561   # Do not use the global_symbol_pipe unless it works.
6562   if test yes = "$pipe_works"; then
6563     break
6564   else
6565     lt_cv_sys_global_symbol_pipe=
6566   fi
6567 done
6568
6569 fi
6570
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572   lt_cv_sys_global_symbol_to_cdecl=
6573 fi
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6580 fi
6581
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584   nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586   nm_file_list_spec='@'
6587 fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6626 $as_echo_n "checking for sysroot... " >&6; }
6627
6628 # Check whether --with-sysroot was given.
6629 if test "${with_sysroot+set}" = set; then :
6630   withval=$with_sysroot;
6631 else
6632   with_sysroot=no
6633 fi
6634
6635
6636 lt_sysroot=
6637 case $with_sysroot in #(
6638  yes)
6639    if test yes = "$GCC"; then
6640      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6641    fi
6642    ;; #(
6643  /*)
6644    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6645    ;; #(
6646  no|'')
6647    ;; #(
6648  *)
6649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6650 $as_echo "$with_sysroot" >&6; }
6651    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6652    ;;
6653 esac
6654
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6656 $as_echo "${lt_sysroot:-no}" >&6; }
6657
6658
6659
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6663 $as_echo_n "checking for a working dd... " >&6; }
6664 if ${ac_cv_path_lt_DD+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   printf 0123456789abcdef0123456789abcdef >conftest.i
6668 cat conftest.i conftest.i >conftest2.i
6669 : ${lt_DD:=$DD}
6670 if test -z "$lt_DD"; then
6671   ac_path_lt_DD_found=false
6672   # Loop through the user's path and test for each of PROGNAME-LIST
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_prog in dd; do
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6681       as_fn_executable_p "$ac_path_lt_DD" || continue
6682 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6683   cmp -s conftest.i conftest.out \
6684   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6685 fi
6686       $ac_path_lt_DD_found && break 3
6687     done
6688   done
6689   done
6690 IFS=$as_save_IFS
6691   if test -z "$ac_cv_path_lt_DD"; then
6692     :
6693   fi
6694 else
6695   ac_cv_path_lt_DD=$lt_DD
6696 fi
6697
6698 rm -f conftest.i conftest2.i conftest.out
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6701 $as_echo "$ac_cv_path_lt_DD" >&6; }
6702
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6705 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6706 if ${lt_cv_truncate_bin+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   printf 0123456789abcdef0123456789abcdef >conftest.i
6710 cat conftest.i conftest.i >conftest2.i
6711 lt_cv_truncate_bin=
6712 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6713   cmp -s conftest.i conftest.out \
6714   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6715 fi
6716 rm -f conftest.i conftest2.i conftest.out
6717 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6720 $as_echo "$lt_cv_truncate_bin" >&6; }
6721
6722
6723
6724
6725
6726
6727
6728 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6729 func_cc_basename ()
6730 {
6731     for cc_temp in $*""; do
6732       case $cc_temp in
6733         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6734         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6735         \-*) ;;
6736         *) break;;
6737       esac
6738     done
6739     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6740 }
6741
6742 # Check whether --enable-libtool-lock was given.
6743 if test "${enable_libtool_lock+set}" = set; then :
6744   enableval=$enable_libtool_lock;
6745 fi
6746
6747 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6748
6749 # Some flags need to be propagated to the compiler or linker for good
6750 # libtool support.
6751 case $host in
6752 ia64-*-hpux*)
6753   # Find out what ABI is being produced by ac_compile, and set mode
6754   # options accordingly.
6755   echo 'int i;' > conftest.$ac_ext
6756   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757   (eval $ac_compile) 2>&5
6758   ac_status=$?
6759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760   test $ac_status = 0; }; then
6761     case `/usr/bin/file conftest.$ac_objext` in
6762       *ELF-32*)
6763         HPUX_IA64_MODE=32
6764         ;;
6765       *ELF-64*)
6766         HPUX_IA64_MODE=64
6767         ;;
6768     esac
6769   fi
6770   rm -rf conftest*
6771   ;;
6772 *-*-irix6*)
6773   # Find out what ABI is being produced by ac_compile, and set linker
6774   # options accordingly.
6775   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777   (eval $ac_compile) 2>&5
6778   ac_status=$?
6779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780   test $ac_status = 0; }; then
6781     if test yes = "$lt_cv_prog_gnu_ld"; then
6782       case `/usr/bin/file conftest.$ac_objext` in
6783         *32-bit*)
6784           LD="${LD-ld} -melf32bsmip"
6785           ;;
6786         *N32*)
6787           LD="${LD-ld} -melf32bmipn32"
6788           ;;
6789         *64-bit*)
6790           LD="${LD-ld} -melf64bmip"
6791         ;;
6792       esac
6793     else
6794       case `/usr/bin/file conftest.$ac_objext` in
6795         *32-bit*)
6796           LD="${LD-ld} -32"
6797           ;;
6798         *N32*)
6799           LD="${LD-ld} -n32"
6800           ;;
6801         *64-bit*)
6802           LD="${LD-ld} -64"
6803           ;;
6804       esac
6805     fi
6806   fi
6807   rm -rf conftest*
6808   ;;
6809
6810 mips64*-*linux*)
6811   # Find out what ABI is being produced by ac_compile, and set linker
6812   # options accordingly.
6813   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815   (eval $ac_compile) 2>&5
6816   ac_status=$?
6817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818   test $ac_status = 0; }; then
6819     emul=elf
6820     case `/usr/bin/file conftest.$ac_objext` in
6821       *32-bit*)
6822         emul="${emul}32"
6823         ;;
6824       *64-bit*)
6825         emul="${emul}64"
6826         ;;
6827     esac
6828     case `/usr/bin/file conftest.$ac_objext` in
6829       *MSB*)
6830         emul="${emul}btsmip"
6831         ;;
6832       *LSB*)
6833         emul="${emul}ltsmip"
6834         ;;
6835     esac
6836     case `/usr/bin/file conftest.$ac_objext` in
6837       *N32*)
6838         emul="${emul}n32"
6839         ;;
6840     esac
6841     LD="${LD-ld} -m $emul"
6842   fi
6843   rm -rf conftest*
6844   ;;
6845
6846 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6847 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6848   # Find out what ABI is being produced by ac_compile, and set linker
6849   # options accordingly.  Note that the listed cases only cover the
6850   # situations where additional linker options are needed (such as when
6851   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6852   # vice versa); the common cases where no linker options are needed do
6853   # not appear in the list.
6854   echo 'int i;' > conftest.$ac_ext
6855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856   (eval $ac_compile) 2>&5
6857   ac_status=$?
6858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859   test $ac_status = 0; }; then
6860     case `/usr/bin/file conftest.o` in
6861       *32-bit*)
6862         case $host in
6863           x86_64-*kfreebsd*-gnu)
6864             LD="${LD-ld} -m elf_i386_fbsd"
6865             ;;
6866           x86_64-*linux*)
6867             case `/usr/bin/file conftest.o` in
6868               *x86-64*)
6869                 LD="${LD-ld} -m elf32_x86_64"
6870                 ;;
6871               *)
6872                 LD="${LD-ld} -m elf_i386"
6873                 ;;
6874             esac
6875             ;;
6876           powerpc64le-*linux*)
6877             LD="${LD-ld} -m elf32lppclinux"
6878             ;;
6879           powerpc64-*linux*)
6880             LD="${LD-ld} -m elf32ppclinux"
6881             ;;
6882           s390x-*linux*)
6883             LD="${LD-ld} -m elf_s390"
6884             ;;
6885           sparc64-*linux*)
6886             LD="${LD-ld} -m elf32_sparc"
6887             ;;
6888         esac
6889         ;;
6890       *64-bit*)
6891         case $host in
6892           x86_64-*kfreebsd*-gnu)
6893             LD="${LD-ld} -m elf_x86_64_fbsd"
6894             ;;
6895           x86_64-*linux*)
6896             LD="${LD-ld} -m elf_x86_64"
6897             ;;
6898           powerpcle-*linux*)
6899             LD="${LD-ld} -m elf64lppc"
6900             ;;
6901           powerpc-*linux*)
6902             LD="${LD-ld} -m elf64ppc"
6903             ;;
6904           s390*-*linux*|s390*-*tpf*)
6905             LD="${LD-ld} -m elf64_s390"
6906             ;;
6907           sparc*-*linux*)
6908             LD="${LD-ld} -m elf64_sparc"
6909             ;;
6910         esac
6911         ;;
6912     esac
6913   fi
6914   rm -rf conftest*
6915   ;;
6916
6917 *-*-sco3.2v5*)
6918   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6919   SAVE_CFLAGS=$CFLAGS
6920   CFLAGS="$CFLAGS -belf"
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6923 if ${lt_cv_cc_needs_belf+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944   lt_cv_cc_needs_belf=yes
6945 else
6946   lt_cv_cc_needs_belf=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext \
6949     conftest$ac_exeext conftest.$ac_ext
6950      ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6959   if test yes != "$lt_cv_cc_needs_belf"; then
6960     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6961     CFLAGS=$SAVE_CFLAGS
6962   fi
6963   ;;
6964 *-*solaris*)
6965   # Find out what ABI is being produced by ac_compile, and set linker
6966   # options accordingly.
6967   echo 'int i;' > conftest.$ac_ext
6968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969   (eval $ac_compile) 2>&5
6970   ac_status=$?
6971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972   test $ac_status = 0; }; then
6973     case `/usr/bin/file conftest.o` in
6974     *64-bit*)
6975       case $lt_cv_prog_gnu_ld in
6976       yes*)
6977         case $host in
6978         i?86-*-solaris*|x86_64-*-solaris*)
6979           LD="${LD-ld} -m elf_x86_64"
6980           ;;
6981         sparc*-*-solaris*)
6982           LD="${LD-ld} -m elf64_sparc"
6983           ;;
6984         esac
6985         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6986         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6987           LD=${LD-ld}_sol2
6988         fi
6989         ;;
6990       *)
6991         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6992           LD="${LD-ld} -64"
6993         fi
6994         ;;
6995       esac
6996       ;;
6997     esac
6998   fi
6999   rm -rf conftest*
7000   ;;
7001 esac
7002
7003 need_locks=$enable_libtool_lock
7004
7005 if test -n "$ac_tool_prefix"; then
7006   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}mt; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   if test -n "$MANIFEST_TOOL"; then
7014   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7034 if test -n "$MANIFEST_TOOL"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7036 $as_echo "$MANIFEST_TOOL" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7045   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7046   # Extract the first word of "mt", so it can be a program name with args.
7047 set dummy mt; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   if test -n "$ac_ct_MANIFEST_TOOL"; then
7054   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061     for ac_exec_ext in '' $ac_executable_extensions; do
7062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068   done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7074 if test -n "$ac_ct_MANIFEST_TOOL"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7076 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7083     MANIFEST_TOOL=":"
7084   else
7085     case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7092   fi
7093 else
7094   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7095 fi
7096
7097 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7099 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7100 if ${lt_cv_path_mainfest_tool+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   lt_cv_path_mainfest_tool=no
7104   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7105   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7106   cat conftest.err >&5
7107   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7108     lt_cv_path_mainfest_tool=yes
7109   fi
7110   rm -f conftest*
7111 fi
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7113 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7114 if test yes != "$lt_cv_path_mainfest_tool"; then
7115   MANIFEST_TOOL=:
7116 fi
7117
7118
7119
7120
7121
7122
7123   case $host_os in
7124     rhapsody* | darwin*)
7125     if test -n "$ac_tool_prefix"; then
7126   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$DSYMUTIL"; then
7134   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165   ac_ct_DSYMUTIL=$DSYMUTIL
7166   # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$ac_ct_DSYMUTIL"; then
7174   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202   if test "x$ac_ct_DSYMUTIL" = x; then
7203     DSYMUTIL=":"
7204   else
7205     case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211     DSYMUTIL=$ac_ct_DSYMUTIL
7212   fi
7213 else
7214   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7215 fi
7216
7217     if test -n "$ac_tool_prefix"; then
7218   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_NMEDIT+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$NMEDIT"; then
7226   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257   ac_ct_NMEDIT=$NMEDIT
7258   # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$ac_ct_NMEDIT"; then
7266   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294   if test "x$ac_ct_NMEDIT" = x; then
7295     NMEDIT=":"
7296   else
7297     case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303     NMEDIT=$ac_ct_NMEDIT
7304   fi
7305 else
7306   NMEDIT="$ac_cv_prog_NMEDIT"
7307 fi
7308
7309     if test -n "$ac_tool_prefix"; then
7310   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_LIPO+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if test -n "$LIPO"; then
7318   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325     for ac_exec_ext in '' $ac_executable_extensions; do
7326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332   done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_LIPO"; then
7349   ac_ct_LIPO=$LIPO
7350   # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$ac_ct_LIPO"; then
7358   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_ac_ct_LIPO="lipo"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386   if test "x$ac_ct_LIPO" = x; then
7387     LIPO=":"
7388   else
7389     case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395     LIPO=$ac_ct_LIPO
7396   fi
7397 else
7398   LIPO="$ac_cv_prog_LIPO"
7399 fi
7400
7401     if test -n "$ac_tool_prefix"; then
7402   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OTOOL+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   if test -n "$OTOOL"; then
7410   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7433 else
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_OTOOL"; then
7441   ac_ct_OTOOL=$OTOOL
7442   # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$ac_ct_OTOOL"; then
7450   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459     ac_cv_prog_ac_ct_OTOOL="otool"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478   if test "x$ac_ct_OTOOL" = x; then
7479     OTOOL=":"
7480   else
7481     case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487     OTOOL=$ac_ct_OTOOL
7488   fi
7489 else
7490   OTOOL="$ac_cv_prog_OTOOL"
7491 fi
7492
7493     if test -n "$ac_tool_prefix"; then
7494   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_OTOOL64+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$OTOOL64"; then
7502   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533   ac_ct_OTOOL64=$OTOOL64
7534   # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$ac_ct_OTOOL64"; then
7542   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_prog_ac_ct_OTOOL64="otool64"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570   if test "x$ac_ct_OTOOL64" = x; then
7571     OTOOL64=":"
7572   else
7573     case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579     OTOOL64=$ac_ct_OTOOL64
7580   fi
7581 else
7582   OTOOL64="$ac_cv_prog_OTOOL64"
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if ${lt_cv_apple_cc_single_mod+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   lt_cv_apple_cc_single_mod=no
7617       if test -z "$LT_MULTI_MODULE"; then
7618         # By default we will add the -single_module flag. You can override
7619         # by either setting the environment variable LT_MULTI_MODULE
7620         # non-empty at configure time, or by adding -multi_module to the
7621         # link flags.
7622         rm -rf libconftest.dylib*
7623         echo "int foo(void){return 1;}" > conftest.c
7624         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7628         _lt_result=$?
7629         # If there is a non-empty error log, and "single_module"
7630         # appears in it, assume the flag caused a linker warning
7631         if test -s conftest.err && $GREP single_module conftest.err; then
7632           cat conftest.err >&5
7633         # Otherwise, if the output was created with a 0 exit code from
7634         # the compiler, it worked.
7635         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7636           lt_cv_apple_cc_single_mod=yes
7637         else
7638           cat conftest.err >&5
7639         fi
7640         rm -rf libconftest.dylib*
7641         rm -f conftest.*
7642       fi
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7646
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7648 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7649 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   lt_cv_ld_exported_symbols_list=no
7653       save_LDFLAGS=$LDFLAGS
7654       echo "_main" > conftest.sym
7655       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h.  */
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668   lt_cv_ld_exported_symbols_list=yes
7669 else
7670   lt_cv_ld_exported_symbols_list=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674         LDFLAGS=$save_LDFLAGS
7675
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7678 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7679
7680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7681 $as_echo_n "checking for -force_load linker flag... " >&6; }
7682 if ${lt_cv_ld_force_load+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   lt_cv_ld_force_load=no
7686       cat > conftest.c << _LT_EOF
7687 int forced_loaded() { return 2;}
7688 _LT_EOF
7689       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7690       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7691       echo "$AR cr libconftest.a conftest.o" >&5
7692       $AR cr libconftest.a conftest.o 2>&5
7693       echo "$RANLIB libconftest.a" >&5
7694       $RANLIB libconftest.a 2>&5
7695       cat > conftest.c << _LT_EOF
7696 int main() { return 0;}
7697 _LT_EOF
7698       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7699       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7700       _lt_result=$?
7701       if test -s conftest.err && $GREP force_load conftest.err; then
7702         cat conftest.err >&5
7703       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7704         lt_cv_ld_force_load=yes
7705       else
7706         cat conftest.err >&5
7707       fi
7708         rm -f conftest.err libconftest.a conftest conftest.c
7709         rm -rf conftest.dSYM
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7713 $as_echo "$lt_cv_ld_force_load" >&6; }
7714     case $host_os in
7715     rhapsody* | darwin1.[012])
7716       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7717     darwin1.*)
7718       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7719     darwin*) # darwin 5.x on
7720       # if running on 10.5 or later, the deployment target defaults
7721       # to the OS version, if on x86, and 10.4, the deployment
7722       # target defaults to 10.4. Don't you love it?
7723       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7724         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7725           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7726         10.[012][,.]*)
7727           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7728         10.*)
7729           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7730       esac
7731     ;;
7732   esac
7733     if test yes = "$lt_cv_apple_cc_single_mod"; then
7734       _lt_dar_single_mod='$single_module'
7735     fi
7736     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7737       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7738     else
7739       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7740     fi
7741     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7742       _lt_dsymutil='~$DSYMUTIL $lib || :'
7743     else
7744       _lt_dsymutil=
7745     fi
7746     ;;
7747   esac
7748
7749 # func_munge_path_list VARIABLE PATH
7750 # -----------------------------------
7751 # VARIABLE is name of variable containing _space_ separated list of
7752 # directories to be munged by the contents of PATH, which is string
7753 # having a format:
7754 # "DIR[:DIR]:"
7755 #       string "DIR[ DIR]" will be prepended to VARIABLE
7756 # ":DIR[:DIR]"
7757 #       string "DIR[ DIR]" will be appended to VARIABLE
7758 # "DIRP[:DIRP]::[DIRA:]DIRA"
7759 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7760 #       "DIRA[ DIRA]" will be appended to VARIABLE
7761 # "DIR[:DIR]"
7762 #       VARIABLE will be replaced by "DIR[ DIR]"
7763 func_munge_path_list ()
7764 {
7765     case x$2 in
7766     x)
7767         ;;
7768     *:)
7769         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7770         ;;
7771     x:*)
7772         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7773         ;;
7774     *::*)
7775         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7776         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7777         ;;
7778     *)
7779         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7780         ;;
7781     esac
7782 }
7783
7784 for ac_header in dlfcn.h
7785 do :
7786   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7787 "
7788 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7789   cat >>confdefs.h <<_ACEOF
7790 #define HAVE_DLFCN_H 1
7791 _ACEOF
7792
7793 fi
7794
7795 done
7796
7797
7798
7799
7800
7801 # Set options
7802
7803
7804
7805         enable_dlopen=no
7806
7807
7808   enable_win32_dll=no
7809
7810
7811             # Check whether --enable-shared was given.
7812 if test "${enable_shared+set}" = set; then :
7813   enableval=$enable_shared; p=${PACKAGE-default}
7814     case $enableval in
7815     yes) enable_shared=yes ;;
7816     no) enable_shared=no ;;
7817     *)
7818       enable_shared=no
7819       # Look at the argument we got.  We use all the common list separators.
7820       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7821       for pkg in $enableval; do
7822         IFS=$lt_save_ifs
7823         if test "X$pkg" = "X$p"; then
7824           enable_shared=yes
7825         fi
7826       done
7827       IFS=$lt_save_ifs
7828       ;;
7829     esac
7830 else
7831   enable_shared=yes
7832 fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842   # Check whether --enable-static was given.
7843 if test "${enable_static+set}" = set; then :
7844   enableval=$enable_static; p=${PACKAGE-default}
7845     case $enableval in
7846     yes) enable_static=yes ;;
7847     no) enable_static=no ;;
7848     *)
7849      enable_static=no
7850       # Look at the argument we got.  We use all the common list separators.
7851       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7852       for pkg in $enableval; do
7853         IFS=$lt_save_ifs
7854         if test "X$pkg" = "X$p"; then
7855           enable_static=yes
7856         fi
7857       done
7858       IFS=$lt_save_ifs
7859       ;;
7860     esac
7861 else
7862   enable_static=yes
7863 fi
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 # Check whether --with-pic was given.
7875 if test "${with_pic+set}" = set; then :
7876   withval=$with_pic; lt_p=${PACKAGE-default}
7877     case $withval in
7878     yes|no) pic_mode=$withval ;;
7879     *)
7880       pic_mode=default
7881       # Look at the argument we got.  We use all the common list separators.
7882       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7883       for lt_pkg in $withval; do
7884         IFS=$lt_save_ifs
7885         if test "X$lt_pkg" = "X$lt_p"; then
7886           pic_mode=yes
7887         fi
7888       done
7889       IFS=$lt_save_ifs
7890       ;;
7891     esac
7892 else
7893   pic_mode=default
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903   # Check whether --enable-fast-install was given.
7904 if test "${enable_fast_install+set}" = set; then :
7905   enableval=$enable_fast_install; p=${PACKAGE-default}
7906     case $enableval in
7907     yes) enable_fast_install=yes ;;
7908     no) enable_fast_install=no ;;
7909     *)
7910       enable_fast_install=no
7911       # Look at the argument we got.  We use all the common list separators.
7912       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7913       for pkg in $enableval; do
7914         IFS=$lt_save_ifs
7915         if test "X$pkg" = "X$p"; then
7916           enable_fast_install=yes
7917         fi
7918       done
7919       IFS=$lt_save_ifs
7920       ;;
7921     esac
7922 else
7923   enable_fast_install=yes
7924 fi
7925
7926
7927
7928
7929
7930
7931
7932
7933   shared_archive_member_spec=
7934 case $host,$enable_shared in
7935 power*-*-aix[5-9]*,yes)
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7937 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7938
7939 # Check whether --with-aix-soname was given.
7940 if test "${with_aix_soname+set}" = set; then :
7941   withval=$with_aix_soname; case $withval in
7942     aix|svr4|both)
7943       ;;
7944     *)
7945       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7946       ;;
7947     esac
7948     lt_cv_with_aix_soname=$with_aix_soname
7949 else
7950   if ${lt_cv_with_aix_soname+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   lt_cv_with_aix_soname=aix
7954 fi
7955
7956     with_aix_soname=$lt_cv_with_aix_soname
7957 fi
7958
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7960 $as_echo "$with_aix_soname" >&6; }
7961   if test aix != "$with_aix_soname"; then
7962     # For the AIX way of multilib, we name the shared archive member
7963     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7964     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7965     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7966     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7967     if test 64 = "${OBJECT_MODE-32}"; then
7968       shared_archive_member_spec=shr_64
7969     else
7970       shared_archive_member_spec=shr
7971     fi
7972   fi
7973   ;;
7974 *)
7975   with_aix_soname=aix
7976   ;;
7977 esac
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 # This can be used to rebuild libtool when needed
7989 LIBTOOL_DEPS=$ltmain
7990
7991 # Always use our own libtool.
7992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023 test -z "$LN_S" && LN_S="ln -s"
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 if test -n "${ZSH_VERSION+set}"; then
8039    setopt NO_GLOB_SUBST
8040 fi
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043 $as_echo_n "checking for objdir... " >&6; }
8044 if ${lt_cv_objdir+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   rm -f .libs 2>/dev/null
8048 mkdir .libs 2>/dev/null
8049 if test -d .libs; then
8050   lt_cv_objdir=.libs
8051 else
8052   # MS-DOS does not allow filenames that begin with a dot.
8053   lt_cv_objdir=_libs
8054 fi
8055 rmdir .libs 2>/dev/null
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058 $as_echo "$lt_cv_objdir" >&6; }
8059 objdir=$lt_cv_objdir
8060
8061
8062
8063
8064
8065 cat >>confdefs.h <<_ACEOF
8066 #define LT_OBJDIR "$lt_cv_objdir/"
8067 _ACEOF
8068
8069
8070
8071
8072 case $host_os in
8073 aix3*)
8074   # AIX sometimes has problems with the GCC collect2 program.  For some
8075   # reason, if we set the COLLECT_NAMES environment variable, the problems
8076   # vanish in a puff of smoke.
8077   if test set != "${COLLECT_NAMES+set}"; then
8078     COLLECT_NAMES=
8079     export COLLECT_NAMES
8080   fi
8081   ;;
8082 esac
8083
8084 # Global variables:
8085 ofile=libtool
8086 can_build_shared=yes
8087
8088 # All known linkers require a '.a' archive for static linking (except MSVC,
8089 # which needs '.lib').
8090 libext=a
8091
8092 with_gnu_ld=$lt_cv_prog_gnu_ld
8093
8094 old_CC=$CC
8095 old_CFLAGS=$CFLAGS
8096
8097 # Set sane defaults for various variables
8098 test -z "$CC" && CC=cc
8099 test -z "$LTCC" && LTCC=$CC
8100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101 test -z "$LD" && LD=ld
8102 test -z "$ac_objext" && ac_objext=o
8103
8104 func_cc_basename $compiler
8105 cc_basename=$func_cc_basename_result
8106
8107
8108 # Only perform the check for file, if the check method requires it
8109 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8110 case $deplibs_check_method in
8111 file_magic*)
8112   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8114 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8115 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   case $MAGIC_CMD in
8119 [\\/*] |  ?:[\\/]*)
8120   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8121   ;;
8122 *)
8123   lt_save_MAGIC_CMD=$MAGIC_CMD
8124   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8125   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8126   for ac_dir in $ac_dummy; do
8127     IFS=$lt_save_ifs
8128     test -z "$ac_dir" && ac_dir=.
8129     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8130       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8131       if test -n "$file_magic_test_file"; then
8132         case $deplibs_check_method in
8133         "file_magic "*)
8134           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8135           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8137             $EGREP "$file_magic_regex" > /dev/null; then
8138             :
8139           else
8140             cat <<_LT_EOF 1>&2
8141
8142 *** Warning: the command libtool uses to detect shared libraries,
8143 *** $file_magic_cmd, produces output that libtool cannot recognize.
8144 *** The result is that libtool may fail to recognize shared libraries
8145 *** as such.  This will affect the creation of libtool libraries that
8146 *** depend on shared libraries, but programs linked with such libtool
8147 *** libraries will work regardless of this problem.  Nevertheless, you
8148 *** may want to report the problem to your system manager and/or to
8149 *** bug-libtool@gnu.org
8150
8151 _LT_EOF
8152           fi ;;
8153         esac
8154       fi
8155       break
8156     fi
8157   done
8158   IFS=$lt_save_ifs
8159   MAGIC_CMD=$lt_save_MAGIC_CMD
8160   ;;
8161 esac
8162 fi
8163
8164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8165 if test -n "$MAGIC_CMD"; then
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8167 $as_echo "$MAGIC_CMD" >&6; }
8168 else
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 fi
8172
8173
8174
8175
8176
8177 if test -z "$lt_cv_path_MAGIC_CMD"; then
8178   if test -n "$ac_tool_prefix"; then
8179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8180 $as_echo_n "checking for file... " >&6; }
8181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   case $MAGIC_CMD in
8185 [\\/*] |  ?:[\\/]*)
8186   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8187   ;;
8188 *)
8189   lt_save_MAGIC_CMD=$MAGIC_CMD
8190   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8191   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192   for ac_dir in $ac_dummy; do
8193     IFS=$lt_save_ifs
8194     test -z "$ac_dir" && ac_dir=.
8195     if test -f "$ac_dir/file"; then
8196       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8197       if test -n "$file_magic_test_file"; then
8198         case $deplibs_check_method in
8199         "file_magic "*)
8200           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203             $EGREP "$file_magic_regex" > /dev/null; then
8204             :
8205           else
8206             cat <<_LT_EOF 1>&2
8207
8208 *** Warning: the command libtool uses to detect shared libraries,
8209 *** $file_magic_cmd, produces output that libtool cannot recognize.
8210 *** The result is that libtool may fail to recognize shared libraries
8211 *** as such.  This will affect the creation of libtool libraries that
8212 *** depend on shared libraries, but programs linked with such libtool
8213 *** libraries will work regardless of this problem.  Nevertheless, you
8214 *** may want to report the problem to your system manager and/or to
8215 *** bug-libtool@gnu.org
8216
8217 _LT_EOF
8218           fi ;;
8219         esac
8220       fi
8221       break
8222     fi
8223   done
8224   IFS=$lt_save_ifs
8225   MAGIC_CMD=$lt_save_MAGIC_CMD
8226   ;;
8227 esac
8228 fi
8229
8230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8231 if test -n "$MAGIC_CMD"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8233 $as_echo "$MAGIC_CMD" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240   else
8241     MAGIC_CMD=:
8242   fi
8243 fi
8244
8245   fi
8246   ;;
8247 esac
8248
8249 # Use C for the default configuration in the libtool script
8250
8251 lt_save_CC=$CC
8252 ac_ext=c
8253 ac_cpp='$CPP $CPPFLAGS'
8254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257
8258
8259 # Source file extension for C test sources.
8260 ac_ext=c
8261
8262 # Object file extension for compiled C test sources.
8263 objext=o
8264 objext=$objext
8265
8266 # Code to be used in simple compile tests
8267 lt_simple_compile_test_code="int some_variable = 0;"
8268
8269 # Code to be used in simple link tests
8270 lt_simple_link_test_code='int main(){return(0);}'
8271
8272
8273
8274
8275
8276
8277
8278 # If no C compiler was specified, use CC.
8279 LTCC=${LTCC-"$CC"}
8280
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8283
8284 # Allow CC to be a program name with arguments.
8285 compiler=$CC
8286
8287 # Save the default compiler, since it gets overwritten when the other
8288 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8289 compiler_DEFAULT=$CC
8290
8291 # save warnings/boilerplate of simple test code
8292 ac_outfile=conftest.$ac_objext
8293 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295 _lt_compiler_boilerplate=`cat conftest.err`
8296 $RM conftest*
8297
8298 ac_outfile=conftest.$ac_objext
8299 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_linker_boilerplate=`cat conftest.err`
8302 $RM -r conftest*
8303
8304
8305 ## CAVEAT EMPTOR:
8306 ## There is no encapsulation within the following macros, do not change
8307 ## the running order or otherwise move them around unless you know exactly
8308 ## what you are doing...
8309 if test -n "$compiler"; then
8310
8311 lt_prog_compiler_no_builtin_flag=
8312
8313 if test yes = "$GCC"; then
8314   case $cc_basename in
8315   nvcc*)
8316     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8317   *)
8318     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8319   esac
8320
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8322 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8323 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326   lt_cv_prog_compiler_rtti_exceptions=no
8327    ac_outfile=conftest.$ac_objext
8328    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8330    # Insert the option either (1) after the last *FLAGS variable, or
8331    # (2) before a word containing "conftest.", or (3) at the end.
8332    # Note that $ac_compile itself does not contain backslashes and begins
8333    # with a dollar sign (not a hyphen), so the echo should work correctly.
8334    # The option is referenced via a variable to avoid confusing sed.
8335    lt_compile=`echo "$ac_compile" | $SED \
8336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338    -e 's:$: $lt_compiler_flag:'`
8339    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340    (eval "$lt_compile" 2>conftest.err)
8341    ac_status=$?
8342    cat conftest.err >&5
8343    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344    if (exit $ac_status) && test -s "$ac_outfile"; then
8345      # The compiler can only warn and ignore the option if not recognized
8346      # So say no if there are warnings other than the usual output.
8347      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8348      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8349      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8350        lt_cv_prog_compiler_rtti_exceptions=yes
8351      fi
8352    fi
8353    $RM conftest*
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8357 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8358
8359 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8360     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8361 else
8362     :
8363 fi
8364
8365 fi
8366
8367
8368
8369
8370
8371
8372   lt_prog_compiler_wl=
8373 lt_prog_compiler_pic=
8374 lt_prog_compiler_static=
8375
8376
8377   if test yes = "$GCC"; then
8378     lt_prog_compiler_wl='-Wl,'
8379     lt_prog_compiler_static='-static'
8380
8381     case $host_os in
8382       aix*)
8383       # All AIX code is PIC.
8384       if test ia64 = "$host_cpu"; then
8385         # AIX 5 now supports IA64 processor
8386         lt_prog_compiler_static='-Bstatic'
8387       fi
8388       lt_prog_compiler_pic='-fPIC'
8389       ;;
8390
8391     amigaos*)
8392       case $host_cpu in
8393       powerpc)
8394             # see comment about AmigaOS4 .so support
8395             lt_prog_compiler_pic='-fPIC'
8396         ;;
8397       m68k)
8398             # FIXME: we need at least 68020 code to build shared libraries, but
8399             # adding the '-m68020' flag to GCC prevents building anything better,
8400             # like '-m68040'.
8401             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8402         ;;
8403       esac
8404       ;;
8405
8406     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8407       # PIC is the default for these OSes.
8408       ;;
8409
8410     mingw* | cygwin* | pw32* | os2* | cegcc*)
8411       # This hack is so that the source file can tell whether it is being
8412       # built for inclusion in a dll (and should export symbols for example).
8413       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8414       # (--disable-auto-import) libraries
8415       lt_prog_compiler_pic='-DDLL_EXPORT'
8416       case $host_os in
8417       os2*)
8418         lt_prog_compiler_static='$wl-static'
8419         ;;
8420       esac
8421       ;;
8422
8423     darwin* | rhapsody*)
8424       # PIC is the default on this platform
8425       # Common symbols not allowed in MH_DYLIB files
8426       lt_prog_compiler_pic='-fno-common'
8427       ;;
8428
8429     haiku*)
8430       # PIC is the default for Haiku.
8431       # The "-static" flag exists, but is broken.
8432       lt_prog_compiler_static=
8433       ;;
8434
8435     hpux*)
8436       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8437       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8438       # sets the default TLS model and affects inlining.
8439       case $host_cpu in
8440       hppa*64*)
8441         # +Z the default
8442         ;;
8443       *)
8444         lt_prog_compiler_pic='-fPIC'
8445         ;;
8446       esac
8447       ;;
8448
8449     interix[3-9]*)
8450       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8451       # Instead, we relocate shared libraries at runtime.
8452       ;;
8453
8454     msdosdjgpp*)
8455       # Just because we use GCC doesn't mean we suddenly get shared libraries
8456       # on systems that don't support them.
8457       lt_prog_compiler_can_build_shared=no
8458       enable_shared=no
8459       ;;
8460
8461     *nto* | *qnx*)
8462       # QNX uses GNU C++, but need to define -shared option too, otherwise
8463       # it will coredump.
8464       lt_prog_compiler_pic='-fPIC -shared'
8465       ;;
8466
8467     sysv4*MP*)
8468       if test -d /usr/nec; then
8469         lt_prog_compiler_pic=-Kconform_pic
8470       fi
8471       ;;
8472
8473     *)
8474       lt_prog_compiler_pic='-fPIC'
8475       ;;
8476     esac
8477
8478     case $cc_basename in
8479     nvcc*) # Cuda Compiler Driver 2.2
8480       lt_prog_compiler_wl='-Xlinker '
8481       if test -n "$lt_prog_compiler_pic"; then
8482         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8483       fi
8484       ;;
8485     esac
8486   else
8487     # PORTME Check for flag to pass linker flags through the system compiler.
8488     case $host_os in
8489     aix*)
8490       lt_prog_compiler_wl='-Wl,'
8491       if test ia64 = "$host_cpu"; then
8492         # AIX 5 now supports IA64 processor
8493         lt_prog_compiler_static='-Bstatic'
8494       else
8495         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8496       fi
8497       ;;
8498
8499     darwin* | rhapsody*)
8500       # PIC is the default on this platform
8501       # Common symbols not allowed in MH_DYLIB files
8502       lt_prog_compiler_pic='-fno-common'
8503       case $cc_basename in
8504       nagfor*)
8505         # NAG Fortran compiler
8506         lt_prog_compiler_wl='-Wl,-Wl,,'
8507         lt_prog_compiler_pic='-PIC'
8508         lt_prog_compiler_static='-Bstatic'
8509         ;;
8510       esac
8511       ;;
8512
8513     mingw* | cygwin* | pw32* | os2* | cegcc*)
8514       # This hack is so that the source file can tell whether it is being
8515       # built for inclusion in a dll (and should export symbols for example).
8516       lt_prog_compiler_pic='-DDLL_EXPORT'
8517       case $host_os in
8518       os2*)
8519         lt_prog_compiler_static='$wl-static'
8520         ;;
8521       esac
8522       ;;
8523
8524     hpux9* | hpux10* | hpux11*)
8525       lt_prog_compiler_wl='-Wl,'
8526       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8527       # not for PA HP-UX.
8528       case $host_cpu in
8529       hppa*64*|ia64*)
8530         # +Z the default
8531         ;;
8532       *)
8533         lt_prog_compiler_pic='+Z'
8534         ;;
8535       esac
8536       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8537       lt_prog_compiler_static='$wl-a ${wl}archive'
8538       ;;
8539
8540     irix5* | irix6* | nonstopux*)
8541       lt_prog_compiler_wl='-Wl,'
8542       # PIC (with -KPIC) is the default.
8543       lt_prog_compiler_static='-non_shared'
8544       ;;
8545
8546     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8547       case $cc_basename in
8548       # old Intel for x86_64, which still supported -KPIC.
8549       ecc*)
8550         lt_prog_compiler_wl='-Wl,'
8551         lt_prog_compiler_pic='-KPIC'
8552         lt_prog_compiler_static='-static'
8553         ;;
8554       # flang / f18. f95 an alias for gfortran or flang on Debian
8555       flang* | f18* | f95*)
8556         lt_prog_compiler_wl='-Wl,'
8557         lt_prog_compiler_pic='-fPIC'
8558         lt_prog_compiler_static='-static'
8559         ;;
8560       # icc used to be incompatible with GCC.
8561       # ICC 10 doesn't accept -KPIC any more.
8562       icc* | ifort*)
8563         lt_prog_compiler_wl='-Wl,'
8564         lt_prog_compiler_pic='-fPIC'
8565         lt_prog_compiler_static='-static'
8566         ;;
8567       # Lahey Fortran 8.1.
8568       lf95*)
8569         lt_prog_compiler_wl='-Wl,'
8570         lt_prog_compiler_pic='--shared'
8571         lt_prog_compiler_static='--static'
8572         ;;
8573       nagfor*)
8574         # NAG Fortran compiler
8575         lt_prog_compiler_wl='-Wl,-Wl,,'
8576         lt_prog_compiler_pic='-PIC'
8577         lt_prog_compiler_static='-Bstatic'
8578         ;;
8579       tcc*)
8580         # Fabrice Bellard et al's Tiny C Compiler
8581         lt_prog_compiler_wl='-Wl,'
8582         lt_prog_compiler_pic='-fPIC'
8583         lt_prog_compiler_static='-static'
8584         ;;
8585       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8586         # Portland Group compilers (*not* the Pentium gcc compiler,
8587         # which looks to be a dead project)
8588         lt_prog_compiler_wl='-Wl,'
8589         lt_prog_compiler_pic='-fpic'
8590         lt_prog_compiler_static='-Bstatic'
8591         ;;
8592       ccc*)
8593         lt_prog_compiler_wl='-Wl,'
8594         # All Alpha code is PIC.
8595         lt_prog_compiler_static='-non_shared'
8596         ;;
8597       xl* | bgxl* | bgf* | mpixl*)
8598         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8599         lt_prog_compiler_wl='-Wl,'
8600         lt_prog_compiler_pic='-qpic'
8601         lt_prog_compiler_static='-qstaticlink'
8602         ;;
8603       *)
8604         case `$CC -V 2>&1 | sed 5q` in
8605         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8606           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8607           lt_prog_compiler_pic='-KPIC'
8608           lt_prog_compiler_static='-Bstatic'
8609           lt_prog_compiler_wl=''
8610           ;;
8611         *Sun\ F* | *Sun*Fortran*)
8612           lt_prog_compiler_pic='-KPIC'
8613           lt_prog_compiler_static='-Bstatic'
8614           lt_prog_compiler_wl='-Qoption ld '
8615           ;;
8616         *Sun\ C*)
8617           # Sun C 5.9
8618           lt_prog_compiler_pic='-KPIC'
8619           lt_prog_compiler_static='-Bstatic'
8620           lt_prog_compiler_wl='-Wl,'
8621           ;;
8622         *Intel*\ [CF]*Compiler*)
8623           lt_prog_compiler_wl='-Wl,'
8624           lt_prog_compiler_pic='-fPIC'
8625           lt_prog_compiler_static='-static'
8626           ;;
8627         *Portland\ Group*)
8628           lt_prog_compiler_wl='-Wl,'
8629           lt_prog_compiler_pic='-fpic'
8630           lt_prog_compiler_static='-Bstatic'
8631           ;;
8632         esac
8633         ;;
8634       esac
8635       ;;
8636
8637     newsos6)
8638       lt_prog_compiler_pic='-KPIC'
8639       lt_prog_compiler_static='-Bstatic'
8640       ;;
8641
8642     *nto* | *qnx*)
8643       # QNX uses GNU C++, but need to define -shared option too, otherwise
8644       # it will coredump.
8645       lt_prog_compiler_pic='-fPIC -shared'
8646       ;;
8647
8648     osf3* | osf4* | osf5*)
8649       lt_prog_compiler_wl='-Wl,'
8650       # All OSF/1 code is PIC.
8651       lt_prog_compiler_static='-non_shared'
8652       ;;
8653
8654     rdos*)
8655       lt_prog_compiler_static='-non_shared'
8656       ;;
8657
8658     solaris*)
8659       lt_prog_compiler_pic='-KPIC'
8660       lt_prog_compiler_static='-Bstatic'
8661       case $cc_basename in
8662       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8663         lt_prog_compiler_wl='-Qoption ld ';;
8664       *)
8665         lt_prog_compiler_wl='-Wl,';;
8666       esac
8667       ;;
8668
8669     sunos4*)
8670       lt_prog_compiler_wl='-Qoption ld '
8671       lt_prog_compiler_pic='-PIC'
8672       lt_prog_compiler_static='-Bstatic'
8673       ;;
8674
8675     sysv4 | sysv4.2uw2* | sysv4.3*)
8676       lt_prog_compiler_wl='-Wl,'
8677       lt_prog_compiler_pic='-KPIC'
8678       lt_prog_compiler_static='-Bstatic'
8679       ;;
8680
8681     sysv4*MP*)
8682       if test -d /usr/nec; then
8683         lt_prog_compiler_pic='-Kconform_pic'
8684         lt_prog_compiler_static='-Bstatic'
8685       fi
8686       ;;
8687
8688     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8689       lt_prog_compiler_wl='-Wl,'
8690       lt_prog_compiler_pic='-KPIC'
8691       lt_prog_compiler_static='-Bstatic'
8692       ;;
8693
8694     unicos*)
8695       lt_prog_compiler_wl='-Wl,'
8696       lt_prog_compiler_can_build_shared=no
8697       ;;
8698
8699     uts4*)
8700       lt_prog_compiler_pic='-pic'
8701       lt_prog_compiler_static='-Bstatic'
8702       ;;
8703
8704     *)
8705       lt_prog_compiler_can_build_shared=no
8706       ;;
8707     esac
8708   fi
8709
8710 case $host_os in
8711   # For platforms that do not support PIC, -DPIC is meaningless:
8712   *djgpp*)
8713     lt_prog_compiler_pic=
8714     ;;
8715   *)
8716     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8717     ;;
8718 esac
8719
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8721 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8722 if ${lt_cv_prog_compiler_pic+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8728 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8729 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8730
8731 #
8732 # Check to make sure the PIC flag actually works.
8733 #
8734 if test -n "$lt_prog_compiler_pic"; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8736 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8737 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740   lt_cv_prog_compiler_pic_works=no
8741    ac_outfile=conftest.$ac_objext
8742    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8744    # Insert the option either (1) after the last *FLAGS variable, or
8745    # (2) before a word containing "conftest.", or (3) at the end.
8746    # Note that $ac_compile itself does not contain backslashes and begins
8747    # with a dollar sign (not a hyphen), so the echo should work correctly.
8748    # The option is referenced via a variable to avoid confusing sed.
8749    lt_compile=`echo "$ac_compile" | $SED \
8750    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752    -e 's:$: $lt_compiler_flag:'`
8753    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754    (eval "$lt_compile" 2>conftest.err)
8755    ac_status=$?
8756    cat conftest.err >&5
8757    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758    if (exit $ac_status) && test -s "$ac_outfile"; then
8759      # The compiler can only warn and ignore the option if not recognized
8760      # So say no if there are warnings other than the usual output.
8761      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8762      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8764        lt_cv_prog_compiler_pic_works=yes
8765      fi
8766    fi
8767    $RM conftest*
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8771 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8772
8773 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8774     case $lt_prog_compiler_pic in
8775      "" | " "*) ;;
8776      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8777      esac
8778 else
8779     lt_prog_compiler_pic=
8780      lt_prog_compiler_can_build_shared=no
8781 fi
8782
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795 #
8796 # Check to make sure the static flag actually works.
8797 #
8798 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8800 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8801 if ${lt_cv_prog_compiler_static_works+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   lt_cv_prog_compiler_static_works=no
8805    save_LDFLAGS=$LDFLAGS
8806    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8807    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8809      # The linker can only warn and ignore the option if not recognized
8810      # So say no if there are warnings
8811      if test -s conftest.err; then
8812        # Append any errors to the config.log.
8813        cat conftest.err 1>&5
8814        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8815        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816        if diff conftest.exp conftest.er2 >/dev/null; then
8817          lt_cv_prog_compiler_static_works=yes
8818        fi
8819      else
8820        lt_cv_prog_compiler_static_works=yes
8821      fi
8822    fi
8823    $RM -r conftest*
8824    LDFLAGS=$save_LDFLAGS
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8828 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8829
8830 if test yes = "$lt_cv_prog_compiler_static_works"; then
8831     :
8832 else
8833     lt_prog_compiler_static=
8834 fi
8835
8836
8837
8838
8839
8840
8841
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8844 if ${lt_cv_prog_compiler_c_o+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   lt_cv_prog_compiler_c_o=no
8848    $RM -r conftest 2>/dev/null
8849    mkdir conftest
8850    cd conftest
8851    mkdir out
8852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8853
8854    lt_compiler_flag="-o out/conftest2.$ac_objext"
8855    # Insert the option either (1) after the last *FLAGS variable, or
8856    # (2) before a word containing "conftest.", or (3) at the end.
8857    # Note that $ac_compile itself does not contain backslashes and begins
8858    # with a dollar sign (not a hyphen), so the echo should work correctly.
8859    lt_compile=`echo "$ac_compile" | $SED \
8860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862    -e 's:$: $lt_compiler_flag:'`
8863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864    (eval "$lt_compile" 2>out/conftest.err)
8865    ac_status=$?
8866    cat out/conftest.err >&5
8867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869    then
8870      # The compiler can only warn and ignore the option if not recognized
8871      # So say no if there are warnings
8872      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8873      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8874      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8875        lt_cv_prog_compiler_c_o=yes
8876      fi
8877    fi
8878    chmod u+w . 2>&5
8879    $RM conftest*
8880    # SGI C++ compiler will create directory out/ii_files/ for
8881    # template instantiation
8882    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8883    $RM out/* && rmdir out
8884    cd ..
8885    $RM -r conftest
8886    $RM conftest*
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891
8892
8893
8894
8895
8896
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if ${lt_cv_prog_compiler_c_o+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   lt_cv_prog_compiler_c_o=no
8903    $RM -r conftest 2>/dev/null
8904    mkdir conftest
8905    cd conftest
8906    mkdir out
8907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909    lt_compiler_flag="-o out/conftest2.$ac_objext"
8910    # Insert the option either (1) after the last *FLAGS variable, or
8911    # (2) before a word containing "conftest.", or (3) at the end.
8912    # Note that $ac_compile itself does not contain backslashes and begins
8913    # with a dollar sign (not a hyphen), so the echo should work correctly.
8914    lt_compile=`echo "$ac_compile" | $SED \
8915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917    -e 's:$: $lt_compiler_flag:'`
8918    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919    (eval "$lt_compile" 2>out/conftest.err)
8920    ac_status=$?
8921    cat out/conftest.err >&5
8922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924    then
8925      # The compiler can only warn and ignore the option if not recognized
8926      # So say no if there are warnings
8927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930        lt_cv_prog_compiler_c_o=yes
8931      fi
8932    fi
8933    chmod u+w . 2>&5
8934    $RM conftest*
8935    # SGI C++ compiler will create directory out/ii_files/ for
8936    # template instantiation
8937    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8938    $RM out/* && rmdir out
8939    cd ..
8940    $RM -r conftest
8941    $RM conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946
8947
8948
8949
8950 hard_links=nottested
8951 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8952   # do not overwrite the value of need_locks provided by the user
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8954 $as_echo_n "checking if we can lock with hard links... " >&6; }
8955   hard_links=yes
8956   $RM conftest*
8957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8958   touch conftest.a
8959   ln conftest.a conftest.b 2>&5 || hard_links=no
8960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8962 $as_echo "$hard_links" >&6; }
8963   if test no = "$hard_links"; then
8964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8965 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8966     need_locks=warn
8967   fi
8968 else
8969   need_locks=no
8970 fi
8971
8972
8973
8974
8975
8976
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8979
8980   runpath_var=
8981   allow_undefined_flag=
8982   always_export_symbols=no
8983   archive_cmds=
8984   archive_expsym_cmds=
8985   compiler_needs_object=no
8986   enable_shared_with_static_runtimes=no
8987   export_dynamic_flag_spec=
8988   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8989   hardcode_automatic=no
8990   hardcode_direct=no
8991   hardcode_direct_absolute=no
8992   hardcode_libdir_flag_spec=
8993   hardcode_libdir_separator=
8994   hardcode_minus_L=no
8995   hardcode_shlibpath_var=unsupported
8996   inherit_rpath=no
8997   link_all_deplibs=unknown
8998   module_cmds=
8999   module_expsym_cmds=
9000   old_archive_from_new_cmds=
9001   old_archive_from_expsyms_cmds=
9002   thread_safe_flag_spec=
9003   whole_archive_flag_spec=
9004   # include_expsyms should be a list of space-separated symbols to be *always*
9005   # included in the symbol list
9006   include_expsyms=
9007   # exclude_expsyms can be an extended regexp of symbols to exclude
9008   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9009   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9010   # as well as any symbol that contains 'd'.
9011   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9012   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9013   # platforms (ab)use it in PIC code, but their linkers get confused if
9014   # the symbol is explicitly referenced.  Since portable code cannot
9015   # rely on this symbol name, it's probably fine to never include it in
9016   # preloaded symbol tables.
9017   # Exclude shared library initialization/finalization symbols.
9018   extract_expsyms_cmds=
9019
9020   case $host_os in
9021   cygwin* | mingw* | pw32* | cegcc*)
9022     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023     # When not using gcc, we currently assume that we are using
9024     # Microsoft Visual C++.
9025     if test yes != "$GCC"; then
9026       with_gnu_ld=no
9027     fi
9028     ;;
9029   interix*)
9030     # we just hope/assume this is gcc and not c89 (= MSVC++)
9031     with_gnu_ld=yes
9032     ;;
9033   openbsd* | bitrig*)
9034     with_gnu_ld=no
9035     ;;
9036   linux* | k*bsd*-gnu | gnu*)
9037     link_all_deplibs=no
9038     ;;
9039   esac
9040
9041   ld_shlibs=yes
9042
9043   # On some targets, GNU ld is compatible enough with the native linker
9044   # that we're better off using the native interface for both.
9045   lt_use_gnu_ld_interface=no
9046   if test yes = "$with_gnu_ld"; then
9047     case $host_os in
9048       aix*)
9049         # The AIX port of GNU ld has always aspired to compatibility
9050         # with the native linker.  However, as the warning in the GNU ld
9051         # block says, versions before 2.19.5* couldn't really create working
9052         # shared libraries, regardless of the interface used.
9053         case `$LD -v 2>&1` in
9054           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9055           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9056           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9057           *)
9058             lt_use_gnu_ld_interface=yes
9059             ;;
9060         esac
9061         ;;
9062       *)
9063         lt_use_gnu_ld_interface=yes
9064         ;;
9065     esac
9066   fi
9067
9068   if test yes = "$lt_use_gnu_ld_interface"; then
9069     # If archive_cmds runs LD, not CC, wlarc should be empty
9070     wlarc='$wl'
9071
9072     # Set some defaults for GNU ld with shared library support. These
9073     # are reset later if shared libraries are not supported. Putting them
9074     # here allows them to be overridden if necessary.
9075     runpath_var=LD_RUN_PATH
9076     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9077     export_dynamic_flag_spec='$wl--export-dynamic'
9078     # ancient GNU ld didn't support --whole-archive et. al.
9079     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9080       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9081     else
9082       whole_archive_flag_spec=
9083     fi
9084     supports_anon_versioning=no
9085     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9086       *GNU\ gold*) supports_anon_versioning=yes ;;
9087       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9088       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9089       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9090       *\ 2.11.*) ;; # other 2.11 versions
9091       *) supports_anon_versioning=yes ;;
9092     esac
9093
9094     # See if GNU ld supports shared libraries.
9095     case $host_os in
9096     aix[3-9]*)
9097       # On AIX/PPC, the GNU linker is very broken
9098       if test ia64 != "$host_cpu"; then
9099         ld_shlibs=no
9100         cat <<_LT_EOF 1>&2
9101
9102 *** Warning: the GNU linker, at least up to release 2.19, is reported
9103 *** to be unable to reliably create shared libraries on AIX.
9104 *** Therefore, libtool is disabling shared libraries support.  If you
9105 *** really care for shared libraries, you may want to install binutils
9106 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9107 *** You will then need to restart the configuration process.
9108
9109 _LT_EOF
9110       fi
9111       ;;
9112
9113     amigaos*)
9114       case $host_cpu in
9115       powerpc)
9116             # see comment about AmigaOS4 .so support
9117             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9118             archive_expsym_cmds=''
9119         ;;
9120       m68k)
9121             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)'
9122             hardcode_libdir_flag_spec='-L$libdir'
9123             hardcode_minus_L=yes
9124         ;;
9125       esac
9126       ;;
9127
9128     beos*)
9129       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9130         allow_undefined_flag=unsupported
9131         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9132         # support --undefined.  This deserves some investigation.  FIXME
9133         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9134       else
9135         ld_shlibs=no
9136       fi
9137       ;;
9138
9139     cygwin* | mingw* | pw32* | cegcc*)
9140       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9141       # as there is no search path for DLLs.
9142       hardcode_libdir_flag_spec='-L$libdir'
9143       export_dynamic_flag_spec='$wl--export-all-symbols'
9144       allow_undefined_flag=unsupported
9145       always_export_symbols=no
9146       enable_shared_with_static_runtimes=yes
9147       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'
9148       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9149
9150       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152         # If the export-symbols file already is a .def file, use it as
9153         # is; otherwise, prepend EXPORTS...
9154         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9155           cp $export_symbols $output_objdir/$soname.def;
9156         else
9157           echo EXPORTS > $output_objdir/$soname.def;
9158           cat $export_symbols >> $output_objdir/$soname.def;
9159         fi~
9160         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9161       else
9162         ld_shlibs=no
9163       fi
9164       ;;
9165
9166     haiku*)
9167       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9168       link_all_deplibs=yes
9169       ;;
9170
9171     os2*)
9172       hardcode_libdir_flag_spec='-L$libdir'
9173       hardcode_minus_L=yes
9174       allow_undefined_flag=unsupported
9175       shrext_cmds=.dll
9176       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9177         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9178         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9179         $ECHO EXPORTS >> $output_objdir/$libname.def~
9180         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9181         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9182         emximp -o $lib $output_objdir/$libname.def'
9183       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9184         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9185         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9186         $ECHO EXPORTS >> $output_objdir/$libname.def~
9187         prefix_cmds="$SED"~
9188         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9189           prefix_cmds="$prefix_cmds -e 1d";
9190         fi~
9191         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9192         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9193         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9194         emximp -o $lib $output_objdir/$libname.def'
9195       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9196       enable_shared_with_static_runtimes=yes
9197       ;;
9198
9199     interix[3-9]*)
9200       hardcode_direct=no
9201       hardcode_shlibpath_var=no
9202       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9203       export_dynamic_flag_spec='$wl-E'
9204       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9205       # Instead, shared libraries are loaded at an image base (0x10000000 by
9206       # default) and relocated if they conflict, which is a slow very memory
9207       # consuming and fragmenting process.  To avoid this, we pick a random,
9208       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9209       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9210       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9211       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'
9212       ;;
9213
9214     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9215       tmp_diet=no
9216       if test linux-dietlibc = "$host_os"; then
9217         case $cc_basename in
9218           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9219         esac
9220       fi
9221       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9222          && test no = "$tmp_diet"
9223       then
9224         tmp_addflag=' $pic_flag'
9225         tmp_sharedflag='-shared'
9226         case $cc_basename,$host_cpu in
9227         pgcc*)                          # Portland Group C compiler
9228           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'
9229           tmp_addflag=' $pic_flag'
9230           ;;
9231         pgf77* | pgf90* | pgf95* | pgfortran*)
9232                                         # Portland Group f77 and f90 compilers
9233           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'
9234           tmp_addflag=' $pic_flag -Mnomain' ;;
9235         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9236           tmp_addflag=' -i_dynamic' ;;
9237         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9238           tmp_addflag=' -i_dynamic -nofor_main' ;;
9239         ifc* | ifort*)                  # Intel Fortran compiler
9240           tmp_addflag=' -nofor_main' ;;
9241         lf95*)                          # Lahey Fortran 8.1
9242           whole_archive_flag_spec=
9243           tmp_sharedflag='--shared' ;;
9244         nagfor*)                        # NAGFOR 5.3
9245           tmp_sharedflag='-Wl,-shared' ;;
9246         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9247           tmp_sharedflag='-qmkshrobj'
9248           tmp_addflag= ;;
9249         nvcc*)  # Cuda Compiler Driver 2.2
9250           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'
9251           compiler_needs_object=yes
9252           ;;
9253         esac
9254         case `$CC -V 2>&1 | sed 5q` in
9255         *Sun\ C*)                       # Sun C 5.9
9256           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'
9257           compiler_needs_object=yes
9258           tmp_sharedflag='-G' ;;
9259         *Sun\ F*)                       # Sun Fortran 8.3
9260           tmp_sharedflag='-G' ;;
9261         esac
9262         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9263
9264         if test yes = "$supports_anon_versioning"; then
9265           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9266             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9267             echo "local: *; };" >> $output_objdir/$libname.ver~
9268             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9269         fi
9270
9271         case $cc_basename in
9272         tcc*)
9273           export_dynamic_flag_spec='-rdynamic'
9274           ;;
9275         xlf* | bgf* | bgxlf* | mpixlf*)
9276           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9277           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9278           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9279           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9280           if test yes = "$supports_anon_versioning"; then
9281             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9282               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9283               echo "local: *; };" >> $output_objdir/$libname.ver~
9284               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9285           fi
9286           ;;
9287         esac
9288       else
9289         ld_shlibs=no
9290       fi
9291       ;;
9292
9293     netbsd* | netbsdelf*-gnu)
9294       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9296         wlarc=
9297       else
9298         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9300       fi
9301       ;;
9302
9303     solaris*)
9304       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9305         ld_shlibs=no
9306         cat <<_LT_EOF 1>&2
9307
9308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9309 *** create shared libraries on Solaris systems.  Therefore, libtool
9310 *** is disabling shared libraries support.  We urge you to upgrade GNU
9311 *** binutils to release 2.9.1 or newer.  Another option is to modify
9312 *** your PATH or compiler configuration so that the native linker is
9313 *** used, and then restart.
9314
9315 _LT_EOF
9316       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9317         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9319       else
9320         ld_shlibs=no
9321       fi
9322       ;;
9323
9324     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9325       case `$LD -v 2>&1` in
9326         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9327         ld_shlibs=no
9328         cat <<_LT_EOF 1>&2
9329
9330 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9331 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9332 *** is disabling shared libraries support.  We urge you to upgrade GNU
9333 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9334 *** your PATH or compiler configuration so that the native linker is
9335 *** used, and then restart.
9336
9337 _LT_EOF
9338         ;;
9339         *)
9340           # For security reasons, it is highly recommended that you always
9341           # use absolute paths for naming shared libraries, and exclude the
9342           # DT_RUNPATH tag from executables and libraries.  But doing so
9343           # requires that you compile everything twice, which is a pain.
9344           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9346             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9347             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9348           else
9349             ld_shlibs=no
9350           fi
9351         ;;
9352       esac
9353       ;;
9354
9355     sunos4*)
9356       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9357       wlarc=
9358       hardcode_direct=yes
9359       hardcode_shlibpath_var=no
9360       ;;
9361
9362     *)
9363       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9365         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9366       else
9367         ld_shlibs=no
9368       fi
9369       ;;
9370     esac
9371
9372     if test no = "$ld_shlibs"; then
9373       runpath_var=
9374       hardcode_libdir_flag_spec=
9375       export_dynamic_flag_spec=
9376       whole_archive_flag_spec=
9377     fi
9378   else
9379     # PORTME fill in a description of your system's linker (not GNU ld)
9380     case $host_os in
9381     aix3*)
9382       allow_undefined_flag=unsupported
9383       always_export_symbols=yes
9384       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'
9385       # Note: this linker hardcodes the directories in LIBPATH if there
9386       # are no directories specified by -L.
9387       hardcode_minus_L=yes
9388       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9389         # Neither direct hardcoding nor static linking is supported with a
9390         # broken collect2.
9391         hardcode_direct=unsupported
9392       fi
9393       ;;
9394
9395     aix[4-9]*)
9396       if test ia64 = "$host_cpu"; then
9397         # On IA64, the linker does run time linking by default, so we don't
9398         # have to do anything special.
9399         aix_use_runtimelinking=no
9400         exp_sym_flag='-Bexport'
9401         no_entry_flag=
9402       else
9403         # If we're using GNU nm, then we don't want the "-C" option.
9404         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9405         # Without the "-l" option, or with the "-B" option, AIX nm treats
9406         # weak defined symbols like other global defined symbols, whereas
9407         # GNU nm marks them as "W".
9408         # While the 'weak' keyword is ignored in the Export File, we need
9409         # it in the Import File for the 'aix-soname' feature, so we have
9410         # to replace the "-B" option with "-P" for AIX nm.
9411         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9412           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'
9413         else
9414           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'
9415         fi
9416         aix_use_runtimelinking=no
9417
9418         # Test if we are trying to use run time linking or normal
9419         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9420         # have runtime linking enabled, and use it for executables.
9421         # For shared libraries, we enable/disable runtime linking
9422         # depending on the kind of the shared library created -
9423         # when "with_aix_soname,aix_use_runtimelinking" is:
9424         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9425         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9426         #            lib.a           static archive
9427         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9428         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9429         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9430         #            lib.a(lib.so.V) shared, rtl:no
9431         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9432         #            lib.a           static archive
9433         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9434           for ld_flag in $LDFLAGS; do
9435           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9436             aix_use_runtimelinking=yes
9437             break
9438           fi
9439           done
9440           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9441             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9442             # so we don't have lib.a shared libs to link our executables.
9443             # We have to force runtime linking in this case.
9444             aix_use_runtimelinking=yes
9445             LDFLAGS="$LDFLAGS -Wl,-brtl"
9446           fi
9447           ;;
9448         esac
9449
9450         exp_sym_flag='-bexport'
9451         no_entry_flag='-bnoentry'
9452       fi
9453
9454       # When large executables or shared objects are built, AIX ld can
9455       # have problems creating the table of contents.  If linking a library
9456       # or program results in "error TOC overflow" add -mminimal-toc to
9457       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9458       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9459
9460       archive_cmds=''
9461       hardcode_direct=yes
9462       hardcode_direct_absolute=yes
9463       hardcode_libdir_separator=':'
9464       link_all_deplibs=yes
9465       file_list_spec='$wl-f,'
9466       case $with_aix_soname,$aix_use_runtimelinking in
9467       aix,*) ;; # traditional, no import file
9468       svr4,* | *,yes) # use import file
9469         # The Import File defines what to hardcode.
9470         hardcode_direct=no
9471         hardcode_direct_absolute=no
9472         ;;
9473       esac
9474
9475       if test yes = "$GCC"; then
9476         case $host_os in aix4.[012]|aix4.[012].*)
9477         # We only want to do this on AIX 4.2 and lower, the check
9478         # below for broken collect2 doesn't work under 4.3+
9479           collect2name=`$CC -print-prog-name=collect2`
9480           if test -f "$collect2name" &&
9481            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9482           then
9483           # We have reworked collect2
9484           :
9485           else
9486           # We have old collect2
9487           hardcode_direct=unsupported
9488           # It fails to find uninstalled libraries when the uninstalled
9489           # path is not listed in the libpath.  Setting hardcode_minus_L
9490           # to unsupported forces relinking
9491           hardcode_minus_L=yes
9492           hardcode_libdir_flag_spec='-L$libdir'
9493           hardcode_libdir_separator=
9494           fi
9495           ;;
9496         esac
9497         shared_flag='-shared'
9498         if test yes = "$aix_use_runtimelinking"; then
9499           shared_flag="$shared_flag "'$wl-G'
9500         fi
9501         # Need to ensure runtime linking is disabled for the traditional
9502         # shared library, or the linker may eventually find shared libraries
9503         # /with/ Import File - we do not want to mix them.
9504         shared_flag_aix='-shared'
9505         shared_flag_svr4='-shared $wl-G'
9506       else
9507         # not using gcc
9508         if test ia64 = "$host_cpu"; then
9509         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510         # chokes on -Wl,-G. The following line is correct:
9511           shared_flag='-G'
9512         else
9513           if test yes = "$aix_use_runtimelinking"; then
9514             shared_flag='$wl-G'
9515           else
9516             shared_flag='$wl-bM:SRE'
9517           fi
9518           shared_flag_aix='$wl-bM:SRE'
9519           shared_flag_svr4='$wl-G'
9520         fi
9521       fi
9522
9523       export_dynamic_flag_spec='$wl-bexpall'
9524       # It seems that -bexpall does not export symbols beginning with
9525       # underscore (_), so it is better to generate a list of symbols to export.
9526       always_export_symbols=yes
9527       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9528         # Warning - without using the other runtime loading flags (-brtl),
9529         # -berok will link without error, but may produce a broken library.
9530         allow_undefined_flag='-berok'
9531         # Determine the default libpath from the value encoded in an
9532         # empty executable.
9533         if test set = "${lt_cv_aix_libpath+set}"; then
9534   aix_libpath=$lt_cv_aix_libpath
9535 else
9536   if ${lt_cv_aix_libpath_+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h.  */
9541
9542 int
9543 main ()
9544 {
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551
9552   lt_aix_libpath_sed='
9553       /Import File Strings/,/^$/ {
9554           /^0/ {
9555               s/^0  *\([^ ]*\) *$/\1/
9556               p
9557           }
9558       }'
9559   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560   # Check for a 64-bit object if we didn't find anything.
9561   if test -z "$lt_cv_aix_libpath_"; then
9562     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563   fi
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566     conftest$ac_exeext conftest.$ac_ext
9567   if test -z "$lt_cv_aix_libpath_"; then
9568     lt_cv_aix_libpath_=/usr/lib:/lib
9569   fi
9570
9571 fi
9572
9573   aix_libpath=$lt_cv_aix_libpath_
9574 fi
9575
9576         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9577         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
9578       else
9579         if test ia64 = "$host_cpu"; then
9580           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9581           allow_undefined_flag="-z nodefs"
9582           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"
9583         else
9584          # Determine the default libpath from the value encoded in an
9585          # empty executable.
9586          if test set = "${lt_cv_aix_libpath+set}"; then
9587   aix_libpath=$lt_cv_aix_libpath
9588 else
9589   if ${lt_cv_aix_libpath_+:} false; then :
9590   $as_echo_n "(cached) " >&6
9591 else
9592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h.  */
9594
9595 int
9596 main ()
9597 {
9598
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604
9605   lt_aix_libpath_sed='
9606       /Import File Strings/,/^$/ {
9607           /^0/ {
9608               s/^0  *\([^ ]*\) *$/\1/
9609               p
9610           }
9611       }'
9612   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613   # Check for a 64-bit object if we didn't find anything.
9614   if test -z "$lt_cv_aix_libpath_"; then
9615     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616   fi
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620   if test -z "$lt_cv_aix_libpath_"; then
9621     lt_cv_aix_libpath_=/usr/lib:/lib
9622   fi
9623
9624 fi
9625
9626   aix_libpath=$lt_cv_aix_libpath_
9627 fi
9628
9629          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9630           # Warning - without using the other run time loading flags,
9631           # -berok will link without error, but may produce a broken library.
9632           no_undefined_flag=' $wl-bernotok'
9633           allow_undefined_flag=' $wl-berok'
9634           if test yes = "$with_gnu_ld"; then
9635             # We only use this code for GNU lds that support --whole-archive.
9636             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9637           else
9638             # Exported symbols can be pulled into shared objects from archives
9639             whole_archive_flag_spec='$convenience'
9640           fi
9641           archive_cmds_need_lc=yes
9642           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9643           # -brtl affects multiple linker settings, -berok does not and is overridden later
9644           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9645           if test svr4 != "$with_aix_soname"; then
9646             # This is similar to how AIX traditionally builds its shared libraries.
9647             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'
9648           fi
9649           if test aix != "$with_aix_soname"; then
9650             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'
9651           else
9652             # used by -dlpreopen to get the symbols
9653             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9654           fi
9655           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9656         fi
9657       fi
9658       ;;
9659
9660     amigaos*)
9661       case $host_cpu in
9662       powerpc)
9663             # see comment about AmigaOS4 .so support
9664             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9665             archive_expsym_cmds=''
9666         ;;
9667       m68k)
9668             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)'
9669             hardcode_libdir_flag_spec='-L$libdir'
9670             hardcode_minus_L=yes
9671         ;;
9672       esac
9673       ;;
9674
9675     bsdi[45]*)
9676       export_dynamic_flag_spec=-rdynamic
9677       ;;
9678
9679     cygwin* | mingw* | pw32* | cegcc*)
9680       # When not using gcc, we currently assume that we are using
9681       # Microsoft Visual C++.
9682       # hardcode_libdir_flag_spec is actually meaningless, as there is
9683       # no search path for DLLs.
9684       case $cc_basename in
9685       cl*)
9686         # Native MSVC
9687         hardcode_libdir_flag_spec=' '
9688         allow_undefined_flag=unsupported
9689         always_export_symbols=yes
9690         file_list_spec='@'
9691         # Tell ltmain to make .lib files, not .a files.
9692         libext=lib
9693         # Tell ltmain to make .dll files, not .so files.
9694         shrext_cmds=.dll
9695         # FIXME: Setting linknames here is a bad hack.
9696         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9697         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9698             cp "$export_symbols" "$output_objdir/$soname.def";
9699             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9700           else
9701             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9702           fi~
9703           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9704           linknames='
9705         # The linker will not automatically build a static lib if we build a DLL.
9706         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707         enable_shared_with_static_runtimes=yes
9708         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9710         # Don't use ranlib
9711         old_postinstall_cmds='chmod 644 $oldlib'
9712         postlink_cmds='lt_outputfile="@OUTPUT@"~
9713           lt_tool_outputfile="@TOOL_OUTPUT@"~
9714           case $lt_outputfile in
9715             *.exe|*.EXE) ;;
9716             *)
9717               lt_outputfile=$lt_outputfile.exe
9718               lt_tool_outputfile=$lt_tool_outputfile.exe
9719               ;;
9720           esac~
9721           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9722             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723             $RM "$lt_outputfile.manifest";
9724           fi'
9725         ;;
9726       *)
9727         # Assume MSVC wrapper
9728         hardcode_libdir_flag_spec=' '
9729         allow_undefined_flag=unsupported
9730         # Tell ltmain to make .lib files, not .a files.
9731         libext=lib
9732         # Tell ltmain to make .dll files, not .so files.
9733         shrext_cmds=.dll
9734         # FIXME: Setting linknames here is a bad hack.
9735         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736         # The linker will automatically build a .lib file if we build a DLL.
9737         old_archive_from_new_cmds='true'
9738         # FIXME: Should let the user specify the lib program.
9739         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740         enable_shared_with_static_runtimes=yes
9741         ;;
9742       esac
9743       ;;
9744
9745     darwin* | rhapsody*)
9746
9747
9748   archive_cmds_need_lc=no
9749   hardcode_direct=no
9750   hardcode_automatic=yes
9751   hardcode_shlibpath_var=unsupported
9752   if test yes = "$lt_cv_ld_force_load"; then
9753     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\"`'
9754
9755   else
9756     whole_archive_flag_spec=''
9757   fi
9758   link_all_deplibs=yes
9759   allow_undefined_flag=$_lt_dar_allow_undefined
9760   case $cc_basename in
9761      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9762      *) _lt_dar_can_shared=$GCC ;;
9763   esac
9764   if test yes = "$_lt_dar_can_shared"; then
9765     output_verbose_link_cmd=func_echo_all
9766     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9767     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9768     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"
9769     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"
9770
9771   else
9772   ld_shlibs=no
9773   fi
9774
9775       ;;
9776
9777     dgux*)
9778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779       hardcode_libdir_flag_spec='-L$libdir'
9780       hardcode_shlibpath_var=no
9781       ;;
9782
9783     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784     # support.  Future versions do this automatically, but an explicit c++rt0.o
9785     # does not break anything, and helps significantly (at the cost of a little
9786     # extra space).
9787     freebsd2.2*)
9788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789       hardcode_libdir_flag_spec='-R$libdir'
9790       hardcode_direct=yes
9791       hardcode_shlibpath_var=no
9792       ;;
9793
9794     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795     freebsd2.*)
9796       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797       hardcode_direct=yes
9798       hardcode_minus_L=yes
9799       hardcode_shlibpath_var=no
9800       ;;
9801
9802     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803     freebsd* | dragonfly*)
9804       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805       hardcode_libdir_flag_spec='-R$libdir'
9806       hardcode_direct=yes
9807       hardcode_shlibpath_var=no
9808       ;;
9809
9810     hpux9*)
9811       if test yes = "$GCC"; then
9812         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'
9813       else
9814         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'
9815       fi
9816       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9817       hardcode_libdir_separator=:
9818       hardcode_direct=yes
9819
9820       # hardcode_minus_L: Not really in the search PATH,
9821       # but as the default location of the library.
9822       hardcode_minus_L=yes
9823       export_dynamic_flag_spec='$wl-E'
9824       ;;
9825
9826     hpux10*)
9827       if test yes,no = "$GCC,$with_gnu_ld"; then
9828         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829       else
9830         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831       fi
9832       if test no = "$with_gnu_ld"; then
9833         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9834         hardcode_libdir_separator=:
9835         hardcode_direct=yes
9836         hardcode_direct_absolute=yes
9837         export_dynamic_flag_spec='$wl-E'
9838         # hardcode_minus_L: Not really in the search PATH,
9839         # but as the default location of the library.
9840         hardcode_minus_L=yes
9841       fi
9842       ;;
9843
9844     hpux11*)
9845       if test yes,no = "$GCC,$with_gnu_ld"; then
9846         case $host_cpu in
9847         hppa*64*)
9848           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         ia64*)
9851           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         *)
9854           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855           ;;
9856         esac
9857       else
9858         case $host_cpu in
9859         hppa*64*)
9860           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9861           ;;
9862         ia64*)
9863           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864           ;;
9865         *)
9866
9867           # Older versions of the 11.00 compiler do not understand -b yet
9868           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872   $as_echo_n "(cached) " >&6
9873 else
9874   lt_cv_prog_compiler__b=no
9875    save_LDFLAGS=$LDFLAGS
9876    LDFLAGS="$LDFLAGS -b"
9877    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879      # The linker can only warn and ignore the option if not recognized
9880      # So say no if there are warnings
9881      if test -s conftest.err; then
9882        # Append any errors to the config.log.
9883        cat conftest.err 1>&5
9884        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886        if diff conftest.exp conftest.er2 >/dev/null; then
9887          lt_cv_prog_compiler__b=yes
9888        fi
9889      else
9890        lt_cv_prog_compiler__b=yes
9891      fi
9892    fi
9893    $RM -r conftest*
9894    LDFLAGS=$save_LDFLAGS
9895
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9899
9900 if test yes = "$lt_cv_prog_compiler__b"; then
9901     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
9905
9906           ;;
9907         esac
9908       fi
9909       if test no = "$with_gnu_ld"; then
9910         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9911         hardcode_libdir_separator=:
9912
9913         case $host_cpu in
9914         hppa*64*|ia64*)
9915           hardcode_direct=no
9916           hardcode_shlibpath_var=no
9917           ;;
9918         *)
9919           hardcode_direct=yes
9920           hardcode_direct_absolute=yes
9921           export_dynamic_flag_spec='$wl-E'
9922
9923           # hardcode_minus_L: Not really in the search PATH,
9924           # but as the default location of the library.
9925           hardcode_minus_L=yes
9926           ;;
9927         esac
9928       fi
9929       ;;
9930
9931     irix5* | irix6* | nonstopux*)
9932       if test yes = "$GCC"; then
9933         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'
9934         # Try to use the -exported_symbol ld option, if it does not
9935         # work, assume that -exports_file does not work either and
9936         # implicitly export all symbols.
9937         # This should be the same for all languages, so no per-tag cache variable.
9938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940 if ${lt_cv_irix_exported_symbol+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   save_LDFLAGS=$LDFLAGS
9944            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9945            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h.  */
9947 int foo (void) { return 0; }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950   lt_cv_irix_exported_symbol=yes
9951 else
9952   lt_cv_irix_exported_symbol=no
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext \
9955     conftest$ac_exeext conftest.$ac_ext
9956            LDFLAGS=$save_LDFLAGS
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960         if test yes = "$lt_cv_irix_exported_symbol"; then
9961           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'
9962         fi
9963         link_all_deplibs=no
9964       else
9965         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'
9966         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'
9967       fi
9968       archive_cmds_need_lc='no'
9969       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9970       hardcode_libdir_separator=:
9971       inherit_rpath=yes
9972       link_all_deplibs=yes
9973       ;;
9974
9975     linux*)
9976       case $cc_basename in
9977       tcc*)
9978         # Fabrice Bellard et al's Tiny C Compiler
9979         ld_shlibs=yes
9980         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9981         ;;
9982       esac
9983       ;;
9984
9985     netbsd* | netbsdelf*-gnu)
9986       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9987         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9988       else
9989         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9990       fi
9991       hardcode_libdir_flag_spec='-R$libdir'
9992       hardcode_direct=yes
9993       hardcode_shlibpath_var=no
9994       ;;
9995
9996     newsos6)
9997       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998       hardcode_direct=yes
9999       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10000       hardcode_libdir_separator=:
10001       hardcode_shlibpath_var=no
10002       ;;
10003
10004     *nto* | *qnx*)
10005       ;;
10006
10007     openbsd* | bitrig*)
10008       if test -f /usr/libexec/ld.so; then
10009         hardcode_direct=yes
10010         hardcode_shlibpath_var=no
10011         hardcode_direct_absolute=yes
10012         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10013           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10015           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10016           export_dynamic_flag_spec='$wl-E'
10017         else
10018           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10019           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10020         fi
10021       else
10022         ld_shlibs=no
10023       fi
10024       ;;
10025
10026     os2*)
10027       hardcode_libdir_flag_spec='-L$libdir'
10028       hardcode_minus_L=yes
10029       allow_undefined_flag=unsupported
10030       shrext_cmds=.dll
10031       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10032         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10033         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10034         $ECHO EXPORTS >> $output_objdir/$libname.def~
10035         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10036         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10037         emximp -o $lib $output_objdir/$libname.def'
10038       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10039         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10040         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10041         $ECHO EXPORTS >> $output_objdir/$libname.def~
10042         prefix_cmds="$SED"~
10043         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10044           prefix_cmds="$prefix_cmds -e 1d";
10045         fi~
10046         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10047         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10048         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10049         emximp -o $lib $output_objdir/$libname.def'
10050       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10051       enable_shared_with_static_runtimes=yes
10052       ;;
10053
10054     osf3*)
10055       if test yes = "$GCC"; then
10056         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10057         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'
10058       else
10059         allow_undefined_flag=' -expect_unresolved \*'
10060         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'
10061       fi
10062       archive_cmds_need_lc='no'
10063       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064       hardcode_libdir_separator=:
10065       ;;
10066
10067     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10068       if test yes = "$GCC"; then
10069         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10070         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'
10071         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10072       else
10073         allow_undefined_flag=' -expect_unresolved \*'
10074         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'
10075         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~
10076           $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'
10077
10078         # Both c and cxx compiler support -rpath directly
10079         hardcode_libdir_flag_spec='-rpath $libdir'
10080       fi
10081       archive_cmds_need_lc='no'
10082       hardcode_libdir_separator=:
10083       ;;
10084
10085     solaris*)
10086       no_undefined_flag=' -z defs'
10087       if test yes = "$GCC"; then
10088         wlarc='$wl'
10089         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10090         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10091           $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'
10092       else
10093         case `$CC -V 2>&1` in
10094         *"Compilers 5.0"*)
10095           wlarc=''
10096           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10098             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10099           ;;
10100         *)
10101           wlarc='$wl'
10102           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10103           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10104             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10105           ;;
10106         esac
10107       fi
10108       hardcode_libdir_flag_spec='-R$libdir'
10109       hardcode_shlibpath_var=no
10110       case $host_os in
10111       solaris2.[0-5] | solaris2.[0-5].*) ;;
10112       *)
10113         # The compiler driver will combine and reorder linker options,
10114         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10115         # but is careful enough not to reorder.
10116         # Supported since Solaris 2.6 (maybe 2.5.1?)
10117         if test yes = "$GCC"; then
10118           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10119         else
10120           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10121         fi
10122         ;;
10123       esac
10124       link_all_deplibs=yes
10125       ;;
10126
10127     sunos4*)
10128       if test sequent = "$host_vendor"; then
10129         # Use $CC to link under sequent, because it throws in some extra .o
10130         # files that make .init and .fini sections work.
10131         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10132       else
10133         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10134       fi
10135       hardcode_libdir_flag_spec='-L$libdir'
10136       hardcode_direct=yes
10137       hardcode_minus_L=yes
10138       hardcode_shlibpath_var=no
10139       ;;
10140
10141     sysv4)
10142       case $host_vendor in
10143         sni)
10144           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145           hardcode_direct=yes # is this really true???
10146         ;;
10147         siemens)
10148           ## LD is ld it makes a PLAMLIB
10149           ## CC just makes a GrossModule.
10150           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10151           reload_cmds='$CC -r -o $output$reload_objs'
10152           hardcode_direct=no
10153         ;;
10154         motorola)
10155           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10157         ;;
10158       esac
10159       runpath_var='LD_RUN_PATH'
10160       hardcode_shlibpath_var=no
10161       ;;
10162
10163     sysv4.3*)
10164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165       hardcode_shlibpath_var=no
10166       export_dynamic_flag_spec='-Bexport'
10167       ;;
10168
10169     sysv4*MP*)
10170       if test -d /usr/nec; then
10171         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172         hardcode_shlibpath_var=no
10173         runpath_var=LD_RUN_PATH
10174         hardcode_runpath_var=yes
10175         ld_shlibs=yes
10176       fi
10177       ;;
10178
10179     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10180       no_undefined_flag='$wl-z,text'
10181       archive_cmds_need_lc=no
10182       hardcode_shlibpath_var=no
10183       runpath_var='LD_RUN_PATH'
10184
10185       if test yes = "$GCC"; then
10186         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188       else
10189         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191       fi
10192       ;;
10193
10194     sysv5* | sco3.2v5* | sco5v6*)
10195       # Note: We CANNOT use -z defs as we might desire, because we do not
10196       # link with -lc, and that would cause any symbols used from libc to
10197       # always be unresolved, which means just about no library would
10198       # ever link correctly.  If we're not using GNU ld we use -z text
10199       # though, which does catch some bad symbols but isn't as heavy-handed
10200       # as -z defs.
10201       no_undefined_flag='$wl-z,text'
10202       allow_undefined_flag='$wl-z,nodefs'
10203       archive_cmds_need_lc=no
10204       hardcode_shlibpath_var=no
10205       hardcode_libdir_flag_spec='$wl-R,$libdir'
10206       hardcode_libdir_separator=':'
10207       link_all_deplibs=yes
10208       export_dynamic_flag_spec='$wl-Bexport'
10209       runpath_var='LD_RUN_PATH'
10210
10211       if test yes = "$GCC"; then
10212         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214       else
10215         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217       fi
10218       ;;
10219
10220     uts4*)
10221       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222       hardcode_libdir_flag_spec='-L$libdir'
10223       hardcode_shlibpath_var=no
10224       ;;
10225
10226     *)
10227       ld_shlibs=no
10228       ;;
10229     esac
10230
10231     if test sni = "$host_vendor"; then
10232       case $host in
10233       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10234         export_dynamic_flag_spec='$wl-Blargedynsym'
10235         ;;
10236       esac
10237     fi
10238   fi
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10241 $as_echo "$ld_shlibs" >&6; }
10242 test no = "$ld_shlibs" && can_build_shared=no
10243
10244 with_gnu_ld=$with_gnu_ld
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260 #
10261 # Do we need to explicitly link libc?
10262 #
10263 case "x$archive_cmds_need_lc" in
10264 x|xyes)
10265   # Assume -lc should be added
10266   archive_cmds_need_lc=yes
10267
10268   if test yes,yes = "$GCC,$enable_shared"; then
10269     case $archive_cmds in
10270     *'~'*)
10271       # FIXME: we may have to deal with multi-command sequences.
10272       ;;
10273     '$CC '*)
10274       # Test whether the compiler implicitly links with -lc since on some
10275       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10276       # to ld, don't add -lc before -lgcc.
10277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10278 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10279 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   $RM conftest*
10283         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10284
10285         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10286   (eval $ac_compile) 2>&5
10287   ac_status=$?
10288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10289   test $ac_status = 0; } 2>conftest.err; then
10290           soname=conftest
10291           lib=conftest
10292           libobjs=conftest.$ac_objext
10293           deplibs=
10294           wl=$lt_prog_compiler_wl
10295           pic_flag=$lt_prog_compiler_pic
10296           compiler_flags=-v
10297           linker_flags=-v
10298           verstring=
10299           output_objdir=.
10300           libname=conftest
10301           lt_save_allow_undefined_flag=$allow_undefined_flag
10302           allow_undefined_flag=
10303           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10304   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10305   ac_status=$?
10306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10307   test $ac_status = 0; }
10308           then
10309             lt_cv_archive_cmds_need_lc=no
10310           else
10311             lt_cv_archive_cmds_need_lc=yes
10312           fi
10313           allow_undefined_flag=$lt_save_allow_undefined_flag
10314         else
10315           cat conftest.err 1>&5
10316         fi
10317         $RM conftest*
10318
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10321 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10322       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10323       ;;
10324     esac
10325   fi
10326   ;;
10327 esac
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10481 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10482
10483 if test yes = "$GCC"; then
10484   case $host_os in
10485     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10486     *) lt_awk_arg='/^libraries:/' ;;
10487   esac
10488   case $host_os in
10489     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10490     *) lt_sed_strip_eq='s|=/|/|g' ;;
10491   esac
10492   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10493   case $lt_search_path_spec in
10494   *\;*)
10495     # if the path contains ";" then we assume it to be the separator
10496     # otherwise default to the standard path separator (i.e. ":") - it is
10497     # assumed that no part of a normal pathname contains ";" but that should
10498     # okay in the real world where ";" in dirpaths is itself problematic.
10499     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10500     ;;
10501   *)
10502     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10503     ;;
10504   esac
10505   # Ok, now we have the path, separated by spaces, we can step through it
10506   # and add multilib dir if necessary...
10507   lt_tmp_lt_search_path_spec=
10508   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10509   # ...but if some path component already ends with the multilib dir we assume
10510   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10511   case "$lt_multi_os_dir; $lt_search_path_spec " in
10512   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10513     lt_multi_os_dir=
10514     ;;
10515   esac
10516   for lt_sys_path in $lt_search_path_spec; do
10517     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10518       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10519     elif test -n "$lt_multi_os_dir"; then
10520       test -d "$lt_sys_path" && \
10521         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10522     fi
10523   done
10524   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10525 BEGIN {RS = " "; FS = "/|\n";} {
10526   lt_foo = "";
10527   lt_count = 0;
10528   for (lt_i = NF; lt_i > 0; lt_i--) {
10529     if ($lt_i != "" && $lt_i != ".") {
10530       if ($lt_i == "..") {
10531         lt_count++;
10532       } else {
10533         if (lt_count == 0) {
10534           lt_foo = "/" $lt_i lt_foo;
10535         } else {
10536           lt_count--;
10537         }
10538       }
10539     }
10540   }
10541   if (lt_foo != "") { lt_freq[lt_foo]++; }
10542   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10543 }'`
10544   # AWK program above erroneously prepends '/' to C:/dos/paths
10545   # for these hosts.
10546   case $host_os in
10547     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10548       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10549   esac
10550   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10551 else
10552   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10553 fi
10554 library_names_spec=
10555 libname_spec='lib$name'
10556 soname_spec=
10557 shrext_cmds=.so
10558 postinstall_cmds=
10559 postuninstall_cmds=
10560 finish_cmds=
10561 finish_eval=
10562 shlibpath_var=
10563 shlibpath_overrides_runpath=unknown
10564 version_type=none
10565 dynamic_linker="$host_os ld.so"
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10567 need_lib_prefix=unknown
10568 hardcode_into_libs=no
10569
10570 # when you set need_version to no, make sure it does not cause -set_version
10571 # flags to be left without arguments
10572 need_version=unknown
10573
10574
10575
10576 case $host_os in
10577 aix3*)
10578   version_type=linux # correct to gnu/linux during the next big refactor
10579   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10580   shlibpath_var=LIBPATH
10581
10582   # AIX 3 has no versioning support, so we append a major version to the name.
10583   soname_spec='$libname$release$shared_ext$major'
10584   ;;
10585
10586 aix[4-9]*)
10587   version_type=linux # correct to gnu/linux during the next big refactor
10588   need_lib_prefix=no
10589   need_version=no
10590   hardcode_into_libs=yes
10591   if test ia64 = "$host_cpu"; then
10592     # AIX 5 supports IA64
10593     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10594     shlibpath_var=LD_LIBRARY_PATH
10595   else
10596     # With GCC up to 2.95.x, collect2 would create an import file
10597     # for dependence libraries.  The import file would start with
10598     # the line '#! .'.  This would cause the generated library to
10599     # depend on '.', always an invalid library.  This was fixed in
10600     # development snapshots of GCC prior to 3.0.
10601     case $host_os in
10602       aix4 | aix4.[01] | aix4.[01].*)
10603       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10604            echo ' yes '
10605            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10606         :
10607       else
10608         can_build_shared=no
10609       fi
10610       ;;
10611     esac
10612     # Using Import Files as archive members, it is possible to support
10613     # filename-based versioning of shared library archives on AIX. While
10614     # this would work for both with and without runtime linking, it will
10615     # prevent static linking of such archives. So we do filename-based
10616     # shared library versioning with .so extension only, which is used
10617     # when both runtime linking and shared linking is enabled.
10618     # Unfortunately, runtime linking may impact performance, so we do
10619     # not want this to be the default eventually. Also, we use the
10620     # versioned .so libs for executables only if there is the -brtl
10621     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10622     # To allow for filename-based versioning support, we need to create
10623     # libNAME.so.V as an archive file, containing:
10624     # *) an Import File, referring to the versioned filename of the
10625     #    archive as well as the shared archive member, telling the
10626     #    bitwidth (32 or 64) of that shared object, and providing the
10627     #    list of exported symbols of that shared object, eventually
10628     #    decorated with the 'weak' keyword
10629     # *) the shared object with the F_LOADONLY flag set, to really avoid
10630     #    it being seen by the linker.
10631     # At run time we better use the real file rather than another symlink,
10632     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10633
10634     case $with_aix_soname,$aix_use_runtimelinking in
10635     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10636     # soname into executable. Probably we can add versioning support to
10637     # collect2, so additional links can be useful in future.
10638     aix,yes) # traditional libtool
10639       dynamic_linker='AIX unversionable lib.so'
10640       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10641       # instead of lib<name>.a to let people know that these are not
10642       # typical AIX shared libraries.
10643       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10644       ;;
10645     aix,no) # traditional AIX only
10646       dynamic_linker='AIX lib.a(lib.so.V)'
10647       # We preserve .a as extension for shared libraries through AIX4.2
10648       # and later when we are not doing run time linking.
10649       library_names_spec='$libname$release.a $libname.a'
10650       soname_spec='$libname$release$shared_ext$major'
10651       ;;
10652     svr4,*) # full svr4 only
10653       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10654       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10655       # We do not specify a path in Import Files, so LIBPATH fires.
10656       shlibpath_overrides_runpath=yes
10657       ;;
10658     *,yes) # both, prefer svr4
10659       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10660       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10661       # unpreferred sharedlib libNAME.a needs extra handling
10662       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"'
10663       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"'
10664       # We do not specify a path in Import Files, so LIBPATH fires.
10665       shlibpath_overrides_runpath=yes
10666       ;;
10667     *,no) # both, prefer aix
10668       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10669       library_names_spec='$libname$release.a $libname.a'
10670       soname_spec='$libname$release$shared_ext$major'
10671       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10672       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)'
10673       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"'
10674       ;;
10675     esac
10676     shlibpath_var=LIBPATH
10677   fi
10678   ;;
10679
10680 amigaos*)
10681   case $host_cpu in
10682   powerpc)
10683     # Since July 2007 AmigaOS4 officially supports .so libraries.
10684     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10685     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10686     ;;
10687   m68k)
10688     library_names_spec='$libname.ixlibrary $libname.a'
10689     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10690     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'
10691     ;;
10692   esac
10693   ;;
10694
10695 beos*)
10696   library_names_spec='$libname$shared_ext'
10697   dynamic_linker="$host_os ld.so"
10698   shlibpath_var=LIBRARY_PATH
10699   ;;
10700
10701 bsdi[45]*)
10702   version_type=linux # correct to gnu/linux during the next big refactor
10703   need_version=no
10704   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10705   soname_spec='$libname$release$shared_ext$major'
10706   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10709   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10710   # the default ld.so.conf also contains /usr/contrib/lib and
10711   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10712   # libtool to hard-code these into programs
10713   ;;
10714
10715 cygwin* | mingw* | pw32* | cegcc*)
10716   version_type=windows
10717   shrext_cmds=.dll
10718   need_version=no
10719   need_lib_prefix=no
10720
10721   case $GCC,$cc_basename in
10722   yes,*)
10723     # gcc
10724     library_names_spec='$libname.dll.a'
10725     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10726     postinstall_cmds='base_file=`basename \$file`~
10727       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10728       dldir=$destdir/`dirname \$dlpath`~
10729       test -d \$dldir || mkdir -p \$dldir~
10730       $install_prog $dir/$dlname \$dldir/$dlname~
10731       chmod a+x \$dldir/$dlname~
10732       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10733         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10734       fi'
10735     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10736       dlpath=$dir/\$dldll~
10737        $RM \$dlpath'
10738     shlibpath_overrides_runpath=yes
10739
10740     case $host_os in
10741     cygwin*)
10742       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10743       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10744
10745       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10746       ;;
10747     mingw* | cegcc*)
10748       # MinGW DLLs use traditional 'lib' prefix
10749       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10750       ;;
10751     pw32*)
10752       # pw32 DLLs use 'pw' prefix rather than 'lib'
10753       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10754       ;;
10755     esac
10756     dynamic_linker='Win32 ld.exe'
10757     ;;
10758
10759   *,cl*)
10760     # Native MSVC
10761     libname_spec='$name'
10762     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10763     library_names_spec='$libname.dll.lib'
10764
10765     case $build_os in
10766     mingw*)
10767       sys_lib_search_path_spec=
10768       lt_save_ifs=$IFS
10769       IFS=';'
10770       for lt_path in $LIB
10771       do
10772         IFS=$lt_save_ifs
10773         # Let DOS variable expansion print the short 8.3 style file name.
10774         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10775         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10776       done
10777       IFS=$lt_save_ifs
10778       # Convert to MSYS style.
10779       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10780       ;;
10781     cygwin*)
10782       # Convert to unix form, then to dos form, then back to unix form
10783       # but this time dos style (no spaces!) so that the unix form looks
10784       # like /cygdrive/c/PROGRA~1:/cygdr...
10785       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10786       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10787       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10788       ;;
10789     *)
10790       sys_lib_search_path_spec=$LIB
10791       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10792         # It is most probably a Windows format PATH.
10793         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10794       else
10795         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10796       fi
10797       # FIXME: find the short name or the path components, as spaces are
10798       # common. (e.g. "Program Files" -> "PROGRA~1")
10799       ;;
10800     esac
10801
10802     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10803     postinstall_cmds='base_file=`basename \$file`~
10804       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10805       dldir=$destdir/`dirname \$dlpath`~
10806       test -d \$dldir || mkdir -p \$dldir~
10807       $install_prog $dir/$dlname \$dldir/$dlname'
10808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809       dlpath=$dir/\$dldll~
10810        $RM \$dlpath'
10811     shlibpath_overrides_runpath=yes
10812     dynamic_linker='Win32 link.exe'
10813     ;;
10814
10815   *)
10816     # Assume MSVC wrapper
10817     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10818     dynamic_linker='Win32 ld.exe'
10819     ;;
10820   esac
10821   # FIXME: first we should search . and the directory the executable is in
10822   shlibpath_var=PATH
10823   ;;
10824
10825 darwin* | rhapsody*)
10826   dynamic_linker="$host_os dyld"
10827   version_type=darwin
10828   need_lib_prefix=no
10829   need_version=no
10830   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10831   soname_spec='$libname$release$major$shared_ext'
10832   shlibpath_overrides_runpath=yes
10833   shlibpath_var=DYLD_LIBRARY_PATH
10834   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10835
10836   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10837   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10838   ;;
10839
10840 dgux*)
10841   version_type=linux # correct to gnu/linux during the next big refactor
10842   need_lib_prefix=no
10843   need_version=no
10844   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10845   soname_spec='$libname$release$shared_ext$major'
10846   shlibpath_var=LD_LIBRARY_PATH
10847   ;;
10848
10849 freebsd* | dragonfly*)
10850   # DragonFly does not have aout.  When/if they implement a new
10851   # versioning mechanism, adjust this.
10852   if test -x /usr/bin/objformat; then
10853     objformat=`/usr/bin/objformat`
10854   else
10855     case $host_os in
10856     freebsd[23].*) objformat=aout ;;
10857     *) objformat=elf ;;
10858     esac
10859   fi
10860   version_type=freebsd-$objformat
10861   case $version_type in
10862     freebsd-elf*)
10863       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864       soname_spec='$libname$release$shared_ext$major'
10865       need_version=no
10866       need_lib_prefix=no
10867       ;;
10868     freebsd-*)
10869       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10870       need_version=yes
10871       ;;
10872   esac
10873   shlibpath_var=LD_LIBRARY_PATH
10874   case $host_os in
10875   freebsd2.*)
10876     shlibpath_overrides_runpath=yes
10877     ;;
10878   freebsd3.[01]* | freebsdelf3.[01]*)
10879     shlibpath_overrides_runpath=yes
10880     hardcode_into_libs=yes
10881     ;;
10882   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10883   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10884     shlibpath_overrides_runpath=no
10885     hardcode_into_libs=yes
10886     ;;
10887   *) # from 4.6 on, and DragonFly
10888     shlibpath_overrides_runpath=yes
10889     hardcode_into_libs=yes
10890     ;;
10891   esac
10892   ;;
10893
10894 haiku*)
10895   version_type=linux # correct to gnu/linux during the next big refactor
10896   need_lib_prefix=no
10897   need_version=no
10898   dynamic_linker="$host_os runtime_loader"
10899   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900   soname_spec='$libname$release$shared_ext$major'
10901   shlibpath_var=LIBRARY_PATH
10902   shlibpath_overrides_runpath=no
10903   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10904   hardcode_into_libs=yes
10905   ;;
10906
10907 hpux9* | hpux10* | hpux11*)
10908   # Give a soname corresponding to the major version so that dld.sl refuses to
10909   # link against other versions.
10910   version_type=sunos
10911   need_lib_prefix=no
10912   need_version=no
10913   case $host_cpu in
10914   ia64*)
10915     shrext_cmds='.so'
10916     hardcode_into_libs=yes
10917     dynamic_linker="$host_os dld.so"
10918     shlibpath_var=LD_LIBRARY_PATH
10919     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10920     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921     soname_spec='$libname$release$shared_ext$major'
10922     if test 32 = "$HPUX_IA64_MODE"; then
10923       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10924       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10925     else
10926       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10927       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10928     fi
10929     ;;
10930   hppa*64*)
10931     shrext_cmds='.sl'
10932     hardcode_into_libs=yes
10933     dynamic_linker="$host_os dld.sl"
10934     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937     soname_spec='$libname$release$shared_ext$major'
10938     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10940     ;;
10941   *)
10942     shrext_cmds='.sl'
10943     dynamic_linker="$host_os dld.sl"
10944     shlibpath_var=SHLIB_PATH
10945     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10946     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947     soname_spec='$libname$release$shared_ext$major'
10948     ;;
10949   esac
10950   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10951   postinstall_cmds='chmod 555 $lib'
10952   # or fails outright, so override atomically:
10953   install_override_mode=555
10954   ;;
10955
10956 interix[3-9]*)
10957   version_type=linux # correct to gnu/linux during the next big refactor
10958   need_lib_prefix=no
10959   need_version=no
10960   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961   soname_spec='$libname$release$shared_ext$major'
10962   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=no
10965   hardcode_into_libs=yes
10966   ;;
10967
10968 irix5* | irix6* | nonstopux*)
10969   case $host_os in
10970     nonstopux*) version_type=nonstopux ;;
10971     *)
10972         if test yes = "$lt_cv_prog_gnu_ld"; then
10973                 version_type=linux # correct to gnu/linux during the next big refactor
10974         else
10975                 version_type=irix
10976         fi ;;
10977   esac
10978   need_lib_prefix=no
10979   need_version=no
10980   soname_spec='$libname$release$shared_ext$major'
10981   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10982   case $host_os in
10983   irix5* | nonstopux*)
10984     libsuff= shlibsuff=
10985     ;;
10986   *)
10987     case $LD in # libtool.m4 will add one of these switches to LD
10988     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10989       libsuff= shlibsuff= libmagic=32-bit;;
10990     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10991       libsuff=32 shlibsuff=N32 libmagic=N32;;
10992     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10993       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10994     *) libsuff= shlibsuff= libmagic=never-match;;
10995     esac
10996     ;;
10997   esac
10998   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10999   shlibpath_overrides_runpath=no
11000   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11001   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11002   hardcode_into_libs=yes
11003   ;;
11004
11005 # No shared lib support for Linux oldld, aout, or coff.
11006 linux*oldld* | linux*aout* | linux*coff*)
11007   dynamic_linker=no
11008   ;;
11009
11010 linux*android*)
11011   version_type=none # Android doesn't support versioned libraries.
11012   need_lib_prefix=no
11013   need_version=no
11014   library_names_spec='$libname$release$shared_ext'
11015   soname_spec='$libname$release$shared_ext'
11016   finish_cmds=
11017   shlibpath_var=LD_LIBRARY_PATH
11018   shlibpath_overrides_runpath=yes
11019
11020   # This implies no fast_install, which is unacceptable.
11021   # Some rework will be needed to allow for fast_install
11022   # before this can be enabled.
11023   hardcode_into_libs=yes
11024
11025   dynamic_linker='Android linker'
11026   # Don't embed -rpath directories since the linker doesn't support them.
11027   hardcode_libdir_flag_spec='-L$libdir'
11028   ;;
11029
11030 # This must be glibc/ELF.
11031 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11032   version_type=linux # correct to gnu/linux during the next big refactor
11033   need_lib_prefix=no
11034   need_version=no
11035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036   soname_spec='$libname$release$shared_ext$major'
11037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=no
11040
11041   # Some binutils ld are patched to set DT_RUNPATH
11042   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11043   $as_echo_n "(cached) " >&6
11044 else
11045   lt_cv_shlibpath_overrides_runpath=no
11046     save_LDFLAGS=$LDFLAGS
11047     save_libdir=$libdir
11048     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h.  */
11052
11053 int
11054 main ()
11055 {
11056
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11063   lt_cv_shlibpath_overrides_runpath=yes
11064 fi
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067     conftest$ac_exeext conftest.$ac_ext
11068     LDFLAGS=$save_LDFLAGS
11069     libdir=$save_libdir
11070
11071 fi
11072
11073   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074
11075   # This implies no fast_install, which is unacceptable.
11076   # Some rework will be needed to allow for fast_install
11077   # before this can be enabled.
11078   hardcode_into_libs=yes
11079
11080   # Ideally, we could use ldconfig to report *all* directores which are
11081   # searched for libraries, however this is still not possible.  Aside from not
11082   # being certain /sbin/ldconfig is available, command
11083   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11084   # even though it is searched at run-time.  Try to do the best guess by
11085   # appending ld.so.conf contents (and includes) to the search path.
11086   if test -f /etc/ld.so.conf; then
11087     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' ' '`
11088     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11089   fi
11090
11091   # We used to test for /lib/ld.so.1 and disable shared libraries on
11092   # powerpc, because MkLinux only supported shared libraries with the
11093   # GNU dynamic linker.  Since this was broken with cross compilers,
11094   # most powerpc-linux boxes support dynamic linking these days and
11095   # people can always --disable-shared, the test was removed, and we
11096   # assume the GNU/Linux dynamic linker is in use.
11097   dynamic_linker='GNU/Linux ld.so'
11098   ;;
11099
11100 netbsdelf*-gnu)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=no
11108   hardcode_into_libs=yes
11109   dynamic_linker='NetBSD ld.elf_so'
11110   ;;
11111
11112 netbsd*)
11113   version_type=sunos
11114   need_lib_prefix=no
11115   need_version=no
11116   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11117     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11118     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11119     dynamic_linker='NetBSD (a.out) ld.so'
11120   else
11121     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122     soname_spec='$libname$release$shared_ext$major'
11123     dynamic_linker='NetBSD ld.elf_so'
11124   fi
11125   shlibpath_var=LD_LIBRARY_PATH
11126   shlibpath_overrides_runpath=yes
11127   hardcode_into_libs=yes
11128   ;;
11129
11130 newsos6)
11131   version_type=linux # correct to gnu/linux during the next big refactor
11132   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   shlibpath_overrides_runpath=yes
11135   ;;
11136
11137 *nto* | *qnx*)
11138   version_type=qnx
11139   need_lib_prefix=no
11140   need_version=no
11141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142   soname_spec='$libname$release$shared_ext$major'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   shlibpath_overrides_runpath=no
11145   hardcode_into_libs=yes
11146   dynamic_linker='ldqnx.so'
11147   ;;
11148
11149 openbsd* | bitrig*)
11150   version_type=sunos
11151   sys_lib_dlsearch_path_spec=/usr/lib
11152   need_lib_prefix=no
11153   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11154     need_version=no
11155   else
11156     need_version=yes
11157   fi
11158   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11160   shlibpath_var=LD_LIBRARY_PATH
11161   shlibpath_overrides_runpath=yes
11162   ;;
11163
11164 os2*)
11165   libname_spec='$name'
11166   version_type=windows
11167   shrext_cmds=.dll
11168   need_version=no
11169   need_lib_prefix=no
11170   # OS/2 can only load a DLL with a base name of 8 characters or less.
11171   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11172     v=$($ECHO $release$versuffix | tr -d .-);
11173     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11174     $ECHO $n$v`$shared_ext'
11175   library_names_spec='${libname}_dll.$libext'
11176   dynamic_linker='OS/2 ld.exe'
11177   shlibpath_var=BEGINLIBPATH
11178   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11179   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180   postinstall_cmds='base_file=`basename \$file`~
11181     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11182     dldir=$destdir/`dirname \$dlpath`~
11183     test -d \$dldir || mkdir -p \$dldir~
11184     $install_prog $dir/$dlname \$dldir/$dlname~
11185     chmod a+x \$dldir/$dlname~
11186     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11187       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11188     fi'
11189   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11190     dlpath=$dir/\$dldll~
11191     $RM \$dlpath'
11192   ;;
11193
11194 osf3* | osf4* | osf5*)
11195   version_type=osf
11196   need_lib_prefix=no
11197   need_version=no
11198   soname_spec='$libname$release$shared_ext$major'
11199   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11200   shlibpath_var=LD_LIBRARY_PATH
11201   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11202   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203   ;;
11204
11205 rdos*)
11206   dynamic_linker=no
11207   ;;
11208
11209 solaris*)
11210   version_type=linux # correct to gnu/linux during the next big refactor
11211   need_lib_prefix=no
11212   need_version=no
11213   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214   soname_spec='$libname$release$shared_ext$major'
11215   shlibpath_var=LD_LIBRARY_PATH
11216   shlibpath_overrides_runpath=yes
11217   hardcode_into_libs=yes
11218   # ldd complains unless libraries are executable
11219   postinstall_cmds='chmod +x $lib'
11220   ;;
11221
11222 sunos4*)
11223   version_type=sunos
11224   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11225   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   shlibpath_overrides_runpath=yes
11228   if test yes = "$with_gnu_ld"; then
11229     need_lib_prefix=no
11230   fi
11231   need_version=yes
11232   ;;
11233
11234 sysv4 | sysv4.3*)
11235   version_type=linux # correct to gnu/linux during the next big refactor
11236   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237   soname_spec='$libname$release$shared_ext$major'
11238   shlibpath_var=LD_LIBRARY_PATH
11239   case $host_vendor in
11240     sni)
11241       shlibpath_overrides_runpath=no
11242       need_lib_prefix=no
11243       runpath_var=LD_RUN_PATH
11244       ;;
11245     siemens)
11246       need_lib_prefix=no
11247       ;;
11248     motorola)
11249       need_lib_prefix=no
11250       need_version=no
11251       shlibpath_overrides_runpath=no
11252       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11253       ;;
11254   esac
11255   ;;
11256
11257 sysv4*MP*)
11258   if test -d /usr/nec; then
11259     version_type=linux # correct to gnu/linux during the next big refactor
11260     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11261     soname_spec='$libname$shared_ext.$major'
11262     shlibpath_var=LD_LIBRARY_PATH
11263   fi
11264   ;;
11265
11266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11267   version_type=sco
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11271   soname_spec='$libname$release$shared_ext$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=yes
11274   hardcode_into_libs=yes
11275   if test yes = "$with_gnu_ld"; then
11276     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11277   else
11278     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11279     case $host_os in
11280       sco3.2v5*)
11281         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11282         ;;
11283     esac
11284   fi
11285   sys_lib_dlsearch_path_spec='/usr/lib'
11286   ;;
11287
11288 tpf*)
11289   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11290   version_type=linux # correct to gnu/linux during the next big refactor
11291   need_lib_prefix=no
11292   need_version=no
11293   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   shlibpath_overrides_runpath=no
11296   hardcode_into_libs=yes
11297   ;;
11298
11299 uts4*)
11300   version_type=linux # correct to gnu/linux during the next big refactor
11301   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302   soname_spec='$libname$release$shared_ext$major'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   ;;
11305
11306 *)
11307   dynamic_linker=no
11308   ;;
11309 esac
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11311 $as_echo "$dynamic_linker" >&6; }
11312 test no = "$dynamic_linker" && can_build_shared=no
11313
11314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11315 if test yes = "$GCC"; then
11316   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11317 fi
11318
11319 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11320   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11321 fi
11322
11323 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11324   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11325 fi
11326
11327 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11328 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11329
11330 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11331 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11332
11333 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11334 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11434 hardcode_action=
11435 if test -n "$hardcode_libdir_flag_spec" ||
11436    test -n "$runpath_var" ||
11437    test yes = "$hardcode_automatic"; then
11438
11439   # We can hardcode non-existent directories.
11440   if test no != "$hardcode_direct" &&
11441      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11442      # have to relink, otherwise we might link with an installed library
11443      # when we should be linking with a yet-to-be-installed one
11444      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11445      test no != "$hardcode_minus_L"; then
11446     # Linking always hardcodes the temporary library directory.
11447     hardcode_action=relink
11448   else
11449     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11450     hardcode_action=immediate
11451   fi
11452 else
11453   # We cannot hardcode anything, or else we can only hardcode existing
11454   # directories.
11455   hardcode_action=unsupported
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11458 $as_echo "$hardcode_action" >&6; }
11459
11460 if test relink = "$hardcode_action" ||
11461    test yes = "$inherit_rpath"; then
11462   # Fast installation is not supported
11463   enable_fast_install=no
11464 elif test yes = "$shlibpath_overrides_runpath" ||
11465      test no = "$enable_shared"; then
11466   # Fast installation is not necessary
11467   enable_fast_install=needless
11468 fi
11469
11470
11471
11472
11473
11474
11475   if test yes != "$enable_dlopen"; then
11476   enable_dlopen=unknown
11477   enable_dlopen_self=unknown
11478   enable_dlopen_self_static=unknown
11479 else
11480   lt_cv_dlopen=no
11481   lt_cv_dlopen_libs=
11482
11483   case $host_os in
11484   beos*)
11485     lt_cv_dlopen=load_add_on
11486     lt_cv_dlopen_libs=
11487     lt_cv_dlopen_self=yes
11488     ;;
11489
11490   mingw* | pw32* | cegcc*)
11491     lt_cv_dlopen=LoadLibrary
11492     lt_cv_dlopen_libs=
11493     ;;
11494
11495   cygwin*)
11496     lt_cv_dlopen=dlopen
11497     lt_cv_dlopen_libs=
11498     ;;
11499
11500   darwin*)
11501     # if libdl is installed we need to link against it
11502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11504 if ${ac_cv_lib_dl_dlopen+:} false; then :
11505   $as_echo_n "(cached) " >&6
11506 else
11507   ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-ldl  $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h.  */
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513    Use char because int might match the return type of a GCC
11514    builtin and then its argument prototype would still apply.  */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char dlopen ();
11519 int
11520 main ()
11521 {
11522 return dlopen ();
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528   ac_cv_lib_dl_dlopen=yes
11529 else
11530   ac_cv_lib_dl_dlopen=no
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext \
11533     conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11538 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11539   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11540 else
11541
11542     lt_cv_dlopen=dyld
11543     lt_cv_dlopen_libs=
11544     lt_cv_dlopen_self=yes
11545
11546 fi
11547
11548     ;;
11549
11550   tpf*)
11551     # Don't try to run any link tests for TPF.  We know it's impossible
11552     # because TPF is a cross-compiler, and we know how we open DSOs.
11553     lt_cv_dlopen=dlopen
11554     lt_cv_dlopen_libs=
11555     lt_cv_dlopen_self=no
11556     ;;
11557
11558   *)
11559     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11560 if test "x$ac_cv_func_shl_load" = xyes; then :
11561   lt_cv_dlopen=shl_load
11562 else
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11564 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11565 if ${ac_cv_lib_dld_shl_load+:} false; then :
11566   $as_echo_n "(cached) " >&6
11567 else
11568   ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-ldld  $LIBS"
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h.  */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574    Use char because int might match the return type of a GCC
11575    builtin and then its argument prototype would still apply.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char shl_load ();
11580 int
11581 main ()
11582 {
11583 return shl_load ();
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589   ac_cv_lib_dld_shl_load=yes
11590 else
11591   ac_cv_lib_dld_shl_load=no
11592 fi
11593 rm -f core conftest.err conftest.$ac_objext \
11594     conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11598 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11599 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11600   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11601 else
11602   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11603 if test "x$ac_cv_func_dlopen" = xyes; then :
11604   lt_cv_dlopen=dlopen
11605 else
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if ${ac_cv_lib_dl_dlopen+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldl  $LIBS"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h.  */
11615
11616 /* Override any GCC internal prototype to avoid an error.
11617    Use char because int might match the return type of a GCC
11618    builtin and then its argument prototype would still apply.  */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 char dlopen ();
11623 int
11624 main ()
11625 {
11626 return dlopen ();
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"; then :
11632   ac_cv_lib_dl_dlopen=yes
11633 else
11634   ac_cv_lib_dl_dlopen=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext \
11637     conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11643   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11644 else
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11646 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11647 if ${ac_cv_lib_svld_dlopen+:} false; then :
11648   $as_echo_n "(cached) " >&6
11649 else
11650   ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-lsvld  $LIBS"
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h.  */
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656    Use char because int might match the return type of a GCC
11657    builtin and then its argument prototype would still apply.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char dlopen ();
11662 int
11663 main ()
11664 {
11665 return dlopen ();
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"; then :
11671   ac_cv_lib_svld_dlopen=yes
11672 else
11673   ac_cv_lib_svld_dlopen=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext \
11676     conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11680 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11681 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11682   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11683 else
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11685 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11686 if ${ac_cv_lib_dld_dld_link+:} false; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-ldld  $LIBS"
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h.  */
11693
11694 /* Override any GCC internal prototype to avoid an error.
11695    Use char because int might match the return type of a GCC
11696    builtin and then its argument prototype would still apply.  */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char dld_link ();
11701 int
11702 main ()
11703 {
11704 return dld_link ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710   ac_cv_lib_dld_dld_link=yes
11711 else
11712   ac_cv_lib_dld_dld_link=no
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext \
11715     conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11719 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11720 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11721   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11722 fi
11723
11724
11725 fi
11726
11727
11728 fi
11729
11730
11731 fi
11732
11733
11734 fi
11735
11736
11737 fi
11738
11739     ;;
11740   esac
11741
11742   if test no = "$lt_cv_dlopen"; then
11743     enable_dlopen=no
11744   else
11745     enable_dlopen=yes
11746   fi
11747
11748   case $lt_cv_dlopen in
11749   dlopen)
11750     save_CPPFLAGS=$CPPFLAGS
11751     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11752
11753     save_LDFLAGS=$LDFLAGS
11754     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11755
11756     save_LIBS=$LIBS
11757     LIBS="$lt_cv_dlopen_libs $LIBS"
11758
11759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11760 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11761 if ${lt_cv_dlopen_self+:} false; then :
11762   $as_echo_n "(cached) " >&6
11763 else
11764           if test yes = "$cross_compiling"; then :
11765   lt_cv_dlopen_self=cross
11766 else
11767   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11768   lt_status=$lt_dlunknown
11769   cat > conftest.$ac_ext <<_LT_EOF
11770 #line $LINENO "configure"
11771 #include "confdefs.h"
11772
11773 #if HAVE_DLFCN_H
11774 #include <dlfcn.h>
11775 #endif
11776
11777 #include <stdio.h>
11778
11779 #ifdef RTLD_GLOBAL
11780 #  define LT_DLGLOBAL           RTLD_GLOBAL
11781 #else
11782 #  ifdef DL_GLOBAL
11783 #    define LT_DLGLOBAL         DL_GLOBAL
11784 #  else
11785 #    define LT_DLGLOBAL         0
11786 #  endif
11787 #endif
11788
11789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11790    find out it does not work in some platform. */
11791 #ifndef LT_DLLAZY_OR_NOW
11792 #  ifdef RTLD_LAZY
11793 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11794 #  else
11795 #    ifdef DL_LAZY
11796 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11797 #    else
11798 #      ifdef RTLD_NOW
11799 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11800 #      else
11801 #        ifdef DL_NOW
11802 #          define LT_DLLAZY_OR_NOW      DL_NOW
11803 #        else
11804 #          define LT_DLLAZY_OR_NOW      0
11805 #        endif
11806 #      endif
11807 #    endif
11808 #  endif
11809 #endif
11810
11811 /* When -fvisibility=hidden is used, assume the code has been annotated
11812    correspondingly for the symbols needed.  */
11813 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11814 int fnord () __attribute__((visibility("default")));
11815 #endif
11816
11817 int fnord () { return 42; }
11818 int main ()
11819 {
11820   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11821   int status = $lt_dlunknown;
11822
11823   if (self)
11824     {
11825       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11826       else
11827         {
11828           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11829           else puts (dlerror ());
11830         }
11831       /* dlclose (self); */
11832     }
11833   else
11834     puts (dlerror ());
11835
11836   return status;
11837 }
11838 _LT_EOF
11839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11840   (eval $ac_link) 2>&5
11841   ac_status=$?
11842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11844     (./conftest; exit; ) >&5 2>/dev/null
11845     lt_status=$?
11846     case x$lt_status in
11847       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11848       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11849       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11850     esac
11851   else :
11852     # compilation failed
11853     lt_cv_dlopen_self=no
11854   fi
11855 fi
11856 rm -fr conftest*
11857
11858
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11861 $as_echo "$lt_cv_dlopen_self" >&6; }
11862
11863     if test yes = "$lt_cv_dlopen_self"; then
11864       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11865       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11866 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11867 if ${lt_cv_dlopen_self_static+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870           if test yes = "$cross_compiling"; then :
11871   lt_cv_dlopen_self_static=cross
11872 else
11873   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11874   lt_status=$lt_dlunknown
11875   cat > conftest.$ac_ext <<_LT_EOF
11876 #line $LINENO "configure"
11877 #include "confdefs.h"
11878
11879 #if HAVE_DLFCN_H
11880 #include <dlfcn.h>
11881 #endif
11882
11883 #include <stdio.h>
11884
11885 #ifdef RTLD_GLOBAL
11886 #  define LT_DLGLOBAL           RTLD_GLOBAL
11887 #else
11888 #  ifdef DL_GLOBAL
11889 #    define LT_DLGLOBAL         DL_GLOBAL
11890 #  else
11891 #    define LT_DLGLOBAL         0
11892 #  endif
11893 #endif
11894
11895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11896    find out it does not work in some platform. */
11897 #ifndef LT_DLLAZY_OR_NOW
11898 #  ifdef RTLD_LAZY
11899 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11900 #  else
11901 #    ifdef DL_LAZY
11902 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11903 #    else
11904 #      ifdef RTLD_NOW
11905 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11906 #      else
11907 #        ifdef DL_NOW
11908 #          define LT_DLLAZY_OR_NOW      DL_NOW
11909 #        else
11910 #          define LT_DLLAZY_OR_NOW      0
11911 #        endif
11912 #      endif
11913 #    endif
11914 #  endif
11915 #endif
11916
11917 /* When -fvisibility=hidden is used, assume the code has been annotated
11918    correspondingly for the symbols needed.  */
11919 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11920 int fnord () __attribute__((visibility("default")));
11921 #endif
11922
11923 int fnord () { return 42; }
11924 int main ()
11925 {
11926   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11927   int status = $lt_dlunknown;
11928
11929   if (self)
11930     {
11931       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11932       else
11933         {
11934           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11935           else puts (dlerror ());
11936         }
11937       /* dlclose (self); */
11938     }
11939   else
11940     puts (dlerror ());
11941
11942   return status;
11943 }
11944 _LT_EOF
11945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11946   (eval $ac_link) 2>&5
11947   ac_status=$?
11948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11950     (./conftest; exit; ) >&5 2>/dev/null
11951     lt_status=$?
11952     case x$lt_status in
11953       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11954       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11955       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11956     esac
11957   else :
11958     # compilation failed
11959     lt_cv_dlopen_self_static=no
11960   fi
11961 fi
11962 rm -fr conftest*
11963
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11967 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11968     fi
11969
11970     CPPFLAGS=$save_CPPFLAGS
11971     LDFLAGS=$save_LDFLAGS
11972     LIBS=$save_LIBS
11973     ;;
11974   esac
11975
11976   case $lt_cv_dlopen_self in
11977   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11978   *) enable_dlopen_self=unknown ;;
11979   esac
11980
11981   case $lt_cv_dlopen_self_static in
11982   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11983   *) enable_dlopen_self_static=unknown ;;
11984   esac
11985 fi
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003 striplib=
12004 old_striplib=
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12006 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12007 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12008   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12009   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12012 else
12013 # FIXME - insert some real tests, host_os isn't really good enough
12014   case $host_os in
12015   darwin*)
12016     if test -n "$STRIP"; then
12017       striplib="$STRIP -x"
12018       old_striplib="$STRIP -S"
12019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020 $as_echo "yes" >&6; }
12021     else
12022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024     fi
12025     ;;
12026   *)
12027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029     ;;
12030   esac
12031 fi
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044   # Report what library types will actually be built
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12048 $as_echo "$can_build_shared" >&6; }
12049
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12051 $as_echo_n "checking whether to build shared libraries... " >&6; }
12052   test no = "$can_build_shared" && enable_shared=no
12053
12054   # On AIX, shared libraries and static libraries use the same namespace, and
12055   # are all built from PIC.
12056   case $host_os in
12057   aix3*)
12058     test yes = "$enable_shared" && enable_static=no
12059     if test -n "$RANLIB"; then
12060       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12061       postinstall_cmds='$RANLIB $lib'
12062     fi
12063     ;;
12064
12065   aix[4-9]*)
12066     if test ia64 != "$host_cpu"; then
12067       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12068       yes,aix,yes) ;;                   # shared object as lib.so file only
12069       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12070       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12071       esac
12072     fi
12073     ;;
12074   esac
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12076 $as_echo "$enable_shared" >&6; }
12077
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12079 $as_echo_n "checking whether to build static libraries... " >&6; }
12080   # Make sure either enable_shared or enable_static is yes.
12081   test yes = "$enable_shared" || enable_static=yes
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12083 $as_echo "$enable_static" >&6; }
12084
12085
12086
12087
12088 fi
12089 ac_ext=c
12090 ac_cpp='$CPP $CPPFLAGS'
12091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12094
12095 CC=$lt_save_CC
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111         ac_config_commands="$ac_config_commands libtool"
12112
12113
12114
12115
12116 # Only expand once:
12117
12118
12119
12120
12121
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
12123 $as_echo_n "checking target system type... " >&6; }
12124 if ${ac_cv_target+:} false; then :
12125   $as_echo_n "(cached) " >&6
12126 else
12127   if test "x$target_alias" = x; then
12128   ac_cv_target=$ac_cv_host
12129 else
12130   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
12131     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
12132 fi
12133
12134 fi
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
12136 $as_echo "$ac_cv_target" >&6; }
12137 case $ac_cv_target in
12138 *-*-*) ;;
12139 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
12140 esac
12141 target=$ac_cv_target
12142 ac_save_IFS=$IFS; IFS='-'
12143 set x $ac_cv_target
12144 shift
12145 target_cpu=$1
12146 target_vendor=$2
12147 shift; shift
12148 # Remember, the first character of IFS is used to create $*,
12149 # except with old shells:
12150 target_os=$*
12151 IFS=$ac_save_IFS
12152 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
12153
12154
12155 # The aliases save the names the user supplied, while $host etc.
12156 # will get canonicalized.
12157 test -n "$target_alias" &&
12158   test "$program_prefix$program_suffix$program_transform_name" = \
12159     NONENONEs,x,x, &&
12160   program_prefix=${target_alias}-
12161
12162 am__api_version='1.16'
12163
12164 # Find a good install program.  We prefer a C program (faster),
12165 # so one script is as good as another.  But avoid the broken or
12166 # incompatible versions:
12167 # SysV /etc/install, /usr/sbin/install
12168 # SunOS /usr/etc/install
12169 # IRIX /sbin/install
12170 # AIX /bin/install
12171 # AmigaOS /C/install, which installs bootblocks on floppy discs
12172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12175 # OS/2's system install, which has a completely different semantic
12176 # ./install, which can be erroneously created by make from ./install.sh.
12177 # Reject install programs that cannot install multiple files.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12179 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12180 if test -z "$INSTALL"; then
12181 if ${ac_cv_path_install+:} false; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187   IFS=$as_save_IFS
12188   test -z "$as_dir" && as_dir=.
12189     # Account for people who put trailing slashes in PATH elements.
12190 case $as_dir/ in #((
12191   ./ | .// | /[cC]/* | \
12192   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12193   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12194   /usr/ucb/* ) ;;
12195   *)
12196     # OSF1 and SCO ODT 3.0 have their own names for install.
12197     # Don't use installbsd from OSF since it installs stuff as root
12198     # by default.
12199     for ac_prog in ginstall scoinst install; do
12200       for ac_exec_ext in '' $ac_executable_extensions; do
12201         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12202           if test $ac_prog = install &&
12203             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12204             # AIX install.  It has an incompatible calling convention.
12205             :
12206           elif test $ac_prog = install &&
12207             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12208             # program-specific install script used by HP pwplus--don't use.
12209             :
12210           else
12211             rm -rf conftest.one conftest.two conftest.dir
12212             echo one > conftest.one
12213             echo two > conftest.two
12214             mkdir conftest.dir
12215             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12216               test -s conftest.one && test -s conftest.two &&
12217               test -s conftest.dir/conftest.one &&
12218               test -s conftest.dir/conftest.two
12219             then
12220               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12221               break 3
12222             fi
12223           fi
12224         fi
12225       done
12226     done
12227     ;;
12228 esac
12229
12230   done
12231 IFS=$as_save_IFS
12232
12233 rm -rf conftest.one conftest.two conftest.dir
12234
12235 fi
12236   if test "${ac_cv_path_install+set}" = set; then
12237     INSTALL=$ac_cv_path_install
12238   else
12239     # As a last resort, use the slow shell script.  Don't cache a
12240     # value for INSTALL within a source directory, because that will
12241     # break other packages using the cache if that directory is
12242     # removed, or if the value is a relative name.
12243     INSTALL=$ac_install_sh
12244   fi
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12247 $as_echo "$INSTALL" >&6; }
12248
12249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12250 # It thinks the first close brace ends the variable substitution.
12251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12252
12253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12254
12255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12256
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12258 $as_echo_n "checking whether build environment is sane... " >&6; }
12259 # Reject unsafe characters in $srcdir or the absolute working directory
12260 # name.  Accept space and tab only in the latter.
12261 am_lf='
12262 '
12263 case `pwd` in
12264   *[\\\"\#\$\&\'\`$am_lf]*)
12265     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12266 esac
12267 case $srcdir in
12268   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
12269     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12270 esac
12271
12272 # Do 'set' in a subshell so we don't clobber the current shell's
12273 # arguments.  Must try -L first in case configure is actually a
12274 # symlink; some systems play weird games with the mod time of symlinks
12275 # (eg FreeBSD returns the mod time of the symlink's containing
12276 # directory).
12277 if (
12278    am_has_slept=no
12279    for am_try in 1 2; do
12280      echo "timestamp, slept: $am_has_slept" > conftest.file
12281      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12282      if test "$*" = "X"; then
12283         # -L didn't work.
12284         set X `ls -t "$srcdir/configure" conftest.file`
12285      fi
12286      if test "$*" != "X $srcdir/configure conftest.file" \
12287         && test "$*" != "X conftest.file $srcdir/configure"; then
12288
12289         # If neither matched, then we have a broken ls.  This can happen
12290         # if, for instance, CONFIG_SHELL is bash and it inherits a
12291         # broken ls alias from the environment.  This has actually
12292         # happened.  Such a system could not be considered "sane".
12293         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
12294   alias in your environment" "$LINENO" 5
12295      fi
12296      if test "$2" = conftest.file || test $am_try -eq 2; then
12297        break
12298      fi
12299      # Just in case.
12300      sleep 1
12301      am_has_slept=yes
12302    done
12303    test "$2" = conftest.file
12304    )
12305 then
12306    # Ok.
12307    :
12308 else
12309    as_fn_error $? "newly created file is older than distributed files!
12310 Check your system clock" "$LINENO" 5
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 # If we didn't sleep, we still need to ensure time stamps of config.status and
12315 # generated files are strictly newer.
12316 am_sleep_pid=
12317 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12318   ( sleep 1 ) &
12319   am_sleep_pid=$!
12320 fi
12321
12322 rm -f conftest.file
12323
12324 test "$program_prefix" != NONE &&
12325   program_transform_name="s&^&$program_prefix&;$program_transform_name"
12326 # Use a double $ so make ignores it.
12327 test "$program_suffix" != NONE &&
12328   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12329 # Double any \ or $.
12330 # By default was `s,x,x', remove it if useless.
12331 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12332 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12333
12334 if test x"${MISSING+set}" != xset; then
12335   case $am_aux_dir in
12336   *\ * | *\     *)
12337     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12338   *)
12339     MISSING="\${SHELL} $am_aux_dir/missing" ;;
12340   esac
12341 fi
12342 # Use eval to expand $SHELL
12343 if eval "$MISSING --is-lightweight"; then
12344   am_missing_run="$MISSING "
12345 else
12346   am_missing_run=
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12348 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12349 fi
12350
12351 if test x"${install_sh+set}" != xset; then
12352   case $am_aux_dir in
12353   *\ * | *\     *)
12354     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12355   *)
12356     install_sh="\${SHELL} $am_aux_dir/install-sh"
12357   esac
12358 fi
12359
12360 # Installed binaries are usually stripped using 'strip' when the user
12361 # run "make install-strip".  However 'strip' might not be the right
12362 # tool to use in cross-compilation environments, therefore Automake
12363 # will honor the 'STRIP' environment variable to overrule this program.
12364 if test "$cross_compiling" != no; then
12365   if test -n "$ac_tool_prefix"; then
12366   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12367 set dummy ${ac_tool_prefix}strip; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_STRIP+:} false; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   if test -n "$STRIP"; then
12374   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12375 else
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12378 do
12379   IFS=$as_save_IFS
12380   test -z "$as_dir" && as_dir=.
12381     for ac_exec_ext in '' $ac_executable_extensions; do
12382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385     break 2
12386   fi
12387 done
12388   done
12389 IFS=$as_save_IFS
12390
12391 fi
12392 fi
12393 STRIP=$ac_cv_prog_STRIP
12394 if test -n "$STRIP"; then
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12396 $as_echo "$STRIP" >&6; }
12397 else
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401
12402
12403 fi
12404 if test -z "$ac_cv_prog_STRIP"; then
12405   ac_ct_STRIP=$STRIP
12406   # Extract the first word of "strip", so it can be a program name with args.
12407 set dummy strip; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   if test -n "$ac_ct_STRIP"; then
12414   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12418 do
12419   IFS=$as_save_IFS
12420   test -z "$as_dir" && as_dir=.
12421     for ac_exec_ext in '' $ac_executable_extensions; do
12422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423     ac_cv_prog_ac_ct_STRIP="strip"
12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425     break 2
12426   fi
12427 done
12428   done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12434 if test -n "$ac_ct_STRIP"; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12436 $as_echo "$ac_ct_STRIP" >&6; }
12437 else
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441
12442   if test "x$ac_ct_STRIP" = x; then
12443     STRIP=":"
12444   else
12445     case $cross_compiling:$ac_tool_warned in
12446 yes:)
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12449 ac_tool_warned=yes ;;
12450 esac
12451     STRIP=$ac_ct_STRIP
12452   fi
12453 else
12454   STRIP="$ac_cv_prog_STRIP"
12455 fi
12456
12457 fi
12458 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12462 if test -z "$MKDIR_P"; then
12463   if ${ac_cv_path_mkdir+:} false; then :
12464   $as_echo_n "(cached) " >&6
12465 else
12466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12468 do
12469   IFS=$as_save_IFS
12470   test -z "$as_dir" && as_dir=.
12471     for ac_prog in mkdir gmkdir; do
12472          for ac_exec_ext in '' $ac_executable_extensions; do
12473            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12474            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12475              'mkdir (GNU coreutils) '* | \
12476              'mkdir (coreutils) '* | \
12477              'mkdir (fileutils) '4.1*)
12478                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12479                break 3;;
12480            esac
12481          done
12482        done
12483   done
12484 IFS=$as_save_IFS
12485
12486 fi
12487
12488   test -d ./--version && rmdir ./--version
12489   if test "${ac_cv_path_mkdir+set}" = set; then
12490     MKDIR_P="$ac_cv_path_mkdir -p"
12491   else
12492     # As a last resort, use the slow shell script.  Don't cache a
12493     # value for MKDIR_P within a source directory, because that will
12494     # break other packages using the cache if that directory is
12495     # removed, or if the value is a relative name.
12496     MKDIR_P="$ac_install_sh -d"
12497   fi
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12500 $as_echo "$MKDIR_P" >&6; }
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12504 set x ${MAKE-make}
12505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12507   $as_echo_n "(cached) " >&6
12508 else
12509   cat >conftest.make <<\_ACEOF
12510 SHELL = /bin/sh
12511 all:
12512         @echo '@@@%%%=$(MAKE)=@@@%%%'
12513 _ACEOF
12514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12516   *@@@%%%=?*=@@@%%%*)
12517     eval ac_cv_prog_make_${ac_make}_set=yes;;
12518   *)
12519     eval ac_cv_prog_make_${ac_make}_set=no;;
12520 esac
12521 rm -f conftest.make
12522 fi
12523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12526   SET_MAKE=
12527 else
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530   SET_MAKE="MAKE=${MAKE-make}"
12531 fi
12532
12533 rm -rf .tst 2>/dev/null
12534 mkdir .tst 2>/dev/null
12535 if test -d .tst; then
12536   am__leading_dot=.
12537 else
12538   am__leading_dot=_
12539 fi
12540 rmdir .tst 2>/dev/null
12541
12542 DEPDIR="${am__leading_dot}deps"
12543
12544 ac_config_commands="$ac_config_commands depfiles"
12545
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12547 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
12548 cat > confinc.mk << 'END'
12549 am__doit:
12550         @echo this is the am__doit target >confinc.out
12551 .PHONY: am__doit
12552 END
12553 am__include="#"
12554 am__quote=
12555 # BSD make does it like this.
12556 echo '.include "confinc.mk" # ignored' > confmf.BSD
12557 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12558 echo 'include confinc.mk # ignored' > confmf.GNU
12559 _am_result=no
12560 for s in GNU BSD; do
12561   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12562    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12563    ac_status=$?
12564    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565    (exit $ac_status); }
12566   case $?:`cat confinc.out 2>/dev/null` in #(
12567   '0:this is the am__doit target') :
12568     case $s in #(
12569   BSD) :
12570     am__include='.include' am__quote='"' ;; #(
12571   *) :
12572     am__include='include' am__quote='' ;;
12573 esac ;; #(
12574   *) :
12575      ;;
12576 esac
12577   if test "$am__include" != "#"; then
12578     _am_result="yes ($s style)"
12579     break
12580   fi
12581 done
12582 rm -f confinc.* confmf.*
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12584 $as_echo "${_am_result}" >&6; }
12585
12586 # Check whether --enable-dependency-tracking was given.
12587 if test "${enable_dependency_tracking+set}" = set; then :
12588   enableval=$enable_dependency_tracking;
12589 fi
12590
12591 if test "x$enable_dependency_tracking" != xno; then
12592   am_depcomp="$ac_aux_dir/depcomp"
12593   AMDEPBACKSLASH='\'
12594   am__nodep='_no'
12595 fi
12596  if test "x$enable_dependency_tracking" != xno; then
12597   AMDEP_TRUE=
12598   AMDEP_FALSE='#'
12599 else
12600   AMDEP_TRUE='#'
12601   AMDEP_FALSE=
12602 fi
12603
12604
12605 # Check whether --enable-silent-rules was given.
12606 if test "${enable_silent_rules+set}" = set; then :
12607   enableval=$enable_silent_rules;
12608 fi
12609
12610 case $enable_silent_rules in # (((
12611   yes) AM_DEFAULT_VERBOSITY=0;;
12612    no) AM_DEFAULT_VERBOSITY=1;;
12613     *) AM_DEFAULT_VERBOSITY=1;;
12614 esac
12615 am_make=${MAKE-make}
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12617 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12618 if ${am_cv_make_support_nested_variables+:} false; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   if $as_echo 'TRUE=$(BAR$(V))
12622 BAR0=false
12623 BAR1=true
12624 V=1
12625 am__doit:
12626         @$(TRUE)
12627 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12628   am_cv_make_support_nested_variables=yes
12629 else
12630   am_cv_make_support_nested_variables=no
12631 fi
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12634 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12635 if test $am_cv_make_support_nested_variables = yes; then
12636     AM_V='$(V)'
12637   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12638 else
12639   AM_V=$AM_DEFAULT_VERBOSITY
12640   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12641 fi
12642 AM_BACKSLASH='\'
12643
12644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12645   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12646   # is not polluted with repeated "-I."
12647   am__isrc=' -I$(srcdir)'
12648   # test to see if srcdir already configured
12649   if test -f $srcdir/config.status; then
12650     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12651   fi
12652 fi
12653
12654 # test whether we have cygpath
12655 if test -z "$CYGPATH_W"; then
12656   if (cygpath --version) >/dev/null 2>/dev/null; then
12657     CYGPATH_W='cygpath -w'
12658   else
12659     CYGPATH_W=echo
12660   fi
12661 fi
12662
12663
12664 # Define the identity of the package.
12665  PACKAGE='nghttp2'
12666  VERSION='1.41.0'
12667
12668
12669 cat >>confdefs.h <<_ACEOF
12670 #define PACKAGE "$PACKAGE"
12671 _ACEOF
12672
12673
12674 cat >>confdefs.h <<_ACEOF
12675 #define VERSION "$VERSION"
12676 _ACEOF
12677
12678 # Some tools Automake needs.
12679
12680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12681
12682
12683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12684
12685
12686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12687
12688
12689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12690
12691
12692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12693
12694 # For better backward compatibility.  To be removed once Automake 1.9.x
12695 # dies out for good.  For more background, see:
12696 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12697 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12698 mkdir_p='$(MKDIR_P)'
12699
12700 # We need awk for the "check" target (and possibly the TAP driver).  The
12701 # system "awk" is bad on some platforms.
12702 # Always define AMTAR for backward compatibility.  Yes, it's still used
12703 # in the wild :-(  We should find a proper way to deprecate it ...
12704 AMTAR='$${TAR-tar}'
12705
12706
12707 # We'll loop over all known methods to create a tar archive until one works.
12708 _am_tools='gnutar  pax cpio none'
12709
12710 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12711
12712
12713
12714
12715
12716 depcc="$CC"   am_compiler_list=
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12719 $as_echo_n "checking dependency style of $depcc... " >&6; }
12720 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12724   # We make a subdir and do the tests there.  Otherwise we can end up
12725   # making bogus files that we don't know about and never remove.  For
12726   # instance it was reported that on HP-UX the gcc test will end up
12727   # making a dummy file named 'D' -- because '-MD' means "put the output
12728   # in D".
12729   rm -rf conftest.dir
12730   mkdir conftest.dir
12731   # Copy depcomp to subdir because otherwise we won't find it if we're
12732   # using a relative directory.
12733   cp "$am_depcomp" conftest.dir
12734   cd conftest.dir
12735   # We will build objects and dependencies in a subdirectory because
12736   # it helps to detect inapplicable dependency modes.  For instance
12737   # both Tru64's cc and ICC support -MD to output dependencies as a
12738   # side effect of compilation, but ICC will put the dependencies in
12739   # the current directory while Tru64 will put them in the object
12740   # directory.
12741   mkdir sub
12742
12743   am_cv_CC_dependencies_compiler_type=none
12744   if test "$am_compiler_list" = ""; then
12745      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12746   fi
12747   am__universal=false
12748   case " $depcc " in #(
12749      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12750      esac
12751
12752   for depmode in $am_compiler_list; do
12753     # Setup a source with many dependencies, because some compilers
12754     # like to wrap large dependency lists on column 80 (with \), and
12755     # we should not choose a depcomp mode which is confused by this.
12756     #
12757     # We need to recreate these files for each test, as the compiler may
12758     # overwrite some of them when testing with obscure command lines.
12759     # This happens at least with the AIX C compiler.
12760     : > sub/conftest.c
12761     for i in 1 2 3 4 5 6; do
12762       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12763       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12764       # Solaris 10 /bin/sh.
12765       echo '/* dummy */' > sub/conftst$i.h
12766     done
12767     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12768
12769     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12770     # mode.  It turns out that the SunPro C++ compiler does not properly
12771     # handle '-M -o', and we need to detect this.  Also, some Intel
12772     # versions had trouble with output in subdirs.
12773     am__obj=sub/conftest.${OBJEXT-o}
12774     am__minus_obj="-o $am__obj"
12775     case $depmode in
12776     gcc)
12777       # This depmode causes a compiler race in universal mode.
12778       test "$am__universal" = false || continue
12779       ;;
12780     nosideeffect)
12781       # After this tag, mechanisms are not by side-effect, so they'll
12782       # only be used when explicitly requested.
12783       if test "x$enable_dependency_tracking" = xyes; then
12784         continue
12785       else
12786         break
12787       fi
12788       ;;
12789     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12790       # This compiler won't grok '-c -o', but also, the minuso test has
12791       # not run yet.  These depmodes are late enough in the game, and
12792       # so weak that their functioning should not be impacted.
12793       am__obj=conftest.${OBJEXT-o}
12794       am__minus_obj=
12795       ;;
12796     none) break ;;
12797     esac
12798     if depmode=$depmode \
12799        source=sub/conftest.c object=$am__obj \
12800        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12801        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12802          >/dev/null 2>conftest.err &&
12803        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12804        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12805        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12806        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12807       # icc doesn't choke on unknown options, it will just issue warnings
12808       # or remarks (even with -Werror).  So we grep stderr for any message
12809       # that says an option was ignored or not supported.
12810       # When given -MP, icc 7.0 and 7.1 complain thusly:
12811       #   icc: Command line warning: ignoring option '-M'; no argument required
12812       # The diagnosis changed in icc 8.0:
12813       #   icc: Command line remark: option '-MP' not supported
12814       if (grep 'ignoring option' conftest.err ||
12815           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12816         am_cv_CC_dependencies_compiler_type=$depmode
12817         break
12818       fi
12819     fi
12820   done
12821
12822   cd ..
12823   rm -rf conftest.dir
12824 else
12825   am_cv_CC_dependencies_compiler_type=none
12826 fi
12827
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12830 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12831 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12832
12833  if
12834   test "x$enable_dependency_tracking" != xno \
12835   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12836   am__fastdepCC_TRUE=
12837   am__fastdepCC_FALSE='#'
12838 else
12839   am__fastdepCC_TRUE='#'
12840   am__fastdepCC_FALSE=
12841 fi
12842
12843
12844
12845 # POSIX will say in a future version that running "rm -f" with no argument
12846 # is OK; and we want to be able to make that assumption in our Makefile
12847 # recipes.  So use an aggressive probe to check that the usage we want is
12848 # actually supported "in the wild" to an acceptable degree.
12849 # See automake bug#10828.
12850 # To make any issue more visible, cause the running configure to be aborted
12851 # by default if the 'rm' program in use doesn't match our expectations; the
12852 # user can still override this though.
12853 if rm -f && rm -fr && rm -rf; then : OK; else
12854   cat >&2 <<'END'
12855 Oops!
12856
12857 Your 'rm' program seems unable to run without file operands specified
12858 on the command line, even when the '-f' option is present.  This is contrary
12859 to the behaviour of most rm programs out there, and not conforming with
12860 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12861
12862 Please tell bug-automake@gnu.org about your system, including the value
12863 of your $PATH and any error possibly output before this message.  This
12864 can help us improve future automake versions.
12865
12866 END
12867   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12868     echo 'Configuration will proceed anyway, since you have set the' >&2
12869     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12870     echo >&2
12871   else
12872     cat >&2 <<'END'
12873 Aborting the configuration process, to ensure you take notice of the issue.
12874
12875 You can download and install GNU coreutils to get an 'rm' implementation
12876 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12877
12878 If you want to complete the configuration process using your problematic
12879 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12880 to "yes", and re-run configure.
12881
12882 END
12883     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12884   fi
12885 fi
12886
12887
12888 # Check whether --enable-silent-rules was given.
12889 if test "${enable_silent_rules+set}" = set; then :
12890   enableval=$enable_silent_rules;
12891 fi
12892
12893 case $enable_silent_rules in # (((
12894   yes) AM_DEFAULT_VERBOSITY=0;;
12895    no) AM_DEFAULT_VERBOSITY=1;;
12896     *) AM_DEFAULT_VERBOSITY=0;;
12897 esac
12898 am_make=${MAKE-make}
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12900 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12901 if ${am_cv_make_support_nested_variables+:} false; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   if $as_echo 'TRUE=$(BAR$(V))
12905 BAR0=false
12906 BAR1=true
12907 V=1
12908 am__doit:
12909         @$(TRUE)
12910 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12911   am_cv_make_support_nested_variables=yes
12912 else
12913   am_cv_make_support_nested_variables=no
12914 fi
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12917 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12918 if test $am_cv_make_support_nested_variables = yes; then
12919     AM_V='$(V)'
12920   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12921 else
12922   AM_V=$AM_DEFAULT_VERBOSITY
12923   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12924 fi
12925 AM_BACKSLASH='\'
12926
12927
12928 LT_CURRENT=34
12929
12930 LT_REVISION=0
12931
12932 LT_AGE=20
12933
12934
12935 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
12936 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
12937 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
12938
12939 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
12940
12941
12942
12943 # Check whether --enable-werror was given.
12944 if test "${enable_werror+set}" = set; then :
12945   enableval=$enable_werror; werror=$enableval
12946 else
12947   werror=no
12948 fi
12949
12950
12951 # Check whether --enable-debug was given.
12952 if test "${enable_debug+set}" = set; then :
12953   enableval=$enable_debug; debug=$enableval
12954 else
12955   debug=no
12956 fi
12957
12958
12959 # Check whether --enable-threads was given.
12960 if test "${enable_threads+set}" = set; then :
12961   enableval=$enable_threads; threads=$enableval
12962 else
12963   threads=yes
12964 fi
12965
12966
12967 # Check whether --enable-app was given.
12968 if test "${enable_app+set}" = set; then :
12969   enableval=$enable_app; request_app=$enableval
12970 else
12971   request_app=check
12972 fi
12973
12974
12975 # Check whether --enable-hpack-tools was given.
12976 if test "${enable_hpack_tools+set}" = set; then :
12977   enableval=$enable_hpack_tools; request_hpack_tools=$enableval
12978 else
12979   request_hpack_tools=check
12980 fi
12981
12982
12983 # Check whether --enable-asio-lib was given.
12984 if test "${enable_asio_lib+set}" = set; then :
12985   enableval=$enable_asio_lib; request_asio_lib=$enableval
12986 else
12987   request_asio_lib=no
12988 fi
12989
12990
12991 # Check whether --enable-examples was given.
12992 if test "${enable_examples+set}" = set; then :
12993   enableval=$enable_examples; request_examples=$enableval
12994 else
12995   request_examples=check
12996 fi
12997
12998
12999 # Check whether --enable-python-bindings was given.
13000 if test "${enable_python_bindings+set}" = set; then :
13001   enableval=$enable_python_bindings; request_python_bindings=$enableval
13002 else
13003   request_python_bindings=check
13004 fi
13005
13006
13007 # Check whether --enable-failmalloc was given.
13008 if test "${enable_failmalloc+set}" = set; then :
13009   enableval=$enable_failmalloc; request_failmalloc=$enableval
13010 else
13011   request_failmalloc=yes
13012 fi
13013
13014
13015 # Check whether --enable-lib-only was given.
13016 if test "${enable_lib_only+set}" = set; then :
13017   enableval=$enable_lib_only; request_lib_only=$enableval
13018 else
13019   request_lib_only=no
13020 fi
13021
13022
13023
13024 # Check whether --with-libxml2 was given.
13025 if test "${with_libxml2+set}" = set; then :
13026   withval=$with_libxml2; request_libxml2=$withval
13027 else
13028   request_libxml2=check
13029 fi
13030
13031
13032
13033 # Check whether --with-jemalloc was given.
13034 if test "${with_jemalloc+set}" = set; then :
13035   withval=$with_jemalloc; request_jemalloc=$withval
13036 else
13037   request_jemalloc=check
13038 fi
13039
13040
13041
13042 # Check whether --with-systemd was given.
13043 if test "${with_systemd+set}" = set; then :
13044   withval=$with_systemd; request_systemd=$withval
13045 else
13046   request_systemd=check
13047 fi
13048
13049
13050
13051 # Check whether --with-mruby was given.
13052 if test "${with_mruby+set}" = set; then :
13053   withval=$with_mruby; request_mruby=$withval
13054 else
13055   request_mruby=no
13056 fi
13057
13058
13059
13060 # Check whether --with-neverbleed was given.
13061 if test "${with_neverbleed+set}" = set; then :
13062   withval=$with_neverbleed; request_neverbleed=$withval
13063 else
13064   request_neverbleed=no
13065 fi
13066
13067
13068
13069 # Check whether --with-cython was given.
13070 if test "${with_cython+set}" = set; then :
13071   withval=$with_cython; cython_path=$withval
13072 fi
13073
13074
13075
13076
13077 ac_ext=c
13078 ac_cpp='$CPP $CPPFLAGS'
13079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13082 if test -n "$ac_tool_prefix"; then
13083   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_prog_CC+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   if test -n "$CC"; then
13091   ac_cv_prog_CC="$CC" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096   IFS=$as_save_IFS
13097   test -z "$as_dir" && as_dir=.
13098     for ac_exec_ext in '' $ac_executable_extensions; do
13099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102     break 2
13103   fi
13104 done
13105   done
13106 IFS=$as_save_IFS
13107
13108 fi
13109 fi
13110 CC=$ac_cv_prog_CC
13111 if test -n "$CC"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13113 $as_echo "$CC" >&6; }
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118
13119
13120 fi
13121 if test -z "$ac_cv_prog_CC"; then
13122   ac_ct_CC=$CC
13123   # Extract the first word of "gcc", so it can be a program name with args.
13124 set dummy gcc; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   if test -n "$ac_ct_CC"; then
13131   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13132 else
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13135 do
13136   IFS=$as_save_IFS
13137   test -z "$as_dir" && as_dir=.
13138     for ac_exec_ext in '' $ac_executable_extensions; do
13139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140     ac_cv_prog_ac_ct_CC="gcc"
13141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142     break 2
13143   fi
13144 done
13145   done
13146 IFS=$as_save_IFS
13147
13148 fi
13149 fi
13150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13151 if test -n "$ac_ct_CC"; then
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13153 $as_echo "$ac_ct_CC" >&6; }
13154 else
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158
13159   if test "x$ac_ct_CC" = x; then
13160     CC=""
13161   else
13162     case $cross_compiling:$ac_tool_warned in
13163 yes:)
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13167 esac
13168     CC=$ac_ct_CC
13169   fi
13170 else
13171   CC="$ac_cv_prog_CC"
13172 fi
13173
13174 if test -z "$CC"; then
13175           if test -n "$ac_tool_prefix"; then
13176     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13177 set dummy ${ac_tool_prefix}cc; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_prog_CC+:} false; then :
13181   $as_echo_n "(cached) " >&6
13182 else
13183   if test -n "$CC"; then
13184   ac_cv_prog_CC="$CC" # Let the user override the test.
13185 else
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13188 do
13189   IFS=$as_save_IFS
13190   test -z "$as_dir" && as_dir=.
13191     for ac_exec_ext in '' $ac_executable_extensions; do
13192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193     ac_cv_prog_CC="${ac_tool_prefix}cc"
13194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195     break 2
13196   fi
13197 done
13198   done
13199 IFS=$as_save_IFS
13200
13201 fi
13202 fi
13203 CC=$ac_cv_prog_CC
13204 if test -n "$CC"; then
13205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13206 $as_echo "$CC" >&6; }
13207 else
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210 fi
13211
13212
13213   fi
13214 fi
13215 if test -z "$CC"; then
13216   # Extract the first word of "cc", so it can be a program name with args.
13217 set dummy cc; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_prog_CC+:} false; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   if test -n "$CC"; then
13224   ac_cv_prog_CC="$CC" # Let the user override the test.
13225 else
13226   ac_prog_rejected=no
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230   IFS=$as_save_IFS
13231   test -z "$as_dir" && as_dir=.
13232     for ac_exec_ext in '' $ac_executable_extensions; do
13233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13235        ac_prog_rejected=yes
13236        continue
13237      fi
13238     ac_cv_prog_CC="cc"
13239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240     break 2
13241   fi
13242 done
13243   done
13244 IFS=$as_save_IFS
13245
13246 if test $ac_prog_rejected = yes; then
13247   # We found a bogon in the path, so make sure we never use it.
13248   set dummy $ac_cv_prog_CC
13249   shift
13250   if test $# != 0; then
13251     # We chose a different compiler from the bogus one.
13252     # However, it has the same basename, so the bogon will be chosen
13253     # first if we set CC to just the basename; use the full file name.
13254     shift
13255     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13256   fi
13257 fi
13258 fi
13259 fi
13260 CC=$ac_cv_prog_CC
13261 if test -n "$CC"; then
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13263 $as_echo "$CC" >&6; }
13264 else
13265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270 fi
13271 if test -z "$CC"; then
13272   if test -n "$ac_tool_prefix"; then
13273   for ac_prog in cl.exe
13274   do
13275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_prog_CC+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   if test -n "$CC"; then
13283   ac_cv_prog_CC="$CC" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288   IFS=$as_save_IFS
13289   test -z "$as_dir" && as_dir=.
13290     for ac_exec_ext in '' $ac_executable_extensions; do
13291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294     break 2
13295   fi
13296 done
13297   done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 CC=$ac_cv_prog_CC
13303 if test -n "$CC"; then
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13305 $as_echo "$CC" >&6; }
13306 else
13307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310
13311
13312     test -n "$CC" && break
13313   done
13314 fi
13315 if test -z "$CC"; then
13316   ac_ct_CC=$CC
13317   for ac_prog in cl.exe
13318 do
13319   # Extract the first word of "$ac_prog", so it can be a program name with args.
13320 set dummy $ac_prog; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   if test -n "$ac_ct_CC"; then
13327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13328 else
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332   IFS=$as_save_IFS
13333   test -z "$as_dir" && as_dir=.
13334     for ac_exec_ext in '' $ac_executable_extensions; do
13335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336     ac_cv_prog_ac_ct_CC="$ac_prog"
13337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338     break 2
13339   fi
13340 done
13341   done
13342 IFS=$as_save_IFS
13343
13344 fi
13345 fi
13346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13347 if test -n "$ac_ct_CC"; then
13348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13349 $as_echo "$ac_ct_CC" >&6; }
13350 else
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13353 fi
13354
13355
13356   test -n "$ac_ct_CC" && break
13357 done
13358
13359   if test "x$ac_ct_CC" = x; then
13360     CC=""
13361   else
13362     case $cross_compiling:$ac_tool_warned in
13363 yes:)
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13366 ac_tool_warned=yes ;;
13367 esac
13368     CC=$ac_ct_CC
13369   fi
13370 fi
13371
13372 fi
13373
13374
13375 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13377 as_fn_error $? "no acceptable C compiler found in \$PATH
13378 See \`config.log' for more details" "$LINENO" 5; }
13379
13380 # Provide some information about the compiler.
13381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13382 set X $ac_compile
13383 ac_compiler=$2
13384 for ac_option in --version -v -V -qversion; do
13385   { { ac_try="$ac_compiler $ac_option >&5"
13386 case "(($ac_try" in
13387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388   *) ac_try_echo=$ac_try;;
13389 esac
13390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13391 $as_echo "$ac_try_echo"; } >&5
13392   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13393   ac_status=$?
13394   if test -s conftest.err; then
13395     sed '10a\
13396 ... rest of stderr output deleted ...
13397          10q' conftest.err >conftest.er1
13398     cat conftest.er1 >&5
13399   fi
13400   rm -f conftest.er1 conftest.err
13401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13402   test $ac_status = 0; }
13403 done
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13407 if ${ac_cv_c_compiler_gnu+:} false; then :
13408   $as_echo_n "(cached) " >&6
13409 else
13410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h.  */
13412
13413 int
13414 main ()
13415 {
13416 #ifndef __GNUC__
13417        choke me
13418 #endif
13419
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425   ac_compiler_gnu=yes
13426 else
13427   ac_compiler_gnu=no
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13431
13432 fi
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13435 if test $ac_compiler_gnu = yes; then
13436   GCC=yes
13437 else
13438   GCC=
13439 fi
13440 ac_test_CFLAGS=${CFLAGS+set}
13441 ac_save_CFLAGS=$CFLAGS
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13444 if ${ac_cv_prog_cc_g+:} false; then :
13445   $as_echo_n "(cached) " >&6
13446 else
13447   ac_save_c_werror_flag=$ac_c_werror_flag
13448    ac_c_werror_flag=yes
13449    ac_cv_prog_cc_g=no
13450    CFLAGS="-g"
13451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h.  */
13453
13454 int
13455 main ()
13456 {
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 if ac_fn_c_try_compile "$LINENO"; then :
13463   ac_cv_prog_cc_g=yes
13464 else
13465   CFLAGS=""
13466       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h.  */
13468
13469 int
13470 main ()
13471 {
13472
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478
13479 else
13480   ac_c_werror_flag=$ac_save_c_werror_flag
13481          CFLAGS="-g"
13482          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h.  */
13484
13485 int
13486 main ()
13487 {
13488
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_compile "$LINENO"; then :
13494   ac_cv_prog_cc_g=yes
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 fi
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501    ac_c_werror_flag=$ac_save_c_werror_flag
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13504 $as_echo "$ac_cv_prog_cc_g" >&6; }
13505 if test "$ac_test_CFLAGS" = set; then
13506   CFLAGS=$ac_save_CFLAGS
13507 elif test $ac_cv_prog_cc_g = yes; then
13508   if test "$GCC" = yes; then
13509     CFLAGS="-g -O2"
13510   else
13511     CFLAGS="-g"
13512   fi
13513 else
13514   if test "$GCC" = yes; then
13515     CFLAGS="-O2"
13516   else
13517     CFLAGS=
13518   fi
13519 fi
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13522 if ${ac_cv_prog_cc_c89+:} false; then :
13523   $as_echo_n "(cached) " >&6
13524 else
13525   ac_cv_prog_cc_c89=no
13526 ac_save_CC=$CC
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h.  */
13529 #include <stdarg.h>
13530 #include <stdio.h>
13531 struct stat;
13532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13533 struct buf { int x; };
13534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13535 static char *e (p, i)
13536      char **p;
13537      int i;
13538 {
13539   return p[i];
13540 }
13541 static char *f (char * (*g) (char **, int), char **p, ...)
13542 {
13543   char *s;
13544   va_list v;
13545   va_start (v,p);
13546   s = g (p, va_arg (v,int));
13547   va_end (v);
13548   return s;
13549 }
13550
13551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13552    function prototypes and stuff, but not '\xHH' hex character constants.
13553    These don't provoke an error unfortunately, instead are silently treated
13554    as 'x'.  The following induces an error, until -std is added to get
13555    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13556    array size at least.  It's necessary to write '\x00'==0 to get something
13557    that's true only with -std.  */
13558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13559
13560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13561    inside strings and character constants.  */
13562 #define FOO(x) 'x'
13563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13564
13565 int test (int i, double x);
13566 struct s1 {int (*f) (int a);};
13567 struct s2 {int (*f) (double a);};
13568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13569 int argc;
13570 char **argv;
13571 int
13572 main ()
13573 {
13574 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13580         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13581 do
13582   CC="$ac_save_CC $ac_arg"
13583   if ac_fn_c_try_compile "$LINENO"; then :
13584   ac_cv_prog_cc_c89=$ac_arg
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext
13587   test "x$ac_cv_prog_cc_c89" != "xno" && break
13588 done
13589 rm -f conftest.$ac_ext
13590 CC=$ac_save_CC
13591
13592 fi
13593 # AC_CACHE_VAL
13594 case "x$ac_cv_prog_cc_c89" in
13595   x)
13596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13597 $as_echo "none needed" >&6; } ;;
13598   xno)
13599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13600 $as_echo "unsupported" >&6; } ;;
13601   *)
13602     CC="$CC $ac_cv_prog_cc_c89"
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13604 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13605 esac
13606 if test "x$ac_cv_prog_cc_c89" != xno; then :
13607
13608 fi
13609
13610 ac_ext=c
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13615
13616 ac_ext=c
13617 ac_cpp='$CPP $CPPFLAGS'
13618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13622 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13623 if ${am_cv_prog_cc_c_o+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628
13629 int
13630 main ()
13631 {
13632
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637   # Make sure it works both with $CC and with simple cc.
13638   # Following AC_PROG_CC_C_O, we do the test twice because some
13639   # compilers refuse to overwrite an existing .o file with -o,
13640   # though they will create one.
13641   am_cv_prog_cc_c_o=yes
13642   for am_i in 1 2; do
13643     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13644    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13645    ac_status=$?
13646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647    (exit $ac_status); } \
13648          && test -f conftest2.$ac_objext; then
13649       : OK
13650     else
13651       am_cv_prog_cc_c_o=no
13652       break
13653     fi
13654   done
13655   rm -f core conftest*
13656   unset am_i
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13659 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13660 if test "$am_cv_prog_cc_c_o" != yes; then
13661    # Losing compiler, so override with the script.
13662    # FIXME: It is wrong to rewrite CC.
13663    # But if we don't then we get into trouble of one sort or another.
13664    # A longer-term fix would be to have automake use am__CC in this case,
13665    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13666    CC="$am_aux_dir/compile $CC"
13667 fi
13668 ac_ext=c
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13673
13674
13675 ac_ext=cpp
13676 ac_cpp='$CXXCPP $CPPFLAGS'
13677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13680 if test -z "$CXX"; then
13681   if test -n "$CCC"; then
13682     CXX=$CCC
13683   else
13684     if test -n "$ac_tool_prefix"; then
13685   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13686   do
13687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if ${ac_cv_prog_CXX+:} false; then :
13692   $as_echo_n "(cached) " >&6
13693 else
13694   if test -n "$CXX"; then
13695   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13696 else
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13699 do
13700   IFS=$as_save_IFS
13701   test -z "$as_dir" && as_dir=.
13702     for ac_exec_ext in '' $ac_executable_extensions; do
13703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13706     break 2
13707   fi
13708 done
13709   done
13710 IFS=$as_save_IFS
13711
13712 fi
13713 fi
13714 CXX=$ac_cv_prog_CXX
13715 if test -n "$CXX"; then
13716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13717 $as_echo "$CXX" >&6; }
13718 else
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721 fi
13722
13723
13724     test -n "$CXX" && break
13725   done
13726 fi
13727 if test -z "$CXX"; then
13728   ac_ct_CXX=$CXX
13729   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13730 do
13731   # Extract the first word of "$ac_prog", so it can be a program name with args.
13732 set dummy $ac_prog; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13736   $as_echo_n "(cached) " >&6
13737 else
13738   if test -n "$ac_ct_CXX"; then
13739   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744   IFS=$as_save_IFS
13745   test -z "$as_dir" && as_dir=.
13746     for ac_exec_ext in '' $ac_executable_extensions; do
13747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748     ac_cv_prog_ac_ct_CXX="$ac_prog"
13749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750     break 2
13751   fi
13752 done
13753   done
13754 IFS=$as_save_IFS
13755
13756 fi
13757 fi
13758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13759 if test -n "$ac_ct_CXX"; then
13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13761 $as_echo "$ac_ct_CXX" >&6; }
13762 else
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765 fi
13766
13767
13768   test -n "$ac_ct_CXX" && break
13769 done
13770
13771   if test "x$ac_ct_CXX" = x; then
13772     CXX="g++"
13773   else
13774     case $cross_compiling:$ac_tool_warned in
13775 yes:)
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13778 ac_tool_warned=yes ;;
13779 esac
13780     CXX=$ac_ct_CXX
13781   fi
13782 fi
13783
13784   fi
13785 fi
13786 # Provide some information about the compiler.
13787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13788 set X $ac_compile
13789 ac_compiler=$2
13790 for ac_option in --version -v -V -qversion; do
13791   { { ac_try="$ac_compiler $ac_option >&5"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13797 $as_echo "$ac_try_echo"; } >&5
13798   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13799   ac_status=$?
13800   if test -s conftest.err; then
13801     sed '10a\
13802 ... rest of stderr output deleted ...
13803          10q' conftest.err >conftest.er1
13804     cat conftest.er1 >&5
13805   fi
13806   rm -f conftest.er1 conftest.err
13807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13808   test $ac_status = 0; }
13809 done
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13813 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13814   $as_echo_n "(cached) " >&6
13815 else
13816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h.  */
13818
13819 int
13820 main ()
13821 {
13822 #ifndef __GNUC__
13823        choke me
13824 #endif
13825
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_cxx_try_compile "$LINENO"; then :
13831   ac_compiler_gnu=yes
13832 else
13833   ac_compiler_gnu=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13837
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13841 if test $ac_compiler_gnu = yes; then
13842   GXX=yes
13843 else
13844   GXX=
13845 fi
13846 ac_test_CXXFLAGS=${CXXFLAGS+set}
13847 ac_save_CXXFLAGS=$CXXFLAGS
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13850 if ${ac_cv_prog_cxx_g+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13854    ac_cxx_werror_flag=yes
13855    ac_cv_prog_cxx_g=no
13856    CXXFLAGS="-g"
13857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h.  */
13859
13860 int
13861 main ()
13862 {
13863
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_cxx_try_compile "$LINENO"; then :
13869   ac_cv_prog_cxx_g=yes
13870 else
13871   CXXFLAGS=""
13872       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874
13875 int
13876 main ()
13877 {
13878
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_cxx_try_compile "$LINENO"; then :
13884
13885 else
13886   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13887          CXXFLAGS="-g"
13888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890
13891 int
13892 main ()
13893 {
13894
13895   ;
13896   return 0;
13897 }
13898 _ACEOF
13899 if ac_fn_cxx_try_compile "$LINENO"; then :
13900   ac_cv_prog_cxx_g=yes
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13911 if test "$ac_test_CXXFLAGS" = set; then
13912   CXXFLAGS=$ac_save_CXXFLAGS
13913 elif test $ac_cv_prog_cxx_g = yes; then
13914   if test "$GXX" = yes; then
13915     CXXFLAGS="-g -O2"
13916   else
13917     CXXFLAGS="-g"
13918   fi
13919 else
13920   if test "$GXX" = yes; then
13921     CXXFLAGS="-O2"
13922   else
13923     CXXFLAGS=
13924   fi
13925 fi
13926 ac_ext=c
13927 ac_cpp='$CPP $CPPFLAGS'
13928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13931
13932
13933
13934 func_stripname_cnf ()
13935 {
13936   case $2 in
13937   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13938   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13939   esac
13940 } # func_stripname_cnf
13941
13942       if test -n "$CXX" && ( test no != "$CXX" &&
13943     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13944     (test g++ != "$CXX"))); then
13945   ac_ext=cpp
13946 ac_cpp='$CXXCPP $CPPFLAGS'
13947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13951 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13952 if test -z "$CXXCPP"; then
13953   if ${ac_cv_prog_CXXCPP+:} false; then :
13954   $as_echo_n "(cached) " >&6
13955 else
13956       # Double quotes because CXXCPP needs to be expanded
13957     for CXXCPP in "$CXX -E" "/lib/cpp"
13958     do
13959       ac_preproc_ok=false
13960 for ac_cxx_preproc_warn_flag in '' yes
13961 do
13962   # Use a header file that comes with gcc, so configuring glibc
13963   # with a fresh cross-compiler works.
13964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13965   # <limits.h> exists even on freestanding compilers.
13966   # On the NeXT, cc -E runs the code through the compiler's parser,
13967   # not just through cpp. "Syntax error" is here to catch this case.
13968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970 #ifdef __STDC__
13971 # include <limits.h>
13972 #else
13973 # include <assert.h>
13974 #endif
13975                      Syntax error
13976 _ACEOF
13977 if ac_fn_cxx_try_cpp "$LINENO"; then :
13978
13979 else
13980   # Broken: fails on valid input.
13981 continue
13982 fi
13983 rm -f conftest.err conftest.i conftest.$ac_ext
13984
13985   # OK, works on sane cases.  Now check whether nonexistent headers
13986   # can be detected and how.
13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h.  */
13989 #include <ac_nonexistent.h>
13990 _ACEOF
13991 if ac_fn_cxx_try_cpp "$LINENO"; then :
13992   # Broken: success on invalid input.
13993 continue
13994 else
13995   # Passes both tests.
13996 ac_preproc_ok=:
13997 break
13998 fi
13999 rm -f conftest.err conftest.i conftest.$ac_ext
14000
14001 done
14002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14003 rm -f conftest.i conftest.err conftest.$ac_ext
14004 if $ac_preproc_ok; then :
14005   break
14006 fi
14007
14008     done
14009     ac_cv_prog_CXXCPP=$CXXCPP
14010
14011 fi
14012   CXXCPP=$ac_cv_prog_CXXCPP
14013 else
14014   ac_cv_prog_CXXCPP=$CXXCPP
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14017 $as_echo "$CXXCPP" >&6; }
14018 ac_preproc_ok=false
14019 for ac_cxx_preproc_warn_flag in '' yes
14020 do
14021   # Use a header file that comes with gcc, so configuring glibc
14022   # with a fresh cross-compiler works.
14023   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024   # <limits.h> exists even on freestanding compilers.
14025   # On the NeXT, cc -E runs the code through the compiler's parser,
14026   # not just through cpp. "Syntax error" is here to catch this case.
14027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029 #ifdef __STDC__
14030 # include <limits.h>
14031 #else
14032 # include <assert.h>
14033 #endif
14034                      Syntax error
14035 _ACEOF
14036 if ac_fn_cxx_try_cpp "$LINENO"; then :
14037
14038 else
14039   # Broken: fails on valid input.
14040 continue
14041 fi
14042 rm -f conftest.err conftest.i conftest.$ac_ext
14043
14044   # OK, works on sane cases.  Now check whether nonexistent headers
14045   # can be detected and how.
14046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h.  */
14048 #include <ac_nonexistent.h>
14049 _ACEOF
14050 if ac_fn_cxx_try_cpp "$LINENO"; then :
14051   # Broken: success on invalid input.
14052 continue
14053 else
14054   # Passes both tests.
14055 ac_preproc_ok=:
14056 break
14057 fi
14058 rm -f conftest.err conftest.i conftest.$ac_ext
14059
14060 done
14061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14062 rm -f conftest.i conftest.err conftest.$ac_ext
14063 if $ac_preproc_ok; then :
14064
14065 else
14066   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14068 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14069 See \`config.log' for more details" "$LINENO" 5; }
14070 fi
14071
14072 ac_ext=c
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078 else
14079   _lt_caught_CXX_error=yes
14080 fi
14081
14082 ac_ext=cpp
14083 ac_cpp='$CXXCPP $CPPFLAGS'
14084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14087
14088 archive_cmds_need_lc_CXX=no
14089 allow_undefined_flag_CXX=
14090 always_export_symbols_CXX=no
14091 archive_expsym_cmds_CXX=
14092 compiler_needs_object_CXX=no
14093 export_dynamic_flag_spec_CXX=
14094 hardcode_direct_CXX=no
14095 hardcode_direct_absolute_CXX=no
14096 hardcode_libdir_flag_spec_CXX=
14097 hardcode_libdir_separator_CXX=
14098 hardcode_minus_L_CXX=no
14099 hardcode_shlibpath_var_CXX=unsupported
14100 hardcode_automatic_CXX=no
14101 inherit_rpath_CXX=no
14102 module_cmds_CXX=
14103 module_expsym_cmds_CXX=
14104 link_all_deplibs_CXX=unknown
14105 old_archive_cmds_CXX=$old_archive_cmds
14106 reload_flag_CXX=$reload_flag
14107 reload_cmds_CXX=$reload_cmds
14108 no_undefined_flag_CXX=
14109 whole_archive_flag_spec_CXX=
14110 enable_shared_with_static_runtimes_CXX=no
14111
14112 # Source file extension for C++ test sources.
14113 ac_ext=cpp
14114
14115 # Object file extension for compiled C++ test sources.
14116 objext=o
14117 objext_CXX=$objext
14118
14119 # No sense in running all these tests if we already determined that
14120 # the CXX compiler isn't working.  Some variables (like enable_shared)
14121 # are currently assumed to apply to all compilers on this platform,
14122 # and will be corrupted by setting them based on a non-working compiler.
14123 if test yes != "$_lt_caught_CXX_error"; then
14124   # Code to be used in simple compile tests
14125   lt_simple_compile_test_code="int some_variable = 0;"
14126
14127   # Code to be used in simple link tests
14128   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14129
14130   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14131
14132
14133
14134
14135
14136
14137 # If no C compiler was specified, use CC.
14138 LTCC=${LTCC-"$CC"}
14139
14140 # If no C compiler flags were specified, use CFLAGS.
14141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14142
14143 # Allow CC to be a program name with arguments.
14144 compiler=$CC
14145
14146
14147   # save warnings/boilerplate of simple test code
14148   ac_outfile=conftest.$ac_objext
14149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14151 _lt_compiler_boilerplate=`cat conftest.err`
14152 $RM conftest*
14153
14154   ac_outfile=conftest.$ac_objext
14155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157 _lt_linker_boilerplate=`cat conftest.err`
14158 $RM -r conftest*
14159
14160
14161   # Allow CC to be a program name with arguments.
14162   lt_save_CC=$CC
14163   lt_save_CFLAGS=$CFLAGS
14164   lt_save_LD=$LD
14165   lt_save_GCC=$GCC
14166   GCC=$GXX
14167   lt_save_with_gnu_ld=$with_gnu_ld
14168   lt_save_path_LD=$lt_cv_path_LD
14169   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14170     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14171   else
14172     $as_unset lt_cv_prog_gnu_ld
14173   fi
14174   if test -n "${lt_cv_path_LDCXX+set}"; then
14175     lt_cv_path_LD=$lt_cv_path_LDCXX
14176   else
14177     $as_unset lt_cv_path_LD
14178   fi
14179   test -z "${LDCXX+set}" || LD=$LDCXX
14180   CC=${CXX-"c++"}
14181   CFLAGS=$CXXFLAGS
14182   compiler=$CC
14183   compiler_CXX=$CC
14184   func_cc_basename $compiler
14185 cc_basename=$func_cc_basename_result
14186
14187
14188   if test -n "$compiler"; then
14189     # We don't want -fno-exception when compiling C++ code, so set the
14190     # no_builtin_flag separately
14191     if test yes = "$GXX"; then
14192       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14193     else
14194       lt_prog_compiler_no_builtin_flag_CXX=
14195     fi
14196
14197     if test yes = "$GXX"; then
14198       # Set up default GNU C++ configuration
14199
14200
14201
14202 # Check whether --with-gnu-ld was given.
14203 if test "${with_gnu_ld+set}" = set; then :
14204   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14205 else
14206   with_gnu_ld=no
14207 fi
14208
14209 ac_prog=ld
14210 if test yes = "$GCC"; then
14211   # Check if gcc -print-prog-name=ld gives a path.
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14213 $as_echo_n "checking for ld used by $CC... " >&6; }
14214   case $host in
14215   *-*-mingw*)
14216     # gcc leaves a trailing carriage return, which upsets mingw
14217     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14218   *)
14219     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14220   esac
14221   case $ac_prog in
14222     # Accept absolute paths.
14223     [\\/]* | ?:[\\/]*)
14224       re_direlt='/[^/][^/]*/\.\./'
14225       # Canonicalize the pathname of ld
14226       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14227       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14228         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14229       done
14230       test -z "$LD" && LD=$ac_prog
14231       ;;
14232   "")
14233     # If it fails, then pretend we aren't using GCC.
14234     ac_prog=ld
14235     ;;
14236   *)
14237     # If it is relative, then search for the first ld in PATH.
14238     with_gnu_ld=unknown
14239     ;;
14240   esac
14241 elif test yes = "$with_gnu_ld"; then
14242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14243 $as_echo_n "checking for GNU ld... " >&6; }
14244 else
14245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14246 $as_echo_n "checking for non-GNU ld... " >&6; }
14247 fi
14248 if ${lt_cv_path_LD+:} false; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   if test -z "$LD"; then
14252   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14253   for ac_dir in $PATH; do
14254     IFS=$lt_save_ifs
14255     test -z "$ac_dir" && ac_dir=.
14256     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14257       lt_cv_path_LD=$ac_dir/$ac_prog
14258       # Check to see if the program is GNU ld.  I'd rather use --version,
14259       # but apparently some variants of GNU ld only accept -v.
14260       # Break only if it was the GNU/non-GNU ld that we prefer.
14261       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14262       *GNU* | *'with BFD'*)
14263         test no != "$with_gnu_ld" && break
14264         ;;
14265       *)
14266         test yes != "$with_gnu_ld" && break
14267         ;;
14268       esac
14269     fi
14270   done
14271   IFS=$lt_save_ifs
14272 else
14273   lt_cv_path_LD=$LD # Let the user override the test with a path.
14274 fi
14275 fi
14276
14277 LD=$lt_cv_path_LD
14278 if test -n "$LD"; then
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14280 $as_echo "$LD" >&6; }
14281 else
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284 fi
14285 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14288 if ${lt_cv_prog_gnu_ld+:} false; then :
14289   $as_echo_n "(cached) " >&6
14290 else
14291   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14292 case `$LD -v 2>&1 </dev/null` in
14293 *GNU* | *'with BFD'*)
14294   lt_cv_prog_gnu_ld=yes
14295   ;;
14296 *)
14297   lt_cv_prog_gnu_ld=no
14298   ;;
14299 esac
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14303 with_gnu_ld=$lt_cv_prog_gnu_ld
14304
14305
14306
14307
14308
14309
14310
14311       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14312       # archiving commands below assume that GNU ld is being used.
14313       if test yes = "$with_gnu_ld"; then
14314         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14315         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14316
14317         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14318         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14319
14320         # If archive_cmds runs LD, not CC, wlarc should be empty
14321         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14322         #     investigate it a little bit more. (MM)
14323         wlarc='$wl'
14324
14325         # ancient GNU ld didn't support --whole-archive et. al.
14326         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14327           $GREP 'no-whole-archive' > /dev/null; then
14328           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14329         else
14330           whole_archive_flag_spec_CXX=
14331         fi
14332       else
14333         with_gnu_ld=no
14334         wlarc=
14335
14336         # A generic and very simple default shared library creation
14337         # command for GNU C++ for the case where it uses the native
14338         # linker, instead of GNU ld.  If possible, this setting should
14339         # overridden to take advantage of the native linker features on
14340         # the platform it is being used on.
14341         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14342       fi
14343
14344       # Commands to make compiler produce verbose output that lists
14345       # what "hidden" libraries, object files and flags are used when
14346       # linking a shared library.
14347       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14348
14349     else
14350       GXX=no
14351       with_gnu_ld=no
14352       wlarc=
14353     fi
14354
14355     # PORTME: fill in a description of your system's C++ link characteristics
14356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14358     ld_shlibs_CXX=yes
14359     case $host_os in
14360       aix3*)
14361         # FIXME: insert proper C++ library support
14362         ld_shlibs_CXX=no
14363         ;;
14364       aix[4-9]*)
14365         if test ia64 = "$host_cpu"; then
14366           # On IA64, the linker does run time linking by default, so we don't
14367           # have to do anything special.
14368           aix_use_runtimelinking=no
14369           exp_sym_flag='-Bexport'
14370           no_entry_flag=
14371         else
14372           aix_use_runtimelinking=no
14373
14374           # Test if we are trying to use run time linking or normal
14375           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14376           # have runtime linking enabled, and use it for executables.
14377           # For shared libraries, we enable/disable runtime linking
14378           # depending on the kind of the shared library created -
14379           # when "with_aix_soname,aix_use_runtimelinking" is:
14380           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14381           # "aix,yes"  lib.so          shared, rtl:yes, for executables
14382           #            lib.a           static archive
14383           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14384           #            lib.a(lib.so.V) shared, rtl:no,  for executables
14385           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14386           #            lib.a(lib.so.V) shared, rtl:no
14387           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14388           #            lib.a           static archive
14389           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14390             for ld_flag in $LDFLAGS; do
14391               case $ld_flag in
14392               *-brtl*)
14393                 aix_use_runtimelinking=yes
14394                 break
14395                 ;;
14396               esac
14397             done
14398             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14399               # With aix-soname=svr4, we create the lib.so.V shared archives only,
14400               # so we don't have lib.a shared libs to link our executables.
14401               # We have to force runtime linking in this case.
14402               aix_use_runtimelinking=yes
14403               LDFLAGS="$LDFLAGS -Wl,-brtl"
14404             fi
14405             ;;
14406           esac
14407
14408           exp_sym_flag='-bexport'
14409           no_entry_flag='-bnoentry'
14410         fi
14411
14412         # When large executables or shared objects are built, AIX ld can
14413         # have problems creating the table of contents.  If linking a library
14414         # or program results in "error TOC overflow" add -mminimal-toc to
14415         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14416         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14417
14418         archive_cmds_CXX=''
14419         hardcode_direct_CXX=yes
14420         hardcode_direct_absolute_CXX=yes
14421         hardcode_libdir_separator_CXX=':'
14422         link_all_deplibs_CXX=yes
14423         file_list_spec_CXX='$wl-f,'
14424         case $with_aix_soname,$aix_use_runtimelinking in
14425         aix,*) ;;       # no import file
14426         svr4,* | *,yes) # use import file
14427           # The Import File defines what to hardcode.
14428           hardcode_direct_CXX=no
14429           hardcode_direct_absolute_CXX=no
14430           ;;
14431         esac
14432
14433         if test yes = "$GXX"; then
14434           case $host_os in aix4.[012]|aix4.[012].*)
14435           # We only want to do this on AIX 4.2 and lower, the check
14436           # below for broken collect2 doesn't work under 4.3+
14437           collect2name=`$CC -print-prog-name=collect2`
14438           if test -f "$collect2name" &&
14439              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14440           then
14441             # We have reworked collect2
14442             :
14443           else
14444             # We have old collect2
14445             hardcode_direct_CXX=unsupported
14446             # It fails to find uninstalled libraries when the uninstalled
14447             # path is not listed in the libpath.  Setting hardcode_minus_L
14448             # to unsupported forces relinking
14449             hardcode_minus_L_CXX=yes
14450             hardcode_libdir_flag_spec_CXX='-L$libdir'
14451             hardcode_libdir_separator_CXX=
14452           fi
14453           esac
14454           shared_flag='-shared'
14455           if test yes = "$aix_use_runtimelinking"; then
14456             shared_flag=$shared_flag' $wl-G'
14457           fi
14458           # Need to ensure runtime linking is disabled for the traditional
14459           # shared library, or the linker may eventually find shared libraries
14460           # /with/ Import File - we do not want to mix them.
14461           shared_flag_aix='-shared'
14462           shared_flag_svr4='-shared $wl-G'
14463         else
14464           # not using gcc
14465           if test ia64 = "$host_cpu"; then
14466           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14467           # chokes on -Wl,-G. The following line is correct:
14468           shared_flag='-G'
14469           else
14470             if test yes = "$aix_use_runtimelinking"; then
14471               shared_flag='$wl-G'
14472             else
14473               shared_flag='$wl-bM:SRE'
14474             fi
14475             shared_flag_aix='$wl-bM:SRE'
14476             shared_flag_svr4='$wl-G'
14477           fi
14478         fi
14479
14480         export_dynamic_flag_spec_CXX='$wl-bexpall'
14481         # It seems that -bexpall does not export symbols beginning with
14482         # underscore (_), so it is better to generate a list of symbols to
14483         # export.
14484         always_export_symbols_CXX=yes
14485         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14486           # Warning - without using the other runtime loading flags (-brtl),
14487           # -berok will link without error, but may produce a broken library.
14488           # The "-G" linker flag allows undefined symbols.
14489           no_undefined_flag_CXX='-bernotok'
14490           # Determine the default libpath from the value encoded in an empty
14491           # executable.
14492           if test set = "${lt_cv_aix_libpath+set}"; then
14493   aix_libpath=$lt_cv_aix_libpath
14494 else
14495   if ${lt_cv_aix_libpath__CXX+:} false; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h.  */
14500
14501 int
14502 main ()
14503 {
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_cxx_try_link "$LINENO"; then :
14510
14511   lt_aix_libpath_sed='
14512       /Import File Strings/,/^$/ {
14513           /^0/ {
14514               s/^0  *\([^ ]*\) *$/\1/
14515               p
14516           }
14517       }'
14518   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14519   # Check for a 64-bit object if we didn't find anything.
14520   if test -z "$lt_cv_aix_libpath__CXX"; then
14521     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14522   fi
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext \
14525     conftest$ac_exeext conftest.$ac_ext
14526   if test -z "$lt_cv_aix_libpath__CXX"; then
14527     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14528   fi
14529
14530 fi
14531
14532   aix_libpath=$lt_cv_aix_libpath__CXX
14533 fi
14534
14535           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14536
14537           archive_expsym_cmds_CXX='$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
14538         else
14539           if test ia64 = "$host_cpu"; then
14540             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14541             allow_undefined_flag_CXX="-z nodefs"
14542             archive_expsym_cmds_CXX="\$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"
14543           else
14544             # Determine the default libpath from the value encoded in an
14545             # empty executable.
14546             if test set = "${lt_cv_aix_libpath+set}"; then
14547   aix_libpath=$lt_cv_aix_libpath
14548 else
14549   if ${lt_cv_aix_libpath__CXX+:} false; then :
14550   $as_echo_n "(cached) " >&6
14551 else
14552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h.  */
14554
14555 int
14556 main ()
14557 {
14558
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_cxx_try_link "$LINENO"; then :
14564
14565   lt_aix_libpath_sed='
14566       /Import File Strings/,/^$/ {
14567           /^0/ {
14568               s/^0  *\([^ ]*\) *$/\1/
14569               p
14570           }
14571       }'
14572   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14573   # Check for a 64-bit object if we didn't find anything.
14574   if test -z "$lt_cv_aix_libpath__CXX"; then
14575     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14576   fi
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext \
14579     conftest$ac_exeext conftest.$ac_ext
14580   if test -z "$lt_cv_aix_libpath__CXX"; then
14581     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14582   fi
14583
14584 fi
14585
14586   aix_libpath=$lt_cv_aix_libpath__CXX
14587 fi
14588
14589             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14590             # Warning - without using the other run time loading flags,
14591             # -berok will link without error, but may produce a broken library.
14592             no_undefined_flag_CXX=' $wl-bernotok'
14593             allow_undefined_flag_CXX=' $wl-berok'
14594             if test yes = "$with_gnu_ld"; then
14595               # We only use this code for GNU lds that support --whole-archive.
14596               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14597             else
14598               # Exported symbols can be pulled into shared objects from archives
14599               whole_archive_flag_spec_CXX='$convenience'
14600             fi
14601             archive_cmds_need_lc_CXX=yes
14602             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14603             # -brtl affects multiple linker settings, -berok does not and is overridden later
14604             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14605             if test svr4 != "$with_aix_soname"; then
14606               # This is similar to how AIX traditionally builds its shared
14607               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14608               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14609             fi
14610             if test aix != "$with_aix_soname"; then
14611               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14612             else
14613               # used by -dlpreopen to get the symbols
14614               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14615             fi
14616             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14617           fi
14618         fi
14619         ;;
14620
14621       beos*)
14622         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14623           allow_undefined_flag_CXX=unsupported
14624           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14625           # support --undefined.  This deserves some investigation.  FIXME
14626           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14627         else
14628           ld_shlibs_CXX=no
14629         fi
14630         ;;
14631
14632       chorus*)
14633         case $cc_basename in
14634           *)
14635           # FIXME: insert proper C++ library support
14636           ld_shlibs_CXX=no
14637           ;;
14638         esac
14639         ;;
14640
14641       cygwin* | mingw* | pw32* | cegcc*)
14642         case $GXX,$cc_basename in
14643         ,cl* | no,cl*)
14644           # Native MSVC
14645           # hardcode_libdir_flag_spec is actually meaningless, as there is
14646           # no search path for DLLs.
14647           hardcode_libdir_flag_spec_CXX=' '
14648           allow_undefined_flag_CXX=unsupported
14649           always_export_symbols_CXX=yes
14650           file_list_spec_CXX='@'
14651           # Tell ltmain to make .lib files, not .a files.
14652           libext=lib
14653           # Tell ltmain to make .dll files, not .so files.
14654           shrext_cmds=.dll
14655           # FIXME: Setting linknames here is a bad hack.
14656           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14657           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14658               cp "$export_symbols" "$output_objdir/$soname.def";
14659               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14660             else
14661               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14662             fi~
14663             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14664             linknames='
14665           # The linker will not automatically build a static lib if we build a DLL.
14666           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14667           enable_shared_with_static_runtimes_CXX=yes
14668           # Don't use ranlib
14669           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14670           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14671             lt_tool_outputfile="@TOOL_OUTPUT@"~
14672             case $lt_outputfile in
14673               *.exe|*.EXE) ;;
14674               *)
14675                 lt_outputfile=$lt_outputfile.exe
14676                 lt_tool_outputfile=$lt_tool_outputfile.exe
14677                 ;;
14678             esac~
14679             func_to_tool_file "$lt_outputfile"~
14680             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14681               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14682               $RM "$lt_outputfile.manifest";
14683             fi'
14684           ;;
14685         *)
14686           # g++
14687           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14688           # as there is no search path for DLLs.
14689           hardcode_libdir_flag_spec_CXX='-L$libdir'
14690           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14691           allow_undefined_flag_CXX=unsupported
14692           always_export_symbols_CXX=no
14693           enable_shared_with_static_runtimes_CXX=yes
14694
14695           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14696             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14697             # If the export-symbols file already is a .def file, use it as
14698             # is; otherwise, prepend EXPORTS...
14699             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14700               cp $export_symbols $output_objdir/$soname.def;
14701             else
14702               echo EXPORTS > $output_objdir/$soname.def;
14703               cat $export_symbols >> $output_objdir/$soname.def;
14704             fi~
14705             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14706           else
14707             ld_shlibs_CXX=no
14708           fi
14709           ;;
14710         esac
14711         ;;
14712       darwin* | rhapsody*)
14713
14714
14715   archive_cmds_need_lc_CXX=no
14716   hardcode_direct_CXX=no
14717   hardcode_automatic_CXX=yes
14718   hardcode_shlibpath_var_CXX=unsupported
14719   if test yes = "$lt_cv_ld_force_load"; then
14720     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14721
14722   else
14723     whole_archive_flag_spec_CXX=''
14724   fi
14725   link_all_deplibs_CXX=yes
14726   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14727   case $cc_basename in
14728      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14729      *) _lt_dar_can_shared=$GCC ;;
14730   esac
14731   if test yes = "$_lt_dar_can_shared"; then
14732     output_verbose_link_cmd=func_echo_all
14733     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14734     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14735     archive_expsym_cmds_CXX="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"
14736     module_expsym_cmds_CXX="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"
14737        if test yes != "$lt_cv_apple_cc_single_mod"; then
14738       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14739       archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14740     fi
14741
14742   else
14743   ld_shlibs_CXX=no
14744   fi
14745
14746         ;;
14747
14748       os2*)
14749         hardcode_libdir_flag_spec_CXX='-L$libdir'
14750         hardcode_minus_L_CXX=yes
14751         allow_undefined_flag_CXX=unsupported
14752         shrext_cmds=.dll
14753         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14754           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14755           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14756           $ECHO EXPORTS >> $output_objdir/$libname.def~
14757           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14758           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14759           emximp -o $lib $output_objdir/$libname.def'
14760         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14761           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14762           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14763           $ECHO EXPORTS >> $output_objdir/$libname.def~
14764           prefix_cmds="$SED"~
14765           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14766             prefix_cmds="$prefix_cmds -e 1d";
14767           fi~
14768           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14769           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14770           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14771           emximp -o $lib $output_objdir/$libname.def'
14772         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14773         enable_shared_with_static_runtimes_CXX=yes
14774         ;;
14775
14776       dgux*)
14777         case $cc_basename in
14778           ec++*)
14779             # FIXME: insert proper C++ library support
14780             ld_shlibs_CXX=no
14781             ;;
14782           ghcx*)
14783             # Green Hills C++ Compiler
14784             # FIXME: insert proper C++ library support
14785             ld_shlibs_CXX=no
14786             ;;
14787           *)
14788             # FIXME: insert proper C++ library support
14789             ld_shlibs_CXX=no
14790             ;;
14791         esac
14792         ;;
14793
14794       freebsd2.*)
14795         # C++ shared libraries reported to be fairly broken before
14796         # switch to ELF
14797         ld_shlibs_CXX=no
14798         ;;
14799
14800       freebsd-elf*)
14801         archive_cmds_need_lc_CXX=no
14802         ;;
14803
14804       freebsd* | dragonfly*)
14805         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14806         # conventions
14807         ld_shlibs_CXX=yes
14808         ;;
14809
14810       haiku*)
14811         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14812         link_all_deplibs_CXX=yes
14813         ;;
14814
14815       hpux9*)
14816         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14817         hardcode_libdir_separator_CXX=:
14818         export_dynamic_flag_spec_CXX='$wl-E'
14819         hardcode_direct_CXX=yes
14820         hardcode_minus_L_CXX=yes # Not in the search PATH,
14821                                              # but as the default
14822                                              # location of the library.
14823
14824         case $cc_basename in
14825           CC*)
14826             # FIXME: insert proper C++ library support
14827             ld_shlibs_CXX=no
14828             ;;
14829           aCC*)
14830             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14831             # Commands to make compiler produce verbose output that lists
14832             # what "hidden" libraries, object files and flags are used when
14833             # linking a shared library.
14834             #
14835             # There doesn't appear to be a way to prevent this compiler from
14836             # explicitly linking system object files so we need to strip them
14837             # from the output so that they don't get included in the library
14838             # dependencies.
14839             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14840             ;;
14841           *)
14842             if test yes = "$GXX"; then
14843               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14844             else
14845               # FIXME: insert proper C++ library support
14846               ld_shlibs_CXX=no
14847             fi
14848             ;;
14849         esac
14850         ;;
14851
14852       hpux10*|hpux11*)
14853         if test no = "$with_gnu_ld"; then
14854           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14855           hardcode_libdir_separator_CXX=:
14856
14857           case $host_cpu in
14858             hppa*64*|ia64*)
14859               ;;
14860             *)
14861               export_dynamic_flag_spec_CXX='$wl-E'
14862               ;;
14863           esac
14864         fi
14865         case $host_cpu in
14866           hppa*64*|ia64*)
14867             hardcode_direct_CXX=no
14868             hardcode_shlibpath_var_CXX=no
14869             ;;
14870           *)
14871             hardcode_direct_CXX=yes
14872             hardcode_direct_absolute_CXX=yes
14873             hardcode_minus_L_CXX=yes # Not in the search PATH,
14874                                                  # but as the default
14875                                                  # location of the library.
14876             ;;
14877         esac
14878
14879         case $cc_basename in
14880           CC*)
14881             # FIXME: insert proper C++ library support
14882             ld_shlibs_CXX=no
14883             ;;
14884           aCC*)
14885             case $host_cpu in
14886               hppa*64*)
14887                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14888                 ;;
14889               ia64*)
14890                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14891                 ;;
14892               *)
14893                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14894                 ;;
14895             esac
14896             # Commands to make compiler produce verbose output that lists
14897             # what "hidden" libraries, object files and flags are used when
14898             # linking a shared library.
14899             #
14900             # There doesn't appear to be a way to prevent this compiler from
14901             # explicitly linking system object files so we need to strip them
14902             # from the output so that they don't get included in the library
14903             # dependencies.
14904             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14905             ;;
14906           *)
14907             if test yes = "$GXX"; then
14908               if test no = "$with_gnu_ld"; then
14909                 case $host_cpu in
14910                   hppa*64*)
14911                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14912                     ;;
14913                   ia64*)
14914                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14915                     ;;
14916                   *)
14917                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14918                     ;;
14919                 esac
14920               fi
14921             else
14922               # FIXME: insert proper C++ library support
14923               ld_shlibs_CXX=no
14924             fi
14925             ;;
14926         esac
14927         ;;
14928
14929       interix[3-9]*)
14930         hardcode_direct_CXX=no
14931         hardcode_shlibpath_var_CXX=no
14932         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14933         export_dynamic_flag_spec_CXX='$wl-E'
14934         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14935         # Instead, shared libraries are loaded at an image base (0x10000000 by
14936         # default) and relocated if they conflict, which is a slow very memory
14937         # consuming and fragmenting process.  To avoid this, we pick a random,
14938         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14939         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14940         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14941         archive_expsym_cmds_CXX='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'
14942         ;;
14943       irix5* | irix6*)
14944         case $cc_basename in
14945           CC*)
14946             # SGI C++
14947             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14948
14949             # Archives containing C++ object files must be created using
14950             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14951             # necessary to make sure instantiated templates are included
14952             # in the archive.
14953             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14954             ;;
14955           *)
14956             if test yes = "$GXX"; then
14957               if test no = "$with_gnu_ld"; then
14958                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14959               else
14960                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14961               fi
14962             fi
14963             link_all_deplibs_CXX=yes
14964             ;;
14965         esac
14966         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14967         hardcode_libdir_separator_CXX=:
14968         inherit_rpath_CXX=yes
14969         ;;
14970
14971       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14972         case $cc_basename in
14973           KCC*)
14974             # Kuck and Associates, Inc. (KAI) C++ Compiler
14975
14976             # KCC will only create a shared library if the output file
14977             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14978             # to its proper name (with version) after linking.
14979             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14980             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14981             # Commands to make compiler produce verbose output that lists
14982             # what "hidden" libraries, object files and flags are used when
14983             # linking a shared library.
14984             #
14985             # There doesn't appear to be a way to prevent this compiler from
14986             # explicitly linking system object files so we need to strip them
14987             # from the output so that they don't get included in the library
14988             # dependencies.
14989             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14990
14991             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14992             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14993
14994             # Archives containing C++ object files must be created using
14995             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14996             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14997             ;;
14998           icpc* | ecpc* )
14999             # Intel C++
15000             with_gnu_ld=yes
15001             # version 8.0 and above of icpc choke on multiply defined symbols
15002             # if we add $predep_objects and $postdep_objects, however 7.1 and
15003             # earlier do not add the objects themselves.
15004             case `$CC -V 2>&1` in
15005               *"Version 7."*)
15006                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15007                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15008                 ;;
15009               *)  # Version 8.0 or newer
15010                 tmp_idyn=
15011                 case $host_cpu in
15012                   ia64*) tmp_idyn=' -i_dynamic';;
15013                 esac
15014                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15015                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15016                 ;;
15017             esac
15018             archive_cmds_need_lc_CXX=no
15019             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15020             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15021             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15022             ;;
15023           pgCC* | pgcpp*)
15024             # Portland Group C++ compiler
15025             case `$CC -V` in
15026             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15027               prelink_cmds_CXX='tpldir=Template.dir~
15028                rm -rf $tpldir~
15029                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15030                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15031               old_archive_cmds_CXX='tpldir=Template.dir~
15032                 rm -rf $tpldir~
15033                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15034                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15035                 $RANLIB $oldlib'
15036               archive_cmds_CXX='tpldir=Template.dir~
15037                 rm -rf $tpldir~
15038                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15039                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15040               archive_expsym_cmds_CXX='tpldir=Template.dir~
15041                 rm -rf $tpldir~
15042                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15043                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15044               ;;
15045             *) # Version 6 and above use weak symbols
15046               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15047               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15048               ;;
15049             esac
15050
15051             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15052             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15053             whole_archive_flag_spec_CXX='$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'
15054             ;;
15055           cxx*)
15056             # Compaq C++
15057             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15058             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
15059
15060             runpath_var=LD_RUN_PATH
15061             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15062             hardcode_libdir_separator_CXX=:
15063
15064             # Commands to make compiler produce verbose output that lists
15065             # what "hidden" libraries, object files and flags are used when
15066             # linking a shared library.
15067             #
15068             # There doesn't appear to be a way to prevent this compiler from
15069             # explicitly linking system object files so we need to strip them
15070             # from the output so that they don't get included in the library
15071             # dependencies.
15072             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15073             ;;
15074           xl* | mpixl* | bgxl*)
15075             # IBM XL 8.0 on PPC, with GNU ld
15076             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15077             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15078             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15079             if test yes = "$supports_anon_versioning"; then
15080               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15081                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15082                 echo "local: *; };" >> $output_objdir/$libname.ver~
15083                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15084             fi
15085             ;;
15086           *)
15087             case `$CC -V 2>&1 | sed 5q` in
15088             *Sun\ C*)
15089               # Sun C++ 5.9
15090               no_undefined_flag_CXX=' -zdefs'
15091               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15092               archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15093               hardcode_libdir_flag_spec_CXX='-R$libdir'
15094               whole_archive_flag_spec_CXX='$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'
15095               compiler_needs_object_CXX=yes
15096
15097               # Not sure whether something based on
15098               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15099               # would be better.
15100               output_verbose_link_cmd='func_echo_all'
15101
15102               # Archives containing C++ object files must be created using
15103               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15104               # necessary to make sure instantiated templates are included
15105               # in the archive.
15106               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15107               ;;
15108             esac
15109             ;;
15110         esac
15111         ;;
15112
15113       lynxos*)
15114         # FIXME: insert proper C++ library support
15115         ld_shlibs_CXX=no
15116         ;;
15117
15118       m88k*)
15119         # FIXME: insert proper C++ library support
15120         ld_shlibs_CXX=no
15121         ;;
15122
15123       mvs*)
15124         case $cc_basename in
15125           cxx*)
15126             # FIXME: insert proper C++ library support
15127             ld_shlibs_CXX=no
15128             ;;
15129           *)
15130             # FIXME: insert proper C++ library support
15131             ld_shlibs_CXX=no
15132             ;;
15133         esac
15134         ;;
15135
15136       netbsd*)
15137         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15139           wlarc=
15140           hardcode_libdir_flag_spec_CXX='-R$libdir'
15141           hardcode_direct_CXX=yes
15142           hardcode_shlibpath_var_CXX=no
15143         fi
15144         # Workaround some broken pre-1.5 toolchains
15145         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15146         ;;
15147
15148       *nto* | *qnx*)
15149         ld_shlibs_CXX=yes
15150         ;;
15151
15152       openbsd* | bitrig*)
15153         if test -f /usr/libexec/ld.so; then
15154           hardcode_direct_CXX=yes
15155           hardcode_shlibpath_var_CXX=no
15156           hardcode_direct_absolute_CXX=yes
15157           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15158           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15159           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15160             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15161             export_dynamic_flag_spec_CXX='$wl-E'
15162             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15163           fi
15164           output_verbose_link_cmd=func_echo_all
15165         else
15166           ld_shlibs_CXX=no
15167         fi
15168         ;;
15169
15170       osf3* | osf4* | osf5*)
15171         case $cc_basename in
15172           KCC*)
15173             # Kuck and Associates, Inc. (KAI) C++ Compiler
15174
15175             # KCC will only create a shared library if the output file
15176             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15177             # to its proper name (with version) after linking.
15178             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15179
15180             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15181             hardcode_libdir_separator_CXX=:
15182
15183             # Archives containing C++ object files must be created using
15184             # the KAI C++ compiler.
15185             case $host in
15186               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15187               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15188             esac
15189             ;;
15190           RCC*)
15191             # Rational C++ 2.4.1
15192             # FIXME: insert proper C++ library support
15193             ld_shlibs_CXX=no
15194             ;;
15195           cxx*)
15196             case $host in
15197               osf3*)
15198                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15199                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15200                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15201                 ;;
15202               *)
15203                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15204                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15205                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15206                   echo "-hidden">> $lib.exp~
15207                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15208                   $RM $lib.exp'
15209                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15210                 ;;
15211             esac
15212
15213             hardcode_libdir_separator_CXX=:
15214
15215             # Commands to make compiler produce verbose output that lists
15216             # what "hidden" libraries, object files and flags are used when
15217             # linking a shared library.
15218             #
15219             # There doesn't appear to be a way to prevent this compiler from
15220             # explicitly linking system object files so we need to strip them
15221             # from the output so that they don't get included in the library
15222             # dependencies.
15223             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15224             ;;
15225           *)
15226             if test yes,no = "$GXX,$with_gnu_ld"; then
15227               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15228               case $host in
15229                 osf3*)
15230                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15231                   ;;
15232                 *)
15233                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15234                   ;;
15235               esac
15236
15237               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15238               hardcode_libdir_separator_CXX=:
15239
15240               # Commands to make compiler produce verbose output that lists
15241               # what "hidden" libraries, object files and flags are used when
15242               # linking a shared library.
15243               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15244
15245             else
15246               # FIXME: insert proper C++ library support
15247               ld_shlibs_CXX=no
15248             fi
15249             ;;
15250         esac
15251         ;;
15252
15253       psos*)
15254         # FIXME: insert proper C++ library support
15255         ld_shlibs_CXX=no
15256         ;;
15257
15258       sunos4*)
15259         case $cc_basename in
15260           CC*)
15261             # Sun C++ 4.x
15262             # FIXME: insert proper C++ library support
15263             ld_shlibs_CXX=no
15264             ;;
15265           lcc*)
15266             # Lucid
15267             # FIXME: insert proper C++ library support
15268             ld_shlibs_CXX=no
15269             ;;
15270           *)
15271             # FIXME: insert proper C++ library support
15272             ld_shlibs_CXX=no
15273             ;;
15274         esac
15275         ;;
15276
15277       solaris*)
15278         case $cc_basename in
15279           CC* | sunCC*)
15280             # Sun C++ 4.2, 5.x and Centerline C++
15281             archive_cmds_need_lc_CXX=yes
15282             no_undefined_flag_CXX=' -zdefs'
15283             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15284             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15285               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15286
15287             hardcode_libdir_flag_spec_CXX='-R$libdir'
15288             hardcode_shlibpath_var_CXX=no
15289             case $host_os in
15290               solaris2.[0-5] | solaris2.[0-5].*) ;;
15291               *)
15292                 # The compiler driver will combine and reorder linker options,
15293                 # but understands '-z linker_flag'.
15294                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15295                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15296                 ;;
15297             esac
15298             link_all_deplibs_CXX=yes
15299
15300             output_verbose_link_cmd='func_echo_all'
15301
15302             # Archives containing C++ object files must be created using
15303             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15304             # necessary to make sure instantiated templates are included
15305             # in the archive.
15306             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15307             ;;
15308           gcx*)
15309             # Green Hills C++ Compiler
15310             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15311
15312             # The C++ compiler must be used to create the archive.
15313             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15314             ;;
15315           *)
15316             # GNU C++ compiler with Solaris linker
15317             if test yes,no = "$GXX,$with_gnu_ld"; then
15318               no_undefined_flag_CXX=' $wl-z ${wl}defs'
15319               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15320                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15321                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15322                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15323
15324                 # Commands to make compiler produce verbose output that lists
15325                 # what "hidden" libraries, object files and flags are used when
15326                 # linking a shared library.
15327                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15328               else
15329                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15330                 # platform.
15331                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15332                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15333                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15334
15335                 # Commands to make compiler produce verbose output that lists
15336                 # what "hidden" libraries, object files and flags are used when
15337                 # linking a shared library.
15338                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15339               fi
15340
15341               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15342               case $host_os in
15343                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15344                 *)
15345                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15346                   ;;
15347               esac
15348             fi
15349             ;;
15350         esac
15351         ;;
15352
15353     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15354       no_undefined_flag_CXX='$wl-z,text'
15355       archive_cmds_need_lc_CXX=no
15356       hardcode_shlibpath_var_CXX=no
15357       runpath_var='LD_RUN_PATH'
15358
15359       case $cc_basename in
15360         CC*)
15361           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15363           ;;
15364         *)
15365           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15366           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15367           ;;
15368       esac
15369       ;;
15370
15371       sysv5* | sco3.2v5* | sco5v6*)
15372         # Note: We CANNOT use -z defs as we might desire, because we do not
15373         # link with -lc, and that would cause any symbols used from libc to
15374         # always be unresolved, which means just about no library would
15375         # ever link correctly.  If we're not using GNU ld we use -z text
15376         # though, which does catch some bad symbols but isn't as heavy-handed
15377         # as -z defs.
15378         no_undefined_flag_CXX='$wl-z,text'
15379         allow_undefined_flag_CXX='$wl-z,nodefs'
15380         archive_cmds_need_lc_CXX=no
15381         hardcode_shlibpath_var_CXX=no
15382         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15383         hardcode_libdir_separator_CXX=':'
15384         link_all_deplibs_CXX=yes
15385         export_dynamic_flag_spec_CXX='$wl-Bexport'
15386         runpath_var='LD_RUN_PATH'
15387
15388         case $cc_basename in
15389           CC*)
15390             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15391             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15392             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15393               '"$old_archive_cmds_CXX"
15394             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15395               '"$reload_cmds_CXX"
15396             ;;
15397           *)
15398             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15399             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15400             ;;
15401         esac
15402       ;;
15403
15404       tandem*)
15405         case $cc_basename in
15406           NCC*)
15407             # NonStop-UX NCC 3.20
15408             # FIXME: insert proper C++ library support
15409             ld_shlibs_CXX=no
15410             ;;
15411           *)
15412             # FIXME: insert proper C++ library support
15413             ld_shlibs_CXX=no
15414             ;;
15415         esac
15416         ;;
15417
15418       vxworks*)
15419         # FIXME: insert proper C++ library support
15420         ld_shlibs_CXX=no
15421         ;;
15422
15423       *)
15424         # FIXME: insert proper C++ library support
15425         ld_shlibs_CXX=no
15426         ;;
15427     esac
15428
15429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15430 $as_echo "$ld_shlibs_CXX" >&6; }
15431     test no = "$ld_shlibs_CXX" && can_build_shared=no
15432
15433     GCC_CXX=$GXX
15434     LD_CXX=$LD
15435
15436     ## CAVEAT EMPTOR:
15437     ## There is no encapsulation within the following macros, do not change
15438     ## the running order or otherwise move them around unless you know exactly
15439     ## what you are doing...
15440     # Dependencies to place before and after the object being linked:
15441 predep_objects_CXX=
15442 postdep_objects_CXX=
15443 predeps_CXX=
15444 postdeps_CXX=
15445 compiler_lib_search_path_CXX=
15446
15447 cat > conftest.$ac_ext <<_LT_EOF
15448 class Foo
15449 {
15450 public:
15451   Foo (void) { a = 0; }
15452 private:
15453   int a;
15454 };
15455 _LT_EOF
15456
15457
15458 _lt_libdeps_save_CFLAGS=$CFLAGS
15459 case "$CC $CFLAGS " in #(
15460 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15461 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15462 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15463 esac
15464
15465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15466   (eval $ac_compile) 2>&5
15467   ac_status=$?
15468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469   test $ac_status = 0; }; then
15470   # Parse the compiler output and extract the necessary
15471   # objects, libraries and library flags.
15472
15473   # Sentinel used to keep track of whether or not we are before
15474   # the conftest object file.
15475   pre_test_object_deps_done=no
15476
15477   for p in `eval "$output_verbose_link_cmd"`; do
15478     case $prev$p in
15479
15480     -L* | -R* | -l*)
15481        # Some compilers place space between "-{L,R}" and the path.
15482        # Remove the space.
15483        if test x-L = "$p" ||
15484           test x-R = "$p"; then
15485          prev=$p
15486          continue
15487        fi
15488
15489        # Expand the sysroot to ease extracting the directories later.
15490        if test -z "$prev"; then
15491          case $p in
15492          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15493          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15494          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15495          esac
15496        fi
15497        case $p in
15498        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15499        esac
15500        if test no = "$pre_test_object_deps_done"; then
15501          case $prev in
15502          -L | -R)
15503            # Internal compiler library paths should come after those
15504            # provided the user.  The postdeps already come after the
15505            # user supplied libs so there is no need to process them.
15506            if test -z "$compiler_lib_search_path_CXX"; then
15507              compiler_lib_search_path_CXX=$prev$p
15508            else
15509              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15510            fi
15511            ;;
15512          # The "-l" case would never come before the object being
15513          # linked, so don't bother handling this case.
15514          esac
15515        else
15516          if test -z "$postdeps_CXX"; then
15517            postdeps_CXX=$prev$p
15518          else
15519            postdeps_CXX="${postdeps_CXX} $prev$p"
15520          fi
15521        fi
15522        prev=
15523        ;;
15524
15525     *.lto.$objext) ;; # Ignore GCC LTO objects
15526     *.$objext)
15527        # This assumes that the test object file only shows up
15528        # once in the compiler output.
15529        if test "$p" = "conftest.$objext"; then
15530          pre_test_object_deps_done=yes
15531          continue
15532        fi
15533
15534        if test no = "$pre_test_object_deps_done"; then
15535          if test -z "$predep_objects_CXX"; then
15536            predep_objects_CXX=$p
15537          else
15538            predep_objects_CXX="$predep_objects_CXX $p"
15539          fi
15540        else
15541          if test -z "$postdep_objects_CXX"; then
15542            postdep_objects_CXX=$p
15543          else
15544            postdep_objects_CXX="$postdep_objects_CXX $p"
15545          fi
15546        fi
15547        ;;
15548
15549     *) ;; # Ignore the rest.
15550
15551     esac
15552   done
15553
15554   # Clean up.
15555   rm -f a.out a.exe
15556 else
15557   echo "libtool.m4: error: problem compiling CXX test program"
15558 fi
15559
15560 $RM -f confest.$objext
15561 CFLAGS=$_lt_libdeps_save_CFLAGS
15562
15563 # PORTME: override above test on systems where it is broken
15564 case $host_os in
15565 interix[3-9]*)
15566   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15567   # hack all around it, let's just trust "g++" to DTRT.
15568   predep_objects_CXX=
15569   postdep_objects_CXX=
15570   postdeps_CXX=
15571   ;;
15572 esac
15573
15574
15575 case " $postdeps_CXX " in
15576 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15577 esac
15578  compiler_lib_search_dirs_CXX=
15579 if test -n "${compiler_lib_search_path_CXX}"; then
15580  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15581 fi
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613     lt_prog_compiler_wl_CXX=
15614 lt_prog_compiler_pic_CXX=
15615 lt_prog_compiler_static_CXX=
15616
15617
15618   # C++ specific cases for pic, static, wl, etc.
15619   if test yes = "$GXX"; then
15620     lt_prog_compiler_wl_CXX='-Wl,'
15621     lt_prog_compiler_static_CXX='-static'
15622
15623     case $host_os in
15624     aix*)
15625       # All AIX code is PIC.
15626       if test ia64 = "$host_cpu"; then
15627         # AIX 5 now supports IA64 processor
15628         lt_prog_compiler_static_CXX='-Bstatic'
15629       fi
15630       lt_prog_compiler_pic_CXX='-fPIC'
15631       ;;
15632
15633     amigaos*)
15634       case $host_cpu in
15635       powerpc)
15636             # see comment about AmigaOS4 .so support
15637             lt_prog_compiler_pic_CXX='-fPIC'
15638         ;;
15639       m68k)
15640             # FIXME: we need at least 68020 code to build shared libraries, but
15641             # adding the '-m68020' flag to GCC prevents building anything better,
15642             # like '-m68040'.
15643             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15644         ;;
15645       esac
15646       ;;
15647
15648     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15649       # PIC is the default for these OSes.
15650       ;;
15651     mingw* | cygwin* | os2* | pw32* | cegcc*)
15652       # This hack is so that the source file can tell whether it is being
15653       # built for inclusion in a dll (and should export symbols for example).
15654       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15655       # (--disable-auto-import) libraries
15656       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15657       case $host_os in
15658       os2*)
15659         lt_prog_compiler_static_CXX='$wl-static'
15660         ;;
15661       esac
15662       ;;
15663     darwin* | rhapsody*)
15664       # PIC is the default on this platform
15665       # Common symbols not allowed in MH_DYLIB files
15666       lt_prog_compiler_pic_CXX='-fno-common'
15667       ;;
15668     *djgpp*)
15669       # DJGPP does not support shared libraries at all
15670       lt_prog_compiler_pic_CXX=
15671       ;;
15672     haiku*)
15673       # PIC is the default for Haiku.
15674       # The "-static" flag exists, but is broken.
15675       lt_prog_compiler_static_CXX=
15676       ;;
15677     interix[3-9]*)
15678       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15679       # Instead, we relocate shared libraries at runtime.
15680       ;;
15681     sysv4*MP*)
15682       if test -d /usr/nec; then
15683         lt_prog_compiler_pic_CXX=-Kconform_pic
15684       fi
15685       ;;
15686     hpux*)
15687       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15688       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15689       # sets the default TLS model and affects inlining.
15690       case $host_cpu in
15691       hppa*64*)
15692         ;;
15693       *)
15694         lt_prog_compiler_pic_CXX='-fPIC'
15695         ;;
15696       esac
15697       ;;
15698     *qnx* | *nto*)
15699       # QNX uses GNU C++, but need to define -shared option too, otherwise
15700       # it will coredump.
15701       lt_prog_compiler_pic_CXX='-fPIC -shared'
15702       ;;
15703     *)
15704       lt_prog_compiler_pic_CXX='-fPIC'
15705       ;;
15706     esac
15707   else
15708     case $host_os in
15709       aix[4-9]*)
15710         # All AIX code is PIC.
15711         if test ia64 = "$host_cpu"; then
15712           # AIX 5 now supports IA64 processor
15713           lt_prog_compiler_static_CXX='-Bstatic'
15714         else
15715           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15716         fi
15717         ;;
15718       chorus*)
15719         case $cc_basename in
15720         cxch68*)
15721           # Green Hills C++ Compiler
15722           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15723           ;;
15724         esac
15725         ;;
15726       mingw* | cygwin* | os2* | pw32* | cegcc*)
15727         # This hack is so that the source file can tell whether it is being
15728         # built for inclusion in a dll (and should export symbols for example).
15729         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15730         ;;
15731       dgux*)
15732         case $cc_basename in
15733           ec++*)
15734             lt_prog_compiler_pic_CXX='-KPIC'
15735             ;;
15736           ghcx*)
15737             # Green Hills C++ Compiler
15738             lt_prog_compiler_pic_CXX='-pic'
15739             ;;
15740           *)
15741             ;;
15742         esac
15743         ;;
15744       freebsd* | dragonfly*)
15745         # FreeBSD uses GNU C++
15746         ;;
15747       hpux9* | hpux10* | hpux11*)
15748         case $cc_basename in
15749           CC*)
15750             lt_prog_compiler_wl_CXX='-Wl,'
15751             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15752             if test ia64 != "$host_cpu"; then
15753               lt_prog_compiler_pic_CXX='+Z'
15754             fi
15755             ;;
15756           aCC*)
15757             lt_prog_compiler_wl_CXX='-Wl,'
15758             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15759             case $host_cpu in
15760             hppa*64*|ia64*)
15761               # +Z the default
15762               ;;
15763             *)
15764               lt_prog_compiler_pic_CXX='+Z'
15765               ;;
15766             esac
15767             ;;
15768           *)
15769             ;;
15770         esac
15771         ;;
15772       interix*)
15773         # This is c89, which is MS Visual C++ (no shared libs)
15774         # Anyone wants to do a port?
15775         ;;
15776       irix5* | irix6* | nonstopux*)
15777         case $cc_basename in
15778           CC*)
15779             lt_prog_compiler_wl_CXX='-Wl,'
15780             lt_prog_compiler_static_CXX='-non_shared'
15781             # CC pic flag -KPIC is the default.
15782             ;;
15783           *)
15784             ;;
15785         esac
15786         ;;
15787       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15788         case $cc_basename in
15789           KCC*)
15790             # KAI C++ Compiler
15791             lt_prog_compiler_wl_CXX='--backend -Wl,'
15792             lt_prog_compiler_pic_CXX='-fPIC'
15793             ;;
15794           ecpc* )
15795             # old Intel C++ for x86_64, which still supported -KPIC.
15796             lt_prog_compiler_wl_CXX='-Wl,'
15797             lt_prog_compiler_pic_CXX='-KPIC'
15798             lt_prog_compiler_static_CXX='-static'
15799             ;;
15800           icpc* )
15801             # Intel C++, used to be incompatible with GCC.
15802             # ICC 10 doesn't accept -KPIC any more.
15803             lt_prog_compiler_wl_CXX='-Wl,'
15804             lt_prog_compiler_pic_CXX='-fPIC'
15805             lt_prog_compiler_static_CXX='-static'
15806             ;;
15807           pgCC* | pgcpp*)
15808             # Portland Group C++ compiler
15809             lt_prog_compiler_wl_CXX='-Wl,'
15810             lt_prog_compiler_pic_CXX='-fpic'
15811             lt_prog_compiler_static_CXX='-Bstatic'
15812             ;;
15813           cxx*)
15814             # Compaq C++
15815             # Make sure the PIC flag is empty.  It appears that all Alpha
15816             # Linux and Compaq Tru64 Unix objects are PIC.
15817             lt_prog_compiler_pic_CXX=
15818             lt_prog_compiler_static_CXX='-non_shared'
15819             ;;
15820           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15821             # IBM XL 8.0, 9.0 on PPC and BlueGene
15822             lt_prog_compiler_wl_CXX='-Wl,'
15823             lt_prog_compiler_pic_CXX='-qpic'
15824             lt_prog_compiler_static_CXX='-qstaticlink'
15825             ;;
15826           *)
15827             case `$CC -V 2>&1 | sed 5q` in
15828             *Sun\ C*)
15829               # Sun C++ 5.9
15830               lt_prog_compiler_pic_CXX='-KPIC'
15831               lt_prog_compiler_static_CXX='-Bstatic'
15832               lt_prog_compiler_wl_CXX='-Qoption ld '
15833               ;;
15834             esac
15835             ;;
15836         esac
15837         ;;
15838       lynxos*)
15839         ;;
15840       m88k*)
15841         ;;
15842       mvs*)
15843         case $cc_basename in
15844           cxx*)
15845             lt_prog_compiler_pic_CXX='-W c,exportall'
15846             ;;
15847           *)
15848             ;;
15849         esac
15850         ;;
15851       netbsd* | netbsdelf*-gnu)
15852         ;;
15853       *qnx* | *nto*)
15854         # QNX uses GNU C++, but need to define -shared option too, otherwise
15855         # it will coredump.
15856         lt_prog_compiler_pic_CXX='-fPIC -shared'
15857         ;;
15858       osf3* | osf4* | osf5*)
15859         case $cc_basename in
15860           KCC*)
15861             lt_prog_compiler_wl_CXX='--backend -Wl,'
15862             ;;
15863           RCC*)
15864             # Rational C++ 2.4.1
15865             lt_prog_compiler_pic_CXX='-pic'
15866             ;;
15867           cxx*)
15868             # Digital/Compaq C++
15869             lt_prog_compiler_wl_CXX='-Wl,'
15870             # Make sure the PIC flag is empty.  It appears that all Alpha
15871             # Linux and Compaq Tru64 Unix objects are PIC.
15872             lt_prog_compiler_pic_CXX=
15873             lt_prog_compiler_static_CXX='-non_shared'
15874             ;;
15875           *)
15876             ;;
15877         esac
15878         ;;
15879       psos*)
15880         ;;
15881       solaris*)
15882         case $cc_basename in
15883           CC* | sunCC*)
15884             # Sun C++ 4.2, 5.x and Centerline C++
15885             lt_prog_compiler_pic_CXX='-KPIC'
15886             lt_prog_compiler_static_CXX='-Bstatic'
15887             lt_prog_compiler_wl_CXX='-Qoption ld '
15888             ;;
15889           gcx*)
15890             # Green Hills C++ Compiler
15891             lt_prog_compiler_pic_CXX='-PIC'
15892             ;;
15893           *)
15894             ;;
15895         esac
15896         ;;
15897       sunos4*)
15898         case $cc_basename in
15899           CC*)
15900             # Sun C++ 4.x
15901             lt_prog_compiler_pic_CXX='-pic'
15902             lt_prog_compiler_static_CXX='-Bstatic'
15903             ;;
15904           lcc*)
15905             # Lucid
15906             lt_prog_compiler_pic_CXX='-pic'
15907             ;;
15908           *)
15909             ;;
15910         esac
15911         ;;
15912       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15913         case $cc_basename in
15914           CC*)
15915             lt_prog_compiler_wl_CXX='-Wl,'
15916             lt_prog_compiler_pic_CXX='-KPIC'
15917             lt_prog_compiler_static_CXX='-Bstatic'
15918             ;;
15919         esac
15920         ;;
15921       tandem*)
15922         case $cc_basename in
15923           NCC*)
15924             # NonStop-UX NCC 3.20
15925             lt_prog_compiler_pic_CXX='-KPIC'
15926             ;;
15927           *)
15928             ;;
15929         esac
15930         ;;
15931       vxworks*)
15932         ;;
15933       *)
15934         lt_prog_compiler_can_build_shared_CXX=no
15935         ;;
15936     esac
15937   fi
15938
15939 case $host_os in
15940   # For platforms that do not support PIC, -DPIC is meaningless:
15941   *djgpp*)
15942     lt_prog_compiler_pic_CXX=
15943     ;;
15944   *)
15945     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15946     ;;
15947 esac
15948
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15951 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15952   $as_echo_n "(cached) " >&6
15953 else
15954   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15955 fi
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15957 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15958 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15959
15960 #
15961 # Check to make sure the PIC flag actually works.
15962 #
15963 if test -n "$lt_prog_compiler_pic_CXX"; then
15964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15966 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15967   $as_echo_n "(cached) " >&6
15968 else
15969   lt_cv_prog_compiler_pic_works_CXX=no
15970    ac_outfile=conftest.$ac_objext
15971    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15972    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15973    # Insert the option either (1) after the last *FLAGS variable, or
15974    # (2) before a word containing "conftest.", or (3) at the end.
15975    # Note that $ac_compile itself does not contain backslashes and begins
15976    # with a dollar sign (not a hyphen), so the echo should work correctly.
15977    # The option is referenced via a variable to avoid confusing sed.
15978    lt_compile=`echo "$ac_compile" | $SED \
15979    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15981    -e 's:$: $lt_compiler_flag:'`
15982    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15983    (eval "$lt_compile" 2>conftest.err)
15984    ac_status=$?
15985    cat conftest.err >&5
15986    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987    if (exit $ac_status) && test -s "$ac_outfile"; then
15988      # The compiler can only warn and ignore the option if not recognized
15989      # So say no if there are warnings other than the usual output.
15990      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15991      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15992      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15993        lt_cv_prog_compiler_pic_works_CXX=yes
15994      fi
15995    fi
15996    $RM conftest*
15997
15998 fi
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16000 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16001
16002 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16003     case $lt_prog_compiler_pic_CXX in
16004      "" | " "*) ;;
16005      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16006      esac
16007 else
16008     lt_prog_compiler_pic_CXX=
16009      lt_prog_compiler_can_build_shared_CXX=no
16010 fi
16011
16012 fi
16013
16014
16015
16016
16017
16018 #
16019 # Check to make sure the static flag actually works.
16020 #
16021 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16024 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16025   $as_echo_n "(cached) " >&6
16026 else
16027   lt_cv_prog_compiler_static_works_CXX=no
16028    save_LDFLAGS=$LDFLAGS
16029    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16030    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16031    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16032      # The linker can only warn and ignore the option if not recognized
16033      # So say no if there are warnings
16034      if test -s conftest.err; then
16035        # Append any errors to the config.log.
16036        cat conftest.err 1>&5
16037        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16038        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16039        if diff conftest.exp conftest.er2 >/dev/null; then
16040          lt_cv_prog_compiler_static_works_CXX=yes
16041        fi
16042      else
16043        lt_cv_prog_compiler_static_works_CXX=yes
16044      fi
16045    fi
16046    $RM -r conftest*
16047    LDFLAGS=$save_LDFLAGS
16048
16049 fi
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16051 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16052
16053 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16054     :
16055 else
16056     lt_prog_compiler_static_CXX=
16057 fi
16058
16059
16060
16061
16062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16064 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   lt_cv_prog_compiler_c_o_CXX=no
16068    $RM -r conftest 2>/dev/null
16069    mkdir conftest
16070    cd conftest
16071    mkdir out
16072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16073
16074    lt_compiler_flag="-o out/conftest2.$ac_objext"
16075    # Insert the option either (1) after the last *FLAGS variable, or
16076    # (2) before a word containing "conftest.", or (3) at the end.
16077    # Note that $ac_compile itself does not contain backslashes and begins
16078    # with a dollar sign (not a hyphen), so the echo should work correctly.
16079    lt_compile=`echo "$ac_compile" | $SED \
16080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16082    -e 's:$: $lt_compiler_flag:'`
16083    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16084    (eval "$lt_compile" 2>out/conftest.err)
16085    ac_status=$?
16086    cat out/conftest.err >&5
16087    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16089    then
16090      # The compiler can only warn and ignore the option if not recognized
16091      # So say no if there are warnings
16092      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16093      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16094      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16095        lt_cv_prog_compiler_c_o_CXX=yes
16096      fi
16097    fi
16098    chmod u+w . 2>&5
16099    $RM conftest*
16100    # SGI C++ compiler will create directory out/ii_files/ for
16101    # template instantiation
16102    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16103    $RM out/* && rmdir out
16104    cd ..
16105    $RM -r conftest
16106    $RM conftest*
16107
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16110 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16111
16112
16113
16114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16116 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   lt_cv_prog_compiler_c_o_CXX=no
16120    $RM -r conftest 2>/dev/null
16121    mkdir conftest
16122    cd conftest
16123    mkdir out
16124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16125
16126    lt_compiler_flag="-o out/conftest2.$ac_objext"
16127    # Insert the option either (1) after the last *FLAGS variable, or
16128    # (2) before a word containing "conftest.", or (3) at the end.
16129    # Note that $ac_compile itself does not contain backslashes and begins
16130    # with a dollar sign (not a hyphen), so the echo should work correctly.
16131    lt_compile=`echo "$ac_compile" | $SED \
16132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16134    -e 's:$: $lt_compiler_flag:'`
16135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16136    (eval "$lt_compile" 2>out/conftest.err)
16137    ac_status=$?
16138    cat out/conftest.err >&5
16139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16141    then
16142      # The compiler can only warn and ignore the option if not recognized
16143      # So say no if there are warnings
16144      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16145      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16146      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16147        lt_cv_prog_compiler_c_o_CXX=yes
16148      fi
16149    fi
16150    chmod u+w . 2>&5
16151    $RM conftest*
16152    # SGI C++ compiler will create directory out/ii_files/ for
16153    # template instantiation
16154    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16155    $RM out/* && rmdir out
16156    cd ..
16157    $RM -r conftest
16158    $RM conftest*
16159
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16162 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16163
16164
16165
16166
16167 hard_links=nottested
16168 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16169   # do not overwrite the value of need_locks provided by the user
16170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16171 $as_echo_n "checking if we can lock with hard links... " >&6; }
16172   hard_links=yes
16173   $RM conftest*
16174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16175   touch conftest.a
16176   ln conftest.a conftest.b 2>&5 || hard_links=no
16177   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16179 $as_echo "$hard_links" >&6; }
16180   if test no = "$hard_links"; then
16181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16182 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16183     need_locks=warn
16184   fi
16185 else
16186   need_locks=no
16187 fi
16188
16189
16190
16191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16193
16194   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16195   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16196   case $host_os in
16197   aix[4-9]*)
16198     # If we're using GNU nm, then we don't want the "-C" option.
16199     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16200     # Without the "-l" option, or with the "-B" option, AIX nm treats
16201     # weak defined symbols like other global defined symbols, whereas
16202     # GNU nm marks them as "W".
16203     # While the 'weak' keyword is ignored in the Export File, we need
16204     # it in the Import File for the 'aix-soname' feature, so we have
16205     # to replace the "-B" option with "-P" for AIX nm.
16206     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16207       export_symbols_cmds_CXX='$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'
16208     else
16209       export_symbols_cmds_CXX='`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'
16210     fi
16211     ;;
16212   pw32*)
16213     export_symbols_cmds_CXX=$ltdll_cmds
16214     ;;
16215   cygwin* | mingw* | cegcc*)
16216     case $cc_basename in
16217     cl*)
16218       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16219       ;;
16220     *)
16221       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16222       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16223       ;;
16224     esac
16225     ;;
16226   linux* | k*bsd*-gnu | gnu*)
16227     link_all_deplibs_CXX=no
16228     ;;
16229   *)
16230     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16231     ;;
16232   esac
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16235 $as_echo "$ld_shlibs_CXX" >&6; }
16236 test no = "$ld_shlibs_CXX" && can_build_shared=no
16237
16238 with_gnu_ld_CXX=$with_gnu_ld
16239
16240
16241
16242
16243
16244
16245 #
16246 # Do we need to explicitly link libc?
16247 #
16248 case "x$archive_cmds_need_lc_CXX" in
16249 x|xyes)
16250   # Assume -lc should be added
16251   archive_cmds_need_lc_CXX=yes
16252
16253   if test yes,yes = "$GCC,$enable_shared"; then
16254     case $archive_cmds_CXX in
16255     *'~'*)
16256       # FIXME: we may have to deal with multi-command sequences.
16257       ;;
16258     '$CC '*)
16259       # Test whether the compiler implicitly links with -lc since on some
16260       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16261       # to ld, don't add -lc before -lgcc.
16262       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16263 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16264 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16265   $as_echo_n "(cached) " >&6
16266 else
16267   $RM conftest*
16268         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16269
16270         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16271   (eval $ac_compile) 2>&5
16272   ac_status=$?
16273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274   test $ac_status = 0; } 2>conftest.err; then
16275           soname=conftest
16276           lib=conftest
16277           libobjs=conftest.$ac_objext
16278           deplibs=
16279           wl=$lt_prog_compiler_wl_CXX
16280           pic_flag=$lt_prog_compiler_pic_CXX
16281           compiler_flags=-v
16282           linker_flags=-v
16283           verstring=
16284           output_objdir=.
16285           libname=conftest
16286           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16287           allow_undefined_flag_CXX=
16288           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16289   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16290   ac_status=$?
16291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292   test $ac_status = 0; }
16293           then
16294             lt_cv_archive_cmds_need_lc_CXX=no
16295           else
16296             lt_cv_archive_cmds_need_lc_CXX=yes
16297           fi
16298           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16299         else
16300           cat conftest.err 1>&5
16301         fi
16302         $RM conftest*
16303
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16306 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16307       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16308       ;;
16309     esac
16310   fi
16311   ;;
16312 esac
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16377
16378 library_names_spec=
16379 libname_spec='lib$name'
16380 soname_spec=
16381 shrext_cmds=.so
16382 postinstall_cmds=
16383 postuninstall_cmds=
16384 finish_cmds=
16385 finish_eval=
16386 shlibpath_var=
16387 shlibpath_overrides_runpath=unknown
16388 version_type=none
16389 dynamic_linker="$host_os ld.so"
16390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16391 need_lib_prefix=unknown
16392 hardcode_into_libs=no
16393
16394 # when you set need_version to no, make sure it does not cause -set_version
16395 # flags to be left without arguments
16396 need_version=unknown
16397
16398
16399
16400 case $host_os in
16401 aix3*)
16402   version_type=linux # correct to gnu/linux during the next big refactor
16403   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16404   shlibpath_var=LIBPATH
16405
16406   # AIX 3 has no versioning support, so we append a major version to the name.
16407   soname_spec='$libname$release$shared_ext$major'
16408   ;;
16409
16410 aix[4-9]*)
16411   version_type=linux # correct to gnu/linux during the next big refactor
16412   need_lib_prefix=no
16413   need_version=no
16414   hardcode_into_libs=yes
16415   if test ia64 = "$host_cpu"; then
16416     # AIX 5 supports IA64
16417     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16418     shlibpath_var=LD_LIBRARY_PATH
16419   else
16420     # With GCC up to 2.95.x, collect2 would create an import file
16421     # for dependence libraries.  The import file would start with
16422     # the line '#! .'.  This would cause the generated library to
16423     # depend on '.', always an invalid library.  This was fixed in
16424     # development snapshots of GCC prior to 3.0.
16425     case $host_os in
16426       aix4 | aix4.[01] | aix4.[01].*)
16427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16428            echo ' yes '
16429            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16430         :
16431       else
16432         can_build_shared=no
16433       fi
16434       ;;
16435     esac
16436     # Using Import Files as archive members, it is possible to support
16437     # filename-based versioning of shared library archives on AIX. While
16438     # this would work for both with and without runtime linking, it will
16439     # prevent static linking of such archives. So we do filename-based
16440     # shared library versioning with .so extension only, which is used
16441     # when both runtime linking and shared linking is enabled.
16442     # Unfortunately, runtime linking may impact performance, so we do
16443     # not want this to be the default eventually. Also, we use the
16444     # versioned .so libs for executables only if there is the -brtl
16445     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16446     # To allow for filename-based versioning support, we need to create
16447     # libNAME.so.V as an archive file, containing:
16448     # *) an Import File, referring to the versioned filename of the
16449     #    archive as well as the shared archive member, telling the
16450     #    bitwidth (32 or 64) of that shared object, and providing the
16451     #    list of exported symbols of that shared object, eventually
16452     #    decorated with the 'weak' keyword
16453     # *) the shared object with the F_LOADONLY flag set, to really avoid
16454     #    it being seen by the linker.
16455     # At run time we better use the real file rather than another symlink,
16456     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16457
16458     case $with_aix_soname,$aix_use_runtimelinking in
16459     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16460     # soname into executable. Probably we can add versioning support to
16461     # collect2, so additional links can be useful in future.
16462     aix,yes) # traditional libtool
16463       dynamic_linker='AIX unversionable lib.so'
16464       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16465       # instead of lib<name>.a to let people know that these are not
16466       # typical AIX shared libraries.
16467       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16468       ;;
16469     aix,no) # traditional AIX only
16470       dynamic_linker='AIX lib.a(lib.so.V)'
16471       # We preserve .a as extension for shared libraries through AIX4.2
16472       # and later when we are not doing run time linking.
16473       library_names_spec='$libname$release.a $libname.a'
16474       soname_spec='$libname$release$shared_ext$major'
16475       ;;
16476     svr4,*) # full svr4 only
16477       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16478       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16479       # We do not specify a path in Import Files, so LIBPATH fires.
16480       shlibpath_overrides_runpath=yes
16481       ;;
16482     *,yes) # both, prefer svr4
16483       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16484       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16485       # unpreferred sharedlib libNAME.a needs extra handling
16486       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"'
16487       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"'
16488       # We do not specify a path in Import Files, so LIBPATH fires.
16489       shlibpath_overrides_runpath=yes
16490       ;;
16491     *,no) # both, prefer aix
16492       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16493       library_names_spec='$libname$release.a $libname.a'
16494       soname_spec='$libname$release$shared_ext$major'
16495       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16496       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)'
16497       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"'
16498       ;;
16499     esac
16500     shlibpath_var=LIBPATH
16501   fi
16502   ;;
16503
16504 amigaos*)
16505   case $host_cpu in
16506   powerpc)
16507     # Since July 2007 AmigaOS4 officially supports .so libraries.
16508     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16509     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16510     ;;
16511   m68k)
16512     library_names_spec='$libname.ixlibrary $libname.a'
16513     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16514     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'
16515     ;;
16516   esac
16517   ;;
16518
16519 beos*)
16520   library_names_spec='$libname$shared_ext'
16521   dynamic_linker="$host_os ld.so"
16522   shlibpath_var=LIBRARY_PATH
16523   ;;
16524
16525 bsdi[45]*)
16526   version_type=linux # correct to gnu/linux during the next big refactor
16527   need_version=no
16528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16529   soname_spec='$libname$release$shared_ext$major'
16530   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16531   shlibpath_var=LD_LIBRARY_PATH
16532   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16533   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16534   # the default ld.so.conf also contains /usr/contrib/lib and
16535   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16536   # libtool to hard-code these into programs
16537   ;;
16538
16539 cygwin* | mingw* | pw32* | cegcc*)
16540   version_type=windows
16541   shrext_cmds=.dll
16542   need_version=no
16543   need_lib_prefix=no
16544
16545   case $GCC,$cc_basename in
16546   yes,*)
16547     # gcc
16548     library_names_spec='$libname.dll.a'
16549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16550     postinstall_cmds='base_file=`basename \$file`~
16551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16552       dldir=$destdir/`dirname \$dlpath`~
16553       test -d \$dldir || mkdir -p \$dldir~
16554       $install_prog $dir/$dlname \$dldir/$dlname~
16555       chmod a+x \$dldir/$dlname~
16556       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16557         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16558       fi'
16559     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16560       dlpath=$dir/\$dldll~
16561        $RM \$dlpath'
16562     shlibpath_overrides_runpath=yes
16563
16564     case $host_os in
16565     cygwin*)
16566       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16567       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16568
16569       ;;
16570     mingw* | cegcc*)
16571       # MinGW DLLs use traditional 'lib' prefix
16572       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16573       ;;
16574     pw32*)
16575       # pw32 DLLs use 'pw' prefix rather than 'lib'
16576       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16577       ;;
16578     esac
16579     dynamic_linker='Win32 ld.exe'
16580     ;;
16581
16582   *,cl*)
16583     # Native MSVC
16584     libname_spec='$name'
16585     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16586     library_names_spec='$libname.dll.lib'
16587
16588     case $build_os in
16589     mingw*)
16590       sys_lib_search_path_spec=
16591       lt_save_ifs=$IFS
16592       IFS=';'
16593       for lt_path in $LIB
16594       do
16595         IFS=$lt_save_ifs
16596         # Let DOS variable expansion print the short 8.3 style file name.
16597         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16598         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16599       done
16600       IFS=$lt_save_ifs
16601       # Convert to MSYS style.
16602       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16603       ;;
16604     cygwin*)
16605       # Convert to unix form, then to dos form, then back to unix form
16606       # but this time dos style (no spaces!) so that the unix form looks
16607       # like /cygdrive/c/PROGRA~1:/cygdr...
16608       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16609       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16610       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16611       ;;
16612     *)
16613       sys_lib_search_path_spec=$LIB
16614       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16615         # It is most probably a Windows format PATH.
16616         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617       else
16618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16619       fi
16620       # FIXME: find the short name or the path components, as spaces are
16621       # common. (e.g. "Program Files" -> "PROGRA~1")
16622       ;;
16623     esac
16624
16625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16626     postinstall_cmds='base_file=`basename \$file`~
16627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16628       dldir=$destdir/`dirname \$dlpath`~
16629       test -d \$dldir || mkdir -p \$dldir~
16630       $install_prog $dir/$dlname \$dldir/$dlname'
16631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16632       dlpath=$dir/\$dldll~
16633        $RM \$dlpath'
16634     shlibpath_overrides_runpath=yes
16635     dynamic_linker='Win32 link.exe'
16636     ;;
16637
16638   *)
16639     # Assume MSVC wrapper
16640     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16641     dynamic_linker='Win32 ld.exe'
16642     ;;
16643   esac
16644   # FIXME: first we should search . and the directory the executable is in
16645   shlibpath_var=PATH
16646   ;;
16647
16648 darwin* | rhapsody*)
16649   dynamic_linker="$host_os dyld"
16650   version_type=darwin
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16654   soname_spec='$libname$release$major$shared_ext'
16655   shlibpath_overrides_runpath=yes
16656   shlibpath_var=DYLD_LIBRARY_PATH
16657   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16658
16659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660   ;;
16661
16662 dgux*)
16663   version_type=linux # correct to gnu/linux during the next big refactor
16664   need_lib_prefix=no
16665   need_version=no
16666   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16667   soname_spec='$libname$release$shared_ext$major'
16668   shlibpath_var=LD_LIBRARY_PATH
16669   ;;
16670
16671 freebsd* | dragonfly*)
16672   # DragonFly does not have aout.  When/if they implement a new
16673   # versioning mechanism, adjust this.
16674   if test -x /usr/bin/objformat; then
16675     objformat=`/usr/bin/objformat`
16676   else
16677     case $host_os in
16678     freebsd[23].*) objformat=aout ;;
16679     *) objformat=elf ;;
16680     esac
16681   fi
16682   version_type=freebsd-$objformat
16683   case $version_type in
16684     freebsd-elf*)
16685       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16686       soname_spec='$libname$release$shared_ext$major'
16687       need_version=no
16688       need_lib_prefix=no
16689       ;;
16690     freebsd-*)
16691       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16692       need_version=yes
16693       ;;
16694   esac
16695   shlibpath_var=LD_LIBRARY_PATH
16696   case $host_os in
16697   freebsd2.*)
16698     shlibpath_overrides_runpath=yes
16699     ;;
16700   freebsd3.[01]* | freebsdelf3.[01]*)
16701     shlibpath_overrides_runpath=yes
16702     hardcode_into_libs=yes
16703     ;;
16704   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16705   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16706     shlibpath_overrides_runpath=no
16707     hardcode_into_libs=yes
16708     ;;
16709   *) # from 4.6 on, and DragonFly
16710     shlibpath_overrides_runpath=yes
16711     hardcode_into_libs=yes
16712     ;;
16713   esac
16714   ;;
16715
16716 haiku*)
16717   version_type=linux # correct to gnu/linux during the next big refactor
16718   need_lib_prefix=no
16719   need_version=no
16720   dynamic_linker="$host_os runtime_loader"
16721   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16722   soname_spec='$libname$release$shared_ext$major'
16723   shlibpath_var=LIBRARY_PATH
16724   shlibpath_overrides_runpath=no
16725   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16726   hardcode_into_libs=yes
16727   ;;
16728
16729 hpux9* | hpux10* | hpux11*)
16730   # Give a soname corresponding to the major version so that dld.sl refuses to
16731   # link against other versions.
16732   version_type=sunos
16733   need_lib_prefix=no
16734   need_version=no
16735   case $host_cpu in
16736   ia64*)
16737     shrext_cmds='.so'
16738     hardcode_into_libs=yes
16739     dynamic_linker="$host_os dld.so"
16740     shlibpath_var=LD_LIBRARY_PATH
16741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16742     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16743     soname_spec='$libname$release$shared_ext$major'
16744     if test 32 = "$HPUX_IA64_MODE"; then
16745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16746       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16747     else
16748       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16749       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16750     fi
16751     ;;
16752   hppa*64*)
16753     shrext_cmds='.sl'
16754     hardcode_into_libs=yes
16755     dynamic_linker="$host_os dld.sl"
16756     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16758     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16759     soname_spec='$libname$release$shared_ext$major'
16760     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16762     ;;
16763   *)
16764     shrext_cmds='.sl'
16765     dynamic_linker="$host_os dld.sl"
16766     shlibpath_var=SHLIB_PATH
16767     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16768     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16769     soname_spec='$libname$release$shared_ext$major'
16770     ;;
16771   esac
16772   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16773   postinstall_cmds='chmod 555 $lib'
16774   # or fails outright, so override atomically:
16775   install_override_mode=555
16776   ;;
16777
16778 interix[3-9]*)
16779   version_type=linux # correct to gnu/linux during the next big refactor
16780   need_lib_prefix=no
16781   need_version=no
16782   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16783   soname_spec='$libname$release$shared_ext$major'
16784   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16785   shlibpath_var=LD_LIBRARY_PATH
16786   shlibpath_overrides_runpath=no
16787   hardcode_into_libs=yes
16788   ;;
16789
16790 irix5* | irix6* | nonstopux*)
16791   case $host_os in
16792     nonstopux*) version_type=nonstopux ;;
16793     *)
16794         if test yes = "$lt_cv_prog_gnu_ld"; then
16795                 version_type=linux # correct to gnu/linux during the next big refactor
16796         else
16797                 version_type=irix
16798         fi ;;
16799   esac
16800   need_lib_prefix=no
16801   need_version=no
16802   soname_spec='$libname$release$shared_ext$major'
16803   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16804   case $host_os in
16805   irix5* | nonstopux*)
16806     libsuff= shlibsuff=
16807     ;;
16808   *)
16809     case $LD in # libtool.m4 will add one of these switches to LD
16810     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811       libsuff= shlibsuff= libmagic=32-bit;;
16812     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813       libsuff=32 shlibsuff=N32 libmagic=N32;;
16814     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816     *) libsuff= shlibsuff= libmagic=never-match;;
16817     esac
16818     ;;
16819   esac
16820   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821   shlibpath_overrides_runpath=no
16822   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16823   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16824   hardcode_into_libs=yes
16825   ;;
16826
16827 # No shared lib support for Linux oldld, aout, or coff.
16828 linux*oldld* | linux*aout* | linux*coff*)
16829   dynamic_linker=no
16830   ;;
16831
16832 linux*android*)
16833   version_type=none # Android doesn't support versioned libraries.
16834   need_lib_prefix=no
16835   need_version=no
16836   library_names_spec='$libname$release$shared_ext'
16837   soname_spec='$libname$release$shared_ext'
16838   finish_cmds=
16839   shlibpath_var=LD_LIBRARY_PATH
16840   shlibpath_overrides_runpath=yes
16841
16842   # This implies no fast_install, which is unacceptable.
16843   # Some rework will be needed to allow for fast_install
16844   # before this can be enabled.
16845   hardcode_into_libs=yes
16846
16847   dynamic_linker='Android linker'
16848   # Don't embed -rpath directories since the linker doesn't support them.
16849   hardcode_libdir_flag_spec_CXX='-L$libdir'
16850   ;;
16851
16852 # This must be glibc/ELF.
16853 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16854   version_type=linux # correct to gnu/linux during the next big refactor
16855   need_lib_prefix=no
16856   need_version=no
16857   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16858   soname_spec='$libname$release$shared_ext$major'
16859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16860   shlibpath_var=LD_LIBRARY_PATH
16861   shlibpath_overrides_runpath=no
16862
16863   # Some binutils ld are patched to set DT_RUNPATH
16864   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16865   $as_echo_n "(cached) " >&6
16866 else
16867   lt_cv_shlibpath_overrides_runpath=no
16868     save_LDFLAGS=$LDFLAGS
16869     save_libdir=$libdir
16870     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16871          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h.  */
16874
16875 int
16876 main ()
16877 {
16878
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 if ac_fn_cxx_try_link "$LINENO"; then :
16884   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16885   lt_cv_shlibpath_overrides_runpath=yes
16886 fi
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext \
16889     conftest$ac_exeext conftest.$ac_ext
16890     LDFLAGS=$save_LDFLAGS
16891     libdir=$save_libdir
16892
16893 fi
16894
16895   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16896
16897   # This implies no fast_install, which is unacceptable.
16898   # Some rework will be needed to allow for fast_install
16899   # before this can be enabled.
16900   hardcode_into_libs=yes
16901
16902   # Ideally, we could use ldconfig to report *all* directores which are
16903   # searched for libraries, however this is still not possible.  Aside from not
16904   # being certain /sbin/ldconfig is available, command
16905   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16906   # even though it is searched at run-time.  Try to do the best guess by
16907   # appending ld.so.conf contents (and includes) to the search path.
16908   if test -f /etc/ld.so.conf; then
16909     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' ' '`
16910     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16911   fi
16912
16913   # We used to test for /lib/ld.so.1 and disable shared libraries on
16914   # powerpc, because MkLinux only supported shared libraries with the
16915   # GNU dynamic linker.  Since this was broken with cross compilers,
16916   # most powerpc-linux boxes support dynamic linking these days and
16917   # people can always --disable-shared, the test was removed, and we
16918   # assume the GNU/Linux dynamic linker is in use.
16919   dynamic_linker='GNU/Linux ld.so'
16920   ;;
16921
16922 netbsdelf*-gnu)
16923   version_type=linux
16924   need_lib_prefix=no
16925   need_version=no
16926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927   soname_spec='${libname}${release}${shared_ext}$major'
16928   shlibpath_var=LD_LIBRARY_PATH
16929   shlibpath_overrides_runpath=no
16930   hardcode_into_libs=yes
16931   dynamic_linker='NetBSD ld.elf_so'
16932   ;;
16933
16934 netbsd*)
16935   version_type=sunos
16936   need_lib_prefix=no
16937   need_version=no
16938   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16939     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16940     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16941     dynamic_linker='NetBSD (a.out) ld.so'
16942   else
16943     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16944     soname_spec='$libname$release$shared_ext$major'
16945     dynamic_linker='NetBSD ld.elf_so'
16946   fi
16947   shlibpath_var=LD_LIBRARY_PATH
16948   shlibpath_overrides_runpath=yes
16949   hardcode_into_libs=yes
16950   ;;
16951
16952 newsos6)
16953   version_type=linux # correct to gnu/linux during the next big refactor
16954   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16955   shlibpath_var=LD_LIBRARY_PATH
16956   shlibpath_overrides_runpath=yes
16957   ;;
16958
16959 *nto* | *qnx*)
16960   version_type=qnx
16961   need_lib_prefix=no
16962   need_version=no
16963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16964   soname_spec='$libname$release$shared_ext$major'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   shlibpath_overrides_runpath=no
16967   hardcode_into_libs=yes
16968   dynamic_linker='ldqnx.so'
16969   ;;
16970
16971 openbsd* | bitrig*)
16972   version_type=sunos
16973   sys_lib_dlsearch_path_spec=/usr/lib
16974   need_lib_prefix=no
16975   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16976     need_version=no
16977   else
16978     need_version=yes
16979   fi
16980   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16981   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16982   shlibpath_var=LD_LIBRARY_PATH
16983   shlibpath_overrides_runpath=yes
16984   ;;
16985
16986 os2*)
16987   libname_spec='$name'
16988   version_type=windows
16989   shrext_cmds=.dll
16990   need_version=no
16991   need_lib_prefix=no
16992   # OS/2 can only load a DLL with a base name of 8 characters or less.
16993   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16994     v=$($ECHO $release$versuffix | tr -d .-);
16995     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16996     $ECHO $n$v`$shared_ext'
16997   library_names_spec='${libname}_dll.$libext'
16998   dynamic_linker='OS/2 ld.exe'
16999   shlibpath_var=BEGINLIBPATH
17000   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17001   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17002   postinstall_cmds='base_file=`basename \$file`~
17003     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17004     dldir=$destdir/`dirname \$dlpath`~
17005     test -d \$dldir || mkdir -p \$dldir~
17006     $install_prog $dir/$dlname \$dldir/$dlname~
17007     chmod a+x \$dldir/$dlname~
17008     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17009       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17010     fi'
17011   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17012     dlpath=$dir/\$dldll~
17013     $RM \$dlpath'
17014   ;;
17015
17016 osf3* | osf4* | osf5*)
17017   version_type=osf
17018   need_lib_prefix=no
17019   need_version=no
17020   soname_spec='$libname$release$shared_ext$major'
17021   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17024   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17025   ;;
17026
17027 rdos*)
17028   dynamic_linker=no
17029   ;;
17030
17031 solaris*)
17032   version_type=linux # correct to gnu/linux during the next big refactor
17033   need_lib_prefix=no
17034   need_version=no
17035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17036   soname_spec='$libname$release$shared_ext$major'
17037   shlibpath_var=LD_LIBRARY_PATH
17038   shlibpath_overrides_runpath=yes
17039   hardcode_into_libs=yes
17040   # ldd complains unless libraries are executable
17041   postinstall_cmds='chmod +x $lib'
17042   ;;
17043
17044 sunos4*)
17045   version_type=sunos
17046   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17047   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17048   shlibpath_var=LD_LIBRARY_PATH
17049   shlibpath_overrides_runpath=yes
17050   if test yes = "$with_gnu_ld"; then
17051     need_lib_prefix=no
17052   fi
17053   need_version=yes
17054   ;;
17055
17056 sysv4 | sysv4.3*)
17057   version_type=linux # correct to gnu/linux during the next big refactor
17058   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17059   soname_spec='$libname$release$shared_ext$major'
17060   shlibpath_var=LD_LIBRARY_PATH
17061   case $host_vendor in
17062     sni)
17063       shlibpath_overrides_runpath=no
17064       need_lib_prefix=no
17065       runpath_var=LD_RUN_PATH
17066       ;;
17067     siemens)
17068       need_lib_prefix=no
17069       ;;
17070     motorola)
17071       need_lib_prefix=no
17072       need_version=no
17073       shlibpath_overrides_runpath=no
17074       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17075       ;;
17076   esac
17077   ;;
17078
17079 sysv4*MP*)
17080   if test -d /usr/nec; then
17081     version_type=linux # correct to gnu/linux during the next big refactor
17082     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17083     soname_spec='$libname$shared_ext.$major'
17084     shlibpath_var=LD_LIBRARY_PATH
17085   fi
17086   ;;
17087
17088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17089   version_type=sco
17090   need_lib_prefix=no
17091   need_version=no
17092   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17093   soname_spec='$libname$release$shared_ext$major'
17094   shlibpath_var=LD_LIBRARY_PATH
17095   shlibpath_overrides_runpath=yes
17096   hardcode_into_libs=yes
17097   if test yes = "$with_gnu_ld"; then
17098     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17099   else
17100     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17101     case $host_os in
17102       sco3.2v5*)
17103         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17104         ;;
17105     esac
17106   fi
17107   sys_lib_dlsearch_path_spec='/usr/lib'
17108   ;;
17109
17110 tpf*)
17111   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17112   version_type=linux # correct to gnu/linux during the next big refactor
17113   need_lib_prefix=no
17114   need_version=no
17115   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17116   shlibpath_var=LD_LIBRARY_PATH
17117   shlibpath_overrides_runpath=no
17118   hardcode_into_libs=yes
17119   ;;
17120
17121 uts4*)
17122   version_type=linux # correct to gnu/linux during the next big refactor
17123   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17124   soname_spec='$libname$release$shared_ext$major'
17125   shlibpath_var=LD_LIBRARY_PATH
17126   ;;
17127
17128 *)
17129   dynamic_linker=no
17130   ;;
17131 esac
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17133 $as_echo "$dynamic_linker" >&6; }
17134 test no = "$dynamic_linker" && can_build_shared=no
17135
17136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17137 if test yes = "$GCC"; then
17138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17139 fi
17140
17141 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17142   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17143 fi
17144
17145 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17146   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17147 fi
17148
17149 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17150 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17151
17152 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17153 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17154
17155 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17156 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17198 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17199 hardcode_action_CXX=
17200 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17201    test -n "$runpath_var_CXX" ||
17202    test yes = "$hardcode_automatic_CXX"; then
17203
17204   # We can hardcode non-existent directories.
17205   if test no != "$hardcode_direct_CXX" &&
17206      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17207      # have to relink, otherwise we might link with an installed library
17208      # when we should be linking with a yet-to-be-installed one
17209      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17210      test no != "$hardcode_minus_L_CXX"; then
17211     # Linking always hardcodes the temporary library directory.
17212     hardcode_action_CXX=relink
17213   else
17214     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17215     hardcode_action_CXX=immediate
17216   fi
17217 else
17218   # We cannot hardcode anything, or else we can only hardcode existing
17219   # directories.
17220   hardcode_action_CXX=unsupported
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17223 $as_echo "$hardcode_action_CXX" >&6; }
17224
17225 if test relink = "$hardcode_action_CXX" ||
17226    test yes = "$inherit_rpath_CXX"; then
17227   # Fast installation is not supported
17228   enable_fast_install=no
17229 elif test yes = "$shlibpath_overrides_runpath" ||
17230      test no = "$enable_shared"; then
17231   # Fast installation is not necessary
17232   enable_fast_install=needless
17233 fi
17234
17235
17236
17237
17238
17239
17240
17241   fi # test -n "$compiler"
17242
17243   CC=$lt_save_CC
17244   CFLAGS=$lt_save_CFLAGS
17245   LDCXX=$LD
17246   LD=$lt_save_LD
17247   GCC=$lt_save_GCC
17248   with_gnu_ld=$lt_save_with_gnu_ld
17249   lt_cv_path_LDCXX=$lt_cv_path_LD
17250   lt_cv_path_LD=$lt_save_path_LD
17251   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17252   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17253 fi # test yes != "$_lt_caught_CXX_error"
17254
17255 ac_ext=c
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17260
17261
17262 depcc="$CXX"  am_compiler_list=
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17265 $as_echo_n "checking dependency style of $depcc... " >&6; }
17266 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17267   $as_echo_n "(cached) " >&6
17268 else
17269   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17270   # We make a subdir and do the tests there.  Otherwise we can end up
17271   # making bogus files that we don't know about and never remove.  For
17272   # instance it was reported that on HP-UX the gcc test will end up
17273   # making a dummy file named 'D' -- because '-MD' means "put the output
17274   # in D".
17275   rm -rf conftest.dir
17276   mkdir conftest.dir
17277   # Copy depcomp to subdir because otherwise we won't find it if we're
17278   # using a relative directory.
17279   cp "$am_depcomp" conftest.dir
17280   cd conftest.dir
17281   # We will build objects and dependencies in a subdirectory because
17282   # it helps to detect inapplicable dependency modes.  For instance
17283   # both Tru64's cc and ICC support -MD to output dependencies as a
17284   # side effect of compilation, but ICC will put the dependencies in
17285   # the current directory while Tru64 will put them in the object
17286   # directory.
17287   mkdir sub
17288
17289   am_cv_CXX_dependencies_compiler_type=none
17290   if test "$am_compiler_list" = ""; then
17291      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17292   fi
17293   am__universal=false
17294   case " $depcc " in #(
17295      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17296      esac
17297
17298   for depmode in $am_compiler_list; do
17299     # Setup a source with many dependencies, because some compilers
17300     # like to wrap large dependency lists on column 80 (with \), and
17301     # we should not choose a depcomp mode which is confused by this.
17302     #
17303     # We need to recreate these files for each test, as the compiler may
17304     # overwrite some of them when testing with obscure command lines.
17305     # This happens at least with the AIX C compiler.
17306     : > sub/conftest.c
17307     for i in 1 2 3 4 5 6; do
17308       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17309       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17310       # Solaris 10 /bin/sh.
17311       echo '/* dummy */' > sub/conftst$i.h
17312     done
17313     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17314
17315     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17316     # mode.  It turns out that the SunPro C++ compiler does not properly
17317     # handle '-M -o', and we need to detect this.  Also, some Intel
17318     # versions had trouble with output in subdirs.
17319     am__obj=sub/conftest.${OBJEXT-o}
17320     am__minus_obj="-o $am__obj"
17321     case $depmode in
17322     gcc)
17323       # This depmode causes a compiler race in universal mode.
17324       test "$am__universal" = false || continue
17325       ;;
17326     nosideeffect)
17327       # After this tag, mechanisms are not by side-effect, so they'll
17328       # only be used when explicitly requested.
17329       if test "x$enable_dependency_tracking" = xyes; then
17330         continue
17331       else
17332         break
17333       fi
17334       ;;
17335     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17336       # This compiler won't grok '-c -o', but also, the minuso test has
17337       # not run yet.  These depmodes are late enough in the game, and
17338       # so weak that their functioning should not be impacted.
17339       am__obj=conftest.${OBJEXT-o}
17340       am__minus_obj=
17341       ;;
17342     none) break ;;
17343     esac
17344     if depmode=$depmode \
17345        source=sub/conftest.c object=$am__obj \
17346        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17347        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17348          >/dev/null 2>conftest.err &&
17349        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17350        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17351        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17352        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17353       # icc doesn't choke on unknown options, it will just issue warnings
17354       # or remarks (even with -Werror).  So we grep stderr for any message
17355       # that says an option was ignored or not supported.
17356       # When given -MP, icc 7.0 and 7.1 complain thusly:
17357       #   icc: Command line warning: ignoring option '-M'; no argument required
17358       # The diagnosis changed in icc 8.0:
17359       #   icc: Command line remark: option '-MP' not supported
17360       if (grep 'ignoring option' conftest.err ||
17361           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17362         am_cv_CXX_dependencies_compiler_type=$depmode
17363         break
17364       fi
17365     fi
17366   done
17367
17368   cd ..
17369   rm -rf conftest.dir
17370 else
17371   am_cv_CXX_dependencies_compiler_type=none
17372 fi
17373
17374 fi
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17376 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17377 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17378
17379  if
17380   test "x$enable_dependency_tracking" != xno \
17381   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17382   am__fastdepCXX_TRUE=
17383   am__fastdepCXX_FALSE='#'
17384 else
17385   am__fastdepCXX_TRUE='#'
17386   am__fastdepCXX_FALSE=
17387 fi
17388
17389
17390 ac_ext=c
17391 ac_cpp='$CPP $CPPFLAGS'
17392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17396 $as_echo_n "checking how to run the C preprocessor... " >&6; }
17397 # On Suns, sometimes $CPP names a directory.
17398 if test -n "$CPP" && test -d "$CPP"; then
17399   CPP=
17400 fi
17401 if test -z "$CPP"; then
17402   if ${ac_cv_prog_CPP+:} false; then :
17403   $as_echo_n "(cached) " >&6
17404 else
17405       # Double quotes because CPP needs to be expanded
17406     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17407     do
17408       ac_preproc_ok=false
17409 for ac_c_preproc_warn_flag in '' yes
17410 do
17411   # Use a header file that comes with gcc, so configuring glibc
17412   # with a fresh cross-compiler works.
17413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414   # <limits.h> exists even on freestanding compilers.
17415   # On the NeXT, cc -E runs the code through the compiler's parser,
17416   # not just through cpp. "Syntax error" is here to catch this case.
17417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h.  */
17419 #ifdef __STDC__
17420 # include <limits.h>
17421 #else
17422 # include <assert.h>
17423 #endif
17424                      Syntax error
17425 _ACEOF
17426 if ac_fn_c_try_cpp "$LINENO"; then :
17427
17428 else
17429   # Broken: fails on valid input.
17430 continue
17431 fi
17432 rm -f conftest.err conftest.i conftest.$ac_ext
17433
17434   # OK, works on sane cases.  Now check whether nonexistent headers
17435   # can be detected and how.
17436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h.  */
17438 #include <ac_nonexistent.h>
17439 _ACEOF
17440 if ac_fn_c_try_cpp "$LINENO"; then :
17441   # Broken: success on invalid input.
17442 continue
17443 else
17444   # Passes both tests.
17445 ac_preproc_ok=:
17446 break
17447 fi
17448 rm -f conftest.err conftest.i conftest.$ac_ext
17449
17450 done
17451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17452 rm -f conftest.i conftest.err conftest.$ac_ext
17453 if $ac_preproc_ok; then :
17454   break
17455 fi
17456
17457     done
17458     ac_cv_prog_CPP=$CPP
17459
17460 fi
17461   CPP=$ac_cv_prog_CPP
17462 else
17463   ac_cv_prog_CPP=$CPP
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17466 $as_echo "$CPP" >&6; }
17467 ac_preproc_ok=false
17468 for ac_c_preproc_warn_flag in '' yes
17469 do
17470   # Use a header file that comes with gcc, so configuring glibc
17471   # with a fresh cross-compiler works.
17472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473   # <limits.h> exists even on freestanding compilers.
17474   # On the NeXT, cc -E runs the code through the compiler's parser,
17475   # not just through cpp. "Syntax error" is here to catch this case.
17476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h.  */
17478 #ifdef __STDC__
17479 # include <limits.h>
17480 #else
17481 # include <assert.h>
17482 #endif
17483                      Syntax error
17484 _ACEOF
17485 if ac_fn_c_try_cpp "$LINENO"; then :
17486
17487 else
17488   # Broken: fails on valid input.
17489 continue
17490 fi
17491 rm -f conftest.err conftest.i conftest.$ac_ext
17492
17493   # OK, works on sane cases.  Now check whether nonexistent headers
17494   # can be detected and how.
17495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h.  */
17497 #include <ac_nonexistent.h>
17498 _ACEOF
17499 if ac_fn_c_try_cpp "$LINENO"; then :
17500   # Broken: success on invalid input.
17501 continue
17502 else
17503   # Passes both tests.
17504 ac_preproc_ok=:
17505 break
17506 fi
17507 rm -f conftest.err conftest.i conftest.$ac_ext
17508
17509 done
17510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17511 rm -f conftest.i conftest.err conftest.$ac_ext
17512 if $ac_preproc_ok; then :
17513
17514 else
17515   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17518 See \`config.log' for more details" "$LINENO" 5; }
17519 fi
17520
17521 ac_ext=c
17522 ac_cpp='$CPP $CPPFLAGS'
17523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17526
17527
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17529 $as_echo_n "checking whether ln -s works... " >&6; }
17530 LN_S=$as_ln_s
17531 if test "$LN_S" = "ln -s"; then
17532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17533 $as_echo "yes" >&6; }
17534 else
17535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17536 $as_echo "no, using $LN_S" >&6; }
17537 fi
17538
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17541 set x ${MAKE-make}
17542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17543 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17544   $as_echo_n "(cached) " >&6
17545 else
17546   cat >conftest.make <<\_ACEOF
17547 SHELL = /bin/sh
17548 all:
17549         @echo '@@@%%%=$(MAKE)=@@@%%%'
17550 _ACEOF
17551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17553   *@@@%%%=?*=@@@%%%*)
17554     eval ac_cv_prog_make_${ac_make}_set=yes;;
17555   *)
17556     eval ac_cv_prog_make_${ac_make}_set=no;;
17557 esac
17558 rm -f conftest.make
17559 fi
17560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17562 $as_echo "yes" >&6; }
17563   SET_MAKE=
17564 else
17565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566 $as_echo "no" >&6; }
17567   SET_MAKE="MAKE=${MAKE-make}"
17568 fi
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17580         if test -n "$ac_tool_prefix"; then
17581   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17582 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584 $as_echo_n "checking for $ac_word... " >&6; }
17585 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17586   $as_echo_n "(cached) " >&6
17587 else
17588   case $PKG_CONFIG in
17589   [\\/]* | ?:[\\/]*)
17590   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17591   ;;
17592   *)
17593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17595 do
17596   IFS=$as_save_IFS
17597   test -z "$as_dir" && as_dir=.
17598     for ac_exec_ext in '' $ac_executable_extensions; do
17599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17602     break 2
17603   fi
17604 done
17605   done
17606 IFS=$as_save_IFS
17607
17608   ;;
17609 esac
17610 fi
17611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17612 if test -n "$PKG_CONFIG"; then
17613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17614 $as_echo "$PKG_CONFIG" >&6; }
17615 else
17616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617 $as_echo "no" >&6; }
17618 fi
17619
17620
17621 fi
17622 if test -z "$ac_cv_path_PKG_CONFIG"; then
17623   ac_pt_PKG_CONFIG=$PKG_CONFIG
17624   # Extract the first word of "pkg-config", so it can be a program name with args.
17625 set dummy pkg-config; ac_word=$2
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17627 $as_echo_n "checking for $ac_word... " >&6; }
17628 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17629   $as_echo_n "(cached) " >&6
17630 else
17631   case $ac_pt_PKG_CONFIG in
17632   [\\/]* | ?:[\\/]*)
17633   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17634   ;;
17635   *)
17636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637 for as_dir in $PATH
17638 do
17639   IFS=$as_save_IFS
17640   test -z "$as_dir" && as_dir=.
17641     for ac_exec_ext in '' $ac_executable_extensions; do
17642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17643     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17645     break 2
17646   fi
17647 done
17648   done
17649 IFS=$as_save_IFS
17650
17651   ;;
17652 esac
17653 fi
17654 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17655 if test -n "$ac_pt_PKG_CONFIG"; then
17656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17657 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17658 else
17659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660 $as_echo "no" >&6; }
17661 fi
17662
17663   if test "x$ac_pt_PKG_CONFIG" = x; then
17664     PKG_CONFIG=""
17665   else
17666     case $cross_compiling:$ac_tool_warned in
17667 yes:)
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17670 ac_tool_warned=yes ;;
17671 esac
17672     PKG_CONFIG=$ac_pt_PKG_CONFIG
17673   fi
17674 else
17675   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17676 fi
17677
17678 fi
17679 if test -n "$PKG_CONFIG"; then
17680         _pkg_min_version=0.20
17681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17682 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17683         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17684                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17685 $as_echo "yes" >&6; }
17686         else
17687                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688 $as_echo "no" >&6; }
17689                 PKG_CONFIG=""
17690         fi
17691 fi
17692
17693
17694
17695
17696
17697
17698
17699         if test -n "$PYTHON"; then
17700       # If the user set $PYTHON, use it and don't search something else.
17701       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
17702 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
17703       prog="import sys
17704 # split strings by '.' and convert to numeric.  Append some zeros
17705 # because we need at least 4 digits for the hex conversion.
17706 # map returns an iterator in Python 3.0 and a list in 2.x
17707 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17708 minverhex = 0
17709 # xrange is not present in Python 3.0 and range returns an iterator
17710 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17711 sys.exit(sys.hexversion < minverhex)"
17712   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17713    ($PYTHON -c "$prog") >&5 2>&5
17714    ac_status=$?
17715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716    (exit $ac_status); }; then :
17717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718 $as_echo "yes" >&6; }
17719 else
17720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17721 $as_echo "no" >&6; }
17722                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17723 fi
17724       am_display_PYTHON=$PYTHON
17725     else
17726       # Otherwise, try each interpreter until we find one that satisfies
17727       # VERSION.
17728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
17729 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
17730 if ${am_cv_pathless_PYTHON+:} false; then :
17731   $as_echo_n "(cached) " >&6
17732 else
17733
17734         for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
17735           test "$am_cv_pathless_PYTHON" = none && break
17736           prog="import sys
17737 # split strings by '.' and convert to numeric.  Append some zeros
17738 # because we need at least 4 digits for the hex conversion.
17739 # map returns an iterator in Python 3.0 and a list in 2.x
17740 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17741 minverhex = 0
17742 # xrange is not present in Python 3.0 and range returns an iterator
17743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17744 sys.exit(sys.hexversion < minverhex)"
17745   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17746    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17747    ac_status=$?
17748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749    (exit $ac_status); }; then :
17750   break
17751 fi
17752         done
17753 fi
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17755 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17756       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17757       if test "$am_cv_pathless_PYTHON" = none; then
17758         PYTHON=:
17759       else
17760         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17761 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763 $as_echo_n "checking for $ac_word... " >&6; }
17764 if ${ac_cv_path_PYTHON+:} false; then :
17765   $as_echo_n "(cached) " >&6
17766 else
17767   case $PYTHON in
17768   [\\/]* | ?:[\\/]*)
17769   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17770   ;;
17771   *)
17772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17773 for as_dir in $PATH
17774 do
17775   IFS=$as_save_IFS
17776   test -z "$as_dir" && as_dir=.
17777     for ac_exec_ext in '' $ac_executable_extensions; do
17778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17779     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17781     break 2
17782   fi
17783 done
17784   done
17785 IFS=$as_save_IFS
17786
17787   ;;
17788 esac
17789 fi
17790 PYTHON=$ac_cv_path_PYTHON
17791 if test -n "$PYTHON"; then
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17793 $as_echo "$PYTHON" >&6; }
17794 else
17795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796 $as_echo "no" >&6; }
17797 fi
17798
17799
17800       fi
17801       am_display_PYTHON=$am_cv_pathless_PYTHON
17802     fi
17803
17804
17805   if test "$PYTHON" = :; then
17806       :
17807   else
17808
17809
17810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17811 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17812 if ${am_cv_python_version+:} false; then :
17813   $as_echo_n "(cached) " >&6
17814 else
17815   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17816 fi
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17818 $as_echo "$am_cv_python_version" >&6; }
17819   PYTHON_VERSION=$am_cv_python_version
17820
17821
17822
17823   PYTHON_PREFIX='${prefix}'
17824
17825   PYTHON_EXEC_PREFIX='${exec_prefix}'
17826
17827
17828
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17830 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17831 if ${am_cv_python_platform+:} false; then :
17832   $as_echo_n "(cached) " >&6
17833 else
17834   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17835 fi
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17837 $as_echo "$am_cv_python_platform" >&6; }
17838   PYTHON_PLATFORM=$am_cv_python_platform
17839
17840
17841   # Just factor out some code duplication.
17842   am_python_setup_sysconfig="\
17843 import sys
17844 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17845 # with python 3.x.  See automake bug#10227.
17846 try:
17847     import sysconfig
17848 except ImportError:
17849     can_use_sysconfig = 0
17850 else:
17851     can_use_sysconfig = 1
17852 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17853 # <https://github.com/pypa/virtualenv/issues/118>
17854 try:
17855     from platform import python_implementation
17856     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17857         can_use_sysconfig = 0
17858 except ImportError:
17859     pass"
17860
17861
17862             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17863 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17864 if ${am_cv_python_pythondir+:} false; then :
17865   $as_echo_n "(cached) " >&6
17866 else
17867   if test "x$prefix" = xNONE
17868      then
17869        am_py_prefix=$ac_default_prefix
17870      else
17871        am_py_prefix=$prefix
17872      fi
17873      am_cv_python_pythondir=`$PYTHON -c "
17874 $am_python_setup_sysconfig
17875 if can_use_sysconfig:
17876     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17877 else:
17878     from distutils import sysconfig
17879     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17880 sys.stdout.write(sitedir)"`
17881      case $am_cv_python_pythondir in
17882      $am_py_prefix*)
17883        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17884        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17885        ;;
17886      *)
17887        case $am_py_prefix in
17888          /usr|/System*) ;;
17889          *)
17890           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17891           ;;
17892        esac
17893        ;;
17894      esac
17895
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17898 $as_echo "$am_cv_python_pythondir" >&6; }
17899   pythondir=$am_cv_python_pythondir
17900
17901
17902
17903   pkgpythondir=\${pythondir}/$PACKAGE
17904
17905
17906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17907 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17908 if ${am_cv_python_pyexecdir+:} false; then :
17909   $as_echo_n "(cached) " >&6
17910 else
17911   if test "x$exec_prefix" = xNONE
17912      then
17913        am_py_exec_prefix=$am_py_prefix
17914      else
17915        am_py_exec_prefix=$exec_prefix
17916      fi
17917      am_cv_python_pyexecdir=`$PYTHON -c "
17918 $am_python_setup_sysconfig
17919 if can_use_sysconfig:
17920     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17921 else:
17922     from distutils import sysconfig
17923     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17924 sys.stdout.write(sitedir)"`
17925      case $am_cv_python_pyexecdir in
17926      $am_py_exec_prefix*)
17927        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17928        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17929        ;;
17930      *)
17931        case $am_py_exec_prefix in
17932          /usr|/System*) ;;
17933          *)
17934            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17935            ;;
17936        esac
17937        ;;
17938      esac
17939
17940 fi
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17942 $as_echo "$am_cv_python_pyexecdir" >&6; }
17943   pyexecdir=$am_cv_python_pyexecdir
17944
17945
17946
17947   pkgpyexecdir=\${pyexecdir}/$PACKAGE
17948
17949
17950
17951   fi
17952
17953
17954
17955 if test "x$request_lib_only" = "xyes"; then
17956   request_app=no
17957   request_hpack_tools=no
17958   request_examples=no
17959   request_python_bindings=no
17960 fi
17961
17962 if test "x$request_python_bindings" != "xno"; then
17963
17964         #
17965         # Allow the use of a (user set) custom python version
17966         #
17967
17968
17969         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17970 set dummy python$PYTHON_VERSION; ac_word=$2
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17972 $as_echo_n "checking for $ac_word... " >&6; }
17973 if ${ac_cv_path_PYTHON+:} false; then :
17974   $as_echo_n "(cached) " >&6
17975 else
17976   case $PYTHON in
17977   [\\/]* | ?:[\\/]*)
17978   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17979   ;;
17980   *)
17981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17982 for as_dir in $PATH
17983 do
17984   IFS=$as_save_IFS
17985   test -z "$as_dir" && as_dir=.
17986     for ac_exec_ext in '' $ac_executable_extensions; do
17987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17988     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17990     break 2
17991   fi
17992 done
17993   done
17994 IFS=$as_save_IFS
17995
17996   ;;
17997 esac
17998 fi
17999 PYTHON=$ac_cv_path_PYTHON
18000 if test -n "$PYTHON"; then
18001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18002 $as_echo "$PYTHON" >&6; }
18003 else
18004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 fi
18007
18008
18009         if test -z "$PYTHON"; then
18010            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&5
18011 $as_echo "$as_me: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&2;}
18012            PYTHON_VERSION=""
18013            no_python_devel=yes
18014         fi
18015
18016 if test -z "$no_python_devel"; then :
18017
18018         #
18019         # Check for a version of Python >= 2.1.0
18020         #
18021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
18022 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
18023         ac_supports_python_ver=`$PYTHON -c "import sys; \
18024                 ver = sys.version.split ()[0]; \
18025                 print (ver >= '2.1.0')"`
18026         if test "$ac_supports_python_ver" != "True"; then
18027                 if test -z "$PYTHON_NOVERSIONCHECK"; then
18028                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 $as_echo "no" >&6; }
18030                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18031 This version of the AC_PYTHON_DEVEL macro
18032 doesn't work properly with versions of Python before
18033 2.1.0. You may need to re-run configure, setting the
18034 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
18035 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
18036 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
18037 to something else than an empty string.
18038 " >&5
18039 $as_echo "$as_me: WARNING:
18040 This version of the AC_PYTHON_DEVEL macro
18041 doesn't work properly with versions of Python before
18042 2.1.0. You may need to re-run configure, setting the
18043 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
18044 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
18045 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
18046 to something else than an empty string.
18047 " >&2;}
18048                         no_python_devel=yes
18049                 else
18050                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
18051 $as_echo "skip at user request" >&6; }
18052                 fi
18053         else
18054                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18055 $as_echo "yes" >&6; }
18056         fi
18057
18058 fi # AS_IF
18059
18060 if test -z "$no_python_devel"; then :
18061
18062         #
18063         # if the macro parameter ``version'' is set, honour it
18064         #
18065         if test -n ">= '2.7'"; then
18066                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
18067 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
18068                 ac_supports_python_ver=`$PYTHON -c "import sys; \
18069                         ver = sys.version.split ()[0]; \
18070                         print (ver >= '2.7')"`
18071                 if test "$ac_supports_python_ver" = "True"; then
18072                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18073 $as_echo "yes" >&6; }
18074                 else
18075                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18077                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package requires Python >= '2.7'.
18078 If you have it installed, but it isn't the default Python
18079 interpreter in your system path, please pass the PYTHON_VERSION
18080 variable to configure. See \`\`configure --help'' for reference.
18081 " >&5
18082 $as_echo "$as_me: WARNING: this package requires Python >= '2.7'.
18083 If you have it installed, but it isn't the default Python
18084 interpreter in your system path, please pass the PYTHON_VERSION
18085 variable to configure. See \`\`configure --help'' for reference.
18086 " >&2;}
18087                         PYTHON_VERSION=""
18088                         no_python_devel=yes
18089                 fi
18090         fi
18091
18092 fi # AS_IF
18093
18094 if test -z "$no_python_devel"; then :
18095
18096         #
18097         # Check if you have distutils, else fail
18098         #
18099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
18100 $as_echo_n "checking for the distutils Python package... " >&6; }
18101         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
18102         if test -z "$ac_distutils_result"; then
18103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18104 $as_echo "yes" >&6; }
18105         else
18106                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot import Python module \"distutils\".
18109 Please check your Python installation. The error was:
18110 $ac_distutils_result" >&5
18111 $as_echo "$as_me: WARNING: cannot import Python module \"distutils\".
18112 Please check your Python installation. The error was:
18113 $ac_distutils_result" >&2;}
18114                 PYTHON_VERSION=""
18115                 no_python_devel=yes
18116         fi
18117
18118 fi # AS_IF
18119
18120 if test -z "$no_python_devel"; then :
18121
18122         #
18123         # Check for Python include path
18124         #
18125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
18126 $as_echo_n "checking for Python include path... " >&6; }
18127         if test -z "$PYTHON_CPPFLAGS"; then
18128                 python_path=`$PYTHON -c "import distutils.sysconfig; \
18129                         print (distutils.sysconfig.get_python_inc ());"`
18130                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
18131                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
18132                 if test -n "${python_path}"; then
18133                         if test "${plat_python_path}" != "${python_path}"; then
18134                                 python_path="-I$python_path -I$plat_python_path"
18135                         else
18136                                 python_path="-I$python_path"
18137                         fi
18138                 fi
18139                 PYTHON_CPPFLAGS=$python_path
18140         fi
18141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
18142 $as_echo "$PYTHON_CPPFLAGS" >&6; }
18143
18144
18145         #
18146         # Check for Python library path
18147         #
18148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
18149 $as_echo_n "checking for Python library path... " >&6; }
18150         if test -z "$PYTHON_LDFLAGS"; then
18151                 # (makes two attempts to ensure we've got a version number
18152                 # from the interpreter)
18153                 ac_python_version=`cat<<EOD | $PYTHON -
18154
18155 # join all versioning strings, on some systems
18156 # major/minor numbers could be in different list elements
18157 from distutils.sysconfig import *
18158 e = get_config_var('VERSION')
18159 if e is not None:
18160         print(e)
18161 EOD`
18162
18163                 if test -z "$ac_python_version"; then
18164                         if test -n "$PYTHON_VERSION"; then
18165                                 ac_python_version=$PYTHON_VERSION
18166                         else
18167                                 ac_python_version=`$PYTHON -c "import sys; \
18168                                         print (sys.version[:3])"`
18169                         fi
18170                 fi
18171
18172                 # Make the versioning information available to the compiler
18173
18174 cat >>confdefs.h <<_ACEOF
18175 #define HAVE_PYTHON "$ac_python_version"
18176 _ACEOF
18177
18178
18179                 # First, the library directory:
18180                 ac_python_libdir=`cat<<EOD | $PYTHON -
18181
18182 # There should be only one
18183 import distutils.sysconfig
18184 e = distutils.sysconfig.get_config_var('LIBDIR')
18185 if e is not None:
18186         print (e)
18187 EOD`
18188
18189                 # Now, for the library:
18190                 ac_python_library=`cat<<EOD | $PYTHON -
18191
18192 import distutils.sysconfig
18193 c = distutils.sysconfig.get_config_vars()
18194 if 'LDVERSION' in c:
18195         print ('python'+c['LDVERSION'])
18196 else:
18197         print ('python'+c['VERSION'])
18198 EOD`
18199
18200                 # This small piece shamelessly adapted from PostgreSQL python macro;
18201                 # credits goes to momjian, I think. I'd like to put the right name
18202                 # in the credits, if someone can point me in the right direction... ?
18203                 #
18204                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
18205                 then
18206                         # use the official shared library
18207                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
18208                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
18209                 else
18210                         # old way: use libpython from python_configdir
18211                         ac_python_libdir=`$PYTHON -c \
18212                           "from distutils.sysconfig import get_python_lib as f; \
18213                           import os; \
18214                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
18215                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
18216                 fi
18217
18218                 if test -z "PYTHON_LDFLAGS"; then
18219                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18220   Cannot determine location of your Python DSO. Please check it was installed with
18221   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
18222                         " >&5
18223 $as_echo "$as_me: WARNING:
18224   Cannot determine location of your Python DSO. Please check it was installed with
18225   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
18226                         " >&2;}
18227                         no_python_devel=yes
18228                 fi
18229         fi
18230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
18231 $as_echo "$PYTHON_LDFLAGS" >&6; }
18232
18233
18234 fi # AS_IF
18235
18236 if test -z "$no_python_devel"; then :
18237
18238         #
18239         # Check for site packages
18240         #
18241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
18242 $as_echo_n "checking for Python site-packages path... " >&6; }
18243         if test -z "$PYTHON_SITE_PKG"; then
18244                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
18245                         print (distutils.sysconfig.get_python_lib(0,0));"`
18246         fi
18247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
18248 $as_echo "$PYTHON_SITE_PKG" >&6; }
18249
18250
18251         #
18252         # libraries which must be linked in when embedding
18253         #
18254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
18255 $as_echo_n "checking python extra libraries... " >&6; }
18256         if test -z "$PYTHON_EXTRA_LIBS"; then
18257            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
18258                 conf = distutils.sysconfig.get_config_var; \
18259                 print (conf('LIBS'))"`
18260         fi
18261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
18262 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
18263
18264
18265         #
18266         # linking flags needed when embedding
18267         #
18268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
18269 $as_echo_n "checking python extra linking flags... " >&6; }
18270         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
18271                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
18272                         conf = distutils.sysconfig.get_config_var; \
18273                         print (conf('LINKFORSHARED'))"`
18274         fi
18275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
18276 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
18277
18278
18279         #
18280         # final check to see if everything compiles alright
18281         #
18282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
18283 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
18284         # save current global flags
18285         ac_save_LIBS="$LIBS"
18286         ac_save_CPPFLAGS="$CPPFLAGS"
18287         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
18288         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
18289         ac_ext=c
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18294
18295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h.  */
18297
18298                 #include <Python.h>
18299 int
18300 main ()
18301 {
18302 Py_Initialize();
18303   ;
18304   return 0;
18305 }
18306
18307 _ACEOF
18308 if ac_fn_c_try_link "$LINENO"; then :
18309   pythonexists=yes
18310 else
18311   pythonexists=no
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext \
18314     conftest$ac_exeext conftest.$ac_ext
18315         ac_ext=c
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320
18321         # turn back to default flags
18322         CPPFLAGS="$ac_save_CPPFLAGS"
18323         LIBS="$ac_save_LIBS"
18324
18325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
18326 $as_echo "$pythonexists" >&6; }
18327
18328         if test ! "x$pythonexists" = "xyes"; then
18329            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18330   Could not link test program to Python. Maybe the main Python library has been
18331   installed in some non-standard library path. If so, pass it to configure,
18332   via the LDFLAGS environment variable.
18333   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
18334   ============================================================================
18335    ERROR!
18336    You probably have to install the development version of the Python package
18337    for your distribution.  The exact name of this package varies among them.
18338   ============================================================================
18339            " >&5
18340 $as_echo "$as_me: WARNING:
18341   Could not link test program to Python. Maybe the main Python library has been
18342   installed in some non-standard library path. If so, pass it to configure,
18343   via the LDFLAGS environment variable.
18344   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
18345   ============================================================================
18346    ERROR!
18347    You probably have to install the development version of the Python package
18348    for your distribution.  The exact name of this package varies among them.
18349   ============================================================================
18350            " >&2;}
18351           PYTHON_VERSION=""
18352           no_python_devel=yes
18353         fi
18354
18355         #
18356         # all done!
18357         #
18358
18359 fi # AS_IF
18360
18361 if test -z "$no_python_devel"; then :
18362   have_python_dev=yes
18363 else
18364   have_python_dev=no
18365 fi
18366
18367
18368 fi
18369
18370 if test "x${cython_path}" = "x"; then
18371   for ac_prog in cython.py cython
18372 do
18373   # Extract the first word of "$ac_prog", so it can be a program name with args.
18374 set dummy $ac_prog; ac_word=$2
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18376 $as_echo_n "checking for $ac_word... " >&6; }
18377 if ${ac_cv_prog_CYTHON+:} false; then :
18378   $as_echo_n "(cached) " >&6
18379 else
18380   if test -n "$CYTHON"; then
18381   ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
18382 else
18383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18384 for as_dir in $PATH
18385 do
18386   IFS=$as_save_IFS
18387   test -z "$as_dir" && as_dir=.
18388     for ac_exec_ext in '' $ac_executable_extensions; do
18389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18390     ac_cv_prog_CYTHON="$ac_prog"
18391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18392     break 2
18393   fi
18394 done
18395   done
18396 IFS=$as_save_IFS
18397
18398 fi
18399 fi
18400 CYTHON=$ac_cv_prog_CYTHON
18401 if test -n "$CYTHON"; then
18402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
18403 $as_echo "$CYTHON" >&6; }
18404 else
18405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 $as_echo "no" >&6; }
18407 fi
18408
18409
18410   test -n "$CYTHON" && break
18411 done
18412
18413 else
18414   CYTHON=${cython_path}
18415
18416 fi
18417
18418 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
18419
18420 $as_echo "#define NGHTTP2_NORETURN __attribute__((noreturn))" >>confdefs.h
18421
18422 else
18423
18424 $as_echo "#define NGHTTP2_NORETURN /**/" >>confdefs.h
18425
18426 fi
18427
18428 save_CXXFLAGS="$CXXFLAGS"
18429 CXXFLAGS=
18430
18431   ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=false
18432   ac_ext=cpp
18433 ac_cpp='$CXXCPP $CPPFLAGS'
18434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18437   ac_success=no
18438
18439
18440
18441     if test x$ac_success = xno; then
18442                 for alternative in ${ax_cxx_compile_alternatives}; do
18443       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18444         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
18445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
18446 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
18447 if eval \${$cachevar+:} false; then :
18448   $as_echo_n "(cached) " >&6
18449 else
18450   ac_save_CXX="$CXX"
18451            CXX="$CXX $switch"
18452            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h.  */
18454
18455
18456 // If the compiler admits that it is not ready for C++11, why torture it?
18457 // Hopefully, this will speed up the test.
18458
18459 #ifndef __cplusplus
18460
18461 #error "This is not a C++ compiler"
18462
18463 #elif __cplusplus < 201103L
18464
18465 #error "This is not a C++11 compiler"
18466
18467 #else
18468
18469 namespace cxx11
18470 {
18471
18472   namespace test_static_assert
18473   {
18474
18475     template <typename T>
18476     struct check
18477     {
18478       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18479     };
18480
18481   }
18482
18483   namespace test_final_override
18484   {
18485
18486     struct Base
18487     {
18488       virtual void f() {}
18489     };
18490
18491     struct Derived : public Base
18492     {
18493       virtual void f() override {}
18494     };
18495
18496   }
18497
18498   namespace test_double_right_angle_brackets
18499   {
18500
18501     template < typename T >
18502     struct check {};
18503
18504     typedef check<void> single_type;
18505     typedef check<check<void>> double_type;
18506     typedef check<check<check<void>>> triple_type;
18507     typedef check<check<check<check<void>>>> quadruple_type;
18508
18509   }
18510
18511   namespace test_decltype
18512   {
18513
18514     int
18515     f()
18516     {
18517       int a = 1;
18518       decltype(a) b = 2;
18519       return a + b;
18520     }
18521
18522   }
18523
18524   namespace test_type_deduction
18525   {
18526
18527     template < typename T1, typename T2 >
18528     struct is_same
18529     {
18530       static const bool value = false;
18531     };
18532
18533     template < typename T >
18534     struct is_same<T, T>
18535     {
18536       static const bool value = true;
18537     };
18538
18539     template < typename T1, typename T2 >
18540     auto
18541     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18542     {
18543       return a1 + a2;
18544     }
18545
18546     int
18547     test(const int c, volatile int v)
18548     {
18549       static_assert(is_same<int, decltype(0)>::value == true, "");
18550       static_assert(is_same<int, decltype(c)>::value == false, "");
18551       static_assert(is_same<int, decltype(v)>::value == false, "");
18552       auto ac = c;
18553       auto av = v;
18554       auto sumi = ac + av + 'x';
18555       auto sumf = ac + av + 1.0;
18556       static_assert(is_same<int, decltype(ac)>::value == true, "");
18557       static_assert(is_same<int, decltype(av)>::value == true, "");
18558       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18559       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18560       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18561       return (sumf > 0.0) ? sumi : add(c, v);
18562     }
18563
18564   }
18565
18566   namespace test_noexcept
18567   {
18568
18569     int f() { return 0; }
18570     int g() noexcept { return 0; }
18571
18572     static_assert(noexcept(f()) == false, "");
18573     static_assert(noexcept(g()) == true, "");
18574
18575   }
18576
18577   namespace test_constexpr
18578   {
18579
18580     template < typename CharT >
18581     unsigned long constexpr
18582     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18583     {
18584       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18585     }
18586
18587     template < typename CharT >
18588     unsigned long constexpr
18589     strlen_c(const CharT *const s) noexcept
18590     {
18591       return strlen_c_r(s, 0UL);
18592     }
18593
18594     static_assert(strlen_c("") == 0UL, "");
18595     static_assert(strlen_c("1") == 1UL, "");
18596     static_assert(strlen_c("example") == 7UL, "");
18597     static_assert(strlen_c("another\0example") == 7UL, "");
18598
18599   }
18600
18601   namespace test_rvalue_references
18602   {
18603
18604     template < int N >
18605     struct answer
18606     {
18607       static constexpr int value = N;
18608     };
18609
18610     answer<1> f(int&)       { return answer<1>(); }
18611     answer<2> f(const int&) { return answer<2>(); }
18612     answer<3> f(int&&)      { return answer<3>(); }
18613
18614     void
18615     test()
18616     {
18617       int i = 0;
18618       const int c = 0;
18619       static_assert(decltype(f(i))::value == 1, "");
18620       static_assert(decltype(f(c))::value == 2, "");
18621       static_assert(decltype(f(0))::value == 3, "");
18622     }
18623
18624   }
18625
18626   namespace test_uniform_initialization
18627   {
18628
18629     struct test
18630     {
18631       static const int zero {};
18632       static const int one {1};
18633     };
18634
18635     static_assert(test::zero == 0, "");
18636     static_assert(test::one == 1, "");
18637
18638   }
18639
18640   namespace test_lambdas
18641   {
18642
18643     void
18644     test1()
18645     {
18646       auto lambda1 = [](){};
18647       auto lambda2 = lambda1;
18648       lambda1();
18649       lambda2();
18650     }
18651
18652     int
18653     test2()
18654     {
18655       auto a = [](int i, int j){ return i + j; }(1, 2);
18656       auto b = []() -> int { return '0'; }();
18657       auto c = [=](){ return a + b; }();
18658       auto d = [&](){ return c; }();
18659       auto e = [a, &b](int x) mutable {
18660         const auto identity = [](int y){ return y; };
18661         for (auto i = 0; i < a; ++i)
18662           a += b--;
18663         return x + identity(a + b);
18664       }(0);
18665       return a + b + c + d + e;
18666     }
18667
18668     int
18669     test3()
18670     {
18671       const auto nullary = [](){ return 0; };
18672       const auto unary = [](int x){ return x; };
18673       using nullary_t = decltype(nullary);
18674       using unary_t = decltype(unary);
18675       const auto higher1st = [](nullary_t f){ return f(); };
18676       const auto higher2nd = [unary](nullary_t f1){
18677         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18678       };
18679       return higher1st(nullary) + higher2nd(nullary)(unary);
18680     }
18681
18682   }
18683
18684   namespace test_variadic_templates
18685   {
18686
18687     template <int...>
18688     struct sum;
18689
18690     template <int N0, int... N1toN>
18691     struct sum<N0, N1toN...>
18692     {
18693       static constexpr auto value = N0 + sum<N1toN...>::value;
18694     };
18695
18696     template <>
18697     struct sum<>
18698     {
18699       static constexpr auto value = 0;
18700     };
18701
18702     static_assert(sum<>::value == 0, "");
18703     static_assert(sum<1>::value == 1, "");
18704     static_assert(sum<23>::value == 23, "");
18705     static_assert(sum<1, 2>::value == 3, "");
18706     static_assert(sum<5, 5, 11>::value == 21, "");
18707     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18708
18709   }
18710
18711   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18712   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18713   // because of this.
18714   namespace test_template_alias_sfinae
18715   {
18716
18717     struct foo {};
18718
18719     template<typename T>
18720     using member = typename T::member_type;
18721
18722     template<typename T>
18723     void func(...) {}
18724
18725     template<typename T>
18726     void func(member<T>*) {}
18727
18728     void test();
18729
18730     void test() { func<foo>(0); }
18731
18732   }
18733
18734 }  // namespace cxx11
18735
18736 #endif  // __cplusplus >= 201103L
18737
18738
18739
18740
18741 // If the compiler admits that it is not ready for C++14, why torture it?
18742 // Hopefully, this will speed up the test.
18743
18744 #ifndef __cplusplus
18745
18746 #error "This is not a C++ compiler"
18747
18748 #elif __cplusplus < 201402L
18749
18750 #error "This is not a C++14 compiler"
18751
18752 #else
18753
18754 namespace cxx14
18755 {
18756
18757   namespace test_polymorphic_lambdas
18758   {
18759
18760     int
18761     test()
18762     {
18763       const auto lambda = [](auto&&... args){
18764         const auto istiny = [](auto x){
18765           return (sizeof(x) == 1UL) ? 1 : 0;
18766         };
18767         const int aretiny[] = { istiny(args)... };
18768         return aretiny[0];
18769       };
18770       return lambda(1, 1L, 1.0f, '1');
18771     }
18772
18773   }
18774
18775   namespace test_binary_literals
18776   {
18777
18778     constexpr auto ivii = 0b0000000000101010;
18779     static_assert(ivii == 42, "wrong value");
18780
18781   }
18782
18783   namespace test_generalized_constexpr
18784   {
18785
18786     template < typename CharT >
18787     constexpr unsigned long
18788     strlen_c(const CharT *const s) noexcept
18789     {
18790       auto length = 0UL;
18791       for (auto p = s; *p; ++p)
18792         ++length;
18793       return length;
18794     }
18795
18796     static_assert(strlen_c("") == 0UL, "");
18797     static_assert(strlen_c("x") == 1UL, "");
18798     static_assert(strlen_c("test") == 4UL, "");
18799     static_assert(strlen_c("another\0test") == 7UL, "");
18800
18801   }
18802
18803   namespace test_lambda_init_capture
18804   {
18805
18806     int
18807     test()
18808     {
18809       auto x = 0;
18810       const auto lambda1 = [a = x](int b){ return a + b; };
18811       const auto lambda2 = [a = lambda1(x)](){ return a; };
18812       return lambda2();
18813     }
18814
18815   }
18816
18817   namespace test_digit_separators
18818   {
18819
18820     constexpr auto ten_million = 100'000'000;
18821     static_assert(ten_million == 100000000, "");
18822
18823   }
18824
18825   namespace test_return_type_deduction
18826   {
18827
18828     auto f(int& x) { return x; }
18829     decltype(auto) g(int& x) { return x; }
18830
18831     template < typename T1, typename T2 >
18832     struct is_same
18833     {
18834       static constexpr auto value = false;
18835     };
18836
18837     template < typename T >
18838     struct is_same<T, T>
18839     {
18840       static constexpr auto value = true;
18841     };
18842
18843     int
18844     test()
18845     {
18846       auto x = 0;
18847       static_assert(is_same<int, decltype(f(x))>::value, "");
18848       static_assert(is_same<int&, decltype(g(x))>::value, "");
18849       return x;
18850     }
18851
18852   }
18853
18854 }  // namespace cxx14
18855
18856 #endif  // __cplusplus >= 201402L
18857
18858
18859
18860 _ACEOF
18861 if ac_fn_cxx_try_compile "$LINENO"; then :
18862   eval $cachevar=yes
18863 else
18864   eval $cachevar=no
18865 fi
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867            CXX="$ac_save_CXX"
18868 fi
18869 eval ac_res=\$$cachevar
18870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18871 $as_echo "$ac_res" >&6; }
18872         if eval test x\$$cachevar = xyes; then
18873           CXX="$CXX $switch"
18874           if test -n "$CXXCPP" ; then
18875             CXXCPP="$CXXCPP $switch"
18876           fi
18877           ac_success=yes
18878           break
18879         fi
18880       done
18881       if test x$ac_success = xyes; then
18882         break
18883       fi
18884     done
18885   fi
18886   ac_ext=c
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892   if test x$ax_cxx_compile_cxx14_required = xtrue; then
18893     if test x$ac_success = xno; then
18894       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
18895     fi
18896   fi
18897   if test x$ac_success = xno; then
18898     HAVE_CXX14=0
18899     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
18900 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
18901   else
18902     HAVE_CXX14=1
18903
18904 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
18905
18906   fi
18907
18908
18909
18910 CXX1XCXXFLAGS="$CXXFLAGS"
18911 CXXFLAGS="$save_CXXFLAGS"
18912
18913
18914 ac_ext=cpp
18915 ac_cpp='$CXXCPP $CPPFLAGS'
18916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18919
18920
18921 save_CXXFLAGS="$CXXFLAGS"
18922 CXXFLAGS="$CXXFLAGS $CXX1XCXXFLAGS"
18923
18924 # Check that std::future is available.
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
18926 $as_echo_n "checking whether std::future is available... " >&6; }
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h.  */
18929
18930 #include <vector>
18931 #include <future>
18932
18933 int
18934 main ()
18935 {
18936
18937 std::vector<std::future<int>> v;
18938
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 if ac_fn_cxx_try_compile "$LINENO"; then :
18944
18945 $as_echo "#define HAVE_STD_FUTURE 1" >>confdefs.h
18946
18947      have_std_future=yes
18948      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18949 $as_echo "yes" >&6; }
18950 else
18951   have_std_future=no
18952      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956
18957 # Check that std::map::emplace is available for g++-4.7.
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
18959 $as_echo_n "checking whether std::map::emplace is available... " >&6; }
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h.  */
18962
18963 #include <map>
18964
18965 int
18966 main ()
18967 {
18968
18969 std::map<int, int>().emplace(1, 2);
18970
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 if ac_fn_cxx_try_compile "$LINENO"; then :
18976
18977 $as_echo "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
18978
18979      have_std_map_emplace=yes
18980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18981 $as_echo "yes" >&6; }
18982 else
18983   have_std_map_emplace=no
18984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18985 $as_echo "no" >&6; }
18986 fi
18987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18988
18989 # Check that std::atomic_* overloads for std::shared_ptr are
18990 # available.
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::atomic_* overloads for std::shared_ptr are available" >&5
18992 $as_echo_n "checking whether std::atomic_* overloads for std::shared_ptr are available... " >&6; }
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h.  */
18995
18996 #include <memory>
18997
18998 int
18999 main ()
19000 {
19001
19002 auto a = std::make_shared<int>(1000000007);
19003 auto p = std::atomic_load(&a);
19004 ++*p;
19005 std::atomic_store(&a, p);
19006
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_cxx_try_compile "$LINENO"; then :
19012
19013 $as_echo "#define HAVE_ATOMIC_STD_SHARED_PTR 1" >>confdefs.h
19014
19015      have_atomic_std_shared_ptr=yes
19016      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19017 $as_echo "yes" >&6; }
19018 else
19019   have_atomic_std_shared_ptr=no
19020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024
19025 # Check that thread_local storage specifier is available
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread_local storage class specifier is available." >&5
19027 $as_echo_n "checking whether thread_local storage class specifier is available.... " >&6; }
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h.  */
19030
19031 int
19032 main ()
19033 {
19034
19035 thread_local int a = 0;
19036 (void)a;
19037
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 if ac_fn_cxx_try_compile "$LINENO"; then :
19043
19044 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
19045
19046      have_thread_local=yes
19047      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19048 $as_echo "yes" >&6; }
19049 else
19050   have_Thread_local=no
19051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19053 fi
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055
19056 CXXFLAGS=$save_CXXFLAGS
19057
19058 ac_ext=c
19059 ac_cpp='$CPP $CPPFLAGS'
19060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
19064
19065 # Checks for libraries.
19066
19067 # Additional libraries required for tests.
19068 TESTLDADD=
19069
19070 # Additional libraries required for programs under src directory.
19071 APPLDFLAGS=
19072
19073 case "$host_os" in
19074   *android*)
19075     android_build=yes
19076     # android does not need -pthread, but needs followng 3 libs for C++
19077     APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
19078     ;;
19079   *)
19080     PTHREAD_LDFLAGS="-pthread"
19081     APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
19082     ;;
19083 esac
19084
19085 case "$host_os" in
19086   *solaris*)
19087     APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl"
19088     ;;
19089 esac
19090
19091 # zlib
19092
19093 pkg_failed=no
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
19095 $as_echo_n "checking for ZLIB... " >&6; }
19096
19097 if test -n "$ZLIB_CFLAGS"; then
19098     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
19099  elif test -n "$PKG_CONFIG"; then
19100     if test -n "$PKG_CONFIG" && \
19101     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
19102   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
19103   ac_status=$?
19104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19105   test $ac_status = 0; }; then
19106   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
19107                       test "x$?" != "x0" && pkg_failed=yes
19108 else
19109   pkg_failed=yes
19110 fi
19111  else
19112     pkg_failed=untried
19113 fi
19114 if test -n "$ZLIB_LIBS"; then
19115     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
19116  elif test -n "$PKG_CONFIG"; then
19117     if test -n "$PKG_CONFIG" && \
19118     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
19119   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
19120   ac_status=$?
19121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122   test $ac_status = 0; }; then
19123   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
19124                       test "x$?" != "x0" && pkg_failed=yes
19125 else
19126   pkg_failed=yes
19127 fi
19128  else
19129     pkg_failed=untried
19130 fi
19131
19132
19133
19134 if test $pkg_failed = yes; then
19135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19137
19138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19139         _pkg_short_errors_supported=yes
19140 else
19141         _pkg_short_errors_supported=no
19142 fi
19143         if test $_pkg_short_errors_supported = yes; then
19144                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
19145         else
19146                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
19147         fi
19148         # Put the nasty error message in config.log where it belongs
19149         echo "$ZLIB_PKG_ERRORS" >&5
19150
19151         have_zlib=no
19152 elif test $pkg_failed = untried; then
19153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19154 $as_echo "no" >&6; }
19155         have_zlib=no
19156 else
19157         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
19158         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
19159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160 $as_echo "yes" >&6; }
19161         have_zlib=yes
19162 fi
19163
19164 if test "x${have_zlib}" = "xno"; then
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
19166 $as_echo "$as_me: $ZLIB_PKG_ERRORS" >&6;}
19167 fi
19168
19169 # dl: openssl requires libdl when it is statically linked.
19170 case "${host_os}" in
19171   *bsd*)
19172     # dlopen is in libc on *BSD
19173     ;;
19174   *)
19175     save_LIBS=$LIBS
19176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19177 $as_echo_n "checking for library containing dlopen... " >&6; }
19178 if ${ac_cv_search_dlopen+:} false; then :
19179   $as_echo_n "(cached) " >&6
19180 else
19181   ac_func_search_save_LIBS=$LIBS
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h.  */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186    Use char because int might match the return type of a GCC
19187    builtin and then its argument prototype would still apply.  */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 char dlopen ();
19192 int
19193 main ()
19194 {
19195 return dlopen ();
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 for ac_lib in '' dl; do
19201   if test -z "$ac_lib"; then
19202     ac_res="none required"
19203   else
19204     ac_res=-l$ac_lib
19205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19206   fi
19207   if ac_fn_c_try_link "$LINENO"; then :
19208   ac_cv_search_dlopen=$ac_res
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext \
19211     conftest$ac_exeext
19212   if ${ac_cv_search_dlopen+:} false; then :
19213   break
19214 fi
19215 done
19216 if ${ac_cv_search_dlopen+:} false; then :
19217
19218 else
19219   ac_cv_search_dlopen=no
19220 fi
19221 rm conftest.$ac_ext
19222 LIBS=$ac_func_search_save_LIBS
19223 fi
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19225 $as_echo "$ac_cv_search_dlopen" >&6; }
19226 ac_res=$ac_cv_search_dlopen
19227 if test "$ac_res" != no; then :
19228   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19229   APPLDFLAGS="-ldl $APPLDFLAGS"
19230 fi
19231
19232     LIBS=$save_LIBS
19233     ;;
19234 esac
19235
19236 # cunit
19237
19238 pkg_failed=no
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
19240 $as_echo_n "checking for CUNIT... " >&6; }
19241
19242 if test -n "$CUNIT_CFLAGS"; then
19243     pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
19244  elif test -n "$PKG_CONFIG"; then
19245     if test -n "$PKG_CONFIG" && \
19246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
19247   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
19248   ac_status=$?
19249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19250   test $ac_status = 0; }; then
19251   pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
19252                       test "x$?" != "x0" && pkg_failed=yes
19253 else
19254   pkg_failed=yes
19255 fi
19256  else
19257     pkg_failed=untried
19258 fi
19259 if test -n "$CUNIT_LIBS"; then
19260     pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
19261  elif test -n "$PKG_CONFIG"; then
19262     if test -n "$PKG_CONFIG" && \
19263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
19264   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
19265   ac_status=$?
19266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19267   test $ac_status = 0; }; then
19268   pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
19269                       test "x$?" != "x0" && pkg_failed=yes
19270 else
19271   pkg_failed=yes
19272 fi
19273  else
19274     pkg_failed=untried
19275 fi
19276
19277
19278
19279 if test $pkg_failed = yes; then
19280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282
19283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19284         _pkg_short_errors_supported=yes
19285 else
19286         _pkg_short_errors_supported=no
19287 fi
19288         if test $_pkg_short_errors_supported = yes; then
19289                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
19290         else
19291                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
19292         fi
19293         # Put the nasty error message in config.log where it belongs
19294         echo "$CUNIT_PKG_ERRORS" >&5
19295
19296         have_cunit=no
19297 elif test $pkg_failed = untried; then
19298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19300         have_cunit=no
19301 else
19302         CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
19303         CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
19304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19306         have_cunit=yes
19307 fi
19308 # If pkg-config does not find cunit, check it using AC_CHECK_LIB.  We
19309 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
19310 if test "x${have_cunit}" = "xno"; then
19311   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
19312 $as_echo "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
19313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
19314 $as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
19315 if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
19316   $as_echo_n "(cached) " >&6
19317 else
19318   ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lcunit  $LIBS"
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h.  */
19322
19323 /* Override any GCC internal prototype to avoid an error.
19324    Use char because int might match the return type of a GCC
19325    builtin and then its argument prototype would still apply.  */
19326 #ifdef __cplusplus
19327 extern "C"
19328 #endif
19329 char CU_initialize_registry ();
19330 int
19331 main ()
19332 {
19333 return CU_initialize_registry ();
19334   ;
19335   return 0;
19336 }
19337 _ACEOF
19338 if ac_fn_c_try_link "$LINENO"; then :
19339   ac_cv_lib_cunit_CU_initialize_registry=yes
19340 else
19341   ac_cv_lib_cunit_CU_initialize_registry=no
19342 fi
19343 rm -f core conftest.err conftest.$ac_objext \
19344     conftest$ac_exeext conftest.$ac_ext
19345 LIBS=$ac_check_lib_save_LIBS
19346 fi
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
19348 $as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
19349 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
19350   have_cunit=yes
19351 else
19352   have_cunit=no
19353 fi
19354
19355   if test "x${have_cunit}" = "xyes"; then
19356     CUNIT_LIBS="-lcunit"
19357     CUNIT_CFLAGS=""
19358
19359
19360   fi
19361 fi
19362 if test "x${have_cunit}" = "xyes"; then
19363   # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
19364   # program can be built without -lncurses, but it emits runtime
19365   # error.
19366   case "${build}" in
19367     *-apple-darwin*)
19368       CUNIT_LIBS="$CUNIT_LIBS -lncurses"
19369
19370       ;;
19371   esac
19372 fi
19373
19374  if  test "x${have_cunit}" = "xyes" ; then
19375   HAVE_CUNIT_TRUE=
19376   HAVE_CUNIT_FALSE='#'
19377 else
19378   HAVE_CUNIT_TRUE='#'
19379   HAVE_CUNIT_FALSE=
19380 fi
19381
19382
19383 # libev (for src)
19384 # libev does not have pkg-config file.  Check it in an old way.
19385 save_LIBS=$LIBS
19386 # android requires -lm for floor
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
19388 $as_echo_n "checking for ev_time in -lev... " >&6; }
19389 if ${ac_cv_lib_ev_ev_time+:} false; then :
19390   $as_echo_n "(cached) " >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lev -lm $LIBS"
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h.  */
19396
19397 /* Override any GCC internal prototype to avoid an error.
19398    Use char because int might match the return type of a GCC
19399    builtin and then its argument prototype would still apply.  */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 char ev_time ();
19404 int
19405 main ()
19406 {
19407 return ev_time ();
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 if ac_fn_c_try_link "$LINENO"; then :
19413   ac_cv_lib_ev_ev_time=yes
19414 else
19415   ac_cv_lib_ev_ev_time=no
19416 fi
19417 rm -f core conftest.err conftest.$ac_objext \
19418     conftest$ac_exeext conftest.$ac_ext
19419 LIBS=$ac_check_lib_save_LIBS
19420 fi
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
19422 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
19423 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
19424   have_libev=yes
19425 else
19426   have_libev=no
19427 fi
19428
19429 if test "x${have_libev}" = "xyes"; then
19430   ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
19431 if test "x$ac_cv_header_ev_h" = xyes; then :
19432   have_libev=yes
19433 else
19434   have_libev=no
19435 fi
19436
19437
19438   if test "x${have_libev}" = "xyes"; then
19439     LIBEV_LIBS=-lev
19440     LIBEV_CFLAGS=
19441
19442
19443   fi
19444 fi
19445 LIBS=$save_LIBS
19446
19447 # openssl (for src)
19448
19449 pkg_failed=no
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
19451 $as_echo_n "checking for OPENSSL... " >&6; }
19452
19453 if test -n "$OPENSSL_CFLAGS"; then
19454     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19455  elif test -n "$PKG_CONFIG"; then
19456     if test -n "$PKG_CONFIG" && \
19457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
19458   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
19459   ac_status=$?
19460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19461   test $ac_status = 0; }; then
19462   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
19463                       test "x$?" != "x0" && pkg_failed=yes
19464 else
19465   pkg_failed=yes
19466 fi
19467  else
19468     pkg_failed=untried
19469 fi
19470 if test -n "$OPENSSL_LIBS"; then
19471     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19472  elif test -n "$PKG_CONFIG"; then
19473     if test -n "$PKG_CONFIG" && \
19474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
19475   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
19476   ac_status=$?
19477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478   test $ac_status = 0; }; then
19479   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
19480                       test "x$?" != "x0" && pkg_failed=yes
19481 else
19482   pkg_failed=yes
19483 fi
19484  else
19485     pkg_failed=untried
19486 fi
19487
19488
19489
19490 if test $pkg_failed = yes; then
19491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19493
19494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19495         _pkg_short_errors_supported=yes
19496 else
19497         _pkg_short_errors_supported=no
19498 fi
19499         if test $_pkg_short_errors_supported = yes; then
19500                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
19501         else
19502                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
19503         fi
19504         # Put the nasty error message in config.log where it belongs
19505         echo "$OPENSSL_PKG_ERRORS" >&5
19506
19507         have_openssl=no
19508 elif test $pkg_failed = untried; then
19509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19510 $as_echo "no" >&6; }
19511         have_openssl=no
19512 else
19513         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19514         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516 $as_echo "yes" >&6; }
19517         have_openssl=yes
19518 fi
19519 if test "x${have_openssl}" = "xno"; then
19520   { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
19521 $as_echo "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
19522 fi
19523
19524 # c-ares (for src)
19525
19526 pkg_failed=no
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCARES" >&5
19528 $as_echo_n "checking for LIBCARES... " >&6; }
19529
19530 if test -n "$LIBCARES_CFLAGS"; then
19531     pkg_cv_LIBCARES_CFLAGS="$LIBCARES_CFLAGS"
19532  elif test -n "$PKG_CONFIG"; then
19533     if test -n "$PKG_CONFIG" && \
19534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
19535   ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
19536   ac_status=$?
19537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538   test $ac_status = 0; }; then
19539   pkg_cv_LIBCARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.7.5" 2>/dev/null`
19540                       test "x$?" != "x0" && pkg_failed=yes
19541 else
19542   pkg_failed=yes
19543 fi
19544  else
19545     pkg_failed=untried
19546 fi
19547 if test -n "$LIBCARES_LIBS"; then
19548     pkg_cv_LIBCARES_LIBS="$LIBCARES_LIBS"
19549  elif test -n "$PKG_CONFIG"; then
19550     if test -n "$PKG_CONFIG" && \
19551     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
19552   ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
19553   ac_status=$?
19554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19555   test $ac_status = 0; }; then
19556   pkg_cv_LIBCARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.7.5" 2>/dev/null`
19557                       test "x$?" != "x0" && pkg_failed=yes
19558 else
19559   pkg_failed=yes
19560 fi
19561  else
19562     pkg_failed=untried
19563 fi
19564
19565
19566
19567 if test $pkg_failed = yes; then
19568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19570
19571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19572         _pkg_short_errors_supported=yes
19573 else
19574         _pkg_short_errors_supported=no
19575 fi
19576         if test $_pkg_short_errors_supported = yes; then
19577                 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
19578         else
19579                 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
19580         fi
19581         # Put the nasty error message in config.log where it belongs
19582         echo "$LIBCARES_PKG_ERRORS" >&5
19583
19584         have_libcares=no
19585 elif test $pkg_failed = untried; then
19586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 $as_echo "no" >&6; }
19588         have_libcares=no
19589 else
19590         LIBCARES_CFLAGS=$pkg_cv_LIBCARES_CFLAGS
19591         LIBCARES_LIBS=$pkg_cv_LIBCARES_LIBS
19592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593 $as_echo "yes" >&6; }
19594         have_libcares=yes
19595 fi
19596 if test "x${have_libcares}" = "xno"; then
19597   { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBCARES_PKG_ERRORS" >&5
19598 $as_echo "$as_me: $LIBCARES_PKG_ERRORS" >&6;}
19599 fi
19600
19601 # libevent_openssl (for examples)
19602 # 2.0.8 is required because we use evconnlistener_set_error_cb()
19603
19604 pkg_failed=no
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT_OPENSSL" >&5
19606 $as_echo_n "checking for LIBEVENT_OPENSSL... " >&6; }
19607
19608 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
19609     pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
19610  elif test -n "$PKG_CONFIG"; then
19611     if test -n "$PKG_CONFIG" && \
19612     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
19613   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
19614   ac_status=$?
19615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19616   test $ac_status = 0; }; then
19617   pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
19618                       test "x$?" != "x0" && pkg_failed=yes
19619 else
19620   pkg_failed=yes
19621 fi
19622  else
19623     pkg_failed=untried
19624 fi
19625 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
19626     pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
19627  elif test -n "$PKG_CONFIG"; then
19628     if test -n "$PKG_CONFIG" && \
19629     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
19630   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
19631   ac_status=$?
19632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633   test $ac_status = 0; }; then
19634   pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
19635                       test "x$?" != "x0" && pkg_failed=yes
19636 else
19637   pkg_failed=yes
19638 fi
19639  else
19640     pkg_failed=untried
19641 fi
19642
19643
19644
19645 if test $pkg_failed = yes; then
19646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647 $as_echo "no" >&6; }
19648
19649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19650         _pkg_short_errors_supported=yes
19651 else
19652         _pkg_short_errors_supported=no
19653 fi
19654         if test $_pkg_short_errors_supported = yes; then
19655                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
19656         else
19657                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
19658         fi
19659         # Put the nasty error message in config.log where it belongs
19660         echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
19661
19662         have_libevent_openssl=no
19663 elif test $pkg_failed = untried; then
19664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665 $as_echo "no" >&6; }
19666         have_libevent_openssl=no
19667 else
19668         LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
19669         LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
19670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19671 $as_echo "yes" >&6; }
19672         have_libevent_openssl=yes
19673 fi
19674 if test "x${have_libevent_openssl}" = "xno"; then
19675   { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
19676 $as_echo "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
19677 fi
19678
19679 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
19680
19681 pkg_failed=no
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
19683 $as_echo_n "checking for JANSSON... " >&6; }
19684
19685 if test -n "$JANSSON_CFLAGS"; then
19686     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
19687  elif test -n "$PKG_CONFIG"; then
19688     if test -n "$PKG_CONFIG" && \
19689     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
19690   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
19691   ac_status=$?
19692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19693   test $ac_status = 0; }; then
19694   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
19695                       test "x$?" != "x0" && pkg_failed=yes
19696 else
19697   pkg_failed=yes
19698 fi
19699  else
19700     pkg_failed=untried
19701 fi
19702 if test -n "$JANSSON_LIBS"; then
19703     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
19704  elif test -n "$PKG_CONFIG"; then
19705     if test -n "$PKG_CONFIG" && \
19706     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
19707   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
19708   ac_status=$?
19709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19710   test $ac_status = 0; }; then
19711   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
19712                       test "x$?" != "x0" && pkg_failed=yes
19713 else
19714   pkg_failed=yes
19715 fi
19716  else
19717     pkg_failed=untried
19718 fi
19719
19720
19721
19722 if test $pkg_failed = yes; then
19723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19724 $as_echo "no" >&6; }
19725
19726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19727         _pkg_short_errors_supported=yes
19728 else
19729         _pkg_short_errors_supported=no
19730 fi
19731         if test $_pkg_short_errors_supported = yes; then
19732                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
19733         else
19734                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
19735         fi
19736         # Put the nasty error message in config.log where it belongs
19737         echo "$JANSSON_PKG_ERRORS" >&5
19738
19739         have_jansson=no
19740 elif test $pkg_failed = untried; then
19741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742 $as_echo "no" >&6; }
19743         have_jansson=no
19744 else
19745         JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
19746         JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
19747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19748 $as_echo "yes" >&6; }
19749         have_jansson=yes
19750 fi
19751 if test "x${have_jansson}" = "xyes"; then
19752
19753 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
19754
19755 else
19756   { $as_echo "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
19757 $as_echo "$as_me: $JANSSON_PKG_ERRORS" >&6;}
19758 fi
19759
19760
19761 #  libsystemd (for src/nghttpx)
19762 have_libsystemd=no
19763 if test "x${request_systemd}" != "xno"; then
19764
19765 pkg_failed=no
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
19767 $as_echo_n "checking for SYSTEMD... " >&6; }
19768
19769 if test -n "$SYSTEMD_CFLAGS"; then
19770     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19771  elif test -n "$PKG_CONFIG"; then
19772     if test -n "$PKG_CONFIG" && \
19773     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
19774   ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
19775   ac_status=$?
19776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19777   test $ac_status = 0; }; then
19778   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
19779                       test "x$?" != "x0" && pkg_failed=yes
19780 else
19781   pkg_failed=yes
19782 fi
19783  else
19784     pkg_failed=untried
19785 fi
19786 if test -n "$SYSTEMD_LIBS"; then
19787     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19788  elif test -n "$PKG_CONFIG"; then
19789     if test -n "$PKG_CONFIG" && \
19790     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
19791   ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
19792   ac_status=$?
19793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19794   test $ac_status = 0; }; then
19795   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
19796                       test "x$?" != "x0" && pkg_failed=yes
19797 else
19798   pkg_failed=yes
19799 fi
19800  else
19801     pkg_failed=untried
19802 fi
19803
19804
19805
19806 if test $pkg_failed = yes; then
19807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19809
19810 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19811         _pkg_short_errors_supported=yes
19812 else
19813         _pkg_short_errors_supported=no
19814 fi
19815         if test $_pkg_short_errors_supported = yes; then
19816                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
19817         else
19818                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
19819         fi
19820         # Put the nasty error message in config.log where it belongs
19821         echo "$SYSTEMD_PKG_ERRORS" >&5
19822
19823         have_libsystemd=no
19824 elif test $pkg_failed = untried; then
19825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 $as_echo "no" >&6; }
19827         have_libsystemd=no
19828 else
19829         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19830         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19832 $as_echo "yes" >&6; }
19833         have_libsystemd=yes
19834 fi
19835   if test "x${have_libsystemd}" = "xyes"; then
19836
19837 $as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
19838
19839   else
19840     { $as_echo "$as_me:${as_lineno-$LINENO}: $SYSTEMD_PKG_ERRORS" >&5
19841 $as_echo "$as_me: $SYSTEMD_PKG_ERRORS" >&6;}
19842   fi
19843 fi
19844
19845 if test "x${request_systemd}" = "xyes" &&
19846    test "x${have_libsystemd}" != "xyes"; then
19847   as_fn_error $? "systemd was requested (--with-systemd) but not found" "$LINENO" 5
19848 fi
19849
19850 # libxml2 (for src/nghttp)
19851
19852 pkg_failed=no
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19854 $as_echo_n "checking for LIBXML2... " >&6; }
19855
19856 if test -n "$LIBXML2_CFLAGS"; then
19857     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19858  elif test -n "$PKG_CONFIG"; then
19859     if test -n "$PKG_CONFIG" && \
19860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
19861   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
19862   ac_status=$?
19863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864   test $ac_status = 0; }; then
19865   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.26" 2>/dev/null`
19866                       test "x$?" != "x0" && pkg_failed=yes
19867 else
19868   pkg_failed=yes
19869 fi
19870  else
19871     pkg_failed=untried
19872 fi
19873 if test -n "$LIBXML2_LIBS"; then
19874     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19875  elif test -n "$PKG_CONFIG"; then
19876     if test -n "$PKG_CONFIG" && \
19877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
19878   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
19879   ac_status=$?
19880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881   test $ac_status = 0; }; then
19882   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.26" 2>/dev/null`
19883                       test "x$?" != "x0" && pkg_failed=yes
19884 else
19885   pkg_failed=yes
19886 fi
19887  else
19888     pkg_failed=untried
19889 fi
19890
19891
19892
19893 if test $pkg_failed = yes; then
19894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19895 $as_echo "no" >&6; }
19896
19897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19898         _pkg_short_errors_supported=yes
19899 else
19900         _pkg_short_errors_supported=no
19901 fi
19902         if test $_pkg_short_errors_supported = yes; then
19903                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
19904         else
19905                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
19906         fi
19907         # Put the nasty error message in config.log where it belongs
19908         echo "$LIBXML2_PKG_ERRORS" >&5
19909
19910         have_libxml2=no
19911 elif test $pkg_failed = untried; then
19912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19914         have_libxml2=no
19915 else
19916         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19917         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19919 $as_echo "yes" >&6; }
19920         have_libxml2=yes
19921 fi
19922 if test "x${have_libxml2}" = "xyes"; then
19923
19924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
19925
19926 else
19927   { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBXML2_PKG_ERRORS" >&5
19928 $as_echo "$as_me: $LIBXML2_PKG_ERRORS" >&6;}
19929 fi
19930
19931 if test "x${request_libxml2}" = "xyes" &&
19932    test "x${have_libxml2}" != "xyes"; then
19933   as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
19934 fi
19935
19936  if  test "x${have_libxml2}" = "xyes" ; then
19937   HAVE_LIBXML2_TRUE=
19938   HAVE_LIBXML2_FALSE='#'
19939 else
19940   HAVE_LIBXML2_TRUE='#'
19941   HAVE_LIBXML2_FALSE=
19942 fi
19943
19944
19945 # jemalloc
19946 have_jemalloc=no
19947 if test "x${request_jemalloc}" != "xno"; then
19948   save_LIBS=$LIBS
19949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
19950 $as_echo_n "checking for library containing malloc_stats_print... " >&6; }
19951 if ${ac_cv_search_malloc_stats_print+:} false; then :
19952   $as_echo_n "(cached) " >&6
19953 else
19954   ac_func_search_save_LIBS=$LIBS
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h.  */
19957
19958 /* Override any GCC internal prototype to avoid an error.
19959    Use char because int might match the return type of a GCC
19960    builtin and then its argument prototype would still apply.  */
19961 #ifdef __cplusplus
19962 extern "C"
19963 #endif
19964 char malloc_stats_print ();
19965 int
19966 main ()
19967 {
19968 return malloc_stats_print ();
19969   ;
19970   return 0;
19971 }
19972 _ACEOF
19973 for ac_lib in '' jemalloc; do
19974   if test -z "$ac_lib"; then
19975     ac_res="none required"
19976   else
19977     ac_res=-l$ac_lib
19978     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
19979   fi
19980   if ac_fn_c_try_link "$LINENO"; then :
19981   ac_cv_search_malloc_stats_print=$ac_res
19982 fi
19983 rm -f core conftest.err conftest.$ac_objext \
19984     conftest$ac_exeext
19985   if ${ac_cv_search_malloc_stats_print+:} false; then :
19986   break
19987 fi
19988 done
19989 if ${ac_cv_search_malloc_stats_print+:} false; then :
19990
19991 else
19992   ac_cv_search_malloc_stats_print=no
19993 fi
19994 rm conftest.$ac_ext
19995 LIBS=$ac_func_search_save_LIBS
19996 fi
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
19998 $as_echo "$ac_cv_search_malloc_stats_print" >&6; }
19999 ac_res=$ac_cv_search_malloc_stats_print
20000 if test "$ac_res" != no; then :
20001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20002   have_jemalloc=yes
20003 fi
20004
20005
20006   if test "x${have_jemalloc}" = "xyes"; then
20007     jemalloc_libs=${ac_cv_search_malloc_stats_print}
20008   else
20009     # On Darwin, malloc_stats_print is je_malloc_stats_print
20010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
20011 $as_echo_n "checking for library containing je_malloc_stats_print... " >&6; }
20012 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20013   $as_echo_n "(cached) " >&6
20014 else
20015   ac_func_search_save_LIBS=$LIBS
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h.  */
20018
20019 /* Override any GCC internal prototype to avoid an error.
20020    Use char because int might match the return type of a GCC
20021    builtin and then its argument prototype would still apply.  */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 char je_malloc_stats_print ();
20026 int
20027 main ()
20028 {
20029 return je_malloc_stats_print ();
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 for ac_lib in '' jemalloc; do
20035   if test -z "$ac_lib"; then
20036     ac_res="none required"
20037   else
20038     ac_res=-l$ac_lib
20039     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
20040   fi
20041   if ac_fn_c_try_link "$LINENO"; then :
20042   ac_cv_search_je_malloc_stats_print=$ac_res
20043 fi
20044 rm -f core conftest.err conftest.$ac_objext \
20045     conftest$ac_exeext
20046   if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20047   break
20048 fi
20049 done
20050 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20051
20052 else
20053   ac_cv_search_je_malloc_stats_print=no
20054 fi
20055 rm conftest.$ac_ext
20056 LIBS=$ac_func_search_save_LIBS
20057 fi
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
20059 $as_echo "$ac_cv_search_je_malloc_stats_print" >&6; }
20060 ac_res=$ac_cv_search_je_malloc_stats_print
20061 if test "$ac_res" != no; then :
20062   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20063   have_jemalloc=yes
20064 fi
20065
20066
20067     if test "x${have_jemalloc}" = "xyes"; then
20068       jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
20069     fi
20070   fi
20071
20072   LIBS=$save_LIBS
20073
20074   if test "x${have_jemalloc}" = "xyes" &&
20075      test "x${jemalloc_libs}" != "xnone required"; then
20076     JEMALLOC_LIBS=${jemalloc_libs}
20077
20078   fi
20079 fi
20080
20081 if test "x${request_jemalloc}" = "xyes" &&
20082    test "x${have_jemalloc}" != "xyes"; then
20083   as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
20084 fi
20085
20086 # Check Boost Asio library
20087 have_asio_lib=no
20088
20089 if test "x${request_asio_lib}" = "xyes"; then
20090
20091
20092 # Check whether --with-boost was given.
20093 if test "${with_boost+set}" = set; then :
20094   withval=$with_boost;
20095     if test "$withval" = "no"; then
20096         want_boost="no"
20097     elif test "$withval" = "yes"; then
20098         want_boost="yes"
20099         ac_boost_path=""
20100     else
20101         want_boost="yes"
20102         ac_boost_path="$withval"
20103     fi
20104
20105 else
20106   want_boost="yes"
20107 fi
20108
20109
20110
20111
20112 # Check whether --with-boost-libdir was given.
20113 if test "${with_boost_libdir+set}" = set; then :
20114   withval=$with_boost_libdir;
20115         if test -d "$withval"
20116         then
20117                 ac_boost_lib_path="$withval"
20118         else
20119                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
20120         fi
20121
20122 else
20123   ac_boost_lib_path=""
20124
20125 fi
20126
20127
20128 if test "x$want_boost" = "xyes"; then
20129     boost_lib_version_req=1.54.0
20130     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20131     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20132     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20133     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20134     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20135         boost_lib_version_req_sub_minor="0"
20136         fi
20137     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
20139 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
20140     succeeded=no
20141
20142                         libsubdirs="lib"
20143     ax_arch=`uname -m`
20144     case $ax_arch in
20145       x86_64)
20146         libsubdirs="lib64 libx32 lib lib64"
20147         ;;
20148       ppc64|s390x|sparc64|aarch64|ppc64le)
20149         libsubdirs="lib64 lib lib64 ppc64le"
20150         ;;
20151     esac
20152
20153
20154     libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
20155
20156     case ${host_cpu} in
20157       i?86)
20158         libsubdirs="lib/i386-${host_os} $libsubdirs"
20159         ;;
20160     esac
20161
20162                 if test "$ac_boost_path" != ""; then
20163         BOOST_CPPFLAGS="-I$ac_boost_path/include"
20164         for ac_boost_path_tmp in $libsubdirs; do
20165                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
20166                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
20167                         break
20168                 fi
20169         done
20170     elif test "$cross_compiling" != yes; then
20171         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
20172             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20173                 for libsubdir in $libsubdirs ; do
20174                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20175                 done
20176                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
20177                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20178                 break;
20179             fi
20180         done
20181     fi
20182
20183             if test "$ac_boost_lib_path" != ""; then
20184        BOOST_LDFLAGS="-L$ac_boost_lib_path"
20185     fi
20186
20187     CPPFLAGS_SAVED="$CPPFLAGS"
20188     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20189     export CPPFLAGS
20190
20191     LDFLAGS_SAVED="$LDFLAGS"
20192     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20193     export LDFLAGS
20194
20195
20196     ac_ext=cpp
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20201
20202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h.  */
20204
20205     #include <boost/version.hpp>
20206
20207 int
20208 main ()
20209 {
20210
20211     #if BOOST_VERSION >= $WANT_BOOST_VERSION
20212     // Everything is okay
20213     #else
20214     #  error Boost version is too old
20215     #endif
20216
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 if ac_fn_cxx_try_compile "$LINENO"; then :
20222
20223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224 $as_echo "yes" >&6; }
20225     succeeded=yes
20226     found_system=yes
20227
20228 fi
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230     ac_ext=c
20231 ac_cpp='$CPP $CPPFLAGS'
20232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20235
20236
20237
20238
20239             if test "x$succeeded" != "xyes"; then
20240         _version=0
20241         if test "$ac_boost_path" != ""; then
20242             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20243                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20244                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20245                     V_CHECK=`expr $_version_tmp \> $_version`
20246                     if test "$V_CHECK" = "1" ; then
20247                         _version=$_version_tmp
20248                     fi
20249                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20250                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20251                 done
20252             fi
20253         else
20254             if test "$cross_compiling" != yes; then
20255                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
20256                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20257                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20258                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20259                             V_CHECK=`expr $_version_tmp \> $_version`
20260                             if test "$V_CHECK" = "1" ; then
20261                                 _version=$_version_tmp
20262                                 best_path=$ac_boost_path
20263                             fi
20264                         done
20265                     fi
20266                 done
20267
20268                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20269                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20270                 if test "$ac_boost_lib_path" = ""; then
20271                     for libsubdir in $libsubdirs ; do
20272                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20273                     done
20274                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
20275                 fi
20276             fi
20277
20278             if test "x$BOOST_ROOT" != "x"; then
20279                 for libsubdir in $libsubdirs ; do
20280                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20281                 done
20282                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
20283                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20284                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20285                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20286                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
20287                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
20288                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
20289 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20290                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
20291                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
20292                     fi
20293                 fi
20294             fi
20295         fi
20296
20297         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20298         export CPPFLAGS
20299         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20300         export LDFLAGS
20301
20302         ac_ext=cpp
20303 ac_cpp='$CXXCPP $CPPFLAGS'
20304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20307
20308             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309 /* end confdefs.h.  */
20310
20311         #include <boost/version.hpp>
20312
20313 int
20314 main ()
20315 {
20316
20317         #if BOOST_VERSION >= $WANT_BOOST_VERSION
20318         // Everything is okay
20319         #else
20320         #  error Boost version is too old
20321         #endif
20322
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 if ac_fn_cxx_try_compile "$LINENO"; then :
20328
20329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20330 $as_echo "yes" >&6; }
20331         succeeded=yes
20332         found_system=yes
20333
20334 fi
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336         ac_ext=c
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341
20342     fi
20343
20344     if test "$succeeded" != "yes" ; then
20345         if test "$_version" = "0" ; then
20346             { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20347 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
20348         else
20349             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
20350 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20351         fi
20352         # execute ACTION-IF-NOT-FOUND (if present):
20353         have_boost_base=no
20354     else
20355
20356
20357
20358 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
20359
20360         # execute ACTION-IF-FOUND (if present):
20361         have_boost_base=yes
20362     fi
20363
20364     CPPFLAGS="$CPPFLAGS_SAVED"
20365     LDFLAGS="$LDFLAGS_SAVED"
20366 fi
20367
20368
20369
20370   if test "x${have_boost_base}" = "xyes"; then
20371
20372
20373 # Check whether --with-boost-asio was given.
20374 if test "${with_boost_asio+set}" = set; then :
20375   withval=$with_boost_asio;
20376         if test "$withval" = "no"; then
20377                         want_boost="no"
20378         elif test "$withval" = "yes"; then
20379             want_boost="yes"
20380             ax_boost_user_asio_lib=""
20381         else
20382                     want_boost="yes"
20383                 ax_boost_user_asio_lib="$withval"
20384                 fi
20385
20386 else
20387   want_boost="yes"
20388
20389 fi
20390
20391
20392         if test "x$want_boost" = "xyes"; then
20393
20394                 CPPFLAGS_SAVED="$CPPFLAGS"
20395                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20396                 export CPPFLAGS
20397
20398                 LDFLAGS_SAVED="$LDFLAGS"
20399                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20400                 export LDFLAGS
20401
20402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
20403 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
20404 if ${ax_cv_boost_asio+:} false; then :
20405   $as_echo_n "(cached) " >&6
20406 else
20407   ac_ext=cpp
20408 ac_cpp='$CXXCPP $CPPFLAGS'
20409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20412
20413                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h.  */
20415  #include <boost/asio.hpp>
20416
20417 int
20418 main ()
20419 {
20420
20421
20422                                     boost::asio::io_service io;
20423                                     boost::system::error_code timer_result;
20424                                     boost::asio::deadline_timer t(io);
20425                                     t.cancel();
20426                                     io.run_one();
20427                                                                         return 0;
20428
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_cxx_try_compile "$LINENO"; then :
20434   ax_cv_boost_asio=yes
20435 else
20436   ax_cv_boost_asio=no
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439          ac_ext=c
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20444
20445
20446 fi
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
20448 $as_echo "$ax_cv_boost_asio" >&6; }
20449                 if test "x$ax_cv_boost_asio" = "xyes"; then
20450
20451 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
20452
20453                         BN=boost_system
20454                         BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20455             if test "x$ax_boost_user_asio_lib" = "x"; then
20456                                 for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do
20457                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
20459 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
20460 if eval \${$as_ac_Lib+:} false; then :
20461   $as_echo_n "(cached) " >&6
20462 else
20463   ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-l$ax_lib  $LIBS"
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h.  */
20467
20468
20469 int
20470 main ()
20471 {
20472 return main ();
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 if ac_fn_c_try_link "$LINENO"; then :
20478   eval "$as_ac_Lib=yes"
20479 else
20480   eval "$as_ac_Lib=no"
20481 fi
20482 rm -f core conftest.err conftest.$ac_objext \
20483     conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 eval ac_res=\$$as_ac_Lib
20487                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20488 $as_echo "$ac_res" >&6; }
20489 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20490   BOOST_ASIO_LIB="-l$ax_lib"  link_thread="yes" break
20491 else
20492   link_thread="no"
20493 fi
20494
20495                                 done
20496             else
20497                for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
20498                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
20500 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
20501 if eval \${$as_ac_Lib+:} false; then :
20502   $as_echo_n "(cached) " >&6
20503 else
20504   ac_check_lib_save_LIBS=$LIBS
20505 LIBS="-l$ax_lib  $LIBS"
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h.  */
20508
20509
20510 int
20511 main ()
20512 {
20513 return main ();
20514   ;
20515   return 0;
20516 }
20517 _ACEOF
20518 if ac_fn_c_try_link "$LINENO"; then :
20519   eval "$as_ac_Lib=yes"
20520 else
20521   eval "$as_ac_Lib=no"
20522 fi
20523 rm -f core conftest.err conftest.$ac_objext \
20524     conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20526 fi
20527 eval ac_res=\$$as_ac_Lib
20528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20529 $as_echo "$ac_res" >&6; }
20530 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20531   BOOST_ASIO_LIB="-l$ax_lib"  link_asio="yes" break
20532 else
20533   link_asio="no"
20534 fi
20535
20536                   done
20537
20538             fi
20539             if test "x$ax_lib" = "x"; then
20540                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20541             fi
20542                         if test "x$link_asio" = "xno"; then
20543                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20544                         fi
20545                 fi
20546
20547                 CPPFLAGS="$CPPFLAGS_SAVED"
20548         LDFLAGS="$LDFLAGS_SAVED"
20549         fi
20550
20551
20552
20553 # Check whether --with-boost-system was given.
20554 if test "${with_boost_system+set}" = set; then :
20555   withval=$with_boost_system;
20556         if test "$withval" = "no"; then
20557                         want_boost="no"
20558         elif test "$withval" = "yes"; then
20559             want_boost="yes"
20560             ax_boost_user_system_lib=""
20561         else
20562                     want_boost="yes"
20563                 ax_boost_user_system_lib="$withval"
20564                 fi
20565
20566 else
20567   want_boost="yes"
20568
20569 fi
20570
20571
20572         if test "x$want_boost" = "xyes"; then
20573
20574
20575                 CPPFLAGS_SAVED="$CPPFLAGS"
20576                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20577                 export CPPFLAGS
20578
20579                 LDFLAGS_SAVED="$LDFLAGS"
20580                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20581                 export LDFLAGS
20582
20583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
20584 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
20585 if ${ax_cv_boost_system+:} false; then :
20586   $as_echo_n "(cached) " >&6
20587 else
20588   ac_ext=cpp
20589 ac_cpp='$CXXCPP $CPPFLAGS'
20590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20593
20594                          CXXFLAGS_SAVE=$CXXFLAGS
20595
20596                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h.  */
20598 #include <boost/system/error_code.hpp>
20599 int
20600 main ()
20601 {
20602 boost::system::system_category
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 if ac_fn_cxx_try_compile "$LINENO"; then :
20608   ax_cv_boost_system=yes
20609 else
20610   ax_cv_boost_system=no
20611 fi
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613                          CXXFLAGS=$CXXFLAGS_SAVE
20614              ac_ext=c
20615 ac_cpp='$CPP $CPPFLAGS'
20616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619
20620
20621 fi
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
20623 $as_echo "$ax_cv_boost_system" >&6; }
20624                 if test "x$ax_cv_boost_system" = "xyes"; then
20625
20626
20627
20628 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
20629
20630             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20631
20632                         LDFLAGS_SAVE=$LDFLAGS
20633             if test "x$ax_boost_user_system_lib" = "x"; then
20634                 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
20635                      ax_lib=${libextension}
20636                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20638 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20639 if eval \${$as_ac_Lib+:} false; then :
20640   $as_echo_n "(cached) " >&6
20641 else
20642   ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-l$ax_lib  $LIBS"
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h.  */
20646
20647 /* Override any GCC internal prototype to avoid an error.
20648    Use char because int might match the return type of a GCC
20649    builtin and then its argument prototype would still apply.  */
20650 #ifdef __cplusplus
20651 extern "C"
20652 #endif
20653 char exit ();
20654 int
20655 main ()
20656 {
20657 return exit ();
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 if ac_fn_c_try_link "$LINENO"; then :
20663   eval "$as_ac_Lib=yes"
20664 else
20665   eval "$as_ac_Lib=no"
20666 fi
20667 rm -f core conftest.err conftest.$ac_objext \
20668     conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20670 fi
20671 eval ac_res=\$$as_ac_Lib
20672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20673 $as_echo "$ac_res" >&6; }
20674 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20675   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
20676 else
20677   link_system="no"
20678 fi
20679
20680                                 done
20681                 if test "x$link_system" != "xyes"; then
20682                 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
20683                      ax_lib=${libextension}
20684                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20686 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20687 if eval \${$as_ac_Lib+:} false; then :
20688   $as_echo_n "(cached) " >&6
20689 else
20690   ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-l$ax_lib  $LIBS"
20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h.  */
20694
20695 /* Override any GCC internal prototype to avoid an error.
20696    Use char because int might match the return type of a GCC
20697    builtin and then its argument prototype would still apply.  */
20698 #ifdef __cplusplus
20699 extern "C"
20700 #endif
20701 char exit ();
20702 int
20703 main ()
20704 {
20705 return exit ();
20706   ;
20707   return 0;
20708 }
20709 _ACEOF
20710 if ac_fn_c_try_link "$LINENO"; then :
20711   eval "$as_ac_Lib=yes"
20712 else
20713   eval "$as_ac_Lib=no"
20714 fi
20715 rm -f core conftest.err conftest.$ac_objext \
20716     conftest$ac_exeext conftest.$ac_ext
20717 LIBS=$ac_check_lib_save_LIBS
20718 fi
20719 eval ac_res=\$$as_ac_Lib
20720                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20721 $as_echo "$ac_res" >&6; }
20722 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20723   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
20724 else
20725   link_system="no"
20726 fi
20727
20728                                 done
20729                 fi
20730
20731             else
20732                for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
20733                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20735 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20736 if eval \${$as_ac_Lib+:} false; then :
20737   $as_echo_n "(cached) " >&6
20738 else
20739   ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-l$ax_lib  $LIBS"
20741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742 /* end confdefs.h.  */
20743
20744 /* Override any GCC internal prototype to avoid an error.
20745    Use char because int might match the return type of a GCC
20746    builtin and then its argument prototype would still apply.  */
20747 #ifdef __cplusplus
20748 extern "C"
20749 #endif
20750 char exit ();
20751 int
20752 main ()
20753 {
20754 return exit ();
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 if ac_fn_c_try_link "$LINENO"; then :
20760   eval "$as_ac_Lib=yes"
20761 else
20762   eval "$as_ac_Lib=no"
20763 fi
20764 rm -f core conftest.err conftest.$ac_objext \
20765     conftest$ac_exeext conftest.$ac_ext
20766 LIBS=$ac_check_lib_save_LIBS
20767 fi
20768 eval ac_res=\$$as_ac_Lib
20769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20770 $as_echo "$ac_res" >&6; }
20771 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20772   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
20773 else
20774   link_system="no"
20775 fi
20776
20777                   done
20778
20779             fi
20780             if test "x$ax_lib" = "x"; then
20781                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20782             fi
20783                         if test "x$link_system" = "xno"; then
20784                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20785                         fi
20786                 fi
20787
20788                 CPPFLAGS="$CPPFLAGS_SAVED"
20789         LDFLAGS="$LDFLAGS_SAVED"
20790         fi
20791
20792
20793
20794 # Check whether --with-boost-thread was given.
20795 if test "${with_boost_thread+set}" = set; then :
20796   withval=$with_boost_thread;
20797         if test "$withval" = "no"; then
20798                         want_boost="no"
20799         elif test "$withval" = "yes"; then
20800             want_boost="yes"
20801             ax_boost_user_thread_lib=""
20802         else
20803                     want_boost="yes"
20804                 ax_boost_user_thread_lib="$withval"
20805                 fi
20806
20807 else
20808   want_boost="yes"
20809
20810 fi
20811
20812
20813         if test "x$want_boost" = "xyes"; then
20814
20815
20816                 CPPFLAGS_SAVED="$CPPFLAGS"
20817                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20818                 export CPPFLAGS
20819
20820                 LDFLAGS_SAVED="$LDFLAGS"
20821                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20822                 export LDFLAGS
20823
20824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
20825 $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
20826 if ${ax_cv_boost_thread+:} false; then :
20827   $as_echo_n "(cached) " >&6
20828 else
20829   ac_ext=cpp
20830 ac_cpp='$CXXCPP $CPPFLAGS'
20831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20834
20835                          CXXFLAGS_SAVE=$CXXFLAGS
20836
20837                          if test "x$host_os" = "xsolaris" ; then
20838                                  CXXFLAGS="-pthreads $CXXFLAGS"
20839                          elif test "x$host_os" = "xmingw32" ; then
20840                                  CXXFLAGS="-mthreads $CXXFLAGS"
20841                          else
20842                                 CXXFLAGS="-pthread $CXXFLAGS"
20843                          fi
20844                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h.  */
20846 #include <boost/thread/thread.hpp>
20847 int
20848 main ()
20849 {
20850 boost::thread_group thrds;
20851                                    return 0;
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 if ac_fn_cxx_try_compile "$LINENO"; then :
20857   ax_cv_boost_thread=yes
20858 else
20859   ax_cv_boost_thread=no
20860 fi
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862                          CXXFLAGS=$CXXFLAGS_SAVE
20863              ac_ext=c
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868
20869
20870 fi
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
20872 $as_echo "$ax_cv_boost_thread" >&6; }
20873                 if test "x$ax_cv_boost_thread" = "xyes"; then
20874            if test "x$host_os" = "xsolaris" ; then
20875                           BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
20876                    elif test "x$host_os" = "xmingw32" ; then
20877                           BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
20878                    else
20879                           BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
20880                    fi
20881
20882
20883
20884
20885 $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
20886
20887             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20888
20889                         LDFLAGS_SAVE=$LDFLAGS
20890                         case "x$host_os" in
20891                           *bsd* )
20892                                LDFLAGS="-pthread $LDFLAGS"
20893                           break;
20894                           ;;
20895                         esac
20896             if test "x$ax_boost_user_thread_lib" = "x"; then
20897                 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
20898                      ax_lib=${libextension}
20899                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20901 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20902 if eval \${$as_ac_Lib+:} false; then :
20903   $as_echo_n "(cached) " >&6
20904 else
20905   ac_check_lib_save_LIBS=$LIBS
20906 LIBS="-l$ax_lib  $LIBS"
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h.  */
20909
20910 /* Override any GCC internal prototype to avoid an error.
20911    Use char because int might match the return type of a GCC
20912    builtin and then its argument prototype would still apply.  */
20913 #ifdef __cplusplus
20914 extern "C"
20915 #endif
20916 char exit ();
20917 int
20918 main ()
20919 {
20920 return exit ();
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 if ac_fn_c_try_link "$LINENO"; then :
20926   eval "$as_ac_Lib=yes"
20927 else
20928   eval "$as_ac_Lib=no"
20929 fi
20930 rm -f core conftest.err conftest.$ac_objext \
20931     conftest$ac_exeext conftest.$ac_ext
20932 LIBS=$ac_check_lib_save_LIBS
20933 fi
20934 eval ac_res=\$$as_ac_Lib
20935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20936 $as_echo "$ac_res" >&6; }
20937 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20938   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
20939 else
20940   link_thread="no"
20941 fi
20942
20943                                 done
20944                 if test "x$link_thread" != "xyes"; then
20945                 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
20946                      ax_lib=${libextension}
20947                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20949 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20950 if eval \${$as_ac_Lib+:} false; then :
20951   $as_echo_n "(cached) " >&6
20952 else
20953   ac_check_lib_save_LIBS=$LIBS
20954 LIBS="-l$ax_lib  $LIBS"
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h.  */
20957
20958 /* Override any GCC internal prototype to avoid an error.
20959    Use char because int might match the return type of a GCC
20960    builtin and then its argument prototype would still apply.  */
20961 #ifdef __cplusplus
20962 extern "C"
20963 #endif
20964 char exit ();
20965 int
20966 main ()
20967 {
20968 return exit ();
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 if ac_fn_c_try_link "$LINENO"; then :
20974   eval "$as_ac_Lib=yes"
20975 else
20976   eval "$as_ac_Lib=no"
20977 fi
20978 rm -f core conftest.err conftest.$ac_objext \
20979     conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20981 fi
20982 eval ac_res=\$$as_ac_Lib
20983                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20984 $as_echo "$ac_res" >&6; }
20985 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20986   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
20987 else
20988   link_thread="no"
20989 fi
20990
20991                                 done
20992                 fi
20993
20994             else
20995                for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
20996                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20998 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20999 if eval \${$as_ac_Lib+:} false; then :
21000   $as_echo_n "(cached) " >&6
21001 else
21002   ac_check_lib_save_LIBS=$LIBS
21003 LIBS="-l$ax_lib  $LIBS"
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h.  */
21006
21007 /* Override any GCC internal prototype to avoid an error.
21008    Use char because int might match the return type of a GCC
21009    builtin and then its argument prototype would still apply.  */
21010 #ifdef __cplusplus
21011 extern "C"
21012 #endif
21013 char exit ();
21014 int
21015 main ()
21016 {
21017 return exit ();
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 if ac_fn_c_try_link "$LINENO"; then :
21023   eval "$as_ac_Lib=yes"
21024 else
21025   eval "$as_ac_Lib=no"
21026 fi
21027 rm -f core conftest.err conftest.$ac_objext \
21028     conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21030 fi
21031 eval ac_res=\$$as_ac_Lib
21032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21033 $as_echo "$ac_res" >&6; }
21034 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21035   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
21036 else
21037   link_thread="no"
21038 fi
21039
21040                   done
21041
21042             fi
21043             if test "x$ax_lib" = "x"; then
21044                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
21045             fi
21046                         if test "x$link_thread" = "xno"; then
21047                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
21048                         else
21049                            case "x$host_os" in
21050                               *bsd* )
21051                                 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
21052                               break;
21053                               ;;
21054                            esac
21055
21056                         fi
21057                 fi
21058
21059                 CPPFLAGS="$CPPFLAGS_SAVED"
21060         LDFLAGS="$LDFLAGS_SAVED"
21061         fi
21062
21063
21064     if test "x${ax_cv_boost_asio}" = "xyes" &&
21065        test "x${ax_cv_boost_system}" = "xyes" &&
21066        test "x${ax_cv_boost_thread}" = "xyes"; then
21067       have_asio_lib=yes
21068     fi
21069   fi
21070 fi
21071
21072 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL,
21073 # libev, and libc-ares.
21074 enable_app=no
21075 if test "x${request_app}" != "xno" &&
21076    test "x${have_zlib}" = "xyes" &&
21077    test "x${have_openssl}" = "xyes" &&
21078    test "x${have_libev}" = "xyes" &&
21079    test "x${have_libcares}" = "xyes"; then
21080   enable_app=yes
21081 fi
21082
21083 if test "x${request_app}" = "xyes" &&
21084    test "x${enable_app}" != "xyes"; then
21085   as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
21086 fi
21087
21088  if  test "x${enable_app}" = "xyes" ; then
21089   ENABLE_APP_TRUE=
21090   ENABLE_APP_FALSE='#'
21091 else
21092   ENABLE_APP_TRUE='#'
21093   ENABLE_APP_FALSE=
21094 fi
21095
21096
21097 enable_hpack_tools=no
21098 # HPACK tools requires jansson
21099 if test "x${request_hpack_tools}" != "xno" &&
21100    test "x${have_jansson}" = "xyes"; then
21101   enable_hpack_tools=yes
21102 fi
21103
21104 if test "x${request_hpack_tools}" = "xyes" &&
21105    test "x${enable_hpack_tools}" != "xyes"; then
21106   as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
21107 fi
21108
21109  if  test "x${enable_hpack_tools}" = "xyes" ; then
21110   ENABLE_HPACK_TOOLS_TRUE=
21111   ENABLE_HPACK_TOOLS_FALSE='#'
21112 else
21113   ENABLE_HPACK_TOOLS_TRUE='#'
21114   ENABLE_HPACK_TOOLS_FALSE=
21115 fi
21116
21117
21118 # C++ library libnghttp2_asio
21119
21120 enable_asio_lib=no
21121 if test "x${request_asio_lib}" != "xno" &&
21122    test "x${have_asio_lib}" = "xyes"; then
21123   enable_asio_lib=yes
21124 fi
21125
21126  if  test "x${enable_asio_lib}" = "xyes" ; then
21127   ENABLE_ASIO_LIB_TRUE=
21128   ENABLE_ASIO_LIB_FALSE='#'
21129 else
21130   ENABLE_ASIO_LIB_TRUE='#'
21131   ENABLE_ASIO_LIB_FALSE=
21132 fi
21133
21134
21135 # The example programs depend on OpenSSL and libevent_openssl
21136 enable_examples=no
21137 if test "x${request_examples}" != "xno" &&
21138    test "x${have_openssl}" = "xyes" &&
21139    test "x${have_libevent_openssl}" = "xyes"; then
21140   enable_examples=yes
21141 fi
21142
21143 if test "x${request_examples}" = "xyes" &&
21144    test "x${enable_examples}" != "xyes"; then
21145   as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
21146 fi
21147
21148  if  test "x${enable_examples}" = "xyes" ; then
21149   ENABLE_EXAMPLES_TRUE=
21150   ENABLE_EXAMPLES_FALSE='#'
21151 else
21152   ENABLE_EXAMPLES_TRUE='#'
21153   ENABLE_EXAMPLES_FALSE=
21154 fi
21155
21156
21157 # third-party only be built when needed
21158
21159 enable_third_party=no
21160 have_mruby=no
21161 have_neverbleed=no
21162 if test "x${enable_examples}" = "xyes" ||
21163    test "x${enable_app}" = "xyes" ||
21164    test "x${enable_hpack_tools}" = "xyes" ||
21165    test "x${enable_asio_lib}" = "xyes"; then
21166   enable_third_party=yes
21167
21168   # mruby (for src/nghttpx)
21169   if test "x${request_mruby}" = "xyes"; then
21170     # We are going to build mruby
21171     have_mruby=yes
21172
21173 $as_echo "#define HAVE_MRUBY 1" >>confdefs.h
21174
21175     LIBMRUBY_LIBS="-lmruby -lm"
21176     LIBMRUBY_CFLAGS=
21177
21178
21179   fi
21180
21181   # neverbleed (for src/nghttpx)
21182   if test "x${request_neverbleed}" = "xyes"; then
21183     have_neverbleed=yes
21184
21185 $as_echo "#define HAVE_NEVERBLEED 1" >>confdefs.h
21186
21187   fi
21188 fi
21189
21190  if  test "x${enable_third_party}" = "xyes" ; then
21191   ENABLE_THIRD_PARTY_TRUE=
21192   ENABLE_THIRD_PARTY_FALSE='#'
21193 else
21194   ENABLE_THIRD_PARTY_TRUE='#'
21195   ENABLE_THIRD_PARTY_FALSE=
21196 fi
21197
21198  if test "x${have_mruby}" = "xyes"; then
21199   HAVE_MRUBY_TRUE=
21200   HAVE_MRUBY_FALSE='#'
21201 else
21202   HAVE_MRUBY_TRUE='#'
21203   HAVE_MRUBY_FALSE=
21204 fi
21205
21206  if test "x${have_neverbleed}" = "xyes"; then
21207   HAVE_NEVERBLEED_TRUE=
21208   HAVE_NEVERBLEED_FALSE='#'
21209 else
21210   HAVE_NEVERBLEED_TRUE='#'
21211   HAVE_NEVERBLEED_FALSE=
21212 fi
21213
21214
21215 # Python bindings
21216 enable_python_bindings=no
21217 if test "x${request_python_bindings}" != "xno" &&
21218    test "x${CYTHON}" != "x" &&
21219    test "x${PYTHON}" != "x:" &&
21220    test "x${have_python_dev}" = "xyes"; then
21221   enable_python_bindings=yes
21222 fi
21223
21224 if test "x${request_python_bindings}" = "xyes" &&
21225    test "x${enable_python_bindings}" != "xyes"; then
21226   as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
21227 fi
21228
21229  if test "x${enable_python_bindings}" = "xyes"; then
21230   ENABLE_PYTHON_BINDINGS_TRUE=
21231   ENABLE_PYTHON_BINDINGS_FALSE='#'
21232 else
21233   ENABLE_PYTHON_BINDINGS_TRUE='#'
21234   ENABLE_PYTHON_BINDINGS_FALSE=
21235 fi
21236
21237
21238 # Produce cython conditional, so that we can distribute generated C
21239 # source
21240  if test "x${CYTHON}" != "x"; then
21241   HAVE_CYTHON_TRUE=
21242   HAVE_CYTHON_FALSE='#'
21243 else
21244   HAVE_CYTHON_TRUE='#'
21245   HAVE_CYTHON_FALSE=
21246 fi
21247
21248
21249 # failmalloc tests
21250 enable_failmalloc=no
21251 if test "x${request_failmalloc}" = "xyes"; then
21252   enable_failmalloc=yes
21253 fi
21254
21255  if  test "x${enable_failmalloc}" = "xyes" ; then
21256   ENABLE_FAILMALLOC_TRUE=
21257   ENABLE_FAILMALLOC_FALSE='#'
21258 else
21259   ENABLE_FAILMALLOC_TRUE='#'
21260   ENABLE_FAILMALLOC_FALSE=
21261 fi
21262
21263
21264 # Checks for header files.
21265
21266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21267 $as_echo_n "checking whether to enable assertions... " >&6; }
21268   # Check whether --enable-assert was given.
21269 if test "${enable_assert+set}" = set; then :
21270   enableval=$enable_assert; ac_enable_assert=$enableval
21271      if       test "x$enableval" = xno; then :
21272
21273 $as_echo "#define NDEBUG 1" >>confdefs.h
21274
21275 elif test "x$enableval" != xyes; then :
21276   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21277 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21278         ac_enable_assert=yes
21279 fi
21280 else
21281   ac_enable_assert=yes
21282 fi
21283
21284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21285 $as_echo "$ac_enable_assert" >&6; }
21286
21287 for ac_header in  \
21288   arpa/inet.h \
21289   fcntl.h \
21290   inttypes.h \
21291   limits.h \
21292   netdb.h \
21293   netinet/in.h \
21294   pwd.h \
21295   stddef.h \
21296   stdint.h \
21297   stdlib.h \
21298   string.h \
21299   sys/socket.h \
21300   sys/time.h \
21301   syslog.h \
21302   time.h \
21303   unistd.h \
21304
21305 do :
21306   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21307 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21308 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21309   cat >>confdefs.h <<_ACEOF
21310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21311 _ACEOF
21312
21313 fi
21314
21315 done
21316
21317
21318 # Checks for typedefs, structures, and compiler characteristics.
21319 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21320 if test "x$ac_cv_type_size_t" = xyes; then :
21321
21322 else
21323
21324 cat >>confdefs.h <<_ACEOF
21325 #define size_t unsigned int
21326 _ACEOF
21327
21328 fi
21329
21330 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21331 if test "x$ac_cv_type_ssize_t" = xyes; then :
21332
21333 else
21334
21335 cat >>confdefs.h <<_ACEOF
21336 #define ssize_t int
21337 _ACEOF
21338
21339 fi
21340
21341 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21342 case $ac_cv_c_uint8_t in #(
21343   no|yes) ;; #(
21344   *)
21345
21346 $as_echo "#define _UINT8_T 1" >>confdefs.h
21347
21348
21349 cat >>confdefs.h <<_ACEOF
21350 #define uint8_t $ac_cv_c_uint8_t
21351 _ACEOF
21352 ;;
21353   esac
21354
21355 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21356 case $ac_cv_c_uint16_t in #(
21357   no|yes) ;; #(
21358   *)
21359
21360
21361 cat >>confdefs.h <<_ACEOF
21362 #define uint16_t $ac_cv_c_uint16_t
21363 _ACEOF
21364 ;;
21365   esac
21366
21367 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21368 case $ac_cv_c_uint32_t in #(
21369   no|yes) ;; #(
21370   *)
21371
21372 $as_echo "#define _UINT32_T 1" >>confdefs.h
21373
21374
21375 cat >>confdefs.h <<_ACEOF
21376 #define uint32_t $ac_cv_c_uint32_t
21377 _ACEOF
21378 ;;
21379   esac
21380
21381 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21382 case $ac_cv_c_uint64_t in #(
21383   no|yes) ;; #(
21384   *)
21385
21386 $as_echo "#define _UINT64_T 1" >>confdefs.h
21387
21388
21389 cat >>confdefs.h <<_ACEOF
21390 #define uint64_t $ac_cv_c_uint64_t
21391 _ACEOF
21392 ;;
21393   esac
21394
21395 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
21396 case $ac_cv_c_int8_t in #(
21397   no|yes) ;; #(
21398   *)
21399
21400 cat >>confdefs.h <<_ACEOF
21401 #define int8_t $ac_cv_c_int8_t
21402 _ACEOF
21403 ;;
21404 esac
21405
21406 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
21407 case $ac_cv_c_int16_t in #(
21408   no|yes) ;; #(
21409   *)
21410
21411 cat >>confdefs.h <<_ACEOF
21412 #define int16_t $ac_cv_c_int16_t
21413 _ACEOF
21414 ;;
21415 esac
21416
21417 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
21418 case $ac_cv_c_int32_t in #(
21419   no|yes) ;; #(
21420   *)
21421
21422 cat >>confdefs.h <<_ACEOF
21423 #define int32_t $ac_cv_c_int32_t
21424 _ACEOF
21425 ;;
21426 esac
21427
21428 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21429 case $ac_cv_c_int64_t in #(
21430   no|yes) ;; #(
21431   *)
21432
21433 cat >>confdefs.h <<_ACEOF
21434 #define int64_t $ac_cv_c_int64_t
21435 _ACEOF
21436 ;;
21437 esac
21438
21439 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21440 if test "x$ac_cv_type_off_t" = xyes; then :
21441
21442 else
21443
21444 cat >>confdefs.h <<_ACEOF
21445 #define off_t long int
21446 _ACEOF
21447
21448 fi
21449
21450 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21451 if test "x$ac_cv_type_pid_t" = xyes; then :
21452
21453 else
21454
21455 cat >>confdefs.h <<_ACEOF
21456 #define pid_t int
21457 _ACEOF
21458
21459 fi
21460
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21462 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21463 if ${ac_cv_type_uid_t+:} false; then :
21464   $as_echo_n "(cached) " >&6
21465 else
21466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h.  */
21468 #include <sys/types.h>
21469
21470 _ACEOF
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472   $EGREP "uid_t" >/dev/null 2>&1; then :
21473   ac_cv_type_uid_t=yes
21474 else
21475   ac_cv_type_uid_t=no
21476 fi
21477 rm -f conftest*
21478
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21481 $as_echo "$ac_cv_type_uid_t" >&6; }
21482 if test $ac_cv_type_uid_t = no; then
21483
21484 $as_echo "#define uid_t int" >>confdefs.h
21485
21486
21487 $as_echo "#define gid_t int" >>confdefs.h
21488
21489 fi
21490
21491 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21492 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
21493
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_PTRDIFF_T 1
21496 _ACEOF
21497
21498
21499 fi
21500
21501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21502 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21503 if ${ac_cv_c_bigendian+:} false; then :
21504   $as_echo_n "(cached) " >&6
21505 else
21506   ac_cv_c_bigendian=unknown
21507     # See if we're dealing with a universal compiler.
21508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h.  */
21510 #ifndef __APPLE_CC__
21511                not a universal capable compiler
21512              #endif
21513              typedef int dummy;
21514
21515 _ACEOF
21516 if ac_fn_c_try_compile "$LINENO"; then :
21517
21518         # Check for potential -arch flags.  It is not universal unless
21519         # there are at least two -arch flags with different values.
21520         ac_arch=
21521         ac_prev=
21522         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21523          if test -n "$ac_prev"; then
21524            case $ac_word in
21525              i?86 | x86_64 | ppc | ppc64)
21526                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21527                  ac_arch=$ac_word
21528                else
21529                  ac_cv_c_bigendian=universal
21530                  break
21531                fi
21532                ;;
21533            esac
21534            ac_prev=
21535          elif test "x$ac_word" = "x-arch"; then
21536            ac_prev=arch
21537          fi
21538        done
21539 fi
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541     if test $ac_cv_c_bigendian = unknown; then
21542       # See if sys/param.h defines the BYTE_ORDER macro.
21543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h.  */
21545 #include <sys/types.h>
21546              #include <sys/param.h>
21547
21548 int
21549 main ()
21550 {
21551 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21552                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21553                      && LITTLE_ENDIAN)
21554               bogus endian macros
21555              #endif
21556
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 if ac_fn_c_try_compile "$LINENO"; then :
21562   # It does; now see whether it defined to BIG_ENDIAN or not.
21563          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h.  */
21565 #include <sys/types.h>
21566                 #include <sys/param.h>
21567
21568 int
21569 main ()
21570 {
21571 #if BYTE_ORDER != BIG_ENDIAN
21572                  not big endian
21573                 #endif
21574
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 if ac_fn_c_try_compile "$LINENO"; then :
21580   ac_cv_c_bigendian=yes
21581 else
21582   ac_cv_c_bigendian=no
21583 fi
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585 fi
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587     fi
21588     if test $ac_cv_c_bigendian = unknown; then
21589       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h.  */
21592 #include <limits.h>
21593
21594 int
21595 main ()
21596 {
21597 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21598               bogus endian macros
21599              #endif
21600
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 if ac_fn_c_try_compile "$LINENO"; then :
21606   # It does; now see whether it defined to _BIG_ENDIAN or not.
21607          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h.  */
21609 #include <limits.h>
21610
21611 int
21612 main ()
21613 {
21614 #ifndef _BIG_ENDIAN
21615                  not big endian
21616                 #endif
21617
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 if ac_fn_c_try_compile "$LINENO"; then :
21623   ac_cv_c_bigendian=yes
21624 else
21625   ac_cv_c_bigendian=no
21626 fi
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 fi
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630     fi
21631     if test $ac_cv_c_bigendian = unknown; then
21632       # Compile a test program.
21633       if test "$cross_compiling" = yes; then :
21634   # Try to guess by grepping values from an object file.
21635          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h.  */
21637 short int ascii_mm[] =
21638                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21639                 short int ascii_ii[] =
21640                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21641                 int use_ascii (int i) {
21642                   return ascii_mm[i] + ascii_ii[i];
21643                 }
21644                 short int ebcdic_ii[] =
21645                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21646                 short int ebcdic_mm[] =
21647                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21648                 int use_ebcdic (int i) {
21649                   return ebcdic_mm[i] + ebcdic_ii[i];
21650                 }
21651                 extern int foo;
21652
21653 int
21654 main ()
21655 {
21656 return use_ascii (foo) == use_ebcdic (foo);
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21663               ac_cv_c_bigendian=yes
21664             fi
21665             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21666               if test "$ac_cv_c_bigendian" = unknown; then
21667                 ac_cv_c_bigendian=no
21668               else
21669                 # finding both strings is unlikely to happen, but who knows?
21670                 ac_cv_c_bigendian=unknown
21671               fi
21672             fi
21673 fi
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 else
21676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h.  */
21678 $ac_includes_default
21679 int
21680 main ()
21681 {
21682
21683              /* Are we little or big endian?  From Harbison&Steele.  */
21684              union
21685              {
21686                long int l;
21687                char c[sizeof (long int)];
21688              } u;
21689              u.l = 1;
21690              return u.c[sizeof (long int) - 1] == 1;
21691
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 if ac_fn_c_try_run "$LINENO"; then :
21697   ac_cv_c_bigendian=no
21698 else
21699   ac_cv_c_bigendian=yes
21700 fi
21701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21702   conftest.$ac_objext conftest.beam conftest.$ac_ext
21703 fi
21704
21705     fi
21706 fi
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21708 $as_echo "$ac_cv_c_bigendian" >&6; }
21709  case $ac_cv_c_bigendian in #(
21710    yes)
21711      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21712 ;; #(
21713    no)
21714       ;; #(
21715    universal)
21716
21717 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21718
21719      ;; #(
21720    *)
21721      as_fn_error $? "unknown endianness
21722  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21723  esac
21724
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21726 $as_echo_n "checking for inline... " >&6; }
21727 if ${ac_cv_c_inline+:} false; then :
21728   $as_echo_n "(cached) " >&6
21729 else
21730   ac_cv_c_inline=no
21731 for ac_kw in inline __inline__ __inline; do
21732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h.  */
21734 #ifndef __cplusplus
21735 typedef int foo_t;
21736 static $ac_kw foo_t static_foo () {return 0; }
21737 $ac_kw foo_t foo () {return 0; }
21738 #endif
21739
21740 _ACEOF
21741 if ac_fn_c_try_compile "$LINENO"; then :
21742   ac_cv_c_inline=$ac_kw
21743 fi
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745   test "$ac_cv_c_inline" != no && break
21746 done
21747
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21750 $as_echo "$ac_cv_c_inline" >&6; }
21751
21752 case $ac_cv_c_inline in
21753   inline | yes) ;;
21754   *)
21755     case $ac_cv_c_inline in
21756       no) ac_val=;;
21757       *) ac_val=$ac_cv_c_inline;;
21758     esac
21759     cat >>confdefs.h <<_ACEOF
21760 #ifndef __cplusplus
21761 #define inline $ac_val
21762 #endif
21763 _ACEOF
21764     ;;
21765 esac
21766
21767 # Check whether --enable-largefile was given.
21768 if test "${enable_largefile+set}" = set; then :
21769   enableval=$enable_largefile;
21770 fi
21771
21772 if test "$enable_largefile" != no; then
21773
21774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21776 if ${ac_cv_sys_largefile_CC+:} false; then :
21777   $as_echo_n "(cached) " >&6
21778 else
21779   ac_cv_sys_largefile_CC=no
21780      if test "$GCC" != yes; then
21781        ac_save_CC=$CC
21782        while :; do
21783          # IRIX 6.2 and later do not support large files by default,
21784          # so use the C compiler's -n32 option if that helps.
21785          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h.  */
21787 #include <sys/types.h>
21788  /* Check that off_t can represent 2**63 - 1 correctly.
21789     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21790     since some C++ compilers masquerading as C compilers
21791     incorrectly reject 9223372036854775807.  */
21792 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21793   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21794                        && LARGE_OFF_T % 2147483647 == 1)
21795                       ? 1 : -1];
21796 int
21797 main ()
21798 {
21799
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804          if ac_fn_c_try_compile "$LINENO"; then :
21805   break
21806 fi
21807 rm -f core conftest.err conftest.$ac_objext
21808          CC="$CC -n32"
21809          if ac_fn_c_try_compile "$LINENO"; then :
21810   ac_cv_sys_largefile_CC=' -n32'; break
21811 fi
21812 rm -f core conftest.err conftest.$ac_objext
21813          break
21814        done
21815        CC=$ac_save_CC
21816        rm -f conftest.$ac_ext
21817     fi
21818 fi
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
21821   if test "$ac_cv_sys_largefile_CC" != no; then
21822     CC=$CC$ac_cv_sys_largefile_CC
21823   fi
21824
21825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21827 if ${ac_cv_sys_file_offset_bits+:} false; then :
21828   $as_echo_n "(cached) " >&6
21829 else
21830   while :; do
21831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h.  */
21833 #include <sys/types.h>
21834  /* Check that off_t can represent 2**63 - 1 correctly.
21835     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21836     since some C++ compilers masquerading as C compilers
21837     incorrectly reject 9223372036854775807.  */
21838 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21839   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21840                        && LARGE_OFF_T % 2147483647 == 1)
21841                       ? 1 : -1];
21842 int
21843 main ()
21844 {
21845
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 if ac_fn_c_try_compile "$LINENO"; then :
21851   ac_cv_sys_file_offset_bits=no; break
21852 fi
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855 /* end confdefs.h.  */
21856 #define _FILE_OFFSET_BITS 64
21857 #include <sys/types.h>
21858  /* Check that off_t can represent 2**63 - 1 correctly.
21859     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21860     since some C++ compilers masquerading as C compilers
21861     incorrectly reject 9223372036854775807.  */
21862 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21863   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21864                        && LARGE_OFF_T % 2147483647 == 1)
21865                       ? 1 : -1];
21866 int
21867 main ()
21868 {
21869
21870   ;
21871   return 0;
21872 }
21873 _ACEOF
21874 if ac_fn_c_try_compile "$LINENO"; then :
21875   ac_cv_sys_file_offset_bits=64; break
21876 fi
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878   ac_cv_sys_file_offset_bits=unknown
21879   break
21880 done
21881 fi
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21884 case $ac_cv_sys_file_offset_bits in #(
21885   no | unknown) ;;
21886   *)
21887 cat >>confdefs.h <<_ACEOF
21888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21889 _ACEOF
21890 ;;
21891 esac
21892 rm -rf conftest*
21893   if test $ac_cv_sys_file_offset_bits = unknown; then
21894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21896 if ${ac_cv_sys_large_files+:} false; then :
21897   $as_echo_n "(cached) " >&6
21898 else
21899   while :; do
21900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21901 /* end confdefs.h.  */
21902 #include <sys/types.h>
21903  /* Check that off_t can represent 2**63 - 1 correctly.
21904     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21905     since some C++ compilers masquerading as C compilers
21906     incorrectly reject 9223372036854775807.  */
21907 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21908   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21909                        && LARGE_OFF_T % 2147483647 == 1)
21910                       ? 1 : -1];
21911 int
21912 main ()
21913 {
21914
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 if ac_fn_c_try_compile "$LINENO"; then :
21920   ac_cv_sys_large_files=no; break
21921 fi
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h.  */
21925 #define _LARGE_FILES 1
21926 #include <sys/types.h>
21927  /* Check that off_t can represent 2**63 - 1 correctly.
21928     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21929     since some C++ compilers masquerading as C compilers
21930     incorrectly reject 9223372036854775807.  */
21931 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21932   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21933                        && LARGE_OFF_T % 2147483647 == 1)
21934                       ? 1 : -1];
21935 int
21936 main ()
21937 {
21938
21939   ;
21940   return 0;
21941 }
21942 _ACEOF
21943 if ac_fn_c_try_compile "$LINENO"; then :
21944   ac_cv_sys_large_files=1; break
21945 fi
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947   ac_cv_sys_large_files=unknown
21948   break
21949 done
21950 fi
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21952 $as_echo "$ac_cv_sys_large_files" >&6; }
21953 case $ac_cv_sys_large_files in #(
21954   no | unknown) ;;
21955   *)
21956 cat >>confdefs.h <<_ACEOF
21957 #define _LARGE_FILES $ac_cv_sys_large_files
21958 _ACEOF
21959 ;;
21960 esac
21961 rm -rf conftest*
21962   fi
21963
21964
21965 fi
21966
21967
21968 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21969 "
21970 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21971   have_struct_tm_tm_gmtoff=yes
21972 else
21973   have_struct_tm_tm_gmtoff=no
21974 fi
21975
21976
21977 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21978 #include <sys/types.h>
21979 #include <sys/socket.h>
21980 #include <netinet/in.h>
21981
21982 "
21983 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
21984
21985 $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
21986
21987 fi
21988
21989
21990 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
21991 #include <sys/types.h>
21992 #include <sys/socket.h>
21993 #include <netinet/in.h>
21994
21995 "
21996 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
21997
21998 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
21999
22000 fi
22001
22002
22003 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
22004
22005 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
22006
22007 fi
22008
22009 # Check size of pointer to decide we need 8 bytes alignment
22010 # adjustment.
22011 # The cast to long int works around a bug in the HP C Compiler
22012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22014 # This bug is HP SR number 8606223364.
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
22016 $as_echo_n "checking size of int *... " >&6; }
22017 if ${ac_cv_sizeof_int_p+:} false; then :
22018   $as_echo_n "(cached) " >&6
22019 else
22020   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
22021
22022 else
22023   if test "$ac_cv_type_int_p" = yes; then
22024      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22026 as_fn_error 77 "cannot compute sizeof (int *)
22027 See \`config.log' for more details" "$LINENO" 5; }
22028    else
22029      ac_cv_sizeof_int_p=0
22030    fi
22031 fi
22032
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
22035 $as_echo "$ac_cv_sizeof_int_p" >&6; }
22036
22037
22038
22039 cat >>confdefs.h <<_ACEOF
22040 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
22041 _ACEOF
22042
22043
22044
22045 # The cast to long int works around a bug in the HP C Compiler
22046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22048 # This bug is HP SR number 8606223364.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22050 $as_echo_n "checking size of time_t... " >&6; }
22051 if ${ac_cv_sizeof_time_t+:} false; then :
22052   $as_echo_n "(cached) " >&6
22053 else
22054   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22055
22056 else
22057   if test "$ac_cv_type_time_t" = yes; then
22058      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22060 as_fn_error 77 "cannot compute sizeof (time_t)
22061 See \`config.log' for more details" "$LINENO" 5; }
22062    else
22063      ac_cv_sizeof_time_t=0
22064    fi
22065 fi
22066
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22069 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22070
22071
22072
22073 cat >>confdefs.h <<_ACEOF
22074 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22075 _ACEOF
22076
22077
22078
22079 # Checks for library functions.
22080
22081 # Don't check malloc, since it does not play nicely with C++ stdlib
22082 # AC_FUNC_MALLOC
22083
22084 for ac_header in unistd.h
22085 do :
22086   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22087 if test "x$ac_cv_header_unistd_h" = xyes; then :
22088   cat >>confdefs.h <<_ACEOF
22089 #define HAVE_UNISTD_H 1
22090 _ACEOF
22091
22092 fi
22093
22094 done
22095
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
22097 $as_echo_n "checking for working chown... " >&6; }
22098 if ${ac_cv_func_chown_works+:} false; then :
22099   $as_echo_n "(cached) " >&6
22100 else
22101   if test "$cross_compiling" = yes; then :
22102   ac_cv_func_chown_works=no
22103 else
22104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h.  */
22106 $ac_includes_default
22107 #include <fcntl.h>
22108
22109 int
22110 main ()
22111 {
22112   char *f = "conftest.chown";
22113   struct stat before, after;
22114
22115   if (creat (f, 0600) < 0)
22116     return 1;
22117   if (stat (f, &before) < 0)
22118     return 1;
22119   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
22120     return 1;
22121   if (stat (f, &after) < 0)
22122     return 1;
22123   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
22124
22125   ;
22126   return 0;
22127 }
22128 _ACEOF
22129 if ac_fn_c_try_run "$LINENO"; then :
22130   ac_cv_func_chown_works=yes
22131 else
22132   ac_cv_func_chown_works=no
22133 fi
22134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22135   conftest.$ac_objext conftest.beam conftest.$ac_ext
22136 fi
22137
22138 rm -f conftest.chown
22139
22140 fi
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
22142 $as_echo "$ac_cv_func_chown_works" >&6; }
22143 if test $ac_cv_func_chown_works = yes; then
22144
22145 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
22146
22147 fi
22148
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22150 $as_echo_n "checking for error_at_line... " >&6; }
22151 if ${ac_cv_lib_error_at_line+:} false; then :
22152   $as_echo_n "(cached) " >&6
22153 else
22154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155 /* end confdefs.h.  */
22156 #include <error.h>
22157 int
22158 main ()
22159 {
22160 error_at_line (0, 0, "", 0, "an error occurred");
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 if ac_fn_c_try_link "$LINENO"; then :
22166   ac_cv_lib_error_at_line=yes
22167 else
22168   ac_cv_lib_error_at_line=no
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext \
22171     conftest$ac_exeext conftest.$ac_ext
22172 fi
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22174 $as_echo "$ac_cv_lib_error_at_line" >&6; }
22175 if test $ac_cv_lib_error_at_line = no; then
22176   case " $LIBOBJS " in
22177   *" error.$ac_objext "* ) ;;
22178   *) LIBOBJS="$LIBOBJS error.$ac_objext"
22179  ;;
22180 esac
22181
22182 fi
22183
22184 for ac_header in vfork.h
22185 do :
22186   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22187 if test "x$ac_cv_header_vfork_h" = xyes; then :
22188   cat >>confdefs.h <<_ACEOF
22189 #define HAVE_VFORK_H 1
22190 _ACEOF
22191
22192 fi
22193
22194 done
22195
22196 for ac_func in fork vfork
22197 do :
22198   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22201   cat >>confdefs.h <<_ACEOF
22202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22203 _ACEOF
22204
22205 fi
22206 done
22207
22208 if test "x$ac_cv_func_fork" = xyes; then
22209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22210 $as_echo_n "checking for working fork... " >&6; }
22211 if ${ac_cv_func_fork_works+:} false; then :
22212   $as_echo_n "(cached) " >&6
22213 else
22214   if test "$cross_compiling" = yes; then :
22215   ac_cv_func_fork_works=cross
22216 else
22217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h.  */
22219 $ac_includes_default
22220 int
22221 main ()
22222 {
22223
22224           /* By Ruediger Kuhlmann. */
22225           return fork () < 0;
22226
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 if ac_fn_c_try_run "$LINENO"; then :
22232   ac_cv_func_fork_works=yes
22233 else
22234   ac_cv_func_fork_works=no
22235 fi
22236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22237   conftest.$ac_objext conftest.beam conftest.$ac_ext
22238 fi
22239
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22242 $as_echo "$ac_cv_func_fork_works" >&6; }
22243
22244 else
22245   ac_cv_func_fork_works=$ac_cv_func_fork
22246 fi
22247 if test "x$ac_cv_func_fork_works" = xcross; then
22248   case $host in
22249     *-*-amigaos* | *-*-msdosdjgpp*)
22250       # Override, as these systems have only a dummy fork() stub
22251       ac_cv_func_fork_works=no
22252       ;;
22253     *)
22254       ac_cv_func_fork_works=yes
22255       ;;
22256   esac
22257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22258 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22259 fi
22260 ac_cv_func_vfork_works=$ac_cv_func_vfork
22261 if test "x$ac_cv_func_vfork" = xyes; then
22262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22263 $as_echo_n "checking for working vfork... " >&6; }
22264 if ${ac_cv_func_vfork_works+:} false; then :
22265   $as_echo_n "(cached) " >&6
22266 else
22267   if test "$cross_compiling" = yes; then :
22268   ac_cv_func_vfork_works=cross
22269 else
22270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h.  */
22272 /* Thanks to Paul Eggert for this test.  */
22273 $ac_includes_default
22274 #include <sys/wait.h>
22275 #ifdef HAVE_VFORK_H
22276 # include <vfork.h>
22277 #endif
22278 /* On some sparc systems, changes by the child to local and incoming
22279    argument registers are propagated back to the parent.  The compiler
22280    is told about this with #include <vfork.h>, but some compilers
22281    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22282    static variable whose address is put into a register that is
22283    clobbered by the vfork.  */
22284 static void
22285 #ifdef __cplusplus
22286 sparc_address_test (int arg)
22287 # else
22288 sparc_address_test (arg) int arg;
22289 #endif
22290 {
22291   static pid_t child;
22292   if (!child) {
22293     child = vfork ();
22294     if (child < 0) {
22295       perror ("vfork");
22296       _exit(2);
22297     }
22298     if (!child) {
22299       arg = getpid();
22300       write(-1, "", 0);
22301       _exit (arg);
22302     }
22303   }
22304 }
22305
22306 int
22307 main ()
22308 {
22309   pid_t parent = getpid ();
22310   pid_t child;
22311
22312   sparc_address_test (0);
22313
22314   child = vfork ();
22315
22316   if (child == 0) {
22317     /* Here is another test for sparc vfork register problems.  This
22318        test uses lots of local variables, at least as many local
22319        variables as main has allocated so far including compiler
22320        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22321        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22322        reuse the register of parent for one of the local variables,
22323        since it will think that parent can't possibly be used any more
22324        in this routine.  Assigning to the local variable will thus
22325        munge parent in the parent process.  */
22326     pid_t
22327       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22328       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22329     /* Convince the compiler that p..p7 are live; otherwise, it might
22330        use the same hardware register for all 8 local variables.  */
22331     if (p != p1 || p != p2 || p != p3 || p != p4
22332         || p != p5 || p != p6 || p != p7)
22333       _exit(1);
22334
22335     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22336        from child file descriptors.  If the child closes a descriptor
22337        before it execs or exits, this munges the parent's descriptor
22338        as well.  Test for this by closing stdout in the child.  */
22339     _exit(close(fileno(stdout)) != 0);
22340   } else {
22341     int status;
22342     struct stat st;
22343
22344     while (wait(&status) != child)
22345       ;
22346     return (
22347          /* Was there some problem with vforking?  */
22348          child < 0
22349
22350          /* Did the child fail?  (This shouldn't happen.)  */
22351          || status
22352
22353          /* Did the vfork/compiler bug occur?  */
22354          || parent != getpid()
22355
22356          /* Did the file descriptor bug occur?  */
22357          || fstat(fileno(stdout), &st) != 0
22358          );
22359   }
22360 }
22361 _ACEOF
22362 if ac_fn_c_try_run "$LINENO"; then :
22363   ac_cv_func_vfork_works=yes
22364 else
22365   ac_cv_func_vfork_works=no
22366 fi
22367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22368   conftest.$ac_objext conftest.beam conftest.$ac_ext
22369 fi
22370
22371 fi
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22373 $as_echo "$ac_cv_func_vfork_works" >&6; }
22374
22375 fi;
22376 if test "x$ac_cv_func_fork_works" = xcross; then
22377   ac_cv_func_vfork_works=$ac_cv_func_vfork
22378   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22379 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22380 fi
22381
22382 if test "x$ac_cv_func_vfork_works" = xyes; then
22383
22384 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22385
22386 else
22387
22388 $as_echo "#define vfork fork" >>confdefs.h
22389
22390 fi
22391 if test "x$ac_cv_func_fork_works" = xyes; then
22392
22393 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22394
22395 fi
22396
22397 # Don't check realloc, since LeakSanitizer detects memory leak during check
22398 # AC_FUNC_REALLOC
22399 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
22400 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
22401   ac_have_decl=1
22402 else
22403   ac_have_decl=0
22404 fi
22405
22406 cat >>confdefs.h <<_ACEOF
22407 #define HAVE_DECL_STRERROR_R $ac_have_decl
22408 _ACEOF
22409
22410 for ac_func in strerror_r
22411 do :
22412   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22413 if test "x$ac_cv_func_strerror_r" = xyes; then :
22414   cat >>confdefs.h <<_ACEOF
22415 #define HAVE_STRERROR_R 1
22416 _ACEOF
22417
22418 fi
22419 done
22420
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
22422 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
22423 if ${ac_cv_func_strerror_r_char_p+:} false; then :
22424   $as_echo_n "(cached) " >&6
22425 else
22426
22427     ac_cv_func_strerror_r_char_p=no
22428     if test $ac_cv_have_decl_strerror_r = yes; then
22429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h.  */
22431 $ac_includes_default
22432 int
22433 main ()
22434 {
22435
22436           char buf[100];
22437           char x = *strerror_r (0, buf, sizeof buf);
22438           char *p = strerror_r (0, buf, sizeof buf);
22439           return !p || x;
22440
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 if ac_fn_c_try_compile "$LINENO"; then :
22446   ac_cv_func_strerror_r_char_p=yes
22447 fi
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449     else
22450       # strerror_r is not declared.  Choose between
22451       # systems that have relatively inaccessible declarations for the
22452       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
22453       # former has a strerror_r that returns char*, while the latter
22454       # has a strerror_r that returns `int'.
22455       # This test should segfault on the DEC system.
22456       if test "$cross_compiling" = yes; then :
22457   :
22458 else
22459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h.  */
22461 $ac_includes_default
22462         extern char *strerror_r ();
22463 int
22464 main ()
22465 {
22466 char buf[100];
22467           char x = *strerror_r (0, buf, sizeof buf);
22468           return ! isalpha (x);
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 if ac_fn_c_try_run "$LINENO"; then :
22474   ac_cv_func_strerror_r_char_p=yes
22475 fi
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22477   conftest.$ac_objext conftest.beam conftest.$ac_ext
22478 fi
22479
22480     fi
22481
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
22484 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
22485 if test $ac_cv_func_strerror_r_char_p = yes; then
22486
22487 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
22488
22489 fi
22490
22491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
22492 $as_echo_n "checking for working strnlen... " >&6; }
22493 if ${ac_cv_func_strnlen_working+:} false; then :
22494   $as_echo_n "(cached) " >&6
22495 else
22496   if test "$cross_compiling" = yes; then :
22497   # Guess no on AIX systems, yes otherwise.
22498                 case "$host_os" in
22499                   aix*) ac_cv_func_strnlen_working=no;;
22500                   *)    ac_cv_func_strnlen_working=yes;;
22501                 esac
22502 else
22503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h.  */
22505 $ac_includes_default
22506 int
22507 main ()
22508 {
22509
22510 #define S "foobar"
22511 #define S_LEN (sizeof S - 1)
22512
22513   /* At least one implementation is buggy: that of AIX 4.3 would
22514      give strnlen (S, 1) == 3.  */
22515
22516   int i;
22517   for (i = 0; i < S_LEN + 1; ++i)
22518     {
22519       int expected = i <= S_LEN ? i : S_LEN;
22520       if (strnlen (S, i) != expected)
22521         return 1;
22522     }
22523   return 0;
22524
22525   ;
22526   return 0;
22527 }
22528 _ACEOF
22529 if ac_fn_c_try_run "$LINENO"; then :
22530   ac_cv_func_strnlen_working=yes
22531 else
22532   ac_cv_func_strnlen_working=no
22533 fi
22534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22535   conftest.$ac_objext conftest.beam conftest.$ac_ext
22536 fi
22537
22538 fi
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
22540 $as_echo "$ac_cv_func_strnlen_working" >&6; }
22541 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
22542   *" strnlen.$ac_objext "* ) ;;
22543   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22544  ;;
22545 esac
22546
22547
22548
22549 for ac_func in  \
22550   _Exit \
22551   accept4 \
22552   dup2 \
22553   getcwd \
22554   getpwnam \
22555   localtime_r \
22556   memchr \
22557   memmove \
22558   memset \
22559   mkostemp \
22560   socket \
22561   sqrt \
22562   strchr \
22563   strdup \
22564   strerror \
22565   strndup \
22566   strstr \
22567   strtol \
22568   strtoul \
22569   timegm \
22570
22571 do :
22572   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22575   cat >>confdefs.h <<_ACEOF
22576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22577 _ACEOF
22578
22579 fi
22580 done
22581
22582
22583 # timerfd_create was added in linux kernel 2.6.25
22584
22585 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
22586 if test "x$ac_cv_func_timerfd_create" = xyes; then :
22587   have_timerfd_create=yes
22588 else
22589   have_timerfd_create=no
22590 fi
22591
22592
22593 # For cygwin: we can link initgroups, so AC_CHECK_FUNCS succeeds, but
22594 # cygwin disables initgroups due to feature test macro magic with our
22595 # configuration.  FreeBSD declares initgroups() in unistd.h.
22596 ac_fn_c_check_decl "$LINENO" "initgroups" "ac_cv_have_decl_initgroups" "
22597   #ifdef HAVE_UNISTD_H
22598   # include <unistd.h>
22599   #endif
22600   #include <grp.h>
22601
22602 "
22603 if test "x$ac_cv_have_decl_initgroups" = xyes; then :
22604   ac_have_decl=1
22605 else
22606   ac_have_decl=0
22607 fi
22608
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_INITGROUPS $ac_have_decl
22611 _ACEOF
22612
22613
22614 save_CFLAGS=$CFLAGS
22615 save_CXXFLAGS=$CXXFLAGS
22616
22617 CFLAGS=
22618 CXXFLAGS=
22619
22620 if test "x$werror" != "xno"; then
22621     # For C compiler
22622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
22623 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
22624 if ${ax_cv_check_cflags___Wall+:} false; then :
22625   $as_echo_n "(cached) " >&6
22626 else
22627
22628   ax_check_save_flags=$CFLAGS
22629   CFLAGS="$CFLAGS  -Wall"
22630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h.  */
22632
22633 int
22634 main ()
22635 {
22636
22637   ;
22638   return 0;
22639 }
22640 _ACEOF
22641 if ac_fn_c_try_compile "$LINENO"; then :
22642   ax_cv_check_cflags___Wall=yes
22643 else
22644   ax_cv_check_cflags___Wall=no
22645 fi
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647   CFLAGS=$ax_check_save_flags
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
22650 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
22651 if test "x$ax_cv_check_cflags___Wall" = xyes; then :
22652   CFLAGS="$CFLAGS -Wall"
22653 else
22654   :
22655 fi
22656
22657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
22658 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
22659 if ${ax_cv_check_cflags___Wextra+:} false; then :
22660   $as_echo_n "(cached) " >&6
22661 else
22662
22663   ax_check_save_flags=$CFLAGS
22664   CFLAGS="$CFLAGS  -Wextra"
22665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h.  */
22667
22668 int
22669 main ()
22670 {
22671
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 if ac_fn_c_try_compile "$LINENO"; then :
22677   ax_cv_check_cflags___Wextra=yes
22678 else
22679   ax_cv_check_cflags___Wextra=no
22680 fi
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682   CFLAGS=$ax_check_save_flags
22683 fi
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
22685 $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
22686 if test "x$ax_cv_check_cflags___Wextra" = xyes; then :
22687   CFLAGS="$CFLAGS -Wextra"
22688 else
22689   :
22690 fi
22691
22692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
22693 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
22694 if ${ax_cv_check_cflags___Werror+:} false; then :
22695   $as_echo_n "(cached) " >&6
22696 else
22697
22698   ax_check_save_flags=$CFLAGS
22699   CFLAGS="$CFLAGS  -Werror"
22700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h.  */
22702
22703 int
22704 main ()
22705 {
22706
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 if ac_fn_c_try_compile "$LINENO"; then :
22712   ax_cv_check_cflags___Werror=yes
22713 else
22714   ax_cv_check_cflags___Werror=no
22715 fi
22716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22717   CFLAGS=$ax_check_save_flags
22718 fi
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
22720 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
22721 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
22722   CFLAGS="$CFLAGS -Werror"
22723 else
22724   :
22725 fi
22726
22727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
22728 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
22729 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
22730   $as_echo_n "(cached) " >&6
22731 else
22732
22733   ax_check_save_flags=$CFLAGS
22734   CFLAGS="$CFLAGS  -Wmissing-prototypes"
22735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h.  */
22737
22738 int
22739 main ()
22740 {
22741
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 if ac_fn_c_try_compile "$LINENO"; then :
22747   ax_cv_check_cflags___Wmissing_prototypes=yes
22748 else
22749   ax_cv_check_cflags___Wmissing_prototypes=no
22750 fi
22751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752   CFLAGS=$ax_check_save_flags
22753 fi
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
22755 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
22756 if test "x$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
22757   CFLAGS="$CFLAGS -Wmissing-prototypes"
22758 else
22759   :
22760 fi
22761
22762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
22763 $as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
22764 if ${ax_cv_check_cflags___Wstrict_prototypes+:} false; then :
22765   $as_echo_n "(cached) " >&6
22766 else
22767
22768   ax_check_save_flags=$CFLAGS
22769   CFLAGS="$CFLAGS  -Wstrict-prototypes"
22770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h.  */
22772
22773 int
22774 main ()
22775 {
22776
22777   ;
22778   return 0;
22779 }
22780 _ACEOF
22781 if ac_fn_c_try_compile "$LINENO"; then :
22782   ax_cv_check_cflags___Wstrict_prototypes=yes
22783 else
22784   ax_cv_check_cflags___Wstrict_prototypes=no
22785 fi
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787   CFLAGS=$ax_check_save_flags
22788 fi
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
22790 $as_echo "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
22791 if test "x$ax_cv_check_cflags___Wstrict_prototypes" = xyes; then :
22792   CFLAGS="$CFLAGS -Wstrict-prototypes"
22793 else
22794   :
22795 fi
22796
22797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
22798 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
22799 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
22800   $as_echo_n "(cached) " >&6
22801 else
22802
22803   ax_check_save_flags=$CFLAGS
22804   CFLAGS="$CFLAGS  -Wmissing-declarations"
22805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h.  */
22807
22808 int
22809 main ()
22810 {
22811
22812   ;
22813   return 0;
22814 }
22815 _ACEOF
22816 if ac_fn_c_try_compile "$LINENO"; then :
22817   ax_cv_check_cflags___Wmissing_declarations=yes
22818 else
22819   ax_cv_check_cflags___Wmissing_declarations=no
22820 fi
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822   CFLAGS=$ax_check_save_flags
22823 fi
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
22825 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
22826 if test "x$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
22827   CFLAGS="$CFLAGS -Wmissing-declarations"
22828 else
22829   :
22830 fi
22831
22832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
22833 $as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; }
22834 if ${ax_cv_check_cflags___Wpointer_arith+:} false; then :
22835   $as_echo_n "(cached) " >&6
22836 else
22837
22838   ax_check_save_flags=$CFLAGS
22839   CFLAGS="$CFLAGS  -Wpointer-arith"
22840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h.  */
22842
22843 int
22844 main ()
22845 {
22846
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 if ac_fn_c_try_compile "$LINENO"; then :
22852   ax_cv_check_cflags___Wpointer_arith=yes
22853 else
22854   ax_cv_check_cflags___Wpointer_arith=no
22855 fi
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857   CFLAGS=$ax_check_save_flags
22858 fi
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
22860 $as_echo "$ax_cv_check_cflags___Wpointer_arith" >&6; }
22861 if test "x$ax_cv_check_cflags___Wpointer_arith" = xyes; then :
22862   CFLAGS="$CFLAGS -Wpointer-arith"
22863 else
22864   :
22865 fi
22866
22867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
22868 $as_echo_n "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
22869 if ${ax_cv_check_cflags___Wdeclaration_after_statement+:} false; then :
22870   $as_echo_n "(cached) " >&6
22871 else
22872
22873   ax_check_save_flags=$CFLAGS
22874   CFLAGS="$CFLAGS  -Wdeclaration-after-statement"
22875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h.  */
22877
22878 int
22879 main ()
22880 {
22881
22882   ;
22883   return 0;
22884 }
22885 _ACEOF
22886 if ac_fn_c_try_compile "$LINENO"; then :
22887   ax_cv_check_cflags___Wdeclaration_after_statement=yes
22888 else
22889   ax_cv_check_cflags___Wdeclaration_after_statement=no
22890 fi
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892   CFLAGS=$ax_check_save_flags
22893 fi
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
22895 $as_echo "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
22896 if test "x$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes; then :
22897   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22898 else
22899   :
22900 fi
22901
22902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
22903 $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
22904 if ${ax_cv_check_cflags___Wformat_security+:} false; then :
22905   $as_echo_n "(cached) " >&6
22906 else
22907
22908   ax_check_save_flags=$CFLAGS
22909   CFLAGS="$CFLAGS  -Wformat-security"
22910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913 int
22914 main ()
22915 {
22916
22917   ;
22918   return 0;
22919 }
22920 _ACEOF
22921 if ac_fn_c_try_compile "$LINENO"; then :
22922   ax_cv_check_cflags___Wformat_security=yes
22923 else
22924   ax_cv_check_cflags___Wformat_security=no
22925 fi
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927   CFLAGS=$ax_check_save_flags
22928 fi
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
22930 $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
22931 if test "x$ax_cv_check_cflags___Wformat_security" = xyes; then :
22932   CFLAGS="$CFLAGS -Wformat-security"
22933 else
22934   :
22935 fi
22936
22937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
22938 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
22939 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942
22943   ax_check_save_flags=$CFLAGS
22944   CFLAGS="$CFLAGS  -Wwrite-strings"
22945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22946 /* end confdefs.h.  */
22947
22948 int
22949 main ()
22950 {
22951
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 if ac_fn_c_try_compile "$LINENO"; then :
22957   ax_cv_check_cflags___Wwrite_strings=yes
22958 else
22959   ax_cv_check_cflags___Wwrite_strings=no
22960 fi
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962   CFLAGS=$ax_check_save_flags
22963 fi
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
22965 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
22966 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
22967   CFLAGS="$CFLAGS -Wwrite-strings"
22968 else
22969   :
22970 fi
22971
22972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
22973 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
22974 if ${ax_cv_check_cflags___Wshadow+:} false; then :
22975   $as_echo_n "(cached) " >&6
22976 else
22977
22978   ax_check_save_flags=$CFLAGS
22979   CFLAGS="$CFLAGS  -Wshadow"
22980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h.  */
22982
22983 int
22984 main ()
22985 {
22986
22987   ;
22988   return 0;
22989 }
22990 _ACEOF
22991 if ac_fn_c_try_compile "$LINENO"; then :
22992   ax_cv_check_cflags___Wshadow=yes
22993 else
22994   ax_cv_check_cflags___Wshadow=no
22995 fi
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997   CFLAGS=$ax_check_save_flags
22998 fi
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
23000 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
23001 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
23002   CFLAGS="$CFLAGS -Wshadow"
23003 else
23004   :
23005 fi
23006
23007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
23008 $as_echo_n "checking whether C compiler accepts -Winline... " >&6; }
23009 if ${ax_cv_check_cflags___Winline+:} false; then :
23010   $as_echo_n "(cached) " >&6
23011 else
23012
23013   ax_check_save_flags=$CFLAGS
23014   CFLAGS="$CFLAGS  -Winline"
23015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016 /* end confdefs.h.  */
23017
23018 int
23019 main ()
23020 {
23021
23022   ;
23023   return 0;
23024 }
23025 _ACEOF
23026 if ac_fn_c_try_compile "$LINENO"; then :
23027   ax_cv_check_cflags___Winline=yes
23028 else
23029   ax_cv_check_cflags___Winline=no
23030 fi
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032   CFLAGS=$ax_check_save_flags
23033 fi
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
23035 $as_echo "$ax_cv_check_cflags___Winline" >&6; }
23036 if test "x$ax_cv_check_cflags___Winline" = xyes; then :
23037   CFLAGS="$CFLAGS -Winline"
23038 else
23039   :
23040 fi
23041
23042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
23043 $as_echo_n "checking whether C compiler accepts -Wnested-externs... " >&6; }
23044 if ${ax_cv_check_cflags___Wnested_externs+:} false; then :
23045   $as_echo_n "(cached) " >&6
23046 else
23047
23048   ax_check_save_flags=$CFLAGS
23049   CFLAGS="$CFLAGS  -Wnested-externs"
23050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h.  */
23052
23053 int
23054 main ()
23055 {
23056
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 if ac_fn_c_try_compile "$LINENO"; then :
23062   ax_cv_check_cflags___Wnested_externs=yes
23063 else
23064   ax_cv_check_cflags___Wnested_externs=no
23065 fi
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067   CFLAGS=$ax_check_save_flags
23068 fi
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
23070 $as_echo "$ax_cv_check_cflags___Wnested_externs" >&6; }
23071 if test "x$ax_cv_check_cflags___Wnested_externs" = xyes; then :
23072   CFLAGS="$CFLAGS -Wnested-externs"
23073 else
23074   :
23075 fi
23076
23077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
23078 $as_echo_n "checking whether C compiler accepts -Wfloat-equal... " >&6; }
23079 if ${ax_cv_check_cflags___Wfloat_equal+:} false; then :
23080   $as_echo_n "(cached) " >&6
23081 else
23082
23083   ax_check_save_flags=$CFLAGS
23084   CFLAGS="$CFLAGS  -Wfloat-equal"
23085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087
23088 int
23089 main ()
23090 {
23091
23092   ;
23093   return 0;
23094 }
23095 _ACEOF
23096 if ac_fn_c_try_compile "$LINENO"; then :
23097   ax_cv_check_cflags___Wfloat_equal=yes
23098 else
23099   ax_cv_check_cflags___Wfloat_equal=no
23100 fi
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102   CFLAGS=$ax_check_save_flags
23103 fi
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
23105 $as_echo "$ax_cv_check_cflags___Wfloat_equal" >&6; }
23106 if test "x$ax_cv_check_cflags___Wfloat_equal" = xyes; then :
23107   CFLAGS="$CFLAGS -Wfloat-equal"
23108 else
23109   :
23110 fi
23111
23112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
23113 $as_echo_n "checking whether C compiler accepts -Wundef... " >&6; }
23114 if ${ax_cv_check_cflags___Wundef+:} false; then :
23115   $as_echo_n "(cached) " >&6
23116 else
23117
23118   ax_check_save_flags=$CFLAGS
23119   CFLAGS="$CFLAGS  -Wundef"
23120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121 /* end confdefs.h.  */
23122
23123 int
23124 main ()
23125 {
23126
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 if ac_fn_c_try_compile "$LINENO"; then :
23132   ax_cv_check_cflags___Wundef=yes
23133 else
23134   ax_cv_check_cflags___Wundef=no
23135 fi
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137   CFLAGS=$ax_check_save_flags
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
23140 $as_echo "$ax_cv_check_cflags___Wundef" >&6; }
23141 if test "x$ax_cv_check_cflags___Wundef" = xyes; then :
23142   CFLAGS="$CFLAGS -Wundef"
23143 else
23144   :
23145 fi
23146
23147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
23148 $as_echo_n "checking whether C compiler accepts -Wendif-labels... " >&6; }
23149 if ${ax_cv_check_cflags___Wendif_labels+:} false; then :
23150   $as_echo_n "(cached) " >&6
23151 else
23152
23153   ax_check_save_flags=$CFLAGS
23154   CFLAGS="$CFLAGS  -Wendif-labels"
23155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156 /* end confdefs.h.  */
23157
23158 int
23159 main ()
23160 {
23161
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 if ac_fn_c_try_compile "$LINENO"; then :
23167   ax_cv_check_cflags___Wendif_labels=yes
23168 else
23169   ax_cv_check_cflags___Wendif_labels=no
23170 fi
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172   CFLAGS=$ax_check_save_flags
23173 fi
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
23175 $as_echo "$ax_cv_check_cflags___Wendif_labels" >&6; }
23176 if test "x$ax_cv_check_cflags___Wendif_labels" = xyes; then :
23177   CFLAGS="$CFLAGS -Wendif-labels"
23178 else
23179   :
23180 fi
23181
23182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
23183 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
23184 if ${ax_cv_check_cflags___Wempty_body+:} false; then :
23185   $as_echo_n "(cached) " >&6
23186 else
23187
23188   ax_check_save_flags=$CFLAGS
23189   CFLAGS="$CFLAGS  -Wempty-body"
23190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h.  */
23192
23193 int
23194 main ()
23195 {
23196
23197   ;
23198   return 0;
23199 }
23200 _ACEOF
23201 if ac_fn_c_try_compile "$LINENO"; then :
23202   ax_cv_check_cflags___Wempty_body=yes
23203 else
23204   ax_cv_check_cflags___Wempty_body=no
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207   CFLAGS=$ax_check_save_flags
23208 fi
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
23210 $as_echo "$ax_cv_check_cflags___Wempty_body" >&6; }
23211 if test "x$ax_cv_check_cflags___Wempty_body" = xyes; then :
23212   CFLAGS="$CFLAGS -Wempty-body"
23213 else
23214   :
23215 fi
23216
23217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
23218 $as_echo_n "checking whether C compiler accepts -Wcast-align... " >&6; }
23219 if ${ax_cv_check_cflags___Wcast_align+:} false; then :
23220   $as_echo_n "(cached) " >&6
23221 else
23222
23223   ax_check_save_flags=$CFLAGS
23224   CFLAGS="$CFLAGS  -Wcast-align"
23225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h.  */
23227
23228 int
23229 main ()
23230 {
23231
23232   ;
23233   return 0;
23234 }
23235 _ACEOF
23236 if ac_fn_c_try_compile "$LINENO"; then :
23237   ax_cv_check_cflags___Wcast_align=yes
23238 else
23239   ax_cv_check_cflags___Wcast_align=no
23240 fi
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242   CFLAGS=$ax_check_save_flags
23243 fi
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
23245 $as_echo "$ax_cv_check_cflags___Wcast_align" >&6; }
23246 if test "x$ax_cv_check_cflags___Wcast_align" = xyes; then :
23247   CFLAGS="$CFLAGS -Wcast-align"
23248 else
23249   :
23250 fi
23251
23252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
23253 $as_echo_n "checking whether C compiler accepts -Wclobbered... " >&6; }
23254 if ${ax_cv_check_cflags___Wclobbered+:} false; then :
23255   $as_echo_n "(cached) " >&6
23256 else
23257
23258   ax_check_save_flags=$CFLAGS
23259   CFLAGS="$CFLAGS  -Wclobbered"
23260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23261 /* end confdefs.h.  */
23262
23263 int
23264 main ()
23265 {
23266
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 if ac_fn_c_try_compile "$LINENO"; then :
23272   ax_cv_check_cflags___Wclobbered=yes
23273 else
23274   ax_cv_check_cflags___Wclobbered=no
23275 fi
23276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277   CFLAGS=$ax_check_save_flags
23278 fi
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
23280 $as_echo "$ax_cv_check_cflags___Wclobbered" >&6; }
23281 if test "x$ax_cv_check_cflags___Wclobbered" = xyes; then :
23282   CFLAGS="$CFLAGS -Wclobbered"
23283 else
23284   :
23285 fi
23286
23287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
23288 $as_echo_n "checking whether C compiler accepts -Wvla... " >&6; }
23289 if ${ax_cv_check_cflags___Wvla+:} false; then :
23290   $as_echo_n "(cached) " >&6
23291 else
23292
23293   ax_check_save_flags=$CFLAGS
23294   CFLAGS="$CFLAGS  -Wvla"
23295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h.  */
23297
23298 int
23299 main ()
23300 {
23301
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 if ac_fn_c_try_compile "$LINENO"; then :
23307   ax_cv_check_cflags___Wvla=yes
23308 else
23309   ax_cv_check_cflags___Wvla=no
23310 fi
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312   CFLAGS=$ax_check_save_flags
23313 fi
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
23315 $as_echo "$ax_cv_check_cflags___Wvla" >&6; }
23316 if test "x$ax_cv_check_cflags___Wvla" = xyes; then :
23317   CFLAGS="$CFLAGS -Wvla"
23318 else
23319   :
23320 fi
23321
23322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
23323 $as_echo_n "checking whether C compiler accepts -Wpragmas... " >&6; }
23324 if ${ax_cv_check_cflags___Wpragmas+:} false; then :
23325   $as_echo_n "(cached) " >&6
23326 else
23327
23328   ax_check_save_flags=$CFLAGS
23329   CFLAGS="$CFLAGS  -Wpragmas"
23330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23331 /* end confdefs.h.  */
23332
23333 int
23334 main ()
23335 {
23336
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 if ac_fn_c_try_compile "$LINENO"; then :
23342   ax_cv_check_cflags___Wpragmas=yes
23343 else
23344   ax_cv_check_cflags___Wpragmas=no
23345 fi
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347   CFLAGS=$ax_check_save_flags
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
23350 $as_echo "$ax_cv_check_cflags___Wpragmas" >&6; }
23351 if test "x$ax_cv_check_cflags___Wpragmas" = xyes; then :
23352   CFLAGS="$CFLAGS -Wpragmas"
23353 else
23354   :
23355 fi
23356
23357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
23358 $as_echo_n "checking whether C compiler accepts -Wunreachable-code... " >&6; }
23359 if ${ax_cv_check_cflags___Wunreachable_code+:} false; then :
23360   $as_echo_n "(cached) " >&6
23361 else
23362
23363   ax_check_save_flags=$CFLAGS
23364   CFLAGS="$CFLAGS  -Wunreachable-code"
23365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23366 /* end confdefs.h.  */
23367
23368 int
23369 main ()
23370 {
23371
23372   ;
23373   return 0;
23374 }
23375 _ACEOF
23376 if ac_fn_c_try_compile "$LINENO"; then :
23377   ax_cv_check_cflags___Wunreachable_code=yes
23378 else
23379   ax_cv_check_cflags___Wunreachable_code=no
23380 fi
23381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382   CFLAGS=$ax_check_save_flags
23383 fi
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
23385 $as_echo "$ax_cv_check_cflags___Wunreachable_code" >&6; }
23386 if test "x$ax_cv_check_cflags___Wunreachable_code" = xyes; then :
23387   CFLAGS="$CFLAGS -Wunreachable-code"
23388 else
23389   :
23390 fi
23391
23392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
23393 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
23394 if ${ax_cv_check_cflags___Waddress+:} false; then :
23395   $as_echo_n "(cached) " >&6
23396 else
23397
23398   ax_check_save_flags=$CFLAGS
23399   CFLAGS="$CFLAGS  -Waddress"
23400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23401 /* end confdefs.h.  */
23402
23403 int
23404 main ()
23405 {
23406
23407   ;
23408   return 0;
23409 }
23410 _ACEOF
23411 if ac_fn_c_try_compile "$LINENO"; then :
23412   ax_cv_check_cflags___Waddress=yes
23413 else
23414   ax_cv_check_cflags___Waddress=no
23415 fi
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417   CFLAGS=$ax_check_save_flags
23418 fi
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
23420 $as_echo "$ax_cv_check_cflags___Waddress" >&6; }
23421 if test "x$ax_cv_check_cflags___Waddress" = xyes; then :
23422   CFLAGS="$CFLAGS -Waddress"
23423 else
23424   :
23425 fi
23426
23427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
23428 $as_echo_n "checking whether C compiler accepts -Wattributes... " >&6; }
23429 if ${ax_cv_check_cflags___Wattributes+:} false; then :
23430   $as_echo_n "(cached) " >&6
23431 else
23432
23433   ax_check_save_flags=$CFLAGS
23434   CFLAGS="$CFLAGS  -Wattributes"
23435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436 /* end confdefs.h.  */
23437
23438 int
23439 main ()
23440 {
23441
23442   ;
23443   return 0;
23444 }
23445 _ACEOF
23446 if ac_fn_c_try_compile "$LINENO"; then :
23447   ax_cv_check_cflags___Wattributes=yes
23448 else
23449   ax_cv_check_cflags___Wattributes=no
23450 fi
23451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23452   CFLAGS=$ax_check_save_flags
23453 fi
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
23455 $as_echo "$ax_cv_check_cflags___Wattributes" >&6; }
23456 if test "x$ax_cv_check_cflags___Wattributes" = xyes; then :
23457   CFLAGS="$CFLAGS -Wattributes"
23458 else
23459   :
23460 fi
23461
23462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
23463 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
23464 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
23465   $as_echo_n "(cached) " >&6
23466 else
23467
23468   ax_check_save_flags=$CFLAGS
23469   CFLAGS="$CFLAGS  -Wdiv-by-zero"
23470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h.  */
23472
23473 int
23474 main ()
23475 {
23476
23477   ;
23478   return 0;
23479 }
23480 _ACEOF
23481 if ac_fn_c_try_compile "$LINENO"; then :
23482   ax_cv_check_cflags___Wdiv_by_zero=yes
23483 else
23484   ax_cv_check_cflags___Wdiv_by_zero=no
23485 fi
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487   CFLAGS=$ax_check_save_flags
23488 fi
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
23490 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
23491 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
23492   CFLAGS="$CFLAGS -Wdiv-by-zero"
23493 else
23494   :
23495 fi
23496
23497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
23498 $as_echo_n "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
23499 if ${ax_cv_check_cflags___Wshorten_64_to_32+:} false; then :
23500   $as_echo_n "(cached) " >&6
23501 else
23502
23503   ax_check_save_flags=$CFLAGS
23504   CFLAGS="$CFLAGS  -Wshorten-64-to-32"
23505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h.  */
23507
23508 int
23509 main ()
23510 {
23511
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 if ac_fn_c_try_compile "$LINENO"; then :
23517   ax_cv_check_cflags___Wshorten_64_to_32=yes
23518 else
23519   ax_cv_check_cflags___Wshorten_64_to_32=no
23520 fi
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522   CFLAGS=$ax_check_save_flags
23523 fi
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
23525 $as_echo "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
23526 if test "x$ax_cv_check_cflags___Wshorten_64_to_32" = xyes; then :
23527   CFLAGS="$CFLAGS -Wshorten-64-to-32"
23528 else
23529   :
23530 fi
23531
23532
23533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
23534 $as_echo_n "checking whether C compiler accepts -Wconversion... " >&6; }
23535 if ${ax_cv_check_cflags___Wconversion+:} false; then :
23536   $as_echo_n "(cached) " >&6
23537 else
23538
23539   ax_check_save_flags=$CFLAGS
23540   CFLAGS="$CFLAGS  -Wconversion"
23541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h.  */
23543
23544 int
23545 main ()
23546 {
23547
23548   ;
23549   return 0;
23550 }
23551 _ACEOF
23552 if ac_fn_c_try_compile "$LINENO"; then :
23553   ax_cv_check_cflags___Wconversion=yes
23554 else
23555   ax_cv_check_cflags___Wconversion=no
23556 fi
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558   CFLAGS=$ax_check_save_flags
23559 fi
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wconversion" >&5
23561 $as_echo "$ax_cv_check_cflags___Wconversion" >&6; }
23562 if test "x$ax_cv_check_cflags___Wconversion" = xyes; then :
23563   CFLAGS="$CFLAGS -Wconversion"
23564 else
23565   :
23566 fi
23567
23568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextended-offsetof" >&5
23569 $as_echo_n "checking whether C compiler accepts -Wextended-offsetof... " >&6; }
23570 if ${ax_cv_check_cflags___Wextended_offsetof+:} false; then :
23571   $as_echo_n "(cached) " >&6
23572 else
23573
23574   ax_check_save_flags=$CFLAGS
23575   CFLAGS="$CFLAGS  -Wextended-offsetof"
23576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h.  */
23578
23579 int
23580 main ()
23581 {
23582
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 if ac_fn_c_try_compile "$LINENO"; then :
23588   ax_cv_check_cflags___Wextended_offsetof=yes
23589 else
23590   ax_cv_check_cflags___Wextended_offsetof=no
23591 fi
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593   CFLAGS=$ax_check_save_flags
23594 fi
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextended_offsetof" >&5
23596 $as_echo "$ax_cv_check_cflags___Wextended_offsetof" >&6; }
23597 if test "x$ax_cv_check_cflags___Wextended_offsetof" = xyes; then :
23598   CFLAGS="$CFLAGS -Wextended-offsetof"
23599 else
23600   :
23601 fi
23602
23603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
23604 $as_echo_n "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
23605 if ${ax_cv_check_cflags___Wformat_nonliteral+:} false; then :
23606   $as_echo_n "(cached) " >&6
23607 else
23608
23609   ax_check_save_flags=$CFLAGS
23610   CFLAGS="$CFLAGS  -Wformat-nonliteral"
23611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h.  */
23613
23614 int
23615 main ()
23616 {
23617
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 if ac_fn_c_try_compile "$LINENO"; then :
23623   ax_cv_check_cflags___Wformat_nonliteral=yes
23624 else
23625   ax_cv_check_cflags___Wformat_nonliteral=no
23626 fi
23627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628   CFLAGS=$ax_check_save_flags
23629 fi
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
23631 $as_echo "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
23632 if test "x$ax_cv_check_cflags___Wformat_nonliteral" = xyes; then :
23633   CFLAGS="$CFLAGS -Wformat-nonliteral"
23634 else
23635   :
23636 fi
23637
23638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlanguage-extension-token" >&5
23639 $as_echo_n "checking whether C compiler accepts -Wlanguage-extension-token... " >&6; }
23640 if ${ax_cv_check_cflags___Wlanguage_extension_token+:} false; then :
23641   $as_echo_n "(cached) " >&6
23642 else
23643
23644   ax_check_save_flags=$CFLAGS
23645   CFLAGS="$CFLAGS  -Wlanguage-extension-token"
23646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h.  */
23648
23649 int
23650 main ()
23651 {
23652
23653   ;
23654   return 0;
23655 }
23656 _ACEOF
23657 if ac_fn_c_try_compile "$LINENO"; then :
23658   ax_cv_check_cflags___Wlanguage_extension_token=yes
23659 else
23660   ax_cv_check_cflags___Wlanguage_extension_token=no
23661 fi
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663   CFLAGS=$ax_check_save_flags
23664 fi
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wlanguage_extension_token" >&5
23666 $as_echo "$ax_cv_check_cflags___Wlanguage_extension_token" >&6; }
23667 if test "x$ax_cv_check_cflags___Wlanguage_extension_token" = xyes; then :
23668   CFLAGS="$CFLAGS -Wlanguage-extension-token"
23669 else
23670   :
23671 fi
23672
23673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5
23674 $as_echo_n "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; }
23675 if ${ax_cv_check_cflags___Wmissing_field_initializers+:} false; then :
23676   $as_echo_n "(cached) " >&6
23677 else
23678
23679   ax_check_save_flags=$CFLAGS
23680   CFLAGS="$CFLAGS  -Wmissing-field-initializers"
23681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h.  */
23683
23684 int
23685 main ()
23686 {
23687
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 if ac_fn_c_try_compile "$LINENO"; then :
23693   ax_cv_check_cflags___Wmissing_field_initializers=yes
23694 else
23695   ax_cv_check_cflags___Wmissing_field_initializers=no
23696 fi
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698   CFLAGS=$ax_check_save_flags
23699 fi
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_field_initializers" >&5
23701 $as_echo "$ax_cv_check_cflags___Wmissing_field_initializers" >&6; }
23702 if test "x$ax_cv_check_cflags___Wmissing_field_initializers" = xyes; then :
23703   CFLAGS="$CFLAGS -Wmissing-field-initializers"
23704 else
23705   :
23706 fi
23707
23708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-noreturn" >&5
23709 $as_echo_n "checking whether C compiler accepts -Wmissing-noreturn... " >&6; }
23710 if ${ax_cv_check_cflags___Wmissing_noreturn+:} false; then :
23711   $as_echo_n "(cached) " >&6
23712 else
23713
23714   ax_check_save_flags=$CFLAGS
23715   CFLAGS="$CFLAGS  -Wmissing-noreturn"
23716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h.  */
23718
23719 int
23720 main ()
23721 {
23722
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728   ax_cv_check_cflags___Wmissing_noreturn=yes
23729 else
23730   ax_cv_check_cflags___Wmissing_noreturn=no
23731 fi
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733   CFLAGS=$ax_check_save_flags
23734 fi
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_noreturn" >&5
23736 $as_echo "$ax_cv_check_cflags___Wmissing_noreturn" >&6; }
23737 if test "x$ax_cv_check_cflags___Wmissing_noreturn" = xyes; then :
23738   CFLAGS="$CFLAGS -Wmissing-noreturn"
23739 else
23740   :
23741 fi
23742
23743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-variable-declarations" >&5
23744 $as_echo_n "checking whether C compiler accepts -Wmissing-variable-declarations... " >&6; }
23745 if ${ax_cv_check_cflags___Wmissing_variable_declarations+:} false; then :
23746   $as_echo_n "(cached) " >&6
23747 else
23748
23749   ax_check_save_flags=$CFLAGS
23750   CFLAGS="$CFLAGS  -Wmissing-variable-declarations"
23751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h.  */
23753
23754 int
23755 main ()
23756 {
23757
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 if ac_fn_c_try_compile "$LINENO"; then :
23763   ax_cv_check_cflags___Wmissing_variable_declarations=yes
23764 else
23765   ax_cv_check_cflags___Wmissing_variable_declarations=no
23766 fi
23767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768   CFLAGS=$ax_check_save_flags
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_variable_declarations" >&5
23771 $as_echo "$ax_cv_check_cflags___Wmissing_variable_declarations" >&6; }
23772 if test "x$ax_cv_check_cflags___Wmissing_variable_declarations" = xyes; then :
23773   CFLAGS="$CFLAGS -Wmissing-variable-declarations"
23774 else
23775   :
23776 fi
23777
23778     # Not used because we cannot change public structs
23779     # AX_CHECK_COMPILE_FLAG([-Wpadded], [CFLAGS="$CFLAGS -Wpadded"])
23780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-conversion" >&5
23781 $as_echo_n "checking whether C compiler accepts -Wsign-conversion... " >&6; }
23782 if ${ax_cv_check_cflags___Wsign_conversion+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785
23786   ax_check_save_flags=$CFLAGS
23787   CFLAGS="$CFLAGS  -Wsign-conversion"
23788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h.  */
23790
23791 int
23792 main ()
23793 {
23794
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 if ac_fn_c_try_compile "$LINENO"; then :
23800   ax_cv_check_cflags___Wsign_conversion=yes
23801 else
23802   ax_cv_check_cflags___Wsign_conversion=no
23803 fi
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805   CFLAGS=$ax_check_save_flags
23806 fi
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsign_conversion" >&5
23808 $as_echo "$ax_cv_check_cflags___Wsign_conversion" >&6; }
23809 if test "x$ax_cv_check_cflags___Wsign_conversion" = xyes; then :
23810   CFLAGS="$CFLAGS -Wsign-conversion"
23811 else
23812   :
23813 fi
23814
23815     # Not used because this basically disallows default case
23816     # AX_CHECK_COMPILE_FLAG([-Wswitch-enum], [CFLAGS="$CFLAGS -Wswitch-enum"])
23817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code-break" >&5
23818 $as_echo_n "checking whether C compiler accepts -Wunreachable-code-break... " >&6; }
23819 if ${ax_cv_check_cflags___Wunreachable_code_break+:} false; then :
23820   $as_echo_n "(cached) " >&6
23821 else
23822
23823   ax_check_save_flags=$CFLAGS
23824   CFLAGS="$CFLAGS  -Wunreachable-code-break"
23825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23826 /* end confdefs.h.  */
23827
23828 int
23829 main ()
23830 {
23831
23832   ;
23833   return 0;
23834 }
23835 _ACEOF
23836 if ac_fn_c_try_compile "$LINENO"; then :
23837   ax_cv_check_cflags___Wunreachable_code_break=yes
23838 else
23839   ax_cv_check_cflags___Wunreachable_code_break=no
23840 fi
23841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842   CFLAGS=$ax_check_save_flags
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code_break" >&5
23845 $as_echo "$ax_cv_check_cflags___Wunreachable_code_break" >&6; }
23846 if test "x$ax_cv_check_cflags___Wunreachable_code_break" = xyes; then :
23847   CFLAGS="$CFLAGS -Wunreachable-code-break"
23848 else
23849   :
23850 fi
23851
23852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-macros" >&5
23853 $as_echo_n "checking whether C compiler accepts -Wunused-macros... " >&6; }
23854 if ${ax_cv_check_cflags___Wunused_macros+:} false; then :
23855   $as_echo_n "(cached) " >&6
23856 else
23857
23858   ax_check_save_flags=$CFLAGS
23859   CFLAGS="$CFLAGS  -Wunused-macros"
23860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h.  */
23862
23863 int
23864 main ()
23865 {
23866
23867   ;
23868   return 0;
23869 }
23870 _ACEOF
23871 if ac_fn_c_try_compile "$LINENO"; then :
23872   ax_cv_check_cflags___Wunused_macros=yes
23873 else
23874   ax_cv_check_cflags___Wunused_macros=no
23875 fi
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877   CFLAGS=$ax_check_save_flags
23878 fi
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_macros" >&5
23880 $as_echo "$ax_cv_check_cflags___Wunused_macros" >&6; }
23881 if test "x$ax_cv_check_cflags___Wunused_macros" = xyes; then :
23882   CFLAGS="$CFLAGS -Wunused-macros"
23883 else
23884   :
23885 fi
23886
23887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
23888 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
23889 if ${ax_cv_check_cflags___Wunused_parameter+:} false; then :
23890   $as_echo_n "(cached) " >&6
23891 else
23892
23893   ax_check_save_flags=$CFLAGS
23894   CFLAGS="$CFLAGS  -Wunused-parameter"
23895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h.  */
23897
23898 int
23899 main ()
23900 {
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907   ax_cv_check_cflags___Wunused_parameter=yes
23908 else
23909   ax_cv_check_cflags___Wunused_parameter=no
23910 fi
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912   CFLAGS=$ax_check_save_flags
23913 fi
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_parameter" >&5
23915 $as_echo "$ax_cv_check_cflags___Wunused_parameter" >&6; }
23916 if test "x$ax_cv_check_cflags___Wunused_parameter" = xyes; then :
23917   CFLAGS="$CFLAGS -Wunused-parameter"
23918 else
23919   :
23920 fi
23921
23922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
23923 $as_echo_n "checking whether C compiler accepts -Wredundant-decls... " >&6; }
23924 if ${ax_cv_check_cflags___Wredundant_decls+:} false; then :
23925   $as_echo_n "(cached) " >&6
23926 else
23927
23928   ax_check_save_flags=$CFLAGS
23929   CFLAGS="$CFLAGS  -Wredundant-decls"
23930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h.  */
23932
23933 int
23934 main ()
23935 {
23936
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 if ac_fn_c_try_compile "$LINENO"; then :
23942   ax_cv_check_cflags___Wredundant_decls=yes
23943 else
23944   ax_cv_check_cflags___Wredundant_decls=no
23945 fi
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947   CFLAGS=$ax_check_save_flags
23948 fi
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wredundant_decls" >&5
23950 $as_echo "$ax_cv_check_cflags___Wredundant_decls" >&6; }
23951 if test "x$ax_cv_check_cflags___Wredundant_decls" = xyes; then :
23952   CFLAGS="$CFLAGS -Wredundant-decls"
23953 else
23954   :
23955 fi
23956
23957     # Only work with Clang for the moment
23958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
23959 $as_echo_n "checking whether C compiler accepts -Wheader-guard... " >&6; }
23960 if ${ax_cv_check_cflags___Wheader_guard+:} false; then :
23961   $as_echo_n "(cached) " >&6
23962 else
23963
23964   ax_check_save_flags=$CFLAGS
23965   CFLAGS="$CFLAGS  -Wheader-guard"
23966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967 /* end confdefs.h.  */
23968
23969 int
23970 main ()
23971 {
23972
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 if ac_fn_c_try_compile "$LINENO"; then :
23978   ax_cv_check_cflags___Wheader_guard=yes
23979 else
23980   ax_cv_check_cflags___Wheader_guard=no
23981 fi
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983   CFLAGS=$ax_check_save_flags
23984 fi
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
23986 $as_echo "$ax_cv_check_cflags___Wheader_guard" >&6; }
23987 if test "x$ax_cv_check_cflags___Wheader_guard" = xyes; then :
23988   CFLAGS="$CFLAGS -Wheader-guard"
23989 else
23990   :
23991 fi
23992
23993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
23994 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
23995 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998
23999   ax_check_save_flags=$CFLAGS
24000   CFLAGS="$CFLAGS  -Wsometimes-uninitialized"
24001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h.  */
24003
24004 int
24005 main ()
24006 {
24007
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 if ac_fn_c_try_compile "$LINENO"; then :
24013   ax_cv_check_cflags___Wsometimes_uninitialized=yes
24014 else
24015   ax_cv_check_cflags___Wsometimes_uninitialized=no
24016 fi
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018   CFLAGS=$ax_check_save_flags
24019 fi
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
24021 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
24022 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
24023   CFLAGS="$CFLAGS -Wsometimes-uninitialized"
24024 else
24025   :
24026 fi
24027
24028
24029     # This is required because we pass format string as "const char*.
24030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-nonliteral" >&5
24031 $as_echo_n "checking whether C compiler accepts -Wno-format-nonliteral... " >&6; }
24032 if ${ax_cv_check_cflags___Wno_format_nonliteral+:} false; then :
24033   $as_echo_n "(cached) " >&6
24034 else
24035
24036   ax_check_save_flags=$CFLAGS
24037   CFLAGS="$CFLAGS  -Wno-format-nonliteral"
24038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24039 /* end confdefs.h.  */
24040
24041 int
24042 main ()
24043 {
24044
24045   ;
24046   return 0;
24047 }
24048 _ACEOF
24049 if ac_fn_c_try_compile "$LINENO"; then :
24050   ax_cv_check_cflags___Wno_format_nonliteral=yes
24051 else
24052   ax_cv_check_cflags___Wno_format_nonliteral=no
24053 fi
24054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055   CFLAGS=$ax_check_save_flags
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_nonliteral" >&5
24058 $as_echo "$ax_cv_check_cflags___Wno_format_nonliteral" >&6; }
24059 if test "x$ax_cv_check_cflags___Wno_format_nonliteral" = xyes; then :
24060   CFLAGS="$CFLAGS -Wno-format-nonliteral"
24061 else
24062   :
24063 fi
24064
24065
24066     # For C++ compiler
24067     ac_ext=cpp
24068 ac_cpp='$CXXCPP $CPPFLAGS'
24069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24072
24073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wall" >&5
24074 $as_echo_n "checking whether C++ compiler accepts -Wall... " >&6; }
24075 if ${ax_cv_check_cxxflags___Wall+:} false; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078
24079   ax_check_save_flags=$CXXFLAGS
24080   CXXFLAGS="$CXXFLAGS  -Wall"
24081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h.  */
24083
24084 int
24085 main ()
24086 {
24087
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 if ac_fn_cxx_try_compile "$LINENO"; then :
24093   ax_cv_check_cxxflags___Wall=yes
24094 else
24095   ax_cv_check_cxxflags___Wall=no
24096 fi
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098   CXXFLAGS=$ax_check_save_flags
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wall" >&5
24101 $as_echo "$ax_cv_check_cxxflags___Wall" >&6; }
24102 if test "x$ax_cv_check_cxxflags___Wall" = xyes; then :
24103   CXXFLAGS="$CXXFLAGS -Wall"
24104 else
24105   :
24106 fi
24107
24108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror" >&5
24109 $as_echo_n "checking whether C++ compiler accepts -Werror... " >&6; }
24110 if ${ax_cv_check_cxxflags___Werror+:} false; then :
24111   $as_echo_n "(cached) " >&6
24112 else
24113
24114   ax_check_save_flags=$CXXFLAGS
24115   CXXFLAGS="$CXXFLAGS  -Werror"
24116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h.  */
24118
24119 int
24120 main ()
24121 {
24122
24123   ;
24124   return 0;
24125 }
24126 _ACEOF
24127 if ac_fn_cxx_try_compile "$LINENO"; then :
24128   ax_cv_check_cxxflags___Werror=yes
24129 else
24130   ax_cv_check_cxxflags___Werror=no
24131 fi
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133   CXXFLAGS=$ax_check_save_flags
24134 fi
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror" >&5
24136 $as_echo "$ax_cv_check_cxxflags___Werror" >&6; }
24137 if test "x$ax_cv_check_cxxflags___Werror" = xyes; then :
24138   CXXFLAGS="$CXXFLAGS -Werror"
24139 else
24140   :
24141 fi
24142
24143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wformat-security" >&5
24144 $as_echo_n "checking whether C++ compiler accepts -Wformat-security... " >&6; }
24145 if ${ax_cv_check_cxxflags___Wformat_security+:} false; then :
24146   $as_echo_n "(cached) " >&6
24147 else
24148
24149   ax_check_save_flags=$CXXFLAGS
24150   CXXFLAGS="$CXXFLAGS  -Wformat-security"
24151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h.  */
24153
24154 int
24155 main ()
24156 {
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 if ac_fn_cxx_try_compile "$LINENO"; then :
24163   ax_cv_check_cxxflags___Wformat_security=yes
24164 else
24165   ax_cv_check_cxxflags___Wformat_security=no
24166 fi
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168   CXXFLAGS=$ax_check_save_flags
24169 fi
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wformat_security" >&5
24171 $as_echo "$ax_cv_check_cxxflags___Wformat_security" >&6; }
24172 if test "x$ax_cv_check_cxxflags___Wformat_security" = xyes; then :
24173   CXXFLAGS="$CXXFLAGS -Wformat-security"
24174 else
24175   :
24176 fi
24177
24178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wsometimes-uninitialized" >&5
24179 $as_echo_n "checking whether C++ compiler accepts -Wsometimes-uninitialized... " >&6; }
24180 if ${ax_cv_check_cxxflags___Wsometimes_uninitialized+:} false; then :
24181   $as_echo_n "(cached) " >&6
24182 else
24183
24184   ax_check_save_flags=$CXXFLAGS
24185   CXXFLAGS="$CXXFLAGS  -Wsometimes-uninitialized"
24186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h.  */
24188
24189 int
24190 main ()
24191 {
24192
24193   ;
24194   return 0;
24195 }
24196 _ACEOF
24197 if ac_fn_cxx_try_compile "$LINENO"; then :
24198   ax_cv_check_cxxflags___Wsometimes_uninitialized=yes
24199 else
24200   ax_cv_check_cxxflags___Wsometimes_uninitialized=no
24201 fi
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203   CXXFLAGS=$ax_check_save_flags
24204 fi
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wsometimes_uninitialized" >&5
24206 $as_echo "$ax_cv_check_cxxflags___Wsometimes_uninitialized" >&6; }
24207 if test "x$ax_cv_check_cxxflags___Wsometimes_uninitialized" = xyes; then :
24208   CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
24209 else
24210   :
24211 fi
24212
24213     # Disable noexcept-type warning of g++-7.  This is not harmful as
24214     # long as all source files are compiled with the same compiler.
24215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-noexcept-type" >&5
24216 $as_echo_n "checking whether C++ compiler accepts -Wno-noexcept-type... " >&6; }
24217 if ${ax_cv_check_cxxflags___Wno_noexcept_type+:} false; then :
24218   $as_echo_n "(cached) " >&6
24219 else
24220
24221   ax_check_save_flags=$CXXFLAGS
24222   CXXFLAGS="$CXXFLAGS  -Wno-noexcept-type"
24223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224 /* end confdefs.h.  */
24225
24226 int
24227 main ()
24228 {
24229
24230   ;
24231   return 0;
24232 }
24233 _ACEOF
24234 if ac_fn_cxx_try_compile "$LINENO"; then :
24235   ax_cv_check_cxxflags___Wno_noexcept_type=yes
24236 else
24237   ax_cv_check_cxxflags___Wno_noexcept_type=no
24238 fi
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240   CXXFLAGS=$ax_check_save_flags
24241 fi
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_noexcept_type" >&5
24243 $as_echo "$ax_cv_check_cxxflags___Wno_noexcept_type" >&6; }
24244 if test "x$ax_cv_check_cxxflags___Wno_noexcept_type" = xyes; then :
24245   CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
24246 else
24247   :
24248 fi
24249
24250     ac_ext=c
24251 ac_cpp='$CPP $CPPFLAGS'
24252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24255
24256 fi
24257
24258 WARNCFLAGS=$CFLAGS
24259 WARNCXXFLAGS=$CXXFLAGS
24260
24261 CFLAGS=$save_CFLAGS
24262 CXXFLAGS=$save_CXXFLAGS
24263
24264
24265
24266
24267 EXTRACFLAG=
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
24269 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
24270 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
24271   $as_echo_n "(cached) " >&6
24272 else
24273
24274   ax_check_save_flags=$CFLAGS
24275   CFLAGS="$CFLAGS  -fvisibility=hidden"
24276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24277 /* end confdefs.h.  */
24278
24279 int
24280 main ()
24281 {
24282
24283   ;
24284   return 0;
24285 }
24286 _ACEOF
24287 if ac_fn_c_try_compile "$LINENO"; then :
24288   ax_cv_check_cflags___fvisibility_hidden=yes
24289 else
24290   ax_cv_check_cflags___fvisibility_hidden=no
24291 fi
24292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24293   CFLAGS=$ax_check_save_flags
24294 fi
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
24296 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
24297 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
24298   EXTRACFLAG="-fvisibility=hidden"
24299 else
24300   :
24301 fi
24302
24303
24304
24305
24306 if test "x$debug" != "xno"; then
24307
24308 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
24309
24310 fi
24311
24312 enable_threads=yes
24313 # Some platform does not have working std::future.  We disable
24314 # threading for those platforms.
24315 if test "x$threads" != "xyes" ||
24316    test "x$have_std_future" != "xyes"; then
24317     enable_threads=no
24318
24319 $as_echo "#define NOTHREADS 1" >>confdefs.h
24320
24321 fi
24322
24323 # propagate $enable_static to tests/Makefile.am
24324  if test "x$enable_static" = "xyes"; then
24325   ENABLE_STATIC_TRUE=
24326   ENABLE_STATIC_FALSE='#'
24327 else
24328   ENABLE_STATIC_TRUE='#'
24329   ENABLE_STATIC_FALSE=
24330 fi
24331
24332
24333
24334
24335
24336 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libnghttp2.pc lib/includes/Makefile lib/includes/nghttp2/nghttp2ver.h tests/Makefile tests/testdata/Makefile third-party/Makefile src/Makefile src/includes/Makefile src/libnghttp2_asio.pc examples/Makefile python/Makefile python/setup.py integration-tests/Makefile integration-tests/config.go integration-tests/setenv doc/Makefile doc/conf.py doc/index.rst doc/package_README.rst doc/tutorial-client.rst doc/tutorial-server.rst doc/tutorial-hpack.rst doc/nghttpx-howto.rst doc/h2load-howto.rst doc/libnghttp2_asio.rst doc/python-apiref.rst doc/building-android-binary.rst doc/nghttp2.h.rst doc/nghttp2ver.h.rst doc/asio_http2.h.rst doc/asio_http2_server.h.rst doc/asio_http2_client.h.rst doc/contribute.rst contrib/Makefile script/Makefile"
24337
24338 cat >confcache <<\_ACEOF
24339 # This file is a shell script that caches the results of configure
24340 # tests run on this system so they can be shared between configure
24341 # scripts and configure runs, see configure's option --config-cache.
24342 # It is not useful on other systems.  If it contains results you don't
24343 # want to keep, you may remove or edit it.
24344 #
24345 # config.status only pays attention to the cache file if you give it
24346 # the --recheck option to rerun configure.
24347 #
24348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24350 # following values.
24351
24352 _ACEOF
24353
24354 # The following way of writing the cache mishandles newlines in values,
24355 # but we know of no workaround that is simple, portable, and efficient.
24356 # So, we kill variables containing newlines.
24357 # Ultrix sh set writes to stderr and can't be redirected directly,
24358 # and sets the high bit in the cache file unless we assign to the vars.
24359 (
24360   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24361     eval ac_val=\$$ac_var
24362     case $ac_val in #(
24363     *${as_nl}*)
24364       case $ac_var in #(
24365       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24367       esac
24368       case $ac_var in #(
24369       _ | IFS | as_nl) ;; #(
24370       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24371       *) { eval $ac_var=; unset $ac_var;} ;;
24372       esac ;;
24373     esac
24374   done
24375
24376   (set) 2>&1 |
24377     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24378     *${as_nl}ac_space=\ *)
24379       # `set' does not quote correctly, so add quotes: double-quote
24380       # substitution turns \\\\ into \\, and sed turns \\ into \.
24381       sed -n \
24382         "s/'/'\\\\''/g;
24383           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24384       ;; #(
24385     *)
24386       # `set' quotes correctly as required by POSIX, so do not add quotes.
24387       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24388       ;;
24389     esac |
24390     sort
24391 ) |
24392   sed '
24393      /^ac_cv_env_/b end
24394      t clear
24395      :clear
24396      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24397      t end
24398      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24399      :end' >>confcache
24400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24401   if test -w "$cache_file"; then
24402     if test "x$cache_file" != "x/dev/null"; then
24403       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24404 $as_echo "$as_me: updating cache $cache_file" >&6;}
24405       if test ! -f "$cache_file" || test -h "$cache_file"; then
24406         cat confcache >"$cache_file"
24407       else
24408         case $cache_file in #(
24409         */* | ?:*)
24410           mv -f confcache "$cache_file"$$ &&
24411           mv -f "$cache_file"$$ "$cache_file" ;; #(
24412         *)
24413           mv -f confcache "$cache_file" ;;
24414         esac
24415       fi
24416     fi
24417   else
24418     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24419 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24420   fi
24421 fi
24422 rm -f confcache
24423
24424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24425 # Let make expand exec_prefix.
24426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24427
24428 DEFS=-DHAVE_CONFIG_H
24429
24430 ac_libobjs=
24431 ac_ltlibobjs=
24432 U=
24433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24434   # 1. Remove the extension, and $U if already installed.
24435   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24436   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24437   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24438   #    will be set to the directory where LIBOBJS objects are built.
24439   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24440   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24441 done
24442 LIBOBJS=$ac_libobjs
24443
24444 LTLIBOBJS=$ac_ltlibobjs
24445
24446
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24448 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24449    if test -n "$am_sleep_pid"; then
24450      # Hide warnings about reused PIDs.
24451      wait $am_sleep_pid 2>/dev/null
24452    fi
24453    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24454 $as_echo "done" >&6; }
24455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24456   as_fn_error $? "conditional \"AMDEP\" was never defined.
24457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24458 fi
24459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24460   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24462 fi
24463  if test -n "$EXEEXT"; then
24464   am__EXEEXT_TRUE=
24465   am__EXEEXT_FALSE='#'
24466 else
24467   am__EXEEXT_TRUE='#'
24468   am__EXEEXT_FALSE=
24469 fi
24470
24471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24472   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24474 fi
24475 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
24476   as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
24477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24478 fi
24479 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
24480   as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
24481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24482 fi
24483 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
24484   as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
24485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24486 fi
24487 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
24488   as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
24489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24490 fi
24491 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
24492   as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
24493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24494 fi
24495 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
24496   as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
24497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24498 fi
24499 if test -z "${ENABLE_THIRD_PARTY_TRUE}" && test -z "${ENABLE_THIRD_PARTY_FALSE}"; then
24500   as_fn_error $? "conditional \"ENABLE_THIRD_PARTY\" was never defined.
24501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24502 fi
24503 if test -z "${HAVE_MRUBY_TRUE}" && test -z "${HAVE_MRUBY_FALSE}"; then
24504   as_fn_error $? "conditional \"HAVE_MRUBY\" was never defined.
24505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24506 fi
24507 if test -z "${HAVE_NEVERBLEED_TRUE}" && test -z "${HAVE_NEVERBLEED_FALSE}"; then
24508   as_fn_error $? "conditional \"HAVE_NEVERBLEED\" was never defined.
24509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24510 fi
24511 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
24512   as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
24513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24514 fi
24515 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
24516   as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
24517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24518 fi
24519 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
24520   as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
24521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24522 fi
24523
24524 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
24525   as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
24526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24527 fi
24528
24529 : "${CONFIG_STATUS=./config.status}"
24530 ac_write_fail=0
24531 ac_clean_files_save=$ac_clean_files
24532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24535 as_write_fail=0
24536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24537 #! $SHELL
24538 # Generated by $as_me.
24539 # Run this file to recreate the current configuration.
24540 # Compiler output produced by configure, useful for debugging
24541 # configure, is in config.log if it exists.
24542
24543 debug=false
24544 ac_cs_recheck=false
24545 ac_cs_silent=false
24546
24547 SHELL=\${CONFIG_SHELL-$SHELL}
24548 export SHELL
24549 _ASEOF
24550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24551 ## -------------------- ##
24552 ## M4sh Initialization. ##
24553 ## -------------------- ##
24554
24555 # Be more Bourne compatible
24556 DUALCASE=1; export DUALCASE # for MKS sh
24557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24558   emulate sh
24559   NULLCMD=:
24560   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24561   # is contrary to our usage.  Disable this feature.
24562   alias -g '${1+"$@"}'='"$@"'
24563   setopt NO_GLOB_SUBST
24564 else
24565   case `(set -o) 2>/dev/null` in #(
24566   *posix*) :
24567     set -o posix ;; #(
24568   *) :
24569      ;;
24570 esac
24571 fi
24572
24573
24574 as_nl='
24575 '
24576 export as_nl
24577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24581 # Prefer a ksh shell builtin over an external printf program on Solaris,
24582 # but without wasting forks for bash or zsh.
24583 if test -z "$BASH_VERSION$ZSH_VERSION" \
24584     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24585   as_echo='print -r --'
24586   as_echo_n='print -rn --'
24587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24588   as_echo='printf %s\n'
24589   as_echo_n='printf %s'
24590 else
24591   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24592     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24593     as_echo_n='/usr/ucb/echo -n'
24594   else
24595     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24596     as_echo_n_body='eval
24597       arg=$1;
24598       case $arg in #(
24599       *"$as_nl"*)
24600         expr "X$arg" : "X\\(.*\\)$as_nl";
24601         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24602       esac;
24603       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24604     '
24605     export as_echo_n_body
24606     as_echo_n='sh -c $as_echo_n_body as_echo'
24607   fi
24608   export as_echo_body
24609   as_echo='sh -c $as_echo_body as_echo'
24610 fi
24611
24612 # The user is always right.
24613 if test "${PATH_SEPARATOR+set}" != set; then
24614   PATH_SEPARATOR=:
24615   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24616     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24617       PATH_SEPARATOR=';'
24618   }
24619 fi
24620
24621
24622 # IFS
24623 # We need space, tab and new line, in precisely that order.  Quoting is
24624 # there to prevent editors from complaining about space-tab.
24625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24626 # splitting by setting IFS to empty value.)
24627 IFS=" ""        $as_nl"
24628
24629 # Find who we are.  Look in the path if we contain no directory separator.
24630 as_myself=
24631 case $0 in #((
24632   *[\\/]* ) as_myself=$0 ;;
24633   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24634 for as_dir in $PATH
24635 do
24636   IFS=$as_save_IFS
24637   test -z "$as_dir" && as_dir=.
24638     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24639   done
24640 IFS=$as_save_IFS
24641
24642      ;;
24643 esac
24644 # We did not find ourselves, most probably we were run as `sh COMMAND'
24645 # in which case we are not to be found in the path.
24646 if test "x$as_myself" = x; then
24647   as_myself=$0
24648 fi
24649 if test ! -f "$as_myself"; then
24650   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24651   exit 1
24652 fi
24653
24654 # Unset variables that we do not need and which cause bugs (e.g. in
24655 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24656 # suppresses any "Segmentation fault" message there.  '((' could
24657 # trigger a bug in pdksh 5.2.14.
24658 for as_var in BASH_ENV ENV MAIL MAILPATH
24659 do eval test x\${$as_var+set} = xset \
24660   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24661 done
24662 PS1='$ '
24663 PS2='> '
24664 PS4='+ '
24665
24666 # NLS nuisances.
24667 LC_ALL=C
24668 export LC_ALL
24669 LANGUAGE=C
24670 export LANGUAGE
24671
24672 # CDPATH.
24673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24674
24675
24676 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24677 # ----------------------------------------
24678 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24679 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24680 # script with STATUS, using 1 if that was 0.
24681 as_fn_error ()
24682 {
24683   as_status=$1; test $as_status -eq 0 && as_status=1
24684   if test "$4"; then
24685     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24686     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24687   fi
24688   $as_echo "$as_me: error: $2" >&2
24689   as_fn_exit $as_status
24690 } # as_fn_error
24691
24692
24693 # as_fn_set_status STATUS
24694 # -----------------------
24695 # Set $? to STATUS, without forking.
24696 as_fn_set_status ()
24697 {
24698   return $1
24699 } # as_fn_set_status
24700
24701 # as_fn_exit STATUS
24702 # -----------------
24703 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24704 as_fn_exit ()
24705 {
24706   set +e
24707   as_fn_set_status $1
24708   exit $1
24709 } # as_fn_exit
24710
24711 # as_fn_unset VAR
24712 # ---------------
24713 # Portably unset VAR.
24714 as_fn_unset ()
24715 {
24716   { eval $1=; unset $1;}
24717 }
24718 as_unset=as_fn_unset
24719 # as_fn_append VAR VALUE
24720 # ----------------------
24721 # Append the text in VALUE to the end of the definition contained in VAR. Take
24722 # advantage of any shell optimizations that allow amortized linear growth over
24723 # repeated appends, instead of the typical quadratic growth present in naive
24724 # implementations.
24725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24726   eval 'as_fn_append ()
24727   {
24728     eval $1+=\$2
24729   }'
24730 else
24731   as_fn_append ()
24732   {
24733     eval $1=\$$1\$2
24734   }
24735 fi # as_fn_append
24736
24737 # as_fn_arith ARG...
24738 # ------------------
24739 # Perform arithmetic evaluation on the ARGs, and store the result in the
24740 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24741 # must be portable across $(()) and expr.
24742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24743   eval 'as_fn_arith ()
24744   {
24745     as_val=$(( $* ))
24746   }'
24747 else
24748   as_fn_arith ()
24749   {
24750     as_val=`expr "$@" || test $? -eq 1`
24751   }
24752 fi # as_fn_arith
24753
24754
24755 if expr a : '\(a\)' >/dev/null 2>&1 &&
24756    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24757   as_expr=expr
24758 else
24759   as_expr=false
24760 fi
24761
24762 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24763   as_basename=basename
24764 else
24765   as_basename=false
24766 fi
24767
24768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24769   as_dirname=dirname
24770 else
24771   as_dirname=false
24772 fi
24773
24774 as_me=`$as_basename -- "$0" ||
24775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24776          X"$0" : 'X\(//\)$' \| \
24777          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24778 $as_echo X/"$0" |
24779     sed '/^.*\/\([^/][^/]*\)\/*$/{
24780             s//\1/
24781             q
24782           }
24783           /^X\/\(\/\/\)$/{
24784             s//\1/
24785             q
24786           }
24787           /^X\/\(\/\).*/{
24788             s//\1/
24789             q
24790           }
24791           s/.*/./; q'`
24792
24793 # Avoid depending upon Character Ranges.
24794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24797 as_cr_digits='0123456789'
24798 as_cr_alnum=$as_cr_Letters$as_cr_digits
24799
24800 ECHO_C= ECHO_N= ECHO_T=
24801 case `echo -n x` in #(((((
24802 -n*)
24803   case `echo 'xy\c'` in
24804   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24805   xy)  ECHO_C='\c';;
24806   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24807        ECHO_T=' ';;
24808   esac;;
24809 *)
24810   ECHO_N='-n';;
24811 esac
24812
24813 rm -f conf$$ conf$$.exe conf$$.file
24814 if test -d conf$$.dir; then
24815   rm -f conf$$.dir/conf$$.file
24816 else
24817   rm -f conf$$.dir
24818   mkdir conf$$.dir 2>/dev/null
24819 fi
24820 if (echo >conf$$.file) 2>/dev/null; then
24821   if ln -s conf$$.file conf$$ 2>/dev/null; then
24822     as_ln_s='ln -s'
24823     # ... but there are two gotchas:
24824     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24825     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24826     # In both cases, we have to default to `cp -pR'.
24827     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24828       as_ln_s='cp -pR'
24829   elif ln conf$$.file conf$$ 2>/dev/null; then
24830     as_ln_s=ln
24831   else
24832     as_ln_s='cp -pR'
24833   fi
24834 else
24835   as_ln_s='cp -pR'
24836 fi
24837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24838 rmdir conf$$.dir 2>/dev/null
24839
24840
24841 # as_fn_mkdir_p
24842 # -------------
24843 # Create "$as_dir" as a directory, including parents if necessary.
24844 as_fn_mkdir_p ()
24845 {
24846
24847   case $as_dir in #(
24848   -*) as_dir=./$as_dir;;
24849   esac
24850   test -d "$as_dir" || eval $as_mkdir_p || {
24851     as_dirs=
24852     while :; do
24853       case $as_dir in #(
24854       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24855       *) as_qdir=$as_dir;;
24856       esac
24857       as_dirs="'$as_qdir' $as_dirs"
24858       as_dir=`$as_dirname -- "$as_dir" ||
24859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24860          X"$as_dir" : 'X\(//\)[^/]' \| \
24861          X"$as_dir" : 'X\(//\)$' \| \
24862          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24863 $as_echo X"$as_dir" |
24864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24865             s//\1/
24866             q
24867           }
24868           /^X\(\/\/\)[^/].*/{
24869             s//\1/
24870             q
24871           }
24872           /^X\(\/\/\)$/{
24873             s//\1/
24874             q
24875           }
24876           /^X\(\/\).*/{
24877             s//\1/
24878             q
24879           }
24880           s/.*/./; q'`
24881       test -d "$as_dir" && break
24882     done
24883     test -z "$as_dirs" || eval "mkdir $as_dirs"
24884   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24885
24886
24887 } # as_fn_mkdir_p
24888 if mkdir -p . 2>/dev/null; then
24889   as_mkdir_p='mkdir -p "$as_dir"'
24890 else
24891   test -d ./-p && rmdir ./-p
24892   as_mkdir_p=false
24893 fi
24894
24895
24896 # as_fn_executable_p FILE
24897 # -----------------------
24898 # Test if FILE is an executable regular file.
24899 as_fn_executable_p ()
24900 {
24901   test -f "$1" && test -x "$1"
24902 } # as_fn_executable_p
24903 as_test_x='test -x'
24904 as_executable_p=as_fn_executable_p
24905
24906 # Sed expression to map a string onto a valid CPP name.
24907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24908
24909 # Sed expression to map a string onto a valid variable name.
24910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24911
24912
24913 exec 6>&1
24914 ## ----------------------------------- ##
24915 ## Main body of $CONFIG_STATUS script. ##
24916 ## ----------------------------------- ##
24917 _ASEOF
24918 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24919
24920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24921 # Save the log message, to keep $0 and so on meaningful, and to
24922 # report actual input values of CONFIG_FILES etc. instead of their
24923 # values after options handling.
24924 ac_log="
24925 This file was extended by nghttp2 $as_me 1.41.0, which was
24926 generated by GNU Autoconf 2.69.  Invocation command line was
24927
24928   CONFIG_FILES    = $CONFIG_FILES
24929   CONFIG_HEADERS  = $CONFIG_HEADERS
24930   CONFIG_LINKS    = $CONFIG_LINKS
24931   CONFIG_COMMANDS = $CONFIG_COMMANDS
24932   $ $0 $@
24933
24934 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24935 "
24936
24937 _ACEOF
24938
24939 case $ac_config_files in *"
24940 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24941 esac
24942
24943 case $ac_config_headers in *"
24944 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24945 esac
24946
24947
24948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24949 # Files that config.status was made for.
24950 config_files="$ac_config_files"
24951 config_headers="$ac_config_headers"
24952 config_commands="$ac_config_commands"
24953
24954 _ACEOF
24955
24956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24957 ac_cs_usage="\
24958 \`$as_me' instantiates files and other configuration actions
24959 from templates according to the current configuration.  Unless the files
24960 and actions are specified as TAGs, all are instantiated by default.
24961
24962 Usage: $0 [OPTION]... [TAG]...
24963
24964   -h, --help       print this help, then exit
24965   -V, --version    print version number and configuration settings, then exit
24966       --config     print configuration, then exit
24967   -q, --quiet, --silent
24968                    do not print progress messages
24969   -d, --debug      don't remove temporary files
24970       --recheck    update $as_me by reconfiguring in the same conditions
24971       --file=FILE[:TEMPLATE]
24972                    instantiate the configuration file FILE
24973       --header=FILE[:TEMPLATE]
24974                    instantiate the configuration header FILE
24975
24976 Configuration files:
24977 $config_files
24978
24979 Configuration headers:
24980 $config_headers
24981
24982 Configuration commands:
24983 $config_commands
24984
24985 Report bugs to <t-tujikawa@users.sourceforge.net>."
24986
24987 _ACEOF
24988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24989 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24990 ac_cs_version="\\
24991 nghttp2 config.status 1.41.0
24992 configured by $0, generated by GNU Autoconf 2.69,
24993   with options \\"\$ac_cs_config\\"
24994
24995 Copyright (C) 2012 Free Software Foundation, Inc.
24996 This config.status script is free software; the Free Software Foundation
24997 gives unlimited permission to copy, distribute and modify it."
24998
24999 ac_pwd='$ac_pwd'
25000 srcdir='$srcdir'
25001 INSTALL='$INSTALL'
25002 MKDIR_P='$MKDIR_P'
25003 AWK='$AWK'
25004 test -n "\$AWK" || AWK=awk
25005 _ACEOF
25006
25007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25008 # The default lists apply if the user does not specify any file.
25009 ac_need_defaults=:
25010 while test $# != 0
25011 do
25012   case $1 in
25013   --*=?*)
25014     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25015     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25016     ac_shift=:
25017     ;;
25018   --*=)
25019     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25020     ac_optarg=
25021     ac_shift=:
25022     ;;
25023   *)
25024     ac_option=$1
25025     ac_optarg=$2
25026     ac_shift=shift
25027     ;;
25028   esac
25029
25030   case $ac_option in
25031   # Handling of the options.
25032   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25033     ac_cs_recheck=: ;;
25034   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25035     $as_echo "$ac_cs_version"; exit ;;
25036   --config | --confi | --conf | --con | --co | --c )
25037     $as_echo "$ac_cs_config"; exit ;;
25038   --debug | --debu | --deb | --de | --d | -d )
25039     debug=: ;;
25040   --file | --fil | --fi | --f )
25041     $ac_shift
25042     case $ac_optarg in
25043     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25044     '') as_fn_error $? "missing file argument" ;;
25045     esac
25046     as_fn_append CONFIG_FILES " '$ac_optarg'"
25047     ac_need_defaults=false;;
25048   --header | --heade | --head | --hea )
25049     $ac_shift
25050     case $ac_optarg in
25051     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25052     esac
25053     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25054     ac_need_defaults=false;;
25055   --he | --h)
25056     # Conflict between --help and --header
25057     as_fn_error $? "ambiguous option: \`$1'
25058 Try \`$0 --help' for more information.";;
25059   --help | --hel | -h )
25060     $as_echo "$ac_cs_usage"; exit ;;
25061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25062   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25063     ac_cs_silent=: ;;
25064
25065   # This is an error.
25066   -*) as_fn_error $? "unrecognized option: \`$1'
25067 Try \`$0 --help' for more information." ;;
25068
25069   *) as_fn_append ac_config_targets " $1"
25070      ac_need_defaults=false ;;
25071
25072   esac
25073   shift
25074 done
25075
25076 ac_configure_extra_args=
25077
25078 if $ac_cs_silent; then
25079   exec 6>/dev/null
25080   ac_configure_extra_args="$ac_configure_extra_args --silent"
25081 fi
25082
25083 _ACEOF
25084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25085 if \$ac_cs_recheck; then
25086   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25087   shift
25088   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25089   CONFIG_SHELL='$SHELL'
25090   export CONFIG_SHELL
25091   exec "\$@"
25092 fi
25093
25094 _ACEOF
25095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25096 exec 5>>config.log
25097 {
25098   echo
25099   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25100 ## Running $as_me. ##
25101 _ASBOX
25102   $as_echo "$ac_log"
25103 } >&5
25104
25105 _ACEOF
25106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25107 #
25108 # INIT-COMMANDS
25109 #
25110
25111
25112 # The HP-UX ksh and POSIX shell print the target directory to stdout
25113 # if CDPATH is set.
25114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25115
25116 sed_quote_subst='$sed_quote_subst'
25117 double_quote_subst='$double_quote_subst'
25118 delay_variable_subst='$delay_variable_subst'
25119 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25120 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25121 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25122 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25125 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25126 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25127 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25128 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25149 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25150 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25151 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25152 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25153 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25154 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25155 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25156 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25157 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25158 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25159 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25160 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25161 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25162 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25163 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25164 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25165 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25166 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25167 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25168 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25169 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25170 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25171 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25172 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25173 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25174 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25175 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25176 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25177 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"`'
25178 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25179 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25180 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25181 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25182 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25183 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25184 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25185 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25186 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25187 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25188 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25189 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25190 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25191 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25192 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25193 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25194 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25195 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25196 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25197 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25198 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25199 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25200 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25201 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25202 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25203 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25204 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25205 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25206 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25207 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25208 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25209 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25210 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25211 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25212 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25213 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25214 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25215 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25216 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25217 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25218 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25219 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25220 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25221 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25222 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25223 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25224 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25225 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25226 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25227 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25228 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25229 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25230 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25231 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25232 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25233 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25234 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25235 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25236 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25237 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25238 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25239 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25240 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25241 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25242 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25243 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25244 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25245 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25246 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25247 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25248 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25249 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25250 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25251 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25252 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25253 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25254 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25255 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25256 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25257 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25258 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25259 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25260 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25261 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25262 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25263 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25264 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25265 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25266 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25267 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25268 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25269 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25270 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25271 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25272 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25273 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25274 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25275 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25276 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25277 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25278 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25279 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25280 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25281 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25282 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25283 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25284 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25285 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25286 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25287 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25288 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25289 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25290 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25291 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25292 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25293 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25294 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25295 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25296 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25297 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25298 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25299 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25300 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25301 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25302 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25303 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25304 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25305 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25306 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25307 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25308
25309 LTCC='$LTCC'
25310 LTCFLAGS='$LTCFLAGS'
25311 compiler='$compiler_DEFAULT'
25312
25313 # A function that is used when there is no print builtin or printf.
25314 func_fallback_echo ()
25315 {
25316   eval 'cat <<_LTECHO_EOF
25317 \$1
25318 _LTECHO_EOF'
25319 }
25320
25321 # Quote evaled strings.
25322 for var in SHELL \
25323 ECHO \
25324 PATH_SEPARATOR \
25325 SED \
25326 GREP \
25327 EGREP \
25328 FGREP \
25329 LD \
25330 NM \
25331 LN_S \
25332 lt_SP2NL \
25333 lt_NL2SP \
25334 reload_flag \
25335 OBJDUMP \
25336 deplibs_check_method \
25337 file_magic_cmd \
25338 file_magic_glob \
25339 want_nocaseglob \
25340 DLLTOOL \
25341 sharedlib_from_linklib_cmd \
25342 AR \
25343 AR_FLAGS \
25344 archiver_list_spec \
25345 STRIP \
25346 RANLIB \
25347 CC \
25348 CFLAGS \
25349 compiler \
25350 lt_cv_sys_global_symbol_pipe \
25351 lt_cv_sys_global_symbol_to_cdecl \
25352 lt_cv_sys_global_symbol_to_import \
25353 lt_cv_sys_global_symbol_to_c_name_address \
25354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25355 lt_cv_nm_interface \
25356 nm_file_list_spec \
25357 lt_cv_truncate_bin \
25358 lt_prog_compiler_no_builtin_flag \
25359 lt_prog_compiler_pic \
25360 lt_prog_compiler_wl \
25361 lt_prog_compiler_static \
25362 lt_cv_prog_compiler_c_o \
25363 need_locks \
25364 MANIFEST_TOOL \
25365 DSYMUTIL \
25366 NMEDIT \
25367 LIPO \
25368 OTOOL \
25369 OTOOL64 \
25370 shrext_cmds \
25371 export_dynamic_flag_spec \
25372 whole_archive_flag_spec \
25373 compiler_needs_object \
25374 with_gnu_ld \
25375 allow_undefined_flag \
25376 no_undefined_flag \
25377 hardcode_libdir_flag_spec \
25378 hardcode_libdir_separator \
25379 exclude_expsyms \
25380 include_expsyms \
25381 file_list_spec \
25382 variables_saved_for_relink \
25383 libname_spec \
25384 library_names_spec \
25385 soname_spec \
25386 install_override_mode \
25387 finish_eval \
25388 old_striplib \
25389 striplib \
25390 compiler_lib_search_dirs \
25391 predep_objects \
25392 postdep_objects \
25393 predeps \
25394 postdeps \
25395 compiler_lib_search_path \
25396 LD_CXX \
25397 reload_flag_CXX \
25398 compiler_CXX \
25399 lt_prog_compiler_no_builtin_flag_CXX \
25400 lt_prog_compiler_pic_CXX \
25401 lt_prog_compiler_wl_CXX \
25402 lt_prog_compiler_static_CXX \
25403 lt_cv_prog_compiler_c_o_CXX \
25404 export_dynamic_flag_spec_CXX \
25405 whole_archive_flag_spec_CXX \
25406 compiler_needs_object_CXX \
25407 with_gnu_ld_CXX \
25408 allow_undefined_flag_CXX \
25409 no_undefined_flag_CXX \
25410 hardcode_libdir_flag_spec_CXX \
25411 hardcode_libdir_separator_CXX \
25412 exclude_expsyms_CXX \
25413 include_expsyms_CXX \
25414 file_list_spec_CXX \
25415 compiler_lib_search_dirs_CXX \
25416 predep_objects_CXX \
25417 postdep_objects_CXX \
25418 predeps_CXX \
25419 postdeps_CXX \
25420 compiler_lib_search_path_CXX; do
25421     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25422     *[\\\\\\\`\\"\\\$]*)
25423       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25424       ;;
25425     *)
25426       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25427       ;;
25428     esac
25429 done
25430
25431 # Double-quote double-evaled strings.
25432 for var in reload_cmds \
25433 old_postinstall_cmds \
25434 old_postuninstall_cmds \
25435 old_archive_cmds \
25436 extract_expsyms_cmds \
25437 old_archive_from_new_cmds \
25438 old_archive_from_expsyms_cmds \
25439 archive_cmds \
25440 archive_expsym_cmds \
25441 module_cmds \
25442 module_expsym_cmds \
25443 export_symbols_cmds \
25444 prelink_cmds \
25445 postlink_cmds \
25446 postinstall_cmds \
25447 postuninstall_cmds \
25448 finish_cmds \
25449 sys_lib_search_path_spec \
25450 configure_time_dlsearch_path \
25451 configure_time_lt_sys_library_path \
25452 reload_cmds_CXX \
25453 old_archive_cmds_CXX \
25454 old_archive_from_new_cmds_CXX \
25455 old_archive_from_expsyms_cmds_CXX \
25456 archive_cmds_CXX \
25457 archive_expsym_cmds_CXX \
25458 module_cmds_CXX \
25459 module_expsym_cmds_CXX \
25460 export_symbols_cmds_CXX \
25461 prelink_cmds_CXX \
25462 postlink_cmds_CXX; do
25463     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25464     *[\\\\\\\`\\"\\\$]*)
25465       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25466       ;;
25467     *)
25468       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25469       ;;
25470     esac
25471 done
25472
25473 ac_aux_dir='$ac_aux_dir'
25474
25475 # See if we are running on zsh, and set the options that allow our
25476 # commands through without removal of \ escapes INIT.
25477 if test -n "\${ZSH_VERSION+set}"; then
25478    setopt NO_GLOB_SUBST
25479 fi
25480
25481
25482     PACKAGE='$PACKAGE'
25483     VERSION='$VERSION'
25484     RM='$RM'
25485     ofile='$ofile'
25486
25487
25488
25489
25490
25491 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25492
25493 _ACEOF
25494
25495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25496
25497 # Handling of arguments.
25498 for ac_config_target in $ac_config_targets
25499 do
25500   case $ac_config_target in
25501     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25502     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25503     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25504     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25505     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25506     "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
25507     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
25508     "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
25509     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25510     "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
25511     "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
25512     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25513     "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
25514     "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
25515     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25516     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
25517     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
25518     "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
25519     "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
25520     "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
25521     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25522     "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
25523     "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
25524     "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
25525     "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
25526     "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
25527     "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
25528     "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
25529     "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
25530     "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
25531     "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
25532     "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
25533     "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
25534     "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
25535     "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
25536     "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
25537     "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
25538     "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
25539     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
25540     "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
25541
25542   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25543   esac
25544 done
25545
25546
25547 # If the user did not use the arguments to specify the items to instantiate,
25548 # then the envvar interface is used.  Set only those that are not.
25549 # We use the long form for the default assignment because of an extremely
25550 # bizarre bug on SunOS 4.1.3.
25551 if $ac_need_defaults; then
25552   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25553   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25554   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25555 fi
25556
25557 # Have a temporary directory for convenience.  Make it in the build tree
25558 # simply because there is no reason against having it here, and in addition,
25559 # creating and moving files from /tmp can sometimes cause problems.
25560 # Hook for its removal unless debugging.
25561 # Note that there is a small window in which the directory will not be cleaned:
25562 # after its creation but before its name has been assigned to `$tmp'.
25563 $debug ||
25564 {
25565   tmp= ac_tmp=
25566   trap 'exit_status=$?
25567   : "${ac_tmp:=$tmp}"
25568   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25569 ' 0
25570   trap 'as_fn_exit 1' 1 2 13 15
25571 }
25572 # Create a (secure) tmp directory for tmp files.
25573
25574 {
25575   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25576   test -d "$tmp"
25577 }  ||
25578 {
25579   tmp=./conf$$-$RANDOM
25580   (umask 077 && mkdir "$tmp")
25581 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25582 ac_tmp=$tmp
25583
25584 # Set up the scripts for CONFIG_FILES section.
25585 # No need to generate them if there are no CONFIG_FILES.
25586 # This happens for instance with `./config.status config.h'.
25587 if test -n "$CONFIG_FILES"; then
25588
25589
25590 ac_cr=`echo X | tr X '\015'`
25591 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25592 # But we know of no other shell where ac_cr would be empty at this
25593 # point, so we can use a bashism as a fallback.
25594 if test "x$ac_cr" = x; then
25595   eval ac_cr=\$\'\\r\'
25596 fi
25597 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25598 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25599   ac_cs_awk_cr='\\r'
25600 else
25601   ac_cs_awk_cr=$ac_cr
25602 fi
25603
25604 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25605 _ACEOF
25606
25607
25608 {
25609   echo "cat >conf$$subs.awk <<_ACEOF" &&
25610   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25611   echo "_ACEOF"
25612 } >conf$$subs.sh ||
25613   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25614 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25615 ac_delim='%!_!# '
25616 for ac_last_try in false false false false false :; do
25617   . ./conf$$subs.sh ||
25618     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25619
25620   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25621   if test $ac_delim_n = $ac_delim_num; then
25622     break
25623   elif $ac_last_try; then
25624     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25625   else
25626     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25627   fi
25628 done
25629 rm -f conf$$subs.sh
25630
25631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25632 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25633 _ACEOF
25634 sed -n '
25635 h
25636 s/^/S["/; s/!.*/"]=/
25637 p
25638 g
25639 s/^[^!]*!//
25640 :repl
25641 t repl
25642 s/'"$ac_delim"'$//
25643 t delim
25644 :nl
25645 h
25646 s/\(.\{148\}\)..*/\1/
25647 t more1
25648 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25649 p
25650 n
25651 b repl
25652 :more1
25653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25654 p
25655 g
25656 s/.\{148\}//
25657 t nl
25658 :delim
25659 h
25660 s/\(.\{148\}\)..*/\1/
25661 t more2
25662 s/["\\]/\\&/g; s/^/"/; s/$/"/
25663 p
25664 b
25665 :more2
25666 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25667 p
25668 g
25669 s/.\{148\}//
25670 t delim
25671 ' <conf$$subs.awk | sed '
25672 /^[^""]/{
25673   N
25674   s/\n//
25675 }
25676 ' >>$CONFIG_STATUS || ac_write_fail=1
25677 rm -f conf$$subs.awk
25678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25679 _ACAWK
25680 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25681   for (key in S) S_is_set[key] = 1
25682   FS = "\a"
25683
25684 }
25685 {
25686   line = $ 0
25687   nfields = split(line, field, "@")
25688   substed = 0
25689   len = length(field[1])
25690   for (i = 2; i < nfields; i++) {
25691     key = field[i]
25692     keylen = length(key)
25693     if (S_is_set[key]) {
25694       value = S[key]
25695       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25696       len += length(value) + length(field[++i])
25697       substed = 1
25698     } else
25699       len += 1 + keylen
25700   }
25701
25702   print line
25703 }
25704
25705 _ACAWK
25706 _ACEOF
25707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25708 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25709   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25710 else
25711   cat
25712 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25713   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25714 _ACEOF
25715
25716 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25717 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25718 # trailing colons and then remove the whole line if VPATH becomes empty
25719 # (actually we leave an empty line to preserve line numbers).
25720 if test "x$srcdir" = x.; then
25721   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25722 h
25723 s///
25724 s/^/:/
25725 s/[      ]*$/:/
25726 s/:\$(srcdir):/:/g
25727 s/:\${srcdir}:/:/g
25728 s/:@srcdir@:/:/g
25729 s/^:*//
25730 s/:*$//
25731 x
25732 s/\(=[   ]*\).*/\1/
25733 G
25734 s/\n//
25735 s/^[^=]*=[       ]*$//
25736 }'
25737 fi
25738
25739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25740 fi # test -n "$CONFIG_FILES"
25741
25742 # Set up the scripts for CONFIG_HEADERS section.
25743 # No need to generate them if there are no CONFIG_HEADERS.
25744 # This happens for instance with `./config.status Makefile'.
25745 if test -n "$CONFIG_HEADERS"; then
25746 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25747 BEGIN {
25748 _ACEOF
25749
25750 # Transform confdefs.h into an awk script `defines.awk', embedded as
25751 # here-document in config.status, that substitutes the proper values into
25752 # config.h.in to produce config.h.
25753
25754 # Create a delimiter string that does not exist in confdefs.h, to ease
25755 # handling of long lines.
25756 ac_delim='%!_!# '
25757 for ac_last_try in false false :; do
25758   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25759   if test -z "$ac_tt"; then
25760     break
25761   elif $ac_last_try; then
25762     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25763   else
25764     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25765   fi
25766 done
25767
25768 # For the awk script, D is an array of macro values keyed by name,
25769 # likewise P contains macro parameters if any.  Preserve backslash
25770 # newline sequences.
25771
25772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25773 sed -n '
25774 s/.\{148\}/&'"$ac_delim"'/g
25775 t rset
25776 :rset
25777 s/^[     ]*#[    ]*define[       ][      ]*/ /
25778 t def
25779 d
25780 :def
25781 s/\\$//
25782 t bsnl
25783 s/["\\]/\\&/g
25784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25785 D["\1"]=" \3"/p
25786 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25787 d
25788 :bsnl
25789 s/["\\]/\\&/g
25790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25791 D["\1"]=" \3\\\\\\n"\\/p
25792 t cont
25793 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25794 t cont
25795 d
25796 :cont
25797 n
25798 s/.\{148\}/&'"$ac_delim"'/g
25799 t clear
25800 :clear
25801 s/\\$//
25802 t bsnlc
25803 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25804 d
25805 :bsnlc
25806 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25807 b cont
25808 ' <confdefs.h | sed '
25809 s/'"$ac_delim"'/"\\\
25810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25811
25812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25813   for (key in D) D_is_set[key] = 1
25814   FS = "\a"
25815 }
25816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25817   line = \$ 0
25818   split(line, arg, " ")
25819   if (arg[1] == "#") {
25820     defundef = arg[2]
25821     mac1 = arg[3]
25822   } else {
25823     defundef = substr(arg[1], 2)
25824     mac1 = arg[2]
25825   }
25826   split(mac1, mac2, "(") #)
25827   macro = mac2[1]
25828   prefix = substr(line, 1, index(line, defundef) - 1)
25829   if (D_is_set[macro]) {
25830     # Preserve the white space surrounding the "#".
25831     print prefix "define", macro P[macro] D[macro]
25832     next
25833   } else {
25834     # Replace #undef with comments.  This is necessary, for example,
25835     # in the case of _POSIX_SOURCE, which is predefined and required
25836     # on some systems where configure will not decide to define it.
25837     if (defundef == "undef") {
25838       print "/*", prefix defundef, macro, "*/"
25839       next
25840     }
25841   }
25842 }
25843 { print }
25844 _ACAWK
25845 _ACEOF
25846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25847   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25848 fi # test -n "$CONFIG_HEADERS"
25849
25850
25851 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25852 shift
25853 for ac_tag
25854 do
25855   case $ac_tag in
25856   :[FHLC]) ac_mode=$ac_tag; continue;;
25857   esac
25858   case $ac_mode$ac_tag in
25859   :[FHL]*:*);;
25860   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25861   :[FH]-) ac_tag=-:-;;
25862   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25863   esac
25864   ac_save_IFS=$IFS
25865   IFS=:
25866   set x $ac_tag
25867   IFS=$ac_save_IFS
25868   shift
25869   ac_file=$1
25870   shift
25871
25872   case $ac_mode in
25873   :L) ac_source=$1;;
25874   :[FH])
25875     ac_file_inputs=
25876     for ac_f
25877     do
25878       case $ac_f in
25879       -) ac_f="$ac_tmp/stdin";;
25880       *) # Look for the file first in the build tree, then in the source tree
25881          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25882          # because $ac_f cannot contain `:'.
25883          test -f "$ac_f" ||
25884            case $ac_f in
25885            [\\/$]*) false;;
25886            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25887            esac ||
25888            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25889       esac
25890       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25891       as_fn_append ac_file_inputs " '$ac_f'"
25892     done
25893
25894     # Let's still pretend it is `configure' which instantiates (i.e., don't
25895     # use $as_me), people would be surprised to read:
25896     #    /* config.h.  Generated by config.status.  */
25897     configure_input='Generated from '`
25898           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25899         `' by configure.'
25900     if test x"$ac_file" != x-; then
25901       configure_input="$ac_file.  $configure_input"
25902       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25903 $as_echo "$as_me: creating $ac_file" >&6;}
25904     fi
25905     # Neutralize special characters interpreted by sed in replacement strings.
25906     case $configure_input in #(
25907     *\&* | *\|* | *\\* )
25908        ac_sed_conf_input=`$as_echo "$configure_input" |
25909        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25910     *) ac_sed_conf_input=$configure_input;;
25911     esac
25912
25913     case $ac_tag in
25914     *:-:* | *:-) cat >"$ac_tmp/stdin" \
25915       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25916     esac
25917     ;;
25918   esac
25919
25920   ac_dir=`$as_dirname -- "$ac_file" ||
25921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25922          X"$ac_file" : 'X\(//\)[^/]' \| \
25923          X"$ac_file" : 'X\(//\)$' \| \
25924          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25925 $as_echo X"$ac_file" |
25926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25927             s//\1/
25928             q
25929           }
25930           /^X\(\/\/\)[^/].*/{
25931             s//\1/
25932             q
25933           }
25934           /^X\(\/\/\)$/{
25935             s//\1/
25936             q
25937           }
25938           /^X\(\/\).*/{
25939             s//\1/
25940             q
25941           }
25942           s/.*/./; q'`
25943   as_dir="$ac_dir"; as_fn_mkdir_p
25944   ac_builddir=.
25945
25946 case "$ac_dir" in
25947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25948 *)
25949   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25950   # A ".." for each directory in $ac_dir_suffix.
25951   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25952   case $ac_top_builddir_sub in
25953   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25954   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25955   esac ;;
25956 esac
25957 ac_abs_top_builddir=$ac_pwd
25958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25959 # for backward compatibility:
25960 ac_top_builddir=$ac_top_build_prefix
25961
25962 case $srcdir in
25963   .)  # We are building in place.
25964     ac_srcdir=.
25965     ac_top_srcdir=$ac_top_builddir_sub
25966     ac_abs_top_srcdir=$ac_pwd ;;
25967   [\\/]* | ?:[\\/]* )  # Absolute name.
25968     ac_srcdir=$srcdir$ac_dir_suffix;
25969     ac_top_srcdir=$srcdir
25970     ac_abs_top_srcdir=$srcdir ;;
25971   *) # Relative name.
25972     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25973     ac_top_srcdir=$ac_top_build_prefix$srcdir
25974     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25975 esac
25976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25977
25978
25979   case $ac_mode in
25980   :F)
25981   #
25982   # CONFIG_FILE
25983   #
25984
25985   case $INSTALL in
25986   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25987   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25988   esac
25989   ac_MKDIR_P=$MKDIR_P
25990   case $MKDIR_P in
25991   [\\/$]* | ?:[\\/]* ) ;;
25992   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25993   esac
25994 _ACEOF
25995
25996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25997 # If the template does not know about datarootdir, expand it.
25998 # FIXME: This hack should be removed a few years after 2.60.
25999 ac_datarootdir_hack=; ac_datarootdir_seen=
26000 ac_sed_dataroot='
26001 /datarootdir/ {
26002   p
26003   q
26004 }
26005 /@datadir@/p
26006 /@docdir@/p
26007 /@infodir@/p
26008 /@localedir@/p
26009 /@mandir@/p'
26010 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26011 *datarootdir*) ac_datarootdir_seen=yes;;
26012 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26013   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26014 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26015 _ACEOF
26016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26017   ac_datarootdir_hack='
26018   s&@datadir@&$datadir&g
26019   s&@docdir@&$docdir&g
26020   s&@infodir@&$infodir&g
26021   s&@localedir@&$localedir&g
26022   s&@mandir@&$mandir&g
26023   s&\\\${datarootdir}&$datarootdir&g' ;;
26024 esac
26025 _ACEOF
26026
26027 # Neutralize VPATH when `$srcdir' = `.'.
26028 # Shell code in configure.ac might set extrasub.
26029 # FIXME: do we really want to maintain this feature?
26030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26031 ac_sed_extra="$ac_vpsub
26032 $extrasub
26033 _ACEOF
26034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26035 :t
26036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26037 s|@configure_input@|$ac_sed_conf_input|;t t
26038 s&@top_builddir@&$ac_top_builddir_sub&;t t
26039 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26040 s&@srcdir@&$ac_srcdir&;t t
26041 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26042 s&@top_srcdir@&$ac_top_srcdir&;t t
26043 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26044 s&@builddir@&$ac_builddir&;t t
26045 s&@abs_builddir@&$ac_abs_builddir&;t t
26046 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26047 s&@INSTALL@&$ac_INSTALL&;t t
26048 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26049 $ac_datarootdir_hack
26050 "
26051 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26052   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26053
26054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26055   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26056   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26057       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26058   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26059 which seems to be undefined.  Please make sure it is defined" >&5
26060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26061 which seems to be undefined.  Please make sure it is defined" >&2;}
26062
26063   rm -f "$ac_tmp/stdin"
26064   case $ac_file in
26065   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26066   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26067   esac \
26068   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26069  ;;
26070   :H)
26071   #
26072   # CONFIG_HEADER
26073   #
26074   if test x"$ac_file" != x-; then
26075     {
26076       $as_echo "/* $configure_input  */" \
26077       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26078     } >"$ac_tmp/config.h" \
26079       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26080     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26081       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26082 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26083     else
26084       rm -f "$ac_file"
26085       mv "$ac_tmp/config.h" "$ac_file" \
26086         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26087     fi
26088   else
26089     $as_echo "/* $configure_input  */" \
26090       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26091       || as_fn_error $? "could not create -" "$LINENO" 5
26092   fi
26093 # Compute "$ac_file"'s index in $config_headers.
26094 _am_arg="$ac_file"
26095 _am_stamp_count=1
26096 for _am_header in $config_headers :; do
26097   case $_am_header in
26098     $_am_arg | $_am_arg:* )
26099       break ;;
26100     * )
26101       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26102   esac
26103 done
26104 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26105 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26106          X"$_am_arg" : 'X\(//\)[^/]' \| \
26107          X"$_am_arg" : 'X\(//\)$' \| \
26108          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26109 $as_echo X"$_am_arg" |
26110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26111             s//\1/
26112             q
26113           }
26114           /^X\(\/\/\)[^/].*/{
26115             s//\1/
26116             q
26117           }
26118           /^X\(\/\/\)$/{
26119             s//\1/
26120             q
26121           }
26122           /^X\(\/\).*/{
26123             s//\1/
26124             q
26125           }
26126           s/.*/./; q'`/stamp-h$_am_stamp_count
26127  ;;
26128
26129   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26130 $as_echo "$as_me: executing $ac_file commands" >&6;}
26131  ;;
26132   esac
26133
26134
26135   case $ac_file$ac_mode in
26136     "libtool":C)
26137
26138     # See if we are running on zsh, and set the options that allow our
26139     # commands through without removal of \ escapes.
26140     if test -n "${ZSH_VERSION+set}"; then
26141       setopt NO_GLOB_SUBST
26142     fi
26143
26144     cfgfile=${ofile}T
26145     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26146     $RM "$cfgfile"
26147
26148     cat <<_LT_EOF >> "$cfgfile"
26149 #! $SHELL
26150 # Generated automatically by $as_me ($PACKAGE) $VERSION
26151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26152
26153 # Provide generalized library-building support services.
26154 # Written by Gordon Matzigkeit, 1996
26155
26156 # Copyright (C) 2014 Free Software Foundation, Inc.
26157 # This is free software; see the source for copying conditions.  There is NO
26158 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26159
26160 # GNU Libtool is free software; you can redistribute it and/or modify
26161 # it under the terms of the GNU General Public License as published by
26162 # the Free Software Foundation; either version 2 of of the License, or
26163 # (at your option) any later version.
26164 #
26165 # As a special exception to the GNU General Public License, if you
26166 # distribute this file as part of a program or library that is built
26167 # using GNU Libtool, you may include this file under the  same
26168 # distribution terms that you use for the rest of that program.
26169 #
26170 # GNU Libtool is distributed in the hope that it will be useful, but
26171 # WITHOUT ANY WARRANTY; without even the implied warranty of
26172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26173 # GNU General Public License for more details.
26174 #
26175 # You should have received a copy of the GNU General Public License
26176 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
26177
26178
26179 # The names of the tagged configurations supported by this script.
26180 available_tags='CXX '
26181
26182 # Configured defaults for sys_lib_dlsearch_path munging.
26183 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26184
26185 # ### BEGIN LIBTOOL CONFIG
26186
26187 # Which release of libtool.m4 was used?
26188 macro_version=$macro_version
26189 macro_revision=$macro_revision
26190
26191 # Whether or not to build shared libraries.
26192 build_libtool_libs=$enable_shared
26193
26194 # Whether or not to build static libraries.
26195 build_old_libs=$enable_static
26196
26197 # What type of objects to build.
26198 pic_mode=$pic_mode
26199
26200 # Whether or not to optimize for fast installation.
26201 fast_install=$enable_fast_install
26202
26203 # Shared archive member basename,for filename based shared library versioning on AIX.
26204 shared_archive_member_spec=$shared_archive_member_spec
26205
26206 # Shell to use when invoking shell scripts.
26207 SHELL=$lt_SHELL
26208
26209 # An echo program that protects backslashes.
26210 ECHO=$lt_ECHO
26211
26212 # The PATH separator for the build system.
26213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26214
26215 # The host system.
26216 host_alias=$host_alias
26217 host=$host
26218 host_os=$host_os
26219
26220 # The build system.
26221 build_alias=$build_alias
26222 build=$build
26223 build_os=$build_os
26224
26225 # A sed program that does not truncate output.
26226 SED=$lt_SED
26227
26228 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26229 Xsed="\$SED -e 1s/^X//"
26230
26231 # A grep program that handles long lines.
26232 GREP=$lt_GREP
26233
26234 # An ERE matcher.
26235 EGREP=$lt_EGREP
26236
26237 # A literal string matcher.
26238 FGREP=$lt_FGREP
26239
26240 # A BSD- or MS-compatible name lister.
26241 NM=$lt_NM
26242
26243 # Whether we need soft or hard links.
26244 LN_S=$lt_LN_S
26245
26246 # What is the maximum length of a command?
26247 max_cmd_len=$max_cmd_len
26248
26249 # Object file suffix (normally "o").
26250 objext=$ac_objext
26251
26252 # Executable file suffix (normally "").
26253 exeext=$exeext
26254
26255 # whether the shell understands "unset".
26256 lt_unset=$lt_unset
26257
26258 # turn spaces into newlines.
26259 SP2NL=$lt_lt_SP2NL
26260
26261 # turn newlines into spaces.
26262 NL2SP=$lt_lt_NL2SP
26263
26264 # convert \$build file names to \$host format.
26265 to_host_file_cmd=$lt_cv_to_host_file_cmd
26266
26267 # convert \$build files to toolchain format.
26268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26269
26270 # An object symbol dumper.
26271 OBJDUMP=$lt_OBJDUMP
26272
26273 # Method to check whether dependent libraries are shared objects.
26274 deplibs_check_method=$lt_deplibs_check_method
26275
26276 # Command to use when deplibs_check_method = "file_magic".
26277 file_magic_cmd=$lt_file_magic_cmd
26278
26279 # How to find potential files when deplibs_check_method = "file_magic".
26280 file_magic_glob=$lt_file_magic_glob
26281
26282 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26283 want_nocaseglob=$lt_want_nocaseglob
26284
26285 # DLL creation program.
26286 DLLTOOL=$lt_DLLTOOL
26287
26288 # Command to associate shared and link libraries.
26289 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26290
26291 # The archiver.
26292 AR=$lt_AR
26293
26294 # Flags to create an archive.
26295 AR_FLAGS=$lt_AR_FLAGS
26296
26297 # How to feed a file listing to the archiver.
26298 archiver_list_spec=$lt_archiver_list_spec
26299
26300 # A symbol stripping program.
26301 STRIP=$lt_STRIP
26302
26303 # Commands used to install an old-style archive.
26304 RANLIB=$lt_RANLIB
26305 old_postinstall_cmds=$lt_old_postinstall_cmds
26306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26307
26308 # Whether to use a lock for old archive extraction.
26309 lock_old_archive_extraction=$lock_old_archive_extraction
26310
26311 # A C compiler.
26312 LTCC=$lt_CC
26313
26314 # LTCC compiler flags.
26315 LTCFLAGS=$lt_CFLAGS
26316
26317 # Take the output of nm and produce a listing of raw symbols and C names.
26318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26319
26320 # Transform the output of nm in a proper C declaration.
26321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26322
26323 # Transform the output of nm into a list of symbols to manually relocate.
26324 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26325
26326 # Transform the output of nm in a C name address pair.
26327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26328
26329 # Transform the output of nm in a C name address pair when lib prefix is needed.
26330 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26331
26332 # The name lister interface.
26333 nm_interface=$lt_lt_cv_nm_interface
26334
26335 # Specify filename containing input files for \$NM.
26336 nm_file_list_spec=$lt_nm_file_list_spec
26337
26338 # The root where to search for dependent libraries,and where our libraries should be installed.
26339 lt_sysroot=$lt_sysroot
26340
26341 # Command to truncate a binary pipe.
26342 lt_truncate_bin=$lt_lt_cv_truncate_bin
26343
26344 # The name of the directory that contains temporary libtool files.
26345 objdir=$objdir
26346
26347 # Used to examine libraries when file_magic_cmd begins with "file".
26348 MAGIC_CMD=$MAGIC_CMD
26349
26350 # Must we lock files when doing compilation?
26351 need_locks=$lt_need_locks
26352
26353 # Manifest tool.
26354 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26355
26356 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26357 DSYMUTIL=$lt_DSYMUTIL
26358
26359 # Tool to change global to local symbols on Mac OS X.
26360 NMEDIT=$lt_NMEDIT
26361
26362 # Tool to manipulate fat objects and archives on Mac OS X.
26363 LIPO=$lt_LIPO
26364
26365 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26366 OTOOL=$lt_OTOOL
26367
26368 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26369 OTOOL64=$lt_OTOOL64
26370
26371 # Old archive suffix (normally "a").
26372 libext=$libext
26373
26374 # Shared library suffix (normally ".so").
26375 shrext_cmds=$lt_shrext_cmds
26376
26377 # The commands to extract the exported symbol list from a shared archive.
26378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26379
26380 # Variables whose values should be saved in libtool wrapper scripts and
26381 # restored at link time.
26382 variables_saved_for_relink=$lt_variables_saved_for_relink
26383
26384 # Do we need the "lib" prefix for modules?
26385 need_lib_prefix=$need_lib_prefix
26386
26387 # Do we need a version for libraries?
26388 need_version=$need_version
26389
26390 # Library versioning type.
26391 version_type=$version_type
26392
26393 # Shared library runtime path variable.
26394 runpath_var=$runpath_var
26395
26396 # Shared library path variable.
26397 shlibpath_var=$shlibpath_var
26398
26399 # Is shlibpath searched before the hard-coded library search path?
26400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26401
26402 # Format of library name prefix.
26403 libname_spec=$lt_libname_spec
26404
26405 # List of archive names.  First name is the real one, the rest are links.
26406 # The last name is the one that the linker finds with -lNAME
26407 library_names_spec=$lt_library_names_spec
26408
26409 # The coded name of the library, if different from the real name.
26410 soname_spec=$lt_soname_spec
26411
26412 # Permission mode override for installation of shared libraries.
26413 install_override_mode=$lt_install_override_mode
26414
26415 # Command to use after installation of a shared archive.
26416 postinstall_cmds=$lt_postinstall_cmds
26417
26418 # Command to use after uninstallation of a shared archive.
26419 postuninstall_cmds=$lt_postuninstall_cmds
26420
26421 # Commands used to finish a libtool library installation in a directory.
26422 finish_cmds=$lt_finish_cmds
26423
26424 # As "finish_cmds", except a single script fragment to be evaled but
26425 # not shown.
26426 finish_eval=$lt_finish_eval
26427
26428 # Whether we should hardcode library paths into libraries.
26429 hardcode_into_libs=$hardcode_into_libs
26430
26431 # Compile-time system search path for libraries.
26432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26433
26434 # Detected run-time system search path for libraries.
26435 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26436
26437 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26438 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26439
26440 # Whether dlopen is supported.
26441 dlopen_support=$enable_dlopen
26442
26443 # Whether dlopen of programs is supported.
26444 dlopen_self=$enable_dlopen_self
26445
26446 # Whether dlopen of statically linked programs is supported.
26447 dlopen_self_static=$enable_dlopen_self_static
26448
26449 # Commands to strip libraries.
26450 old_striplib=$lt_old_striplib
26451 striplib=$lt_striplib
26452
26453
26454 # The linker used to build libraries.
26455 LD=$lt_LD
26456
26457 # How to create reloadable object files.
26458 reload_flag=$lt_reload_flag
26459 reload_cmds=$lt_reload_cmds
26460
26461 # Commands used to build an old-style archive.
26462 old_archive_cmds=$lt_old_archive_cmds
26463
26464 # A language specific compiler.
26465 CC=$lt_compiler
26466
26467 # Is the compiler the GNU compiler?
26468 with_gcc=$GCC
26469
26470 # Compiler flag to turn off builtin functions.
26471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26472
26473 # Additional compiler flags for building library objects.
26474 pic_flag=$lt_lt_prog_compiler_pic
26475
26476 # How to pass a linker flag through the compiler.
26477 wl=$lt_lt_prog_compiler_wl
26478
26479 # Compiler flag to prevent dynamic linking.
26480 link_static_flag=$lt_lt_prog_compiler_static
26481
26482 # Does compiler simultaneously support -c and -o options?
26483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26484
26485 # Whether or not to add -lc for building shared libraries.
26486 build_libtool_need_lc=$archive_cmds_need_lc
26487
26488 # Whether or not to disallow shared libs when runtime libs are static.
26489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26490
26491 # Compiler flag to allow reflexive dlopens.
26492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26493
26494 # Compiler flag to generate shared objects directly from archives.
26495 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26496
26497 # Whether the compiler copes with passing no objects directly.
26498 compiler_needs_object=$lt_compiler_needs_object
26499
26500 # Create an old-style archive from a shared archive.
26501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26502
26503 # Create a temporary old-style archive to link instead of a shared archive.
26504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26505
26506 # Commands used to build a shared archive.
26507 archive_cmds=$lt_archive_cmds
26508 archive_expsym_cmds=$lt_archive_expsym_cmds
26509
26510 # Commands used to build a loadable module if different from building
26511 # a shared archive.
26512 module_cmds=$lt_module_cmds
26513 module_expsym_cmds=$lt_module_expsym_cmds
26514
26515 # Whether we are building with GNU ld or not.
26516 with_gnu_ld=$lt_with_gnu_ld
26517
26518 # Flag that allows shared libraries with undefined symbols to be built.
26519 allow_undefined_flag=$lt_allow_undefined_flag
26520
26521 # Flag that enforces no undefined symbols.
26522 no_undefined_flag=$lt_no_undefined_flag
26523
26524 # Flag to hardcode \$libdir into a binary during linking.
26525 # This must work even if \$libdir does not exist
26526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26527
26528 # Whether we need a single "-rpath" flag with a separated argument.
26529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26530
26531 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26532 # DIR into the resulting binary.
26533 hardcode_direct=$hardcode_direct
26534
26535 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26536 # DIR into the resulting binary and the resulting library dependency is
26537 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26538 # library is relocated.
26539 hardcode_direct_absolute=$hardcode_direct_absolute
26540
26541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26542 # into the resulting binary.
26543 hardcode_minus_L=$hardcode_minus_L
26544
26545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26546 # into the resulting binary.
26547 hardcode_shlibpath_var=$hardcode_shlibpath_var
26548
26549 # Set to "yes" if building a shared library automatically hardcodes DIR
26550 # into the library and all subsequent libraries and executables linked
26551 # against it.
26552 hardcode_automatic=$hardcode_automatic
26553
26554 # Set to yes if linker adds runtime paths of dependent libraries
26555 # to runtime path list.
26556 inherit_rpath=$inherit_rpath
26557
26558 # Whether libtool must link a program against all its dependency libraries.
26559 link_all_deplibs=$link_all_deplibs
26560
26561 # Set to "yes" if exported symbols are required.
26562 always_export_symbols=$always_export_symbols
26563
26564 # The commands to list exported symbols.
26565 export_symbols_cmds=$lt_export_symbols_cmds
26566
26567 # Symbols that should not be listed in the preloaded symbols.
26568 exclude_expsyms=$lt_exclude_expsyms
26569
26570 # Symbols that must always be exported.
26571 include_expsyms=$lt_include_expsyms
26572
26573 # Commands necessary for linking programs (against libraries) with templates.
26574 prelink_cmds=$lt_prelink_cmds
26575
26576 # Commands necessary for finishing linking programs.
26577 postlink_cmds=$lt_postlink_cmds
26578
26579 # Specify filename containing input files.
26580 file_list_spec=$lt_file_list_spec
26581
26582 # How to hardcode a shared library path into an executable.
26583 hardcode_action=$hardcode_action
26584
26585 # The directories searched by this compiler when creating a shared library.
26586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26587
26588 # Dependencies to place before and after the objects being linked to
26589 # create a shared library.
26590 predep_objects=$lt_predep_objects
26591 postdep_objects=$lt_postdep_objects
26592 predeps=$lt_predeps
26593 postdeps=$lt_postdeps
26594
26595 # The library search path used internally by the compiler when linking
26596 # a shared library.
26597 compiler_lib_search_path=$lt_compiler_lib_search_path
26598
26599 # ### END LIBTOOL CONFIG
26600
26601 _LT_EOF
26602
26603     cat <<'_LT_EOF' >> "$cfgfile"
26604
26605 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26606
26607 # func_munge_path_list VARIABLE PATH
26608 # -----------------------------------
26609 # VARIABLE is name of variable containing _space_ separated list of
26610 # directories to be munged by the contents of PATH, which is string
26611 # having a format:
26612 # "DIR[:DIR]:"
26613 #       string "DIR[ DIR]" will be prepended to VARIABLE
26614 # ":DIR[:DIR]"
26615 #       string "DIR[ DIR]" will be appended to VARIABLE
26616 # "DIRP[:DIRP]::[DIRA:]DIRA"
26617 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26618 #       "DIRA[ DIRA]" will be appended to VARIABLE
26619 # "DIR[:DIR]"
26620 #       VARIABLE will be replaced by "DIR[ DIR]"
26621 func_munge_path_list ()
26622 {
26623     case x$2 in
26624     x)
26625         ;;
26626     *:)
26627         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26628         ;;
26629     x:*)
26630         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26631         ;;
26632     *::*)
26633         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26634         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26635         ;;
26636     *)
26637         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26638         ;;
26639     esac
26640 }
26641
26642
26643 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26644 func_cc_basename ()
26645 {
26646     for cc_temp in $*""; do
26647       case $cc_temp in
26648         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26649         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26650         \-*) ;;
26651         *) break;;
26652       esac
26653     done
26654     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26655 }
26656
26657
26658 # ### END FUNCTIONS SHARED WITH CONFIGURE
26659
26660 _LT_EOF
26661
26662   case $host_os in
26663   aix3*)
26664     cat <<\_LT_EOF >> "$cfgfile"
26665 # AIX sometimes has problems with the GCC collect2 program.  For some
26666 # reason, if we set the COLLECT_NAMES environment variable, the problems
26667 # vanish in a puff of smoke.
26668 if test set != "${COLLECT_NAMES+set}"; then
26669   COLLECT_NAMES=
26670   export COLLECT_NAMES
26671 fi
26672 _LT_EOF
26673     ;;
26674   esac
26675
26676
26677 ltmain=$ac_aux_dir/ltmain.sh
26678
26679
26680   # We use sed instead of cat because bash on DJGPP gets confused if
26681   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26682   # text mode, it properly converts lines to CR/LF.  This bash problem
26683   # is reportedly fixed, but why not run on old versions too?
26684   sed '$q' "$ltmain" >> "$cfgfile" \
26685      || (rm -f "$cfgfile"; exit 1)
26686
26687    mv -f "$cfgfile" "$ofile" ||
26688     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26689   chmod +x "$ofile"
26690
26691
26692     cat <<_LT_EOF >> "$ofile"
26693
26694 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26695
26696 # The linker used to build libraries.
26697 LD=$lt_LD_CXX
26698
26699 # How to create reloadable object files.
26700 reload_flag=$lt_reload_flag_CXX
26701 reload_cmds=$lt_reload_cmds_CXX
26702
26703 # Commands used to build an old-style archive.
26704 old_archive_cmds=$lt_old_archive_cmds_CXX
26705
26706 # A language specific compiler.
26707 CC=$lt_compiler_CXX
26708
26709 # Is the compiler the GNU compiler?
26710 with_gcc=$GCC_CXX
26711
26712 # Compiler flag to turn off builtin functions.
26713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26714
26715 # Additional compiler flags for building library objects.
26716 pic_flag=$lt_lt_prog_compiler_pic_CXX
26717
26718 # How to pass a linker flag through the compiler.
26719 wl=$lt_lt_prog_compiler_wl_CXX
26720
26721 # Compiler flag to prevent dynamic linking.
26722 link_static_flag=$lt_lt_prog_compiler_static_CXX
26723
26724 # Does compiler simultaneously support -c and -o options?
26725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26726
26727 # Whether or not to add -lc for building shared libraries.
26728 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26729
26730 # Whether or not to disallow shared libs when runtime libs are static.
26731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26732
26733 # Compiler flag to allow reflexive dlopens.
26734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26735
26736 # Compiler flag to generate shared objects directly from archives.
26737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26738
26739 # Whether the compiler copes with passing no objects directly.
26740 compiler_needs_object=$lt_compiler_needs_object_CXX
26741
26742 # Create an old-style archive from a shared archive.
26743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26744
26745 # Create a temporary old-style archive to link instead of a shared archive.
26746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26747
26748 # Commands used to build a shared archive.
26749 archive_cmds=$lt_archive_cmds_CXX
26750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26751
26752 # Commands used to build a loadable module if different from building
26753 # a shared archive.
26754 module_cmds=$lt_module_cmds_CXX
26755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26756
26757 # Whether we are building with GNU ld or not.
26758 with_gnu_ld=$lt_with_gnu_ld_CXX
26759
26760 # Flag that allows shared libraries with undefined symbols to be built.
26761 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26762
26763 # Flag that enforces no undefined symbols.
26764 no_undefined_flag=$lt_no_undefined_flag_CXX
26765
26766 # Flag to hardcode \$libdir into a binary during linking.
26767 # This must work even if \$libdir does not exist
26768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26769
26770 # Whether we need a single "-rpath" flag with a separated argument.
26771 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26772
26773 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26774 # DIR into the resulting binary.
26775 hardcode_direct=$hardcode_direct_CXX
26776
26777 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26778 # DIR into the resulting binary and the resulting library dependency is
26779 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26780 # library is relocated.
26781 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26782
26783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26784 # into the resulting binary.
26785 hardcode_minus_L=$hardcode_minus_L_CXX
26786
26787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26788 # into the resulting binary.
26789 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26790
26791 # Set to "yes" if building a shared library automatically hardcodes DIR
26792 # into the library and all subsequent libraries and executables linked
26793 # against it.
26794 hardcode_automatic=$hardcode_automatic_CXX
26795
26796 # Set to yes if linker adds runtime paths of dependent libraries
26797 # to runtime path list.
26798 inherit_rpath=$inherit_rpath_CXX
26799
26800 # Whether libtool must link a program against all its dependency libraries.
26801 link_all_deplibs=$link_all_deplibs_CXX
26802
26803 # Set to "yes" if exported symbols are required.
26804 always_export_symbols=$always_export_symbols_CXX
26805
26806 # The commands to list exported symbols.
26807 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26808
26809 # Symbols that should not be listed in the preloaded symbols.
26810 exclude_expsyms=$lt_exclude_expsyms_CXX
26811
26812 # Symbols that must always be exported.
26813 include_expsyms=$lt_include_expsyms_CXX
26814
26815 # Commands necessary for linking programs (against libraries) with templates.
26816 prelink_cmds=$lt_prelink_cmds_CXX
26817
26818 # Commands necessary for finishing linking programs.
26819 postlink_cmds=$lt_postlink_cmds_CXX
26820
26821 # Specify filename containing input files.
26822 file_list_spec=$lt_file_list_spec_CXX
26823
26824 # How to hardcode a shared library path into an executable.
26825 hardcode_action=$hardcode_action_CXX
26826
26827 # The directories searched by this compiler when creating a shared library.
26828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26829
26830 # Dependencies to place before and after the objects being linked to
26831 # create a shared library.
26832 predep_objects=$lt_predep_objects_CXX
26833 postdep_objects=$lt_postdep_objects_CXX
26834 predeps=$lt_predeps_CXX
26835 postdeps=$lt_postdeps_CXX
26836
26837 # The library search path used internally by the compiler when linking
26838 # a shared library.
26839 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26840
26841 # ### END LIBTOOL TAG CONFIG: CXX
26842 _LT_EOF
26843
26844  ;;
26845     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26846   # Older Autoconf quotes --file arguments for eval, but not when files
26847   # are listed without --file.  Let's play safe and only enable the eval
26848   # if we detect the quoting.
26849   # TODO: see whether this extra hack can be removed once we start
26850   # requiring Autoconf 2.70 or later.
26851   case $CONFIG_FILES in #(
26852   *\'*) :
26853     eval set x "$CONFIG_FILES" ;; #(
26854   *) :
26855     set x $CONFIG_FILES ;; #(
26856   *) :
26857      ;;
26858 esac
26859   shift
26860   # Used to flag and report bootstrapping failures.
26861   am_rc=0
26862   for am_mf
26863   do
26864     # Strip MF so we end up with the name of the file.
26865     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26866     # Check whether this is an Automake generated Makefile which includes
26867     # dependency-tracking related rules and includes.
26868     # Grep'ing the whole file directly is not great: AIX grep has a line
26869     # limit of 2048, but all sed's we know have understand at least 4000.
26870     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26871       || continue
26872     am_dirpart=`$as_dirname -- "$am_mf" ||
26873 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26874          X"$am_mf" : 'X\(//\)[^/]' \| \
26875          X"$am_mf" : 'X\(//\)$' \| \
26876          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26877 $as_echo X"$am_mf" |
26878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26879             s//\1/
26880             q
26881           }
26882           /^X\(\/\/\)[^/].*/{
26883             s//\1/
26884             q
26885           }
26886           /^X\(\/\/\)$/{
26887             s//\1/
26888             q
26889           }
26890           /^X\(\/\).*/{
26891             s//\1/
26892             q
26893           }
26894           s/.*/./; q'`
26895     am_filepart=`$as_basename -- "$am_mf" ||
26896 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26897          X"$am_mf" : 'X\(//\)$' \| \
26898          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X/"$am_mf" |
26900     sed '/^.*\/\([^/][^/]*\)\/*$/{
26901             s//\1/
26902             q
26903           }
26904           /^X\/\(\/\/\)$/{
26905             s//\1/
26906             q
26907           }
26908           /^X\/\(\/\).*/{
26909             s//\1/
26910             q
26911           }
26912           s/.*/./; q'`
26913     { echo "$as_me:$LINENO: cd "$am_dirpart" \
26914       && sed -e '/# am--include-marker/d' "$am_filepart" \
26915         | $MAKE -f - am--depfiles" >&5
26916    (cd "$am_dirpart" \
26917       && sed -e '/# am--include-marker/d' "$am_filepart" \
26918         | $MAKE -f - am--depfiles) >&5 2>&5
26919    ac_status=$?
26920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921    (exit $ac_status); } || am_rc=$?
26922   done
26923   if test $am_rc -ne 0; then
26924     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26926 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26927     for automatic dependency tracking.  Try re-running configure with the
26928     '--disable-dependency-tracking' option to at least be able to build
26929     the package (albeit without support for automatic dependency tracking).
26930 See \`config.log' for more details" "$LINENO" 5; }
26931   fi
26932   { am_dirpart=; unset am_dirpart;}
26933   { am_filepart=; unset am_filepart;}
26934   { am_mf=; unset am_mf;}
26935   { am_rc=; unset am_rc;}
26936   rm -f conftest-deps.mk
26937 }
26938  ;;
26939
26940   esac
26941 done # for ac_tag
26942
26943
26944 as_fn_exit 0
26945 _ACEOF
26946 ac_clean_files=$ac_clean_files_save
26947
26948 test $ac_write_fail = 0 ||
26949   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26950
26951
26952 # configure is writing to config.log, and then calls config.status.
26953 # config.status does its own redirection, appending to config.log.
26954 # Unfortunately, on DOS this fails, as config.log is still kept open
26955 # by configure, so config.status won't be able to write to it; its
26956 # output is simply discarded.  So we exec the FD to /dev/null,
26957 # effectively closing config.log, so it can be properly (re)opened and
26958 # appended to by config.status.  When coming back to configure, we
26959 # need to make the FD available again.
26960 if test "$no_create" != yes; then
26961   ac_cs_success=:
26962   ac_config_status_args=
26963   test "$silent" = yes &&
26964     ac_config_status_args="$ac_config_status_args --quiet"
26965   exec 5>/dev/null
26966   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26967   exec 5>>config.log
26968   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26969   # would make configure fail if this is the last instruction.
26970   $ac_cs_success || as_fn_exit 1
26971 fi
26972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26973   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26975 fi
26976
26977
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
26979
26980     Package version: ${VERSION}
26981     Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
26982     Install prefix:  ${prefix}
26983     System types:
26984       Build:         ${build}
26985       Host:          ${host}
26986       Target:        ${target}
26987     Compiler:
26988       C compiler:     ${CC}
26989       CFLAGS:         ${CFLAGS}
26990       LDFLAGS:        ${LDFLAGS}
26991       C++ compiler:   ${CXX}
26992       CXXFLAGS:       ${CXXFLAGS}
26993       CXXCPP:         ${CXXCPP}
26994       C preprocessor: ${CPP}
26995       CPPFLAGS:       ${CPPFLAGS}
26996       WARNCFLAGS:     ${WARNCFLAGS}
26997       WARNCXXFLAGS:   ${WARNCXXFLAGS}
26998       CXX1XCXXFLAGS:  ${CXX1XCXXFLAGS}
26999       EXTRACFLAG:     ${EXTRACFLAG}
27000       LIBS:           ${LIBS}
27001     Library:
27002       Shared:         ${enable_shared}
27003       Static:         ${enable_static}
27004     Python:
27005       Python:         ${PYTHON}
27006       PYTHON_VERSION: ${PYTHON_VERSION}
27007       pyexecdir:      ${pyexecdir}
27008       Python-dev:     ${have_python_dev}
27009       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
27010       PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
27011       Cython:         ${CYTHON}
27012     Test:
27013       CUnit:          ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
27014       Failmalloc:     ${enable_failmalloc}
27015     Libs:
27016       OpenSSL:        ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
27017       Libxml2:        ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
27018       Libev:          ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
27019       Libc-ares:      ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
27020       Libevent(SSL):  ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
27021       Jansson:        ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
27022       Jemalloc:       ${have_jemalloc} (LIBS='${JEMALLOC_LIBS}')
27023       Zlib:           ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
27024       Systemd:        ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
27025       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
27026       Boost LDFLAGS:  ${BOOST_LDFLAGS}
27027       Boost::ASIO:    ${BOOST_ASIO_LIB}
27028       Boost::System:  ${BOOST_SYSTEM_LIB}
27029       Boost::Thread:  ${BOOST_THREAD_LIB}
27030     Third-party:
27031       http-parser:    ${enable_third_party}
27032       MRuby:          ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
27033       Neverbleed:     ${have_neverbleed}
27034     Features:
27035       Applications:   ${enable_app}
27036       HPACK tools:    ${enable_hpack_tools}
27037       Libnghttp2_asio:${enable_asio_lib}
27038       Examples:       ${enable_examples}
27039       Python bindings:${enable_python_bindings}
27040       Threading:      ${enable_threads}
27041 " >&5
27042 $as_echo "$as_me: summary of build options:
27043
27044     Package version: ${VERSION}
27045     Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
27046     Install prefix:  ${prefix}
27047     System types:
27048       Build:         ${build}
27049       Host:          ${host}
27050       Target:        ${target}
27051     Compiler:
27052       C compiler:     ${CC}
27053       CFLAGS:         ${CFLAGS}
27054       LDFLAGS:        ${LDFLAGS}
27055       C++ compiler:   ${CXX}
27056       CXXFLAGS:       ${CXXFLAGS}
27057       CXXCPP:         ${CXXCPP}
27058       C preprocessor: ${CPP}
27059       CPPFLAGS:       ${CPPFLAGS}
27060       WARNCFLAGS:     ${WARNCFLAGS}
27061       WARNCXXFLAGS:   ${WARNCXXFLAGS}
27062       CXX1XCXXFLAGS:  ${CXX1XCXXFLAGS}
27063       EXTRACFLAG:     ${EXTRACFLAG}
27064       LIBS:           ${LIBS}
27065     Library:
27066       Shared:         ${enable_shared}
27067       Static:         ${enable_static}
27068     Python:
27069       Python:         ${PYTHON}
27070       PYTHON_VERSION: ${PYTHON_VERSION}
27071       pyexecdir:      ${pyexecdir}
27072       Python-dev:     ${have_python_dev}
27073       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
27074       PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
27075       Cython:         ${CYTHON}
27076     Test:
27077       CUnit:          ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
27078       Failmalloc:     ${enable_failmalloc}
27079     Libs:
27080       OpenSSL:        ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
27081       Libxml2:        ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
27082       Libev:          ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
27083       Libc-ares:      ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
27084       Libevent(SSL):  ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
27085       Jansson:        ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
27086       Jemalloc:       ${have_jemalloc} (LIBS='${JEMALLOC_LIBS}')
27087       Zlib:           ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
27088       Systemd:        ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
27089       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
27090       Boost LDFLAGS:  ${BOOST_LDFLAGS}
27091       Boost::ASIO:    ${BOOST_ASIO_LIB}
27092       Boost::System:  ${BOOST_SYSTEM_LIB}
27093       Boost::Thread:  ${BOOST_THREAD_LIB}
27094     Third-party:
27095       http-parser:    ${enable_third_party}
27096       MRuby:          ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
27097       Neverbleed:     ${have_neverbleed}
27098     Features:
27099       Applications:   ${enable_app}
27100       HPACK tools:    ${enable_hpack_tools}
27101       Libnghttp2_asio:${enable_asio_lib}
27102       Examples:       ${enable_examples}
27103       Python bindings:${enable_python_bindings}
27104       Threading:      ${enable_threads}
27105 " >&6;}