Imported Upstream version 1.46.0
[platform/upstream/nghttp2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for nghttp2 1.46.0.
4 #
5 # Report bugs to <t-tujikawa@users.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: t-tujikawa@users.sourceforge.net about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='nghttp2'
623 PACKAGE_TARNAME='nghttp2'
624 PACKAGE_VERSION='1.46.0'
625 PACKAGE_STRING='nghttp2 1.46.0'
626 PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_func_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 APPLDFLAGS
666 TESTLDADD
667 ENABLE_STATIC_FALSE
668 ENABLE_STATIC_TRUE
669 EXTRACFLAG
670 WARNCXXFLAGS
671 WARNCFLAGS
672 LIBOBJS
673 ENABLE_FAILMALLOC_FALSE
674 ENABLE_FAILMALLOC_TRUE
675 HAVE_CYTHON_FALSE
676 HAVE_CYTHON_TRUE
677 ENABLE_PYTHON_BINDINGS_FALSE
678 ENABLE_PYTHON_BINDINGS_TRUE
679 HAVE_NEVERBLEED_FALSE
680 HAVE_NEVERBLEED_TRUE
681 HAVE_MRUBY_FALSE
682 HAVE_MRUBY_TRUE
683 ENABLE_THIRD_PARTY_FALSE
684 ENABLE_THIRD_PARTY_TRUE
685 LIBMRUBY_CFLAGS
686 LIBMRUBY_LIBS
687 ENABLE_EXAMPLES_FALSE
688 ENABLE_EXAMPLES_TRUE
689 ENABLE_ASIO_LIB_FALSE
690 ENABLE_ASIO_LIB_TRUE
691 ENABLE_HPACK_TOOLS_FALSE
692 ENABLE_HPACK_TOOLS_TRUE
693 ENABLE_HTTP3_FALSE
694 ENABLE_HTTP3_TRUE
695 ENABLE_APP_FALSE
696 ENABLE_APP_TRUE
697 BOOST_THREAD_LIB
698 BOOST_SYSTEM_LIB
699 BOOST_ASIO_LIB
700 BOOST_LDFLAGS
701 BOOST_CPPFLAGS
702 HAVE_LIBXML2_FALSE
703 HAVE_LIBXML2_TRUE
704 LIBXML2_LIBS
705 LIBXML2_CFLAGS
706 SYSTEMD_LIBS
707 SYSTEMD_CFLAGS
708 JANSSON_LIBS
709 JANSSON_CFLAGS
710 LIBEVENT_OPENSSL_LIBS
711 LIBEVENT_OPENSSL_CFLAGS
712 HAVE_LIBBPF_FALSE
713 HAVE_LIBBPF_TRUE
714 EXTRABPFCFLAGS
715 LIBBPF_LIBS
716 LIBBPF_CFLAGS
717 LIBNGHTTP3_LIBS
718 LIBNGHTTP3_CFLAGS
719 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
720 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
721 LIBNGTCP2_CRYPTO_OPENSSL_LIBS
722 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
723 LIBNGTCP2_LIBS
724 LIBNGTCP2_CFLAGS
725 LIBCARES_LIBS
726 LIBCARES_CFLAGS
727 OPENSSL_LIBS
728 OPENSSL_CFLAGS
729 HAVE_CUNIT_FALSE
730 HAVE_CUNIT_TRUE
731 CUNIT_LIBS
732 CUNIT_CFLAGS
733 ZLIB_LIBS
734 ZLIB_CFLAGS
735 EXTRA_DEFS
736 CXX1XCXXFLAGS
737 HAVE_CXX14
738 PYTHON_EXTRA_LDFLAGS
739 PYTHON_EXTRA_LIBS
740 PYTHON_PLATFORM_SITE_PKG
741 PYTHON_SITE_PKG
742 PYTHON_LIBS
743 PYTHON_CPPFLAGS
744 pkgpyexecdir
745 pyexecdir
746 pkgpythondir
747 pythondir
748 PYTHON_PLATFORM
749 PYTHON_EXEC_PREFIX
750 PYTHON_PREFIX
751 PYTHON_VERSION
752 PYTHON
753 PKG_CONFIG_LIBDIR
754 PKG_CONFIG_PATH
755 PKG_CONFIG
756 CPP
757 am__fastdepCXX_FALSE
758 am__fastdepCXX_TRUE
759 CXXDEPMODE
760 CXXCPP
761 ac_ct_CXX
762 CXXFLAGS
763 CXX
764 BPFCFLAGS
765 LIBTOOL_LDFLAGS
766 JEMALLOC_LIBS
767 JEMALLOC_CFLAGS
768 LIBEV_LIBS
769 LIBEV_CFLAGS
770 CYTHON
771 PACKAGE_VERSION_NUM
772 LT_AGE
773 LT_REVISION
774 LT_CURRENT
775 AM_BACKSLASH
776 AM_DEFAULT_VERBOSITY
777 AM_DEFAULT_V
778 AM_V
779 CSCOPE
780 ETAGS
781 CTAGS
782 am__fastdepCC_FALSE
783 am__fastdepCC_TRUE
784 CCDEPMODE
785 am__nodep
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
789 am__include
790 DEPDIR
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 mkdir_p
797 MKDIR_P
798 INSTALL_STRIP_PROGRAM
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 target_os
813 target_vendor
814 target_cpu
815 target
816 LT_SYS_LIBRARY_PATH
817 OTOOL64
818 OTOOL
819 LIPO
820 NMEDIT
821 DSYMUTIL
822 MANIFEST_TOOL
823 AWK
824 RANLIB
825 STRIP
826 ac_ct_AR
827 AR
828 DLLTOOL
829 OBJDUMP
830 LN_S
831 NM
832 ac_ct_DUMPBIN
833 DUMPBIN
834 LD
835 FGREP
836 EGREP
837 GREP
838 SED
839 host_os
840 host_vendor
841 host_cpu
842 host
843 build_os
844 build_vendor
845 build_cpu
846 build
847 LIBTOOL
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 target_alias
856 host_alias
857 build_alias
858 LIBS
859 ECHO_T
860 ECHO_N
861 ECHO_C
862 DEFS
863 mandir
864 localedir
865 libdir
866 psdir
867 pdfdir
868 dvidir
869 htmldir
870 infodir
871 docdir
872 oldincludedir
873 includedir
874 runstatedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL
894 am__quote'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_shared
899 enable_static
900 with_pic
901 enable_fast_install
902 with_aix_soname
903 with_gnu_ld
904 with_sysroot
905 enable_libtool_lock
906 enable_dependency_tracking
907 enable_silent_rules
908 enable_werror
909 enable_debug
910 enable_threads
911 enable_app
912 enable_hpack_tools
913 enable_asio_lib
914 enable_examples
915 enable_python_bindings
916 enable_failmalloc
917 enable_lib_only
918 enable_http3
919 with_libxml2
920 with_jansson
921 with_zlib
922 with_libevent_openssl
923 with_libcares
924 with_openssl
925 with_libev
926 with_cunit
927 with_jemalloc
928 with_systemd
929 with_mruby
930 with_neverbleed
931 with_cython
932 with_libngtcp2
933 with_libnghttp3
934 with_libbpf
935 with_python_prefix
936 with_python_exec_prefix
937 with_boost
938 with_boost_libdir
939 with_boost_asio
940 with_boost_system
941 with_boost_thread
942 enable_assert
943 enable_largefile
944 '
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 LT_SYS_LIBRARY_PATH
954 CYTHON
955 LIBEV_CFLAGS
956 LIBEV_LIBS
957 JEMALLOC_CFLAGS
958 JEMALLOC_LIBS
959 LIBTOOL_LDFLAGS
960 BPFCFLAGS
961 CXX
962 CXXFLAGS
963 CCC
964 CXXCPP
965 CPP
966 PKG_CONFIG
967 PKG_CONFIG_PATH
968 PKG_CONFIG_LIBDIR
969 PYTHON
970 PYTHON_VERSION
971 ZLIB_CFLAGS
972 ZLIB_LIBS
973 CUNIT_CFLAGS
974 CUNIT_LIBS
975 OPENSSL_CFLAGS
976 OPENSSL_LIBS
977 LIBCARES_CFLAGS
978 LIBCARES_LIBS
979 LIBNGTCP2_CFLAGS
980 LIBNGTCP2_LIBS
981 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
982 LIBNGTCP2_CRYPTO_OPENSSL_LIBS
983 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
984 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
985 LIBNGHTTP3_CFLAGS
986 LIBNGHTTP3_LIBS
987 LIBBPF_CFLAGS
988 LIBBPF_LIBS
989 LIBEVENT_OPENSSL_CFLAGS
990 LIBEVENT_OPENSSL_LIBS
991 JANSSON_CFLAGS
992 JANSSON_LIBS
993 SYSTEMD_CFLAGS
994 SYSTEMD_LIBS
995 LIBXML2_CFLAGS
996 LIBXML2_LIBS'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 runstatedir='${localstatedir}/run'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1040 htmldir='${docdir}'
1041 dvidir='${docdir}'
1042 pdfdir='${docdir}'
1043 psdir='${docdir}'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1047
1048 ac_prev=
1049 ac_dashdash=
1050 for ac_option
1051 do
1052   # If the previous option needs an argument, assign it.
1053   if test -n "$ac_prev"; then
1054     eval $ac_prev=\$ac_option
1055     ac_prev=
1056     continue
1057   fi
1058
1059   case $ac_option in
1060   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061   *=)   ac_optarg= ;;
1062   *)    ac_optarg=yes ;;
1063   esac
1064
1065   case $ac_dashdash$ac_option in
1066   --)
1067     ac_dashdash=yes ;;
1068
1069   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070     ac_prev=bindir ;;
1071   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072     bindir=$ac_optarg ;;
1073
1074   -build | --build | --buil | --bui | --bu)
1075     ac_prev=build_alias ;;
1076   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077     build_alias=$ac_optarg ;;
1078
1079   -cache-file | --cache-file | --cache-fil | --cache-fi \
1080   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081     ac_prev=cache_file ;;
1082   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084     cache_file=$ac_optarg ;;
1085
1086   --config-cache | -C)
1087     cache_file=config.cache ;;
1088
1089   -datadir | --datadir | --datadi | --datad)
1090     ac_prev=datadir ;;
1091   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092     datadir=$ac_optarg ;;
1093
1094   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095   | --dataroo | --dataro | --datar)
1096     ac_prev=datarootdir ;;
1097   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099     datarootdir=$ac_optarg ;;
1100
1101   -disable-* | --disable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval enable_$ac_useropt=no ;;
1116
1117   -docdir | --docdir | --docdi | --doc | --do)
1118     ac_prev=docdir ;;
1119   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120     docdir=$ac_optarg ;;
1121
1122   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123     ac_prev=dvidir ;;
1124   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125     dvidir=$ac_optarg ;;
1126
1127   -enable-* | --enable-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval enable_$ac_useropt=\$ac_optarg ;;
1142
1143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1145   | --exec | --exe | --ex)
1146     ac_prev=exec_prefix ;;
1147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1149   | --exec=* | --exe=* | --ex=*)
1150     exec_prefix=$ac_optarg ;;
1151
1152   -gas | --gas | --ga | --g)
1153     # Obsolete; use --with-gas.
1154     with_gas=yes ;;
1155
1156   -help | --help | --hel | --he | -h)
1157     ac_init_help=long ;;
1158   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1159     ac_init_help=recursive ;;
1160   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1161     ac_init_help=short ;;
1162
1163   -host | --host | --hos | --ho)
1164     ac_prev=host_alias ;;
1165   -host=* | --host=* | --hos=* | --ho=*)
1166     host_alias=$ac_optarg ;;
1167
1168   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1169     ac_prev=htmldir ;;
1170   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1171   | --ht=*)
1172     htmldir=$ac_optarg ;;
1173
1174   -includedir | --includedir | --includedi | --included | --include \
1175   | --includ | --inclu | --incl | --inc)
1176     ac_prev=includedir ;;
1177   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1178   | --includ=* | --inclu=* | --incl=* | --inc=*)
1179     includedir=$ac_optarg ;;
1180
1181   -infodir | --infodir | --infodi | --infod | --info | --inf)
1182     ac_prev=infodir ;;
1183   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1184     infodir=$ac_optarg ;;
1185
1186   -libdir | --libdir | --libdi | --libd)
1187     ac_prev=libdir ;;
1188   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1189     libdir=$ac_optarg ;;
1190
1191   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1192   | --libexe | --libex | --libe)
1193     ac_prev=libexecdir ;;
1194   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1195   | --libexe=* | --libex=* | --libe=*)
1196     libexecdir=$ac_optarg ;;
1197
1198   -localedir | --localedir | --localedi | --localed | --locale)
1199     ac_prev=localedir ;;
1200   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1201     localedir=$ac_optarg ;;
1202
1203   -localstatedir | --localstatedir | --localstatedi | --localstated \
1204   | --localstate | --localstat | --localsta | --localst | --locals)
1205     ac_prev=localstatedir ;;
1206   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1207   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1208     localstatedir=$ac_optarg ;;
1209
1210   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1211     ac_prev=mandir ;;
1212   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1213     mandir=$ac_optarg ;;
1214
1215   -nfp | --nfp | --nf)
1216     # Obsolete; use --without-fp.
1217     with_fp=no ;;
1218
1219   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1220   | --no-cr | --no-c | -n)
1221     no_create=yes ;;
1222
1223   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1224   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1225     no_recursion=yes ;;
1226
1227   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1228   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1229   | --oldin | --oldi | --old | --ol | --o)
1230     ac_prev=oldincludedir ;;
1231   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1232   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1233   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1234     oldincludedir=$ac_optarg ;;
1235
1236   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1237     ac_prev=prefix ;;
1238   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1239     prefix=$ac_optarg ;;
1240
1241   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1242   | --program-pre | --program-pr | --program-p)
1243     ac_prev=program_prefix ;;
1244   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1245   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1246     program_prefix=$ac_optarg ;;
1247
1248   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1249   | --program-suf | --program-su | --program-s)
1250     ac_prev=program_suffix ;;
1251   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1252   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1253     program_suffix=$ac_optarg ;;
1254
1255   -program-transform-name | --program-transform-name \
1256   | --program-transform-nam | --program-transform-na \
1257   | --program-transform-n | --program-transform- \
1258   | --program-transform | --program-transfor \
1259   | --program-transfo | --program-transf \
1260   | --program-trans | --program-tran \
1261   | --progr-tra | --program-tr | --program-t)
1262     ac_prev=program_transform_name ;;
1263   -program-transform-name=* | --program-transform-name=* \
1264   | --program-transform-nam=* | --program-transform-na=* \
1265   | --program-transform-n=* | --program-transform-=* \
1266   | --program-transform=* | --program-transfor=* \
1267   | --program-transfo=* | --program-transf=* \
1268   | --program-trans=* | --program-tran=* \
1269   | --progr-tra=* | --program-tr=* | --program-t=*)
1270     program_transform_name=$ac_optarg ;;
1271
1272   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1273     ac_prev=pdfdir ;;
1274   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1275     pdfdir=$ac_optarg ;;
1276
1277   -psdir | --psdir | --psdi | --psd | --ps)
1278     ac_prev=psdir ;;
1279   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1280     psdir=$ac_optarg ;;
1281
1282   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283   | -silent | --silent | --silen | --sile | --sil)
1284     silent=yes ;;
1285
1286   -runstatedir | --runstatedir | --runstatedi | --runstated \
1287   | --runstate | --runstat | --runsta | --runst | --runs \
1288   | --run | --ru | --r)
1289     ac_prev=runstatedir ;;
1290   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1291   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1292   | --run=* | --ru=* | --r=*)
1293     runstatedir=$ac_optarg ;;
1294
1295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1296     ac_prev=sbindir ;;
1297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1298   | --sbi=* | --sb=*)
1299     sbindir=$ac_optarg ;;
1300
1301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303   | --sharedst | --shareds | --shared | --share | --shar \
1304   | --sha | --sh)
1305     ac_prev=sharedstatedir ;;
1306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1309   | --sha=* | --sh=*)
1310     sharedstatedir=$ac_optarg ;;
1311
1312   -site | --site | --sit)
1313     ac_prev=site ;;
1314   -site=* | --site=* | --sit=*)
1315     site=$ac_optarg ;;
1316
1317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1318     ac_prev=srcdir ;;
1319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320     srcdir=$ac_optarg ;;
1321
1322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323   | --syscon | --sysco | --sysc | --sys | --sy)
1324     ac_prev=sysconfdir ;;
1325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327     sysconfdir=$ac_optarg ;;
1328
1329   -target | --target | --targe | --targ | --tar | --ta | --t)
1330     ac_prev=target_alias ;;
1331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332     target_alias=$ac_optarg ;;
1333
1334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1335     verbose=yes ;;
1336
1337   -version | --version | --versio | --versi | --vers | -V)
1338     ac_init_version=: ;;
1339
1340   -with-* | --with-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       as_fn_error $? "invalid package name: \`$ac_useropt'"
1345     ac_useropt_orig=$ac_useropt
1346     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1347     case $ac_user_opts in
1348       *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352          ac_unrecognized_sep=', ';;
1353     esac
1354     eval with_$ac_useropt=\$ac_optarg ;;
1355
1356   -without-* | --without-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error $? "invalid package name: \`$ac_useropt'"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval with_$ac_useropt=no ;;
1371
1372   --x)
1373     # Obsolete; use --with-x.
1374     with_x=yes ;;
1375
1376   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377   | --x-incl | --x-inc | --x-in | --x-i)
1378     ac_prev=x_includes ;;
1379   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381     x_includes=$ac_optarg ;;
1382
1383   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385     ac_prev=x_libraries ;;
1386   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388     x_libraries=$ac_optarg ;;
1389
1390   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1392     ;;
1393
1394   *=*)
1395     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396     # Reject names that are not valid shell variable names.
1397     case $ac_envvar in #(
1398       '' | [0-9]* | *[!_$as_cr_alnum]* )
1399       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1400     esac
1401     eval $ac_envvar=\$ac_optarg
1402     export $ac_envvar ;;
1403
1404   *)
1405     # FIXME: should be removed in autoconf 3.0.
1406     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1407     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1409     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410     ;;
1411
1412   esac
1413 done
1414
1415 if test -n "$ac_prev"; then
1416   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417   as_fn_error $? "missing argument to $ac_option"
1418 fi
1419
1420 if test -n "$ac_unrecognized_opts"; then
1421   case $enable_option_checking in
1422     no) ;;
1423     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425   esac
1426 fi
1427
1428 # Check all directory arguments for consistency.
1429 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430                 datadir sysconfdir sharedstatedir localstatedir includedir \
1431                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432                 libdir localedir mandir runstatedir
1433 do
1434   eval ac_val=\$$ac_var
1435   # Remove trailing slashes.
1436   case $ac_val in
1437     */ )
1438       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439       eval $ac_var=\$ac_val;;
1440   esac
1441   # Be sure to have absolute directory names.
1442   case $ac_val in
1443     [\\/$]* | ?:[\\/]* )  continue;;
1444     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1445   esac
1446   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1447 done
1448
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1452 build=$build_alias
1453 host=$host_alias
1454 target=$target_alias
1455
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458   if test "x$build_alias" = x; then
1459     cross_compiling=maybe
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   as_fn_error $? "working directory cannot be determined"
1475 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476   as_fn_error $? "pwd does not report name of working directory"
1477
1478
1479 # Find the source files, if location was not specified.
1480 if test -z "$srcdir"; then
1481   ac_srcdir_defaulted=yes
1482   # Try the directory containing this script, then the parent directory.
1483   ac_confdir=`$as_dirname -- "$as_myself" ||
1484 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1485          X"$as_myself" : 'X\(//\)[^/]' \| \
1486          X"$as_myself" : 'X\(//\)$' \| \
1487          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1488 printf "%s\n" X"$as_myself" |
1489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1490             s//\1/
1491             q
1492           }
1493           /^X\(\/\/\)[^/].*/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\/\)$/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\).*/{
1502             s//\1/
1503             q
1504           }
1505           s/.*/./; q'`
1506   srcdir=$ac_confdir
1507   if test ! -r "$srcdir/$ac_unique_file"; then
1508     srcdir=..
1509   fi
1510 else
1511   ac_srcdir_defaulted=no
1512 fi
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1515   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1516 fi
1517 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1518 ac_abs_confdir=`(
1519         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1520         pwd)`
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523   srcdir=.
1524 fi
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1528 case $srcdir in
1529 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 esac
1531 for ac_var in $ac_precious_vars; do
1532   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1533   eval ac_env_${ac_var}_value=\$${ac_var}
1534   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1536 done
1537
1538 #
1539 # Report the --help message.
1540 #
1541 if test "$ac_init_help" = "long"; then
1542   # Omit some internal or obsolete options to make the list less imposing.
1543   # This message is too long to be a string in the A/UX 3.1 sh.
1544   cat <<_ACEOF
1545 \`configure' configures nghttp2 1.46.0 to adapt to many kinds of systems.
1546
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1548
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE.  See below for descriptions of some of the useful variables.
1551
1552 Defaults for the options are specified in brackets.
1553
1554 Configuration:
1555   -h, --help              display this help and exit
1556       --help=short        display options specific to this package
1557       --help=recursive    display the short help of all the included packages
1558   -V, --version           display version information and exit
1559   -q, --quiet, --silent   do not print \`checking ...' messages
1560       --cache-file=FILE   cache test results in FILE [disabled]
1561   -C, --config-cache      alias for \`--cache-file=config.cache'
1562   -n, --no-create         do not create output files
1563       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1564
1565 Installation directories:
1566   --prefix=PREFIX         install architecture-independent files in PREFIX
1567                           [$ac_default_prefix]
1568   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1569                           [PREFIX]
1570
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1575
1576 For better control, use the options below.
1577
1578 Fine tuning of the installation directories:
1579   --bindir=DIR            user executables [EPREFIX/bin]
1580   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1581   --libexecdir=DIR        program executables [EPREFIX/libexec]
1582   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1583   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1584   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1585   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1586   --libdir=DIR            object code libraries [EPREFIX/lib]
1587   --includedir=DIR        C header files [PREFIX/include]
1588   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1589   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1590   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1591   --infodir=DIR           info documentation [DATAROOTDIR/info]
1592   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1593   --mandir=DIR            man documentation [DATAROOTDIR/man]
1594   --docdir=DIR            documentation root [DATAROOTDIR/doc/nghttp2]
1595   --htmldir=DIR           html documentation [DOCDIR]
1596   --dvidir=DIR            dvi documentation [DOCDIR]
1597   --pdfdir=DIR            pdf documentation [DOCDIR]
1598   --psdir=DIR             ps documentation [DOCDIR]
1599 _ACEOF
1600
1601   cat <<\_ACEOF
1602
1603 Program names:
1604   --program-prefix=PREFIX            prepend PREFIX to installed program names
1605   --program-suffix=SUFFIX            append SUFFIX to installed program names
1606   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1607
1608 System types:
1609   --build=BUILD     configure for building on BUILD [guessed]
1610   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1611   --target=TARGET   configure for building compilers for TARGET [HOST]
1612 _ACEOF
1613 fi
1614
1615 if test -n "$ac_init_help"; then
1616   case $ac_init_help in
1617      short | recursive ) echo "Configuration of nghttp2 1.46.0:";;
1618    esac
1619   cat <<\_ACEOF
1620
1621 Optional Features:
1622   --disable-option-checking  ignore unrecognized --enable/--with options
1623   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1624   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1625   --enable-shared[=PKGS]  build shared libraries [default=yes]
1626   --enable-static[=PKGS]  build static libraries [default=yes]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --enable-dependency-tracking
1631                           do not reject slow dependency extractors
1632   --disable-dependency-tracking
1633                           speeds up one-time build
1634   --enable-silent-rules   less verbose build output (undo: "make V=1")
1635   --disable-silent-rules  verbose build output (undo: "make V=0")
1636   --enable-werror         Turn on compile time warnings
1637   --enable-debug          Turn on debug output
1638   --disable-threads       Turn off threading in apps
1639   --enable-app            Build applications (nghttp, nghttpd, nghttpx and
1640                           h2load) [default=check]
1641   --enable-hpack-tools    Build HPACK tools [default=check]
1642   --enable-asio-lib       Build C++ libnghttp2_asio library [default=no]
1643   --enable-examples       Build examples [default=check]
1644   --enable-python-bindings
1645                           Build Python bindings [default=check]
1646   --disable-failmalloc    Do not build failmalloc test program
1647   --enable-lib-only       Build libnghttp2 only. This is a short hand for
1648                           --disable-app --disable-examples
1649                           --disable-hpack-tools --disable-python-bindings
1650   --enable-http3          (EXPERIMENTAL) Enable HTTP/3. This requires ngtcp2,
1651                           nghttp3, and a custom OpenSSL.
1652   --disable-assert        turn off assertions
1653   --disable-largefile     omit support for large files
1654
1655 Optional Packages:
1656   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1659                           both]
1660   --with-aix-soname=aix|svr4|both
1661                           shared library versioning (aka "SONAME") variant to
1662                           provide on AIX, [default=aix].
1663   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1664   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1665                           compiler's sysroot if not specified).
1666   --with-libxml2          Use libxml2 [default=check]
1667   --with-jansson          Use jansson [default=check]
1668   --with-zlib             Use zlib [default=check]
1669   --with-libevent-openssl Use libevent_openssl [default=check]
1670   --with-libcares         Use libc-ares [default=check]
1671   --with-openssl          Use openssl [default=check]
1672   --with-libev            Use libev [default=check]
1673   --with-cunit            Use cunit [default=check]
1674   --with-jemalloc         Use jemalloc [default=check]
1675   --with-systemd          Enable systemd support in nghttpx [default=check]
1676   --with-mruby            Use mruby [default=no]
1677   --with-neverbleed       Use neverbleed [default=no]
1678   --with-cython=PATH      Use cython in given PATH
1679   --with-libngtcp2        Use libngtcp2 [default=check]
1680   --with-libnghttp3       Use libnghttp3 [default=check]
1681   --with-libbpf           Use libbpf [default=no]
1682   --with-python_prefix    override the default PYTHON_PREFIX
1683   --with-python_exec_prefix
1684                           override the default PYTHON_EXEC_PREFIX
1685   --with-boost[=ARG]      use Boost library from a standard location
1686                           (ARG=yes), from the specified location (ARG=<path>),
1687                           or disable it (ARG=no) [ARG=yes]
1688   --with-boost-libdir=LIB_DIR
1689                           Force given directory for boost libraries. Note that
1690                           this will override library path detection, so use
1691                           this parameter only if default library detection
1692                           fails and you know exactly where your boost
1693                           libraries are located.
1694   --with-boost-asio[=special-lib]
1695                           use the ASIO library from boost - it is possible to
1696                           specify a certain library for the linker e.g.
1697                           --with-boost-asio=boost_system-gcc41-mt-1_34
1698   --with-boost-system[=special-lib]
1699                           use the System library from boost - it is possible
1700                           to specify a certain library for the linker e.g.
1701                           --with-boost-system=boost_system-gcc-mt
1702   --with-boost-thread[=special-lib]
1703                           use the Thread library from boost - it is possible
1704                           to specify a certain library for the linker e.g.
1705                           --with-boost-thread=boost_thread-gcc-mt
1706
1707 Some influential environment variables:
1708   CC          C compiler command
1709   CFLAGS      C compiler flags
1710   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1711               nonstandard directory <lib dir>
1712   LIBS        libraries to pass to the linker, e.g. -l<library>
1713   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1714               you have headers in a nonstandard directory <include dir>
1715   LT_SYS_LIBRARY_PATH
1716               User-defined run-time library search path.
1717   CYTHON      the Cython executable
1718   LIBEV_CFLAGS
1719               C compiler flags for libev, skipping any checks
1720   LIBEV_LIBS  linker flags for libev, skipping any checks
1721   JEMALLOC_CFLAGS
1722               C compiler flags for jemalloc, skipping any checks
1723   JEMALLOC_LIBS
1724               linker flags for jemalloc, skipping any checks
1725   LIBTOOL_LDFLAGS
1726               libtool specific flags (e.g., -static-libtool-libs)
1727   BPFCFLAGS   C compiler flags for bpf program
1728   CXX         C++ compiler command
1729   CXXFLAGS    C++ compiler flags
1730   CXXCPP      C++ preprocessor
1731   CPP         C preprocessor
1732   PKG_CONFIG  path to pkg-config utility
1733   PKG_CONFIG_PATH
1734               directories to add to pkg-config's search path
1735   PKG_CONFIG_LIBDIR
1736               path overriding pkg-config's built-in search path
1737   PYTHON      the Python interpreter
1738   PYTHON_VERSION
1739               The installed Python version to use, for example '2.3'. This
1740               string will be appended to the Python interpreter canonical
1741               name.
1742   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1743   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1744   CUNIT_CFLAGS
1745               C compiler flags for CUNIT, overriding pkg-config
1746   CUNIT_LIBS  linker flags for CUNIT, overriding pkg-config
1747   OPENSSL_CFLAGS
1748               C compiler flags for OPENSSL, overriding pkg-config
1749   OPENSSL_LIBS
1750               linker flags for OPENSSL, overriding pkg-config
1751   LIBCARES_CFLAGS
1752               C compiler flags for LIBCARES, overriding pkg-config
1753   LIBCARES_LIBS
1754               linker flags for LIBCARES, overriding pkg-config
1755   LIBNGTCP2_CFLAGS
1756               C compiler flags for LIBNGTCP2, overriding pkg-config
1757   LIBNGTCP2_LIBS
1758               linker flags for LIBNGTCP2, overriding pkg-config
1759   LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
1760               C compiler flags for LIBNGTCP2_CRYPTO_OPENSSL, overriding
1761               pkg-config
1762   LIBNGTCP2_CRYPTO_OPENSSL_LIBS
1763               linker flags for LIBNGTCP2_CRYPTO_OPENSSL, overriding pkg-config
1764   LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
1765               C compiler flags for LIBNGTCP2_CRYPTO_BORINGSSL, overriding
1766               pkg-config
1767   LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
1768               linker flags for LIBNGTCP2_CRYPTO_BORINGSSL, overriding
1769               pkg-config
1770   LIBNGHTTP3_CFLAGS
1771               C compiler flags for LIBNGHTTP3, overriding pkg-config
1772   LIBNGHTTP3_LIBS
1773               linker flags for LIBNGHTTP3, overriding pkg-config
1774   LIBBPF_CFLAGS
1775               C compiler flags for LIBBPF, overriding pkg-config
1776   LIBBPF_LIBS linker flags for LIBBPF, overriding pkg-config
1777   LIBEVENT_OPENSSL_CFLAGS
1778               C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1779   LIBEVENT_OPENSSL_LIBS
1780               linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1781   JANSSON_CFLAGS
1782               C compiler flags for JANSSON, overriding pkg-config
1783   JANSSON_LIBS
1784               linker flags for JANSSON, overriding pkg-config
1785   SYSTEMD_CFLAGS
1786               C compiler flags for SYSTEMD, overriding pkg-config
1787   SYSTEMD_LIBS
1788               linker flags for SYSTEMD, overriding pkg-config
1789   LIBXML2_CFLAGS
1790               C compiler flags for LIBXML2, overriding pkg-config
1791   LIBXML2_LIBS
1792               linker flags for LIBXML2, overriding pkg-config
1793
1794 Use these variables to override the choices made by `configure' or to help
1795 it to find libraries and programs with nonstandard names/locations.
1796
1797 Report bugs to <t-tujikawa@users.sourceforge.net>.
1798 _ACEOF
1799 ac_status=$?
1800 fi
1801
1802 if test "$ac_init_help" = "recursive"; then
1803   # If there are subdirs, report their specific --help.
1804   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1805     test -d "$ac_dir" ||
1806       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1807       continue
1808     ac_builddir=.
1809
1810 case "$ac_dir" in
1811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812 *)
1813   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1814   # A ".." for each directory in $ac_dir_suffix.
1815   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1816   case $ac_top_builddir_sub in
1817   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1818   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1819   esac ;;
1820 esac
1821 ac_abs_top_builddir=$ac_pwd
1822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1823 # for backward compatibility:
1824 ac_top_builddir=$ac_top_build_prefix
1825
1826 case $srcdir in
1827   .)  # We are building in place.
1828     ac_srcdir=.
1829     ac_top_srcdir=$ac_top_builddir_sub
1830     ac_abs_top_srcdir=$ac_pwd ;;
1831   [\\/]* | ?:[\\/]* )  # Absolute name.
1832     ac_srcdir=$srcdir$ac_dir_suffix;
1833     ac_top_srcdir=$srcdir
1834     ac_abs_top_srcdir=$srcdir ;;
1835   *) # Relative name.
1836     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1837     ac_top_srcdir=$ac_top_build_prefix$srcdir
1838     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1839 esac
1840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1841
1842     cd "$ac_dir" || { ac_status=$?; continue; }
1843     # Check for configure.gnu first; this name is used for a wrapper for
1844     # Metaconfig's "Configure" on case-insensitive file systems.
1845     if test -f "$ac_srcdir/configure.gnu"; then
1846       echo &&
1847       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1848     elif test -f "$ac_srcdir/configure"; then
1849       echo &&
1850       $SHELL "$ac_srcdir/configure" --help=recursive
1851     else
1852       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1853     fi || ac_status=$?
1854     cd "$ac_pwd" || { ac_status=$?; break; }
1855   done
1856 fi
1857
1858 test -n "$ac_init_help" && exit $ac_status
1859 if $ac_init_version; then
1860   cat <<\_ACEOF
1861 nghttp2 configure 1.46.0
1862 generated by GNU Autoconf 2.71
1863
1864 Copyright (C) 2021 Free Software Foundation, Inc.
1865 This configure script is free software; the Free Software Foundation
1866 gives unlimited permission to copy, distribute and modify it.
1867 _ACEOF
1868   exit
1869 fi
1870
1871 ## ------------------------ ##
1872 ## Autoconf initialization. ##
1873 ## ------------------------ ##
1874
1875 # ac_fn_c_try_compile LINENO
1876 # --------------------------
1877 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_compile ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   rm -f conftest.$ac_objext conftest.beam
1882   if { { ac_try="$ac_compile"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 printf "%s\n" "$ac_try_echo"; } >&5
1889   (eval "$ac_compile") 2>conftest.err
1890   ac_status=$?
1891   if test -s conftest.err; then
1892     grep -v '^ *+' conftest.err >conftest.er1
1893     cat conftest.er1 >&5
1894     mv -f conftest.er1 conftest.err
1895   fi
1896   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897   test $ac_status = 0; } && {
1898          test -z "$ac_c_werror_flag" ||
1899          test ! -s conftest.err
1900        } && test -s conftest.$ac_objext
1901 then :
1902   ac_retval=0
1903 else $as_nop
1904   printf "%s\n" "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907         ac_retval=1
1908 fi
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_compile
1913
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1919 {
1920   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 printf %s "checking for $2... " >&6; }
1923 if eval test \${$3+y}
1924 then :
1925   printf %s "(cached) " >&6
1926 else $as_nop
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"
1933 then :
1934   eval "$3=yes"
1935 else $as_nop
1936   eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 printf "%s\n" "$ac_res" >&6; }
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_header_compile
1946
1947 # ac_fn_c_try_link LINENO
1948 # -----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_c_try_link ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 printf "%s\n" "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>conftest.err
1962   ac_status=$?
1963   if test -s conftest.err; then
1964     grep -v '^ *+' conftest.err >conftest.er1
1965     cat conftest.er1 >&5
1966     mv -f conftest.er1 conftest.err
1967   fi
1968   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969   test $ac_status = 0; } && {
1970          test -z "$ac_c_werror_flag" ||
1971          test ! -s conftest.err
1972        } && test -s conftest$ac_exeext && {
1973          test "$cross_compiling" = yes ||
1974          test -x conftest$ac_exeext
1975        }
1976 then :
1977   ac_retval=0
1978 else $as_nop
1979   printf "%s\n" "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982         ac_retval=1
1983 fi
1984   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986   # interfere with the next link command; also delete a directory that is
1987   # left behind by Apple's compiler.  We do this before executing the actions.
1988   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990   as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_link
1993
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1998 {
1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 printf %s "checking for $2... " >&6; }
2002 if eval test \${$3+y}
2003 then :
2004   printf %s "(cached) " >&6
2005 else $as_nop
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2010 #define $2 innocuous_$2
2011
2012 /* System header to define __stub macros and hopefully few prototypes,
2013    which can conflict with char $2 (); below.  */
2014
2015 #include <limits.h>
2016 #undef $2
2017
2018 /* Override any GCC internal prototype to avoid an error.
2019    Use char because int might match the return type of a GCC
2020    builtin and then its argument prototype would still apply.  */
2021 #ifdef __cplusplus
2022 extern "C"
2023 #endif
2024 char $2 ();
2025 /* The GNU C library defines this for functions which it implements
2026     to always fail with ENOSYS.  Some functions are actually named
2027     something starting with __ and the normal name is an alias.  */
2028 #if defined __stub_$2 || defined __stub___$2
2029 choke me
2030 #endif
2031
2032 int
2033 main (void)
2034 {
2035 return $2 ();
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_link "$LINENO"
2041 then :
2042   eval "$3=yes"
2043 else $as_nop
2044   eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2047     conftest$ac_exeext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 printf "%s\n" "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_func
2055
2056 # ac_fn_cxx_try_compile LINENO
2057 # ----------------------------
2058 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_compile ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   rm -f conftest.$ac_objext conftest.beam
2063   if { { ac_try="$ac_compile"
2064 case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 printf "%s\n" "$ac_try_echo"; } >&5
2070   (eval "$ac_compile") 2>conftest.err
2071   ac_status=$?
2072   if test -s conftest.err; then
2073     grep -v '^ *+' conftest.err >conftest.er1
2074     cat conftest.er1 >&5
2075     mv -f conftest.er1 conftest.err
2076   fi
2077   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078   test $ac_status = 0; } && {
2079          test -z "$ac_cxx_werror_flag" ||
2080          test ! -s conftest.err
2081        } && test -s conftest.$ac_objext
2082 then :
2083   ac_retval=0
2084 else $as_nop
2085   printf "%s\n" "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088         ac_retval=1
2089 fi
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_cxx_try_compile
2094
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 printf "%s\n" "$ac_try_echo"; } >&5
2108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109   ac_status=$?
2110   if test -s conftest.err; then
2111     grep -v '^ *+' conftest.err >conftest.er1
2112     cat conftest.er1 >&5
2113     mv -f conftest.er1 conftest.err
2114   fi
2115   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116   test $ac_status = 0; } > conftest.i && {
2117          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118          test ! -s conftest.err
2119        }
2120 then :
2121   ac_retval=0
2122 else $as_nop
2123   printf "%s\n" "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126     ac_retval=1
2127 fi
2128   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129   as_fn_set_status $ac_retval
2130
2131 } # ac_fn_cxx_try_cpp
2132
2133 # ac_fn_cxx_try_link LINENO
2134 # -------------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_cxx_try_link ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2140   if { { ac_try="$ac_link"
2141 case "(($ac_try" in
2142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143   *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 printf "%s\n" "$ac_try_echo"; } >&5
2147   (eval "$ac_link") 2>conftest.err
2148   ac_status=$?
2149   if test -s conftest.err; then
2150     grep -v '^ *+' conftest.err >conftest.er1
2151     cat conftest.er1 >&5
2152     mv -f conftest.er1 conftest.err
2153   fi
2154   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155   test $ac_status = 0; } && {
2156          test -z "$ac_cxx_werror_flag" ||
2157          test ! -s conftest.err
2158        } && test -s conftest$ac_exeext && {
2159          test "$cross_compiling" = yes ||
2160          test -x conftest$ac_exeext
2161        }
2162 then :
2163   ac_retval=0
2164 else $as_nop
2165   printf "%s\n" "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168         ac_retval=1
2169 fi
2170   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172   # interfere with the next link command; also delete a directory that is
2173   # left behind by Apple's compiler.  We do this before executing the actions.
2174   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176   as_fn_set_status $ac_retval
2177
2178 } # ac_fn_cxx_try_link
2179
2180 # ac_fn_c_try_cpp LINENO
2181 # ----------------------
2182 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2183 ac_fn_c_try_cpp ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   if { { ac_try="$ac_cpp conftest.$ac_ext"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 printf "%s\n" "$ac_try_echo"; } >&5
2193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2194   ac_status=$?
2195   if test -s conftest.err; then
2196     grep -v '^ *+' conftest.err >conftest.er1
2197     cat conftest.er1 >&5
2198     mv -f conftest.er1 conftest.err
2199   fi
2200   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201   test $ac_status = 0; } > conftest.i && {
2202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2203          test ! -s conftest.err
2204        }
2205 then :
2206   ac_retval=0
2207 else $as_nop
2208   printf "%s\n" "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211     ac_retval=1
2212 fi
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214   as_fn_set_status $ac_retval
2215
2216 } # ac_fn_c_try_cpp
2217
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2223 {
2224   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 printf %s "checking for $2... " >&6; }
2227 if eval test \${$3+y}
2228 then :
2229   printf %s "(cached) " >&6
2230 else $as_nop
2231   eval "$3=no"
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main (void)
2237 {
2238 if (sizeof ($2))
2239          return 0;
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"
2245 then :
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main (void)
2251 {
2252 if (sizeof (($2)))
2253             return 0;
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"
2259 then :
2260
2261 else $as_nop
2262   eval "$3=yes"
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 fi
2268 eval ac_res=\$$3
2269                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 printf "%s\n" "$ac_res" >&6; }
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272
2273 } # ac_fn_c_check_type
2274
2275 # ac_fn_c_find_uintX_t LINENO BITS VAR
2276 # ------------------------------------
2277 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2278 # accordingly.
2279 ac_fn_c_find_uintX_t ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2283 printf %s "checking for uint$2_t... " >&6; }
2284 if eval test \${$3+y}
2285 then :
2286   printf %s "(cached) " >&6
2287 else $as_nop
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 (void)
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"
2308 then :
2309   case $ac_type in #(
2310   uint$2_t) :
2311     eval "$3=yes" ;; #(
2312   *) :
2313     eval "$3=\$ac_type" ;;
2314 esac
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2317        if eval test \"x\$"$3"\" = x"no"
2318 then :
2319
2320 else $as_nop
2321   break
2322 fi
2323      done
2324 fi
2325 eval ac_res=\$$3
2326                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 printf "%s\n" "$ac_res" >&6; }
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330 } # ac_fn_c_find_uintX_t
2331
2332 # ac_fn_c_find_intX_t LINENO BITS VAR
2333 # -----------------------------------
2334 # Finds a signed integer type with width BITS, setting cache variable VAR
2335 # accordingly.
2336 ac_fn_c_find_intX_t ()
2337 {
2338   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2340 printf %s "checking for int$2_t... " >&6; }
2341 if eval test \${$3+y}
2342 then :
2343   printf %s "(cached) " >&6
2344 else $as_nop
2345   eval "$3=no"
2346      # Order is important - never check a type that is potentially smaller
2347      # than half of the expected target width.
2348      for ac_type in int$2_t 'int' 'long int' \
2349          'long long int' 'short int' 'signed char'; do
2350        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h.  */
2352 $ac_includes_default
2353              enum { N = $2 / 2 - 1 };
2354 int
2355 main (void)
2356 {
2357 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2358 test_array [0] = 0;
2359 return test_array [0];
2360
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"
2366 then :
2367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h.  */
2369 $ac_includes_default
2370                 enum { N = $2 / 2 - 1 };
2371 int
2372 main (void)
2373 {
2374 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2375                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2376 test_array [0] = 0;
2377 return test_array [0];
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"
2384 then :
2385
2386 else $as_nop
2387   case $ac_type in #(
2388   int$2_t) :
2389     eval "$3=yes" ;; #(
2390   *) :
2391     eval "$3=\$ac_type" ;;
2392 esac
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2395 fi
2396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2397        if eval test \"x\$"$3"\" = x"no"
2398 then :
2399
2400 else $as_nop
2401   break
2402 fi
2403      done
2404 fi
2405 eval ac_res=\$$3
2406                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 printf "%s\n" "$ac_res" >&6; }
2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410 } # ac_fn_c_find_intX_t
2411
2412 # ac_fn_c_try_run LINENO
2413 # ----------------------
2414 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2415 # executables *can* be run.
2416 ac_fn_c_try_run ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   if { { ac_try="$ac_link"
2420 case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 printf "%s\n" "$ac_try_echo"; } >&5
2426   (eval "$ac_link") 2>&5
2427   ac_status=$?
2428   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2430   { { case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 printf "%s\n" "$ac_try_echo"; } >&5
2436   (eval "$ac_try") 2>&5
2437   ac_status=$?
2438   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439   test $ac_status = 0; }; }
2440 then :
2441   ac_retval=0
2442 else $as_nop
2443   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2444        printf "%s\n" "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447        ac_retval=$ac_status
2448 fi
2449   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451   as_fn_set_status $ac_retval
2452
2453 } # ac_fn_c_try_run
2454
2455 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2456 # ----------------------------------------------------
2457 # Tries to find if the field MEMBER exists in type AGGR, after including
2458 # INCLUDES, setting cache variable VAR accordingly.
2459 ac_fn_c_check_member ()
2460 {
2461   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2463 printf %s "checking for $2.$3... " >&6; }
2464 if eval test \${$4+y}
2465 then :
2466   printf %s "(cached) " >&6
2467 else $as_nop
2468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 $5
2471 int
2472 main (void)
2473 {
2474 static $2 ac_aggr;
2475 if (ac_aggr.$3)
2476 return 0;
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 if ac_fn_c_try_compile "$LINENO"
2482 then :
2483   eval "$4=yes"
2484 else $as_nop
2485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 $5
2488 int
2489 main (void)
2490 {
2491 static $2 ac_aggr;
2492 if (sizeof ac_aggr.$3)
2493 return 0;
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"
2499 then :
2500   eval "$4=yes"
2501 else $as_nop
2502   eval "$4=no"
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2507 fi
2508 eval ac_res=\$$4
2509                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 printf "%s\n" "$ac_res" >&6; }
2511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512
2513 } # ac_fn_c_check_member
2514
2515 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2516 # --------------------------------------------
2517 # Tries to find the compile-time value of EXPR in a program that includes
2518 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2519 # computed
2520 ac_fn_c_compute_int ()
2521 {
2522   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523   if test "$cross_compiling" = yes; then
2524     # Depending upon the size, compute the lo and hi bounds.
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main (void)
2530 {
2531 static int test_array [1 - 2 * !(($2) >= 0)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"
2540 then :
2541   ac_lo=0 ac_mid=0
2542   while :; do
2543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h.  */
2545 $4
2546 int
2547 main (void)
2548 {
2549 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2550 test_array [0] = 0;
2551 return test_array [0];
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"
2558 then :
2559   ac_hi=$ac_mid; break
2560 else $as_nop
2561   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2562                         if test $ac_lo -le $ac_mid; then
2563                           ac_lo= ac_hi=
2564                           break
2565                         fi
2566                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2569   done
2570 else $as_nop
2571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h.  */
2573 $4
2574 int
2575 main (void)
2576 {
2577 static int test_array [1 - 2 * !(($2) < 0)];
2578 test_array [0] = 0;
2579 return test_array [0];
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"
2586 then :
2587   ac_hi=-1 ac_mid=-1
2588   while :; do
2589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main (void)
2594 {
2595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2596 test_array [0] = 0;
2597 return test_array [0];
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"
2604 then :
2605   ac_lo=$ac_mid; break
2606 else $as_nop
2607   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2608                         if test $ac_mid -le $ac_hi; then
2609                           ac_lo= ac_hi=
2610                           break
2611                         fi
2612                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2615   done
2616 else $as_nop
2617   ac_lo= ac_hi=
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2620 fi
2621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2622 # Binary search between lo and hi bounds.
2623 while test "x$ac_lo" != "x$ac_hi"; do
2624   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h.  */
2627 $4
2628 int
2629 main (void)
2630 {
2631 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2632 test_array [0] = 0;
2633 return test_array [0];
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 if ac_fn_c_try_compile "$LINENO"
2640 then :
2641   ac_hi=$ac_mid
2642 else $as_nop
2643   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 done
2647 case $ac_lo in #((
2648 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2649 '') ac_retval=1 ;;
2650 esac
2651   else
2652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h.  */
2654 $4
2655 static long int longval (void) { return $2; }
2656 static unsigned long int ulongval (void) { return $2; }
2657 #include <stdio.h>
2658 #include <stdlib.h>
2659 int
2660 main (void)
2661 {
2662
2663   FILE *f = fopen ("conftest.val", "w");
2664   if (! f)
2665     return 1;
2666   if (($2) < 0)
2667     {
2668       long int i = longval ();
2669       if (i != ($2))
2670         return 1;
2671       fprintf (f, "%ld", i);
2672     }
2673   else
2674     {
2675       unsigned long int i = ulongval ();
2676       if (i != ($2))
2677         return 1;
2678       fprintf (f, "%lu", i);
2679     }
2680   /* Do not output a trailing newline, as this causes \r\n confusion
2681      on some platforms.  */
2682   return ferror (f) || fclose (f) != 0;
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_c_try_run "$LINENO"
2689 then :
2690   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2691 else $as_nop
2692   ac_retval=1
2693 fi
2694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2695   conftest.$ac_objext conftest.beam conftest.$ac_ext
2696 rm -f conftest.val
2697
2698   fi
2699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700   as_fn_set_status $ac_retval
2701
2702 } # ac_fn_c_compute_int
2703
2704 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2705 # ------------------------------------------------------------------
2706 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2707 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2708 ac_fn_check_decl ()
2709 {
2710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711   as_decl_name=`echo $2|sed 's/ *(.*//'`
2712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2713 printf %s "checking whether $as_decl_name is declared... " >&6; }
2714 if eval test \${$3+y}
2715 then :
2716   printf %s "(cached) " >&6
2717 else $as_nop
2718   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2719   eval ac_save_FLAGS=\$$6
2720   as_fn_append $6 " $5"
2721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h.  */
2723 $4
2724 int
2725 main (void)
2726 {
2727 #ifndef $as_decl_name
2728 #ifdef __cplusplus
2729   (void) $as_decl_use;
2730 #else
2731   (void) $as_decl_name;
2732 #endif
2733 #endif
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 if ac_fn_c_try_compile "$LINENO"
2740 then :
2741   eval "$3=yes"
2742 else $as_nop
2743   eval "$3=no"
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2746   eval $6=\$ac_save_FLAGS
2747
2748 fi
2749 eval ac_res=\$$3
2750                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 printf "%s\n" "$ac_res" >&6; }
2752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753
2754 } # ac_fn_check_decl
2755 ac_configure_args_raw=
2756 for ac_arg
2757 do
2758   case $ac_arg in
2759   *\'*)
2760     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2761   esac
2762   as_fn_append ac_configure_args_raw " '$ac_arg'"
2763 done
2764
2765 case $ac_configure_args_raw in
2766   *$as_nl*)
2767     ac_safe_unquote= ;;
2768   *)
2769     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2770     ac_unsafe_a="$ac_unsafe_z#~"
2771     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2772     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2773 esac
2774
2775 cat >config.log <<_ACEOF
2776 This file contains any messages produced by compilers while
2777 running configure, to aid debugging if configure makes a mistake.
2778
2779 It was created by nghttp2 $as_me 1.46.0, which was
2780 generated by GNU Autoconf 2.71.  Invocation command line was
2781
2782   $ $0$ac_configure_args_raw
2783
2784 _ACEOF
2785 exec 5>>config.log
2786 {
2787 cat <<_ASUNAME
2788 ## --------- ##
2789 ## Platform. ##
2790 ## --------- ##
2791
2792 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2793 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2794 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2795 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2796 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2797
2798 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2799 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2800
2801 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2802 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2803 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2804 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2805 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2806 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2807 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2808
2809 _ASUNAME
2810
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   case $as_dir in #(((
2816     '') as_dir=./ ;;
2817     */) ;;
2818     *) as_dir=$as_dir/ ;;
2819   esac
2820     printf "%s\n" "PATH: $as_dir"
2821   done
2822 IFS=$as_save_IFS
2823
2824 } >&5
2825
2826 cat >&5 <<_ACEOF
2827
2828
2829 ## ----------- ##
2830 ## Core tests. ##
2831 ## ----------- ##
2832
2833 _ACEOF
2834
2835
2836 # Keep a trace of the command line.
2837 # Strip out --no-create and --no-recursion so they do not pile up.
2838 # Strip out --silent because we don't want to record it for future runs.
2839 # Also quote any args containing shell meta-characters.
2840 # Make two passes to allow for proper duplicate-argument suppression.
2841 ac_configure_args=
2842 ac_configure_args0=
2843 ac_configure_args1=
2844 ac_must_keep_next=false
2845 for ac_pass in 1 2
2846 do
2847   for ac_arg
2848   do
2849     case $ac_arg in
2850     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2851     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2852     | -silent | --silent | --silen | --sile | --sil)
2853       continue ;;
2854     *\'*)
2855       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2856     esac
2857     case $ac_pass in
2858     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2859     2)
2860       as_fn_append ac_configure_args1 " '$ac_arg'"
2861       if test $ac_must_keep_next = true; then
2862         ac_must_keep_next=false # Got value, back to normal.
2863       else
2864         case $ac_arg in
2865           *=* | --config-cache | -C | -disable-* | --disable-* \
2866           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2867           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2868           | -with-* | --with-* | -without-* | --without-* | --x)
2869             case "$ac_configure_args0 " in
2870               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2871             esac
2872             ;;
2873           -* ) ac_must_keep_next=true ;;
2874         esac
2875       fi
2876       as_fn_append ac_configure_args " '$ac_arg'"
2877       ;;
2878     esac
2879   done
2880 done
2881 { ac_configure_args0=; unset ac_configure_args0;}
2882 { ac_configure_args1=; unset ac_configure_args1;}
2883
2884 # When interrupted or exit'd, cleanup temporary files, and complete
2885 # config.log.  We remove comments because anyway the quotes in there
2886 # would cause problems or look ugly.
2887 # WARNING: Use '\'' to represent an apostrophe within the trap.
2888 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2889 trap 'exit_status=$?
2890   # Sanitize IFS.
2891   IFS=" ""      $as_nl"
2892   # Save into config.log some information that might help in debugging.
2893   {
2894     echo
2895
2896     printf "%s\n" "## ---------------- ##
2897 ## Cache variables. ##
2898 ## ---------------- ##"
2899     echo
2900     # The following way of writing the cache mishandles newlines in values,
2901 (
2902   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2903     eval ac_val=\$$ac_var
2904     case $ac_val in #(
2905     *${as_nl}*)
2906       case $ac_var in #(
2907       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2908 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2909       esac
2910       case $ac_var in #(
2911       _ | IFS | as_nl) ;; #(
2912       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2913       *) { eval $ac_var=; unset $ac_var;} ;;
2914       esac ;;
2915     esac
2916   done
2917   (set) 2>&1 |
2918     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2919     *${as_nl}ac_space=\ *)
2920       sed -n \
2921         "s/'\''/'\''\\\\'\'''\''/g;
2922           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2923       ;; #(
2924     *)
2925       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2926       ;;
2927     esac |
2928     sort
2929 )
2930     echo
2931
2932     printf "%s\n" "## ----------------- ##
2933 ## Output variables. ##
2934 ## ----------------- ##"
2935     echo
2936     for ac_var in $ac_subst_vars
2937     do
2938       eval ac_val=\$$ac_var
2939       case $ac_val in
2940       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2941       esac
2942       printf "%s\n" "$ac_var='\''$ac_val'\''"
2943     done | sort
2944     echo
2945
2946     if test -n "$ac_subst_files"; then
2947       printf "%s\n" "## ------------------- ##
2948 ## File substitutions. ##
2949 ## ------------------- ##"
2950       echo
2951       for ac_var in $ac_subst_files
2952       do
2953         eval ac_val=\$$ac_var
2954         case $ac_val in
2955         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2956         esac
2957         printf "%s\n" "$ac_var='\''$ac_val'\''"
2958       done | sort
2959       echo
2960     fi
2961
2962     if test -s confdefs.h; then
2963       printf "%s\n" "## ----------- ##
2964 ## confdefs.h. ##
2965 ## ----------- ##"
2966       echo
2967       cat confdefs.h
2968       echo
2969     fi
2970     test "$ac_signal" != 0 &&
2971       printf "%s\n" "$as_me: caught signal $ac_signal"
2972     printf "%s\n" "$as_me: exit $exit_status"
2973   } >&5
2974   rm -f core *.core core.conftest.* &&
2975     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2976     exit $exit_status
2977 ' 0
2978 for ac_signal in 1 2 13 15; do
2979   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2980 done
2981 ac_signal=0
2982
2983 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2984 rm -f -r conftest* confdefs.h
2985
2986 printf "%s\n" "/* confdefs.h */" > confdefs.h
2987
2988 # Predefined preprocessor variables.
2989
2990 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2991
2992 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2993
2994 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2995
2996 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2997
2998 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2999
3000 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3001
3002
3003 # Let the site file select an alternate cache file if it wants to.
3004 # Prefer an explicitly selected file to automatically selected ones.
3005 if test -n "$CONFIG_SITE"; then
3006   ac_site_files="$CONFIG_SITE"
3007 elif test "x$prefix" != xNONE; then
3008   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3009 else
3010   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3011 fi
3012
3013 for ac_site_file in $ac_site_files
3014 do
3015   case $ac_site_file in #(
3016   */*) :
3017      ;; #(
3018   *) :
3019     ac_site_file=./$ac_site_file ;;
3020 esac
3021   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3023 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3024     sed 's/^/| /' "$ac_site_file" >&5
3025     . "$ac_site_file" \
3026       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "failed to load site script $ac_site_file
3029 See \`config.log' for more details" "$LINENO" 5; }
3030   fi
3031 done
3032
3033 if test -r "$cache_file"; then
3034   # Some versions of bash will fail to source /dev/null (special files
3035   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3036   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3037     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3038 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3039     case $cache_file in
3040       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3041       *)                      . "./$cache_file";;
3042     esac
3043   fi
3044 else
3045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3046 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3047   >$cache_file
3048 fi
3049
3050 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3051 # Test code for whether the C compiler supports C89 (global declarations)
3052 ac_c_conftest_c89_globals='
3053 /* Does the compiler advertise C89 conformance?
3054    Do not test the value of __STDC__, because some compilers set it to 0
3055    while being otherwise adequately conformant. */
3056 #if !defined __STDC__
3057 # error "Compiler does not advertise C89 conformance"
3058 #endif
3059
3060 #include <stddef.h>
3061 #include <stdarg.h>
3062 struct stat;
3063 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3064 struct buf { int x; };
3065 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3066 static char *e (p, i)
3067      char **p;
3068      int i;
3069 {
3070   return p[i];
3071 }
3072 static char *f (char * (*g) (char **, int), char **p, ...)
3073 {
3074   char *s;
3075   va_list v;
3076   va_start (v,p);
3077   s = g (p, va_arg (v,int));
3078   va_end (v);
3079   return s;
3080 }
3081
3082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3083    function prototypes and stuff, but not \xHH hex character constants.
3084    These do not provoke an error unfortunately, instead are silently treated
3085    as an "x".  The following induces an error, until -std is added to get
3086    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3087    array size at least.  It is necessary to write \x00 == 0 to get something
3088    that is true only with -std.  */
3089 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3090
3091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3092    inside strings and character constants.  */
3093 #define FOO(x) '\''x'\''
3094 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3095
3096 int test (int i, double x);
3097 struct s1 {int (*f) (int a);};
3098 struct s2 {int (*f) (double a);};
3099 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3100                int, int);'
3101
3102 # Test code for whether the C compiler supports C89 (body of main).
3103 ac_c_conftest_c89_main='
3104 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3105 '
3106
3107 # Test code for whether the C compiler supports C99 (global declarations)
3108 ac_c_conftest_c99_globals='
3109 // Does the compiler advertise C99 conformance?
3110 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3111 # error "Compiler does not advertise C99 conformance"
3112 #endif
3113
3114 #include <stdbool.h>
3115 extern int puts (const char *);
3116 extern int printf (const char *, ...);
3117 extern int dprintf (int, const char *, ...);
3118 extern void *malloc (size_t);
3119
3120 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3121 // dprintf is used instead of fprintf to avoid needing to declare
3122 // FILE and stderr.
3123 #define debug(...) dprintf (2, __VA_ARGS__)
3124 #define showlist(...) puts (#__VA_ARGS__)
3125 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3126 static void
3127 test_varargs_macros (void)
3128 {
3129   int x = 1234;
3130   int y = 5678;
3131   debug ("Flag");
3132   debug ("X = %d\n", x);
3133   showlist (The first, second, and third items.);
3134   report (x>y, "x is %d but y is %d", x, y);
3135 }
3136
3137 // Check long long types.
3138 #define BIG64 18446744073709551615ull
3139 #define BIG32 4294967295ul
3140 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3141 #if !BIG_OK
3142   #error "your preprocessor is broken"
3143 #endif
3144 #if BIG_OK
3145 #else
3146   #error "your preprocessor is broken"
3147 #endif
3148 static long long int bignum = -9223372036854775807LL;
3149 static unsigned long long int ubignum = BIG64;
3150
3151 struct incomplete_array
3152 {
3153   int datasize;
3154   double data[];
3155 };
3156
3157 struct named_init {
3158   int number;
3159   const wchar_t *name;
3160   double average;
3161 };
3162
3163 typedef const char *ccp;
3164
3165 static inline int
3166 test_restrict (ccp restrict text)
3167 {
3168   // See if C++-style comments work.
3169   // Iterate through items via the restricted pointer.
3170   // Also check for declarations in for loops.
3171   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3172     continue;
3173   return 0;
3174 }
3175
3176 // Check varargs and va_copy.
3177 static bool
3178 test_varargs (const char *format, ...)
3179 {
3180   va_list args;
3181   va_start (args, format);
3182   va_list args_copy;
3183   va_copy (args_copy, args);
3184
3185   const char *str = "";
3186   int number = 0;
3187   float fnumber = 0;
3188
3189   while (*format)
3190     {
3191       switch (*format++)
3192         {
3193         case '\''s'\'': // string
3194           str = va_arg (args_copy, const char *);
3195           break;
3196         case '\''d'\'': // int
3197           number = va_arg (args_copy, int);
3198           break;
3199         case '\''f'\'': // float
3200           fnumber = va_arg (args_copy, double);
3201           break;
3202         default:
3203           break;
3204         }
3205     }
3206   va_end (args_copy);
3207   va_end (args);
3208
3209   return *str && number && fnumber;
3210 }
3211 '
3212
3213 # Test code for whether the C compiler supports C99 (body of main).
3214 ac_c_conftest_c99_main='
3215   // Check bool.
3216   _Bool success = false;
3217   success |= (argc != 0);
3218
3219   // Check restrict.
3220   if (test_restrict ("String literal") == 0)
3221     success = true;
3222   char *restrict newvar = "Another string";
3223
3224   // Check varargs.
3225   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3226   test_varargs_macros ();
3227
3228   // Check flexible array members.
3229   struct incomplete_array *ia =
3230     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3231   ia->datasize = 10;
3232   for (int i = 0; i < ia->datasize; ++i)
3233     ia->data[i] = i * 1.234;
3234
3235   // Check named initializers.
3236   struct named_init ni = {
3237     .number = 34,
3238     .name = L"Test wide string",
3239     .average = 543.34343,
3240   };
3241
3242   ni.number = 58;
3243
3244   int dynamic_array[ni.number];
3245   dynamic_array[0] = argv[0][0];
3246   dynamic_array[ni.number - 1] = 543;
3247
3248   // work around unused variable warnings
3249   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3250          || dynamic_array[ni.number - 1] != 543);
3251 '
3252
3253 # Test code for whether the C compiler supports C11 (global declarations)
3254 ac_c_conftest_c11_globals='
3255 // Does the compiler advertise C11 conformance?
3256 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3257 # error "Compiler does not advertise C11 conformance"
3258 #endif
3259
3260 // Check _Alignas.
3261 char _Alignas (double) aligned_as_double;
3262 char _Alignas (0) no_special_alignment;
3263 extern char aligned_as_int;
3264 char _Alignas (0) _Alignas (int) aligned_as_int;
3265
3266 // Check _Alignof.
3267 enum
3268 {
3269   int_alignment = _Alignof (int),
3270   int_array_alignment = _Alignof (int[100]),
3271   char_alignment = _Alignof (char)
3272 };
3273 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3274
3275 // Check _Noreturn.
3276 int _Noreturn does_not_return (void) { for (;;) continue; }
3277
3278 // Check _Static_assert.
3279 struct test_static_assert
3280 {
3281   int x;
3282   _Static_assert (sizeof (int) <= sizeof (long int),
3283                   "_Static_assert does not work in struct");
3284   long int y;
3285 };
3286
3287 // Check UTF-8 literals.
3288 #define u8 syntax error!
3289 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3290
3291 // Check duplicate typedefs.
3292 typedef long *long_ptr;
3293 typedef long int *long_ptr;
3294 typedef long_ptr long_ptr;
3295
3296 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3297 struct anonymous
3298 {
3299   union {
3300     struct { int i; int j; };
3301     struct { int k; long int l; } w;
3302   };
3303   int m;
3304 } v1;
3305 '
3306
3307 # Test code for whether the C compiler supports C11 (body of main).
3308 ac_c_conftest_c11_main='
3309   _Static_assert ((offsetof (struct anonymous, i)
3310                    == offsetof (struct anonymous, w.k)),
3311                   "Anonymous union alignment botch");
3312   v1.i = 2;
3313   v1.w.k = 5;
3314   ok |= v1.i != 5;
3315 '
3316
3317 # Test code for whether the C compiler supports C11 (complete).
3318 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3319 ${ac_c_conftest_c99_globals}
3320 ${ac_c_conftest_c11_globals}
3321
3322 int
3323 main (int argc, char **argv)
3324 {
3325   int ok = 0;
3326   ${ac_c_conftest_c89_main}
3327   ${ac_c_conftest_c99_main}
3328   ${ac_c_conftest_c11_main}
3329   return ok;
3330 }
3331 "
3332
3333 # Test code for whether the C compiler supports C99 (complete).
3334 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3335 ${ac_c_conftest_c99_globals}
3336
3337 int
3338 main (int argc, char **argv)
3339 {
3340   int ok = 0;
3341   ${ac_c_conftest_c89_main}
3342   ${ac_c_conftest_c99_main}
3343   return ok;
3344 }
3345 "
3346
3347 # Test code for whether the C compiler supports C89 (complete).
3348 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3349
3350 int
3351 main (int argc, char **argv)
3352 {
3353   int ok = 0;
3354   ${ac_c_conftest_c89_main}
3355   return ok;
3356 }
3357 "
3358
3359 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3360 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3361 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3362 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3363 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3364 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3365 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3366 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3367 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3368 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3369 # Test code for whether the C++ compiler supports C++98 (global declarations)
3370 ac_cxx_conftest_cxx98_globals='
3371 // Does the compiler advertise C++98 conformance?
3372 #if !defined __cplusplus || __cplusplus < 199711L
3373 # error "Compiler does not advertise C++98 conformance"
3374 #endif
3375
3376 // These inclusions are to reject old compilers that
3377 // lack the unsuffixed header files.
3378 #include <cstdlib>
3379 #include <exception>
3380
3381 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3382 extern void assert (int);
3383 namespace std {
3384   extern int strcmp (const char *, const char *);
3385 }
3386
3387 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3388 using std::exception;
3389 using std::strcmp;
3390
3391 namespace {
3392
3393 void test_exception_syntax()
3394 {
3395   try {
3396     throw "test";
3397   } catch (const char *s) {
3398     // Extra parentheses suppress a warning when building autoconf itself,
3399     // due to lint rules shared with more typical C programs.
3400     assert (!(strcmp) (s, "test"));
3401   }
3402 }
3403
3404 template <typename T> struct test_template
3405 {
3406   T const val;
3407   explicit test_template(T t) : val(t) {}
3408   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3409 };
3410
3411 } // anonymous namespace
3412 '
3413
3414 # Test code for whether the C++ compiler supports C++98 (body of main)
3415 ac_cxx_conftest_cxx98_main='
3416   assert (argc);
3417   assert (! argv[0]);
3418 {
3419   test_exception_syntax ();
3420   test_template<double> tt (2.0);
3421   assert (tt.add (4) == 6.0);
3422   assert (true && !false);
3423 }
3424 '
3425
3426 # Test code for whether the C++ compiler supports C++11 (global declarations)
3427 ac_cxx_conftest_cxx11_globals='
3428 // Does the compiler advertise C++ 2011 conformance?
3429 #if !defined __cplusplus || __cplusplus < 201103L
3430 # error "Compiler does not advertise C++11 conformance"
3431 #endif
3432
3433 namespace cxx11test
3434 {
3435   constexpr int get_val() { return 20; }
3436
3437   struct testinit
3438   {
3439     int i;
3440     double d;
3441   };
3442
3443   class delegate
3444   {
3445   public:
3446     delegate(int n) : n(n) {}
3447     delegate(): delegate(2354) {}
3448
3449     virtual int getval() { return this->n; };
3450   protected:
3451     int n;
3452   };
3453
3454   class overridden : public delegate
3455   {
3456   public:
3457     overridden(int n): delegate(n) {}
3458     virtual int getval() override final { return this->n * 2; }
3459   };
3460
3461   class nocopy
3462   {
3463   public:
3464     nocopy(int i): i(i) {}
3465     nocopy() = default;
3466     nocopy(const nocopy&) = delete;
3467     nocopy & operator=(const nocopy&) = delete;
3468   private:
3469     int i;
3470   };
3471
3472   // for testing lambda expressions
3473   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3474   {
3475     return f(v);
3476   }
3477
3478   // for testing variadic templates and trailing return types
3479   template <typename V> auto sum(V first) -> V
3480   {
3481     return first;
3482   }
3483   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3484   {
3485     return first + sum(rest...);
3486   }
3487 }
3488 '
3489
3490 # Test code for whether the C++ compiler supports C++11 (body of main)
3491 ac_cxx_conftest_cxx11_main='
3492 {
3493   // Test auto and decltype
3494   auto a1 = 6538;
3495   auto a2 = 48573953.4;
3496   auto a3 = "String literal";
3497
3498   int total = 0;
3499   for (auto i = a3; *i; ++i) { total += *i; }
3500
3501   decltype(a2) a4 = 34895.034;
3502 }
3503 {
3504   // Test constexpr
3505   short sa[cxx11test::get_val()] = { 0 };
3506 }
3507 {
3508   // Test initializer lists
3509   cxx11test::testinit il = { 4323, 435234.23544 };
3510 }
3511 {
3512   // Test range-based for
3513   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3514                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3515   for (auto &x : array) { x += 23; }
3516 }
3517 {
3518   // Test lambda expressions
3519   using cxx11test::eval;
3520   assert (eval ([](int x) { return x*2; }, 21) == 42);
3521   double d = 2.0;
3522   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3523   assert (d == 5.0);
3524   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3525   assert (d == 5.0);
3526 }
3527 {
3528   // Test use of variadic templates
3529   using cxx11test::sum;
3530   auto a = sum(1);
3531   auto b = sum(1, 2);
3532   auto c = sum(1.0, 2.0, 3.0);
3533 }
3534 {
3535   // Test constructor delegation
3536   cxx11test::delegate d1;
3537   cxx11test::delegate d2();
3538   cxx11test::delegate d3(45);
3539 }
3540 {
3541   // Test override and final
3542   cxx11test::overridden o1(55464);
3543 }
3544 {
3545   // Test nullptr
3546   char *c = nullptr;
3547 }
3548 {
3549   // Test template brackets
3550   test_template<::test_template<int>> v(test_template<int>(12));
3551 }
3552 {
3553   // Unicode literals
3554   char const *utf8 = u8"UTF-8 string \u2500";
3555   char16_t const *utf16 = u"UTF-8 string \u2500";
3556   char32_t const *utf32 = U"UTF-32 string \u2500";
3557 }
3558 '
3559
3560 # Test code for whether the C compiler supports C++11 (complete).
3561 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3562 ${ac_cxx_conftest_cxx11_globals}
3563
3564 int
3565 main (int argc, char **argv)
3566 {
3567   int ok = 0;
3568   ${ac_cxx_conftest_cxx98_main}
3569   ${ac_cxx_conftest_cxx11_main}
3570   return ok;
3571 }
3572 "
3573
3574 # Test code for whether the C compiler supports C++98 (complete).
3575 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3576 int
3577 main (int argc, char **argv)
3578 {
3579   int ok = 0;
3580   ${ac_cxx_conftest_cxx98_main}
3581   return ok;
3582 }
3583 "
3584
3585 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3586 as_fn_append ac_func_c_list " fork HAVE_FORK"
3587 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3588
3589 # Auxiliary files required by this configure script.
3590 ac_aux_files="missing install-sh config.guess config.sub ltmain.sh compile"
3591
3592 # Locations in which to look for auxiliary files.
3593 ac_aux_dir_candidates="${srcdir}/."
3594
3595 # Search for a directory containing all of the required auxiliary files,
3596 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3597 # If we don't find one directory that contains all the files we need,
3598 # we report the set of missing files from the *first* directory in
3599 # $ac_aux_dir_candidates and give up.
3600 ac_missing_aux_files=""
3601 ac_first_candidate=:
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 as_found=false
3605 for as_dir in $ac_aux_dir_candidates
3606 do
3607   IFS=$as_save_IFS
3608   case $as_dir in #(((
3609     '') as_dir=./ ;;
3610     */) ;;
3611     *) as_dir=$as_dir/ ;;
3612   esac
3613   as_found=:
3614
3615   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3616   ac_aux_dir_found=yes
3617   ac_install_sh=
3618   for ac_aux in $ac_aux_files
3619   do
3620     # As a special case, if "install-sh" is required, that requirement
3621     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3622     # and $ac_install_sh is set appropriately for whichever one is found.
3623     if test x"$ac_aux" = x"install-sh"
3624     then
3625       if test -f "${as_dir}install-sh"; then
3626         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3627         ac_install_sh="${as_dir}install-sh -c"
3628       elif test -f "${as_dir}install.sh"; then
3629         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3630         ac_install_sh="${as_dir}install.sh -c"
3631       elif test -f "${as_dir}shtool"; then
3632         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3633         ac_install_sh="${as_dir}shtool install -c"
3634       else
3635         ac_aux_dir_found=no
3636         if $ac_first_candidate; then
3637           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3638         else
3639           break
3640         fi
3641       fi
3642     else
3643       if test -f "${as_dir}${ac_aux}"; then
3644         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3645       else
3646         ac_aux_dir_found=no
3647         if $ac_first_candidate; then
3648           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3649         else
3650           break
3651         fi
3652       fi
3653     fi
3654   done
3655   if test "$ac_aux_dir_found" = yes; then
3656     ac_aux_dir="$as_dir"
3657     break
3658   fi
3659   ac_first_candidate=false
3660
3661   as_found=false
3662 done
3663 IFS=$as_save_IFS
3664 if $as_found
3665 then :
3666
3667 else $as_nop
3668   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3669 fi
3670
3671
3672 # These three variables are undocumented and unsupported,
3673 # and are intended to be withdrawn in a future Autoconf release.
3674 # They can cause serious problems if a builder's source tree is in a directory
3675 # whose full name contains unusual characters.
3676 if test -f "${ac_aux_dir}config.guess"; then
3677   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3678 fi
3679 if test -f "${ac_aux_dir}config.sub"; then
3680   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3681 fi
3682 if test -f "$ac_aux_dir/configure"; then
3683   ac_configure="$SHELL ${ac_aux_dir}configure"
3684 fi
3685
3686 # Check that the precious variables saved in the cache have kept the same
3687 # value.
3688 ac_cache_corrupted=false
3689 for ac_var in $ac_precious_vars; do
3690   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3691   eval ac_new_set=\$ac_env_${ac_var}_set
3692   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3693   eval ac_new_val=\$ac_env_${ac_var}_value
3694   case $ac_old_set,$ac_new_set in
3695     set,)
3696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3697 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3698       ac_cache_corrupted=: ;;
3699     ,set)
3700       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3701 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3702       ac_cache_corrupted=: ;;
3703     ,);;
3704     *)
3705       if test "x$ac_old_val" != "x$ac_new_val"; then
3706         # differences in whitespace do not lead to failure.
3707         ac_old_val_w=`echo x $ac_old_val`
3708         ac_new_val_w=`echo x $ac_new_val`
3709         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3710           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3711 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3712           ac_cache_corrupted=:
3713         else
3714           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3715 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3716           eval $ac_var=\$ac_old_val
3717         fi
3718         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3719 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3720         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3721 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3722       fi;;
3723   esac
3724   # Pass precious variables to config.status.
3725   if test "$ac_new_set" = set; then
3726     case $ac_new_val in
3727     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3728     *) ac_arg=$ac_var=$ac_new_val ;;
3729     esac
3730     case " $ac_configure_args " in
3731       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3732       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3733     esac
3734   fi
3735 done
3736 if $ac_cache_corrupted; then
3737   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3740 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3741   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3742             and start over" "$LINENO" 5
3743 fi
3744 ## -------------------- ##
3745 ## Main body of script. ##
3746 ## -------------------- ##
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755
3756
3757 ac_config_headers="$ac_config_headers config.h"
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770 # Expand $ac_aux_dir to an absolute path.
3771 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 if test -n "$ac_tool_prefix"; then
3779   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 printf %s "checking for $ac_word... " >&6; }
3783 if test ${ac_cv_prog_CC+y}
3784 then :
3785   printf %s "(cached) " >&6
3786 else $as_nop
3787   if test -n "$CC"; then
3788   ac_cv_prog_CC="$CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   case $as_dir in #(((
3795     '') as_dir=./ ;;
3796     */) ;;
3797     *) as_dir=$as_dir/ ;;
3798   esac
3799     for ac_exec_ext in '' $ac_executable_extensions; do
3800   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3801     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3802     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806   done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 printf "%s\n" "$CC" >&6; }
3815 else
3816   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3818 fi
3819
3820
3821 fi
3822 if test -z "$ac_cv_prog_CC"; then
3823   ac_ct_CC=$CC
3824   # Extract the first word of "gcc", so it can be a program name with args.
3825 set dummy gcc; ac_word=$2
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 printf %s "checking for $ac_word... " >&6; }
3828 if test ${ac_cv_prog_ac_ct_CC+y}
3829 then :
3830   printf %s "(cached) " >&6
3831 else $as_nop
3832   if test -n "$ac_ct_CC"; then
3833   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   case $as_dir in #(((
3840     '') as_dir=./ ;;
3841     */) ;;
3842     *) as_dir=$as_dir/ ;;
3843   esac
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_CC="gcc"
3847     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851   done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 printf "%s\n" "$ac_ct_CC" >&6; }
3860 else
3861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 printf "%s\n" "no" >&6; }
3863 fi
3864
3865   if test "x$ac_ct_CC" = x; then
3866     CC=""
3867   else
3868     case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874     CC=$ac_ct_CC
3875   fi
3876 else
3877   CC="$ac_cv_prog_CC"
3878 fi
3879
3880 if test -z "$CC"; then
3881           if test -n "$ac_tool_prefix"; then
3882     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}cc; ac_word=$2
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 printf %s "checking for $ac_word... " >&6; }
3886 if test ${ac_cv_prog_CC+y}
3887 then :
3888   printf %s "(cached) " >&6
3889 else $as_nop
3890   if test -n "$CC"; then
3891   ac_cv_prog_CC="$CC" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   case $as_dir in #(((
3898     '') as_dir=./ ;;
3899     */) ;;
3900     *) as_dir=$as_dir/ ;;
3901   esac
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_CC="${ac_tool_prefix}cc"
3905     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909   done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 CC=$ac_cv_prog_CC
3915 if test -n "$CC"; then
3916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917 printf "%s\n" "$CC" >&6; }
3918 else
3919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 printf "%s\n" "no" >&6; }
3921 fi
3922
3923
3924   fi
3925 fi
3926 if test -z "$CC"; then
3927   # Extract the first word of "cc", so it can be a program name with args.
3928 set dummy cc; ac_word=$2
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 printf %s "checking for $ac_word... " >&6; }
3931 if test ${ac_cv_prog_CC+y}
3932 then :
3933   printf %s "(cached) " >&6
3934 else $as_nop
3935   if test -n "$CC"; then
3936   ac_cv_prog_CC="$CC" # Let the user override the test.
3937 else
3938   ac_prog_rejected=no
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   case $as_dir in #(((
3944     '') as_dir=./ ;;
3945     */) ;;
3946     *) as_dir=$as_dir/ ;;
3947   esac
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3950     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3951        ac_prog_rejected=yes
3952        continue
3953      fi
3954     ac_cv_prog_CC="cc"
3955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 if test $ac_prog_rejected = yes; then
3963   # We found a bogon in the path, so make sure we never use it.
3964   set dummy $ac_cv_prog_CC
3965   shift
3966   if test $# != 0; then
3967     # We chose a different compiler from the bogus one.
3968     # However, it has the same basename, so the bogon will be chosen
3969     # first if we set CC to just the basename; use the full file name.
3970     shift
3971     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3972   fi
3973 fi
3974 fi
3975 fi
3976 CC=$ac_cv_prog_CC
3977 if test -n "$CC"; then
3978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 printf "%s\n" "$CC" >&6; }
3980 else
3981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 printf "%s\n" "no" >&6; }
3983 fi
3984
3985
3986 fi
3987 if test -z "$CC"; then
3988   if test -n "$ac_tool_prefix"; then
3989   for ac_prog in cl.exe
3990   do
3991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 printf %s "checking for $ac_word... " >&6; }
3995 if test ${ac_cv_prog_CC+y}
3996 then :
3997   printf %s "(cached) " >&6
3998 else $as_nop
3999   if test -n "$CC"; then
4000   ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   case $as_dir in #(((
4007     '') as_dir=./ ;;
4008     */) ;;
4009     *) as_dir=$as_dir/ ;;
4010   esac
4011     for ac_exec_ext in '' $ac_executable_extensions; do
4012   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4013     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4014     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018   done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 printf "%s\n" "$CC" >&6; }
4027 else
4028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 printf "%s\n" "no" >&6; }
4030 fi
4031
4032
4033     test -n "$CC" && break
4034   done
4035 fi
4036 if test -z "$CC"; then
4037   ac_ct_CC=$CC
4038   for ac_prog in cl.exe
4039 do
4040   # Extract the first word of "$ac_prog", so it can be a program name with args.
4041 set dummy $ac_prog; ac_word=$2
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 printf %s "checking for $ac_word... " >&6; }
4044 if test ${ac_cv_prog_ac_ct_CC+y}
4045 then :
4046   printf %s "(cached) " >&6
4047 else $as_nop
4048   if test -n "$ac_ct_CC"; then
4049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   case $as_dir in #(((
4056     '') as_dir=./ ;;
4057     */) ;;
4058     *) as_dir=$as_dir/ ;;
4059   esac
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_ac_ct_CC="$ac_prog"
4063     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067   done
4068 IFS=$as_save_IFS
4069
4070 fi
4071 fi
4072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4073 if test -n "$ac_ct_CC"; then
4074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4075 printf "%s\n" "$ac_ct_CC" >&6; }
4076 else
4077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 fi
4080
4081
4082   test -n "$ac_ct_CC" && break
4083 done
4084
4085   if test "x$ac_ct_CC" = x; then
4086     CC=""
4087   else
4088     case $cross_compiling:$ac_tool_warned in
4089 yes:)
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4091 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4092 ac_tool_warned=yes ;;
4093 esac
4094     CC=$ac_ct_CC
4095   fi
4096 fi
4097
4098 fi
4099 if test -z "$CC"; then
4100   if test -n "$ac_tool_prefix"; then
4101   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}clang; ac_word=$2
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 printf %s "checking for $ac_word... " >&6; }
4105 if test ${ac_cv_prog_CC+y}
4106 then :
4107   printf %s "(cached) " >&6
4108 else $as_nop
4109   if test -n "$CC"; then
4110   ac_cv_prog_CC="$CC" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115   IFS=$as_save_IFS
4116   case $as_dir in #(((
4117     '') as_dir=./ ;;
4118     */) ;;
4119     *) as_dir=$as_dir/ ;;
4120   esac
4121     for ac_exec_ext in '' $ac_executable_extensions; do
4122   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4123     ac_cv_prog_CC="${ac_tool_prefix}clang"
4124     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128   done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 CC=$ac_cv_prog_CC
4134 if test -n "$CC"; then
4135   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136 printf "%s\n" "$CC" >&6; }
4137 else
4138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 printf "%s\n" "no" >&6; }
4140 fi
4141
4142
4143 fi
4144 if test -z "$ac_cv_prog_CC"; then
4145   ac_ct_CC=$CC
4146   # Extract the first word of "clang", so it can be a program name with args.
4147 set dummy clang; ac_word=$2
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 printf %s "checking for $ac_word... " >&6; }
4150 if test ${ac_cv_prog_ac_ct_CC+y}
4151 then :
4152   printf %s "(cached) " >&6
4153 else $as_nop
4154   if test -n "$ac_ct_CC"; then
4155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   case $as_dir in #(((
4162     '') as_dir=./ ;;
4163     */) ;;
4164     *) as_dir=$as_dir/ ;;
4165   esac
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168     ac_cv_prog_ac_ct_CC="clang"
4169     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173   done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181 printf "%s\n" "$ac_ct_CC" >&6; }
4182 else
4183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 printf "%s\n" "no" >&6; }
4185 fi
4186
4187   if test "x$ac_ct_CC" = x; then
4188     CC=""
4189   else
4190     case $cross_compiling:$ac_tool_warned in
4191 yes:)
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4195 esac
4196     CC=$ac_ct_CC
4197   fi
4198 else
4199   CC="$ac_cv_prog_CC"
4200 fi
4201
4202 fi
4203
4204
4205 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "no acceptable C compiler found in \$PATH
4208 See \`config.log' for more details" "$LINENO" 5; }
4209
4210 # Provide some information about the compiler.
4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4212 set X $ac_compile
4213 ac_compiler=$2
4214 for ac_option in --version -v -V -qversion -version; do
4215   { { ac_try="$ac_compiler $ac_option >&5"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 printf "%s\n" "$ac_try_echo"; } >&5
4222   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4223   ac_status=$?
4224   if test -s conftest.err; then
4225     sed '10a\
4226 ... rest of stderr output deleted ...
4227          10q' conftest.err >conftest.er1
4228     cat conftest.er1 >&5
4229   fi
4230   rm -f conftest.er1 conftest.err
4231   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232   test $ac_status = 0; }
4233 done
4234
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main (void)
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 ac_clean_files_save=$ac_clean_files
4247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4248 # Try to create an executable without -o first, disregard a.out.
4249 # It will help us diagnose broken compilers, and finding out an intuition
4250 # of exeext.
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252 printf %s "checking whether the C compiler works... " >&6; }
4253 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4254
4255 # The possible output files:
4256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4257
4258 ac_rmfiles=
4259 for ac_file in $ac_files
4260 do
4261   case $ac_file in
4262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4263     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4264   esac
4265 done
4266 rm -f $ac_rmfiles
4267
4268 if { { ac_try="$ac_link_default"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 printf "%s\n" "$ac_try_echo"; } >&5
4275   (eval "$ac_link_default") 2>&5
4276   ac_status=$?
4277   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278   test $ac_status = 0; }
4279 then :
4280   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4281 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4282 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4283 # so that the user can short-circuit this test for compilers unknown to
4284 # Autoconf.
4285 for ac_file in $ac_files ''
4286 do
4287   test -f "$ac_file" || continue
4288   case $ac_file in
4289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4290         ;;
4291     [ab].out )
4292         # We found the default executable, but exeext='' is most
4293         # certainly right.
4294         break;;
4295     *.* )
4296         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4297         then :; else
4298            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4299         fi
4300         # We set ac_cv_exeext here because the later test for it is not
4301         # safe: cross compilers may not add the suffix if given an `-o'
4302         # argument, so we may need to know it at that point already.
4303         # Even if this section looks crufty: it has the advantage of
4304         # actually working.
4305         break;;
4306     * )
4307         break;;
4308   esac
4309 done
4310 test "$ac_cv_exeext" = no && ac_cv_exeext=
4311
4312 else $as_nop
4313   ac_file=''
4314 fi
4315 if test -z "$ac_file"
4316 then :
4317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 printf "%s\n" "no" >&6; }
4319 printf "%s\n" "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4324 as_fn_error 77 "C compiler cannot create executables
4325 See \`config.log' for more details" "$LINENO" 5; }
4326 else $as_nop
4327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 printf "%s\n" "yes" >&6; }
4329 fi
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4331 printf %s "checking for C compiler default output file name... " >&6; }
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4333 printf "%s\n" "$ac_file" >&6; }
4334 ac_exeext=$ac_cv_exeext
4335
4336 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4337 ac_clean_files=$ac_clean_files_save
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4339 printf %s "checking for suffix of executables... " >&6; }
4340 if { { ac_try="$ac_link"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 printf "%s\n" "$ac_try_echo"; } >&5
4347   (eval "$ac_link") 2>&5
4348   ac_status=$?
4349   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350   test $ac_status = 0; }
4351 then :
4352   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4353 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4354 # work properly (i.e., refer to `conftest.exe'), while it won't with
4355 # `rm'.
4356 for ac_file in conftest.exe conftest conftest.*; do
4357   test -f "$ac_file" || continue
4358   case $ac_file in
4359     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4360     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4361           break;;
4362     * ) break;;
4363   esac
4364 done
4365 else $as_nop
4366   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4369 See \`config.log' for more details" "$LINENO" 5; }
4370 fi
4371 rm -f conftest conftest$ac_cv_exeext
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4373 printf "%s\n" "$ac_cv_exeext" >&6; }
4374
4375 rm -f conftest.$ac_ext
4376 EXEEXT=$ac_cv_exeext
4377 ac_exeext=$EXEEXT
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #include <stdio.h>
4381 int
4382 main (void)
4383 {
4384 FILE *f = fopen ("conftest.out", "w");
4385  return ferror (f) || fclose (f) != 0;
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 ac_clean_files="$ac_clean_files conftest.out"
4392 # Check that the compiler produces executables we can run.  If not, either
4393 # the compiler is broken, or we cross compile.
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4395 printf %s "checking whether we are cross compiling... " >&6; }
4396 if test "$cross_compiling" != yes; then
4397   { { ac_try="$ac_link"
4398 case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 printf "%s\n" "$ac_try_echo"; } >&5
4404   (eval "$ac_link") 2>&5
4405   ac_status=$?
4406   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407   test $ac_status = 0; }
4408   if { ac_try='./conftest$ac_cv_exeext'
4409   { { case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 printf "%s\n" "$ac_try_echo"; } >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; }; }; then
4419     cross_compiling=no
4420   else
4421     if test "$cross_compiling" = maybe; then
4422         cross_compiling=yes
4423     else
4424         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error 77 "cannot run C compiled programs.
4427 If you meant to cross compile, use \`--host'.
4428 See \`config.log' for more details" "$LINENO" 5; }
4429     fi
4430   fi
4431 fi
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4433 printf "%s\n" "$cross_compiling" >&6; }
4434
4435 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4436 ac_clean_files=$ac_clean_files_save
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4438 printf %s "checking for suffix of object files... " >&6; }
4439 if test ${ac_cv_objext+y}
4440 then :
4441   printf %s "(cached) " >&6
4442 else $as_nop
4443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445
4446 int
4447 main (void)
4448 {
4449
4450   ;
4451   return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4456 case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 printf "%s\n" "$ac_try_echo"; } >&5
4462   (eval "$ac_compile") 2>&5
4463   ac_status=$?
4464   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465   test $ac_status = 0; }
4466 then :
4467   for ac_file in conftest.o conftest.obj conftest.*; do
4468   test -f "$ac_file" || continue;
4469   case $ac_file in
4470     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4471     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4472        break;;
4473   esac
4474 done
4475 else $as_nop
4476   printf "%s\n" "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error $? "cannot compute suffix of object files: cannot compile
4482 See \`config.log' for more details" "$LINENO" 5; }
4483 fi
4484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4485 fi
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4487 printf "%s\n" "$ac_cv_objext" >&6; }
4488 OBJEXT=$ac_cv_objext
4489 ac_objext=$OBJEXT
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4491 printf %s "checking whether the compiler supports GNU C... " >&6; }
4492 if test ${ac_cv_c_compiler_gnu+y}
4493 then :
4494   printf %s "(cached) " >&6
4495 else $as_nop
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498
4499 int
4500 main (void)
4501 {
4502 #ifndef __GNUC__
4503        choke me
4504 #endif
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"
4511 then :
4512   ac_compiler_gnu=yes
4513 else $as_nop
4514   ac_compiler_gnu=no
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518
4519 fi
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4521 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
4524 if test $ac_compiler_gnu = yes; then
4525   GCC=yes
4526 else
4527   GCC=
4528 fi
4529 ac_test_CFLAGS=${CFLAGS+y}
4530 ac_save_CFLAGS=$CFLAGS
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4532 printf %s "checking whether $CC accepts -g... " >&6; }
4533 if test ${ac_cv_prog_cc_g+y}
4534 then :
4535   printf %s "(cached) " >&6
4536 else $as_nop
4537   ac_save_c_werror_flag=$ac_c_werror_flag
4538    ac_c_werror_flag=yes
4539    ac_cv_prog_cc_g=no
4540    CFLAGS="-g"
4541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543
4544 int
4545 main (void)
4546 {
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"
4553 then :
4554   ac_cv_prog_cc_g=yes
4555 else $as_nop
4556   CFLAGS=""
4557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559
4560 int
4561 main (void)
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570
4571 else $as_nop
4572   ac_c_werror_flag=$ac_save_c_werror_flag
4573          CFLAGS="-g"
4574          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 int
4578 main (void)
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"
4586 then :
4587   ac_cv_prog_cc_g=yes
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4594    ac_c_werror_flag=$ac_save_c_werror_flag
4595 fi
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4597 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4598 if test $ac_test_CFLAGS; then
4599   CFLAGS=$ac_save_CFLAGS
4600 elif test $ac_cv_prog_cc_g = yes; then
4601   if test "$GCC" = yes; then
4602     CFLAGS="-g -O2"
4603   else
4604     CFLAGS="-g"
4605   fi
4606 else
4607   if test "$GCC" = yes; then
4608     CFLAGS="-O2"
4609   else
4610     CFLAGS=
4611   fi
4612 fi
4613 ac_prog_cc_stdc=no
4614 if test x$ac_prog_cc_stdc = xno
4615 then :
4616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4617 printf %s "checking for $CC option to enable C11 features... " >&6; }
4618 if test ${ac_cv_prog_cc_c11+y}
4619 then :
4620   printf %s "(cached) " >&6
4621 else $as_nop
4622   ac_cv_prog_cc_c11=no
4623 ac_save_CC=$CC
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626 $ac_c_conftest_c11_program
4627 _ACEOF
4628 for ac_arg in '' -std=gnu11
4629 do
4630   CC="$ac_save_CC $ac_arg"
4631   if ac_fn_c_try_compile "$LINENO"
4632 then :
4633   ac_cv_prog_cc_c11=$ac_arg
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.beam
4636   test "x$ac_cv_prog_cc_c11" != "xno" && break
4637 done
4638 rm -f conftest.$ac_ext
4639 CC=$ac_save_CC
4640 fi
4641
4642 if test "x$ac_cv_prog_cc_c11" = xno
4643 then :
4644   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4645 printf "%s\n" "unsupported" >&6; }
4646 else $as_nop
4647   if test "x$ac_cv_prog_cc_c11" = x
4648 then :
4649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4650 printf "%s\n" "none needed" >&6; }
4651 else $as_nop
4652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4653 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4654      CC="$CC $ac_cv_prog_cc_c11"
4655 fi
4656   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4657   ac_prog_cc_stdc=c11
4658 fi
4659 fi
4660 if test x$ac_prog_cc_stdc = xno
4661 then :
4662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4663 printf %s "checking for $CC option to enable C99 features... " >&6; }
4664 if test ${ac_cv_prog_cc_c99+y}
4665 then :
4666   printf %s "(cached) " >&6
4667 else $as_nop
4668   ac_cv_prog_cc_c99=no
4669 ac_save_CC=$CC
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672 $ac_c_conftest_c99_program
4673 _ACEOF
4674 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4675 do
4676   CC="$ac_save_CC $ac_arg"
4677   if ac_fn_c_try_compile "$LINENO"
4678 then :
4679   ac_cv_prog_cc_c99=$ac_arg
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.beam
4682   test "x$ac_cv_prog_cc_c99" != "xno" && break
4683 done
4684 rm -f conftest.$ac_ext
4685 CC=$ac_save_CC
4686 fi
4687
4688 if test "x$ac_cv_prog_cc_c99" = xno
4689 then :
4690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4691 printf "%s\n" "unsupported" >&6; }
4692 else $as_nop
4693   if test "x$ac_cv_prog_cc_c99" = x
4694 then :
4695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696 printf "%s\n" "none needed" >&6; }
4697 else $as_nop
4698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4699 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4700      CC="$CC $ac_cv_prog_cc_c99"
4701 fi
4702   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4703   ac_prog_cc_stdc=c99
4704 fi
4705 fi
4706 if test x$ac_prog_cc_stdc = xno
4707 then :
4708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4709 printf %s "checking for $CC option to enable C89 features... " >&6; }
4710 if test ${ac_cv_prog_cc_c89+y}
4711 then :
4712   printf %s "(cached) " >&6
4713 else $as_nop
4714   ac_cv_prog_cc_c89=no
4715 ac_save_CC=$CC
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 $ac_c_conftest_c89_program
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4721 do
4722   CC="$ac_save_CC $ac_arg"
4723   if ac_fn_c_try_compile "$LINENO"
4724 then :
4725   ac_cv_prog_cc_c89=$ac_arg
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.beam
4728   test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 done
4730 rm -f conftest.$ac_ext
4731 CC=$ac_save_CC
4732 fi
4733
4734 if test "x$ac_cv_prog_cc_c89" = xno
4735 then :
4736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4737 printf "%s\n" "unsupported" >&6; }
4738 else $as_nop
4739   if test "x$ac_cv_prog_cc_c89" = x
4740 then :
4741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4742 printf "%s\n" "none needed" >&6; }
4743 else $as_nop
4744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4746      CC="$CC $ac_cv_prog_cc_c89"
4747 fi
4748   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4749   ac_prog_cc_stdc=c89
4750 fi
4751 fi
4752
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759
4760   ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4766 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4767 if test ${am_cv_prog_cc_c_o+y}
4768 then :
4769   printf %s "(cached) " >&6
4770 else $as_nop
4771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h.  */
4773
4774 int
4775 main (void)
4776 {
4777
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782   # Make sure it works both with $CC and with simple cc.
4783   # Following AC_PROG_CC_C_O, we do the test twice because some
4784   # compilers refuse to overwrite an existing .o file with -o,
4785   # though they will create one.
4786   am_cv_prog_cc_c_o=yes
4787   for am_i in 1 2; do
4788     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4789    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4790    ac_status=$?
4791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792    (exit $ac_status); } \
4793          && test -f conftest2.$ac_objext; then
4794       : OK
4795     else
4796       am_cv_prog_cc_c_o=no
4797       break
4798     fi
4799   done
4800   rm -f core conftest*
4801   unset am_i
4802 fi
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4804 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4805 if test "$am_cv_prog_cc_c_o" != yes; then
4806    # Losing compiler, so override with the script.
4807    # FIXME: It is wrong to rewrite CC.
4808    # But if we don't then we get into trouble of one sort or another.
4809    # A longer-term fix would be to have automake use am__CC in this case,
4810    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4811    CC="$am_aux_dir/compile $CC"
4812 fi
4813 ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818
4819
4820
4821 ac_header= ac_cache=
4822 for ac_item in $ac_header_c_list
4823 do
4824   if test $ac_cache; then
4825     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4826     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4827       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4828     fi
4829     ac_header= ac_cache=
4830   elif test $ac_header; then
4831     ac_cache=$ac_item
4832   else
4833     ac_header=$ac_item
4834   fi
4835 done
4836
4837
4838
4839
4840
4841
4842
4843
4844 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4845 then :
4846
4847 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4848
4849 fi
4850
4851
4852
4853
4854
4855
4856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4857 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4858 if test ${ac_cv_safe_to_define___extensions__+y}
4859 then :
4860   printf %s "(cached) " >&6
4861 else $as_nop
4862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h.  */
4864
4865 #         define __EXTENSIONS__ 1
4866           $ac_includes_default
4867 int
4868 main (void)
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"
4876 then :
4877   ac_cv_safe_to_define___extensions__=yes
4878 else $as_nop
4879   ac_cv_safe_to_define___extensions__=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 fi
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4885
4886   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4887 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4888 if test ${ac_cv_should_define__xopen_source+y}
4889 then :
4890   printf %s "(cached) " >&6
4891 else $as_nop
4892   ac_cv_should_define__xopen_source=no
4893     if test $ac_cv_header_wchar_h = yes
4894 then :
4895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897
4898           #include <wchar.h>
4899           mbstate_t x;
4900 int
4901 main (void)
4902 {
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"
4909 then :
4910
4911 else $as_nop
4912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h.  */
4914
4915             #define _XOPEN_SOURCE 500
4916             #include <wchar.h>
4917             mbstate_t x;
4918 int
4919 main (void)
4920 {
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"
4927 then :
4928   ac_cv_should_define__xopen_source=yes
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4933 fi
4934 fi
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4936 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4937
4938   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4939
4940   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4941
4942   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4943
4944   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4945
4946   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4947
4948   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4949
4950   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4951
4952   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4953
4954   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4955
4956   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4957
4958   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4959
4960   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4961
4962   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4963
4964   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4965
4966   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4967
4968   if test $ac_cv_header_minix_config_h = yes
4969 then :
4970   MINIX=yes
4971     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4972
4973     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4974
4975     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4976
4977 else $as_nop
4978   MINIX=
4979 fi
4980   if test $ac_cv_safe_to_define___extensions__ = yes
4981 then :
4982   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4983
4984 fi
4985   if test $ac_cv_should_define__xopen_source = yes
4986 then :
4987   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4988
4989 fi
4990
4991
4992
4993 case `pwd` in
4994   *\ * | *\     *)
4995     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4996 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4997 esac
4998
4999
5000
5001 macro_version='2.4.6'
5002 macro_revision='2.4.6'
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 ltmain=$ac_aux_dir/ltmain.sh
5018
5019
5020
5021   # Make sure we can run config.sub.
5022 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5023   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5024
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5026 printf %s "checking build system type... " >&6; }
5027 if test ${ac_cv_build+y}
5028 then :
5029   printf %s "(cached) " >&6
5030 else $as_nop
5031   ac_build_alias=$build_alias
5032 test "x$ac_build_alias" = x &&
5033   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5034 test "x$ac_build_alias" = x &&
5035   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5036 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5037   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5038
5039 fi
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041 printf "%s\n" "$ac_cv_build" >&6; }
5042 case $ac_cv_build in
5043 *-*-*) ;;
5044 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5045 esac
5046 build=$ac_cv_build
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_build
5049 shift
5050 build_cpu=$1
5051 build_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 build_os=$*
5056 IFS=$ac_save_IFS
5057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061 printf %s "checking host system type... " >&6; }
5062 if test ${ac_cv_host+y}
5063 then :
5064   printf %s "(cached) " >&6
5065 else $as_nop
5066   if test "x$host_alias" = x; then
5067   ac_cv_host=$ac_cv_build
5068 else
5069   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5070     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5071 fi
5072
5073 fi
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5075 printf "%s\n" "$ac_cv_host" >&6; }
5076 case $ac_cv_host in
5077 *-*-*) ;;
5078 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5079 esac
5080 host=$ac_cv_host
5081 ac_save_IFS=$IFS; IFS='-'
5082 set x $ac_cv_host
5083 shift
5084 host_cpu=$1
5085 host_vendor=$2
5086 shift; shift
5087 # Remember, the first character of IFS is used to create $*,
5088 # except with old shells:
5089 host_os=$*
5090 IFS=$ac_save_IFS
5091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5092
5093
5094 # Backslashify metacharacters that are still active within
5095 # double-quoted strings.
5096 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5097
5098 # Same as above, but do not quote variable references.
5099 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5100
5101 # Sed substitution to delay expansion of an escaped shell variable in a
5102 # double_quote_subst'ed string.
5103 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5104
5105 # Sed substitution to delay expansion of an escaped single quote.
5106 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5107
5108 # Sed substitution to avoid accidental globbing in evaled expressions
5109 no_glob_subst='s/\*/\\\*/g'
5110
5111 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5112 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5114
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5116 printf %s "checking how to print strings... " >&6; }
5117 # Test print first, because it will be a builtin if present.
5118 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5119    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5120   ECHO='print -r --'
5121 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5122   ECHO='printf %s\n'
5123 else
5124   # Use this function as a fallback that always works.
5125   func_fallback_echo ()
5126   {
5127     eval 'cat <<_LTECHO_EOF
5128 $1
5129 _LTECHO_EOF'
5130   }
5131   ECHO='func_fallback_echo'
5132 fi
5133
5134 # func_echo_all arg...
5135 # Invoke $ECHO with all args, space-separated.
5136 func_echo_all ()
5137 {
5138     $ECHO ""
5139 }
5140
5141 case $ECHO in
5142   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5143 printf "%s\n" "printf" >&6; } ;;
5144   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5145 printf "%s\n" "print -r" >&6; } ;;
5146   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5147 printf "%s\n" "cat" >&6; } ;;
5148 esac
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5164 printf %s "checking for a sed that does not truncate output... " >&6; }
5165 if test ${ac_cv_path_SED+y}
5166 then :
5167   printf %s "(cached) " >&6
5168 else $as_nop
5169             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5170      for ac_i in 1 2 3 4 5 6 7; do
5171        ac_script="$ac_script$as_nl$ac_script"
5172      done
5173      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5174      { ac_script=; unset ac_script;}
5175      if test -z "$SED"; then
5176   ac_path_SED_found=false
5177   # Loop through the user's path and test for each of PROGNAME-LIST
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   case $as_dir in #(((
5183     '') as_dir=./ ;;
5184     */) ;;
5185     *) as_dir=$as_dir/ ;;
5186   esac
5187     for ac_prog in sed gsed
5188    do
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5191       as_fn_executable_p "$ac_path_SED" || continue
5192 # Check for GNU ac_path_SED and select it if it is found.
5193   # Check for GNU $ac_path_SED
5194 case `"$ac_path_SED" --version 2>&1` in
5195 *GNU*)
5196   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5197 *)
5198   ac_count=0
5199   printf %s 0123456789 >"conftest.in"
5200   while :
5201   do
5202     cat "conftest.in" "conftest.in" >"conftest.tmp"
5203     mv "conftest.tmp" "conftest.in"
5204     cp "conftest.in" "conftest.nl"
5205     printf "%s\n" '' >> "conftest.nl"
5206     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208     as_fn_arith $ac_count + 1 && ac_count=$as_val
5209     if test $ac_count -gt ${ac_path_SED_max-0}; then
5210       # Best one so far, save it but keep looking for a better one
5211       ac_cv_path_SED="$ac_path_SED"
5212       ac_path_SED_max=$ac_count
5213     fi
5214     # 10*(2^10) chars as input seems more than enough
5215     test $ac_count -gt 10 && break
5216   done
5217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5219
5220       $ac_path_SED_found && break 3
5221     done
5222   done
5223   done
5224 IFS=$as_save_IFS
5225   if test -z "$ac_cv_path_SED"; then
5226     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5227   fi
5228 else
5229   ac_cv_path_SED=$SED
5230 fi
5231
5232 fi
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234 printf "%s\n" "$ac_cv_path_SED" >&6; }
5235  SED="$ac_cv_path_SED"
5236   rm -f conftest.sed
5237
5238 test -z "$SED" && SED=sed
5239 Xsed="$SED -e 1s/^X//"
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 printf %s "checking for grep that handles long lines and -e... " >&6; }
5253 if test ${ac_cv_path_GREP+y}
5254 then :
5255   printf %s "(cached) " >&6
5256 else $as_nop
5257   if test -z "$GREP"; then
5258   ac_path_GREP_found=false
5259   # Loop through the user's path and test for each of PROGNAME-LIST
5260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 do
5263   IFS=$as_save_IFS
5264   case $as_dir in #(((
5265     '') as_dir=./ ;;
5266     */) ;;
5267     *) as_dir=$as_dir/ ;;
5268   esac
5269     for ac_prog in grep ggrep
5270    do
5271     for ac_exec_ext in '' $ac_executable_extensions; do
5272       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5273       as_fn_executable_p "$ac_path_GREP" || continue
5274 # Check for GNU ac_path_GREP and select it if it is found.
5275   # Check for GNU $ac_path_GREP
5276 case `"$ac_path_GREP" --version 2>&1` in
5277 *GNU*)
5278   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5279 *)
5280   ac_count=0
5281   printf %s 0123456789 >"conftest.in"
5282   while :
5283   do
5284     cat "conftest.in" "conftest.in" >"conftest.tmp"
5285     mv "conftest.tmp" "conftest.in"
5286     cp "conftest.in" "conftest.nl"
5287     printf "%s\n" 'GREP' >> "conftest.nl"
5288     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5290     as_fn_arith $ac_count + 1 && ac_count=$as_val
5291     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5292       # Best one so far, save it but keep looking for a better one
5293       ac_cv_path_GREP="$ac_path_GREP"
5294       ac_path_GREP_max=$ac_count
5295     fi
5296     # 10*(2^10) chars as input seems more than enough
5297     test $ac_count -gt 10 && break
5298   done
5299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5300 esac
5301
5302       $ac_path_GREP_found && break 3
5303     done
5304   done
5305   done
5306 IFS=$as_save_IFS
5307   if test -z "$ac_cv_path_GREP"; then
5308     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5309   fi
5310 else
5311   ac_cv_path_GREP=$GREP
5312 fi
5313
5314 fi
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5316 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5317  GREP="$ac_cv_path_GREP"
5318
5319
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5321 printf %s "checking for egrep... " >&6; }
5322 if test ${ac_cv_path_EGREP+y}
5323 then :
5324   printf %s "(cached) " >&6
5325 else $as_nop
5326   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327    then ac_cv_path_EGREP="$GREP -E"
5328    else
5329      if test -z "$EGREP"; then
5330   ac_path_EGREP_found=false
5331   # Loop through the user's path and test for each of PROGNAME-LIST
5332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334 do
5335   IFS=$as_save_IFS
5336   case $as_dir in #(((
5337     '') as_dir=./ ;;
5338     */) ;;
5339     *) as_dir=$as_dir/ ;;
5340   esac
5341     for ac_prog in egrep
5342    do
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5345       as_fn_executable_p "$ac_path_EGREP" || continue
5346 # Check for GNU ac_path_EGREP and select it if it is found.
5347   # Check for GNU $ac_path_EGREP
5348 case `"$ac_path_EGREP" --version 2>&1` in
5349 *GNU*)
5350   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5351 *)
5352   ac_count=0
5353   printf %s 0123456789 >"conftest.in"
5354   while :
5355   do
5356     cat "conftest.in" "conftest.in" >"conftest.tmp"
5357     mv "conftest.tmp" "conftest.in"
5358     cp "conftest.in" "conftest.nl"
5359     printf "%s\n" 'EGREP' >> "conftest.nl"
5360     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5361     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5362     as_fn_arith $ac_count + 1 && ac_count=$as_val
5363     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5364       # Best one so far, save it but keep looking for a better one
5365       ac_cv_path_EGREP="$ac_path_EGREP"
5366       ac_path_EGREP_max=$ac_count
5367     fi
5368     # 10*(2^10) chars as input seems more than enough
5369     test $ac_count -gt 10 && break
5370   done
5371   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5372 esac
5373
5374       $ac_path_EGREP_found && break 3
5375     done
5376   done
5377   done
5378 IFS=$as_save_IFS
5379   if test -z "$ac_cv_path_EGREP"; then
5380     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5381   fi
5382 else
5383   ac_cv_path_EGREP=$EGREP
5384 fi
5385
5386    fi
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5389 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5390  EGREP="$ac_cv_path_EGREP"
5391
5392
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5394 printf %s "checking for fgrep... " >&6; }
5395 if test ${ac_cv_path_FGREP+y}
5396 then :
5397   printf %s "(cached) " >&6
5398 else $as_nop
5399   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5400    then ac_cv_path_FGREP="$GREP -F"
5401    else
5402      if test -z "$FGREP"; then
5403   ac_path_FGREP_found=false
5404   # Loop through the user's path and test for each of PROGNAME-LIST
5405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5407 do
5408   IFS=$as_save_IFS
5409   case $as_dir in #(((
5410     '') as_dir=./ ;;
5411     */) ;;
5412     *) as_dir=$as_dir/ ;;
5413   esac
5414     for ac_prog in fgrep
5415    do
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5418       as_fn_executable_p "$ac_path_FGREP" || continue
5419 # Check for GNU ac_path_FGREP and select it if it is found.
5420   # Check for GNU $ac_path_FGREP
5421 case `"$ac_path_FGREP" --version 2>&1` in
5422 *GNU*)
5423   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5424 *)
5425   ac_count=0
5426   printf %s 0123456789 >"conftest.in"
5427   while :
5428   do
5429     cat "conftest.in" "conftest.in" >"conftest.tmp"
5430     mv "conftest.tmp" "conftest.in"
5431     cp "conftest.in" "conftest.nl"
5432     printf "%s\n" 'FGREP' >> "conftest.nl"
5433     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5434     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5435     as_fn_arith $ac_count + 1 && ac_count=$as_val
5436     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5437       # Best one so far, save it but keep looking for a better one
5438       ac_cv_path_FGREP="$ac_path_FGREP"
5439       ac_path_FGREP_max=$ac_count
5440     fi
5441     # 10*(2^10) chars as input seems more than enough
5442     test $ac_count -gt 10 && break
5443   done
5444   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5445 esac
5446
5447       $ac_path_FGREP_found && break 3
5448     done
5449   done
5450   done
5451 IFS=$as_save_IFS
5452   if test -z "$ac_cv_path_FGREP"; then
5453     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5454   fi
5455 else
5456   ac_cv_path_FGREP=$FGREP
5457 fi
5458
5459    fi
5460 fi
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5462 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5463  FGREP="$ac_cv_path_FGREP"
5464
5465
5466 test -z "$GREP" && GREP=grep
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 # Check whether --with-gnu-ld was given.
5487 if test ${with_gnu_ld+y}
5488 then :
5489   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5490 else $as_nop
5491   with_gnu_ld=no
5492 fi
5493
5494 ac_prog=ld
5495 if test yes = "$GCC"; then
5496   # Check if gcc -print-prog-name=ld gives a path.
5497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5498 printf %s "checking for ld used by $CC... " >&6; }
5499   case $host in
5500   *-*-mingw*)
5501     # gcc leaves a trailing carriage return, which upsets mingw
5502     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5503   *)
5504     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5505   esac
5506   case $ac_prog in
5507     # Accept absolute paths.
5508     [\\/]* | ?:[\\/]*)
5509       re_direlt='/[^/][^/]*/\.\./'
5510       # Canonicalize the pathname of ld
5511       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5512       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5513         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5514       done
5515       test -z "$LD" && LD=$ac_prog
5516       ;;
5517   "")
5518     # If it fails, then pretend we aren't using GCC.
5519     ac_prog=ld
5520     ;;
5521   *)
5522     # If it is relative, then search for the first ld in PATH.
5523     with_gnu_ld=unknown
5524     ;;
5525   esac
5526 elif test yes = "$with_gnu_ld"; then
5527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5528 printf %s "checking for GNU ld... " >&6; }
5529 else
5530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5531 printf %s "checking for non-GNU ld... " >&6; }
5532 fi
5533 if test ${lt_cv_path_LD+y}
5534 then :
5535   printf %s "(cached) " >&6
5536 else $as_nop
5537   if test -z "$LD"; then
5538   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5539   for ac_dir in $PATH; do
5540     IFS=$lt_save_ifs
5541     test -z "$ac_dir" && ac_dir=.
5542     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5543       lt_cv_path_LD=$ac_dir/$ac_prog
5544       # Check to see if the program is GNU ld.  I'd rather use --version,
5545       # but apparently some variants of GNU ld only accept -v.
5546       # Break only if it was the GNU/non-GNU ld that we prefer.
5547       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5548       *GNU* | *'with BFD'*)
5549         test no != "$with_gnu_ld" && break
5550         ;;
5551       *)
5552         test yes != "$with_gnu_ld" && break
5553         ;;
5554       esac
5555     fi
5556   done
5557   IFS=$lt_save_ifs
5558 else
5559   lt_cv_path_LD=$LD # Let the user override the test with a path.
5560 fi
5561 fi
5562
5563 LD=$lt_cv_path_LD
5564 if test -n "$LD"; then
5565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5566 printf "%s\n" "$LD" >&6; }
5567 else
5568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 printf "%s\n" "no" >&6; }
5570 fi
5571 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5573 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5574 if test ${lt_cv_prog_gnu_ld+y}
5575 then :
5576   printf %s "(cached) " >&6
5577 else $as_nop
5578   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581   lt_cv_prog_gnu_ld=yes
5582   ;;
5583 *)
5584   lt_cv_prog_gnu_ld=no
5585   ;;
5586 esac
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if test ${lt_cv_path_NM+y}
5603 then :
5604   printf %s "(cached) " >&6
5605 else $as_nop
5606   if test -n "$NM"; then
5607   # Let the user override the test.
5608   lt_cv_path_NM=$NM
5609 else
5610   lt_nm_to_check=${ac_tool_prefix}nm
5611   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5612     lt_nm_to_check="$lt_nm_to_check nm"
5613   fi
5614   for lt_tmp_nm in $lt_nm_to_check; do
5615     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5616     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5617       IFS=$lt_save_ifs
5618       test -z "$ac_dir" && ac_dir=.
5619       tmp_nm=$ac_dir/$lt_tmp_nm
5620       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5621         # Check to see if the nm accepts a BSD-compat flag.
5622         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5623         #   nm: unknown option "B" ignored
5624         # Tru64's nm complains that /dev/null is an invalid object file
5625         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5626         case $build_os in
5627         mingw*) lt_bad_file=conftest.nm/nofile ;;
5628         *) lt_bad_file=/dev/null ;;
5629         esac
5630         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5631         *$lt_bad_file* | *'Invalid file or object type'*)
5632           lt_cv_path_NM="$tmp_nm -B"
5633           break 2
5634           ;;
5635         *)
5636           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5637           */dev/null*)
5638             lt_cv_path_NM="$tmp_nm -p"
5639             break 2
5640             ;;
5641           *)
5642             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5643             continue # so that we can try to find one that supports BSD flags
5644             ;;
5645           esac
5646           ;;
5647         esac
5648       fi
5649     done
5650     IFS=$lt_save_ifs
5651   done
5652   : ${lt_cv_path_NM=no}
5653 fi
5654 fi
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5656 printf "%s\n" "$lt_cv_path_NM" >&6; }
5657 if test no != "$lt_cv_path_NM"; then
5658   NM=$lt_cv_path_NM
5659 else
5660   # Didn't find any BSD compatible name lister, look for dumpbin.
5661   if test -n "$DUMPBIN"; then :
5662     # Let the user override the test.
5663   else
5664     if test -n "$ac_tool_prefix"; then
5665   for ac_prog in dumpbin "link -dump"
5666   do
5667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 printf %s "checking for $ac_word... " >&6; }
5671 if test ${ac_cv_prog_DUMPBIN+y}
5672 then :
5673   printf %s "(cached) " >&6
5674 else $as_nop
5675   if test -n "$DUMPBIN"; then
5676   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   case $as_dir in #(((
5683     '') as_dir=./ ;;
5684     */) ;;
5685     *) as_dir=$as_dir/ ;;
5686   esac
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5689     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5690     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694   done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 DUMPBIN=$ac_cv_prog_DUMPBIN
5700 if test -n "$DUMPBIN"; then
5701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5702 printf "%s\n" "$DUMPBIN" >&6; }
5703 else
5704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 printf "%s\n" "no" >&6; }
5706 fi
5707
5708
5709     test -n "$DUMPBIN" && break
5710   done
5711 fi
5712 if test -z "$DUMPBIN"; then
5713   ac_ct_DUMPBIN=$DUMPBIN
5714   for ac_prog in dumpbin "link -dump"
5715 do
5716   # Extract the first word of "$ac_prog", so it can be a program name with args.
5717 set dummy $ac_prog; ac_word=$2
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 printf %s "checking for $ac_word... " >&6; }
5720 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5721 then :
5722   printf %s "(cached) " >&6
5723 else $as_nop
5724   if test -n "$ac_ct_DUMPBIN"; then
5725   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   case $as_dir in #(((
5732     '') as_dir=./ ;;
5733     */) ;;
5734     *) as_dir=$as_dir/ ;;
5735   esac
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5738     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5739     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5749 if test -n "$ac_ct_DUMPBIN"; then
5750   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5751 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5752 else
5753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 printf "%s\n" "no" >&6; }
5755 fi
5756
5757
5758   test -n "$ac_ct_DUMPBIN" && break
5759 done
5760
5761   if test "x$ac_ct_DUMPBIN" = x; then
5762     DUMPBIN=":"
5763   else
5764     case $cross_compiling:$ac_tool_warned in
5765 yes:)
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768 ac_tool_warned=yes ;;
5769 esac
5770     DUMPBIN=$ac_ct_DUMPBIN
5771   fi
5772 fi
5773
5774     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5775     *COFF*)
5776       DUMPBIN="$DUMPBIN -symbols -headers"
5777       ;;
5778     *)
5779       DUMPBIN=:
5780       ;;
5781     esac
5782   fi
5783
5784   if test : != "$DUMPBIN"; then
5785     NM=$DUMPBIN
5786   fi
5787 fi
5788 test -z "$NM" && NM=nm
5789
5790
5791
5792
5793
5794
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5796 printf %s "checking the name lister ($NM) interface... " >&6; }
5797 if test ${lt_cv_nm_interface+y}
5798 then :
5799   printf %s "(cached) " >&6
5800 else $as_nop
5801   lt_cv_nm_interface="BSD nm"
5802   echo "int some_variable = 0;" > conftest.$ac_ext
5803   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5804   (eval "$ac_compile" 2>conftest.err)
5805   cat conftest.err >&5
5806   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5807   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5808   cat conftest.err >&5
5809   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5810   cat conftest.out >&5
5811   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5812     lt_cv_nm_interface="MS dumpbin"
5813   fi
5814   rm -f conftest*
5815 fi
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5817 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5820 printf %s "checking whether ln -s works... " >&6; }
5821 LN_S=$as_ln_s
5822 if test "$LN_S" = "ln -s"; then
5823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 printf "%s\n" "yes" >&6; }
5825 else
5826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5827 printf "%s\n" "no, using $LN_S" >&6; }
5828 fi
5829
5830 # find the maximum length of command line arguments
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5832 printf %s "checking the maximum length of command line arguments... " >&6; }
5833 if test ${lt_cv_sys_max_cmd_len+y}
5834 then :
5835   printf %s "(cached) " >&6
5836 else $as_nop
5837     i=0
5838   teststring=ABCD
5839
5840   case $build_os in
5841   msdosdjgpp*)
5842     # On DJGPP, this test can blow up pretty badly due to problems in libc
5843     # (any single argument exceeding 2000 bytes causes a buffer overrun
5844     # during glob expansion).  Even if it were fixed, the result of this
5845     # check would be larger than it should be.
5846     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5847     ;;
5848
5849   gnu*)
5850     # Under GNU Hurd, this test is not required because there is
5851     # no limit to the length of command line arguments.
5852     # Libtool will interpret -1 as no limit whatsoever
5853     lt_cv_sys_max_cmd_len=-1;
5854     ;;
5855
5856   cygwin* | mingw* | cegcc*)
5857     # On Win9x/ME, this test blows up -- it succeeds, but takes
5858     # about 5 minutes as the teststring grows exponentially.
5859     # Worse, since 9x/ME are not pre-emptively multitasking,
5860     # you end up with a "frozen" computer, even though with patience
5861     # the test eventually succeeds (with a max line length of 256k).
5862     # Instead, let's just punt: use the minimum linelength reported by
5863     # all of the supported platforms: 8192 (on NT/2K/XP).
5864     lt_cv_sys_max_cmd_len=8192;
5865     ;;
5866
5867   mint*)
5868     # On MiNT this can take a long time and run out of memory.
5869     lt_cv_sys_max_cmd_len=8192;
5870     ;;
5871
5872   amigaos*)
5873     # On AmigaOS with pdksh, this test takes hours, literally.
5874     # So we just punt and use a minimum line length of 8192.
5875     lt_cv_sys_max_cmd_len=8192;
5876     ;;
5877
5878   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5879     # This has been around since 386BSD, at least.  Likely further.
5880     if test -x /sbin/sysctl; then
5881       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5882     elif test -x /usr/sbin/sysctl; then
5883       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5884     else
5885       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5886     fi
5887     # And add a safety zone
5888     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5890     ;;
5891
5892   interix*)
5893     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5894     lt_cv_sys_max_cmd_len=196608
5895     ;;
5896
5897   os2*)
5898     # The test takes a long time on OS/2.
5899     lt_cv_sys_max_cmd_len=8192
5900     ;;
5901
5902   osf*)
5903     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5904     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5905     # nice to cause kernel panics so lets avoid the loop below.
5906     # First set a reasonable default.
5907     lt_cv_sys_max_cmd_len=16384
5908     #
5909     if test -x /sbin/sysconfig; then
5910       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5911         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5912       esac
5913     fi
5914     ;;
5915   sco3.2v5*)
5916     lt_cv_sys_max_cmd_len=102400
5917     ;;
5918   sysv5* | sco5v6* | sysv4.2uw2*)
5919     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5920     if test -n "$kargmax"; then
5921       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5922     else
5923       lt_cv_sys_max_cmd_len=32768
5924     fi
5925     ;;
5926   *)
5927     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5928     if test -n "$lt_cv_sys_max_cmd_len" && \
5929        test undefined != "$lt_cv_sys_max_cmd_len"; then
5930       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932     else
5933       # Make teststring a little bigger before we do anything with it.
5934       # a 1K string should be a reasonable start.
5935       for i in 1 2 3 4 5 6 7 8; do
5936         teststring=$teststring$teststring
5937       done
5938       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5939       # If test is not a shell built-in, we'll probably end up computing a
5940       # maximum length that is only half of the actual maximum length, but
5941       # we can't tell.
5942       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5943                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5944               test 17 != "$i" # 1/2 MB should be enough
5945       do
5946         i=`expr $i + 1`
5947         teststring=$teststring$teststring
5948       done
5949       # Only check the string length outside the loop.
5950       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5951       teststring=
5952       # Add a significant safety factor because C++ compilers can tack on
5953       # massive amounts of additional arguments before passing them to the
5954       # linker.  It appears as though 1/2 is a usable value.
5955       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5956     fi
5957     ;;
5958   esac
5959
5960 fi
5961
5962 if test -n "$lt_cv_sys_max_cmd_len"; then
5963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5964 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5965 else
5966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5967 printf "%s\n" "none" >&6; }
5968 fi
5969 max_cmd_len=$lt_cv_sys_max_cmd_len
5970
5971
5972
5973
5974
5975
5976 : ${CP="cp -f"}
5977 : ${MV="mv -f"}
5978 : ${RM="rm -f"}
5979
5980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5981   lt_unset=unset
5982 else
5983   lt_unset=false
5984 fi
5985
5986
5987
5988
5989
5990 # test EBCDIC or ASCII
5991 case `echo X|tr X '\101'` in
5992  A) # ASCII based system
5993     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5994   lt_SP2NL='tr \040 \012'
5995   lt_NL2SP='tr \015\012 \040\040'
5996   ;;
5997  *) # EBCDIC based system
5998   lt_SP2NL='tr \100 \n'
5999   lt_NL2SP='tr \r\n \100\100'
6000   ;;
6001 esac
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6012 printf %s "checking how to convert $build file names to $host format... " >&6; }
6013 if test ${lt_cv_to_host_file_cmd+y}
6014 then :
6015   printf %s "(cached) " >&6
6016 else $as_nop
6017   case $host in
6018   *-*-mingw* )
6019     case $build in
6020       *-*-mingw* ) # actually msys
6021         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6022         ;;
6023       *-*-cygwin* )
6024         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6025         ;;
6026       * ) # otherwise, assume *nix
6027         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6028         ;;
6029     esac
6030     ;;
6031   *-*-cygwin* )
6032     case $build in
6033       *-*-mingw* ) # actually msys
6034         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6035         ;;
6036       *-*-cygwin* )
6037         lt_cv_to_host_file_cmd=func_convert_file_noop
6038         ;;
6039       * ) # otherwise, assume *nix
6040         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6041         ;;
6042     esac
6043     ;;
6044   * ) # unhandled hosts (and "normal" native builds)
6045     lt_cv_to_host_file_cmd=func_convert_file_noop
6046     ;;
6047 esac
6048
6049 fi
6050
6051 to_host_file_cmd=$lt_cv_to_host_file_cmd
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6053 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6054
6055
6056
6057
6058
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6060 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6061 if test ${lt_cv_to_tool_file_cmd+y}
6062 then :
6063   printf %s "(cached) " >&6
6064 else $as_nop
6065   #assume ordinary cross tools, or native build.
6066 lt_cv_to_tool_file_cmd=func_convert_file_noop
6067 case $host in
6068   *-*-mingw* )
6069     case $build in
6070       *-*-mingw* ) # actually msys
6071         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6072         ;;
6073     esac
6074     ;;
6075 esac
6076
6077 fi
6078
6079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6081 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6082
6083
6084
6085
6086
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6088 printf %s "checking for $LD option to reload object files... " >&6; }
6089 if test ${lt_cv_ld_reload_flag+y}
6090 then :
6091   printf %s "(cached) " >&6
6092 else $as_nop
6093   lt_cv_ld_reload_flag='-r'
6094 fi
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6096 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6097 reload_flag=$lt_cv_ld_reload_flag
6098 case $reload_flag in
6099 "" | " "*) ;;
6100 *) reload_flag=" $reload_flag" ;;
6101 esac
6102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6103 case $host_os in
6104   cygwin* | mingw* | pw32* | cegcc*)
6105     if test yes != "$GCC"; then
6106       reload_cmds=false
6107     fi
6108     ;;
6109   darwin*)
6110     if test yes = "$GCC"; then
6111       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6112     else
6113       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6114     fi
6115     ;;
6116 esac
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 printf %s "checking for $ac_word... " >&6; }
6131 if test ${ac_cv_prog_OBJDUMP+y}
6132 then :
6133   printf %s "(cached) " >&6
6134 else $as_nop
6135   if test -n "$OBJDUMP"; then
6136   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   case $as_dir in #(((
6143     '') as_dir=./ ;;
6144     */) ;;
6145     *) as_dir=$as_dir/ ;;
6146   esac
6147     for ac_exec_ext in '' $ac_executable_extensions; do
6148   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6149     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6150     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154   done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 OBJDUMP=$ac_cv_prog_OBJDUMP
6160 if test -n "$OBJDUMP"; then
6161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6162 printf "%s\n" "$OBJDUMP" >&6; }
6163 else
6164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 printf "%s\n" "no" >&6; }
6166 fi
6167
6168
6169 fi
6170 if test -z "$ac_cv_prog_OBJDUMP"; then
6171   ac_ct_OBJDUMP=$OBJDUMP
6172   # Extract the first word of "objdump", so it can be a program name with args.
6173 set dummy objdump; ac_word=$2
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 printf %s "checking for $ac_word... " >&6; }
6176 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6177 then :
6178   printf %s "(cached) " >&6
6179 else $as_nop
6180   if test -n "$ac_ct_OBJDUMP"; then
6181   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   case $as_dir in #(((
6188     '') as_dir=./ ;;
6189     */) ;;
6190     *) as_dir=$as_dir/ ;;
6191   esac
6192     for ac_exec_ext in '' $ac_executable_extensions; do
6193   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6194     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6195     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199   done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6205 if test -n "$ac_ct_OBJDUMP"; then
6206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6207 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6208 else
6209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 printf "%s\n" "no" >&6; }
6211 fi
6212
6213   if test "x$ac_ct_OBJDUMP" = x; then
6214     OBJDUMP="false"
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222     OBJDUMP=$ac_ct_OBJDUMP
6223   fi
6224 else
6225   OBJDUMP="$ac_cv_prog_OBJDUMP"
6226 fi
6227
6228 test -z "$OBJDUMP" && OBJDUMP=objdump
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6239 printf %s "checking how to recognize dependent libraries... " >&6; }
6240 if test ${lt_cv_deplibs_check_method+y}
6241 then :
6242   printf %s "(cached) " >&6
6243 else $as_nop
6244   lt_cv_file_magic_cmd='$MAGIC_CMD'
6245 lt_cv_file_magic_test_file=
6246 lt_cv_deplibs_check_method='unknown'
6247 # Need to set the preceding variable on all platforms that support
6248 # interlibrary dependencies.
6249 # 'none' -- dependencies not supported.
6250 # 'unknown' -- same as none, but documents that we really don't know.
6251 # 'pass_all' -- all dependencies passed with no checks.
6252 # 'test_compile' -- check by making test program.
6253 # 'file_magic [[regex]]' -- check by looking for files in library path
6254 # that responds to the $file_magic_cmd with a given extended regex.
6255 # If you have 'file' or equivalent on your system and you're not sure
6256 # whether 'pass_all' will *always* work, you probably want this one.
6257
6258 case $host_os in
6259 aix[4-9]*)
6260   lt_cv_deplibs_check_method=pass_all
6261   ;;
6262
6263 beos*)
6264   lt_cv_deplibs_check_method=pass_all
6265   ;;
6266
6267 bsdi[45]*)
6268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6269   lt_cv_file_magic_cmd='/usr/bin/file -L'
6270   lt_cv_file_magic_test_file=/shlib/libc.so
6271   ;;
6272
6273 cygwin*)
6274   # func_win32_libid is a shell function defined in ltmain.sh
6275   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6276   lt_cv_file_magic_cmd='func_win32_libid'
6277   ;;
6278
6279 mingw* | pw32*)
6280   # Base MSYS/MinGW do not provide the 'file' command needed by
6281   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6282   # unless we find 'file', for example because we are cross-compiling.
6283   if ( file / ) >/dev/null 2>&1; then
6284     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285     lt_cv_file_magic_cmd='func_win32_libid'
6286   else
6287     # Keep this pattern in sync with the one in func_win32_libid.
6288     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6289     lt_cv_file_magic_cmd='$OBJDUMP -f'
6290   fi
6291   ;;
6292
6293 cegcc*)
6294   # use the weaker test based on 'objdump'. See mingw*.
6295   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6296   lt_cv_file_magic_cmd='$OBJDUMP -f'
6297   ;;
6298
6299 darwin* | rhapsody*)
6300   lt_cv_deplibs_check_method=pass_all
6301   ;;
6302
6303 freebsd* | dragonfly*)
6304   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6305     case $host_cpu in
6306     i*86 )
6307       # Not sure whether the presence of OpenBSD here was a mistake.
6308       # Let's accept both of them until this is cleared up.
6309       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6310       lt_cv_file_magic_cmd=/usr/bin/file
6311       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6312       ;;
6313     esac
6314   else
6315     lt_cv_deplibs_check_method=pass_all
6316   fi
6317   ;;
6318
6319 haiku*)
6320   lt_cv_deplibs_check_method=pass_all
6321   ;;
6322
6323 hpux10.20* | hpux11*)
6324   lt_cv_file_magic_cmd=/usr/bin/file
6325   case $host_cpu in
6326   ia64*)
6327     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6328     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6329     ;;
6330   hppa*64*)
6331     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]'
6332     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333     ;;
6334   *)
6335     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6336     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6337     ;;
6338   esac
6339   ;;
6340
6341 interix[3-9]*)
6342   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6343   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6344   ;;
6345
6346 irix5* | irix6* | nonstopux*)
6347   case $LD in
6348   *-32|*"-32 ") libmagic=32-bit;;
6349   *-n32|*"-n32 ") libmagic=N32;;
6350   *-64|*"-64 ") libmagic=64-bit;;
6351   *) libmagic=never-match;;
6352   esac
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 # This must be glibc/ELF.
6357 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 netbsd* | netbsdelf*-gnu)
6362   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6364   else
6365     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6366   fi
6367   ;;
6368
6369 newos6*)
6370   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6371   lt_cv_file_magic_cmd=/usr/bin/file
6372   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6373   ;;
6374
6375 *nto* | *qnx*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 openbsd* | bitrig*)
6380   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6381     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6382   else
6383     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6384   fi
6385   ;;
6386
6387 osf3* | osf4* | osf5*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 rdos*)
6392   lt_cv_deplibs_check_method=pass_all
6393   ;;
6394
6395 solaris*)
6396   lt_cv_deplibs_check_method=pass_all
6397   ;;
6398
6399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6400   lt_cv_deplibs_check_method=pass_all
6401   ;;
6402
6403 sysv4 | sysv4.3*)
6404   case $host_vendor in
6405   motorola)
6406     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]'
6407     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6408     ;;
6409   ncr)
6410     lt_cv_deplibs_check_method=pass_all
6411     ;;
6412   sequent)
6413     lt_cv_file_magic_cmd='/bin/file'
6414     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6415     ;;
6416   sni)
6417     lt_cv_file_magic_cmd='/bin/file'
6418     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6419     lt_cv_file_magic_test_file=/lib/libc.so
6420     ;;
6421   siemens)
6422     lt_cv_deplibs_check_method=pass_all
6423     ;;
6424   pc)
6425     lt_cv_deplibs_check_method=pass_all
6426     ;;
6427   esac
6428   ;;
6429
6430 tpf*)
6431   lt_cv_deplibs_check_method=pass_all
6432   ;;
6433 os2*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436 esac
6437
6438 fi
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6440 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6441
6442 file_magic_glob=
6443 want_nocaseglob=no
6444 if test "$build" = "$host"; then
6445   case $host_os in
6446   mingw* | pw32*)
6447     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6448       want_nocaseglob=yes
6449     else
6450       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6451     fi
6452     ;;
6453   esac
6454 fi
6455
6456 file_magic_cmd=$lt_cv_file_magic_cmd
6457 deplibs_check_method=$lt_cv_deplibs_check_method
6458 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 if test -n "$ac_tool_prefix"; then
6482   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 printf %s "checking for $ac_word... " >&6; }
6486 if test ${ac_cv_prog_DLLTOOL+y}
6487 then :
6488   printf %s "(cached) " >&6
6489 else $as_nop
6490   if test -n "$DLLTOOL"; then
6491   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   case $as_dir in #(((
6498     '') as_dir=./ ;;
6499     */) ;;
6500     *) as_dir=$as_dir/ ;;
6501   esac
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6504     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6505     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 DLLTOOL=$ac_cv_prog_DLLTOOL
6515 if test -n "$DLLTOOL"; then
6516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6517 printf "%s\n" "$DLLTOOL" >&6; }
6518 else
6519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 printf "%s\n" "no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_DLLTOOL"; then
6526   ac_ct_DLLTOOL=$DLLTOOL
6527   # Extract the first word of "dlltool", so it can be a program name with args.
6528 set dummy dlltool; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6532 then :
6533   printf %s "(cached) " >&6
6534 else $as_nop
6535   if test -n "$ac_ct_DLLTOOL"; then
6536   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   case $as_dir in #(((
6543     '') as_dir=./ ;;
6544     */) ;;
6545     *) as_dir=$as_dir/ ;;
6546   esac
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6550     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6560 if test -n "$ac_ct_DLLTOOL"; then
6561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6562 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6563 else
6564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568   if test "x$ac_ct_DLLTOOL" = x; then
6569     DLLTOOL="false"
6570   else
6571     case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577     DLLTOOL=$ac_ct_DLLTOOL
6578   fi
6579 else
6580   DLLTOOL="$ac_cv_prog_DLLTOOL"
6581 fi
6582
6583 test -z "$DLLTOOL" && DLLTOOL=dlltool
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6595 printf %s "checking how to associate runtime and link libraries... " >&6; }
6596 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6597 then :
6598   printf %s "(cached) " >&6
6599 else $as_nop
6600   lt_cv_sharedlib_from_linklib_cmd='unknown'
6601
6602 case $host_os in
6603 cygwin* | mingw* | pw32* | cegcc*)
6604   # two different shell functions defined in ltmain.sh;
6605   # decide which one to use based on capabilities of $DLLTOOL
6606   case `$DLLTOOL --help 2>&1` in
6607   *--identify-strict*)
6608     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6609     ;;
6610   *)
6611     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6612     ;;
6613   esac
6614   ;;
6615 *)
6616   # fallback: assume linklib IS sharedlib
6617   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6618   ;;
6619 esac
6620
6621 fi
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6623 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6624 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6625 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6626
6627
6628
6629
6630
6631
6632
6633 if test -n "$ac_tool_prefix"; then
6634   for ac_prog in ar
6635   do
6636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_AR+y}
6641 then :
6642   printf %s "(cached) " >&6
6643 else $as_nop
6644   if test -n "$AR"; then
6645   ac_cv_prog_AR="$AR" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   case $as_dir in #(((
6652     '') as_dir=./ ;;
6653     */) ;;
6654     *) as_dir=$as_dir/ ;;
6655   esac
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6659     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 AR=$ac_cv_prog_AR
6669 if test -n "$AR"; then
6670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671 printf "%s\n" "$AR" >&6; }
6672 else
6673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 fi
6676
6677
6678     test -n "$AR" && break
6679   done
6680 fi
6681 if test -z "$AR"; then
6682   ac_ct_AR=$AR
6683   for ac_prog in ar
6684 do
6685   # Extract the first word of "$ac_prog", so it can be a program name with args.
6686 set dummy $ac_prog; ac_word=$2
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 printf %s "checking for $ac_word... " >&6; }
6689 if test ${ac_cv_prog_ac_ct_AR+y}
6690 then :
6691   printf %s "(cached) " >&6
6692 else $as_nop
6693   if test -n "$ac_ct_AR"; then
6694   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   case $as_dir in #(((
6701     '') as_dir=./ ;;
6702     */) ;;
6703     *) as_dir=$as_dir/ ;;
6704   esac
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6707     ac_cv_prog_ac_ct_AR="$ac_prog"
6708     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6718 if test -n "$ac_ct_AR"; then
6719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6720 printf "%s\n" "$ac_ct_AR" >&6; }
6721 else
6722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 printf "%s\n" "no" >&6; }
6724 fi
6725
6726
6727   test -n "$ac_ct_AR" && break
6728 done
6729
6730   if test "x$ac_ct_AR" = x; then
6731     AR="false"
6732   else
6733     case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     AR=$ac_ct_AR
6740   fi
6741 fi
6742
6743 : ${AR=ar}
6744 : ${AR_FLAGS=cr}
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6757 printf %s "checking for archiver @FILE support... " >&6; }
6758 if test ${lt_cv_ar_at_file+y}
6759 then :
6760   printf %s "(cached) " >&6
6761 else $as_nop
6762   lt_cv_ar_at_file=no
6763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765
6766 int
6767 main (void)
6768 {
6769
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"
6775 then :
6776   echo conftest.$ac_objext > conftest.lst
6777       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6778       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6779   (eval $lt_ar_try) 2>&5
6780   ac_status=$?
6781   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782   test $ac_status = 0; }
6783       if test 0 -eq "$ac_status"; then
6784         # Ensure the archiver fails upon bogus file names.
6785         rm -f conftest.$ac_objext libconftest.a
6786         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6787   (eval $lt_ar_try) 2>&5
6788   ac_status=$?
6789   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790   test $ac_status = 0; }
6791         if test 0 -ne "$ac_status"; then
6792           lt_cv_ar_at_file=@
6793         fi
6794       fi
6795       rm -f conftest.* libconftest.a
6796
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6799
6800 fi
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6802 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6803
6804 if test no = "$lt_cv_ar_at_file"; then
6805   archiver_list_spec=
6806 else
6807   archiver_list_spec=$lt_cv_ar_at_file
6808 fi
6809
6810
6811
6812
6813
6814
6815
6816 if test -n "$ac_tool_prefix"; then
6817   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}strip; ac_word=$2
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 printf %s "checking for $ac_word... " >&6; }
6821 if test ${ac_cv_prog_STRIP+y}
6822 then :
6823   printf %s "(cached) " >&6
6824 else $as_nop
6825   if test -n "$STRIP"; then
6826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   case $as_dir in #(((
6833     '') as_dir=./ ;;
6834     */) ;;
6835     *) as_dir=$as_dir/ ;;
6836   esac
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 STRIP=$ac_cv_prog_STRIP
6850 if test -n "$STRIP"; then
6851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6852 printf "%s\n" "$STRIP" >&6; }
6853 else
6854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 printf "%s\n" "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_STRIP"; then
6861   ac_ct_STRIP=$STRIP
6862   # Extract the first word of "strip", so it can be a program name with args.
6863 set dummy strip; ac_word=$2
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 printf %s "checking for $ac_word... " >&6; }
6866 if test ${ac_cv_prog_ac_ct_STRIP+y}
6867 then :
6868   printf %s "(cached) " >&6
6869 else $as_nop
6870   if test -n "$ac_ct_STRIP"; then
6871   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   case $as_dir in #(((
6878     '') as_dir=./ ;;
6879     */) ;;
6880     *) as_dir=$as_dir/ ;;
6881   esac
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6884     ac_cv_prog_ac_ct_STRIP="strip"
6885     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6895 if test -n "$ac_ct_STRIP"; then
6896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6897 printf "%s\n" "$ac_ct_STRIP" >&6; }
6898 else
6899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 printf "%s\n" "no" >&6; }
6901 fi
6902
6903   if test "x$ac_ct_STRIP" = x; then
6904     STRIP=":"
6905   else
6906     case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     STRIP=$ac_ct_STRIP
6913   fi
6914 else
6915   STRIP="$ac_cv_prog_STRIP"
6916 fi
6917
6918 test -z "$STRIP" && STRIP=:
6919
6920
6921
6922
6923
6924
6925 if test -n "$ac_tool_prefix"; then
6926   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 printf %s "checking for $ac_word... " >&6; }
6930 if test ${ac_cv_prog_RANLIB+y}
6931 then :
6932   printf %s "(cached) " >&6
6933 else $as_nop
6934   if test -n "$RANLIB"; then
6935   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940   IFS=$as_save_IFS
6941   case $as_dir in #(((
6942     '') as_dir=./ ;;
6943     */) ;;
6944     *) as_dir=$as_dir/ ;;
6945   esac
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6948     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6949     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 RANLIB=$ac_cv_prog_RANLIB
6959 if test -n "$RANLIB"; then
6960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6961 printf "%s\n" "$RANLIB" >&6; }
6962 else
6963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 printf "%s\n" "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_RANLIB"; then
6970   ac_ct_RANLIB=$RANLIB
6971   # Extract the first word of "ranlib", so it can be a program name with args.
6972 set dummy ranlib; ac_word=$2
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 printf %s "checking for $ac_word... " >&6; }
6975 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6976 then :
6977   printf %s "(cached) " >&6
6978 else $as_nop
6979   if test -n "$ac_ct_RANLIB"; then
6980   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   case $as_dir in #(((
6987     '') as_dir=./ ;;
6988     */) ;;
6989     *) as_dir=$as_dir/ ;;
6990   esac
6991     for ac_exec_ext in '' $ac_executable_extensions; do
6992   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6993     ac_cv_prog_ac_ct_RANLIB="ranlib"
6994     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998   done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7004 if test -n "$ac_ct_RANLIB"; then
7005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7006 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7007 else
7008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 printf "%s\n" "no" >&6; }
7010 fi
7011
7012   if test "x$ac_ct_RANLIB" = x; then
7013     RANLIB=":"
7014   else
7015     case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021     RANLIB=$ac_ct_RANLIB
7022   fi
7023 else
7024   RANLIB="$ac_cv_prog_RANLIB"
7025 fi
7026
7027 test -z "$RANLIB" && RANLIB=:
7028
7029
7030
7031
7032
7033
7034 # Determine commands to create old-style static archives.
7035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7036 old_postinstall_cmds='chmod 644 $oldlib'
7037 old_postuninstall_cmds=
7038
7039 if test -n "$RANLIB"; then
7040   case $host_os in
7041   bitrig* | openbsd*)
7042     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7043     ;;
7044   *)
7045     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7046     ;;
7047   esac
7048   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7049 fi
7050
7051 case $host_os in
7052   darwin*)
7053     lock_old_archive_extraction=yes ;;
7054   *)
7055     lock_old_archive_extraction=no ;;
7056 esac
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 for ac_prog in gawk mawk nawk awk
7079 do
7080   # Extract the first word of "$ac_prog", so it can be a program name with args.
7081 set dummy $ac_prog; ac_word=$2
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 printf %s "checking for $ac_word... " >&6; }
7084 if test ${ac_cv_prog_AWK+y}
7085 then :
7086   printf %s "(cached) " >&6
7087 else $as_nop
7088   if test -n "$AWK"; then
7089   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   case $as_dir in #(((
7096     '') as_dir=./ ;;
7097     */) ;;
7098     *) as_dir=$as_dir/ ;;
7099   esac
7100     for ac_exec_ext in '' $ac_executable_extensions; do
7101   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7102     ac_cv_prog_AWK="$ac_prog"
7103     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107   done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 AWK=$ac_cv_prog_AWK
7113 if test -n "$AWK"; then
7114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7115 printf "%s\n" "$AWK" >&6; }
7116 else
7117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7119 fi
7120
7121
7122   test -n "$AWK" && break
7123 done
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143 # If no C compiler was specified, use CC.
7144 LTCC=${LTCC-"$CC"}
7145
7146 # If no C compiler flags were specified, use CFLAGS.
7147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148
7149 # Allow CC to be a program name with arguments.
7150 compiler=$CC
7151
7152
7153 # Check for command to grab the raw symbol name followed by C symbol from nm.
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7155 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7156 if test ${lt_cv_sys_global_symbol_pipe+y}
7157 then :
7158   printf %s "(cached) " >&6
7159 else $as_nop
7160
7161 # These are sane defaults that work on at least a few old systems.
7162 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7163
7164 # Character class describing NM global symbol codes.
7165 symcode='[BCDEGRST]'
7166
7167 # Regexp to match symbols that can be accessed directly from C.
7168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7169
7170 # Define system-specific variables.
7171 case $host_os in
7172 aix*)
7173   symcode='[BCDT]'
7174   ;;
7175 cygwin* | mingw* | pw32* | cegcc*)
7176   symcode='[ABCDGISTW]'
7177   ;;
7178 hpux*)
7179   if test ia64 = "$host_cpu"; then
7180     symcode='[ABCDEGRST]'
7181   fi
7182   ;;
7183 irix* | nonstopux*)
7184   symcode='[BCDEGRST]'
7185   ;;
7186 osf*)
7187   symcode='[BCDEGQRST]'
7188   ;;
7189 solaris*)
7190   symcode='[BDRT]'
7191   ;;
7192 sco3.2v5*)
7193   symcode='[DT]'
7194   ;;
7195 sysv4.2uw2*)
7196   symcode='[DT]'
7197   ;;
7198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7199   symcode='[ABDT]'
7200   ;;
7201 sysv4)
7202   symcode='[DFNSTU]'
7203   ;;
7204 esac
7205
7206 # If we're using GNU nm, then use its standard symbol codes.
7207 case `$NM -V 2>&1` in
7208 *GNU* | *'with BFD'*)
7209   symcode='[ABCDGIRSTW]' ;;
7210 esac
7211
7212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7213   # Gets list of data symbols to import.
7214   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7215   # Adjust the below global symbol transforms to fixup imported variables.
7216   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7217   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7218   lt_c_name_lib_hook="\
7219   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7220   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7221 else
7222   # Disable hooks by default.
7223   lt_cv_sys_global_symbol_to_import=
7224   lt_cdecl_hook=
7225   lt_c_name_hook=
7226   lt_c_name_lib_hook=
7227 fi
7228
7229 # Transform an extracted symbol line into a proper C declaration.
7230 # Some systems (esp. on ia64) link data and code symbols differently,
7231 # so use this general approach.
7232 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7233 $lt_cdecl_hook\
7234 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7235 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7236
7237 # Transform an extracted symbol line into symbol name and symbol address
7238 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7239 $lt_c_name_hook\
7240 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7241 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7242
7243 # Transform an extracted symbol line into symbol name with lib prefix and
7244 # symbol address.
7245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7246 $lt_c_name_lib_hook\
7247 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7248 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7249 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7250
7251 # Handle CRLF in mingw tool chain
7252 opt_cr=
7253 case $build_os in
7254 mingw*)
7255   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7256   ;;
7257 esac
7258
7259 # Try without a prefix underscore, then with it.
7260 for ac_symprfx in "" "_"; do
7261
7262   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7263   symxfrm="\\1 $ac_symprfx\\2 \\2"
7264
7265   # Write the raw and C identifiers.
7266   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7267     # Fake it for dumpbin and say T for any non-static function,
7268     # D for any global variable and I for any imported variable.
7269     # Also find C++ and __fastcall symbols from MSVC++,
7270     # which start with @ or ?.
7271     lt_cv_sys_global_symbol_pipe="$AWK '"\
7272 "     {last_section=section; section=\$ 3};"\
7273 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7274 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7275 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7276 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7277 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7278 "     \$ 0!~/External *\|/{next};"\
7279 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7280 "     {if(hide[section]) next};"\
7281 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7282 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7283 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7284 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7285 "     ' prfx=^$ac_symprfx"
7286   else
7287     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7288   fi
7289   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7290
7291   # Check to see that the pipe works correctly.
7292   pipe_works=no
7293
7294   rm -f conftest*
7295   cat > conftest.$ac_ext <<_LT_EOF
7296 #ifdef __cplusplus
7297 extern "C" {
7298 #endif
7299 char nm_test_var;
7300 void nm_test_func(void);
7301 void nm_test_func(void){}
7302 #ifdef __cplusplus
7303 }
7304 #endif
7305 int main(){nm_test_var='a';nm_test_func();return(0);}
7306 _LT_EOF
7307
7308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309   (eval $ac_compile) 2>&5
7310   ac_status=$?
7311   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312   test $ac_status = 0; }; then
7313     # Now try to grab the symbols.
7314     nlist=conftest.nm
7315     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7316     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7317       # Try sorting and uniquifying the output.
7318       if sort "$nlist" | uniq > "$nlist"T; then
7319         mv -f "$nlist"T "$nlist"
7320       else
7321         rm -f "$nlist"T
7322       fi
7323
7324       # Make sure that we snagged all the symbols we need.
7325       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7326         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7327           cat <<_LT_EOF > conftest.$ac_ext
7328 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7329 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7330 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7331    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7332 # define LT_DLSYM_CONST
7333 #elif defined __osf__
7334 /* This system does not cope well with relocations in const data.  */
7335 # define LT_DLSYM_CONST
7336 #else
7337 # define LT_DLSYM_CONST const
7338 #endif
7339
7340 #ifdef __cplusplus
7341 extern "C" {
7342 #endif
7343
7344 _LT_EOF
7345           # Now generate the symbol file.
7346           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7347
7348           cat <<_LT_EOF >> conftest.$ac_ext
7349
7350 /* The mapping between symbol names and symbols.  */
7351 LT_DLSYM_CONST struct {
7352   const char *name;
7353   void       *address;
7354 }
7355 lt__PROGRAM__LTX_preloaded_symbols[] =
7356 {
7357   { "@PROGRAM@", (void *) 0 },
7358 _LT_EOF
7359           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7360           cat <<\_LT_EOF >> conftest.$ac_ext
7361   {0, (void *) 0}
7362 };
7363
7364 /* This works around a problem in FreeBSD linker */
7365 #ifdef FREEBSD_WORKAROUND
7366 static const void *lt_preloaded_setup() {
7367   return lt__PROGRAM__LTX_preloaded_symbols;
7368 }
7369 #endif
7370
7371 #ifdef __cplusplus
7372 }
7373 #endif
7374 _LT_EOF
7375           # Now try linking the two files.
7376           mv conftest.$ac_objext conftstm.$ac_objext
7377           lt_globsym_save_LIBS=$LIBS
7378           lt_globsym_save_CFLAGS=$CFLAGS
7379           LIBS=conftstm.$ac_objext
7380           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7381           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7382   (eval $ac_link) 2>&5
7383   ac_status=$?
7384   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7386             pipe_works=yes
7387           fi
7388           LIBS=$lt_globsym_save_LIBS
7389           CFLAGS=$lt_globsym_save_CFLAGS
7390         else
7391           echo "cannot find nm_test_func in $nlist" >&5
7392         fi
7393       else
7394         echo "cannot find nm_test_var in $nlist" >&5
7395       fi
7396     else
7397       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7398     fi
7399   else
7400     echo "$progname: failed program was:" >&5
7401     cat conftest.$ac_ext >&5
7402   fi
7403   rm -rf conftest* conftst*
7404
7405   # Do not use the global_symbol_pipe unless it works.
7406   if test yes = "$pipe_works"; then
7407     break
7408   else
7409     lt_cv_sys_global_symbol_pipe=
7410   fi
7411 done
7412
7413 fi
7414
7415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7416   lt_cv_sys_global_symbol_to_cdecl=
7417 fi
7418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7420 printf "%s\n" "failed" >&6; }
7421 else
7422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7423 printf "%s\n" "ok" >&6; }
7424 fi
7425
7426 # Response file support.
7427 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7428   nm_file_list_spec='@'
7429 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7430   nm_file_list_spec='@'
7431 fi
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7470 printf %s "checking for sysroot... " >&6; }
7471
7472 # Check whether --with-sysroot was given.
7473 if test ${with_sysroot+y}
7474 then :
7475   withval=$with_sysroot;
7476 else $as_nop
7477   with_sysroot=no
7478 fi
7479
7480
7481 lt_sysroot=
7482 case $with_sysroot in #(
7483  yes)
7484    if test yes = "$GCC"; then
7485      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7486    fi
7487    ;; #(
7488  /*)
7489    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7490    ;; #(
7491  no|'')
7492    ;; #(
7493  *)
7494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7495 printf "%s\n" "$with_sysroot" >&6; }
7496    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7497    ;;
7498 esac
7499
7500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7501 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7502
7503
7504
7505
7506
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7508 printf %s "checking for a working dd... " >&6; }
7509 if test ${ac_cv_path_lt_DD+y}
7510 then :
7511   printf %s "(cached) " >&6
7512 else $as_nop
7513   printf 0123456789abcdef0123456789abcdef >conftest.i
7514 cat conftest.i conftest.i >conftest2.i
7515 : ${lt_DD:=$DD}
7516 if test -z "$lt_DD"; then
7517   ac_path_lt_DD_found=false
7518   # Loop through the user's path and test for each of PROGNAME-LIST
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   case $as_dir in #(((
7524     '') as_dir=./ ;;
7525     */) ;;
7526     *) as_dir=$as_dir/ ;;
7527   esac
7528     for ac_prog in dd
7529    do
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7532       as_fn_executable_p "$ac_path_lt_DD" || continue
7533 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7534   cmp -s conftest.i conftest.out \
7535   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7536 fi
7537       $ac_path_lt_DD_found && break 3
7538     done
7539   done
7540   done
7541 IFS=$as_save_IFS
7542   if test -z "$ac_cv_path_lt_DD"; then
7543     :
7544   fi
7545 else
7546   ac_cv_path_lt_DD=$lt_DD
7547 fi
7548
7549 rm -f conftest.i conftest2.i conftest.out
7550 fi
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7552 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7553
7554
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7556 printf %s "checking how to truncate binary pipes... " >&6; }
7557 if test ${lt_cv_truncate_bin+y}
7558 then :
7559   printf %s "(cached) " >&6
7560 else $as_nop
7561   printf 0123456789abcdef0123456789abcdef >conftest.i
7562 cat conftest.i conftest.i >conftest2.i
7563 lt_cv_truncate_bin=
7564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7565   cmp -s conftest.i conftest.out \
7566   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7567 fi
7568 rm -f conftest.i conftest2.i conftest.out
7569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7570 fi
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7572 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7573
7574
7575
7576
7577
7578
7579
7580 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7581 func_cc_basename ()
7582 {
7583     for cc_temp in $*""; do
7584       case $cc_temp in
7585         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7586         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7587         \-*) ;;
7588         *) break;;
7589       esac
7590     done
7591     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7592 }
7593
7594 # Check whether --enable-libtool-lock was given.
7595 if test ${enable_libtool_lock+y}
7596 then :
7597   enableval=$enable_libtool_lock;
7598 fi
7599
7600 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7601
7602 # Some flags need to be propagated to the compiler or linker for good
7603 # libtool support.
7604 case $host in
7605 ia64-*-hpux*)
7606   # Find out what ABI is being produced by ac_compile, and set mode
7607   # options accordingly.
7608   echo 'int i;' > conftest.$ac_ext
7609   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610   (eval $ac_compile) 2>&5
7611   ac_status=$?
7612   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613   test $ac_status = 0; }; then
7614     case `/usr/bin/file conftest.$ac_objext` in
7615       *ELF-32*)
7616         HPUX_IA64_MODE=32
7617         ;;
7618       *ELF-64*)
7619         HPUX_IA64_MODE=64
7620         ;;
7621     esac
7622   fi
7623   rm -rf conftest*
7624   ;;
7625 *-*-irix6*)
7626   # Find out what ABI is being produced by ac_compile, and set linker
7627   # options accordingly.
7628   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7629   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630   (eval $ac_compile) 2>&5
7631   ac_status=$?
7632   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633   test $ac_status = 0; }; then
7634     if test yes = "$lt_cv_prog_gnu_ld"; then
7635       case `/usr/bin/file conftest.$ac_objext` in
7636         *32-bit*)
7637           LD="${LD-ld} -melf32bsmip"
7638           ;;
7639         *N32*)
7640           LD="${LD-ld} -melf32bmipn32"
7641           ;;
7642         *64-bit*)
7643           LD="${LD-ld} -melf64bmip"
7644         ;;
7645       esac
7646     else
7647       case `/usr/bin/file conftest.$ac_objext` in
7648         *32-bit*)
7649           LD="${LD-ld} -32"
7650           ;;
7651         *N32*)
7652           LD="${LD-ld} -n32"
7653           ;;
7654         *64-bit*)
7655           LD="${LD-ld} -64"
7656           ;;
7657       esac
7658     fi
7659   fi
7660   rm -rf conftest*
7661   ;;
7662
7663 mips64*-*linux*)
7664   # Find out what ABI is being produced by ac_compile, and set linker
7665   # options accordingly.
7666   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7668   (eval $ac_compile) 2>&5
7669   ac_status=$?
7670   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671   test $ac_status = 0; }; then
7672     emul=elf
7673     case `/usr/bin/file conftest.$ac_objext` in
7674       *32-bit*)
7675         emul="${emul}32"
7676         ;;
7677       *64-bit*)
7678         emul="${emul}64"
7679         ;;
7680     esac
7681     case `/usr/bin/file conftest.$ac_objext` in
7682       *MSB*)
7683         emul="${emul}btsmip"
7684         ;;
7685       *LSB*)
7686         emul="${emul}ltsmip"
7687         ;;
7688     esac
7689     case `/usr/bin/file conftest.$ac_objext` in
7690       *N32*)
7691         emul="${emul}n32"
7692         ;;
7693     esac
7694     LD="${LD-ld} -m $emul"
7695   fi
7696   rm -rf conftest*
7697   ;;
7698
7699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7701   # Find out what ABI is being produced by ac_compile, and set linker
7702   # options accordingly.  Note that the listed cases only cover the
7703   # situations where additional linker options are needed (such as when
7704   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7705   # vice versa); the common cases where no linker options are needed do
7706   # not appear in the list.
7707   echo 'int i;' > conftest.$ac_ext
7708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709   (eval $ac_compile) 2>&5
7710   ac_status=$?
7711   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712   test $ac_status = 0; }; then
7713     case `/usr/bin/file conftest.o` in
7714       *32-bit*)
7715         case $host in
7716           x86_64-*kfreebsd*-gnu)
7717             LD="${LD-ld} -m elf_i386_fbsd"
7718             ;;
7719           x86_64-*linux*)
7720             case `/usr/bin/file conftest.o` in
7721               *x86-64*)
7722                 LD="${LD-ld} -m elf32_x86_64"
7723                 ;;
7724               *)
7725                 LD="${LD-ld} -m elf_i386"
7726                 ;;
7727             esac
7728             ;;
7729           powerpc64le-*linux*)
7730             LD="${LD-ld} -m elf32lppclinux"
7731             ;;
7732           powerpc64-*linux*)
7733             LD="${LD-ld} -m elf32ppclinux"
7734             ;;
7735           s390x-*linux*)
7736             LD="${LD-ld} -m elf_s390"
7737             ;;
7738           sparc64-*linux*)
7739             LD="${LD-ld} -m elf32_sparc"
7740             ;;
7741         esac
7742         ;;
7743       *64-bit*)
7744         case $host in
7745           x86_64-*kfreebsd*-gnu)
7746             LD="${LD-ld} -m elf_x86_64_fbsd"
7747             ;;
7748           x86_64-*linux*)
7749             LD="${LD-ld} -m elf_x86_64"
7750             ;;
7751           powerpcle-*linux*)
7752             LD="${LD-ld} -m elf64lppc"
7753             ;;
7754           powerpc-*linux*)
7755             LD="${LD-ld} -m elf64ppc"
7756             ;;
7757           s390*-*linux*|s390*-*tpf*)
7758             LD="${LD-ld} -m elf64_s390"
7759             ;;
7760           sparc*-*linux*)
7761             LD="${LD-ld} -m elf64_sparc"
7762             ;;
7763         esac
7764         ;;
7765     esac
7766   fi
7767   rm -rf conftest*
7768   ;;
7769
7770 *-*-sco3.2v5*)
7771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7772   SAVE_CFLAGS=$CFLAGS
7773   CFLAGS="$CFLAGS -belf"
7774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775 printf %s "checking whether the C compiler needs -belf... " >&6; }
7776 if test ${lt_cv_cc_needs_belf+y}
7777 then :
7778   printf %s "(cached) " >&6
7779 else $as_nop
7780   ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788
7789 int
7790 main (void)
7791 {
7792
7793   ;
7794   return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"
7798 then :
7799   lt_cv_cc_needs_belf=yes
7800 else $as_nop
7801   lt_cv_cc_needs_belf=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7804     conftest$ac_exeext conftest.$ac_ext
7805      ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811 fi
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7814   if test yes != "$lt_cv_cc_needs_belf"; then
7815     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7816     CFLAGS=$SAVE_CFLAGS
7817   fi
7818   ;;
7819 *-*solaris*)
7820   # Find out what ABI is being produced by ac_compile, and set linker
7821   # options accordingly.
7822   echo 'int i;' > conftest.$ac_ext
7823   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824   (eval $ac_compile) 2>&5
7825   ac_status=$?
7826   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827   test $ac_status = 0; }; then
7828     case `/usr/bin/file conftest.o` in
7829     *64-bit*)
7830       case $lt_cv_prog_gnu_ld in
7831       yes*)
7832         case $host in
7833         i?86-*-solaris*|x86_64-*-solaris*)
7834           LD="${LD-ld} -m elf_x86_64"
7835           ;;
7836         sparc*-*-solaris*)
7837           LD="${LD-ld} -m elf64_sparc"
7838           ;;
7839         esac
7840         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7841         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7842           LD=${LD-ld}_sol2
7843         fi
7844         ;;
7845       *)
7846         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7847           LD="${LD-ld} -64"
7848         fi
7849         ;;
7850       esac
7851       ;;
7852     esac
7853   fi
7854   rm -rf conftest*
7855   ;;
7856 esac
7857
7858 need_locks=$enable_libtool_lock
7859
7860 if test -n "$ac_tool_prefix"; then
7861   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}mt; ac_word=$2
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 printf %s "checking for $ac_word... " >&6; }
7865 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7866 then :
7867   printf %s "(cached) " >&6
7868 else $as_nop
7869   if test -n "$MANIFEST_TOOL"; then
7870   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875   IFS=$as_save_IFS
7876   case $as_dir in #(((
7877     '') as_dir=./ ;;
7878     */) ;;
7879     *) as_dir=$as_dir/ ;;
7880   esac
7881     for ac_exec_ext in '' $ac_executable_extensions; do
7882   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7883     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7884     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888   done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7894 if test -n "$MANIFEST_TOOL"; then
7895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7896 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7897 else
7898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 printf "%s\n" "no" >&6; }
7900 fi
7901
7902
7903 fi
7904 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7905   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7906   # Extract the first word of "mt", so it can be a program name with args.
7907 set dummy mt; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7911 then :
7912   printf %s "(cached) " >&6
7913 else $as_nop
7914   if test -n "$ac_ct_MANIFEST_TOOL"; then
7915   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   case $as_dir in #(((
7922     '') as_dir=./ ;;
7923     */) ;;
7924     *) as_dir=$as_dir/ ;;
7925   esac
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7929     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933   done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7939 if test -n "$ac_ct_MANIFEST_TOOL"; then
7940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7941 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7942 else
7943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7948     MANIFEST_TOOL=":"
7949   else
7950     case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7957   fi
7958 else
7959   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7960 fi
7961
7962 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7964 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7965 if test ${lt_cv_path_mainfest_tool+y}
7966 then :
7967   printf %s "(cached) " >&6
7968 else $as_nop
7969   lt_cv_path_mainfest_tool=no
7970   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7971   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7972   cat conftest.err >&5
7973   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7974     lt_cv_path_mainfest_tool=yes
7975   fi
7976   rm -f conftest*
7977 fi
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7979 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7980 if test yes != "$lt_cv_path_mainfest_tool"; then
7981   MANIFEST_TOOL=:
7982 fi
7983
7984
7985
7986
7987
7988
7989   case $host_os in
7990     rhapsody* | darwin*)
7991     if test -n "$ac_tool_prefix"; then
7992   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 printf %s "checking for $ac_word... " >&6; }
7996 if test ${ac_cv_prog_DSYMUTIL+y}
7997 then :
7998   printf %s "(cached) " >&6
7999 else $as_nop
8000   if test -n "$DSYMUTIL"; then
8001   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   case $as_dir in #(((
8008     '') as_dir=./ ;;
8009     */) ;;
8010     *) as_dir=$as_dir/ ;;
8011   esac
8012     for ac_exec_ext in '' $ac_executable_extensions; do
8013   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8014     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8015     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019   done
8020 IFS=$as_save_IFS
8021
8022 fi
8023 fi
8024 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8025 if test -n "$DSYMUTIL"; then
8026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8027 printf "%s\n" "$DSYMUTIL" >&6; }
8028 else
8029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 printf "%s\n" "no" >&6; }
8031 fi
8032
8033
8034 fi
8035 if test -z "$ac_cv_prog_DSYMUTIL"; then
8036   ac_ct_DSYMUTIL=$DSYMUTIL
8037   # Extract the first word of "dsymutil", so it can be a program name with args.
8038 set dummy dsymutil; ac_word=$2
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 printf %s "checking for $ac_word... " >&6; }
8041 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8042 then :
8043   printf %s "(cached) " >&6
8044 else $as_nop
8045   if test -n "$ac_ct_DSYMUTIL"; then
8046   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   case $as_dir in #(((
8053     '') as_dir=./ ;;
8054     */) ;;
8055     *) as_dir=$as_dir/ ;;
8056   esac
8057     for ac_exec_ext in '' $ac_executable_extensions; do
8058   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8059     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8060     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8061     break 2
8062   fi
8063 done
8064   done
8065 IFS=$as_save_IFS
8066
8067 fi
8068 fi
8069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8070 if test -n "$ac_ct_DSYMUTIL"; then
8071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8072 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8073 else
8074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 printf "%s\n" "no" >&6; }
8076 fi
8077
8078   if test "x$ac_ct_DSYMUTIL" = x; then
8079     DSYMUTIL=":"
8080   else
8081     case $cross_compiling:$ac_tool_warned in
8082 yes:)
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8086 esac
8087     DSYMUTIL=$ac_ct_DSYMUTIL
8088   fi
8089 else
8090   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8091 fi
8092
8093     if test -n "$ac_tool_prefix"; then
8094   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 printf %s "checking for $ac_word... " >&6; }
8098 if test ${ac_cv_prog_NMEDIT+y}
8099 then :
8100   printf %s "(cached) " >&6
8101 else $as_nop
8102   if test -n "$NMEDIT"; then
8103   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108   IFS=$as_save_IFS
8109   case $as_dir in #(((
8110     '') as_dir=./ ;;
8111     */) ;;
8112     *) as_dir=$as_dir/ ;;
8113   esac
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8116     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8117     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 NMEDIT=$ac_cv_prog_NMEDIT
8127 if test -n "$NMEDIT"; then
8128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8129 printf "%s\n" "$NMEDIT" >&6; }
8130 else
8131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 printf "%s\n" "no" >&6; }
8133 fi
8134
8135
8136 fi
8137 if test -z "$ac_cv_prog_NMEDIT"; then
8138   ac_ct_NMEDIT=$NMEDIT
8139   # Extract the first word of "nmedit", so it can be a program name with args.
8140 set dummy nmedit; ac_word=$2
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 printf %s "checking for $ac_word... " >&6; }
8143 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8144 then :
8145   printf %s "(cached) " >&6
8146 else $as_nop
8147   if test -n "$ac_ct_NMEDIT"; then
8148   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   case $as_dir in #(((
8155     '') as_dir=./ ;;
8156     */) ;;
8157     *) as_dir=$as_dir/ ;;
8158   esac
8159     for ac_exec_ext in '' $ac_executable_extensions; do
8160   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8161     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8162     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8163     break 2
8164   fi
8165 done
8166   done
8167 IFS=$as_save_IFS
8168
8169 fi
8170 fi
8171 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8172 if test -n "$ac_ct_NMEDIT"; then
8173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8174 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8175 else
8176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 printf "%s\n" "no" >&6; }
8178 fi
8179
8180   if test "x$ac_ct_NMEDIT" = x; then
8181     NMEDIT=":"
8182   else
8183     case $cross_compiling:$ac_tool_warned in
8184 yes:)
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8187 ac_tool_warned=yes ;;
8188 esac
8189     NMEDIT=$ac_ct_NMEDIT
8190   fi
8191 else
8192   NMEDIT="$ac_cv_prog_NMEDIT"
8193 fi
8194
8195     if test -n "$ac_tool_prefix"; then
8196   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8197 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 printf %s "checking for $ac_word... " >&6; }
8200 if test ${ac_cv_prog_LIPO+y}
8201 then :
8202   printf %s "(cached) " >&6
8203 else $as_nop
8204   if test -n "$LIPO"; then
8205   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210   IFS=$as_save_IFS
8211   case $as_dir in #(((
8212     '') as_dir=./ ;;
8213     */) ;;
8214     *) as_dir=$as_dir/ ;;
8215   esac
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8219     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 LIPO=$ac_cv_prog_LIPO
8229 if test -n "$LIPO"; then
8230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8231 printf "%s\n" "$LIPO" >&6; }
8232 else
8233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 printf "%s\n" "no" >&6; }
8235 fi
8236
8237
8238 fi
8239 if test -z "$ac_cv_prog_LIPO"; then
8240   ac_ct_LIPO=$LIPO
8241   # Extract the first word of "lipo", so it can be a program name with args.
8242 set dummy lipo; ac_word=$2
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 printf %s "checking for $ac_word... " >&6; }
8245 if test ${ac_cv_prog_ac_ct_LIPO+y}
8246 then :
8247   printf %s "(cached) " >&6
8248 else $as_nop
8249   if test -n "$ac_ct_LIPO"; then
8250   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8251 else
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8254 do
8255   IFS=$as_save_IFS
8256   case $as_dir in #(((
8257     '') as_dir=./ ;;
8258     */) ;;
8259     *) as_dir=$as_dir/ ;;
8260   esac
8261     for ac_exec_ext in '' $ac_executable_extensions; do
8262   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8263     ac_cv_prog_ac_ct_LIPO="lipo"
8264     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8265     break 2
8266   fi
8267 done
8268   done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8274 if test -n "$ac_ct_LIPO"; then
8275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8276 printf "%s\n" "$ac_ct_LIPO" >&6; }
8277 else
8278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 printf "%s\n" "no" >&6; }
8280 fi
8281
8282   if test "x$ac_ct_LIPO" = x; then
8283     LIPO=":"
8284   else
8285     case $cross_compiling:$ac_tool_warned in
8286 yes:)
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289 ac_tool_warned=yes ;;
8290 esac
8291     LIPO=$ac_ct_LIPO
8292   fi
8293 else
8294   LIPO="$ac_cv_prog_LIPO"
8295 fi
8296
8297     if test -n "$ac_tool_prefix"; then
8298   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}otool; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_OTOOL+y}
8303 then :
8304   printf %s "(cached) " >&6
8305 else $as_nop
8306   if test -n "$OTOOL"; then
8307   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   case $as_dir in #(((
8314     '') as_dir=./ ;;
8315     */) ;;
8316     *) as_dir=$as_dir/ ;;
8317   esac
8318     for ac_exec_ext in '' $ac_executable_extensions; do
8319   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8321     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325   done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 OTOOL=$ac_cv_prog_OTOOL
8331 if test -n "$OTOOL"; then
8332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8333 printf "%s\n" "$OTOOL" >&6; }
8334 else
8335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8337 fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_OTOOL"; then
8342   ac_ct_OTOOL=$OTOOL
8343   # Extract the first word of "otool", so it can be a program name with args.
8344 set dummy otool; ac_word=$2
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 printf %s "checking for $ac_word... " >&6; }
8347 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8348 then :
8349   printf %s "(cached) " >&6
8350 else $as_nop
8351   if test -n "$ac_ct_OTOOL"; then
8352   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   case $as_dir in #(((
8359     '') as_dir=./ ;;
8360     */) ;;
8361     *) as_dir=$as_dir/ ;;
8362   esac
8363     for ac_exec_ext in '' $ac_executable_extensions; do
8364   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8365     ac_cv_prog_ac_ct_OTOOL="otool"
8366     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8367     break 2
8368   fi
8369 done
8370   done
8371 IFS=$as_save_IFS
8372
8373 fi
8374 fi
8375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8376 if test -n "$ac_ct_OTOOL"; then
8377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8378 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8379 else
8380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 printf "%s\n" "no" >&6; }
8382 fi
8383
8384   if test "x$ac_ct_OTOOL" = x; then
8385     OTOOL=":"
8386   else
8387     case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393     OTOOL=$ac_ct_OTOOL
8394   fi
8395 else
8396   OTOOL="$ac_cv_prog_OTOOL"
8397 fi
8398
8399     if test -n "$ac_tool_prefix"; then
8400   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 printf %s "checking for $ac_word... " >&6; }
8404 if test ${ac_cv_prog_OTOOL64+y}
8405 then :
8406   printf %s "(cached) " >&6
8407 else $as_nop
8408   if test -n "$OTOOL64"; then
8409   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   case $as_dir in #(((
8416     '') as_dir=./ ;;
8417     */) ;;
8418     *) as_dir=$as_dir/ ;;
8419   esac
8420     for ac_exec_ext in '' $ac_executable_extensions; do
8421   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8422     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8423     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427   done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 OTOOL64=$ac_cv_prog_OTOOL64
8433 if test -n "$OTOOL64"; then
8434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8435 printf "%s\n" "$OTOOL64" >&6; }
8436 else
8437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 printf "%s\n" "no" >&6; }
8439 fi
8440
8441
8442 fi
8443 if test -z "$ac_cv_prog_OTOOL64"; then
8444   ac_ct_OTOOL64=$OTOOL64
8445   # Extract the first word of "otool64", so it can be a program name with args.
8446 set dummy otool64; ac_word=$2
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 printf %s "checking for $ac_word... " >&6; }
8449 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8450 then :
8451   printf %s "(cached) " >&6
8452 else $as_nop
8453   if test -n "$ac_ct_OTOOL64"; then
8454   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   case $as_dir in #(((
8461     '') as_dir=./ ;;
8462     */) ;;
8463     *) as_dir=$as_dir/ ;;
8464   esac
8465     for ac_exec_ext in '' $ac_executable_extensions; do
8466   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8467     ac_cv_prog_ac_ct_OTOOL64="otool64"
8468     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472   done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8478 if test -n "$ac_ct_OTOOL64"; then
8479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8480 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8481 else
8482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 printf "%s\n" "no" >&6; }
8484 fi
8485
8486   if test "x$ac_ct_OTOOL64" = x; then
8487     OTOOL64=":"
8488   else
8489     case $cross_compiling:$ac_tool_warned in
8490 yes:)
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned=yes ;;
8494 esac
8495     OTOOL64=$ac_ct_OTOOL64
8496   fi
8497 else
8498   OTOOL64="$ac_cv_prog_OTOOL64"
8499 fi
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8528 printf %s "checking for -single_module linker flag... " >&6; }
8529 if test ${lt_cv_apple_cc_single_mod+y}
8530 then :
8531   printf %s "(cached) " >&6
8532 else $as_nop
8533   lt_cv_apple_cc_single_mod=no
8534       if test -z "$LT_MULTI_MODULE"; then
8535         # By default we will add the -single_module flag. You can override
8536         # by either setting the environment variable LT_MULTI_MODULE
8537         # non-empty at configure time, or by adding -multi_module to the
8538         # link flags.
8539         rm -rf libconftest.dylib*
8540         echo "int foo(void){return 1;}" > conftest.c
8541         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8542 -dynamiclib -Wl,-single_module conftest.c" >&5
8543         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8544           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8545         _lt_result=$?
8546         # If there is a non-empty error log, and "single_module"
8547         # appears in it, assume the flag caused a linker warning
8548         if test -s conftest.err && $GREP single_module conftest.err; then
8549           cat conftest.err >&5
8550         # Otherwise, if the output was created with a 0 exit code from
8551         # the compiler, it worked.
8552         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8553           lt_cv_apple_cc_single_mod=yes
8554         else
8555           cat conftest.err >&5
8556         fi
8557         rm -rf libconftest.dylib*
8558         rm -f conftest.*
8559       fi
8560 fi
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8562 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8563
8564     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8565 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8566 if test ${lt_cv_ld_exported_symbols_list+y}
8567 then :
8568   printf %s "(cached) " >&6
8569 else $as_nop
8570   lt_cv_ld_exported_symbols_list=no
8571       save_LDFLAGS=$LDFLAGS
8572       echo "_main" > conftest.sym
8573       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h.  */
8576
8577 int
8578 main (void)
8579 {
8580
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"
8586 then :
8587   lt_cv_ld_exported_symbols_list=yes
8588 else $as_nop
8589   lt_cv_ld_exported_symbols_list=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8592     conftest$ac_exeext conftest.$ac_ext
8593         LDFLAGS=$save_LDFLAGS
8594
8595 fi
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8597 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8598
8599     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8600 printf %s "checking for -force_load linker flag... " >&6; }
8601 if test ${lt_cv_ld_force_load+y}
8602 then :
8603   printf %s "(cached) " >&6
8604 else $as_nop
8605   lt_cv_ld_force_load=no
8606       cat > conftest.c << _LT_EOF
8607 int forced_loaded() { return 2;}
8608 _LT_EOF
8609       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8610       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8611       echo "$AR cr libconftest.a conftest.o" >&5
8612       $AR cr libconftest.a conftest.o 2>&5
8613       echo "$RANLIB libconftest.a" >&5
8614       $RANLIB libconftest.a 2>&5
8615       cat > conftest.c << _LT_EOF
8616 int main() { return 0;}
8617 _LT_EOF
8618       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8619       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8620       _lt_result=$?
8621       if test -s conftest.err && $GREP force_load conftest.err; then
8622         cat conftest.err >&5
8623       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8624         lt_cv_ld_force_load=yes
8625       else
8626         cat conftest.err >&5
8627       fi
8628         rm -f conftest.err libconftest.a conftest conftest.c
8629         rm -rf conftest.dSYM
8630
8631 fi
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8633 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8634     case $host_os in
8635     rhapsody* | darwin1.[012])
8636       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8637     darwin1.*)
8638       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8639     darwin*) # darwin 5.x on
8640       # if running on 10.5 or later, the deployment target defaults
8641       # to the OS version, if on x86, and 10.4, the deployment
8642       # target defaults to 10.4. Don't you love it?
8643       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8644         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8645           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8646         10.[012][,.]*)
8647           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8648         10.*|11.*)
8649           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8650       esac
8651     ;;
8652   esac
8653     if test yes = "$lt_cv_apple_cc_single_mod"; then
8654       _lt_dar_single_mod='$single_module'
8655     fi
8656     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8657       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8658     else
8659       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8660     fi
8661     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8662       _lt_dsymutil='~$DSYMUTIL $lib || :'
8663     else
8664       _lt_dsymutil=
8665     fi
8666     ;;
8667   esac
8668
8669 # func_munge_path_list VARIABLE PATH
8670 # -----------------------------------
8671 # VARIABLE is name of variable containing _space_ separated list of
8672 # directories to be munged by the contents of PATH, which is string
8673 # having a format:
8674 # "DIR[:DIR]:"
8675 #       string "DIR[ DIR]" will be prepended to VARIABLE
8676 # ":DIR[:DIR]"
8677 #       string "DIR[ DIR]" will be appended to VARIABLE
8678 # "DIRP[:DIRP]::[DIRA:]DIRA"
8679 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8680 #       "DIRA[ DIRA]" will be appended to VARIABLE
8681 # "DIR[:DIR]"
8682 #       VARIABLE will be replaced by "DIR[ DIR]"
8683 func_munge_path_list ()
8684 {
8685     case x$2 in
8686     x)
8687         ;;
8688     *:)
8689         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8690         ;;
8691     x:*)
8692         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8693         ;;
8694     *::*)
8695         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8696         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8697         ;;
8698     *)
8699         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8700         ;;
8701     esac
8702 }
8703
8704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8705 "
8706 if test "x$ac_cv_header_dlfcn_h" = xyes
8707 then :
8708   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8709
8710 fi
8711
8712
8713
8714
8715
8716 # Set options
8717
8718
8719
8720         enable_dlopen=no
8721
8722
8723   enable_win32_dll=no
8724
8725
8726             # Check whether --enable-shared was given.
8727 if test ${enable_shared+y}
8728 then :
8729   enableval=$enable_shared; p=${PACKAGE-default}
8730     case $enableval in
8731     yes) enable_shared=yes ;;
8732     no) enable_shared=no ;;
8733     *)
8734       enable_shared=no
8735       # Look at the argument we got.  We use all the common list separators.
8736       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8737       for pkg in $enableval; do
8738         IFS=$lt_save_ifs
8739         if test "X$pkg" = "X$p"; then
8740           enable_shared=yes
8741         fi
8742       done
8743       IFS=$lt_save_ifs
8744       ;;
8745     esac
8746 else $as_nop
8747   enable_shared=yes
8748 fi
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758   # Check whether --enable-static was given.
8759 if test ${enable_static+y}
8760 then :
8761   enableval=$enable_static; p=${PACKAGE-default}
8762     case $enableval in
8763     yes) enable_static=yes ;;
8764     no) enable_static=no ;;
8765     *)
8766      enable_static=no
8767       # Look at the argument we got.  We use all the common list separators.
8768       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769       for pkg in $enableval; do
8770         IFS=$lt_save_ifs
8771         if test "X$pkg" = "X$p"; then
8772           enable_static=yes
8773         fi
8774       done
8775       IFS=$lt_save_ifs
8776       ;;
8777     esac
8778 else $as_nop
8779   enable_static=yes
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 # Check whether --with-pic was given.
8792 if test ${with_pic+y}
8793 then :
8794   withval=$with_pic; lt_p=${PACKAGE-default}
8795     case $withval in
8796     yes|no) pic_mode=$withval ;;
8797     *)
8798       pic_mode=default
8799       # Look at the argument we got.  We use all the common list separators.
8800       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8801       for lt_pkg in $withval; do
8802         IFS=$lt_save_ifs
8803         if test "X$lt_pkg" = "X$lt_p"; then
8804           pic_mode=yes
8805         fi
8806       done
8807       IFS=$lt_save_ifs
8808       ;;
8809     esac
8810 else $as_nop
8811   pic_mode=default
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820
8821   # Check whether --enable-fast-install was given.
8822 if test ${enable_fast_install+y}
8823 then :
8824   enableval=$enable_fast_install; p=${PACKAGE-default}
8825     case $enableval in
8826     yes) enable_fast_install=yes ;;
8827     no) enable_fast_install=no ;;
8828     *)
8829       enable_fast_install=no
8830       # Look at the argument we got.  We use all the common list separators.
8831       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8832       for pkg in $enableval; do
8833         IFS=$lt_save_ifs
8834         if test "X$pkg" = "X$p"; then
8835           enable_fast_install=yes
8836         fi
8837       done
8838       IFS=$lt_save_ifs
8839       ;;
8840     esac
8841 else $as_nop
8842   enable_fast_install=yes
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852   shared_archive_member_spec=
8853 case $host,$enable_shared in
8854 power*-*-aix[5-9]*,yes)
8855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8856 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8857
8858 # Check whether --with-aix-soname was given.
8859 if test ${with_aix_soname+y}
8860 then :
8861   withval=$with_aix_soname; case $withval in
8862     aix|svr4|both)
8863       ;;
8864     *)
8865       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8866       ;;
8867     esac
8868     lt_cv_with_aix_soname=$with_aix_soname
8869 else $as_nop
8870   if test ${lt_cv_with_aix_soname+y}
8871 then :
8872   printf %s "(cached) " >&6
8873 else $as_nop
8874   lt_cv_with_aix_soname=aix
8875 fi
8876
8877     with_aix_soname=$lt_cv_with_aix_soname
8878 fi
8879
8880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8881 printf "%s\n" "$with_aix_soname" >&6; }
8882   if test aix != "$with_aix_soname"; then
8883     # For the AIX way of multilib, we name the shared archive member
8884     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8885     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8886     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8887     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8888     if test 64 = "${OBJECT_MODE-32}"; then
8889       shared_archive_member_spec=shr_64
8890     else
8891       shared_archive_member_spec=shr
8892     fi
8893   fi
8894   ;;
8895 *)
8896   with_aix_soname=aix
8897   ;;
8898 esac
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS=$ltmain
8911
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 test -z "$LN_S" && LN_S="ln -s"
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 if test -n "${ZSH_VERSION+set}"; then
8960    setopt NO_GLOB_SUBST
8961 fi
8962
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8964 printf %s "checking for objdir... " >&6; }
8965 if test ${lt_cv_objdir+y}
8966 then :
8967   printf %s "(cached) " >&6
8968 else $as_nop
8969   rm -f .libs 2>/dev/null
8970 mkdir .libs 2>/dev/null
8971 if test -d .libs; then
8972   lt_cv_objdir=.libs
8973 else
8974   # MS-DOS does not allow filenames that begin with a dot.
8975   lt_cv_objdir=_libs
8976 fi
8977 rmdir .libs 2>/dev/null
8978 fi
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8980 printf "%s\n" "$lt_cv_objdir" >&6; }
8981 objdir=$lt_cv_objdir
8982
8983
8984
8985
8986
8987 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8988
8989
8990
8991
8992 case $host_os in
8993 aix3*)
8994   # AIX sometimes has problems with the GCC collect2 program.  For some
8995   # reason, if we set the COLLECT_NAMES environment variable, the problems
8996   # vanish in a puff of smoke.
8997   if test set != "${COLLECT_NAMES+set}"; then
8998     COLLECT_NAMES=
8999     export COLLECT_NAMES
9000   fi
9001   ;;
9002 esac
9003
9004 # Global variables:
9005 ofile=libtool
9006 can_build_shared=yes
9007
9008 # All known linkers require a '.a' archive for static linking (except MSVC,
9009 # which needs '.lib').
9010 libext=a
9011
9012 with_gnu_ld=$lt_cv_prog_gnu_ld
9013
9014 old_CC=$CC
9015 old_CFLAGS=$CFLAGS
9016
9017 # Set sane defaults for various variables
9018 test -z "$CC" && CC=cc
9019 test -z "$LTCC" && LTCC=$CC
9020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9021 test -z "$LD" && LD=ld
9022 test -z "$ac_objext" && ac_objext=o
9023
9024 func_cc_basename $compiler
9025 cc_basename=$func_cc_basename_result
9026
9027
9028 # Only perform the check for file, if the check method requires it
9029 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9030 case $deplibs_check_method in
9031 file_magic*)
9032   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9033     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9034 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9035 if test ${lt_cv_path_MAGIC_CMD+y}
9036 then :
9037   printf %s "(cached) " >&6
9038 else $as_nop
9039   case $MAGIC_CMD in
9040 [\\/*] |  ?:[\\/]*)
9041   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9042   ;;
9043 *)
9044   lt_save_MAGIC_CMD=$MAGIC_CMD
9045   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9046   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047   for ac_dir in $ac_dummy; do
9048     IFS=$lt_save_ifs
9049     test -z "$ac_dir" && ac_dir=.
9050     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9051       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9052       if test -n "$file_magic_test_file"; then
9053         case $deplibs_check_method in
9054         "file_magic "*)
9055           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058             $EGREP "$file_magic_regex" > /dev/null; then
9059             :
9060           else
9061             cat <<_LT_EOF 1>&2
9062
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such.  This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem.  Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9071
9072 _LT_EOF
9073           fi ;;
9074         esac
9075       fi
9076       break
9077     fi
9078   done
9079   IFS=$lt_save_ifs
9080   MAGIC_CMD=$lt_save_MAGIC_CMD
9081   ;;
9082 esac
9083 fi
9084
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if test -n "$MAGIC_CMD"; then
9087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 printf "%s\n" "$MAGIC_CMD" >&6; }
9089 else
9090   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9092 fi
9093
9094
9095
9096
9097
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099   if test -n "$ac_tool_prefix"; then
9100     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 printf %s "checking for file... " >&6; }
9102 if test ${lt_cv_path_MAGIC_CMD+y}
9103 then :
9104   printf %s "(cached) " >&6
9105 else $as_nop
9106   case $MAGIC_CMD in
9107 [\\/*] |  ?:[\\/]*)
9108   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9109   ;;
9110 *)
9111   lt_save_MAGIC_CMD=$MAGIC_CMD
9112   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9113   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9114   for ac_dir in $ac_dummy; do
9115     IFS=$lt_save_ifs
9116     test -z "$ac_dir" && ac_dir=.
9117     if test -f "$ac_dir/file"; then
9118       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9119       if test -n "$file_magic_test_file"; then
9120         case $deplibs_check_method in
9121         "file_magic "*)
9122           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9123           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9125             $EGREP "$file_magic_regex" > /dev/null; then
9126             :
9127           else
9128             cat <<_LT_EOF 1>&2
9129
9130 *** Warning: the command libtool uses to detect shared libraries,
9131 *** $file_magic_cmd, produces output that libtool cannot recognize.
9132 *** The result is that libtool may fail to recognize shared libraries
9133 *** as such.  This will affect the creation of libtool libraries that
9134 *** depend on shared libraries, but programs linked with such libtool
9135 *** libraries will work regardless of this problem.  Nevertheless, you
9136 *** may want to report the problem to your system manager and/or to
9137 *** bug-libtool@gnu.org
9138
9139 _LT_EOF
9140           fi ;;
9141         esac
9142       fi
9143       break
9144     fi
9145   done
9146   IFS=$lt_save_ifs
9147   MAGIC_CMD=$lt_save_MAGIC_CMD
9148   ;;
9149 esac
9150 fi
9151
9152 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9153 if test -n "$MAGIC_CMD"; then
9154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9155 printf "%s\n" "$MAGIC_CMD" >&6; }
9156 else
9157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 printf "%s\n" "no" >&6; }
9159 fi
9160
9161
9162   else
9163     MAGIC_CMD=:
9164   fi
9165 fi
9166
9167   fi
9168   ;;
9169 esac
9170
9171 # Use C for the default configuration in the libtool script
9172
9173 lt_save_CC=$CC
9174 ac_ext=c
9175 ac_cpp='$CPP $CPPFLAGS'
9176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9179
9180
9181 # Source file extension for C test sources.
9182 ac_ext=c
9183
9184 # Object file extension for compiled C test sources.
9185 objext=o
9186 objext=$objext
9187
9188 # Code to be used in simple compile tests
9189 lt_simple_compile_test_code="int some_variable = 0;"
9190
9191 # Code to be used in simple link tests
9192 lt_simple_link_test_code='int main(){return(0);}'
9193
9194
9195
9196
9197
9198
9199
9200 # If no C compiler was specified, use CC.
9201 LTCC=${LTCC-"$CC"}
9202
9203 # If no C compiler flags were specified, use CFLAGS.
9204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9205
9206 # Allow CC to be a program name with arguments.
9207 compiler=$CC
9208
9209 # Save the default compiler, since it gets overwritten when the other
9210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9211 compiler_DEFAULT=$CC
9212
9213 # save warnings/boilerplate of simple test code
9214 ac_outfile=conftest.$ac_objext
9215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9217 _lt_compiler_boilerplate=`cat conftest.err`
9218 $RM conftest*
9219
9220 ac_outfile=conftest.$ac_objext
9221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9223 _lt_linker_boilerplate=`cat conftest.err`
9224 $RM -r conftest*
9225
9226
9227 ## CAVEAT EMPTOR:
9228 ## There is no encapsulation within the following macros, do not change
9229 ## the running order or otherwise move them around unless you know exactly
9230 ## what you are doing...
9231 if test -n "$compiler"; then
9232
9233 lt_prog_compiler_no_builtin_flag=
9234
9235 if test yes = "$GCC"; then
9236   case $cc_basename in
9237   nvcc*)
9238     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9239   *)
9240     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9241   esac
9242
9243   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9244 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9245 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9246 then :
9247   printf %s "(cached) " >&6
9248 else $as_nop
9249   lt_cv_prog_compiler_rtti_exceptions=no
9250    ac_outfile=conftest.$ac_objext
9251    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9252    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9253    # Insert the option either (1) after the last *FLAGS variable, or
9254    # (2) before a word containing "conftest.", or (3) at the end.
9255    # Note that $ac_compile itself does not contain backslashes and begins
9256    # with a dollar sign (not a hyphen), so the echo should work correctly.
9257    # The option is referenced via a variable to avoid confusing sed.
9258    lt_compile=`echo "$ac_compile" | $SED \
9259    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261    -e 's:$: $lt_compiler_flag:'`
9262    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263    (eval "$lt_compile" 2>conftest.err)
9264    ac_status=$?
9265    cat conftest.err >&5
9266    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267    if (exit $ac_status) && test -s "$ac_outfile"; then
9268      # The compiler can only warn and ignore the option if not recognized
9269      # So say no if there are warnings other than the usual output.
9270      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9271      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273        lt_cv_prog_compiler_rtti_exceptions=yes
9274      fi
9275    fi
9276    $RM conftest*
9277
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9281
9282 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9283     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9284 else
9285     :
9286 fi
9287
9288 fi
9289
9290
9291
9292
9293
9294
9295   lt_prog_compiler_wl=
9296 lt_prog_compiler_pic=
9297 lt_prog_compiler_static=
9298
9299
9300   if test yes = "$GCC"; then
9301     lt_prog_compiler_wl='-Wl,'
9302     lt_prog_compiler_static='-static'
9303
9304     case $host_os in
9305       aix*)
9306       # All AIX code is PIC.
9307       if test ia64 = "$host_cpu"; then
9308         # AIX 5 now supports IA64 processor
9309         lt_prog_compiler_static='-Bstatic'
9310       fi
9311       lt_prog_compiler_pic='-fPIC'
9312       ;;
9313
9314     amigaos*)
9315       case $host_cpu in
9316       powerpc)
9317             # see comment about AmigaOS4 .so support
9318             lt_prog_compiler_pic='-fPIC'
9319         ;;
9320       m68k)
9321             # FIXME: we need at least 68020 code to build shared libraries, but
9322             # adding the '-m68020' flag to GCC prevents building anything better,
9323             # like '-m68040'.
9324             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9325         ;;
9326       esac
9327       ;;
9328
9329     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9330       # PIC is the default for these OSes.
9331       ;;
9332
9333     mingw* | cygwin* | pw32* | os2* | cegcc*)
9334       # This hack is so that the source file can tell whether it is being
9335       # built for inclusion in a dll (and should export symbols for example).
9336       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9337       # (--disable-auto-import) libraries
9338       lt_prog_compiler_pic='-DDLL_EXPORT'
9339       case $host_os in
9340       os2*)
9341         lt_prog_compiler_static='$wl-static'
9342         ;;
9343       esac
9344       ;;
9345
9346     darwin* | rhapsody*)
9347       # PIC is the default on this platform
9348       # Common symbols not allowed in MH_DYLIB files
9349       lt_prog_compiler_pic='-fno-common'
9350       ;;
9351
9352     haiku*)
9353       # PIC is the default for Haiku.
9354       # The "-static" flag exists, but is broken.
9355       lt_prog_compiler_static=
9356       ;;
9357
9358     hpux*)
9359       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9360       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9361       # sets the default TLS model and affects inlining.
9362       case $host_cpu in
9363       hppa*64*)
9364         # +Z the default
9365         ;;
9366       *)
9367         lt_prog_compiler_pic='-fPIC'
9368         ;;
9369       esac
9370       ;;
9371
9372     interix[3-9]*)
9373       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9374       # Instead, we relocate shared libraries at runtime.
9375       ;;
9376
9377     msdosdjgpp*)
9378       # Just because we use GCC doesn't mean we suddenly get shared libraries
9379       # on systems that don't support them.
9380       lt_prog_compiler_can_build_shared=no
9381       enable_shared=no
9382       ;;
9383
9384     *nto* | *qnx*)
9385       # QNX uses GNU C++, but need to define -shared option too, otherwise
9386       # it will coredump.
9387       lt_prog_compiler_pic='-fPIC -shared'
9388       ;;
9389
9390     sysv4*MP*)
9391       if test -d /usr/nec; then
9392         lt_prog_compiler_pic=-Kconform_pic
9393       fi
9394       ;;
9395
9396     *)
9397       lt_prog_compiler_pic='-fPIC'
9398       ;;
9399     esac
9400
9401     case $cc_basename in
9402     nvcc*) # Cuda Compiler Driver 2.2
9403       lt_prog_compiler_wl='-Xlinker '
9404       if test -n "$lt_prog_compiler_pic"; then
9405         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9406       fi
9407       ;;
9408     esac
9409   else
9410     # PORTME Check for flag to pass linker flags through the system compiler.
9411     case $host_os in
9412     aix*)
9413       lt_prog_compiler_wl='-Wl,'
9414       if test ia64 = "$host_cpu"; then
9415         # AIX 5 now supports IA64 processor
9416         lt_prog_compiler_static='-Bstatic'
9417       else
9418         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9419       fi
9420       ;;
9421
9422     darwin* | rhapsody*)
9423       # PIC is the default on this platform
9424       # Common symbols not allowed in MH_DYLIB files
9425       lt_prog_compiler_pic='-fno-common'
9426       case $cc_basename in
9427       nagfor*)
9428         # NAG Fortran compiler
9429         lt_prog_compiler_wl='-Wl,-Wl,,'
9430         lt_prog_compiler_pic='-PIC'
9431         lt_prog_compiler_static='-Bstatic'
9432         ;;
9433       esac
9434       ;;
9435
9436     mingw* | cygwin* | pw32* | os2* | cegcc*)
9437       # This hack is so that the source file can tell whether it is being
9438       # built for inclusion in a dll (and should export symbols for example).
9439       lt_prog_compiler_pic='-DDLL_EXPORT'
9440       case $host_os in
9441       os2*)
9442         lt_prog_compiler_static='$wl-static'
9443         ;;
9444       esac
9445       ;;
9446
9447     hpux9* | hpux10* | hpux11*)
9448       lt_prog_compiler_wl='-Wl,'
9449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9450       # not for PA HP-UX.
9451       case $host_cpu in
9452       hppa*64*|ia64*)
9453         # +Z the default
9454         ;;
9455       *)
9456         lt_prog_compiler_pic='+Z'
9457         ;;
9458       esac
9459       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9460       lt_prog_compiler_static='$wl-a ${wl}archive'
9461       ;;
9462
9463     irix5* | irix6* | nonstopux*)
9464       lt_prog_compiler_wl='-Wl,'
9465       # PIC (with -KPIC) is the default.
9466       lt_prog_compiler_static='-non_shared'
9467       ;;
9468
9469     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9470       case $cc_basename in
9471       # old Intel for x86_64, which still supported -KPIC.
9472       ecc*)
9473         lt_prog_compiler_wl='-Wl,'
9474         lt_prog_compiler_pic='-KPIC'
9475         lt_prog_compiler_static='-static'
9476         ;;
9477       # flang / f18. f95 an alias for gfortran or flang on Debian
9478       flang* | f18* | f95*)
9479         lt_prog_compiler_wl='-Wl,'
9480         lt_prog_compiler_pic='-fPIC'
9481         lt_prog_compiler_static='-static'
9482         ;;
9483       # icc used to be incompatible with GCC.
9484       # ICC 10 doesn't accept -KPIC any more.
9485       icc* | ifort*)
9486         lt_prog_compiler_wl='-Wl,'
9487         lt_prog_compiler_pic='-fPIC'
9488         lt_prog_compiler_static='-static'
9489         ;;
9490       # Lahey Fortran 8.1.
9491       lf95*)
9492         lt_prog_compiler_wl='-Wl,'
9493         lt_prog_compiler_pic='--shared'
9494         lt_prog_compiler_static='--static'
9495         ;;
9496       nagfor*)
9497         # NAG Fortran compiler
9498         lt_prog_compiler_wl='-Wl,-Wl,,'
9499         lt_prog_compiler_pic='-PIC'
9500         lt_prog_compiler_static='-Bstatic'
9501         ;;
9502       tcc*)
9503         # Fabrice Bellard et al's Tiny C Compiler
9504         lt_prog_compiler_wl='-Wl,'
9505         lt_prog_compiler_pic='-fPIC'
9506         lt_prog_compiler_static='-static'
9507         ;;
9508       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9509         # Portland Group compilers (*not* the Pentium gcc compiler,
9510         # which looks to be a dead project)
9511         lt_prog_compiler_wl='-Wl,'
9512         lt_prog_compiler_pic='-fpic'
9513         lt_prog_compiler_static='-Bstatic'
9514         ;;
9515       ccc*)
9516         lt_prog_compiler_wl='-Wl,'
9517         # All Alpha code is PIC.
9518         lt_prog_compiler_static='-non_shared'
9519         ;;
9520       xl* | bgxl* | bgf* | mpixl*)
9521         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9522         lt_prog_compiler_wl='-Wl,'
9523         lt_prog_compiler_pic='-qpic'
9524         lt_prog_compiler_static='-qstaticlink'
9525         ;;
9526       *)
9527         case `$CC -V 2>&1 | sed 5q` in
9528         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9529           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9530           lt_prog_compiler_pic='-KPIC'
9531           lt_prog_compiler_static='-Bstatic'
9532           lt_prog_compiler_wl=''
9533           ;;
9534         *Sun\ F* | *Sun*Fortran*)
9535           lt_prog_compiler_pic='-KPIC'
9536           lt_prog_compiler_static='-Bstatic'
9537           lt_prog_compiler_wl='-Qoption ld '
9538           ;;
9539         *Sun\ C*)
9540           # Sun C 5.9
9541           lt_prog_compiler_pic='-KPIC'
9542           lt_prog_compiler_static='-Bstatic'
9543           lt_prog_compiler_wl='-Wl,'
9544           ;;
9545         *Intel*\ [CF]*Compiler*)
9546           lt_prog_compiler_wl='-Wl,'
9547           lt_prog_compiler_pic='-fPIC'
9548           lt_prog_compiler_static='-static'
9549           ;;
9550         *Portland\ Group*)
9551           lt_prog_compiler_wl='-Wl,'
9552           lt_prog_compiler_pic='-fpic'
9553           lt_prog_compiler_static='-Bstatic'
9554           ;;
9555         esac
9556         ;;
9557       esac
9558       ;;
9559
9560     newsos6)
9561       lt_prog_compiler_pic='-KPIC'
9562       lt_prog_compiler_static='-Bstatic'
9563       ;;
9564
9565     *nto* | *qnx*)
9566       # QNX uses GNU C++, but need to define -shared option too, otherwise
9567       # it will coredump.
9568       lt_prog_compiler_pic='-fPIC -shared'
9569       ;;
9570
9571     osf3* | osf4* | osf5*)
9572       lt_prog_compiler_wl='-Wl,'
9573       # All OSF/1 code is PIC.
9574       lt_prog_compiler_static='-non_shared'
9575       ;;
9576
9577     rdos*)
9578       lt_prog_compiler_static='-non_shared'
9579       ;;
9580
9581     solaris*)
9582       lt_prog_compiler_pic='-KPIC'
9583       lt_prog_compiler_static='-Bstatic'
9584       case $cc_basename in
9585       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9586         lt_prog_compiler_wl='-Qoption ld ';;
9587       *)
9588         lt_prog_compiler_wl='-Wl,';;
9589       esac
9590       ;;
9591
9592     sunos4*)
9593       lt_prog_compiler_wl='-Qoption ld '
9594       lt_prog_compiler_pic='-PIC'
9595       lt_prog_compiler_static='-Bstatic'
9596       ;;
9597
9598     sysv4 | sysv4.2uw2* | sysv4.3*)
9599       lt_prog_compiler_wl='-Wl,'
9600       lt_prog_compiler_pic='-KPIC'
9601       lt_prog_compiler_static='-Bstatic'
9602       ;;
9603
9604     sysv4*MP*)
9605       if test -d /usr/nec; then
9606         lt_prog_compiler_pic='-Kconform_pic'
9607         lt_prog_compiler_static='-Bstatic'
9608       fi
9609       ;;
9610
9611     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9612       lt_prog_compiler_wl='-Wl,'
9613       lt_prog_compiler_pic='-KPIC'
9614       lt_prog_compiler_static='-Bstatic'
9615       ;;
9616
9617     unicos*)
9618       lt_prog_compiler_wl='-Wl,'
9619       lt_prog_compiler_can_build_shared=no
9620       ;;
9621
9622     uts4*)
9623       lt_prog_compiler_pic='-pic'
9624       lt_prog_compiler_static='-Bstatic'
9625       ;;
9626
9627     *)
9628       lt_prog_compiler_can_build_shared=no
9629       ;;
9630     esac
9631   fi
9632
9633 case $host_os in
9634   # For platforms that do not support PIC, -DPIC is meaningless:
9635   *djgpp*)
9636     lt_prog_compiler_pic=
9637     ;;
9638   *)
9639     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9640     ;;
9641 esac
9642
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9644 printf %s "checking for $compiler option to produce PIC... " >&6; }
9645 if test ${lt_cv_prog_compiler_pic+y}
9646 then :
9647   printf %s "(cached) " >&6
9648 else $as_nop
9649   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9650 fi
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9652 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9653 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9654
9655 #
9656 # Check to make sure the PIC flag actually works.
9657 #
9658 if test -n "$lt_prog_compiler_pic"; then
9659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9660 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9661 if test ${lt_cv_prog_compiler_pic_works+y}
9662 then :
9663   printf %s "(cached) " >&6
9664 else $as_nop
9665   lt_cv_prog_compiler_pic_works=no
9666    ac_outfile=conftest.$ac_objext
9667    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9668    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9669    # Insert the option either (1) after the last *FLAGS variable, or
9670    # (2) before a word containing "conftest.", or (3) at the end.
9671    # Note that $ac_compile itself does not contain backslashes and begins
9672    # with a dollar sign (not a hyphen), so the echo should work correctly.
9673    # The option is referenced via a variable to avoid confusing sed.
9674    lt_compile=`echo "$ac_compile" | $SED \
9675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9677    -e 's:$: $lt_compiler_flag:'`
9678    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9679    (eval "$lt_compile" 2>conftest.err)
9680    ac_status=$?
9681    cat conftest.err >&5
9682    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683    if (exit $ac_status) && test -s "$ac_outfile"; then
9684      # The compiler can only warn and ignore the option if not recognized
9685      # So say no if there are warnings other than the usual output.
9686      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9687      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9688      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9689        lt_cv_prog_compiler_pic_works=yes
9690      fi
9691    fi
9692    $RM conftest*
9693
9694 fi
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9696 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9697
9698 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9699     case $lt_prog_compiler_pic in
9700      "" | " "*) ;;
9701      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9702      esac
9703 else
9704     lt_prog_compiler_pic=
9705      lt_prog_compiler_can_build_shared=no
9706 fi
9707
9708 fi
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720 #
9721 # Check to make sure the static flag actually works.
9722 #
9723 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9725 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9726 if test ${lt_cv_prog_compiler_static_works+y}
9727 then :
9728   printf %s "(cached) " >&6
9729 else $as_nop
9730   lt_cv_prog_compiler_static_works=no
9731    save_LDFLAGS=$LDFLAGS
9732    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9733    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9734    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9735      # The linker can only warn and ignore the option if not recognized
9736      # So say no if there are warnings
9737      if test -s conftest.err; then
9738        # Append any errors to the config.log.
9739        cat conftest.err 1>&5
9740        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9741        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9742        if diff conftest.exp conftest.er2 >/dev/null; then
9743          lt_cv_prog_compiler_static_works=yes
9744        fi
9745      else
9746        lt_cv_prog_compiler_static_works=yes
9747      fi
9748    fi
9749    $RM -r conftest*
9750    LDFLAGS=$save_LDFLAGS
9751
9752 fi
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9754 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9755
9756 if test yes = "$lt_cv_prog_compiler_static_works"; then
9757     :
9758 else
9759     lt_prog_compiler_static=
9760 fi
9761
9762
9763
9764
9765
9766
9767
9768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9769 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9770 if test ${lt_cv_prog_compiler_c_o+y}
9771 then :
9772   printf %s "(cached) " >&6
9773 else $as_nop
9774   lt_cv_prog_compiler_c_o=no
9775    $RM -r conftest 2>/dev/null
9776    mkdir conftest
9777    cd conftest
9778    mkdir out
9779    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9780
9781    lt_compiler_flag="-o out/conftest2.$ac_objext"
9782    # Insert the option either (1) after the last *FLAGS variable, or
9783    # (2) before a word containing "conftest.", or (3) at the end.
9784    # Note that $ac_compile itself does not contain backslashes and begins
9785    # with a dollar sign (not a hyphen), so the echo should work correctly.
9786    lt_compile=`echo "$ac_compile" | $SED \
9787    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9788    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9789    -e 's:$: $lt_compiler_flag:'`
9790    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9791    (eval "$lt_compile" 2>out/conftest.err)
9792    ac_status=$?
9793    cat out/conftest.err >&5
9794    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9796    then
9797      # The compiler can only warn and ignore the option if not recognized
9798      # So say no if there are warnings
9799      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9800      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9801      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9802        lt_cv_prog_compiler_c_o=yes
9803      fi
9804    fi
9805    chmod u+w . 2>&5
9806    $RM conftest*
9807    # SGI C++ compiler will create directory out/ii_files/ for
9808    # template instantiation
9809    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9810    $RM out/* && rmdir out
9811    cd ..
9812    $RM -r conftest
9813    $RM conftest*
9814
9815 fi
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9817 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9818
9819
9820
9821
9822
9823
9824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9825 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9826 if test ${lt_cv_prog_compiler_c_o+y}
9827 then :
9828   printf %s "(cached) " >&6
9829 else $as_nop
9830   lt_cv_prog_compiler_c_o=no
9831    $RM -r conftest 2>/dev/null
9832    mkdir conftest
9833    cd conftest
9834    mkdir out
9835    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837    lt_compiler_flag="-o out/conftest2.$ac_objext"
9838    # Insert the option either (1) after the last *FLAGS variable, or
9839    # (2) before a word containing "conftest.", or (3) at the end.
9840    # Note that $ac_compile itself does not contain backslashes and begins
9841    # with a dollar sign (not a hyphen), so the echo should work correctly.
9842    lt_compile=`echo "$ac_compile" | $SED \
9843    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9844    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9845    -e 's:$: $lt_compiler_flag:'`
9846    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9847    (eval "$lt_compile" 2>out/conftest.err)
9848    ac_status=$?
9849    cat out/conftest.err >&5
9850    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9852    then
9853      # The compiler can only warn and ignore the option if not recognized
9854      # So say no if there are warnings
9855      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9856      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9857      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9858        lt_cv_prog_compiler_c_o=yes
9859      fi
9860    fi
9861    chmod u+w . 2>&5
9862    $RM conftest*
9863    # SGI C++ compiler will create directory out/ii_files/ for
9864    # template instantiation
9865    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9866    $RM out/* && rmdir out
9867    cd ..
9868    $RM -r conftest
9869    $RM conftest*
9870
9871 fi
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9873 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9874
9875
9876
9877
9878 hard_links=nottested
9879 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9880   # do not overwrite the value of need_locks provided by the user
9881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9882 printf %s "checking if we can lock with hard links... " >&6; }
9883   hard_links=yes
9884   $RM conftest*
9885   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9886   touch conftest.a
9887   ln conftest.a conftest.b 2>&5 || hard_links=no
9888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9890 printf "%s\n" "$hard_links" >&6; }
9891   if test no = "$hard_links"; then
9892     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9893 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9894     need_locks=warn
9895   fi
9896 else
9897   need_locks=no
9898 fi
9899
9900
9901
9902
9903
9904
9905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9906 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9907
9908   runpath_var=
9909   allow_undefined_flag=
9910   always_export_symbols=no
9911   archive_cmds=
9912   archive_expsym_cmds=
9913   compiler_needs_object=no
9914   enable_shared_with_static_runtimes=no
9915   export_dynamic_flag_spec=
9916   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9917   hardcode_automatic=no
9918   hardcode_direct=no
9919   hardcode_direct_absolute=no
9920   hardcode_libdir_flag_spec=
9921   hardcode_libdir_separator=
9922   hardcode_minus_L=no
9923   hardcode_shlibpath_var=unsupported
9924   inherit_rpath=no
9925   link_all_deplibs=unknown
9926   module_cmds=
9927   module_expsym_cmds=
9928   old_archive_from_new_cmds=
9929   old_archive_from_expsyms_cmds=
9930   thread_safe_flag_spec=
9931   whole_archive_flag_spec=
9932   # include_expsyms should be a list of space-separated symbols to be *always*
9933   # included in the symbol list
9934   include_expsyms=
9935   # exclude_expsyms can be an extended regexp of symbols to exclude
9936   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9937   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9938   # as well as any symbol that contains 'd'.
9939   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9940   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9941   # platforms (ab)use it in PIC code, but their linkers get confused if
9942   # the symbol is explicitly referenced.  Since portable code cannot
9943   # rely on this symbol name, it's probably fine to never include it in
9944   # preloaded symbol tables.
9945   # Exclude shared library initialization/finalization symbols.
9946   extract_expsyms_cmds=
9947
9948   case $host_os in
9949   cygwin* | mingw* | pw32* | cegcc*)
9950     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9951     # When not using gcc, we currently assume that we are using
9952     # Microsoft Visual C++.
9953     if test yes != "$GCC"; then
9954       with_gnu_ld=no
9955     fi
9956     ;;
9957   interix*)
9958     # we just hope/assume this is gcc and not c89 (= MSVC++)
9959     with_gnu_ld=yes
9960     ;;
9961   openbsd* | bitrig*)
9962     with_gnu_ld=no
9963     ;;
9964   linux* | k*bsd*-gnu | gnu*)
9965     link_all_deplibs=no
9966     ;;
9967   esac
9968
9969   ld_shlibs=yes
9970
9971   # On some targets, GNU ld is compatible enough with the native linker
9972   # that we're better off using the native interface for both.
9973   lt_use_gnu_ld_interface=no
9974   if test yes = "$with_gnu_ld"; then
9975     case $host_os in
9976       aix*)
9977         # The AIX port of GNU ld has always aspired to compatibility
9978         # with the native linker.  However, as the warning in the GNU ld
9979         # block says, versions before 2.19.5* couldn't really create working
9980         # shared libraries, regardless of the interface used.
9981         case `$LD -v 2>&1` in
9982           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9983           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9984           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9985           *)
9986             lt_use_gnu_ld_interface=yes
9987             ;;
9988         esac
9989         ;;
9990       *)
9991         lt_use_gnu_ld_interface=yes
9992         ;;
9993     esac
9994   fi
9995
9996   if test yes = "$lt_use_gnu_ld_interface"; then
9997     # If archive_cmds runs LD, not CC, wlarc should be empty
9998     wlarc='$wl'
9999
10000     # Set some defaults for GNU ld with shared library support. These
10001     # are reset later if shared libraries are not supported. Putting them
10002     # here allows them to be overridden if necessary.
10003     runpath_var=LD_RUN_PATH
10004     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10005     export_dynamic_flag_spec='$wl--export-dynamic'
10006     # ancient GNU ld didn't support --whole-archive et. al.
10007     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10008       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10009     else
10010       whole_archive_flag_spec=
10011     fi
10012     supports_anon_versioning=no
10013     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10014       *GNU\ gold*) supports_anon_versioning=yes ;;
10015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018       *\ 2.11.*) ;; # other 2.11 versions
10019       *) supports_anon_versioning=yes ;;
10020     esac
10021
10022     # See if GNU ld supports shared libraries.
10023     case $host_os in
10024     aix[3-9]*)
10025       # On AIX/PPC, the GNU linker is very broken
10026       if test ia64 != "$host_cpu"; then
10027         ld_shlibs=no
10028         cat <<_LT_EOF 1>&2
10029
10030 *** Warning: the GNU linker, at least up to release 2.19, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support.  If you
10033 *** really care for shared libraries, you may want to install binutils
10034 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10035 *** You will then need to restart the configuration process.
10036
10037 _LT_EOF
10038       fi
10039       ;;
10040
10041     amigaos*)
10042       case $host_cpu in
10043       powerpc)
10044             # see comment about AmigaOS4 .so support
10045             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10046             archive_expsym_cmds=''
10047         ;;
10048       m68k)
10049             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)'
10050             hardcode_libdir_flag_spec='-L$libdir'
10051             hardcode_minus_L=yes
10052         ;;
10053       esac
10054       ;;
10055
10056     beos*)
10057       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10058         allow_undefined_flag=unsupported
10059         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10060         # support --undefined.  This deserves some investigation.  FIXME
10061         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10062       else
10063         ld_shlibs=no
10064       fi
10065       ;;
10066
10067     cygwin* | mingw* | pw32* | cegcc*)
10068       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10069       # as there is no search path for DLLs.
10070       hardcode_libdir_flag_spec='-L$libdir'
10071       export_dynamic_flag_spec='$wl--export-all-symbols'
10072       allow_undefined_flag=unsupported
10073       always_export_symbols=no
10074       enable_shared_with_static_runtimes=yes
10075       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'
10076       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10077
10078       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10080         # If the export-symbols file already is a .def file, use it as
10081         # is; otherwise, prepend EXPORTS...
10082         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10083           cp $export_symbols $output_objdir/$soname.def;
10084         else
10085           echo EXPORTS > $output_objdir/$soname.def;
10086           cat $export_symbols >> $output_objdir/$soname.def;
10087         fi~
10088         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10089       else
10090         ld_shlibs=no
10091       fi
10092       ;;
10093
10094     haiku*)
10095       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10096       link_all_deplibs=yes
10097       ;;
10098
10099     os2*)
10100       hardcode_libdir_flag_spec='-L$libdir'
10101       hardcode_minus_L=yes
10102       allow_undefined_flag=unsupported
10103       shrext_cmds=.dll
10104       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10105         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10106         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10107         $ECHO EXPORTS >> $output_objdir/$libname.def~
10108         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10109         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10110         emximp -o $lib $output_objdir/$libname.def'
10111       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10112         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10113         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10114         $ECHO EXPORTS >> $output_objdir/$libname.def~
10115         prefix_cmds="$SED"~
10116         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10117           prefix_cmds="$prefix_cmds -e 1d";
10118         fi~
10119         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10120         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10121         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10122         emximp -o $lib $output_objdir/$libname.def'
10123       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10124       enable_shared_with_static_runtimes=yes
10125       ;;
10126
10127     interix[3-9]*)
10128       hardcode_direct=no
10129       hardcode_shlibpath_var=no
10130       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10131       export_dynamic_flag_spec='$wl-E'
10132       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10133       # Instead, shared libraries are loaded at an image base (0x10000000 by
10134       # default) and relocated if they conflict, which is a slow very memory
10135       # consuming and fragmenting process.  To avoid this, we pick a random,
10136       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10137       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10138       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10139       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'
10140       ;;
10141
10142     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10143       tmp_diet=no
10144       if test linux-dietlibc = "$host_os"; then
10145         case $cc_basename in
10146           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10147         esac
10148       fi
10149       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10150          && test no = "$tmp_diet"
10151       then
10152         tmp_addflag=' $pic_flag'
10153         tmp_sharedflag='-shared'
10154         case $cc_basename,$host_cpu in
10155         pgcc*)                          # Portland Group C compiler
10156           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'
10157           tmp_addflag=' $pic_flag'
10158           ;;
10159         pgf77* | pgf90* | pgf95* | pgfortran*)
10160                                         # Portland Group f77 and f90 compilers
10161           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'
10162           tmp_addflag=' $pic_flag -Mnomain' ;;
10163         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10164           tmp_addflag=' -i_dynamic' ;;
10165         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10166           tmp_addflag=' -i_dynamic -nofor_main' ;;
10167         ifc* | ifort*)                  # Intel Fortran compiler
10168           tmp_addflag=' -nofor_main' ;;
10169         lf95*)                          # Lahey Fortran 8.1
10170           whole_archive_flag_spec=
10171           tmp_sharedflag='--shared' ;;
10172         nagfor*)                        # NAGFOR 5.3
10173           tmp_sharedflag='-Wl,-shared' ;;
10174         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10175           tmp_sharedflag='-qmkshrobj'
10176           tmp_addflag= ;;
10177         nvcc*)  # Cuda Compiler Driver 2.2
10178           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'
10179           compiler_needs_object=yes
10180           ;;
10181         esac
10182         case `$CC -V 2>&1 | sed 5q` in
10183         *Sun\ C*)                       # Sun C 5.9
10184           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'
10185           compiler_needs_object=yes
10186           tmp_sharedflag='-G' ;;
10187         *Sun\ F*)                       # Sun Fortran 8.3
10188           tmp_sharedflag='-G' ;;
10189         esac
10190         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191
10192         if test yes = "$supports_anon_versioning"; then
10193           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195             echo "local: *; };" >> $output_objdir/$libname.ver~
10196             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10197         fi
10198
10199         case $cc_basename in
10200         tcc*)
10201           export_dynamic_flag_spec='-rdynamic'
10202           ;;
10203         xlf* | bgf* | bgxlf* | mpixlf*)
10204           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10205           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10206           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10208           if test yes = "$supports_anon_versioning"; then
10209             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10210               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10211               echo "local: *; };" >> $output_objdir/$libname.ver~
10212               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10213           fi
10214           ;;
10215         esac
10216       else
10217         ld_shlibs=no
10218       fi
10219       ;;
10220
10221     netbsd* | netbsdelf*-gnu)
10222       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10223         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10224         wlarc=
10225       else
10226         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10228       fi
10229       ;;
10230
10231     solaris*)
10232       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10233         ld_shlibs=no
10234         cat <<_LT_EOF 1>&2
10235
10236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10237 *** create shared libraries on Solaris systems.  Therefore, libtool
10238 *** is disabling shared libraries support.  We urge you to upgrade GNU
10239 *** binutils to release 2.9.1 or newer.  Another option is to modify
10240 *** your PATH or compiler configuration so that the native linker is
10241 *** used, and then restart.
10242
10243 _LT_EOF
10244       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10247       else
10248         ld_shlibs=no
10249       fi
10250       ;;
10251
10252     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10253       case `$LD -v 2>&1` in
10254         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10255         ld_shlibs=no
10256         cat <<_LT_EOF 1>&2
10257
10258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10259 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10260 *** is disabling shared libraries support.  We urge you to upgrade GNU
10261 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10264
10265 _LT_EOF
10266         ;;
10267         *)
10268           # For security reasons, it is highly recommended that you always
10269           # use absolute paths for naming shared libraries, and exclude the
10270           # DT_RUNPATH tag from executables and libraries.  But doing so
10271           # requires that you compile everything twice, which is a pain.
10272           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10275             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10276           else
10277             ld_shlibs=no
10278           fi
10279         ;;
10280       esac
10281       ;;
10282
10283     sunos4*)
10284       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10285       wlarc=
10286       hardcode_direct=yes
10287       hardcode_shlibpath_var=no
10288       ;;
10289
10290     *)
10291       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10294       else
10295         ld_shlibs=no
10296       fi
10297       ;;
10298     esac
10299
10300     if test no = "$ld_shlibs"; then
10301       runpath_var=
10302       hardcode_libdir_flag_spec=
10303       export_dynamic_flag_spec=
10304       whole_archive_flag_spec=
10305     fi
10306   else
10307     # PORTME fill in a description of your system's linker (not GNU ld)
10308     case $host_os in
10309     aix3*)
10310       allow_undefined_flag=unsupported
10311       always_export_symbols=yes
10312       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'
10313       # Note: this linker hardcodes the directories in LIBPATH if there
10314       # are no directories specified by -L.
10315       hardcode_minus_L=yes
10316       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10317         # Neither direct hardcoding nor static linking is supported with a
10318         # broken collect2.
10319         hardcode_direct=unsupported
10320       fi
10321       ;;
10322
10323     aix[4-9]*)
10324       if test ia64 = "$host_cpu"; then
10325         # On IA64, the linker does run time linking by default, so we don't
10326         # have to do anything special.
10327         aix_use_runtimelinking=no
10328         exp_sym_flag='-Bexport'
10329         no_entry_flag=
10330       else
10331         # If we're using GNU nm, then we don't want the "-C" option.
10332         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10333         # Without the "-l" option, or with the "-B" option, AIX nm treats
10334         # weak defined symbols like other global defined symbols, whereas
10335         # GNU nm marks them as "W".
10336         # While the 'weak' keyword is ignored in the Export File, we need
10337         # it in the Import File for the 'aix-soname' feature, so we have
10338         # to replace the "-B" option with "-P" for AIX nm.
10339         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10340           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'
10341         else
10342           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'
10343         fi
10344         aix_use_runtimelinking=no
10345
10346         # Test if we are trying to use run time linking or normal
10347         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10348         # have runtime linking enabled, and use it for executables.
10349         # For shared libraries, we enable/disable runtime linking
10350         # depending on the kind of the shared library created -
10351         # when "with_aix_soname,aix_use_runtimelinking" is:
10352         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10353         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10354         #            lib.a           static archive
10355         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10356         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10357         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10358         #            lib.a(lib.so.V) shared, rtl:no
10359         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10360         #            lib.a           static archive
10361         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362           for ld_flag in $LDFLAGS; do
10363           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10364             aix_use_runtimelinking=yes
10365             break
10366           fi
10367           done
10368           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10369             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10370             # so we don't have lib.a shared libs to link our executables.
10371             # We have to force runtime linking in this case.
10372             aix_use_runtimelinking=yes
10373             LDFLAGS="$LDFLAGS -Wl,-brtl"
10374           fi
10375           ;;
10376         esac
10377
10378         exp_sym_flag='-bexport'
10379         no_entry_flag='-bnoentry'
10380       fi
10381
10382       # When large executables or shared objects are built, AIX ld can
10383       # have problems creating the table of contents.  If linking a library
10384       # or program results in "error TOC overflow" add -mminimal-toc to
10385       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10386       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10387
10388       archive_cmds=''
10389       hardcode_direct=yes
10390       hardcode_direct_absolute=yes
10391       hardcode_libdir_separator=':'
10392       link_all_deplibs=yes
10393       file_list_spec='$wl-f,'
10394       case $with_aix_soname,$aix_use_runtimelinking in
10395       aix,*) ;; # traditional, no import file
10396       svr4,* | *,yes) # use import file
10397         # The Import File defines what to hardcode.
10398         hardcode_direct=no
10399         hardcode_direct_absolute=no
10400         ;;
10401       esac
10402
10403       if test yes = "$GCC"; then
10404         case $host_os in aix4.[012]|aix4.[012].*)
10405         # We only want to do this on AIX 4.2 and lower, the check
10406         # below for broken collect2 doesn't work under 4.3+
10407           collect2name=`$CC -print-prog-name=collect2`
10408           if test -f "$collect2name" &&
10409            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10410           then
10411           # We have reworked collect2
10412           :
10413           else
10414           # We have old collect2
10415           hardcode_direct=unsupported
10416           # It fails to find uninstalled libraries when the uninstalled
10417           # path is not listed in the libpath.  Setting hardcode_minus_L
10418           # to unsupported forces relinking
10419           hardcode_minus_L=yes
10420           hardcode_libdir_flag_spec='-L$libdir'
10421           hardcode_libdir_separator=
10422           fi
10423           ;;
10424         esac
10425         shared_flag='-shared'
10426         if test yes = "$aix_use_runtimelinking"; then
10427           shared_flag="$shared_flag "'$wl-G'
10428         fi
10429         # Need to ensure runtime linking is disabled for the traditional
10430         # shared library, or the linker may eventually find shared libraries
10431         # /with/ Import File - we do not want to mix them.
10432         shared_flag_aix='-shared'
10433         shared_flag_svr4='-shared $wl-G'
10434       else
10435         # not using gcc
10436         if test ia64 = "$host_cpu"; then
10437         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10438         # chokes on -Wl,-G. The following line is correct:
10439           shared_flag='-G'
10440         else
10441           if test yes = "$aix_use_runtimelinking"; then
10442             shared_flag='$wl-G'
10443           else
10444             shared_flag='$wl-bM:SRE'
10445           fi
10446           shared_flag_aix='$wl-bM:SRE'
10447           shared_flag_svr4='$wl-G'
10448         fi
10449       fi
10450
10451       export_dynamic_flag_spec='$wl-bexpall'
10452       # It seems that -bexpall does not export symbols beginning with
10453       # underscore (_), so it is better to generate a list of symbols to export.
10454       always_export_symbols=yes
10455       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10456         # Warning - without using the other runtime loading flags (-brtl),
10457         # -berok will link without error, but may produce a broken library.
10458         allow_undefined_flag='-berok'
10459         # Determine the default libpath from the value encoded in an
10460         # empty executable.
10461         if test set = "${lt_cv_aix_libpath+set}"; then
10462   aix_libpath=$lt_cv_aix_libpath
10463 else
10464   if test ${lt_cv_aix_libpath_+y}
10465 then :
10466   printf %s "(cached) " >&6
10467 else $as_nop
10468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h.  */
10470
10471 int
10472 main (void)
10473 {
10474
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"
10480 then :
10481
10482   lt_aix_libpath_sed='
10483       /Import File Strings/,/^$/ {
10484           /^0/ {
10485               s/^0  *\([^ ]*\) *$/\1/
10486               p
10487           }
10488       }'
10489   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490   # Check for a 64-bit object if we didn't find anything.
10491   if test -z "$lt_cv_aix_libpath_"; then
10492     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493   fi
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496     conftest$ac_exeext conftest.$ac_ext
10497   if test -z "$lt_cv_aix_libpath_"; then
10498     lt_cv_aix_libpath_=/usr/lib:/lib
10499   fi
10500
10501 fi
10502
10503   aix_libpath=$lt_cv_aix_libpath_
10504 fi
10505
10506         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10507         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
10508       else
10509         if test ia64 = "$host_cpu"; then
10510           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10511           allow_undefined_flag="-z nodefs"
10512           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"
10513         else
10514          # Determine the default libpath from the value encoded in an
10515          # empty executable.
10516          if test set = "${lt_cv_aix_libpath+set}"; then
10517   aix_libpath=$lt_cv_aix_libpath
10518 else
10519   if test ${lt_cv_aix_libpath_+y}
10520 then :
10521   printf %s "(cached) " >&6
10522 else $as_nop
10523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h.  */
10525
10526 int
10527 main (void)
10528 {
10529
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"
10535 then :
10536
10537   lt_aix_libpath_sed='
10538       /Import File Strings/,/^$/ {
10539           /^0/ {
10540               s/^0  *\([^ ]*\) *$/\1/
10541               p
10542           }
10543       }'
10544   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545   # Check for a 64-bit object if we didn't find anything.
10546   if test -z "$lt_cv_aix_libpath_"; then
10547     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548   fi
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10551     conftest$ac_exeext conftest.$ac_ext
10552   if test -z "$lt_cv_aix_libpath_"; then
10553     lt_cv_aix_libpath_=/usr/lib:/lib
10554   fi
10555
10556 fi
10557
10558   aix_libpath=$lt_cv_aix_libpath_
10559 fi
10560
10561          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10562           # Warning - without using the other run time loading flags,
10563           # -berok will link without error, but may produce a broken library.
10564           no_undefined_flag=' $wl-bernotok'
10565           allow_undefined_flag=' $wl-berok'
10566           if test yes = "$with_gnu_ld"; then
10567             # We only use this code for GNU lds that support --whole-archive.
10568             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10569           else
10570             # Exported symbols can be pulled into shared objects from archives
10571             whole_archive_flag_spec='$convenience'
10572           fi
10573           archive_cmds_need_lc=yes
10574           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10575           # -brtl affects multiple linker settings, -berok does not and is overridden later
10576           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10577           if test svr4 != "$with_aix_soname"; then
10578             # This is similar to how AIX traditionally builds its shared libraries.
10579             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'
10580           fi
10581           if test aix != "$with_aix_soname"; then
10582             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'
10583           else
10584             # used by -dlpreopen to get the symbols
10585             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10586           fi
10587           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10588         fi
10589       fi
10590       ;;
10591
10592     amigaos*)
10593       case $host_cpu in
10594       powerpc)
10595             # see comment about AmigaOS4 .so support
10596             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597             archive_expsym_cmds=''
10598         ;;
10599       m68k)
10600             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)'
10601             hardcode_libdir_flag_spec='-L$libdir'
10602             hardcode_minus_L=yes
10603         ;;
10604       esac
10605       ;;
10606
10607     bsdi[45]*)
10608       export_dynamic_flag_spec=-rdynamic
10609       ;;
10610
10611     cygwin* | mingw* | pw32* | cegcc*)
10612       # When not using gcc, we currently assume that we are using
10613       # Microsoft Visual C++.
10614       # hardcode_libdir_flag_spec is actually meaningless, as there is
10615       # no search path for DLLs.
10616       case $cc_basename in
10617       cl*)
10618         # Native MSVC
10619         hardcode_libdir_flag_spec=' '
10620         allow_undefined_flag=unsupported
10621         always_export_symbols=yes
10622         file_list_spec='@'
10623         # Tell ltmain to make .lib files, not .a files.
10624         libext=lib
10625         # Tell ltmain to make .dll files, not .so files.
10626         shrext_cmds=.dll
10627         # FIXME: Setting linknames here is a bad hack.
10628         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10629         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10630             cp "$export_symbols" "$output_objdir/$soname.def";
10631             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10632           else
10633             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10634           fi~
10635           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10636           linknames='
10637         # The linker will not automatically build a static lib if we build a DLL.
10638         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10639         enable_shared_with_static_runtimes=yes
10640         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10641         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10642         # Don't use ranlib
10643         old_postinstall_cmds='chmod 644 $oldlib'
10644         postlink_cmds='lt_outputfile="@OUTPUT@"~
10645           lt_tool_outputfile="@TOOL_OUTPUT@"~
10646           case $lt_outputfile in
10647             *.exe|*.EXE) ;;
10648             *)
10649               lt_outputfile=$lt_outputfile.exe
10650               lt_tool_outputfile=$lt_tool_outputfile.exe
10651               ;;
10652           esac~
10653           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10654             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10655             $RM "$lt_outputfile.manifest";
10656           fi'
10657         ;;
10658       *)
10659         # Assume MSVC wrapper
10660         hardcode_libdir_flag_spec=' '
10661         allow_undefined_flag=unsupported
10662         # Tell ltmain to make .lib files, not .a files.
10663         libext=lib
10664         # Tell ltmain to make .dll files, not .so files.
10665         shrext_cmds=.dll
10666         # FIXME: Setting linknames here is a bad hack.
10667         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10668         # The linker will automatically build a .lib file if we build a DLL.
10669         old_archive_from_new_cmds='true'
10670         # FIXME: Should let the user specify the lib program.
10671         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10672         enable_shared_with_static_runtimes=yes
10673         ;;
10674       esac
10675       ;;
10676
10677     darwin* | rhapsody*)
10678
10679
10680   archive_cmds_need_lc=no
10681   hardcode_direct=no
10682   hardcode_automatic=yes
10683   hardcode_shlibpath_var=unsupported
10684   if test yes = "$lt_cv_ld_force_load"; then
10685     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\"`'
10686
10687   else
10688     whole_archive_flag_spec=''
10689   fi
10690   link_all_deplibs=yes
10691   allow_undefined_flag=$_lt_dar_allow_undefined
10692   case $cc_basename in
10693      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10694      *) _lt_dar_can_shared=$GCC ;;
10695   esac
10696   if test yes = "$_lt_dar_can_shared"; then
10697     output_verbose_link_cmd=func_echo_all
10698     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10699     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10700     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"
10701     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"
10702
10703   else
10704   ld_shlibs=no
10705   fi
10706
10707       ;;
10708
10709     dgux*)
10710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711       hardcode_libdir_flag_spec='-L$libdir'
10712       hardcode_shlibpath_var=no
10713       ;;
10714
10715     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10716     # support.  Future versions do this automatically, but an explicit c++rt0.o
10717     # does not break anything, and helps significantly (at the cost of a little
10718     # extra space).
10719     freebsd2.2*)
10720       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10721       hardcode_libdir_flag_spec='-R$libdir'
10722       hardcode_direct=yes
10723       hardcode_shlibpath_var=no
10724       ;;
10725
10726     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10727     freebsd2.*)
10728       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10729       hardcode_direct=yes
10730       hardcode_minus_L=yes
10731       hardcode_shlibpath_var=no
10732       ;;
10733
10734     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10735     freebsd* | dragonfly*)
10736       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10737       hardcode_libdir_flag_spec='-R$libdir'
10738       hardcode_direct=yes
10739       hardcode_shlibpath_var=no
10740       ;;
10741
10742     hpux9*)
10743       if test yes = "$GCC"; then
10744         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'
10745       else
10746         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'
10747       fi
10748       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10749       hardcode_libdir_separator=:
10750       hardcode_direct=yes
10751
10752       # hardcode_minus_L: Not really in the search PATH,
10753       # but as the default location of the library.
10754       hardcode_minus_L=yes
10755       export_dynamic_flag_spec='$wl-E'
10756       ;;
10757
10758     hpux10*)
10759       if test yes,no = "$GCC,$with_gnu_ld"; then
10760         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761       else
10762         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10763       fi
10764       if test no = "$with_gnu_ld"; then
10765         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10766         hardcode_libdir_separator=:
10767         hardcode_direct=yes
10768         hardcode_direct_absolute=yes
10769         export_dynamic_flag_spec='$wl-E'
10770         # hardcode_minus_L: Not really in the search PATH,
10771         # but as the default location of the library.
10772         hardcode_minus_L=yes
10773       fi
10774       ;;
10775
10776     hpux11*)
10777       if test yes,no = "$GCC,$with_gnu_ld"; then
10778         case $host_cpu in
10779         hppa*64*)
10780           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10781           ;;
10782         ia64*)
10783           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10784           ;;
10785         *)
10786           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10787           ;;
10788         esac
10789       else
10790         case $host_cpu in
10791         hppa*64*)
10792           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10793           ;;
10794         ia64*)
10795           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10796           ;;
10797         *)
10798
10799           # Older versions of the 11.00 compiler do not understand -b yet
10800           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10801           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10802 printf %s "checking if $CC understands -b... " >&6; }
10803 if test ${lt_cv_prog_compiler__b+y}
10804 then :
10805   printf %s "(cached) " >&6
10806 else $as_nop
10807   lt_cv_prog_compiler__b=no
10808    save_LDFLAGS=$LDFLAGS
10809    LDFLAGS="$LDFLAGS -b"
10810    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10811    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10812      # The linker can only warn and ignore the option if not recognized
10813      # So say no if there are warnings
10814      if test -s conftest.err; then
10815        # Append any errors to the config.log.
10816        cat conftest.err 1>&5
10817        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10818        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10819        if diff conftest.exp conftest.er2 >/dev/null; then
10820          lt_cv_prog_compiler__b=yes
10821        fi
10822      else
10823        lt_cv_prog_compiler__b=yes
10824      fi
10825    fi
10826    $RM -r conftest*
10827    LDFLAGS=$save_LDFLAGS
10828
10829 fi
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10831 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10832
10833 if test yes = "$lt_cv_prog_compiler__b"; then
10834     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10835 else
10836     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10837 fi
10838
10839           ;;
10840         esac
10841       fi
10842       if test no = "$with_gnu_ld"; then
10843         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10844         hardcode_libdir_separator=:
10845
10846         case $host_cpu in
10847         hppa*64*|ia64*)
10848           hardcode_direct=no
10849           hardcode_shlibpath_var=no
10850           ;;
10851         *)
10852           hardcode_direct=yes
10853           hardcode_direct_absolute=yes
10854           export_dynamic_flag_spec='$wl-E'
10855
10856           # hardcode_minus_L: Not really in the search PATH,
10857           # but as the default location of the library.
10858           hardcode_minus_L=yes
10859           ;;
10860         esac
10861       fi
10862       ;;
10863
10864     irix5* | irix6* | nonstopux*)
10865       if test yes = "$GCC"; then
10866         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'
10867         # Try to use the -exported_symbol ld option, if it does not
10868         # work, assume that -exports_file does not work either and
10869         # implicitly export all symbols.
10870         # This should be the same for all languages, so no per-tag cache variable.
10871         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10872 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10873 if test ${lt_cv_irix_exported_symbol+y}
10874 then :
10875   printf %s "(cached) " >&6
10876 else $as_nop
10877   save_LDFLAGS=$LDFLAGS
10878            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10879            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h.  */
10881 int foo (void) { return 0; }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"
10884 then :
10885   lt_cv_irix_exported_symbol=yes
10886 else $as_nop
10887   lt_cv_irix_exported_symbol=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890     conftest$ac_exeext conftest.$ac_ext
10891            LDFLAGS=$save_LDFLAGS
10892 fi
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10894 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10895         if test yes = "$lt_cv_irix_exported_symbol"; then
10896           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'
10897         fi
10898         link_all_deplibs=no
10899       else
10900         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'
10901         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'
10902       fi
10903       archive_cmds_need_lc='no'
10904       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10905       hardcode_libdir_separator=:
10906       inherit_rpath=yes
10907       link_all_deplibs=yes
10908       ;;
10909
10910     linux*)
10911       case $cc_basename in
10912       tcc*)
10913         # Fabrice Bellard et al's Tiny C Compiler
10914         ld_shlibs=yes
10915         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10916         ;;
10917       esac
10918       ;;
10919
10920     netbsd* | netbsdelf*-gnu)
10921       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10922         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10923       else
10924         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10925       fi
10926       hardcode_libdir_flag_spec='-R$libdir'
10927       hardcode_direct=yes
10928       hardcode_shlibpath_var=no
10929       ;;
10930
10931     newsos6)
10932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933       hardcode_direct=yes
10934       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10935       hardcode_libdir_separator=:
10936       hardcode_shlibpath_var=no
10937       ;;
10938
10939     *nto* | *qnx*)
10940       ;;
10941
10942     openbsd* | bitrig*)
10943       if test -f /usr/libexec/ld.so; then
10944         hardcode_direct=yes
10945         hardcode_shlibpath_var=no
10946         hardcode_direct_absolute=yes
10947         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10948           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10949           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10950           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10951           export_dynamic_flag_spec='$wl-E'
10952         else
10953           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10954           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10955         fi
10956       else
10957         ld_shlibs=no
10958       fi
10959       ;;
10960
10961     os2*)
10962       hardcode_libdir_flag_spec='-L$libdir'
10963       hardcode_minus_L=yes
10964       allow_undefined_flag=unsupported
10965       shrext_cmds=.dll
10966       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10967         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10968         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10969         $ECHO EXPORTS >> $output_objdir/$libname.def~
10970         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10971         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10972         emximp -o $lib $output_objdir/$libname.def'
10973       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10974         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10975         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10976         $ECHO EXPORTS >> $output_objdir/$libname.def~
10977         prefix_cmds="$SED"~
10978         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10979           prefix_cmds="$prefix_cmds -e 1d";
10980         fi~
10981         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10982         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10983         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10984         emximp -o $lib $output_objdir/$libname.def'
10985       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10986       enable_shared_with_static_runtimes=yes
10987       ;;
10988
10989     osf3*)
10990       if test yes = "$GCC"; then
10991         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10992         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'
10993       else
10994         allow_undefined_flag=' -expect_unresolved \*'
10995         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'
10996       fi
10997       archive_cmds_need_lc='no'
10998       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999       hardcode_libdir_separator=:
11000       ;;
11001
11002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11003       if test yes = "$GCC"; then
11004         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11005         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'
11006         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11007       else
11008         allow_undefined_flag=' -expect_unresolved \*'
11009         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'
11010         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~
11011           $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'
11012
11013         # Both c and cxx compiler support -rpath directly
11014         hardcode_libdir_flag_spec='-rpath $libdir'
11015       fi
11016       archive_cmds_need_lc='no'
11017       hardcode_libdir_separator=:
11018       ;;
11019
11020     solaris*)
11021       no_undefined_flag=' -z defs'
11022       if test yes = "$GCC"; then
11023         wlarc='$wl'
11024         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11026           $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'
11027       else
11028         case `$CC -V 2>&1` in
11029         *"Compilers 5.0"*)
11030           wlarc=''
11031           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11034           ;;
11035         *)
11036           wlarc='$wl'
11037           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11040           ;;
11041         esac
11042       fi
11043       hardcode_libdir_flag_spec='-R$libdir'
11044       hardcode_shlibpath_var=no
11045       case $host_os in
11046       solaris2.[0-5] | solaris2.[0-5].*) ;;
11047       *)
11048         # The compiler driver will combine and reorder linker options,
11049         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11050         # but is careful enough not to reorder.
11051         # Supported since Solaris 2.6 (maybe 2.5.1?)
11052         if test yes = "$GCC"; then
11053           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11054         else
11055           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11056         fi
11057         ;;
11058       esac
11059       link_all_deplibs=yes
11060       ;;
11061
11062     sunos4*)
11063       if test sequent = "$host_vendor"; then
11064         # Use $CC to link under sequent, because it throws in some extra .o
11065         # files that make .init and .fini sections work.
11066         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11067       else
11068         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11069       fi
11070       hardcode_libdir_flag_spec='-L$libdir'
11071       hardcode_direct=yes
11072       hardcode_minus_L=yes
11073       hardcode_shlibpath_var=no
11074       ;;
11075
11076     sysv4)
11077       case $host_vendor in
11078         sni)
11079           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080           hardcode_direct=yes # is this really true???
11081         ;;
11082         siemens)
11083           ## LD is ld it makes a PLAMLIB
11084           ## CC just makes a GrossModule.
11085           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11086           reload_cmds='$CC -r -o $output$reload_objs'
11087           hardcode_direct=no
11088         ;;
11089         motorola)
11090           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11092         ;;
11093       esac
11094       runpath_var='LD_RUN_PATH'
11095       hardcode_shlibpath_var=no
11096       ;;
11097
11098     sysv4.3*)
11099       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100       hardcode_shlibpath_var=no
11101       export_dynamic_flag_spec='-Bexport'
11102       ;;
11103
11104     sysv4*MP*)
11105       if test -d /usr/nec; then
11106         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107         hardcode_shlibpath_var=no
11108         runpath_var=LD_RUN_PATH
11109         hardcode_runpath_var=yes
11110         ld_shlibs=yes
11111       fi
11112       ;;
11113
11114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11115       no_undefined_flag='$wl-z,text'
11116       archive_cmds_need_lc=no
11117       hardcode_shlibpath_var=no
11118       runpath_var='LD_RUN_PATH'
11119
11120       if test yes = "$GCC"; then
11121         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123       else
11124         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126       fi
11127       ;;
11128
11129     sysv5* | sco3.2v5* | sco5v6*)
11130       # Note: We CANNOT use -z defs as we might desire, because we do not
11131       # link with -lc, and that would cause any symbols used from libc to
11132       # always be unresolved, which means just about no library would
11133       # ever link correctly.  If we're not using GNU ld we use -z text
11134       # though, which does catch some bad symbols but isn't as heavy-handed
11135       # as -z defs.
11136       no_undefined_flag='$wl-z,text'
11137       allow_undefined_flag='$wl-z,nodefs'
11138       archive_cmds_need_lc=no
11139       hardcode_shlibpath_var=no
11140       hardcode_libdir_flag_spec='$wl-R,$libdir'
11141       hardcode_libdir_separator=':'
11142       link_all_deplibs=yes
11143       export_dynamic_flag_spec='$wl-Bexport'
11144       runpath_var='LD_RUN_PATH'
11145
11146       if test yes = "$GCC"; then
11147         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149       else
11150         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152       fi
11153       ;;
11154
11155     uts4*)
11156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157       hardcode_libdir_flag_spec='-L$libdir'
11158       hardcode_shlibpath_var=no
11159       ;;
11160
11161     *)
11162       ld_shlibs=no
11163       ;;
11164     esac
11165
11166     if test sni = "$host_vendor"; then
11167       case $host in
11168       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11169         export_dynamic_flag_spec='$wl-Blargedynsym'
11170         ;;
11171       esac
11172     fi
11173   fi
11174
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11176 printf "%s\n" "$ld_shlibs" >&6; }
11177 test no = "$ld_shlibs" && can_build_shared=no
11178
11179 with_gnu_ld=$with_gnu_ld
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195 #
11196 # Do we need to explicitly link libc?
11197 #
11198 case "x$archive_cmds_need_lc" in
11199 x|xyes)
11200   # Assume -lc should be added
11201   archive_cmds_need_lc=yes
11202
11203   if test yes,yes = "$GCC,$enable_shared"; then
11204     case $archive_cmds in
11205     *'~'*)
11206       # FIXME: we may have to deal with multi-command sequences.
11207       ;;
11208     '$CC '*)
11209       # Test whether the compiler implicitly links with -lc since on some
11210       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11211       # to ld, don't add -lc before -lgcc.
11212       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11213 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11214 if test ${lt_cv_archive_cmds_need_lc+y}
11215 then :
11216   printf %s "(cached) " >&6
11217 else $as_nop
11218   $RM conftest*
11219         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11220
11221         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11222   (eval $ac_compile) 2>&5
11223   ac_status=$?
11224   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225   test $ac_status = 0; } 2>conftest.err; then
11226           soname=conftest
11227           lib=conftest
11228           libobjs=conftest.$ac_objext
11229           deplibs=
11230           wl=$lt_prog_compiler_wl
11231           pic_flag=$lt_prog_compiler_pic
11232           compiler_flags=-v
11233           linker_flags=-v
11234           verstring=
11235           output_objdir=.
11236           libname=conftest
11237           lt_save_allow_undefined_flag=$allow_undefined_flag
11238           allow_undefined_flag=
11239           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11240   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241   ac_status=$?
11242   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243   test $ac_status = 0; }
11244           then
11245             lt_cv_archive_cmds_need_lc=no
11246           else
11247             lt_cv_archive_cmds_need_lc=yes
11248           fi
11249           allow_undefined_flag=$lt_save_allow_undefined_flag
11250         else
11251           cat conftest.err 1>&5
11252         fi
11253         $RM conftest*
11254
11255 fi
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11257 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11258       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11259       ;;
11260     esac
11261   fi
11262   ;;
11263 esac
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
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   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11417 printf %s "checking dynamic linker characteristics... " >&6; }
11418
11419 if test yes = "$GCC"; then
11420   case $host_os in
11421     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11422     *) lt_awk_arg='/^libraries:/' ;;
11423   esac
11424   case $host_os in
11425     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11426     *) lt_sed_strip_eq='s|=/|/|g' ;;
11427   esac
11428   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11429   case $lt_search_path_spec in
11430   *\;*)
11431     # if the path contains ";" then we assume it to be the separator
11432     # otherwise default to the standard path separator (i.e. ":") - it is
11433     # assumed that no part of a normal pathname contains ";" but that should
11434     # okay in the real world where ";" in dirpaths is itself problematic.
11435     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11436     ;;
11437   *)
11438     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11439     ;;
11440   esac
11441   # Ok, now we have the path, separated by spaces, we can step through it
11442   # and add multilib dir if necessary...
11443   lt_tmp_lt_search_path_spec=
11444   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11445   # ...but if some path component already ends with the multilib dir we assume
11446   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11447   case "$lt_multi_os_dir; $lt_search_path_spec " in
11448   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11449     lt_multi_os_dir=
11450     ;;
11451   esac
11452   for lt_sys_path in $lt_search_path_spec; do
11453     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11454       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11455     elif test -n "$lt_multi_os_dir"; then
11456       test -d "$lt_sys_path" && \
11457         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11458     fi
11459   done
11460   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11461 BEGIN {RS = " "; FS = "/|\n";} {
11462   lt_foo = "";
11463   lt_count = 0;
11464   for (lt_i = NF; lt_i > 0; lt_i--) {
11465     if ($lt_i != "" && $lt_i != ".") {
11466       if ($lt_i == "..") {
11467         lt_count++;
11468       } else {
11469         if (lt_count == 0) {
11470           lt_foo = "/" $lt_i lt_foo;
11471         } else {
11472           lt_count--;
11473         }
11474       }
11475     }
11476   }
11477   if (lt_foo != "") { lt_freq[lt_foo]++; }
11478   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11479 }'`
11480   # AWK program above erroneously prepends '/' to C:/dos/paths
11481   # for these hosts.
11482   case $host_os in
11483     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11484       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11485   esac
11486   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11487 else
11488   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11489 fi
11490 library_names_spec=
11491 libname_spec='lib$name'
11492 soname_spec=
11493 shrext_cmds=.so
11494 postinstall_cmds=
11495 postuninstall_cmds=
11496 finish_cmds=
11497 finish_eval=
11498 shlibpath_var=
11499 shlibpath_overrides_runpath=unknown
11500 version_type=none
11501 dynamic_linker="$host_os ld.so"
11502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11503 need_lib_prefix=unknown
11504 hardcode_into_libs=no
11505
11506 # when you set need_version to no, make sure it does not cause -set_version
11507 # flags to be left without arguments
11508 need_version=unknown
11509
11510
11511
11512 case $host_os in
11513 aix3*)
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11516   shlibpath_var=LIBPATH
11517
11518   # AIX 3 has no versioning support, so we append a major version to the name.
11519   soname_spec='$libname$release$shared_ext$major'
11520   ;;
11521
11522 aix[4-9]*)
11523   version_type=linux # correct to gnu/linux during the next big refactor
11524   need_lib_prefix=no
11525   need_version=no
11526   hardcode_into_libs=yes
11527   if test ia64 = "$host_cpu"; then
11528     # AIX 5 supports IA64
11529     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11530     shlibpath_var=LD_LIBRARY_PATH
11531   else
11532     # With GCC up to 2.95.x, collect2 would create an import file
11533     # for dependence libraries.  The import file would start with
11534     # the line '#! .'.  This would cause the generated library to
11535     # depend on '.', always an invalid library.  This was fixed in
11536     # development snapshots of GCC prior to 3.0.
11537     case $host_os in
11538       aix4 | aix4.[01] | aix4.[01].*)
11539       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11540            echo ' yes '
11541            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11542         :
11543       else
11544         can_build_shared=no
11545       fi
11546       ;;
11547     esac
11548     # Using Import Files as archive members, it is possible to support
11549     # filename-based versioning of shared library archives on AIX. While
11550     # this would work for both with and without runtime linking, it will
11551     # prevent static linking of such archives. So we do filename-based
11552     # shared library versioning with .so extension only, which is used
11553     # when both runtime linking and shared linking is enabled.
11554     # Unfortunately, runtime linking may impact performance, so we do
11555     # not want this to be the default eventually. Also, we use the
11556     # versioned .so libs for executables only if there is the -brtl
11557     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11558     # To allow for filename-based versioning support, we need to create
11559     # libNAME.so.V as an archive file, containing:
11560     # *) an Import File, referring to the versioned filename of the
11561     #    archive as well as the shared archive member, telling the
11562     #    bitwidth (32 or 64) of that shared object, and providing the
11563     #    list of exported symbols of that shared object, eventually
11564     #    decorated with the 'weak' keyword
11565     # *) the shared object with the F_LOADONLY flag set, to really avoid
11566     #    it being seen by the linker.
11567     # At run time we better use the real file rather than another symlink,
11568     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11569
11570     case $with_aix_soname,$aix_use_runtimelinking in
11571     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11572     # soname into executable. Probably we can add versioning support to
11573     # collect2, so additional links can be useful in future.
11574     aix,yes) # traditional libtool
11575       dynamic_linker='AIX unversionable lib.so'
11576       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577       # instead of lib<name>.a to let people know that these are not
11578       # typical AIX shared libraries.
11579       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580       ;;
11581     aix,no) # traditional AIX only
11582       dynamic_linker='AIX lib.a(lib.so.V)'
11583       # We preserve .a as extension for shared libraries through AIX4.2
11584       # and later when we are not doing run time linking.
11585       library_names_spec='$libname$release.a $libname.a'
11586       soname_spec='$libname$release$shared_ext$major'
11587       ;;
11588     svr4,*) # full svr4 only
11589       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11590       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11591       # We do not specify a path in Import Files, so LIBPATH fires.
11592       shlibpath_overrides_runpath=yes
11593       ;;
11594     *,yes) # both, prefer svr4
11595       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11596       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11597       # unpreferred sharedlib libNAME.a needs extra handling
11598       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"'
11599       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"'
11600       # We do not specify a path in Import Files, so LIBPATH fires.
11601       shlibpath_overrides_runpath=yes
11602       ;;
11603     *,no) # both, prefer aix
11604       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11605       library_names_spec='$libname$release.a $libname.a'
11606       soname_spec='$libname$release$shared_ext$major'
11607       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11608       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)'
11609       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"'
11610       ;;
11611     esac
11612     shlibpath_var=LIBPATH
11613   fi
11614   ;;
11615
11616 amigaos*)
11617   case $host_cpu in
11618   powerpc)
11619     # Since July 2007 AmigaOS4 officially supports .so libraries.
11620     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11621     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622     ;;
11623   m68k)
11624     library_names_spec='$libname.ixlibrary $libname.a'
11625     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11626     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'
11627     ;;
11628   esac
11629   ;;
11630
11631 beos*)
11632   library_names_spec='$libname$shared_ext'
11633   dynamic_linker="$host_os ld.so"
11634   shlibpath_var=LIBRARY_PATH
11635   ;;
11636
11637 bsdi[45]*)
11638   version_type=linux # correct to gnu/linux during the next big refactor
11639   need_version=no
11640   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641   soname_spec='$libname$release$shared_ext$major'
11642   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11643   shlibpath_var=LD_LIBRARY_PATH
11644   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11645   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11646   # the default ld.so.conf also contains /usr/contrib/lib and
11647   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11648   # libtool to hard-code these into programs
11649   ;;
11650
11651 cygwin* | mingw* | pw32* | cegcc*)
11652   version_type=windows
11653   shrext_cmds=.dll
11654   need_version=no
11655   need_lib_prefix=no
11656
11657   case $GCC,$cc_basename in
11658   yes,*)
11659     # gcc
11660     library_names_spec='$libname.dll.a'
11661     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11662     postinstall_cmds='base_file=`basename \$file`~
11663       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11664       dldir=$destdir/`dirname \$dlpath`~
11665       test -d \$dldir || mkdir -p \$dldir~
11666       $install_prog $dir/$dlname \$dldir/$dlname~
11667       chmod a+x \$dldir/$dlname~
11668       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11669         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11670       fi'
11671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11672       dlpath=$dir/\$dldll~
11673        $RM \$dlpath'
11674     shlibpath_overrides_runpath=yes
11675
11676     case $host_os in
11677     cygwin*)
11678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11679       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11680
11681       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11682       ;;
11683     mingw* | cegcc*)
11684       # MinGW DLLs use traditional 'lib' prefix
11685       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11686       ;;
11687     pw32*)
11688       # pw32 DLLs use 'pw' prefix rather than 'lib'
11689       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11690       ;;
11691     esac
11692     dynamic_linker='Win32 ld.exe'
11693     ;;
11694
11695   *,cl*)
11696     # Native MSVC
11697     libname_spec='$name'
11698     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11699     library_names_spec='$libname.dll.lib'
11700
11701     case $build_os in
11702     mingw*)
11703       sys_lib_search_path_spec=
11704       lt_save_ifs=$IFS
11705       IFS=';'
11706       for lt_path in $LIB
11707       do
11708         IFS=$lt_save_ifs
11709         # Let DOS variable expansion print the short 8.3 style file name.
11710         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11711         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11712       done
11713       IFS=$lt_save_ifs
11714       # Convert to MSYS style.
11715       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11716       ;;
11717     cygwin*)
11718       # Convert to unix form, then to dos form, then back to unix form
11719       # but this time dos style (no spaces!) so that the unix form looks
11720       # like /cygdrive/c/PROGRA~1:/cygdr...
11721       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11722       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11723       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11724       ;;
11725     *)
11726       sys_lib_search_path_spec=$LIB
11727       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11728         # It is most probably a Windows format PATH.
11729         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11730       else
11731         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11732       fi
11733       # FIXME: find the short name or the path components, as spaces are
11734       # common. (e.g. "Program Files" -> "PROGRA~1")
11735       ;;
11736     esac
11737
11738     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11739     postinstall_cmds='base_file=`basename \$file`~
11740       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11741       dldir=$destdir/`dirname \$dlpath`~
11742       test -d \$dldir || mkdir -p \$dldir~
11743       $install_prog $dir/$dlname \$dldir/$dlname'
11744     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11745       dlpath=$dir/\$dldll~
11746        $RM \$dlpath'
11747     shlibpath_overrides_runpath=yes
11748     dynamic_linker='Win32 link.exe'
11749     ;;
11750
11751   *)
11752     # Assume MSVC wrapper
11753     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11754     dynamic_linker='Win32 ld.exe'
11755     ;;
11756   esac
11757   # FIXME: first we should search . and the directory the executable is in
11758   shlibpath_var=PATH
11759   ;;
11760
11761 darwin* | rhapsody*)
11762   dynamic_linker="$host_os dyld"
11763   version_type=darwin
11764   need_lib_prefix=no
11765   need_version=no
11766   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11767   soname_spec='$libname$release$major$shared_ext'
11768   shlibpath_overrides_runpath=yes
11769   shlibpath_var=DYLD_LIBRARY_PATH
11770   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11771
11772   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11773   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11774   ;;
11775
11776 dgux*)
11777   version_type=linux # correct to gnu/linux during the next big refactor
11778   need_lib_prefix=no
11779   need_version=no
11780   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781   soname_spec='$libname$release$shared_ext$major'
11782   shlibpath_var=LD_LIBRARY_PATH
11783   ;;
11784
11785 freebsd* | dragonfly*)
11786   # DragonFly does not have aout.  When/if they implement a new
11787   # versioning mechanism, adjust this.
11788   if test -x /usr/bin/objformat; then
11789     objformat=`/usr/bin/objformat`
11790   else
11791     case $host_os in
11792     freebsd[23].*) objformat=aout ;;
11793     *) objformat=elf ;;
11794     esac
11795   fi
11796   version_type=freebsd-$objformat
11797   case $version_type in
11798     freebsd-elf*)
11799       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800       soname_spec='$libname$release$shared_ext$major'
11801       need_version=no
11802       need_lib_prefix=no
11803       ;;
11804     freebsd-*)
11805       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11806       need_version=yes
11807       ;;
11808   esac
11809   shlibpath_var=LD_LIBRARY_PATH
11810   case $host_os in
11811   freebsd2.*)
11812     shlibpath_overrides_runpath=yes
11813     ;;
11814   freebsd3.[01]* | freebsdelf3.[01]*)
11815     shlibpath_overrides_runpath=yes
11816     hardcode_into_libs=yes
11817     ;;
11818   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11819   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11820     shlibpath_overrides_runpath=no
11821     hardcode_into_libs=yes
11822     ;;
11823   *) # from 4.6 on, and DragonFly
11824     shlibpath_overrides_runpath=yes
11825     hardcode_into_libs=yes
11826     ;;
11827   esac
11828   ;;
11829
11830 haiku*)
11831   version_type=linux # correct to gnu/linux during the next big refactor
11832   need_lib_prefix=no
11833   need_version=no
11834   dynamic_linker="$host_os runtime_loader"
11835   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836   soname_spec='$libname$release$shared_ext$major'
11837   shlibpath_var=LIBRARY_PATH
11838   shlibpath_overrides_runpath=no
11839   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11840   hardcode_into_libs=yes
11841   ;;
11842
11843 hpux9* | hpux10* | hpux11*)
11844   # Give a soname corresponding to the major version so that dld.sl refuses to
11845   # link against other versions.
11846   version_type=sunos
11847   need_lib_prefix=no
11848   need_version=no
11849   case $host_cpu in
11850   ia64*)
11851     shrext_cmds='.so'
11852     hardcode_into_libs=yes
11853     dynamic_linker="$host_os dld.so"
11854     shlibpath_var=LD_LIBRARY_PATH
11855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857     soname_spec='$libname$release$shared_ext$major'
11858     if test 32 = "$HPUX_IA64_MODE"; then
11859       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11861     else
11862       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11863       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11864     fi
11865     ;;
11866   hppa*64*)
11867     shrext_cmds='.sl'
11868     hardcode_into_libs=yes
11869     dynamic_linker="$host_os dld.sl"
11870     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11871     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11872     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11873     soname_spec='$libname$release$shared_ext$major'
11874     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11876     ;;
11877   *)
11878     shrext_cmds='.sl'
11879     dynamic_linker="$host_os dld.sl"
11880     shlibpath_var=SHLIB_PATH
11881     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11882     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883     soname_spec='$libname$release$shared_ext$major'
11884     ;;
11885   esac
11886   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11887   postinstall_cmds='chmod 555 $lib'
11888   # or fails outright, so override atomically:
11889   install_override_mode=555
11890   ;;
11891
11892 interix[3-9]*)
11893   version_type=linux # correct to gnu/linux during the next big refactor
11894   need_lib_prefix=no
11895   need_version=no
11896   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897   soname_spec='$libname$release$shared_ext$major'
11898   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11899   shlibpath_var=LD_LIBRARY_PATH
11900   shlibpath_overrides_runpath=no
11901   hardcode_into_libs=yes
11902   ;;
11903
11904 irix5* | irix6* | nonstopux*)
11905   case $host_os in
11906     nonstopux*) version_type=nonstopux ;;
11907     *)
11908         if test yes = "$lt_cv_prog_gnu_ld"; then
11909                 version_type=linux # correct to gnu/linux during the next big refactor
11910         else
11911                 version_type=irix
11912         fi ;;
11913   esac
11914   need_lib_prefix=no
11915   need_version=no
11916   soname_spec='$libname$release$shared_ext$major'
11917   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11918   case $host_os in
11919   irix5* | nonstopux*)
11920     libsuff= shlibsuff=
11921     ;;
11922   *)
11923     case $LD in # libtool.m4 will add one of these switches to LD
11924     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11925       libsuff= shlibsuff= libmagic=32-bit;;
11926     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11927       libsuff=32 shlibsuff=N32 libmagic=N32;;
11928     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11929       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11930     *) libsuff= shlibsuff= libmagic=never-match;;
11931     esac
11932     ;;
11933   esac
11934   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11935   shlibpath_overrides_runpath=no
11936   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11937   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11938   hardcode_into_libs=yes
11939   ;;
11940
11941 # No shared lib support for Linux oldld, aout, or coff.
11942 linux*oldld* | linux*aout* | linux*coff*)
11943   dynamic_linker=no
11944   ;;
11945
11946 linux*android*)
11947   version_type=none # Android doesn't support versioned libraries.
11948   need_lib_prefix=no
11949   need_version=no
11950   library_names_spec='$libname$release$shared_ext'
11951   soname_spec='$libname$release$shared_ext'
11952   finish_cmds=
11953   shlibpath_var=LD_LIBRARY_PATH
11954   shlibpath_overrides_runpath=yes
11955
11956   # This implies no fast_install, which is unacceptable.
11957   # Some rework will be needed to allow for fast_install
11958   # before this can be enabled.
11959   hardcode_into_libs=yes
11960
11961   dynamic_linker='Android linker'
11962   # Don't embed -rpath directories since the linker doesn't support them.
11963   hardcode_libdir_flag_spec='-L$libdir'
11964   ;;
11965
11966 # This must be glibc/ELF.
11967 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11968   version_type=linux # correct to gnu/linux during the next big refactor
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972   soname_spec='$libname$release$shared_ext$major'
11973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   shlibpath_overrides_runpath=no
11976
11977   # Some binutils ld are patched to set DT_RUNPATH
11978   if test ${lt_cv_shlibpath_overrides_runpath+y}
11979 then :
11980   printf %s "(cached) " >&6
11981 else $as_nop
11982   lt_cv_shlibpath_overrides_runpath=no
11983     save_LDFLAGS=$LDFLAGS
11984     save_libdir=$libdir
11985     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11986          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h.  */
11989
11990 int
11991 main (void)
11992 {
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"
11999 then :
12000   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12001 then :
12002   lt_cv_shlibpath_overrides_runpath=yes
12003 fi
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12006     conftest$ac_exeext conftest.$ac_ext
12007     LDFLAGS=$save_LDFLAGS
12008     libdir=$save_libdir
12009
12010 fi
12011
12012   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12013
12014   # This implies no fast_install, which is unacceptable.
12015   # Some rework will be needed to allow for fast_install
12016   # before this can be enabled.
12017   hardcode_into_libs=yes
12018
12019   # Ideally, we could use ldconfig to report *all* directores which are
12020   # searched for libraries, however this is still not possible.  Aside from not
12021   # being certain /sbin/ldconfig is available, command
12022   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12023   # even though it is searched at run-time.  Try to do the best guess by
12024   # appending ld.so.conf contents (and includes) to the search path.
12025   if test -f /etc/ld.so.conf; then
12026     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' ' '`
12027     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12028   fi
12029
12030   # We used to test for /lib/ld.so.1 and disable shared libraries on
12031   # powerpc, because MkLinux only supported shared libraries with the
12032   # GNU dynamic linker.  Since this was broken with cross compilers,
12033   # most powerpc-linux boxes support dynamic linking these days and
12034   # people can always --disable-shared, the test was removed, and we
12035   # assume the GNU/Linux dynamic linker is in use.
12036   dynamic_linker='GNU/Linux ld.so'
12037   ;;
12038
12039 netbsdelf*-gnu)
12040   version_type=linux
12041   need_lib_prefix=no
12042   need_version=no
12043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12044   soname_spec='${libname}${release}${shared_ext}$major'
12045   shlibpath_var=LD_LIBRARY_PATH
12046   shlibpath_overrides_runpath=no
12047   hardcode_into_libs=yes
12048   dynamic_linker='NetBSD ld.elf_so'
12049   ;;
12050
12051 netbsd*)
12052   version_type=sunos
12053   need_lib_prefix=no
12054   need_version=no
12055   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12056     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12057     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12058     dynamic_linker='NetBSD (a.out) ld.so'
12059   else
12060     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061     soname_spec='$libname$release$shared_ext$major'
12062     dynamic_linker='NetBSD ld.elf_so'
12063   fi
12064   shlibpath_var=LD_LIBRARY_PATH
12065   shlibpath_overrides_runpath=yes
12066   hardcode_into_libs=yes
12067   ;;
12068
12069 newsos6)
12070   version_type=linux # correct to gnu/linux during the next big refactor
12071   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072   shlibpath_var=LD_LIBRARY_PATH
12073   shlibpath_overrides_runpath=yes
12074   ;;
12075
12076 *nto* | *qnx*)
12077   version_type=qnx
12078   need_lib_prefix=no
12079   need_version=no
12080   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081   soname_spec='$libname$release$shared_ext$major'
12082   shlibpath_var=LD_LIBRARY_PATH
12083   shlibpath_overrides_runpath=no
12084   hardcode_into_libs=yes
12085   dynamic_linker='ldqnx.so'
12086   ;;
12087
12088 openbsd* | bitrig*)
12089   version_type=sunos
12090   sys_lib_dlsearch_path_spec=/usr/lib
12091   need_lib_prefix=no
12092   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12093     need_version=no
12094   else
12095     need_version=yes
12096   fi
12097   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12099   shlibpath_var=LD_LIBRARY_PATH
12100   shlibpath_overrides_runpath=yes
12101   ;;
12102
12103 os2*)
12104   libname_spec='$name'
12105   version_type=windows
12106   shrext_cmds=.dll
12107   need_version=no
12108   need_lib_prefix=no
12109   # OS/2 can only load a DLL with a base name of 8 characters or less.
12110   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12111     v=$($ECHO $release$versuffix | tr -d .-);
12112     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12113     $ECHO $n$v`$shared_ext'
12114   library_names_spec='${libname}_dll.$libext'
12115   dynamic_linker='OS/2 ld.exe'
12116   shlibpath_var=BEGINLIBPATH
12117   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12118   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119   postinstall_cmds='base_file=`basename \$file`~
12120     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12121     dldir=$destdir/`dirname \$dlpath`~
12122     test -d \$dldir || mkdir -p \$dldir~
12123     $install_prog $dir/$dlname \$dldir/$dlname~
12124     chmod a+x \$dldir/$dlname~
12125     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12126       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12127     fi'
12128   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12129     dlpath=$dir/\$dldll~
12130     $RM \$dlpath'
12131   ;;
12132
12133 osf3* | osf4* | osf5*)
12134   version_type=osf
12135   need_lib_prefix=no
12136   need_version=no
12137   soname_spec='$libname$release$shared_ext$major'
12138   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12139   shlibpath_var=LD_LIBRARY_PATH
12140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12141   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12142   ;;
12143
12144 rdos*)
12145   dynamic_linker=no
12146   ;;
12147
12148 solaris*)
12149   version_type=linux # correct to gnu/linux during the next big refactor
12150   need_lib_prefix=no
12151   need_version=no
12152   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153   soname_spec='$libname$release$shared_ext$major'
12154   shlibpath_var=LD_LIBRARY_PATH
12155   shlibpath_overrides_runpath=yes
12156   hardcode_into_libs=yes
12157   # ldd complains unless libraries are executable
12158   postinstall_cmds='chmod +x $lib'
12159   ;;
12160
12161 sunos4*)
12162   version_type=sunos
12163   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12165   shlibpath_var=LD_LIBRARY_PATH
12166   shlibpath_overrides_runpath=yes
12167   if test yes = "$with_gnu_ld"; then
12168     need_lib_prefix=no
12169   fi
12170   need_version=yes
12171   ;;
12172
12173 sysv4 | sysv4.3*)
12174   version_type=linux # correct to gnu/linux during the next big refactor
12175   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176   soname_spec='$libname$release$shared_ext$major'
12177   shlibpath_var=LD_LIBRARY_PATH
12178   case $host_vendor in
12179     sni)
12180       shlibpath_overrides_runpath=no
12181       need_lib_prefix=no
12182       runpath_var=LD_RUN_PATH
12183       ;;
12184     siemens)
12185       need_lib_prefix=no
12186       ;;
12187     motorola)
12188       need_lib_prefix=no
12189       need_version=no
12190       shlibpath_overrides_runpath=no
12191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12192       ;;
12193   esac
12194   ;;
12195
12196 sysv4*MP*)
12197   if test -d /usr/nec; then
12198     version_type=linux # correct to gnu/linux during the next big refactor
12199     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12200     soname_spec='$libname$shared_ext.$major'
12201     shlibpath_var=LD_LIBRARY_PATH
12202   fi
12203   ;;
12204
12205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12206   version_type=sco
12207   need_lib_prefix=no
12208   need_version=no
12209   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12210   soname_spec='$libname$release$shared_ext$major'
12211   shlibpath_var=LD_LIBRARY_PATH
12212   shlibpath_overrides_runpath=yes
12213   hardcode_into_libs=yes
12214   if test yes = "$with_gnu_ld"; then
12215     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12216   else
12217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12218     case $host_os in
12219       sco3.2v5*)
12220         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12221         ;;
12222     esac
12223   fi
12224   sys_lib_dlsearch_path_spec='/usr/lib'
12225   ;;
12226
12227 tpf*)
12228   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12229   version_type=linux # correct to gnu/linux during the next big refactor
12230   need_lib_prefix=no
12231   need_version=no
12232   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233   shlibpath_var=LD_LIBRARY_PATH
12234   shlibpath_overrides_runpath=no
12235   hardcode_into_libs=yes
12236   ;;
12237
12238 uts4*)
12239   version_type=linux # correct to gnu/linux during the next big refactor
12240   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241   soname_spec='$libname$release$shared_ext$major'
12242   shlibpath_var=LD_LIBRARY_PATH
12243   ;;
12244
12245 *)
12246   dynamic_linker=no
12247   ;;
12248 esac
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12250 printf "%s\n" "$dynamic_linker" >&6; }
12251 test no = "$dynamic_linker" && can_build_shared=no
12252
12253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12254 if test yes = "$GCC"; then
12255   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12256 fi
12257
12258 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12259   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12260 fi
12261
12262 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12263   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12264 fi
12265
12266 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12267 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12268
12269 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12270 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12271
12272 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12273 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12372 printf %s "checking how to hardcode library paths into programs... " >&6; }
12373 hardcode_action=
12374 if test -n "$hardcode_libdir_flag_spec" ||
12375    test -n "$runpath_var" ||
12376    test yes = "$hardcode_automatic"; then
12377
12378   # We can hardcode non-existent directories.
12379   if test no != "$hardcode_direct" &&
12380      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12381      # have to relink, otherwise we might link with an installed library
12382      # when we should be linking with a yet-to-be-installed one
12383      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12384      test no != "$hardcode_minus_L"; then
12385     # Linking always hardcodes the temporary library directory.
12386     hardcode_action=relink
12387   else
12388     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12389     hardcode_action=immediate
12390   fi
12391 else
12392   # We cannot hardcode anything, or else we can only hardcode existing
12393   # directories.
12394   hardcode_action=unsupported
12395 fi
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12397 printf "%s\n" "$hardcode_action" >&6; }
12398
12399 if test relink = "$hardcode_action" ||
12400    test yes = "$inherit_rpath"; then
12401   # Fast installation is not supported
12402   enable_fast_install=no
12403 elif test yes = "$shlibpath_overrides_runpath" ||
12404      test no = "$enable_shared"; then
12405   # Fast installation is not necessary
12406   enable_fast_install=needless
12407 fi
12408
12409
12410
12411
12412
12413
12414   if test yes != "$enable_dlopen"; then
12415   enable_dlopen=unknown
12416   enable_dlopen_self=unknown
12417   enable_dlopen_self_static=unknown
12418 else
12419   lt_cv_dlopen=no
12420   lt_cv_dlopen_libs=
12421
12422   case $host_os in
12423   beos*)
12424     lt_cv_dlopen=load_add_on
12425     lt_cv_dlopen_libs=
12426     lt_cv_dlopen_self=yes
12427     ;;
12428
12429   mingw* | pw32* | cegcc*)
12430     lt_cv_dlopen=LoadLibrary
12431     lt_cv_dlopen_libs=
12432     ;;
12433
12434   cygwin*)
12435     lt_cv_dlopen=dlopen
12436     lt_cv_dlopen_libs=
12437     ;;
12438
12439   darwin*)
12440     # if libdl is installed we need to link against it
12441     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12442 printf %s "checking for dlopen in -ldl... " >&6; }
12443 if test ${ac_cv_lib_dl_dlopen+y}
12444 then :
12445   printf %s "(cached) " >&6
12446 else $as_nop
12447   ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-ldl  $LIBS"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h.  */
12451
12452 /* Override any GCC internal prototype to avoid an error.
12453    Use char because int might match the return type of a GCC
12454    builtin and then its argument prototype would still apply.  */
12455 char dlopen ();
12456 int
12457 main (void)
12458 {
12459 return dlopen ();
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"
12465 then :
12466   ac_cv_lib_dl_dlopen=yes
12467 else $as_nop
12468   ac_cv_lib_dl_dlopen=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12471     conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12473 fi
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12475 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12476 if test "x$ac_cv_lib_dl_dlopen" = xyes
12477 then :
12478   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12479 else $as_nop
12480
12481     lt_cv_dlopen=dyld
12482     lt_cv_dlopen_libs=
12483     lt_cv_dlopen_self=yes
12484
12485 fi
12486
12487     ;;
12488
12489   tpf*)
12490     # Don't try to run any link tests for TPF.  We know it's impossible
12491     # because TPF is a cross-compiler, and we know how we open DSOs.
12492     lt_cv_dlopen=dlopen
12493     lt_cv_dlopen_libs=
12494     lt_cv_dlopen_self=no
12495     ;;
12496
12497   *)
12498     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12499 if test "x$ac_cv_func_shl_load" = xyes
12500 then :
12501   lt_cv_dlopen=shl_load
12502 else $as_nop
12503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12504 printf %s "checking for shl_load in -ldld... " >&6; }
12505 if test ${ac_cv_lib_dld_shl_load+y}
12506 then :
12507   printf %s "(cached) " >&6
12508 else $as_nop
12509   ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-ldld  $LIBS"
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h.  */
12513
12514 /* Override any GCC internal prototype to avoid an error.
12515    Use char because int might match the return type of a GCC
12516    builtin and then its argument prototype would still apply.  */
12517 char shl_load ();
12518 int
12519 main (void)
12520 {
12521 return shl_load ();
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"
12527 then :
12528   ac_cv_lib_dld_shl_load=yes
12529 else $as_nop
12530   ac_cv_lib_dld_shl_load=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533     conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12535 fi
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12537 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12538 if test "x$ac_cv_lib_dld_shl_load" = xyes
12539 then :
12540   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12541 else $as_nop
12542   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12543 if test "x$ac_cv_func_dlopen" = xyes
12544 then :
12545   lt_cv_dlopen=dlopen
12546 else $as_nop
12547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12548 printf %s "checking for dlopen in -ldl... " >&6; }
12549 if test ${ac_cv_lib_dl_dlopen+y}
12550 then :
12551   printf %s "(cached) " >&6
12552 else $as_nop
12553   ac_check_lib_save_LIBS=$LIBS
12554 LIBS="-ldl  $LIBS"
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h.  */
12557
12558 /* Override any GCC internal prototype to avoid an error.
12559    Use char because int might match the return type of a GCC
12560    builtin and then its argument prototype would still apply.  */
12561 char dlopen ();
12562 int
12563 main (void)
12564 {
12565 return dlopen ();
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"
12571 then :
12572   ac_cv_lib_dl_dlopen=yes
12573 else $as_nop
12574   ac_cv_lib_dl_dlopen=no
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12577     conftest$ac_exeext conftest.$ac_ext
12578 LIBS=$ac_check_lib_save_LIBS
12579 fi
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12581 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12582 if test "x$ac_cv_lib_dl_dlopen" = xyes
12583 then :
12584   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12585 else $as_nop
12586   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12587 printf %s "checking for dlopen in -lsvld... " >&6; }
12588 if test ${ac_cv_lib_svld_dlopen+y}
12589 then :
12590   printf %s "(cached) " >&6
12591 else $as_nop
12592   ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lsvld  $LIBS"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h.  */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598    Use char because int might match the return type of a GCC
12599    builtin and then its argument prototype would still apply.  */
12600 char dlopen ();
12601 int
12602 main (void)
12603 {
12604 return dlopen ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"
12610 then :
12611   ac_cv_lib_svld_dlopen=yes
12612 else $as_nop
12613   ac_cv_lib_svld_dlopen=no
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12616     conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12618 fi
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12620 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12621 if test "x$ac_cv_lib_svld_dlopen" = xyes
12622 then :
12623   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12624 else $as_nop
12625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12626 printf %s "checking for dld_link in -ldld... " >&6; }
12627 if test ${ac_cv_lib_dld_dld_link+y}
12628 then :
12629   printf %s "(cached) " >&6
12630 else $as_nop
12631   ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldld  $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 char dld_link ();
12640 int
12641 main (void)
12642 {
12643 return dld_link ();
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 if ac_fn_c_try_link "$LINENO"
12649 then :
12650   ac_cv_lib_dld_dld_link=yes
12651 else $as_nop
12652   ac_cv_lib_dld_dld_link=no
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12655     conftest$ac_exeext conftest.$ac_ext
12656 LIBS=$ac_check_lib_save_LIBS
12657 fi
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12659 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12660 if test "x$ac_cv_lib_dld_dld_link" = xyes
12661 then :
12662   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12663 fi
12664
12665
12666 fi
12667
12668
12669 fi
12670
12671
12672 fi
12673
12674
12675 fi
12676
12677
12678 fi
12679
12680     ;;
12681   esac
12682
12683   if test no = "$lt_cv_dlopen"; then
12684     enable_dlopen=no
12685   else
12686     enable_dlopen=yes
12687   fi
12688
12689   case $lt_cv_dlopen in
12690   dlopen)
12691     save_CPPFLAGS=$CPPFLAGS
12692     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12693
12694     save_LDFLAGS=$LDFLAGS
12695     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12696
12697     save_LIBS=$LIBS
12698     LIBS="$lt_cv_dlopen_libs $LIBS"
12699
12700     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12701 printf %s "checking whether a program can dlopen itself... " >&6; }
12702 if test ${lt_cv_dlopen_self+y}
12703 then :
12704   printf %s "(cached) " >&6
12705 else $as_nop
12706           if test yes = "$cross_compiling"; then :
12707   lt_cv_dlopen_self=cross
12708 else
12709   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12710   lt_status=$lt_dlunknown
12711   cat > conftest.$ac_ext <<_LT_EOF
12712 #line $LINENO "configure"
12713 #include "confdefs.h"
12714
12715 #if HAVE_DLFCN_H
12716 #include <dlfcn.h>
12717 #endif
12718
12719 #include <stdio.h>
12720
12721 #ifdef RTLD_GLOBAL
12722 #  define LT_DLGLOBAL           RTLD_GLOBAL
12723 #else
12724 #  ifdef DL_GLOBAL
12725 #    define LT_DLGLOBAL         DL_GLOBAL
12726 #  else
12727 #    define LT_DLGLOBAL         0
12728 #  endif
12729 #endif
12730
12731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12732    find out it does not work in some platform. */
12733 #ifndef LT_DLLAZY_OR_NOW
12734 #  ifdef RTLD_LAZY
12735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12736 #  else
12737 #    ifdef DL_LAZY
12738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12739 #    else
12740 #      ifdef RTLD_NOW
12741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12742 #      else
12743 #        ifdef DL_NOW
12744 #          define LT_DLLAZY_OR_NOW      DL_NOW
12745 #        else
12746 #          define LT_DLLAZY_OR_NOW      0
12747 #        endif
12748 #      endif
12749 #    endif
12750 #  endif
12751 #endif
12752
12753 /* When -fvisibility=hidden is used, assume the code has been annotated
12754    correspondingly for the symbols needed.  */
12755 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12756 int fnord () __attribute__((visibility("default")));
12757 #endif
12758
12759 int fnord () { return 42; }
12760 int main ()
12761 {
12762   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12763   int status = $lt_dlunknown;
12764
12765   if (self)
12766     {
12767       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12768       else
12769         {
12770           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12771           else puts (dlerror ());
12772         }
12773       /* dlclose (self); */
12774     }
12775   else
12776     puts (dlerror ());
12777
12778   return status;
12779 }
12780 _LT_EOF
12781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12782   (eval $ac_link) 2>&5
12783   ac_status=$?
12784   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12786     (./conftest; exit; ) >&5 2>/dev/null
12787     lt_status=$?
12788     case x$lt_status in
12789       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12790       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12791       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12792     esac
12793   else :
12794     # compilation failed
12795     lt_cv_dlopen_self=no
12796   fi
12797 fi
12798 rm -fr conftest*
12799
12800
12801 fi
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12803 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12804
12805     if test yes = "$lt_cv_dlopen_self"; then
12806       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12808 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12809 if test ${lt_cv_dlopen_self_static+y}
12810 then :
12811   printf %s "(cached) " >&6
12812 else $as_nop
12813           if test yes = "$cross_compiling"; then :
12814   lt_cv_dlopen_self_static=cross
12815 else
12816   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12817   lt_status=$lt_dlunknown
12818   cat > conftest.$ac_ext <<_LT_EOF
12819 #line $LINENO "configure"
12820 #include "confdefs.h"
12821
12822 #if HAVE_DLFCN_H
12823 #include <dlfcn.h>
12824 #endif
12825
12826 #include <stdio.h>
12827
12828 #ifdef RTLD_GLOBAL
12829 #  define LT_DLGLOBAL           RTLD_GLOBAL
12830 #else
12831 #  ifdef DL_GLOBAL
12832 #    define LT_DLGLOBAL         DL_GLOBAL
12833 #  else
12834 #    define LT_DLGLOBAL         0
12835 #  endif
12836 #endif
12837
12838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12839    find out it does not work in some platform. */
12840 #ifndef LT_DLLAZY_OR_NOW
12841 #  ifdef RTLD_LAZY
12842 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12843 #  else
12844 #    ifdef DL_LAZY
12845 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12846 #    else
12847 #      ifdef RTLD_NOW
12848 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12849 #      else
12850 #        ifdef DL_NOW
12851 #          define LT_DLLAZY_OR_NOW      DL_NOW
12852 #        else
12853 #          define LT_DLLAZY_OR_NOW      0
12854 #        endif
12855 #      endif
12856 #    endif
12857 #  endif
12858 #endif
12859
12860 /* When -fvisibility=hidden is used, assume the code has been annotated
12861    correspondingly for the symbols needed.  */
12862 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12863 int fnord () __attribute__((visibility("default")));
12864 #endif
12865
12866 int fnord () { return 42; }
12867 int main ()
12868 {
12869   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12870   int status = $lt_dlunknown;
12871
12872   if (self)
12873     {
12874       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12875       else
12876         {
12877           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12878           else puts (dlerror ());
12879         }
12880       /* dlclose (self); */
12881     }
12882   else
12883     puts (dlerror ());
12884
12885   return status;
12886 }
12887 _LT_EOF
12888   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12889   (eval $ac_link) 2>&5
12890   ac_status=$?
12891   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12892   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12893     (./conftest; exit; ) >&5 2>/dev/null
12894     lt_status=$?
12895     case x$lt_status in
12896       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12897       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12898       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12899     esac
12900   else :
12901     # compilation failed
12902     lt_cv_dlopen_self_static=no
12903   fi
12904 fi
12905 rm -fr conftest*
12906
12907
12908 fi
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12910 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12911     fi
12912
12913     CPPFLAGS=$save_CPPFLAGS
12914     LDFLAGS=$save_LDFLAGS
12915     LIBS=$save_LIBS
12916     ;;
12917   esac
12918
12919   case $lt_cv_dlopen_self in
12920   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12921   *) enable_dlopen_self=unknown ;;
12922   esac
12923
12924   case $lt_cv_dlopen_self_static in
12925   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12926   *) enable_dlopen_self_static=unknown ;;
12927   esac
12928 fi
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946 striplib=
12947 old_striplib=
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12949 printf %s "checking whether stripping libraries is possible... " >&6; }
12950 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12951   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12952   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954 printf "%s\n" "yes" >&6; }
12955 else
12956 # FIXME - insert some real tests, host_os isn't really good enough
12957   case $host_os in
12958   darwin*)
12959     if test -n "$STRIP"; then
12960       striplib="$STRIP -x"
12961       old_striplib="$STRIP -S"
12962       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963 printf "%s\n" "yes" >&6; }
12964     else
12965       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 printf "%s\n" "no" >&6; }
12967     fi
12968     ;;
12969   *)
12970     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 printf "%s\n" "no" >&6; }
12972     ;;
12973   esac
12974 fi
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987   # Report what library types will actually be built
12988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12989 printf %s "checking if libtool supports shared libraries... " >&6; }
12990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12991 printf "%s\n" "$can_build_shared" >&6; }
12992
12993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12994 printf %s "checking whether to build shared libraries... " >&6; }
12995   test no = "$can_build_shared" && enable_shared=no
12996
12997   # On AIX, shared libraries and static libraries use the same namespace, and
12998   # are all built from PIC.
12999   case $host_os in
13000   aix3*)
13001     test yes = "$enable_shared" && enable_static=no
13002     if test -n "$RANLIB"; then
13003       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13004       postinstall_cmds='$RANLIB $lib'
13005     fi
13006     ;;
13007
13008   aix[4-9]*)
13009     if test ia64 != "$host_cpu"; then
13010       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13011       yes,aix,yes) ;;                   # shared object as lib.so file only
13012       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13013       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13014       esac
13015     fi
13016     ;;
13017   esac
13018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13019 printf "%s\n" "$enable_shared" >&6; }
13020
13021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13022 printf %s "checking whether to build static libraries... " >&6; }
13023   # Make sure either enable_shared or enable_static is yes.
13024   test yes = "$enable_shared" || enable_static=yes
13025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13026 printf "%s\n" "$enable_static" >&6; }
13027
13028
13029
13030
13031 fi
13032 ac_ext=c
13033 ac_cpp='$CPP $CPPFLAGS'
13034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13037
13038 CC=$lt_save_CC
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054         ac_config_commands="$ac_config_commands libtool"
13055
13056
13057
13058
13059 # Only expand once:
13060
13061
13062
13063
13064
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13066 printf %s "checking target system type... " >&6; }
13067 if test ${ac_cv_target+y}
13068 then :
13069   printf %s "(cached) " >&6
13070 else $as_nop
13071   if test "x$target_alias" = x; then
13072   ac_cv_target=$ac_cv_host
13073 else
13074   ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
13075     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
13076 fi
13077
13078 fi
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13080 printf "%s\n" "$ac_cv_target" >&6; }
13081 case $ac_cv_target in
13082 *-*-*) ;;
13083 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13084 esac
13085 target=$ac_cv_target
13086 ac_save_IFS=$IFS; IFS='-'
13087 set x $ac_cv_target
13088 shift
13089 target_cpu=$1
13090 target_vendor=$2
13091 shift; shift
13092 # Remember, the first character of IFS is used to create $*,
13093 # except with old shells:
13094 target_os=$*
13095 IFS=$ac_save_IFS
13096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13097
13098
13099 # The aliases save the names the user supplied, while $host etc.
13100 # will get canonicalized.
13101 test -n "$target_alias" &&
13102   test "$program_prefix$program_suffix$program_transform_name" = \
13103     NONENONEs,x,x, &&
13104   program_prefix=${target_alias}-
13105
13106 am__api_version='1.16'
13107
13108
13109   # Find a good install program.  We prefer a C program (faster),
13110 # so one script is as good as another.  But avoid the broken or
13111 # incompatible versions:
13112 # SysV /etc/install, /usr/sbin/install
13113 # SunOS /usr/etc/install
13114 # IRIX /sbin/install
13115 # AIX /bin/install
13116 # AmigaOS /C/install, which installs bootblocks on floppy discs
13117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13120 # OS/2's system install, which has a completely different semantic
13121 # ./install, which can be erroneously created by make from ./install.sh.
13122 # Reject install programs that cannot install multiple files.
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13124 printf %s "checking for a BSD-compatible install... " >&6; }
13125 if test -z "$INSTALL"; then
13126 if test ${ac_cv_path_install+y}
13127 then :
13128   printf %s "(cached) " >&6
13129 else $as_nop
13130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133   IFS=$as_save_IFS
13134   case $as_dir in #(((
13135     '') as_dir=./ ;;
13136     */) ;;
13137     *) as_dir=$as_dir/ ;;
13138   esac
13139     # Account for fact that we put trailing slashes in our PATH walk.
13140 case $as_dir in #((
13141   ./ | /[cC]/* | \
13142   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13143   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13144   /usr/ucb/* ) ;;
13145   *)
13146     # OSF1 and SCO ODT 3.0 have their own names for install.
13147     # Don't use installbsd from OSF since it installs stuff as root
13148     # by default.
13149     for ac_prog in ginstall scoinst install; do
13150       for ac_exec_ext in '' $ac_executable_extensions; do
13151         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
13152           if test $ac_prog = install &&
13153             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13154             # AIX install.  It has an incompatible calling convention.
13155             :
13156           elif test $ac_prog = install &&
13157             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13158             # program-specific install script used by HP pwplus--don't use.
13159             :
13160           else
13161             rm -rf conftest.one conftest.two conftest.dir
13162             echo one > conftest.one
13163             echo two > conftest.two
13164             mkdir conftest.dir
13165             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
13166               test -s conftest.one && test -s conftest.two &&
13167               test -s conftest.dir/conftest.one &&
13168               test -s conftest.dir/conftest.two
13169             then
13170               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
13171               break 3
13172             fi
13173           fi
13174         fi
13175       done
13176     done
13177     ;;
13178 esac
13179
13180   done
13181 IFS=$as_save_IFS
13182
13183 rm -rf conftest.one conftest.two conftest.dir
13184
13185 fi
13186   if test ${ac_cv_path_install+y}; then
13187     INSTALL=$ac_cv_path_install
13188   else
13189     # As a last resort, use the slow shell script.  Don't cache a
13190     # value for INSTALL within a source directory, because that will
13191     # break other packages using the cache if that directory is
13192     # removed, or if the value is a relative name.
13193     INSTALL=$ac_install_sh
13194   fi
13195 fi
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13197 printf "%s\n" "$INSTALL" >&6; }
13198
13199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13200 # It thinks the first close brace ends the variable substitution.
13201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13202
13203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13204
13205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13206
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13208 printf %s "checking whether build environment is sane... " >&6; }
13209 # Reject unsafe characters in $srcdir or the absolute working directory
13210 # name.  Accept space and tab only in the latter.
13211 am_lf='
13212 '
13213 case `pwd` in
13214   *[\\\"\#\$\&\'\`$am_lf]*)
13215     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13216 esac
13217 case $srcdir in
13218   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
13219     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13220 esac
13221
13222 # Do 'set' in a subshell so we don't clobber the current shell's
13223 # arguments.  Must try -L first in case configure is actually a
13224 # symlink; some systems play weird games with the mod time of symlinks
13225 # (eg FreeBSD returns the mod time of the symlink's containing
13226 # directory).
13227 if (
13228    am_has_slept=no
13229    for am_try in 1 2; do
13230      echo "timestamp, slept: $am_has_slept" > conftest.file
13231      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13232      if test "$*" = "X"; then
13233         # -L didn't work.
13234         set X `ls -t "$srcdir/configure" conftest.file`
13235      fi
13236      if test "$*" != "X $srcdir/configure conftest.file" \
13237         && test "$*" != "X conftest.file $srcdir/configure"; then
13238
13239         # If neither matched, then we have a broken ls.  This can happen
13240         # if, for instance, CONFIG_SHELL is bash and it inherits a
13241         # broken ls alias from the environment.  This has actually
13242         # happened.  Such a system could not be considered "sane".
13243         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
13244   alias in your environment" "$LINENO" 5
13245      fi
13246      if test "$2" = conftest.file || test $am_try -eq 2; then
13247        break
13248      fi
13249      # Just in case.
13250      sleep 1
13251      am_has_slept=yes
13252    done
13253    test "$2" = conftest.file
13254    )
13255 then
13256    # Ok.
13257    :
13258 else
13259    as_fn_error $? "newly created file is older than distributed files!
13260 Check your system clock" "$LINENO" 5
13261 fi
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13263 printf "%s\n" "yes" >&6; }
13264 # If we didn't sleep, we still need to ensure time stamps of config.status and
13265 # generated files are strictly newer.
13266 am_sleep_pid=
13267 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13268   ( sleep 1 ) &
13269   am_sleep_pid=$!
13270 fi
13271
13272 rm -f conftest.file
13273
13274 test "$program_prefix" != NONE &&
13275   program_transform_name="s&^&$program_prefix&;$program_transform_name"
13276 # Use a double $ so make ignores it.
13277 test "$program_suffix" != NONE &&
13278   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13279 # Double any \ or $.
13280 # By default was `s,x,x', remove it if useless.
13281 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13282 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
13283
13284
13285   if test x"${MISSING+set}" != xset; then
13286   MISSING="\${SHELL} '$am_aux_dir/missing'"
13287 fi
13288 # Use eval to expand $SHELL
13289 if eval "$MISSING --is-lightweight"; then
13290   am_missing_run="$MISSING "
13291 else
13292   am_missing_run=
13293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13294 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13295 fi
13296
13297 if test x"${install_sh+set}" != xset; then
13298   case $am_aux_dir in
13299   *\ * | *\     *)
13300     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13301   *)
13302     install_sh="\${SHELL} $am_aux_dir/install-sh"
13303   esac
13304 fi
13305
13306 # Installed binaries are usually stripped using 'strip' when the user
13307 # run "make install-strip".  However 'strip' might not be the right
13308 # tool to use in cross-compilation environments, therefore Automake
13309 # will honor the 'STRIP' environment variable to overrule this program.
13310 if test "$cross_compiling" != no; then
13311   if test -n "$ac_tool_prefix"; then
13312   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13313 set dummy ${ac_tool_prefix}strip; ac_word=$2
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 printf %s "checking for $ac_word... " >&6; }
13316 if test ${ac_cv_prog_STRIP+y}
13317 then :
13318   printf %s "(cached) " >&6
13319 else $as_nop
13320   if test -n "$STRIP"; then
13321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326   IFS=$as_save_IFS
13327   case $as_dir in #(((
13328     '') as_dir=./ ;;
13329     */) ;;
13330     *) as_dir=$as_dir/ ;;
13331   esac
13332     for ac_exec_ext in '' $ac_executable_extensions; do
13333   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13334     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13335     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13336     break 2
13337   fi
13338 done
13339   done
13340 IFS=$as_save_IFS
13341
13342 fi
13343 fi
13344 STRIP=$ac_cv_prog_STRIP
13345 if test -n "$STRIP"; then
13346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13347 printf "%s\n" "$STRIP" >&6; }
13348 else
13349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 printf "%s\n" "no" >&6; }
13351 fi
13352
13353
13354 fi
13355 if test -z "$ac_cv_prog_STRIP"; then
13356   ac_ct_STRIP=$STRIP
13357   # Extract the first word of "strip", so it can be a program name with args.
13358 set dummy strip; ac_word=$2
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 printf %s "checking for $ac_word... " >&6; }
13361 if test ${ac_cv_prog_ac_ct_STRIP+y}
13362 then :
13363   printf %s "(cached) " >&6
13364 else $as_nop
13365   if test -n "$ac_ct_STRIP"; then
13366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13367 else
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13370 do
13371   IFS=$as_save_IFS
13372   case $as_dir in #(((
13373     '') as_dir=./ ;;
13374     */) ;;
13375     *) as_dir=$as_dir/ ;;
13376   esac
13377     for ac_exec_ext in '' $ac_executable_extensions; do
13378   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13379     ac_cv_prog_ac_ct_STRIP="strip"
13380     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13381     break 2
13382   fi
13383 done
13384   done
13385 IFS=$as_save_IFS
13386
13387 fi
13388 fi
13389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13390 if test -n "$ac_ct_STRIP"; then
13391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13392 printf "%s\n" "$ac_ct_STRIP" >&6; }
13393 else
13394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13396 fi
13397
13398   if test "x$ac_ct_STRIP" = x; then
13399     STRIP=":"
13400   else
13401     case $cross_compiling:$ac_tool_warned in
13402 yes:)
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405 ac_tool_warned=yes ;;
13406 esac
13407     STRIP=$ac_ct_STRIP
13408   fi
13409 else
13410   STRIP="$ac_cv_prog_STRIP"
13411 fi
13412
13413 fi
13414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13415
13416
13417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13418 printf %s "checking for a race-free mkdir -p... " >&6; }
13419 if test -z "$MKDIR_P"; then
13420   if test ${ac_cv_path_mkdir+y}
13421 then :
13422   printf %s "(cached) " >&6
13423 else $as_nop
13424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13426 do
13427   IFS=$as_save_IFS
13428   case $as_dir in #(((
13429     '') as_dir=./ ;;
13430     */) ;;
13431     *) as_dir=$as_dir/ ;;
13432   esac
13433     for ac_prog in mkdir gmkdir; do
13434          for ac_exec_ext in '' $ac_executable_extensions; do
13435            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13436            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13437              'mkdir ('*'coreutils) '* | \
13438              'BusyBox '* | \
13439              'mkdir (fileutils) '4.1*)
13440                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13441                break 3;;
13442            esac
13443          done
13444        done
13445   done
13446 IFS=$as_save_IFS
13447
13448 fi
13449
13450   test -d ./--version && rmdir ./--version
13451   if test ${ac_cv_path_mkdir+y}; then
13452     MKDIR_P="$ac_cv_path_mkdir -p"
13453   else
13454     # As a last resort, use the slow shell script.  Don't cache a
13455     # value for MKDIR_P within a source directory, because that will
13456     # break other packages using the cache if that directory is
13457     # removed, or if the value is a relative name.
13458     MKDIR_P="$ac_install_sh -d"
13459   fi
13460 fi
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13462 printf "%s\n" "$MKDIR_P" >&6; }
13463
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13465 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13466 set x ${MAKE-make}
13467 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13468 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13469 then :
13470   printf %s "(cached) " >&6
13471 else $as_nop
13472   cat >conftest.make <<\_ACEOF
13473 SHELL = /bin/sh
13474 all:
13475         @echo '@@@%%%=$(MAKE)=@@@%%%'
13476 _ACEOF
13477 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13479   *@@@%%%=?*=@@@%%%*)
13480     eval ac_cv_prog_make_${ac_make}_set=yes;;
13481   *)
13482     eval ac_cv_prog_make_${ac_make}_set=no;;
13483 esac
13484 rm -f conftest.make
13485 fi
13486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 printf "%s\n" "yes" >&6; }
13489   SET_MAKE=
13490 else
13491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 printf "%s\n" "no" >&6; }
13493   SET_MAKE="MAKE=${MAKE-make}"
13494 fi
13495
13496 rm -rf .tst 2>/dev/null
13497 mkdir .tst 2>/dev/null
13498 if test -d .tst; then
13499   am__leading_dot=.
13500 else
13501   am__leading_dot=_
13502 fi
13503 rmdir .tst 2>/dev/null
13504
13505 DEPDIR="${am__leading_dot}deps"
13506
13507 ac_config_commands="$ac_config_commands depfiles"
13508
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13510 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
13511 cat > confinc.mk << 'END'
13512 am__doit:
13513         @echo this is the am__doit target >confinc.out
13514 .PHONY: am__doit
13515 END
13516 am__include="#"
13517 am__quote=
13518 # BSD make does it like this.
13519 echo '.include "confinc.mk" # ignored' > confmf.BSD
13520 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
13521 echo 'include confinc.mk # ignored' > confmf.GNU
13522 _am_result=no
13523 for s in GNU BSD; do
13524   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13525    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13526    ac_status=$?
13527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528    (exit $ac_status); }
13529   case $?:`cat confinc.out 2>/dev/null` in #(
13530   '0:this is the am__doit target') :
13531     case $s in #(
13532   BSD) :
13533     am__include='.include' am__quote='"' ;; #(
13534   *) :
13535     am__include='include' am__quote='' ;;
13536 esac ;; #(
13537   *) :
13538      ;;
13539 esac
13540   if test "$am__include" != "#"; then
13541     _am_result="yes ($s style)"
13542     break
13543   fi
13544 done
13545 rm -f confinc.* confmf.*
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13547 printf "%s\n" "${_am_result}" >&6; }
13548
13549 # Check whether --enable-dependency-tracking was given.
13550 if test ${enable_dependency_tracking+y}
13551 then :
13552   enableval=$enable_dependency_tracking;
13553 fi
13554
13555 if test "x$enable_dependency_tracking" != xno; then
13556   am_depcomp="$ac_aux_dir/depcomp"
13557   AMDEPBACKSLASH='\'
13558   am__nodep='_no'
13559 fi
13560  if test "x$enable_dependency_tracking" != xno; then
13561   AMDEP_TRUE=
13562   AMDEP_FALSE='#'
13563 else
13564   AMDEP_TRUE='#'
13565   AMDEP_FALSE=
13566 fi
13567
13568
13569 # Check whether --enable-silent-rules was given.
13570 if test ${enable_silent_rules+y}
13571 then :
13572   enableval=$enable_silent_rules;
13573 fi
13574
13575 case $enable_silent_rules in # (((
13576   yes) AM_DEFAULT_VERBOSITY=0;;
13577    no) AM_DEFAULT_VERBOSITY=1;;
13578     *) AM_DEFAULT_VERBOSITY=1;;
13579 esac
13580 am_make=${MAKE-make}
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13582 printf %s "checking whether $am_make supports nested variables... " >&6; }
13583 if test ${am_cv_make_support_nested_variables+y}
13584 then :
13585   printf %s "(cached) " >&6
13586 else $as_nop
13587   if printf "%s\n" 'TRUE=$(BAR$(V))
13588 BAR0=false
13589 BAR1=true
13590 V=1
13591 am__doit:
13592         @$(TRUE)
13593 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13594   am_cv_make_support_nested_variables=yes
13595 else
13596   am_cv_make_support_nested_variables=no
13597 fi
13598 fi
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13600 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13601 if test $am_cv_make_support_nested_variables = yes; then
13602     AM_V='$(V)'
13603   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13604 else
13605   AM_V=$AM_DEFAULT_VERBOSITY
13606   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13607 fi
13608 AM_BACKSLASH='\'
13609
13610 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13611   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13612   # is not polluted with repeated "-I."
13613   am__isrc=' -I$(srcdir)'
13614   # test to see if srcdir already configured
13615   if test -f $srcdir/config.status; then
13616     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13617   fi
13618 fi
13619
13620 # test whether we have cygpath
13621 if test -z "$CYGPATH_W"; then
13622   if (cygpath --version) >/dev/null 2>/dev/null; then
13623     CYGPATH_W='cygpath -w'
13624   else
13625     CYGPATH_W=echo
13626   fi
13627 fi
13628
13629
13630 # Define the identity of the package.
13631  PACKAGE='nghttp2'
13632  VERSION='1.46.0'
13633
13634
13635 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
13636
13637
13638 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
13639
13640 # Some tools Automake needs.
13641
13642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13643
13644
13645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13646
13647
13648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13649
13650
13651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13652
13653
13654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13655
13656 # For better backward compatibility.  To be removed once Automake 1.9.x
13657 # dies out for good.  For more background, see:
13658 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13659 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13660 mkdir_p='$(MKDIR_P)'
13661
13662 # We need awk for the "check" target (and possibly the TAP driver).  The
13663 # system "awk" is bad on some platforms.
13664 # Always define AMTAR for backward compatibility.  Yes, it's still used
13665 # in the wild :-(  We should find a proper way to deprecate it ...
13666 AMTAR='$${TAR-tar}'
13667
13668
13669 # We'll loop over all known methods to create a tar archive until one works.
13670 _am_tools='gnutar  pax cpio none'
13671
13672 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13673
13674
13675
13676
13677
13678 depcc="$CC"   am_compiler_list=
13679
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13681 printf %s "checking dependency style of $depcc... " >&6; }
13682 if test ${am_cv_CC_dependencies_compiler_type+y}
13683 then :
13684   printf %s "(cached) " >&6
13685 else $as_nop
13686   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13687   # We make a subdir and do the tests there.  Otherwise we can end up
13688   # making bogus files that we don't know about and never remove.  For
13689   # instance it was reported that on HP-UX the gcc test will end up
13690   # making a dummy file named 'D' -- because '-MD' means "put the output
13691   # in D".
13692   rm -rf conftest.dir
13693   mkdir conftest.dir
13694   # Copy depcomp to subdir because otherwise we won't find it if we're
13695   # using a relative directory.
13696   cp "$am_depcomp" conftest.dir
13697   cd conftest.dir
13698   # We will build objects and dependencies in a subdirectory because
13699   # it helps to detect inapplicable dependency modes.  For instance
13700   # both Tru64's cc and ICC support -MD to output dependencies as a
13701   # side effect of compilation, but ICC will put the dependencies in
13702   # the current directory while Tru64 will put them in the object
13703   # directory.
13704   mkdir sub
13705
13706   am_cv_CC_dependencies_compiler_type=none
13707   if test "$am_compiler_list" = ""; then
13708      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13709   fi
13710   am__universal=false
13711   case " $depcc " in #(
13712      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13713      esac
13714
13715   for depmode in $am_compiler_list; do
13716     # Setup a source with many dependencies, because some compilers
13717     # like to wrap large dependency lists on column 80 (with \), and
13718     # we should not choose a depcomp mode which is confused by this.
13719     #
13720     # We need to recreate these files for each test, as the compiler may
13721     # overwrite some of them when testing with obscure command lines.
13722     # This happens at least with the AIX C compiler.
13723     : > sub/conftest.c
13724     for i in 1 2 3 4 5 6; do
13725       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13726       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13727       # Solaris 10 /bin/sh.
13728       echo '/* dummy */' > sub/conftst$i.h
13729     done
13730     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13731
13732     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13733     # mode.  It turns out that the SunPro C++ compiler does not properly
13734     # handle '-M -o', and we need to detect this.  Also, some Intel
13735     # versions had trouble with output in subdirs.
13736     am__obj=sub/conftest.${OBJEXT-o}
13737     am__minus_obj="-o $am__obj"
13738     case $depmode in
13739     gcc)
13740       # This depmode causes a compiler race in universal mode.
13741       test "$am__universal" = false || continue
13742       ;;
13743     nosideeffect)
13744       # After this tag, mechanisms are not by side-effect, so they'll
13745       # only be used when explicitly requested.
13746       if test "x$enable_dependency_tracking" = xyes; then
13747         continue
13748       else
13749         break
13750       fi
13751       ;;
13752     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13753       # This compiler won't grok '-c -o', but also, the minuso test has
13754       # not run yet.  These depmodes are late enough in the game, and
13755       # so weak that their functioning should not be impacted.
13756       am__obj=conftest.${OBJEXT-o}
13757       am__minus_obj=
13758       ;;
13759     none) break ;;
13760     esac
13761     if depmode=$depmode \
13762        source=sub/conftest.c object=$am__obj \
13763        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13764        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13765          >/dev/null 2>conftest.err &&
13766        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13767        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13768        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13769        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13770       # icc doesn't choke on unknown options, it will just issue warnings
13771       # or remarks (even with -Werror).  So we grep stderr for any message
13772       # that says an option was ignored or not supported.
13773       # When given -MP, icc 7.0 and 7.1 complain thusly:
13774       #   icc: Command line warning: ignoring option '-M'; no argument required
13775       # The diagnosis changed in icc 8.0:
13776       #   icc: Command line remark: option '-MP' not supported
13777       if (grep 'ignoring option' conftest.err ||
13778           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13779         am_cv_CC_dependencies_compiler_type=$depmode
13780         break
13781       fi
13782     fi
13783   done
13784
13785   cd ..
13786   rm -rf conftest.dir
13787 else
13788   am_cv_CC_dependencies_compiler_type=none
13789 fi
13790
13791 fi
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13793 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13795
13796  if
13797   test "x$enable_dependency_tracking" != xno \
13798   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13799   am__fastdepCC_TRUE=
13800   am__fastdepCC_FALSE='#'
13801 else
13802   am__fastdepCC_TRUE='#'
13803   am__fastdepCC_FALSE=
13804 fi
13805
13806
13807 # Variables for tags utilities; see am/tags.am
13808 if test -z "$CTAGS"; then
13809   CTAGS=ctags
13810 fi
13811
13812 if test -z "$ETAGS"; then
13813   ETAGS=etags
13814 fi
13815
13816 if test -z "$CSCOPE"; then
13817   CSCOPE=cscope
13818 fi
13819
13820
13821
13822 # POSIX will say in a future version that running "rm -f" with no argument
13823 # is OK; and we want to be able to make that assumption in our Makefile
13824 # recipes.  So use an aggressive probe to check that the usage we want is
13825 # actually supported "in the wild" to an acceptable degree.
13826 # See automake bug#10828.
13827 # To make any issue more visible, cause the running configure to be aborted
13828 # by default if the 'rm' program in use doesn't match our expectations; the
13829 # user can still override this though.
13830 if rm -f && rm -fr && rm -rf; then : OK; else
13831   cat >&2 <<'END'
13832 Oops!
13833
13834 Your 'rm' program seems unable to run without file operands specified
13835 on the command line, even when the '-f' option is present.  This is contrary
13836 to the behaviour of most rm programs out there, and not conforming with
13837 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13838
13839 Please tell bug-automake@gnu.org about your system, including the value
13840 of your $PATH and any error possibly output before this message.  This
13841 can help us improve future automake versions.
13842
13843 END
13844   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13845     echo 'Configuration will proceed anyway, since you have set the' >&2
13846     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13847     echo >&2
13848   else
13849     cat >&2 <<'END'
13850 Aborting the configuration process, to ensure you take notice of the issue.
13851
13852 You can download and install GNU coreutils to get an 'rm' implementation
13853 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13854
13855 If you want to complete the configuration process using your problematic
13856 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13857 to "yes", and re-run configure.
13858
13859 END
13860     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13861   fi
13862 fi
13863
13864
13865 # Check whether --enable-silent-rules was given.
13866 if test ${enable_silent_rules+y}
13867 then :
13868   enableval=$enable_silent_rules;
13869 fi
13870
13871 case $enable_silent_rules in # (((
13872   yes) AM_DEFAULT_VERBOSITY=0;;
13873    no) AM_DEFAULT_VERBOSITY=1;;
13874     *) AM_DEFAULT_VERBOSITY=0;;
13875 esac
13876 am_make=${MAKE-make}
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13878 printf %s "checking whether $am_make supports nested variables... " >&6; }
13879 if test ${am_cv_make_support_nested_variables+y}
13880 then :
13881   printf %s "(cached) " >&6
13882 else $as_nop
13883   if printf "%s\n" 'TRUE=$(BAR$(V))
13884 BAR0=false
13885 BAR1=true
13886 V=1
13887 am__doit:
13888         @$(TRUE)
13889 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13890   am_cv_make_support_nested_variables=yes
13891 else
13892   am_cv_make_support_nested_variables=no
13893 fi
13894 fi
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13896 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13897 if test $am_cv_make_support_nested_variables = yes; then
13898     AM_V='$(V)'
13899   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13900 else
13901   AM_V=$AM_DEFAULT_VERBOSITY
13902   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13903 fi
13904 AM_BACKSLASH='\'
13905
13906
13907 LT_CURRENT=35
13908
13909 LT_REVISION=1
13910
13911 LT_AGE=21
13912
13913
13914 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
13915 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
13916 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
13917
13918 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
13919
13920
13921
13922 # Check whether --enable-werror was given.
13923 if test ${enable_werror+y}
13924 then :
13925   enableval=$enable_werror; werror=$enableval
13926 else $as_nop
13927   werror=no
13928 fi
13929
13930
13931 # Check whether --enable-debug was given.
13932 if test ${enable_debug+y}
13933 then :
13934   enableval=$enable_debug; debug=$enableval
13935 else $as_nop
13936   debug=no
13937 fi
13938
13939
13940 # Check whether --enable-threads was given.
13941 if test ${enable_threads+y}
13942 then :
13943   enableval=$enable_threads; threads=$enableval
13944 else $as_nop
13945   threads=yes
13946 fi
13947
13948
13949 # Check whether --enable-app was given.
13950 if test ${enable_app+y}
13951 then :
13952   enableval=$enable_app; request_app=$enableval
13953 else $as_nop
13954   request_app=check
13955 fi
13956
13957
13958 # Check whether --enable-hpack-tools was given.
13959 if test ${enable_hpack_tools+y}
13960 then :
13961   enableval=$enable_hpack_tools; request_hpack_tools=$enableval
13962 else $as_nop
13963   request_hpack_tools=check
13964 fi
13965
13966
13967 # Check whether --enable-asio-lib was given.
13968 if test ${enable_asio_lib+y}
13969 then :
13970   enableval=$enable_asio_lib; request_asio_lib=$enableval
13971 else $as_nop
13972   request_asio_lib=no
13973 fi
13974
13975
13976 # Check whether --enable-examples was given.
13977 if test ${enable_examples+y}
13978 then :
13979   enableval=$enable_examples; request_examples=$enableval
13980 else $as_nop
13981   request_examples=check
13982 fi
13983
13984
13985 # Check whether --enable-python-bindings was given.
13986 if test ${enable_python_bindings+y}
13987 then :
13988   enableval=$enable_python_bindings; request_python_bindings=$enableval
13989 else $as_nop
13990   request_python_bindings=check
13991 fi
13992
13993
13994 # Check whether --enable-failmalloc was given.
13995 if test ${enable_failmalloc+y}
13996 then :
13997   enableval=$enable_failmalloc; request_failmalloc=$enableval
13998 else $as_nop
13999   request_failmalloc=yes
14000 fi
14001
14002
14003 # Check whether --enable-lib-only was given.
14004 if test ${enable_lib_only+y}
14005 then :
14006   enableval=$enable_lib_only; request_lib_only=$enableval
14007 else $as_nop
14008   request_lib_only=no
14009 fi
14010
14011
14012 # Check whether --enable-http3 was given.
14013 if test ${enable_http3+y}
14014 then :
14015   enableval=$enable_http3; request_http3=$enableval
14016 else $as_nop
14017   request_http3=no
14018 fi
14019
14020
14021
14022 # Check whether --with-libxml2 was given.
14023 if test ${with_libxml2+y}
14024 then :
14025   withval=$with_libxml2; request_libxml2=$withval
14026 else $as_nop
14027   request_libxml2=check
14028 fi
14029
14030
14031
14032 # Check whether --with-jansson was given.
14033 if test ${with_jansson+y}
14034 then :
14035   withval=$with_jansson; request_jansson=$withval
14036 else $as_nop
14037   request_jansson=check
14038 fi
14039
14040
14041
14042 # Check whether --with-zlib was given.
14043 if test ${with_zlib+y}
14044 then :
14045   withval=$with_zlib; request_zlib=$withval
14046 else $as_nop
14047   request_zlib=check
14048 fi
14049
14050
14051
14052 # Check whether --with-libevent-openssl was given.
14053 if test ${with_libevent_openssl+y}
14054 then :
14055   withval=$with_libevent_openssl; request_libevent_openssl=$withval
14056 else $as_nop
14057   request_libevent_openssl=check
14058 fi
14059
14060
14061
14062 # Check whether --with-libcares was given.
14063 if test ${with_libcares+y}
14064 then :
14065   withval=$with_libcares; request_libcares=$withval
14066 else $as_nop
14067   request_libcares=check
14068 fi
14069
14070
14071
14072 # Check whether --with-openssl was given.
14073 if test ${with_openssl+y}
14074 then :
14075   withval=$with_openssl; request_openssl=$withval
14076 else $as_nop
14077   request_openssl=check
14078 fi
14079
14080
14081
14082 # Check whether --with-libev was given.
14083 if test ${with_libev+y}
14084 then :
14085   withval=$with_libev; request_libev=$withval
14086 else $as_nop
14087   request_libev=check
14088 fi
14089
14090
14091
14092 # Check whether --with-cunit was given.
14093 if test ${with_cunit+y}
14094 then :
14095   withval=$with_cunit; request_cunit=$withval
14096 else $as_nop
14097   request_cunit=check
14098 fi
14099
14100
14101
14102 # Check whether --with-jemalloc was given.
14103 if test ${with_jemalloc+y}
14104 then :
14105   withval=$with_jemalloc; request_jemalloc=$withval
14106 else $as_nop
14107   request_jemalloc=check
14108 fi
14109
14110
14111
14112 # Check whether --with-systemd was given.
14113 if test ${with_systemd+y}
14114 then :
14115   withval=$with_systemd; request_systemd=$withval
14116 else $as_nop
14117   request_systemd=check
14118 fi
14119
14120
14121
14122 # Check whether --with-mruby was given.
14123 if test ${with_mruby+y}
14124 then :
14125   withval=$with_mruby; request_mruby=$withval
14126 else $as_nop
14127   request_mruby=no
14128 fi
14129
14130
14131
14132 # Check whether --with-neverbleed was given.
14133 if test ${with_neverbleed+y}
14134 then :
14135   withval=$with_neverbleed; request_neverbleed=$withval
14136 else $as_nop
14137   request_neverbleed=no
14138 fi
14139
14140
14141
14142 # Check whether --with-cython was given.
14143 if test ${with_cython+y}
14144 then :
14145   withval=$with_cython; cython_path=$withval
14146 fi
14147
14148
14149
14150 # Check whether --with-libngtcp2 was given.
14151 if test ${with_libngtcp2+y}
14152 then :
14153   withval=$with_libngtcp2; request_libngtcp2=$withval
14154 else $as_nop
14155   request_libngtcp2=check
14156 fi
14157
14158
14159
14160 # Check whether --with-libnghttp3 was given.
14161 if test ${with_libnghttp3+y}
14162 then :
14163   withval=$with_libnghttp3; request_libnghttp3=$withval
14164 else $as_nop
14165   request_libnghttp3=check
14166 fi
14167
14168
14169
14170 # Check whether --with-libbpf was given.
14171 if test ${with_libbpf+y}
14172 then :
14173   withval=$with_libbpf; request_libbpf=$withval
14174 else $as_nop
14175   request_libbpf=no
14176 fi
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191 ac_ext=c
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196 if test -n "$ac_tool_prefix"; then
14197   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 printf %s "checking for $ac_word... " >&6; }
14201 if test ${ac_cv_prog_CC+y}
14202 then :
14203   printf %s "(cached) " >&6
14204 else $as_nop
14205   if test -n "$CC"; then
14206   ac_cv_prog_CC="$CC" # Let the user override the test.
14207 else
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14210 do
14211   IFS=$as_save_IFS
14212   case $as_dir in #(((
14213     '') as_dir=./ ;;
14214     */) ;;
14215     *) as_dir=$as_dir/ ;;
14216   esac
14217     for ac_exec_ext in '' $ac_executable_extensions; do
14218   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14219     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14220     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14221     break 2
14222   fi
14223 done
14224   done
14225 IFS=$as_save_IFS
14226
14227 fi
14228 fi
14229 CC=$ac_cv_prog_CC
14230 if test -n "$CC"; then
14231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14232 printf "%s\n" "$CC" >&6; }
14233 else
14234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 printf "%s\n" "no" >&6; }
14236 fi
14237
14238
14239 fi
14240 if test -z "$ac_cv_prog_CC"; then
14241   ac_ct_CC=$CC
14242   # Extract the first word of "gcc", so it can be a program name with args.
14243 set dummy gcc; ac_word=$2
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 printf %s "checking for $ac_word... " >&6; }
14246 if test ${ac_cv_prog_ac_ct_CC+y}
14247 then :
14248   printf %s "(cached) " >&6
14249 else $as_nop
14250   if test -n "$ac_ct_CC"; then
14251   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256   IFS=$as_save_IFS
14257   case $as_dir in #(((
14258     '') as_dir=./ ;;
14259     */) ;;
14260     *) as_dir=$as_dir/ ;;
14261   esac
14262     for ac_exec_ext in '' $ac_executable_extensions; do
14263   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14264     ac_cv_prog_ac_ct_CC="gcc"
14265     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14266     break 2
14267   fi
14268 done
14269   done
14270 IFS=$as_save_IFS
14271
14272 fi
14273 fi
14274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14275 if test -n "$ac_ct_CC"; then
14276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14277 printf "%s\n" "$ac_ct_CC" >&6; }
14278 else
14279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 printf "%s\n" "no" >&6; }
14281 fi
14282
14283   if test "x$ac_ct_CC" = x; then
14284     CC=""
14285   else
14286     case $cross_compiling:$ac_tool_warned in
14287 yes:)
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned=yes ;;
14291 esac
14292     CC=$ac_ct_CC
14293   fi
14294 else
14295   CC="$ac_cv_prog_CC"
14296 fi
14297
14298 if test -z "$CC"; then
14299           if test -n "$ac_tool_prefix"; then
14300     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14301 set dummy ${ac_tool_prefix}cc; ac_word=$2
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14303 printf %s "checking for $ac_word... " >&6; }
14304 if test ${ac_cv_prog_CC+y}
14305 then :
14306   printf %s "(cached) " >&6
14307 else $as_nop
14308   if test -n "$CC"; then
14309   ac_cv_prog_CC="$CC" # Let the user override the test.
14310 else
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314   IFS=$as_save_IFS
14315   case $as_dir in #(((
14316     '') as_dir=./ ;;
14317     */) ;;
14318     *) as_dir=$as_dir/ ;;
14319   esac
14320     for ac_exec_ext in '' $ac_executable_extensions; do
14321   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14322     ac_cv_prog_CC="${ac_tool_prefix}cc"
14323     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14324     break 2
14325   fi
14326 done
14327   done
14328 IFS=$as_save_IFS
14329
14330 fi
14331 fi
14332 CC=$ac_cv_prog_CC
14333 if test -n "$CC"; then
14334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14335 printf "%s\n" "$CC" >&6; }
14336 else
14337   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 printf "%s\n" "no" >&6; }
14339 fi
14340
14341
14342   fi
14343 fi
14344 if test -z "$CC"; then
14345   # Extract the first word of "cc", so it can be a program name with args.
14346 set dummy cc; ac_word=$2
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 printf %s "checking for $ac_word... " >&6; }
14349 if test ${ac_cv_prog_CC+y}
14350 then :
14351   printf %s "(cached) " >&6
14352 else $as_nop
14353   if test -n "$CC"; then
14354   ac_cv_prog_CC="$CC" # Let the user override the test.
14355 else
14356   ac_prog_rejected=no
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14359 do
14360   IFS=$as_save_IFS
14361   case $as_dir in #(((
14362     '') as_dir=./ ;;
14363     */) ;;
14364     *) as_dir=$as_dir/ ;;
14365   esac
14366     for ac_exec_ext in '' $ac_executable_extensions; do
14367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14368     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14369        ac_prog_rejected=yes
14370        continue
14371      fi
14372     ac_cv_prog_CC="cc"
14373     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14374     break 2
14375   fi
14376 done
14377   done
14378 IFS=$as_save_IFS
14379
14380 if test $ac_prog_rejected = yes; then
14381   # We found a bogon in the path, so make sure we never use it.
14382   set dummy $ac_cv_prog_CC
14383   shift
14384   if test $# != 0; then
14385     # We chose a different compiler from the bogus one.
14386     # However, it has the same basename, so the bogon will be chosen
14387     # first if we set CC to just the basename; use the full file name.
14388     shift
14389     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14390   fi
14391 fi
14392 fi
14393 fi
14394 CC=$ac_cv_prog_CC
14395 if test -n "$CC"; then
14396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14397 printf "%s\n" "$CC" >&6; }
14398 else
14399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 printf "%s\n" "no" >&6; }
14401 fi
14402
14403
14404 fi
14405 if test -z "$CC"; then
14406   if test -n "$ac_tool_prefix"; then
14407   for ac_prog in cl.exe
14408   do
14409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14412 printf %s "checking for $ac_word... " >&6; }
14413 if test ${ac_cv_prog_CC+y}
14414 then :
14415   printf %s "(cached) " >&6
14416 else $as_nop
14417   if test -n "$CC"; then
14418   ac_cv_prog_CC="$CC" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14422 do
14423   IFS=$as_save_IFS
14424   case $as_dir in #(((
14425     '') as_dir=./ ;;
14426     */) ;;
14427     *) as_dir=$as_dir/ ;;
14428   esac
14429     for ac_exec_ext in '' $ac_executable_extensions; do
14430   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14432     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14433     break 2
14434   fi
14435 done
14436   done
14437 IFS=$as_save_IFS
14438
14439 fi
14440 fi
14441 CC=$ac_cv_prog_CC
14442 if test -n "$CC"; then
14443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14444 printf "%s\n" "$CC" >&6; }
14445 else
14446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 printf "%s\n" "no" >&6; }
14448 fi
14449
14450
14451     test -n "$CC" && break
14452   done
14453 fi
14454 if test -z "$CC"; then
14455   ac_ct_CC=$CC
14456   for ac_prog in cl.exe
14457 do
14458   # Extract the first word of "$ac_prog", so it can be a program name with args.
14459 set dummy $ac_prog; ac_word=$2
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14461 printf %s "checking for $ac_word... " >&6; }
14462 if test ${ac_cv_prog_ac_ct_CC+y}
14463 then :
14464   printf %s "(cached) " >&6
14465 else $as_nop
14466   if test -n "$ac_ct_CC"; then
14467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14468 else
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14471 do
14472   IFS=$as_save_IFS
14473   case $as_dir in #(((
14474     '') as_dir=./ ;;
14475     */) ;;
14476     *) as_dir=$as_dir/ ;;
14477   esac
14478     for ac_exec_ext in '' $ac_executable_extensions; do
14479   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14480     ac_cv_prog_ac_ct_CC="$ac_prog"
14481     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14482     break 2
14483   fi
14484 done
14485   done
14486 IFS=$as_save_IFS
14487
14488 fi
14489 fi
14490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14491 if test -n "$ac_ct_CC"; then
14492   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14493 printf "%s\n" "$ac_ct_CC" >&6; }
14494 else
14495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 printf "%s\n" "no" >&6; }
14497 fi
14498
14499
14500   test -n "$ac_ct_CC" && break
14501 done
14502
14503   if test "x$ac_ct_CC" = x; then
14504     CC=""
14505   else
14506     case $cross_compiling:$ac_tool_warned in
14507 yes:)
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14510 ac_tool_warned=yes ;;
14511 esac
14512     CC=$ac_ct_CC
14513   fi
14514 fi
14515
14516 fi
14517 if test -z "$CC"; then
14518   if test -n "$ac_tool_prefix"; then
14519   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}clang; ac_word=$2
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 printf %s "checking for $ac_word... " >&6; }
14523 if test ${ac_cv_prog_CC+y}
14524 then :
14525   printf %s "(cached) " >&6
14526 else $as_nop
14527   if test -n "$CC"; then
14528   ac_cv_prog_CC="$CC" # Let the user override the test.
14529 else
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14532 do
14533   IFS=$as_save_IFS
14534   case $as_dir in #(((
14535     '') as_dir=./ ;;
14536     */) ;;
14537     *) as_dir=$as_dir/ ;;
14538   esac
14539     for ac_exec_ext in '' $ac_executable_extensions; do
14540   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14541     ac_cv_prog_CC="${ac_tool_prefix}clang"
14542     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14543     break 2
14544   fi
14545 done
14546   done
14547 IFS=$as_save_IFS
14548
14549 fi
14550 fi
14551 CC=$ac_cv_prog_CC
14552 if test -n "$CC"; then
14553   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14554 printf "%s\n" "$CC" >&6; }
14555 else
14556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 printf "%s\n" "no" >&6; }
14558 fi
14559
14560
14561 fi
14562 if test -z "$ac_cv_prog_CC"; then
14563   ac_ct_CC=$CC
14564   # Extract the first word of "clang", so it can be a program name with args.
14565 set dummy clang; ac_word=$2
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14567 printf %s "checking for $ac_word... " >&6; }
14568 if test ${ac_cv_prog_ac_ct_CC+y}
14569 then :
14570   printf %s "(cached) " >&6
14571 else $as_nop
14572   if test -n "$ac_ct_CC"; then
14573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14574 else
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14577 do
14578   IFS=$as_save_IFS
14579   case $as_dir in #(((
14580     '') as_dir=./ ;;
14581     */) ;;
14582     *) as_dir=$as_dir/ ;;
14583   esac
14584     for ac_exec_ext in '' $ac_executable_extensions; do
14585   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14586     ac_cv_prog_ac_ct_CC="clang"
14587     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14588     break 2
14589   fi
14590 done
14591   done
14592 IFS=$as_save_IFS
14593
14594 fi
14595 fi
14596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14597 if test -n "$ac_ct_CC"; then
14598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14599 printf "%s\n" "$ac_ct_CC" >&6; }
14600 else
14601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 printf "%s\n" "no" >&6; }
14603 fi
14604
14605   if test "x$ac_ct_CC" = x; then
14606     CC=""
14607   else
14608     case $cross_compiling:$ac_tool_warned in
14609 yes:)
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14612 ac_tool_warned=yes ;;
14613 esac
14614     CC=$ac_ct_CC
14615   fi
14616 else
14617   CC="$ac_cv_prog_CC"
14618 fi
14619
14620 fi
14621
14622
14623 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14625 as_fn_error $? "no acceptable C compiler found in \$PATH
14626 See \`config.log' for more details" "$LINENO" 5; }
14627
14628 # Provide some information about the compiler.
14629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14630 set X $ac_compile
14631 ac_compiler=$2
14632 for ac_option in --version -v -V -qversion -version; do
14633   { { ac_try="$ac_compiler $ac_option >&5"
14634 case "(($ac_try" in
14635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636   *) ac_try_echo=$ac_try;;
14637 esac
14638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14639 printf "%s\n" "$ac_try_echo"; } >&5
14640   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14641   ac_status=$?
14642   if test -s conftest.err; then
14643     sed '10a\
14644 ... rest of stderr output deleted ...
14645          10q' conftest.err >conftest.er1
14646     cat conftest.er1 >&5
14647   fi
14648   rm -f conftest.er1 conftest.err
14649   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14650   test $ac_status = 0; }
14651 done
14652
14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14654 printf %s "checking whether the compiler supports GNU C... " >&6; }
14655 if test ${ac_cv_c_compiler_gnu+y}
14656 then :
14657   printf %s "(cached) " >&6
14658 else $as_nop
14659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h.  */
14661
14662 int
14663 main (void)
14664 {
14665 #ifndef __GNUC__
14666        choke me
14667 #endif
14668
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 if ac_fn_c_try_compile "$LINENO"
14674 then :
14675   ac_compiler_gnu=yes
14676 else $as_nop
14677   ac_compiler_gnu=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14680 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14681
14682 fi
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14684 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686
14687 if test $ac_compiler_gnu = yes; then
14688   GCC=yes
14689 else
14690   GCC=
14691 fi
14692 ac_test_CFLAGS=${CFLAGS+y}
14693 ac_save_CFLAGS=$CFLAGS
14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14695 printf %s "checking whether $CC accepts -g... " >&6; }
14696 if test ${ac_cv_prog_cc_g+y}
14697 then :
14698   printf %s "(cached) " >&6
14699 else $as_nop
14700   ac_save_c_werror_flag=$ac_c_werror_flag
14701    ac_c_werror_flag=yes
14702    ac_cv_prog_cc_g=no
14703    CFLAGS="-g"
14704    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h.  */
14706
14707 int
14708 main (void)
14709 {
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 if ac_fn_c_try_compile "$LINENO"
14716 then :
14717   ac_cv_prog_cc_g=yes
14718 else $as_nop
14719   CFLAGS=""
14720       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h.  */
14722
14723 int
14724 main (void)
14725 {
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"
14732 then :
14733
14734 else $as_nop
14735   ac_c_werror_flag=$ac_save_c_werror_flag
14736          CFLAGS="-g"
14737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739
14740 int
14741 main (void)
14742 {
14743
14744   ;
14745   return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"
14749 then :
14750   ac_cv_prog_cc_g=yes
14751 fi
14752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14753 fi
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14757    ac_c_werror_flag=$ac_save_c_werror_flag
14758 fi
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14760 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14761 if test $ac_test_CFLAGS; then
14762   CFLAGS=$ac_save_CFLAGS
14763 elif test $ac_cv_prog_cc_g = yes; then
14764   if test "$GCC" = yes; then
14765     CFLAGS="-g -O2"
14766   else
14767     CFLAGS="-g"
14768   fi
14769 else
14770   if test "$GCC" = yes; then
14771     CFLAGS="-O2"
14772   else
14773     CFLAGS=
14774   fi
14775 fi
14776 ac_prog_cc_stdc=no
14777 if test x$ac_prog_cc_stdc = xno
14778 then :
14779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14780 printf %s "checking for $CC option to enable C11 features... " >&6; }
14781 if test ${ac_cv_prog_cc_c11+y}
14782 then :
14783   printf %s "(cached) " >&6
14784 else $as_nop
14785   ac_cv_prog_cc_c11=no
14786 ac_save_CC=$CC
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789 $ac_c_conftest_c11_program
14790 _ACEOF
14791 for ac_arg in '' -std=gnu11
14792 do
14793   CC="$ac_save_CC $ac_arg"
14794   if ac_fn_c_try_compile "$LINENO"
14795 then :
14796   ac_cv_prog_cc_c11=$ac_arg
14797 fi
14798 rm -f core conftest.err conftest.$ac_objext conftest.beam
14799   test "x$ac_cv_prog_cc_c11" != "xno" && break
14800 done
14801 rm -f conftest.$ac_ext
14802 CC=$ac_save_CC
14803 fi
14804
14805 if test "x$ac_cv_prog_cc_c11" = xno
14806 then :
14807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14808 printf "%s\n" "unsupported" >&6; }
14809 else $as_nop
14810   if test "x$ac_cv_prog_cc_c11" = x
14811 then :
14812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14813 printf "%s\n" "none needed" >&6; }
14814 else $as_nop
14815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14816 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14817      CC="$CC $ac_cv_prog_cc_c11"
14818 fi
14819   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14820   ac_prog_cc_stdc=c11
14821 fi
14822 fi
14823 if test x$ac_prog_cc_stdc = xno
14824 then :
14825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14826 printf %s "checking for $CC option to enable C99 features... " >&6; }
14827 if test ${ac_cv_prog_cc_c99+y}
14828 then :
14829   printf %s "(cached) " >&6
14830 else $as_nop
14831   ac_cv_prog_cc_c99=no
14832 ac_save_CC=$CC
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h.  */
14835 $ac_c_conftest_c99_program
14836 _ACEOF
14837 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14838 do
14839   CC="$ac_save_CC $ac_arg"
14840   if ac_fn_c_try_compile "$LINENO"
14841 then :
14842   ac_cv_prog_cc_c99=$ac_arg
14843 fi
14844 rm -f core conftest.err conftest.$ac_objext conftest.beam
14845   test "x$ac_cv_prog_cc_c99" != "xno" && break
14846 done
14847 rm -f conftest.$ac_ext
14848 CC=$ac_save_CC
14849 fi
14850
14851 if test "x$ac_cv_prog_cc_c99" = xno
14852 then :
14853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14854 printf "%s\n" "unsupported" >&6; }
14855 else $as_nop
14856   if test "x$ac_cv_prog_cc_c99" = x
14857 then :
14858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14859 printf "%s\n" "none needed" >&6; }
14860 else $as_nop
14861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14862 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14863      CC="$CC $ac_cv_prog_cc_c99"
14864 fi
14865   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14866   ac_prog_cc_stdc=c99
14867 fi
14868 fi
14869 if test x$ac_prog_cc_stdc = xno
14870 then :
14871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14872 printf %s "checking for $CC option to enable C89 features... " >&6; }
14873 if test ${ac_cv_prog_cc_c89+y}
14874 then :
14875   printf %s "(cached) " >&6
14876 else $as_nop
14877   ac_cv_prog_cc_c89=no
14878 ac_save_CC=$CC
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881 $ac_c_conftest_c89_program
14882 _ACEOF
14883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14884 do
14885   CC="$ac_save_CC $ac_arg"
14886   if ac_fn_c_try_compile "$LINENO"
14887 then :
14888   ac_cv_prog_cc_c89=$ac_arg
14889 fi
14890 rm -f core conftest.err conftest.$ac_objext conftest.beam
14891   test "x$ac_cv_prog_cc_c89" != "xno" && break
14892 done
14893 rm -f conftest.$ac_ext
14894 CC=$ac_save_CC
14895 fi
14896
14897 if test "x$ac_cv_prog_cc_c89" = xno
14898 then :
14899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14900 printf "%s\n" "unsupported" >&6; }
14901 else $as_nop
14902   if test "x$ac_cv_prog_cc_c89" = x
14903 then :
14904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14905 printf "%s\n" "none needed" >&6; }
14906 else $as_nop
14907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14908 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14909      CC="$CC $ac_cv_prog_cc_c89"
14910 fi
14911   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14912   ac_prog_cc_stdc=c89
14913 fi
14914 fi
14915
14916 ac_ext=c
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14921
14922
14923   ac_ext=c
14924 ac_cpp='$CPP $CPPFLAGS'
14925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14929 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14930 if test ${am_cv_prog_cc_c_o+y}
14931 then :
14932   printf %s "(cached) " >&6
14933 else $as_nop
14934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h.  */
14936
14937 int
14938 main (void)
14939 {
14940
14941   ;
14942   return 0;
14943 }
14944 _ACEOF
14945   # Make sure it works both with $CC and with simple cc.
14946   # Following AC_PROG_CC_C_O, we do the test twice because some
14947   # compilers refuse to overwrite an existing .o file with -o,
14948   # though they will create one.
14949   am_cv_prog_cc_c_o=yes
14950   for am_i in 1 2; do
14951     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14952    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14953    ac_status=$?
14954    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955    (exit $ac_status); } \
14956          && test -f conftest2.$ac_objext; then
14957       : OK
14958     else
14959       am_cv_prog_cc_c_o=no
14960       break
14961     fi
14962   done
14963   rm -f core conftest*
14964   unset am_i
14965 fi
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14967 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14968 if test "$am_cv_prog_cc_c_o" != yes; then
14969    # Losing compiler, so override with the script.
14970    # FIXME: It is wrong to rewrite CC.
14971    # But if we don't then we get into trouble of one sort or another.
14972    # A longer-term fix would be to have automake use am__CC in this case,
14973    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14974    CC="$am_aux_dir/compile $CC"
14975 fi
14976 ac_ext=c
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14981
14982
14983
14984
14985
14986
14987
14988
14989 ac_ext=cpp
14990 ac_cpp='$CXXCPP $CPPFLAGS'
14991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994 if test -z "$CXX"; then
14995   if test -n "$CCC"; then
14996     CXX=$CCC
14997   else
14998     if test -n "$ac_tool_prefix"; then
14999   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15000   do
15001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15004 printf %s "checking for $ac_word... " >&6; }
15005 if test ${ac_cv_prog_CXX+y}
15006 then :
15007   printf %s "(cached) " >&6
15008 else $as_nop
15009   if test -n "$CXX"; then
15010   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15011 else
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15014 do
15015   IFS=$as_save_IFS
15016   case $as_dir in #(((
15017     '') as_dir=./ ;;
15018     */) ;;
15019     *) as_dir=$as_dir/ ;;
15020   esac
15021     for ac_exec_ext in '' $ac_executable_extensions; do
15022   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15023     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15024     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15025     break 2
15026   fi
15027 done
15028   done
15029 IFS=$as_save_IFS
15030
15031 fi
15032 fi
15033 CXX=$ac_cv_prog_CXX
15034 if test -n "$CXX"; then
15035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15036 printf "%s\n" "$CXX" >&6; }
15037 else
15038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 printf "%s\n" "no" >&6; }
15040 fi
15041
15042
15043     test -n "$CXX" && break
15044   done
15045 fi
15046 if test -z "$CXX"; then
15047   ac_ct_CXX=$CXX
15048   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15049 do
15050   # Extract the first word of "$ac_prog", so it can be a program name with args.
15051 set dummy $ac_prog; ac_word=$2
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15053 printf %s "checking for $ac_word... " >&6; }
15054 if test ${ac_cv_prog_ac_ct_CXX+y}
15055 then :
15056   printf %s "(cached) " >&6
15057 else $as_nop
15058   if test -n "$ac_ct_CXX"; then
15059   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15060 else
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15063 do
15064   IFS=$as_save_IFS
15065   case $as_dir in #(((
15066     '') as_dir=./ ;;
15067     */) ;;
15068     *) as_dir=$as_dir/ ;;
15069   esac
15070     for ac_exec_ext in '' $ac_executable_extensions; do
15071   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15072     ac_cv_prog_ac_ct_CXX="$ac_prog"
15073     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15074     break 2
15075   fi
15076 done
15077   done
15078 IFS=$as_save_IFS
15079
15080 fi
15081 fi
15082 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15083 if test -n "$ac_ct_CXX"; then
15084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15085 printf "%s\n" "$ac_ct_CXX" >&6; }
15086 else
15087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 printf "%s\n" "no" >&6; }
15089 fi
15090
15091
15092   test -n "$ac_ct_CXX" && break
15093 done
15094
15095   if test "x$ac_ct_CXX" = x; then
15096     CXX="g++"
15097   else
15098     case $cross_compiling:$ac_tool_warned in
15099 yes:)
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15102 ac_tool_warned=yes ;;
15103 esac
15104     CXX=$ac_ct_CXX
15105   fi
15106 fi
15107
15108   fi
15109 fi
15110 # Provide some information about the compiler.
15111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15112 set X $ac_compile
15113 ac_compiler=$2
15114 for ac_option in --version -v -V -qversion; do
15115   { { ac_try="$ac_compiler $ac_option >&5"
15116 case "(($ac_try" in
15117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118   *) ac_try_echo=$ac_try;;
15119 esac
15120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15121 printf "%s\n" "$ac_try_echo"; } >&5
15122   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15123   ac_status=$?
15124   if test -s conftest.err; then
15125     sed '10a\
15126 ... rest of stderr output deleted ...
15127          10q' conftest.err >conftest.er1
15128     cat conftest.er1 >&5
15129   fi
15130   rm -f conftest.er1 conftest.err
15131   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132   test $ac_status = 0; }
15133 done
15134
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15136 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15137 if test ${ac_cv_cxx_compiler_gnu+y}
15138 then :
15139   printf %s "(cached) " >&6
15140 else $as_nop
15141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h.  */
15143
15144 int
15145 main (void)
15146 {
15147 #ifndef __GNUC__
15148        choke me
15149 #endif
15150
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 if ac_fn_cxx_try_compile "$LINENO"
15156 then :
15157   ac_compiler_gnu=yes
15158 else $as_nop
15159   ac_compiler_gnu=no
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15163
15164 fi
15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15166 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15168
15169 if test $ac_compiler_gnu = yes; then
15170   GXX=yes
15171 else
15172   GXX=
15173 fi
15174 ac_test_CXXFLAGS=${CXXFLAGS+y}
15175 ac_save_CXXFLAGS=$CXXFLAGS
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15177 printf %s "checking whether $CXX accepts -g... " >&6; }
15178 if test ${ac_cv_prog_cxx_g+y}
15179 then :
15180   printf %s "(cached) " >&6
15181 else $as_nop
15182   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15183    ac_cxx_werror_flag=yes
15184    ac_cv_prog_cxx_g=no
15185    CXXFLAGS="-g"
15186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h.  */
15188
15189 int
15190 main (void)
15191 {
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_cxx_try_compile "$LINENO"
15198 then :
15199   ac_cv_prog_cxx_g=yes
15200 else $as_nop
15201   CXXFLAGS=""
15202       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h.  */
15204
15205 int
15206 main (void)
15207 {
15208
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_cxx_try_compile "$LINENO"
15214 then :
15215
15216 else $as_nop
15217   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15218          CXXFLAGS="-g"
15219          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h.  */
15221
15222 int
15223 main (void)
15224 {
15225
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 if ac_fn_cxx_try_compile "$LINENO"
15231 then :
15232   ac_cv_prog_cxx_g=yes
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15239    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15240 fi
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15242 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15243 if test $ac_test_CXXFLAGS; then
15244   CXXFLAGS=$ac_save_CXXFLAGS
15245 elif test $ac_cv_prog_cxx_g = yes; then
15246   if test "$GXX" = yes; then
15247     CXXFLAGS="-g -O2"
15248   else
15249     CXXFLAGS="-g"
15250   fi
15251 else
15252   if test "$GXX" = yes; then
15253     CXXFLAGS="-O2"
15254   else
15255     CXXFLAGS=
15256   fi
15257 fi
15258 ac_prog_cxx_stdcxx=no
15259 if test x$ac_prog_cxx_stdcxx = xno
15260 then :
15261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15262 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15263 if test ${ac_cv_prog_cxx_11+y}
15264 then :
15265   printf %s "(cached) " >&6
15266 else $as_nop
15267   ac_cv_prog_cxx_11=no
15268 ac_save_CXX=$CXX
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h.  */
15271 $ac_cxx_conftest_cxx11_program
15272 _ACEOF
15273 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15274 do
15275   CXX="$ac_save_CXX $ac_arg"
15276   if ac_fn_cxx_try_compile "$LINENO"
15277 then :
15278   ac_cv_prog_cxx_cxx11=$ac_arg
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext conftest.beam
15281   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15282 done
15283 rm -f conftest.$ac_ext
15284 CXX=$ac_save_CXX
15285 fi
15286
15287 if test "x$ac_cv_prog_cxx_cxx11" = xno
15288 then :
15289   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15290 printf "%s\n" "unsupported" >&6; }
15291 else $as_nop
15292   if test "x$ac_cv_prog_cxx_cxx11" = x
15293 then :
15294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15295 printf "%s\n" "none needed" >&6; }
15296 else $as_nop
15297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15298 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15299      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15300 fi
15301   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15302   ac_prog_cxx_stdcxx=cxx11
15303 fi
15304 fi
15305 if test x$ac_prog_cxx_stdcxx = xno
15306 then :
15307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15308 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15309 if test ${ac_cv_prog_cxx_98+y}
15310 then :
15311   printf %s "(cached) " >&6
15312 else $as_nop
15313   ac_cv_prog_cxx_98=no
15314 ac_save_CXX=$CXX
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h.  */
15317 $ac_cxx_conftest_cxx98_program
15318 _ACEOF
15319 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15320 do
15321   CXX="$ac_save_CXX $ac_arg"
15322   if ac_fn_cxx_try_compile "$LINENO"
15323 then :
15324   ac_cv_prog_cxx_cxx98=$ac_arg
15325 fi
15326 rm -f core conftest.err conftest.$ac_objext conftest.beam
15327   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15328 done
15329 rm -f conftest.$ac_ext
15330 CXX=$ac_save_CXX
15331 fi
15332
15333 if test "x$ac_cv_prog_cxx_cxx98" = xno
15334 then :
15335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15336 printf "%s\n" "unsupported" >&6; }
15337 else $as_nop
15338   if test "x$ac_cv_prog_cxx_cxx98" = x
15339 then :
15340   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15341 printf "%s\n" "none needed" >&6; }
15342 else $as_nop
15343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15344 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15345      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15346 fi
15347   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15348   ac_prog_cxx_stdcxx=cxx98
15349 fi
15350 fi
15351
15352 ac_ext=c
15353 ac_cpp='$CPP $CPPFLAGS'
15354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15357
15358
15359
15360 func_stripname_cnf ()
15361 {
15362   case $2 in
15363   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15364   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15365   esac
15366 } # func_stripname_cnf
15367
15368       if test -n "$CXX" && ( test no != "$CXX" &&
15369     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15370     (test g++ != "$CXX"))); then
15371   ac_ext=cpp
15372 ac_cpp='$CXXCPP $CPPFLAGS'
15373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15377 printf %s "checking how to run the C++ preprocessor... " >&6; }
15378 if test -z "$CXXCPP"; then
15379   if test ${ac_cv_prog_CXXCPP+y}
15380 then :
15381   printf %s "(cached) " >&6
15382 else $as_nop
15383       # Double quotes because $CXX needs to be expanded
15384     for CXXCPP in "$CXX -E" cpp /lib/cpp
15385     do
15386       ac_preproc_ok=false
15387 for ac_cxx_preproc_warn_flag in '' yes
15388 do
15389   # Use a header file that comes with gcc, so configuring glibc
15390   # with a fresh cross-compiler works.
15391   # On the NeXT, cc -E runs the code through the compiler's parser,
15392   # not just through cpp. "Syntax error" is here to catch this case.
15393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h.  */
15395 #include <limits.h>
15396                      Syntax error
15397 _ACEOF
15398 if ac_fn_cxx_try_cpp "$LINENO"
15399 then :
15400
15401 else $as_nop
15402   # Broken: fails on valid input.
15403 continue
15404 fi
15405 rm -f conftest.err conftest.i conftest.$ac_ext
15406
15407   # OK, works on sane cases.  Now check whether nonexistent headers
15408   # can be detected and how.
15409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h.  */
15411 #include <ac_nonexistent.h>
15412 _ACEOF
15413 if ac_fn_cxx_try_cpp "$LINENO"
15414 then :
15415   # Broken: success on invalid input.
15416 continue
15417 else $as_nop
15418   # Passes both tests.
15419 ac_preproc_ok=:
15420 break
15421 fi
15422 rm -f conftest.err conftest.i conftest.$ac_ext
15423
15424 done
15425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15426 rm -f conftest.i conftest.err conftest.$ac_ext
15427 if $ac_preproc_ok
15428 then :
15429   break
15430 fi
15431
15432     done
15433     ac_cv_prog_CXXCPP=$CXXCPP
15434
15435 fi
15436   CXXCPP=$ac_cv_prog_CXXCPP
15437 else
15438   ac_cv_prog_CXXCPP=$CXXCPP
15439 fi
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15441 printf "%s\n" "$CXXCPP" >&6; }
15442 ac_preproc_ok=false
15443 for ac_cxx_preproc_warn_flag in '' yes
15444 do
15445   # Use a header file that comes with gcc, so configuring glibc
15446   # with a fresh cross-compiler works.
15447   # On the NeXT, cc -E runs the code through the compiler's parser,
15448   # not just through cpp. "Syntax error" is here to catch this case.
15449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h.  */
15451 #include <limits.h>
15452                      Syntax error
15453 _ACEOF
15454 if ac_fn_cxx_try_cpp "$LINENO"
15455 then :
15456
15457 else $as_nop
15458   # Broken: fails on valid input.
15459 continue
15460 fi
15461 rm -f conftest.err conftest.i conftest.$ac_ext
15462
15463   # OK, works on sane cases.  Now check whether nonexistent headers
15464   # can be detected and how.
15465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h.  */
15467 #include <ac_nonexistent.h>
15468 _ACEOF
15469 if ac_fn_cxx_try_cpp "$LINENO"
15470 then :
15471   # Broken: success on invalid input.
15472 continue
15473 else $as_nop
15474   # Passes both tests.
15475 ac_preproc_ok=:
15476 break
15477 fi
15478 rm -f conftest.err conftest.i conftest.$ac_ext
15479
15480 done
15481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15482 rm -f conftest.i conftest.err conftest.$ac_ext
15483 if $ac_preproc_ok
15484 then :
15485
15486 else $as_nop
15487   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15489 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15490 See \`config.log' for more details" "$LINENO" 5; }
15491 fi
15492
15493 ac_ext=c
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498
15499 else
15500   _lt_caught_CXX_error=yes
15501 fi
15502
15503 ac_ext=cpp
15504 ac_cpp='$CXXCPP $CPPFLAGS'
15505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15508
15509 archive_cmds_need_lc_CXX=no
15510 allow_undefined_flag_CXX=
15511 always_export_symbols_CXX=no
15512 archive_expsym_cmds_CXX=
15513 compiler_needs_object_CXX=no
15514 export_dynamic_flag_spec_CXX=
15515 hardcode_direct_CXX=no
15516 hardcode_direct_absolute_CXX=no
15517 hardcode_libdir_flag_spec_CXX=
15518 hardcode_libdir_separator_CXX=
15519 hardcode_minus_L_CXX=no
15520 hardcode_shlibpath_var_CXX=unsupported
15521 hardcode_automatic_CXX=no
15522 inherit_rpath_CXX=no
15523 module_cmds_CXX=
15524 module_expsym_cmds_CXX=
15525 link_all_deplibs_CXX=unknown
15526 old_archive_cmds_CXX=$old_archive_cmds
15527 reload_flag_CXX=$reload_flag
15528 reload_cmds_CXX=$reload_cmds
15529 no_undefined_flag_CXX=
15530 whole_archive_flag_spec_CXX=
15531 enable_shared_with_static_runtimes_CXX=no
15532
15533 # Source file extension for C++ test sources.
15534 ac_ext=cpp
15535
15536 # Object file extension for compiled C++ test sources.
15537 objext=o
15538 objext_CXX=$objext
15539
15540 # No sense in running all these tests if we already determined that
15541 # the CXX compiler isn't working.  Some variables (like enable_shared)
15542 # are currently assumed to apply to all compilers on this platform,
15543 # and will be corrupted by setting them based on a non-working compiler.
15544 if test yes != "$_lt_caught_CXX_error"; then
15545   # Code to be used in simple compile tests
15546   lt_simple_compile_test_code="int some_variable = 0;"
15547
15548   # Code to be used in simple link tests
15549   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15550
15551   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15552
15553
15554
15555
15556
15557
15558 # If no C compiler was specified, use CC.
15559 LTCC=${LTCC-"$CC"}
15560
15561 # If no C compiler flags were specified, use CFLAGS.
15562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15563
15564 # Allow CC to be a program name with arguments.
15565 compiler=$CC
15566
15567
15568   # save warnings/boilerplate of simple test code
15569   ac_outfile=conftest.$ac_objext
15570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15572 _lt_compiler_boilerplate=`cat conftest.err`
15573 $RM conftest*
15574
15575   ac_outfile=conftest.$ac_objext
15576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15578 _lt_linker_boilerplate=`cat conftest.err`
15579 $RM -r conftest*
15580
15581
15582   # Allow CC to be a program name with arguments.
15583   lt_save_CC=$CC
15584   lt_save_CFLAGS=$CFLAGS
15585   lt_save_LD=$LD
15586   lt_save_GCC=$GCC
15587   GCC=$GXX
15588   lt_save_with_gnu_ld=$with_gnu_ld
15589   lt_save_path_LD=$lt_cv_path_LD
15590   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15591     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15592   else
15593     $as_unset lt_cv_prog_gnu_ld
15594   fi
15595   if test -n "${lt_cv_path_LDCXX+set}"; then
15596     lt_cv_path_LD=$lt_cv_path_LDCXX
15597   else
15598     $as_unset lt_cv_path_LD
15599   fi
15600   test -z "${LDCXX+set}" || LD=$LDCXX
15601   CC=${CXX-"c++"}
15602   CFLAGS=$CXXFLAGS
15603   compiler=$CC
15604   compiler_CXX=$CC
15605   func_cc_basename $compiler
15606 cc_basename=$func_cc_basename_result
15607
15608
15609   if test -n "$compiler"; then
15610     # We don't want -fno-exception when compiling C++ code, so set the
15611     # no_builtin_flag separately
15612     if test yes = "$GXX"; then
15613       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15614     else
15615       lt_prog_compiler_no_builtin_flag_CXX=
15616     fi
15617
15618     if test yes = "$GXX"; then
15619       # Set up default GNU C++ configuration
15620
15621
15622
15623 # Check whether --with-gnu-ld was given.
15624 if test ${with_gnu_ld+y}
15625 then :
15626   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15627 else $as_nop
15628   with_gnu_ld=no
15629 fi
15630
15631 ac_prog=ld
15632 if test yes = "$GCC"; then
15633   # Check if gcc -print-prog-name=ld gives a path.
15634   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15635 printf %s "checking for ld used by $CC... " >&6; }
15636   case $host in
15637   *-*-mingw*)
15638     # gcc leaves a trailing carriage return, which upsets mingw
15639     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15640   *)
15641     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15642   esac
15643   case $ac_prog in
15644     # Accept absolute paths.
15645     [\\/]* | ?:[\\/]*)
15646       re_direlt='/[^/][^/]*/\.\./'
15647       # Canonicalize the pathname of ld
15648       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15649       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15650         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15651       done
15652       test -z "$LD" && LD=$ac_prog
15653       ;;
15654   "")
15655     # If it fails, then pretend we aren't using GCC.
15656     ac_prog=ld
15657     ;;
15658   *)
15659     # If it is relative, then search for the first ld in PATH.
15660     with_gnu_ld=unknown
15661     ;;
15662   esac
15663 elif test yes = "$with_gnu_ld"; then
15664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15665 printf %s "checking for GNU ld... " >&6; }
15666 else
15667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15668 printf %s "checking for non-GNU ld... " >&6; }
15669 fi
15670 if test ${lt_cv_path_LD+y}
15671 then :
15672   printf %s "(cached) " >&6
15673 else $as_nop
15674   if test -z "$LD"; then
15675   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15676   for ac_dir in $PATH; do
15677     IFS=$lt_save_ifs
15678     test -z "$ac_dir" && ac_dir=.
15679     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15680       lt_cv_path_LD=$ac_dir/$ac_prog
15681       # Check to see if the program is GNU ld.  I'd rather use --version,
15682       # but apparently some variants of GNU ld only accept -v.
15683       # Break only if it was the GNU/non-GNU ld that we prefer.
15684       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15685       *GNU* | *'with BFD'*)
15686         test no != "$with_gnu_ld" && break
15687         ;;
15688       *)
15689         test yes != "$with_gnu_ld" && break
15690         ;;
15691       esac
15692     fi
15693   done
15694   IFS=$lt_save_ifs
15695 else
15696   lt_cv_path_LD=$LD # Let the user override the test with a path.
15697 fi
15698 fi
15699
15700 LD=$lt_cv_path_LD
15701 if test -n "$LD"; then
15702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15703 printf "%s\n" "$LD" >&6; }
15704 else
15705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 printf "%s\n" "no" >&6; }
15707 fi
15708 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15710 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15711 if test ${lt_cv_prog_gnu_ld+y}
15712 then :
15713   printf %s "(cached) " >&6
15714 else $as_nop
15715   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15716 case `$LD -v 2>&1 </dev/null` in
15717 *GNU* | *'with BFD'*)
15718   lt_cv_prog_gnu_ld=yes
15719   ;;
15720 *)
15721   lt_cv_prog_gnu_ld=no
15722   ;;
15723 esac
15724 fi
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15726 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15727 with_gnu_ld=$lt_cv_prog_gnu_ld
15728
15729
15730
15731
15732
15733
15734
15735       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15736       # archiving commands below assume that GNU ld is being used.
15737       if test yes = "$with_gnu_ld"; then
15738         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15739         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'
15740
15741         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15742         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15743
15744         # If archive_cmds runs LD, not CC, wlarc should be empty
15745         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15746         #     investigate it a little bit more. (MM)
15747         wlarc='$wl'
15748
15749         # ancient GNU ld didn't support --whole-archive et. al.
15750         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15751           $GREP 'no-whole-archive' > /dev/null; then
15752           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15753         else
15754           whole_archive_flag_spec_CXX=
15755         fi
15756       else
15757         with_gnu_ld=no
15758         wlarc=
15759
15760         # A generic and very simple default shared library creation
15761         # command for GNU C++ for the case where it uses the native
15762         # linker, instead of GNU ld.  If possible, this setting should
15763         # overridden to take advantage of the native linker features on
15764         # the platform it is being used on.
15765         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15766       fi
15767
15768       # Commands to make compiler produce verbose output that lists
15769       # what "hidden" libraries, object files and flags are used when
15770       # linking a shared library.
15771       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15772
15773     else
15774       GXX=no
15775       with_gnu_ld=no
15776       wlarc=
15777     fi
15778
15779     # PORTME: fill in a description of your system's C++ link characteristics
15780     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15781 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15782     ld_shlibs_CXX=yes
15783     case $host_os in
15784       aix3*)
15785         # FIXME: insert proper C++ library support
15786         ld_shlibs_CXX=no
15787         ;;
15788       aix[4-9]*)
15789         if test ia64 = "$host_cpu"; then
15790           # On IA64, the linker does run time linking by default, so we don't
15791           # have to do anything special.
15792           aix_use_runtimelinking=no
15793           exp_sym_flag='-Bexport'
15794           no_entry_flag=
15795         else
15796           aix_use_runtimelinking=no
15797
15798           # Test if we are trying to use run time linking or normal
15799           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800           # have runtime linking enabled, and use it for executables.
15801           # For shared libraries, we enable/disable runtime linking
15802           # depending on the kind of the shared library created -
15803           # when "with_aix_soname,aix_use_runtimelinking" is:
15804           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15805           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15806           #            lib.a           static archive
15807           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15808           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15809           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15810           #            lib.a(lib.so.V) shared, rtl:no
15811           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15812           #            lib.a           static archive
15813           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15814             for ld_flag in $LDFLAGS; do
15815               case $ld_flag in
15816               *-brtl*)
15817                 aix_use_runtimelinking=yes
15818                 break
15819                 ;;
15820               esac
15821             done
15822             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15823               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15824               # so we don't have lib.a shared libs to link our executables.
15825               # We have to force runtime linking in this case.
15826               aix_use_runtimelinking=yes
15827               LDFLAGS="$LDFLAGS -Wl,-brtl"
15828             fi
15829             ;;
15830           esac
15831
15832           exp_sym_flag='-bexport'
15833           no_entry_flag='-bnoentry'
15834         fi
15835
15836         # When large executables or shared objects are built, AIX ld can
15837         # have problems creating the table of contents.  If linking a library
15838         # or program results in "error TOC overflow" add -mminimal-toc to
15839         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15840         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15841
15842         archive_cmds_CXX=''
15843         hardcode_direct_CXX=yes
15844         hardcode_direct_absolute_CXX=yes
15845         hardcode_libdir_separator_CXX=':'
15846         link_all_deplibs_CXX=yes
15847         file_list_spec_CXX='$wl-f,'
15848         case $with_aix_soname,$aix_use_runtimelinking in
15849         aix,*) ;;       # no import file
15850         svr4,* | *,yes) # use import file
15851           # The Import File defines what to hardcode.
15852           hardcode_direct_CXX=no
15853           hardcode_direct_absolute_CXX=no
15854           ;;
15855         esac
15856
15857         if test yes = "$GXX"; then
15858           case $host_os in aix4.[012]|aix4.[012].*)
15859           # We only want to do this on AIX 4.2 and lower, the check
15860           # below for broken collect2 doesn't work under 4.3+
15861           collect2name=`$CC -print-prog-name=collect2`
15862           if test -f "$collect2name" &&
15863              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15864           then
15865             # We have reworked collect2
15866             :
15867           else
15868             # We have old collect2
15869             hardcode_direct_CXX=unsupported
15870             # It fails to find uninstalled libraries when the uninstalled
15871             # path is not listed in the libpath.  Setting hardcode_minus_L
15872             # to unsupported forces relinking
15873             hardcode_minus_L_CXX=yes
15874             hardcode_libdir_flag_spec_CXX='-L$libdir'
15875             hardcode_libdir_separator_CXX=
15876           fi
15877           esac
15878           shared_flag='-shared'
15879           if test yes = "$aix_use_runtimelinking"; then
15880             shared_flag=$shared_flag' $wl-G'
15881           fi
15882           # Need to ensure runtime linking is disabled for the traditional
15883           # shared library, or the linker may eventually find shared libraries
15884           # /with/ Import File - we do not want to mix them.
15885           shared_flag_aix='-shared'
15886           shared_flag_svr4='-shared $wl-G'
15887         else
15888           # not using gcc
15889           if test ia64 = "$host_cpu"; then
15890           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15891           # chokes on -Wl,-G. The following line is correct:
15892           shared_flag='-G'
15893           else
15894             if test yes = "$aix_use_runtimelinking"; then
15895               shared_flag='$wl-G'
15896             else
15897               shared_flag='$wl-bM:SRE'
15898             fi
15899             shared_flag_aix='$wl-bM:SRE'
15900             shared_flag_svr4='$wl-G'
15901           fi
15902         fi
15903
15904         export_dynamic_flag_spec_CXX='$wl-bexpall'
15905         # It seems that -bexpall does not export symbols beginning with
15906         # underscore (_), so it is better to generate a list of symbols to
15907         # export.
15908         always_export_symbols_CXX=yes
15909         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15910           # Warning - without using the other runtime loading flags (-brtl),
15911           # -berok will link without error, but may produce a broken library.
15912           # The "-G" linker flag allows undefined symbols.
15913           no_undefined_flag_CXX='-bernotok'
15914           # Determine the default libpath from the value encoded in an empty
15915           # executable.
15916           if test set = "${lt_cv_aix_libpath+set}"; then
15917   aix_libpath=$lt_cv_aix_libpath
15918 else
15919   if test ${lt_cv_aix_libpath__CXX+y}
15920 then :
15921   printf %s "(cached) " >&6
15922 else $as_nop
15923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h.  */
15925
15926 int
15927 main (void)
15928 {
15929
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_cxx_try_link "$LINENO"
15935 then :
15936
15937   lt_aix_libpath_sed='
15938       /Import File Strings/,/^$/ {
15939           /^0/ {
15940               s/^0  *\([^ ]*\) *$/\1/
15941               p
15942           }
15943       }'
15944   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945   # Check for a 64-bit object if we didn't find anything.
15946   if test -z "$lt_cv_aix_libpath__CXX"; then
15947     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948   fi
15949 fi
15950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15951     conftest$ac_exeext conftest.$ac_ext
15952   if test -z "$lt_cv_aix_libpath__CXX"; then
15953     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15954   fi
15955
15956 fi
15957
15958   aix_libpath=$lt_cv_aix_libpath__CXX
15959 fi
15960
15961           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15962
15963           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
15964         else
15965           if test ia64 = "$host_cpu"; then
15966             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15967             allow_undefined_flag_CXX="-z nodefs"
15968             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"
15969           else
15970             # Determine the default libpath from the value encoded in an
15971             # empty executable.
15972             if test set = "${lt_cv_aix_libpath+set}"; then
15973   aix_libpath=$lt_cv_aix_libpath
15974 else
15975   if test ${lt_cv_aix_libpath__CXX+y}
15976 then :
15977   printf %s "(cached) " >&6
15978 else $as_nop
15979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981
15982 int
15983 main (void)
15984 {
15985
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_cxx_try_link "$LINENO"
15991 then :
15992
15993   lt_aix_libpath_sed='
15994       /Import File Strings/,/^$/ {
15995           /^0/ {
15996               s/^0  *\([^ ]*\) *$/\1/
15997               p
15998           }
15999       }'
16000   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001   # Check for a 64-bit object if we didn't find anything.
16002   if test -z "$lt_cv_aix_libpath__CXX"; then
16003     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16004   fi
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16007     conftest$ac_exeext conftest.$ac_ext
16008   if test -z "$lt_cv_aix_libpath__CXX"; then
16009     lt_cv_aix_libpath__CXX=/usr/lib:/lib
16010   fi
16011
16012 fi
16013
16014   aix_libpath=$lt_cv_aix_libpath__CXX
16015 fi
16016
16017             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16018             # Warning - without using the other run time loading flags,
16019             # -berok will link without error, but may produce a broken library.
16020             no_undefined_flag_CXX=' $wl-bernotok'
16021             allow_undefined_flag_CXX=' $wl-berok'
16022             if test yes = "$with_gnu_ld"; then
16023               # We only use this code for GNU lds that support --whole-archive.
16024               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16025             else
16026               # Exported symbols can be pulled into shared objects from archives
16027               whole_archive_flag_spec_CXX='$convenience'
16028             fi
16029             archive_cmds_need_lc_CXX=yes
16030             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16031             # -brtl affects multiple linker settings, -berok does not and is overridden later
16032             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16033             if test svr4 != "$with_aix_soname"; then
16034               # This is similar to how AIX traditionally builds its shared
16035               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16036               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'
16037             fi
16038             if test aix != "$with_aix_soname"; then
16039               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'
16040             else
16041               # used by -dlpreopen to get the symbols
16042               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16043             fi
16044             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16045           fi
16046         fi
16047         ;;
16048
16049       beos*)
16050         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16051           allow_undefined_flag_CXX=unsupported
16052           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16053           # support --undefined.  This deserves some investigation.  FIXME
16054           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16055         else
16056           ld_shlibs_CXX=no
16057         fi
16058         ;;
16059
16060       chorus*)
16061         case $cc_basename in
16062           *)
16063           # FIXME: insert proper C++ library support
16064           ld_shlibs_CXX=no
16065           ;;
16066         esac
16067         ;;
16068
16069       cygwin* | mingw* | pw32* | cegcc*)
16070         case $GXX,$cc_basename in
16071         ,cl* | no,cl*)
16072           # Native MSVC
16073           # hardcode_libdir_flag_spec is actually meaningless, as there is
16074           # no search path for DLLs.
16075           hardcode_libdir_flag_spec_CXX=' '
16076           allow_undefined_flag_CXX=unsupported
16077           always_export_symbols_CXX=yes
16078           file_list_spec_CXX='@'
16079           # Tell ltmain to make .lib files, not .a files.
16080           libext=lib
16081           # Tell ltmain to make .dll files, not .so files.
16082           shrext_cmds=.dll
16083           # FIXME: Setting linknames here is a bad hack.
16084           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16085           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16086               cp "$export_symbols" "$output_objdir/$soname.def";
16087               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16088             else
16089               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16090             fi~
16091             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16092             linknames='
16093           # The linker will not automatically build a static lib if we build a DLL.
16094           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16095           enable_shared_with_static_runtimes_CXX=yes
16096           # Don't use ranlib
16097           old_postinstall_cmds_CXX='chmod 644 $oldlib'
16098           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16099             lt_tool_outputfile="@TOOL_OUTPUT@"~
16100             case $lt_outputfile in
16101               *.exe|*.EXE) ;;
16102               *)
16103                 lt_outputfile=$lt_outputfile.exe
16104                 lt_tool_outputfile=$lt_tool_outputfile.exe
16105                 ;;
16106             esac~
16107             func_to_tool_file "$lt_outputfile"~
16108             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16109               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16110               $RM "$lt_outputfile.manifest";
16111             fi'
16112           ;;
16113         *)
16114           # g++
16115           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16116           # as there is no search path for DLLs.
16117           hardcode_libdir_flag_spec_CXX='-L$libdir'
16118           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16119           allow_undefined_flag_CXX=unsupported
16120           always_export_symbols_CXX=no
16121           enable_shared_with_static_runtimes_CXX=yes
16122
16123           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16124             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'
16125             # If the export-symbols file already is a .def file, use it as
16126             # is; otherwise, prepend EXPORTS...
16127             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16128               cp $export_symbols $output_objdir/$soname.def;
16129             else
16130               echo EXPORTS > $output_objdir/$soname.def;
16131               cat $export_symbols >> $output_objdir/$soname.def;
16132             fi~
16133             $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'
16134           else
16135             ld_shlibs_CXX=no
16136           fi
16137           ;;
16138         esac
16139         ;;
16140       darwin* | rhapsody*)
16141
16142
16143   archive_cmds_need_lc_CXX=no
16144   hardcode_direct_CXX=no
16145   hardcode_automatic_CXX=yes
16146   hardcode_shlibpath_var_CXX=unsupported
16147   if test yes = "$lt_cv_ld_force_load"; then
16148     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\"`'
16149
16150   else
16151     whole_archive_flag_spec_CXX=''
16152   fi
16153   link_all_deplibs_CXX=yes
16154   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16155   case $cc_basename in
16156      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16157      *) _lt_dar_can_shared=$GCC ;;
16158   esac
16159   if test yes = "$_lt_dar_can_shared"; then
16160     output_verbose_link_cmd=func_echo_all
16161     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"
16162     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16163     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"
16164     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"
16165        if test yes != "$lt_cv_apple_cc_single_mod"; then
16166       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"
16167       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"
16168     fi
16169
16170   else
16171   ld_shlibs_CXX=no
16172   fi
16173
16174         ;;
16175
16176       os2*)
16177         hardcode_libdir_flag_spec_CXX='-L$libdir'
16178         hardcode_minus_L_CXX=yes
16179         allow_undefined_flag_CXX=unsupported
16180         shrext_cmds=.dll
16181         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16182           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16183           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16184           $ECHO EXPORTS >> $output_objdir/$libname.def~
16185           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16186           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16187           emximp -o $lib $output_objdir/$libname.def'
16188         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16189           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16190           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16191           $ECHO EXPORTS >> $output_objdir/$libname.def~
16192           prefix_cmds="$SED"~
16193           if test EXPORTS = "`$SED 1q $export_symbols`"; then
16194             prefix_cmds="$prefix_cmds -e 1d";
16195           fi~
16196           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16197           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16198           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16199           emximp -o $lib $output_objdir/$libname.def'
16200         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16201         enable_shared_with_static_runtimes_CXX=yes
16202         ;;
16203
16204       dgux*)
16205         case $cc_basename in
16206           ec++*)
16207             # FIXME: insert proper C++ library support
16208             ld_shlibs_CXX=no
16209             ;;
16210           ghcx*)
16211             # Green Hills C++ Compiler
16212             # FIXME: insert proper C++ library support
16213             ld_shlibs_CXX=no
16214             ;;
16215           *)
16216             # FIXME: insert proper C++ library support
16217             ld_shlibs_CXX=no
16218             ;;
16219         esac
16220         ;;
16221
16222       freebsd2.*)
16223         # C++ shared libraries reported to be fairly broken before
16224         # switch to ELF
16225         ld_shlibs_CXX=no
16226         ;;
16227
16228       freebsd-elf*)
16229         archive_cmds_need_lc_CXX=no
16230         ;;
16231
16232       freebsd* | dragonfly*)
16233         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16234         # conventions
16235         ld_shlibs_CXX=yes
16236         ;;
16237
16238       haiku*)
16239         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16240         link_all_deplibs_CXX=yes
16241         ;;
16242
16243       hpux9*)
16244         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16245         hardcode_libdir_separator_CXX=:
16246         export_dynamic_flag_spec_CXX='$wl-E'
16247         hardcode_direct_CXX=yes
16248         hardcode_minus_L_CXX=yes # Not in the search PATH,
16249                                              # but as the default
16250                                              # location of the library.
16251
16252         case $cc_basename in
16253           CC*)
16254             # FIXME: insert proper C++ library support
16255             ld_shlibs_CXX=no
16256             ;;
16257           aCC*)
16258             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'
16259             # Commands to make compiler produce verbose output that lists
16260             # what "hidden" libraries, object files and flags are used when
16261             # linking a shared library.
16262             #
16263             # There doesn't appear to be a way to prevent this compiler from
16264             # explicitly linking system object files so we need to strip them
16265             # from the output so that they don't get included in the library
16266             # dependencies.
16267             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"'
16268             ;;
16269           *)
16270             if test yes = "$GXX"; then
16271               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'
16272             else
16273               # FIXME: insert proper C++ library support
16274               ld_shlibs_CXX=no
16275             fi
16276             ;;
16277         esac
16278         ;;
16279
16280       hpux10*|hpux11*)
16281         if test no = "$with_gnu_ld"; then
16282           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16283           hardcode_libdir_separator_CXX=:
16284
16285           case $host_cpu in
16286             hppa*64*|ia64*)
16287               ;;
16288             *)
16289               export_dynamic_flag_spec_CXX='$wl-E'
16290               ;;
16291           esac
16292         fi
16293         case $host_cpu in
16294           hppa*64*|ia64*)
16295             hardcode_direct_CXX=no
16296             hardcode_shlibpath_var_CXX=no
16297             ;;
16298           *)
16299             hardcode_direct_CXX=yes
16300             hardcode_direct_absolute_CXX=yes
16301             hardcode_minus_L_CXX=yes # Not in the search PATH,
16302                                                  # but as the default
16303                                                  # location of the library.
16304             ;;
16305         esac
16306
16307         case $cc_basename in
16308           CC*)
16309             # FIXME: insert proper C++ library support
16310             ld_shlibs_CXX=no
16311             ;;
16312           aCC*)
16313             case $host_cpu in
16314               hppa*64*)
16315                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16316                 ;;
16317               ia64*)
16318                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16319                 ;;
16320               *)
16321                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16322                 ;;
16323             esac
16324             # Commands to make compiler produce verbose output that lists
16325             # what "hidden" libraries, object files and flags are used when
16326             # linking a shared library.
16327             #
16328             # There doesn't appear to be a way to prevent this compiler from
16329             # explicitly linking system object files so we need to strip them
16330             # from the output so that they don't get included in the library
16331             # dependencies.
16332             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"'
16333             ;;
16334           *)
16335             if test yes = "$GXX"; then
16336               if test no = "$with_gnu_ld"; then
16337                 case $host_cpu in
16338                   hppa*64*)
16339                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16340                     ;;
16341                   ia64*)
16342                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16343                     ;;
16344                   *)
16345                     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'
16346                     ;;
16347                 esac
16348               fi
16349             else
16350               # FIXME: insert proper C++ library support
16351               ld_shlibs_CXX=no
16352             fi
16353             ;;
16354         esac
16355         ;;
16356
16357       interix[3-9]*)
16358         hardcode_direct_CXX=no
16359         hardcode_shlibpath_var_CXX=no
16360         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16361         export_dynamic_flag_spec_CXX='$wl-E'
16362         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16363         # Instead, shared libraries are loaded at an image base (0x10000000 by
16364         # default) and relocated if they conflict, which is a slow very memory
16365         # consuming and fragmenting process.  To avoid this, we pick a random,
16366         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16367         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16368         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'
16369         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'
16370         ;;
16371       irix5* | irix6*)
16372         case $cc_basename in
16373           CC*)
16374             # SGI C++
16375             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'
16376
16377             # Archives containing C++ object files must be created using
16378             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16379             # necessary to make sure instantiated templates are included
16380             # in the archive.
16381             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16382             ;;
16383           *)
16384             if test yes = "$GXX"; then
16385               if test no = "$with_gnu_ld"; then
16386                 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'
16387               else
16388                 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'
16389               fi
16390             fi
16391             link_all_deplibs_CXX=yes
16392             ;;
16393         esac
16394         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16395         hardcode_libdir_separator_CXX=:
16396         inherit_rpath_CXX=yes
16397         ;;
16398
16399       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16400         case $cc_basename in
16401           KCC*)
16402             # Kuck and Associates, Inc. (KAI) C++ Compiler
16403
16404             # KCC will only create a shared library if the output file
16405             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16406             # to its proper name (with version) after linking.
16407             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'
16408             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'
16409             # Commands to make compiler produce verbose output that lists
16410             # what "hidden" libraries, object files and flags are used when
16411             # linking a shared library.
16412             #
16413             # There doesn't appear to be a way to prevent this compiler from
16414             # explicitly linking system object files so we need to strip them
16415             # from the output so that they don't get included in the library
16416             # dependencies.
16417             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"'
16418
16419             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16420             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16421
16422             # Archives containing C++ object files must be created using
16423             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16424             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16425             ;;
16426           icpc* | ecpc* )
16427             # Intel C++
16428             with_gnu_ld=yes
16429             # version 8.0 and above of icpc choke on multiply defined symbols
16430             # if we add $predep_objects and $postdep_objects, however 7.1 and
16431             # earlier do not add the objects themselves.
16432             case `$CC -V 2>&1` in
16433               *"Version 7."*)
16434                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16435                 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'
16436                 ;;
16437               *)  # Version 8.0 or newer
16438                 tmp_idyn=
16439                 case $host_cpu in
16440                   ia64*) tmp_idyn=' -i_dynamic';;
16441                 esac
16442                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16443                 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'
16444                 ;;
16445             esac
16446             archive_cmds_need_lc_CXX=no
16447             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16448             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16449             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16450             ;;
16451           pgCC* | pgcpp*)
16452             # Portland Group C++ compiler
16453             case `$CC -V` in
16454             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16455               prelink_cmds_CXX='tpldir=Template.dir~
16456                rm -rf $tpldir~
16457                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16458                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16459               old_archive_cmds_CXX='tpldir=Template.dir~
16460                 rm -rf $tpldir~
16461                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16462                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16463                 $RANLIB $oldlib'
16464               archive_cmds_CXX='tpldir=Template.dir~
16465                 rm -rf $tpldir~
16466                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16467                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16468               archive_expsym_cmds_CXX='tpldir=Template.dir~
16469                 rm -rf $tpldir~
16470                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16471                 $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'
16472               ;;
16473             *) # Version 6 and above use weak symbols
16474               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16475               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'
16476               ;;
16477             esac
16478
16479             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16480             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16481             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'
16482             ;;
16483           cxx*)
16484             # Compaq C++
16485             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16486             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'
16487
16488             runpath_var=LD_RUN_PATH
16489             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490             hardcode_libdir_separator_CXX=:
16491
16492             # Commands to make compiler produce verbose output that lists
16493             # what "hidden" libraries, object files and flags are used when
16494             # linking a shared library.
16495             #
16496             # There doesn't appear to be a way to prevent this compiler from
16497             # explicitly linking system object files so we need to strip them
16498             # from the output so that they don't get included in the library
16499             # dependencies.
16500             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'
16501             ;;
16502           xl* | mpixl* | bgxl*)
16503             # IBM XL 8.0 on PPC, with GNU ld
16504             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16505             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16506             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16507             if test yes = "$supports_anon_versioning"; then
16508               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16509                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16510                 echo "local: *; };" >> $output_objdir/$libname.ver~
16511                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16512             fi
16513             ;;
16514           *)
16515             case `$CC -V 2>&1 | sed 5q` in
16516             *Sun\ C*)
16517               # Sun C++ 5.9
16518               no_undefined_flag_CXX=' -zdefs'
16519               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16520               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'
16521               hardcode_libdir_flag_spec_CXX='-R$libdir'
16522               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'
16523               compiler_needs_object_CXX=yes
16524
16525               # Not sure whether something based on
16526               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16527               # would be better.
16528               output_verbose_link_cmd='func_echo_all'
16529
16530               # Archives containing C++ object files must be created using
16531               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16532               # necessary to make sure instantiated templates are included
16533               # in the archive.
16534               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16535               ;;
16536             esac
16537             ;;
16538         esac
16539         ;;
16540
16541       lynxos*)
16542         # FIXME: insert proper C++ library support
16543         ld_shlibs_CXX=no
16544         ;;
16545
16546       m88k*)
16547         # FIXME: insert proper C++ library support
16548         ld_shlibs_CXX=no
16549         ;;
16550
16551       mvs*)
16552         case $cc_basename in
16553           cxx*)
16554             # FIXME: insert proper C++ library support
16555             ld_shlibs_CXX=no
16556             ;;
16557           *)
16558             # FIXME: insert proper C++ library support
16559             ld_shlibs_CXX=no
16560             ;;
16561         esac
16562         ;;
16563
16564       netbsd*)
16565         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16566           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16567           wlarc=
16568           hardcode_libdir_flag_spec_CXX='-R$libdir'
16569           hardcode_direct_CXX=yes
16570           hardcode_shlibpath_var_CXX=no
16571         fi
16572         # Workaround some broken pre-1.5 toolchains
16573         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16574         ;;
16575
16576       *nto* | *qnx*)
16577         ld_shlibs_CXX=yes
16578         ;;
16579
16580       openbsd* | bitrig*)
16581         if test -f /usr/libexec/ld.so; then
16582           hardcode_direct_CXX=yes
16583           hardcode_shlibpath_var_CXX=no
16584           hardcode_direct_absolute_CXX=yes
16585           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16586           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16587           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16588             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16589             export_dynamic_flag_spec_CXX='$wl-E'
16590             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16591           fi
16592           output_verbose_link_cmd=func_echo_all
16593         else
16594           ld_shlibs_CXX=no
16595         fi
16596         ;;
16597
16598       osf3* | osf4* | osf5*)
16599         case $cc_basename in
16600           KCC*)
16601             # Kuck and Associates, Inc. (KAI) C++ Compiler
16602
16603             # KCC will only create a shared library if the output file
16604             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16605             # to its proper name (with version) after linking.
16606             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'
16607
16608             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16609             hardcode_libdir_separator_CXX=:
16610
16611             # Archives containing C++ object files must be created using
16612             # the KAI C++ compiler.
16613             case $host in
16614               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16615               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16616             esac
16617             ;;
16618           RCC*)
16619             # Rational C++ 2.4.1
16620             # FIXME: insert proper C++ library support
16621             ld_shlibs_CXX=no
16622             ;;
16623           cxx*)
16624             case $host in
16625               osf3*)
16626                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16627                 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'
16628                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16629                 ;;
16630               *)
16631                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16632                 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'
16633                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16634                   echo "-hidden">> $lib.exp~
16635                   $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~
16636                   $RM $lib.exp'
16637                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16638                 ;;
16639             esac
16640
16641             hardcode_libdir_separator_CXX=:
16642
16643             # Commands to make compiler produce verbose output that lists
16644             # what "hidden" libraries, object files and flags are used when
16645             # linking a shared library.
16646             #
16647             # There doesn't appear to be a way to prevent this compiler from
16648             # explicitly linking system object files so we need to strip them
16649             # from the output so that they don't get included in the library
16650             # dependencies.
16651             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"'
16652             ;;
16653           *)
16654             if test yes,no = "$GXX,$with_gnu_ld"; then
16655               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16656               case $host in
16657                 osf3*)
16658                   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'
16659                   ;;
16660                 *)
16661                   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'
16662                   ;;
16663               esac
16664
16665               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16666               hardcode_libdir_separator_CXX=:
16667
16668               # Commands to make compiler produce verbose output that lists
16669               # what "hidden" libraries, object files and flags are used when
16670               # linking a shared library.
16671               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16672
16673             else
16674               # FIXME: insert proper C++ library support
16675               ld_shlibs_CXX=no
16676             fi
16677             ;;
16678         esac
16679         ;;
16680
16681       psos*)
16682         # FIXME: insert proper C++ library support
16683         ld_shlibs_CXX=no
16684         ;;
16685
16686       sunos4*)
16687         case $cc_basename in
16688           CC*)
16689             # Sun C++ 4.x
16690             # FIXME: insert proper C++ library support
16691             ld_shlibs_CXX=no
16692             ;;
16693           lcc*)
16694             # Lucid
16695             # FIXME: insert proper C++ library support
16696             ld_shlibs_CXX=no
16697             ;;
16698           *)
16699             # FIXME: insert proper C++ library support
16700             ld_shlibs_CXX=no
16701             ;;
16702         esac
16703         ;;
16704
16705       solaris*)
16706         case $cc_basename in
16707           CC* | sunCC*)
16708             # Sun C++ 4.2, 5.x and Centerline C++
16709             archive_cmds_need_lc_CXX=yes
16710             no_undefined_flag_CXX=' -zdefs'
16711             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16712             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16713               $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'
16714
16715             hardcode_libdir_flag_spec_CXX='-R$libdir'
16716             hardcode_shlibpath_var_CXX=no
16717             case $host_os in
16718               solaris2.[0-5] | solaris2.[0-5].*) ;;
16719               *)
16720                 # The compiler driver will combine and reorder linker options,
16721                 # but understands '-z linker_flag'.
16722                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16723                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16724                 ;;
16725             esac
16726             link_all_deplibs_CXX=yes
16727
16728             output_verbose_link_cmd='func_echo_all'
16729
16730             # Archives containing C++ object files must be created using
16731             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16732             # necessary to make sure instantiated templates are included
16733             # in the archive.
16734             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16735             ;;
16736           gcx*)
16737             # Green Hills C++ Compiler
16738             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16739
16740             # The C++ compiler must be used to create the archive.
16741             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16742             ;;
16743           *)
16744             # GNU C++ compiler with Solaris linker
16745             if test yes,no = "$GXX,$with_gnu_ld"; then
16746               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16747               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16748                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16749                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16750                   $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'
16751
16752                 # Commands to make compiler produce verbose output that lists
16753                 # what "hidden" libraries, object files and flags are used when
16754                 # linking a shared library.
16755                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16756               else
16757                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16758                 # platform.
16759                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16760                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16761                   $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'
16762
16763                 # Commands to make compiler produce verbose output that lists
16764                 # what "hidden" libraries, object files and flags are used when
16765                 # linking a shared library.
16766                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16767               fi
16768
16769               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16770               case $host_os in
16771                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16772                 *)
16773                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16774                   ;;
16775               esac
16776             fi
16777             ;;
16778         esac
16779         ;;
16780
16781     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16782       no_undefined_flag_CXX='$wl-z,text'
16783       archive_cmds_need_lc_CXX=no
16784       hardcode_shlibpath_var_CXX=no
16785       runpath_var='LD_RUN_PATH'
16786
16787       case $cc_basename in
16788         CC*)
16789           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16791           ;;
16792         *)
16793           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16794           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16795           ;;
16796       esac
16797       ;;
16798
16799       sysv5* | sco3.2v5* | sco5v6*)
16800         # Note: We CANNOT use -z defs as we might desire, because we do not
16801         # link with -lc, and that would cause any symbols used from libc to
16802         # always be unresolved, which means just about no library would
16803         # ever link correctly.  If we're not using GNU ld we use -z text
16804         # though, which does catch some bad symbols but isn't as heavy-handed
16805         # as -z defs.
16806         no_undefined_flag_CXX='$wl-z,text'
16807         allow_undefined_flag_CXX='$wl-z,nodefs'
16808         archive_cmds_need_lc_CXX=no
16809         hardcode_shlibpath_var_CXX=no
16810         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16811         hardcode_libdir_separator_CXX=':'
16812         link_all_deplibs_CXX=yes
16813         export_dynamic_flag_spec_CXX='$wl-Bexport'
16814         runpath_var='LD_RUN_PATH'
16815
16816         case $cc_basename in
16817           CC*)
16818             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16820             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16821               '"$old_archive_cmds_CXX"
16822             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16823               '"$reload_cmds_CXX"
16824             ;;
16825           *)
16826             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16827             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16828             ;;
16829         esac
16830       ;;
16831
16832       tandem*)
16833         case $cc_basename in
16834           NCC*)
16835             # NonStop-UX NCC 3.20
16836             # FIXME: insert proper C++ library support
16837             ld_shlibs_CXX=no
16838             ;;
16839           *)
16840             # FIXME: insert proper C++ library support
16841             ld_shlibs_CXX=no
16842             ;;
16843         esac
16844         ;;
16845
16846       vxworks*)
16847         # FIXME: insert proper C++ library support
16848         ld_shlibs_CXX=no
16849         ;;
16850
16851       *)
16852         # FIXME: insert proper C++ library support
16853         ld_shlibs_CXX=no
16854         ;;
16855     esac
16856
16857     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16858 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16859     test no = "$ld_shlibs_CXX" && can_build_shared=no
16860
16861     GCC_CXX=$GXX
16862     LD_CXX=$LD
16863
16864     ## CAVEAT EMPTOR:
16865     ## There is no encapsulation within the following macros, do not change
16866     ## the running order or otherwise move them around unless you know exactly
16867     ## what you are doing...
16868     # Dependencies to place before and after the object being linked:
16869 predep_objects_CXX=
16870 postdep_objects_CXX=
16871 predeps_CXX=
16872 postdeps_CXX=
16873 compiler_lib_search_path_CXX=
16874
16875 cat > conftest.$ac_ext <<_LT_EOF
16876 class Foo
16877 {
16878 public:
16879   Foo (void) { a = 0; }
16880 private:
16881   int a;
16882 };
16883 _LT_EOF
16884
16885
16886 _lt_libdeps_save_CFLAGS=$CFLAGS
16887 case "$CC $CFLAGS " in #(
16888 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16889 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16890 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16891 esac
16892
16893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16894   (eval $ac_compile) 2>&5
16895   ac_status=$?
16896   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16897   test $ac_status = 0; }; then
16898   # Parse the compiler output and extract the necessary
16899   # objects, libraries and library flags.
16900
16901   # Sentinel used to keep track of whether or not we are before
16902   # the conftest object file.
16903   pre_test_object_deps_done=no
16904
16905   for p in `eval "$output_verbose_link_cmd"`; do
16906     case $prev$p in
16907
16908     -L* | -R* | -l*)
16909        # Some compilers place space between "-{L,R}" and the path.
16910        # Remove the space.
16911        if test x-L = "$p" ||
16912           test x-R = "$p"; then
16913          prev=$p
16914          continue
16915        fi
16916
16917        # Expand the sysroot to ease extracting the directories later.
16918        if test -z "$prev"; then
16919          case $p in
16920          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16921          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16922          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16923          esac
16924        fi
16925        case $p in
16926        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16927        esac
16928        if test no = "$pre_test_object_deps_done"; then
16929          case $prev in
16930          -L | -R)
16931            # Internal compiler library paths should come after those
16932            # provided the user.  The postdeps already come after the
16933            # user supplied libs so there is no need to process them.
16934            if test -z "$compiler_lib_search_path_CXX"; then
16935              compiler_lib_search_path_CXX=$prev$p
16936            else
16937              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16938            fi
16939            ;;
16940          # The "-l" case would never come before the object being
16941          # linked, so don't bother handling this case.
16942          esac
16943        else
16944          if test -z "$postdeps_CXX"; then
16945            postdeps_CXX=$prev$p
16946          else
16947            postdeps_CXX="${postdeps_CXX} $prev$p"
16948          fi
16949        fi
16950        prev=
16951        ;;
16952
16953     *.lto.$objext) ;; # Ignore GCC LTO objects
16954     *.$objext)
16955        # This assumes that the test object file only shows up
16956        # once in the compiler output.
16957        if test "$p" = "conftest.$objext"; then
16958          pre_test_object_deps_done=yes
16959          continue
16960        fi
16961
16962        if test no = "$pre_test_object_deps_done"; then
16963          if test -z "$predep_objects_CXX"; then
16964            predep_objects_CXX=$p
16965          else
16966            predep_objects_CXX="$predep_objects_CXX $p"
16967          fi
16968        else
16969          if test -z "$postdep_objects_CXX"; then
16970            postdep_objects_CXX=$p
16971          else
16972            postdep_objects_CXX="$postdep_objects_CXX $p"
16973          fi
16974        fi
16975        ;;
16976
16977     *) ;; # Ignore the rest.
16978
16979     esac
16980   done
16981
16982   # Clean up.
16983   rm -f a.out a.exe
16984 else
16985   echo "libtool.m4: error: problem compiling CXX test program"
16986 fi
16987
16988 $RM -f confest.$objext
16989 CFLAGS=$_lt_libdeps_save_CFLAGS
16990
16991 # PORTME: override above test on systems where it is broken
16992 case $host_os in
16993 interix[3-9]*)
16994   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16995   # hack all around it, let's just trust "g++" to DTRT.
16996   predep_objects_CXX=
16997   postdep_objects_CXX=
16998   postdeps_CXX=
16999   ;;
17000 esac
17001
17002
17003 case " $postdeps_CXX " in
17004 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17005 esac
17006  compiler_lib_search_dirs_CXX=
17007 if test -n "${compiler_lib_search_path_CXX}"; then
17008  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17009 fi
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041     lt_prog_compiler_wl_CXX=
17042 lt_prog_compiler_pic_CXX=
17043 lt_prog_compiler_static_CXX=
17044
17045
17046   # C++ specific cases for pic, static, wl, etc.
17047   if test yes = "$GXX"; then
17048     lt_prog_compiler_wl_CXX='-Wl,'
17049     lt_prog_compiler_static_CXX='-static'
17050
17051     case $host_os in
17052     aix*)
17053       # All AIX code is PIC.
17054       if test ia64 = "$host_cpu"; then
17055         # AIX 5 now supports IA64 processor
17056         lt_prog_compiler_static_CXX='-Bstatic'
17057       fi
17058       lt_prog_compiler_pic_CXX='-fPIC'
17059       ;;
17060
17061     amigaos*)
17062       case $host_cpu in
17063       powerpc)
17064             # see comment about AmigaOS4 .so support
17065             lt_prog_compiler_pic_CXX='-fPIC'
17066         ;;
17067       m68k)
17068             # FIXME: we need at least 68020 code to build shared libraries, but
17069             # adding the '-m68020' flag to GCC prevents building anything better,
17070             # like '-m68040'.
17071             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17072         ;;
17073       esac
17074       ;;
17075
17076     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17077       # PIC is the default for these OSes.
17078       ;;
17079     mingw* | cygwin* | os2* | pw32* | cegcc*)
17080       # This hack is so that the source file can tell whether it is being
17081       # built for inclusion in a dll (and should export symbols for example).
17082       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17083       # (--disable-auto-import) libraries
17084       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17085       case $host_os in
17086       os2*)
17087         lt_prog_compiler_static_CXX='$wl-static'
17088         ;;
17089       esac
17090       ;;
17091     darwin* | rhapsody*)
17092       # PIC is the default on this platform
17093       # Common symbols not allowed in MH_DYLIB files
17094       lt_prog_compiler_pic_CXX='-fno-common'
17095       ;;
17096     *djgpp*)
17097       # DJGPP does not support shared libraries at all
17098       lt_prog_compiler_pic_CXX=
17099       ;;
17100     haiku*)
17101       # PIC is the default for Haiku.
17102       # The "-static" flag exists, but is broken.
17103       lt_prog_compiler_static_CXX=
17104       ;;
17105     interix[3-9]*)
17106       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17107       # Instead, we relocate shared libraries at runtime.
17108       ;;
17109     sysv4*MP*)
17110       if test -d /usr/nec; then
17111         lt_prog_compiler_pic_CXX=-Kconform_pic
17112       fi
17113       ;;
17114     hpux*)
17115       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17116       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17117       # sets the default TLS model and affects inlining.
17118       case $host_cpu in
17119       hppa*64*)
17120         ;;
17121       *)
17122         lt_prog_compiler_pic_CXX='-fPIC'
17123         ;;
17124       esac
17125       ;;
17126     *qnx* | *nto*)
17127       # QNX uses GNU C++, but need to define -shared option too, otherwise
17128       # it will coredump.
17129       lt_prog_compiler_pic_CXX='-fPIC -shared'
17130       ;;
17131     *)
17132       lt_prog_compiler_pic_CXX='-fPIC'
17133       ;;
17134     esac
17135   else
17136     case $host_os in
17137       aix[4-9]*)
17138         # All AIX code is PIC.
17139         if test ia64 = "$host_cpu"; then
17140           # AIX 5 now supports IA64 processor
17141           lt_prog_compiler_static_CXX='-Bstatic'
17142         else
17143           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17144         fi
17145         ;;
17146       chorus*)
17147         case $cc_basename in
17148         cxch68*)
17149           # Green Hills C++ Compiler
17150           # _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"
17151           ;;
17152         esac
17153         ;;
17154       mingw* | cygwin* | os2* | pw32* | cegcc*)
17155         # This hack is so that the source file can tell whether it is being
17156         # built for inclusion in a dll (and should export symbols for example).
17157         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17158         ;;
17159       dgux*)
17160         case $cc_basename in
17161           ec++*)
17162             lt_prog_compiler_pic_CXX='-KPIC'
17163             ;;
17164           ghcx*)
17165             # Green Hills C++ Compiler
17166             lt_prog_compiler_pic_CXX='-pic'
17167             ;;
17168           *)
17169             ;;
17170         esac
17171         ;;
17172       freebsd* | dragonfly*)
17173         # FreeBSD uses GNU C++
17174         ;;
17175       hpux9* | hpux10* | hpux11*)
17176         case $cc_basename in
17177           CC*)
17178             lt_prog_compiler_wl_CXX='-Wl,'
17179             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17180             if test ia64 != "$host_cpu"; then
17181               lt_prog_compiler_pic_CXX='+Z'
17182             fi
17183             ;;
17184           aCC*)
17185             lt_prog_compiler_wl_CXX='-Wl,'
17186             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17187             case $host_cpu in
17188             hppa*64*|ia64*)
17189               # +Z the default
17190               ;;
17191             *)
17192               lt_prog_compiler_pic_CXX='+Z'
17193               ;;
17194             esac
17195             ;;
17196           *)
17197             ;;
17198         esac
17199         ;;
17200       interix*)
17201         # This is c89, which is MS Visual C++ (no shared libs)
17202         # Anyone wants to do a port?
17203         ;;
17204       irix5* | irix6* | nonstopux*)
17205         case $cc_basename in
17206           CC*)
17207             lt_prog_compiler_wl_CXX='-Wl,'
17208             lt_prog_compiler_static_CXX='-non_shared'
17209             # CC pic flag -KPIC is the default.
17210             ;;
17211           *)
17212             ;;
17213         esac
17214         ;;
17215       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17216         case $cc_basename in
17217           KCC*)
17218             # KAI C++ Compiler
17219             lt_prog_compiler_wl_CXX='--backend -Wl,'
17220             lt_prog_compiler_pic_CXX='-fPIC'
17221             ;;
17222           ecpc* )
17223             # old Intel C++ for x86_64, which still supported -KPIC.
17224             lt_prog_compiler_wl_CXX='-Wl,'
17225             lt_prog_compiler_pic_CXX='-KPIC'
17226             lt_prog_compiler_static_CXX='-static'
17227             ;;
17228           icpc* )
17229             # Intel C++, used to be incompatible with GCC.
17230             # ICC 10 doesn't accept -KPIC any more.
17231             lt_prog_compiler_wl_CXX='-Wl,'
17232             lt_prog_compiler_pic_CXX='-fPIC'
17233             lt_prog_compiler_static_CXX='-static'
17234             ;;
17235           pgCC* | pgcpp*)
17236             # Portland Group C++ compiler
17237             lt_prog_compiler_wl_CXX='-Wl,'
17238             lt_prog_compiler_pic_CXX='-fpic'
17239             lt_prog_compiler_static_CXX='-Bstatic'
17240             ;;
17241           cxx*)
17242             # Compaq C++
17243             # Make sure the PIC flag is empty.  It appears that all Alpha
17244             # Linux and Compaq Tru64 Unix objects are PIC.
17245             lt_prog_compiler_pic_CXX=
17246             lt_prog_compiler_static_CXX='-non_shared'
17247             ;;
17248           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17249             # IBM XL 8.0, 9.0 on PPC and BlueGene
17250             lt_prog_compiler_wl_CXX='-Wl,'
17251             lt_prog_compiler_pic_CXX='-qpic'
17252             lt_prog_compiler_static_CXX='-qstaticlink'
17253             ;;
17254           *)
17255             case `$CC -V 2>&1 | sed 5q` in
17256             *Sun\ C*)
17257               # Sun C++ 5.9
17258               lt_prog_compiler_pic_CXX='-KPIC'
17259               lt_prog_compiler_static_CXX='-Bstatic'
17260               lt_prog_compiler_wl_CXX='-Qoption ld '
17261               ;;
17262             esac
17263             ;;
17264         esac
17265         ;;
17266       lynxos*)
17267         ;;
17268       m88k*)
17269         ;;
17270       mvs*)
17271         case $cc_basename in
17272           cxx*)
17273             lt_prog_compiler_pic_CXX='-W c,exportall'
17274             ;;
17275           *)
17276             ;;
17277         esac
17278         ;;
17279       netbsd* | netbsdelf*-gnu)
17280         ;;
17281       *qnx* | *nto*)
17282         # QNX uses GNU C++, but need to define -shared option too, otherwise
17283         # it will coredump.
17284         lt_prog_compiler_pic_CXX='-fPIC -shared'
17285         ;;
17286       osf3* | osf4* | osf5*)
17287         case $cc_basename in
17288           KCC*)
17289             lt_prog_compiler_wl_CXX='--backend -Wl,'
17290             ;;
17291           RCC*)
17292             # Rational C++ 2.4.1
17293             lt_prog_compiler_pic_CXX='-pic'
17294             ;;
17295           cxx*)
17296             # Digital/Compaq C++
17297             lt_prog_compiler_wl_CXX='-Wl,'
17298             # Make sure the PIC flag is empty.  It appears that all Alpha
17299             # Linux and Compaq Tru64 Unix objects are PIC.
17300             lt_prog_compiler_pic_CXX=
17301             lt_prog_compiler_static_CXX='-non_shared'
17302             ;;
17303           *)
17304             ;;
17305         esac
17306         ;;
17307       psos*)
17308         ;;
17309       solaris*)
17310         case $cc_basename in
17311           CC* | sunCC*)
17312             # Sun C++ 4.2, 5.x and Centerline C++
17313             lt_prog_compiler_pic_CXX='-KPIC'
17314             lt_prog_compiler_static_CXX='-Bstatic'
17315             lt_prog_compiler_wl_CXX='-Qoption ld '
17316             ;;
17317           gcx*)
17318             # Green Hills C++ Compiler
17319             lt_prog_compiler_pic_CXX='-PIC'
17320             ;;
17321           *)
17322             ;;
17323         esac
17324         ;;
17325       sunos4*)
17326         case $cc_basename in
17327           CC*)
17328             # Sun C++ 4.x
17329             lt_prog_compiler_pic_CXX='-pic'
17330             lt_prog_compiler_static_CXX='-Bstatic'
17331             ;;
17332           lcc*)
17333             # Lucid
17334             lt_prog_compiler_pic_CXX='-pic'
17335             ;;
17336           *)
17337             ;;
17338         esac
17339         ;;
17340       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17341         case $cc_basename in
17342           CC*)
17343             lt_prog_compiler_wl_CXX='-Wl,'
17344             lt_prog_compiler_pic_CXX='-KPIC'
17345             lt_prog_compiler_static_CXX='-Bstatic'
17346             ;;
17347         esac
17348         ;;
17349       tandem*)
17350         case $cc_basename in
17351           NCC*)
17352             # NonStop-UX NCC 3.20
17353             lt_prog_compiler_pic_CXX='-KPIC'
17354             ;;
17355           *)
17356             ;;
17357         esac
17358         ;;
17359       vxworks*)
17360         ;;
17361       *)
17362         lt_prog_compiler_can_build_shared_CXX=no
17363         ;;
17364     esac
17365   fi
17366
17367 case $host_os in
17368   # For platforms that do not support PIC, -DPIC is meaningless:
17369   *djgpp*)
17370     lt_prog_compiler_pic_CXX=
17371     ;;
17372   *)
17373     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17374     ;;
17375 esac
17376
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17378 printf %s "checking for $compiler option to produce PIC... " >&6; }
17379 if test ${lt_cv_prog_compiler_pic_CXX+y}
17380 then :
17381   printf %s "(cached) " >&6
17382 else $as_nop
17383   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17384 fi
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17386 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17387 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17388
17389 #
17390 # Check to make sure the PIC flag actually works.
17391 #
17392 if test -n "$lt_prog_compiler_pic_CXX"; then
17393   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17394 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17395 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17396 then :
17397   printf %s "(cached) " >&6
17398 else $as_nop
17399   lt_cv_prog_compiler_pic_works_CXX=no
17400    ac_outfile=conftest.$ac_objext
17401    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17402    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17403    # Insert the option either (1) after the last *FLAGS variable, or
17404    # (2) before a word containing "conftest.", or (3) at the end.
17405    # Note that $ac_compile itself does not contain backslashes and begins
17406    # with a dollar sign (not a hyphen), so the echo should work correctly.
17407    # The option is referenced via a variable to avoid confusing sed.
17408    lt_compile=`echo "$ac_compile" | $SED \
17409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411    -e 's:$: $lt_compiler_flag:'`
17412    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17413    (eval "$lt_compile" 2>conftest.err)
17414    ac_status=$?
17415    cat conftest.err >&5
17416    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417    if (exit $ac_status) && test -s "$ac_outfile"; then
17418      # The compiler can only warn and ignore the option if not recognized
17419      # So say no if there are warnings other than the usual output.
17420      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17421      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17423        lt_cv_prog_compiler_pic_works_CXX=yes
17424      fi
17425    fi
17426    $RM conftest*
17427
17428 fi
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17430 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17431
17432 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17433     case $lt_prog_compiler_pic_CXX in
17434      "" | " "*) ;;
17435      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17436      esac
17437 else
17438     lt_prog_compiler_pic_CXX=
17439      lt_prog_compiler_can_build_shared_CXX=no
17440 fi
17441
17442 fi
17443
17444
17445
17446
17447
17448 #
17449 # Check to make sure the static flag actually works.
17450 #
17451 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17453 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17454 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17455 then :
17456   printf %s "(cached) " >&6
17457 else $as_nop
17458   lt_cv_prog_compiler_static_works_CXX=no
17459    save_LDFLAGS=$LDFLAGS
17460    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17461    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17462    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17463      # The linker can only warn and ignore the option if not recognized
17464      # So say no if there are warnings
17465      if test -s conftest.err; then
17466        # Append any errors to the config.log.
17467        cat conftest.err 1>&5
17468        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17469        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470        if diff conftest.exp conftest.er2 >/dev/null; then
17471          lt_cv_prog_compiler_static_works_CXX=yes
17472        fi
17473      else
17474        lt_cv_prog_compiler_static_works_CXX=yes
17475      fi
17476    fi
17477    $RM -r conftest*
17478    LDFLAGS=$save_LDFLAGS
17479
17480 fi
17481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17482 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17483
17484 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17485     :
17486 else
17487     lt_prog_compiler_static_CXX=
17488 fi
17489
17490
17491
17492
17493     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17494 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17495 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17496 then :
17497   printf %s "(cached) " >&6
17498 else $as_nop
17499   lt_cv_prog_compiler_c_o_CXX=no
17500    $RM -r conftest 2>/dev/null
17501    mkdir conftest
17502    cd conftest
17503    mkdir out
17504    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17505
17506    lt_compiler_flag="-o out/conftest2.$ac_objext"
17507    # Insert the option either (1) after the last *FLAGS variable, or
17508    # (2) before a word containing "conftest.", or (3) at the end.
17509    # Note that $ac_compile itself does not contain backslashes and begins
17510    # with a dollar sign (not a hyphen), so the echo should work correctly.
17511    lt_compile=`echo "$ac_compile" | $SED \
17512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17514    -e 's:$: $lt_compiler_flag:'`
17515    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17516    (eval "$lt_compile" 2>out/conftest.err)
17517    ac_status=$?
17518    cat out/conftest.err >&5
17519    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17521    then
17522      # The compiler can only warn and ignore the option if not recognized
17523      # So say no if there are warnings
17524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17525      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17526      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17527        lt_cv_prog_compiler_c_o_CXX=yes
17528      fi
17529    fi
17530    chmod u+w . 2>&5
17531    $RM conftest*
17532    # SGI C++ compiler will create directory out/ii_files/ for
17533    # template instantiation
17534    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17535    $RM out/* && rmdir out
17536    cd ..
17537    $RM -r conftest
17538    $RM conftest*
17539
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17542 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17543
17544
17545
17546     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17549 then :
17550   printf %s "(cached) " >&6
17551 else $as_nop
17552   lt_cv_prog_compiler_c_o_CXX=no
17553    $RM -r conftest 2>/dev/null
17554    mkdir conftest
17555    cd conftest
17556    mkdir out
17557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17558
17559    lt_compiler_flag="-o out/conftest2.$ac_objext"
17560    # Insert the option either (1) after the last *FLAGS variable, or
17561    # (2) before a word containing "conftest.", or (3) at the end.
17562    # Note that $ac_compile itself does not contain backslashes and begins
17563    # with a dollar sign (not a hyphen), so the echo should work correctly.
17564    lt_compile=`echo "$ac_compile" | $SED \
17565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17567    -e 's:$: $lt_compiler_flag:'`
17568    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17569    (eval "$lt_compile" 2>out/conftest.err)
17570    ac_status=$?
17571    cat out/conftest.err >&5
17572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17574    then
17575      # The compiler can only warn and ignore the option if not recognized
17576      # So say no if there are warnings
17577      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17578      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17579      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17580        lt_cv_prog_compiler_c_o_CXX=yes
17581      fi
17582    fi
17583    chmod u+w . 2>&5
17584    $RM conftest*
17585    # SGI C++ compiler will create directory out/ii_files/ for
17586    # template instantiation
17587    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17588    $RM out/* && rmdir out
17589    cd ..
17590    $RM -r conftest
17591    $RM conftest*
17592
17593 fi
17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17595 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17596
17597
17598
17599
17600 hard_links=nottested
17601 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17602   # do not overwrite the value of need_locks provided by the user
17603   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17604 printf %s "checking if we can lock with hard links... " >&6; }
17605   hard_links=yes
17606   $RM conftest*
17607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17608   touch conftest.a
17609   ln conftest.a conftest.b 2>&5 || hard_links=no
17610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17612 printf "%s\n" "$hard_links" >&6; }
17613   if test no = "$hard_links"; then
17614     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17615 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17616     need_locks=warn
17617   fi
17618 else
17619   need_locks=no
17620 fi
17621
17622
17623
17624     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17625 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17626
17627   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17629   case $host_os in
17630   aix[4-9]*)
17631     # If we're using GNU nm, then we don't want the "-C" option.
17632     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17633     # Without the "-l" option, or with the "-B" option, AIX nm treats
17634     # weak defined symbols like other global defined symbols, whereas
17635     # GNU nm marks them as "W".
17636     # While the 'weak' keyword is ignored in the Export File, we need
17637     # it in the Import File for the 'aix-soname' feature, so we have
17638     # to replace the "-B" option with "-P" for AIX nm.
17639     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17640       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'
17641     else
17642       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'
17643     fi
17644     ;;
17645   pw32*)
17646     export_symbols_cmds_CXX=$ltdll_cmds
17647     ;;
17648   cygwin* | mingw* | cegcc*)
17649     case $cc_basename in
17650     cl*)
17651       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17652       ;;
17653     *)
17654       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'
17655       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17656       ;;
17657     esac
17658     ;;
17659   linux* | k*bsd*-gnu | gnu*)
17660     link_all_deplibs_CXX=no
17661     ;;
17662   *)
17663     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17664     ;;
17665   esac
17666
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17668 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17669 test no = "$ld_shlibs_CXX" && can_build_shared=no
17670
17671 with_gnu_ld_CXX=$with_gnu_ld
17672
17673
17674
17675
17676
17677
17678 #
17679 # Do we need to explicitly link libc?
17680 #
17681 case "x$archive_cmds_need_lc_CXX" in
17682 x|xyes)
17683   # Assume -lc should be added
17684   archive_cmds_need_lc_CXX=yes
17685
17686   if test yes,yes = "$GCC,$enable_shared"; then
17687     case $archive_cmds_CXX in
17688     *'~'*)
17689       # FIXME: we may have to deal with multi-command sequences.
17690       ;;
17691     '$CC '*)
17692       # Test whether the compiler implicitly links with -lc since on some
17693       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17694       # to ld, don't add -lc before -lgcc.
17695       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17696 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17697 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17698 then :
17699   printf %s "(cached) " >&6
17700 else $as_nop
17701   $RM conftest*
17702         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17703
17704         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17705   (eval $ac_compile) 2>&5
17706   ac_status=$?
17707   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708   test $ac_status = 0; } 2>conftest.err; then
17709           soname=conftest
17710           lib=conftest
17711           libobjs=conftest.$ac_objext
17712           deplibs=
17713           wl=$lt_prog_compiler_wl_CXX
17714           pic_flag=$lt_prog_compiler_pic_CXX
17715           compiler_flags=-v
17716           linker_flags=-v
17717           verstring=
17718           output_objdir=.
17719           libname=conftest
17720           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17721           allow_undefined_flag_CXX=
17722           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17723   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17724   ac_status=$?
17725   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17726   test $ac_status = 0; }
17727           then
17728             lt_cv_archive_cmds_need_lc_CXX=no
17729           else
17730             lt_cv_archive_cmds_need_lc_CXX=yes
17731           fi
17732           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17733         else
17734           cat conftest.err 1>&5
17735         fi
17736         $RM conftest*
17737
17738 fi
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17740 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17741       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17742       ;;
17743     esac
17744   fi
17745   ;;
17746 esac
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17810 printf %s "checking dynamic linker characteristics... " >&6; }
17811
17812 library_names_spec=
17813 libname_spec='lib$name'
17814 soname_spec=
17815 shrext_cmds=.so
17816 postinstall_cmds=
17817 postuninstall_cmds=
17818 finish_cmds=
17819 finish_eval=
17820 shlibpath_var=
17821 shlibpath_overrides_runpath=unknown
17822 version_type=none
17823 dynamic_linker="$host_os ld.so"
17824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17825 need_lib_prefix=unknown
17826 hardcode_into_libs=no
17827
17828 # when you set need_version to no, make sure it does not cause -set_version
17829 # flags to be left without arguments
17830 need_version=unknown
17831
17832
17833
17834 case $host_os in
17835 aix3*)
17836   version_type=linux # correct to gnu/linux during the next big refactor
17837   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17838   shlibpath_var=LIBPATH
17839
17840   # AIX 3 has no versioning support, so we append a major version to the name.
17841   soname_spec='$libname$release$shared_ext$major'
17842   ;;
17843
17844 aix[4-9]*)
17845   version_type=linux # correct to gnu/linux during the next big refactor
17846   need_lib_prefix=no
17847   need_version=no
17848   hardcode_into_libs=yes
17849   if test ia64 = "$host_cpu"; then
17850     # AIX 5 supports IA64
17851     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17852     shlibpath_var=LD_LIBRARY_PATH
17853   else
17854     # With GCC up to 2.95.x, collect2 would create an import file
17855     # for dependence libraries.  The import file would start with
17856     # the line '#! .'.  This would cause the generated library to
17857     # depend on '.', always an invalid library.  This was fixed in
17858     # development snapshots of GCC prior to 3.0.
17859     case $host_os in
17860       aix4 | aix4.[01] | aix4.[01].*)
17861       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17862            echo ' yes '
17863            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17864         :
17865       else
17866         can_build_shared=no
17867       fi
17868       ;;
17869     esac
17870     # Using Import Files as archive members, it is possible to support
17871     # filename-based versioning of shared library archives on AIX. While
17872     # this would work for both with and without runtime linking, it will
17873     # prevent static linking of such archives. So we do filename-based
17874     # shared library versioning with .so extension only, which is used
17875     # when both runtime linking and shared linking is enabled.
17876     # Unfortunately, runtime linking may impact performance, so we do
17877     # not want this to be the default eventually. Also, we use the
17878     # versioned .so libs for executables only if there is the -brtl
17879     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17880     # To allow for filename-based versioning support, we need to create
17881     # libNAME.so.V as an archive file, containing:
17882     # *) an Import File, referring to the versioned filename of the
17883     #    archive as well as the shared archive member, telling the
17884     #    bitwidth (32 or 64) of that shared object, and providing the
17885     #    list of exported symbols of that shared object, eventually
17886     #    decorated with the 'weak' keyword
17887     # *) the shared object with the F_LOADONLY flag set, to really avoid
17888     #    it being seen by the linker.
17889     # At run time we better use the real file rather than another symlink,
17890     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17891
17892     case $with_aix_soname,$aix_use_runtimelinking in
17893     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17894     # soname into executable. Probably we can add versioning support to
17895     # collect2, so additional links can be useful in future.
17896     aix,yes) # traditional libtool
17897       dynamic_linker='AIX unversionable lib.so'
17898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17899       # instead of lib<name>.a to let people know that these are not
17900       # typical AIX shared libraries.
17901       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902       ;;
17903     aix,no) # traditional AIX only
17904       dynamic_linker='AIX lib.a(lib.so.V)'
17905       # We preserve .a as extension for shared libraries through AIX4.2
17906       # and later when we are not doing run time linking.
17907       library_names_spec='$libname$release.a $libname.a'
17908       soname_spec='$libname$release$shared_ext$major'
17909       ;;
17910     svr4,*) # full svr4 only
17911       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17912       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17913       # We do not specify a path in Import Files, so LIBPATH fires.
17914       shlibpath_overrides_runpath=yes
17915       ;;
17916     *,yes) # both, prefer svr4
17917       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17918       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17919       # unpreferred sharedlib libNAME.a needs extra handling
17920       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"'
17921       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"'
17922       # We do not specify a path in Import Files, so LIBPATH fires.
17923       shlibpath_overrides_runpath=yes
17924       ;;
17925     *,no) # both, prefer aix
17926       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17927       library_names_spec='$libname$release.a $libname.a'
17928       soname_spec='$libname$release$shared_ext$major'
17929       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17930       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)'
17931       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"'
17932       ;;
17933     esac
17934     shlibpath_var=LIBPATH
17935   fi
17936   ;;
17937
17938 amigaos*)
17939   case $host_cpu in
17940   powerpc)
17941     # Since July 2007 AmigaOS4 officially supports .so libraries.
17942     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17943     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944     ;;
17945   m68k)
17946     library_names_spec='$libname.ixlibrary $libname.a'
17947     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17948     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'
17949     ;;
17950   esac
17951   ;;
17952
17953 beos*)
17954   library_names_spec='$libname$shared_ext'
17955   dynamic_linker="$host_os ld.so"
17956   shlibpath_var=LIBRARY_PATH
17957   ;;
17958
17959 bsdi[45]*)
17960   version_type=linux # correct to gnu/linux during the next big refactor
17961   need_version=no
17962   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17963   soname_spec='$libname$release$shared_ext$major'
17964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17965   shlibpath_var=LD_LIBRARY_PATH
17966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17968   # the default ld.so.conf also contains /usr/contrib/lib and
17969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17970   # libtool to hard-code these into programs
17971   ;;
17972
17973 cygwin* | mingw* | pw32* | cegcc*)
17974   version_type=windows
17975   shrext_cmds=.dll
17976   need_version=no
17977   need_lib_prefix=no
17978
17979   case $GCC,$cc_basename in
17980   yes,*)
17981     # gcc
17982     library_names_spec='$libname.dll.a'
17983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17984     postinstall_cmds='base_file=`basename \$file`~
17985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17986       dldir=$destdir/`dirname \$dlpath`~
17987       test -d \$dldir || mkdir -p \$dldir~
17988       $install_prog $dir/$dlname \$dldir/$dlname~
17989       chmod a+x \$dldir/$dlname~
17990       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17991         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17992       fi'
17993     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17994       dlpath=$dir/\$dldll~
17995        $RM \$dlpath'
17996     shlibpath_overrides_runpath=yes
17997
17998     case $host_os in
17999     cygwin*)
18000       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18001       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18002
18003       ;;
18004     mingw* | cegcc*)
18005       # MinGW DLLs use traditional 'lib' prefix
18006       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18007       ;;
18008     pw32*)
18009       # pw32 DLLs use 'pw' prefix rather than 'lib'
18010       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18011       ;;
18012     esac
18013     dynamic_linker='Win32 ld.exe'
18014     ;;
18015
18016   *,cl*)
18017     # Native MSVC
18018     libname_spec='$name'
18019     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18020     library_names_spec='$libname.dll.lib'
18021
18022     case $build_os in
18023     mingw*)
18024       sys_lib_search_path_spec=
18025       lt_save_ifs=$IFS
18026       IFS=';'
18027       for lt_path in $LIB
18028       do
18029         IFS=$lt_save_ifs
18030         # Let DOS variable expansion print the short 8.3 style file name.
18031         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18032         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18033       done
18034       IFS=$lt_save_ifs
18035       # Convert to MSYS style.
18036       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18037       ;;
18038     cygwin*)
18039       # Convert to unix form, then to dos form, then back to unix form
18040       # but this time dos style (no spaces!) so that the unix form looks
18041       # like /cygdrive/c/PROGRA~1:/cygdr...
18042       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18043       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18044       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18045       ;;
18046     *)
18047       sys_lib_search_path_spec=$LIB
18048       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18049         # It is most probably a Windows format PATH.
18050         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18051       else
18052         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18053       fi
18054       # FIXME: find the short name or the path components, as spaces are
18055       # common. (e.g. "Program Files" -> "PROGRA~1")
18056       ;;
18057     esac
18058
18059     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18060     postinstall_cmds='base_file=`basename \$file`~
18061       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18062       dldir=$destdir/`dirname \$dlpath`~
18063       test -d \$dldir || mkdir -p \$dldir~
18064       $install_prog $dir/$dlname \$dldir/$dlname'
18065     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18066       dlpath=$dir/\$dldll~
18067        $RM \$dlpath'
18068     shlibpath_overrides_runpath=yes
18069     dynamic_linker='Win32 link.exe'
18070     ;;
18071
18072   *)
18073     # Assume MSVC wrapper
18074     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18075     dynamic_linker='Win32 ld.exe'
18076     ;;
18077   esac
18078   # FIXME: first we should search . and the directory the executable is in
18079   shlibpath_var=PATH
18080   ;;
18081
18082 darwin* | rhapsody*)
18083   dynamic_linker="$host_os dyld"
18084   version_type=darwin
18085   need_lib_prefix=no
18086   need_version=no
18087   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18088   soname_spec='$libname$release$major$shared_ext'
18089   shlibpath_overrides_runpath=yes
18090   shlibpath_var=DYLD_LIBRARY_PATH
18091   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18092
18093   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18094   ;;
18095
18096 dgux*)
18097   version_type=linux # correct to gnu/linux during the next big refactor
18098   need_lib_prefix=no
18099   need_version=no
18100   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101   soname_spec='$libname$release$shared_ext$major'
18102   shlibpath_var=LD_LIBRARY_PATH
18103   ;;
18104
18105 freebsd* | dragonfly*)
18106   # DragonFly does not have aout.  When/if they implement a new
18107   # versioning mechanism, adjust this.
18108   if test -x /usr/bin/objformat; then
18109     objformat=`/usr/bin/objformat`
18110   else
18111     case $host_os in
18112     freebsd[23].*) objformat=aout ;;
18113     *) objformat=elf ;;
18114     esac
18115   fi
18116   version_type=freebsd-$objformat
18117   case $version_type in
18118     freebsd-elf*)
18119       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18120       soname_spec='$libname$release$shared_ext$major'
18121       need_version=no
18122       need_lib_prefix=no
18123       ;;
18124     freebsd-*)
18125       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18126       need_version=yes
18127       ;;
18128   esac
18129   shlibpath_var=LD_LIBRARY_PATH
18130   case $host_os in
18131   freebsd2.*)
18132     shlibpath_overrides_runpath=yes
18133     ;;
18134   freebsd3.[01]* | freebsdelf3.[01]*)
18135     shlibpath_overrides_runpath=yes
18136     hardcode_into_libs=yes
18137     ;;
18138   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18139   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18140     shlibpath_overrides_runpath=no
18141     hardcode_into_libs=yes
18142     ;;
18143   *) # from 4.6 on, and DragonFly
18144     shlibpath_overrides_runpath=yes
18145     hardcode_into_libs=yes
18146     ;;
18147   esac
18148   ;;
18149
18150 haiku*)
18151   version_type=linux # correct to gnu/linux during the next big refactor
18152   need_lib_prefix=no
18153   need_version=no
18154   dynamic_linker="$host_os runtime_loader"
18155   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18156   soname_spec='$libname$release$shared_ext$major'
18157   shlibpath_var=LIBRARY_PATH
18158   shlibpath_overrides_runpath=no
18159   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18160   hardcode_into_libs=yes
18161   ;;
18162
18163 hpux9* | hpux10* | hpux11*)
18164   # Give a soname corresponding to the major version so that dld.sl refuses to
18165   # link against other versions.
18166   version_type=sunos
18167   need_lib_prefix=no
18168   need_version=no
18169   case $host_cpu in
18170   ia64*)
18171     shrext_cmds='.so'
18172     hardcode_into_libs=yes
18173     dynamic_linker="$host_os dld.so"
18174     shlibpath_var=LD_LIBRARY_PATH
18175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177     soname_spec='$libname$release$shared_ext$major'
18178     if test 32 = "$HPUX_IA64_MODE"; then
18179       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18180       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18181     else
18182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18184     fi
18185     ;;
18186   hppa*64*)
18187     shrext_cmds='.sl'
18188     hardcode_into_libs=yes
18189     dynamic_linker="$host_os dld.sl"
18190     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18191     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18192     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18193     soname_spec='$libname$release$shared_ext$major'
18194     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18196     ;;
18197   *)
18198     shrext_cmds='.sl'
18199     dynamic_linker="$host_os dld.sl"
18200     shlibpath_var=SHLIB_PATH
18201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18202     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203     soname_spec='$libname$release$shared_ext$major'
18204     ;;
18205   esac
18206   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18207   postinstall_cmds='chmod 555 $lib'
18208   # or fails outright, so override atomically:
18209   install_override_mode=555
18210   ;;
18211
18212 interix[3-9]*)
18213   version_type=linux # correct to gnu/linux during the next big refactor
18214   need_lib_prefix=no
18215   need_version=no
18216   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18217   soname_spec='$libname$release$shared_ext$major'
18218   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   shlibpath_overrides_runpath=no
18221   hardcode_into_libs=yes
18222   ;;
18223
18224 irix5* | irix6* | nonstopux*)
18225   case $host_os in
18226     nonstopux*) version_type=nonstopux ;;
18227     *)
18228         if test yes = "$lt_cv_prog_gnu_ld"; then
18229                 version_type=linux # correct to gnu/linux during the next big refactor
18230         else
18231                 version_type=irix
18232         fi ;;
18233   esac
18234   need_lib_prefix=no
18235   need_version=no
18236   soname_spec='$libname$release$shared_ext$major'
18237   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18238   case $host_os in
18239   irix5* | nonstopux*)
18240     libsuff= shlibsuff=
18241     ;;
18242   *)
18243     case $LD in # libtool.m4 will add one of these switches to LD
18244     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18245       libsuff= shlibsuff= libmagic=32-bit;;
18246     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18247       libsuff=32 shlibsuff=N32 libmagic=N32;;
18248     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18249       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18250     *) libsuff= shlibsuff= libmagic=never-match;;
18251     esac
18252     ;;
18253   esac
18254   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18255   shlibpath_overrides_runpath=no
18256   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18257   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18258   hardcode_into_libs=yes
18259   ;;
18260
18261 # No shared lib support for Linux oldld, aout, or coff.
18262 linux*oldld* | linux*aout* | linux*coff*)
18263   dynamic_linker=no
18264   ;;
18265
18266 linux*android*)
18267   version_type=none # Android doesn't support versioned libraries.
18268   need_lib_prefix=no
18269   need_version=no
18270   library_names_spec='$libname$release$shared_ext'
18271   soname_spec='$libname$release$shared_ext'
18272   finish_cmds=
18273   shlibpath_var=LD_LIBRARY_PATH
18274   shlibpath_overrides_runpath=yes
18275
18276   # This implies no fast_install, which is unacceptable.
18277   # Some rework will be needed to allow for fast_install
18278   # before this can be enabled.
18279   hardcode_into_libs=yes
18280
18281   dynamic_linker='Android linker'
18282   # Don't embed -rpath directories since the linker doesn't support them.
18283   hardcode_libdir_flag_spec_CXX='-L$libdir'
18284   ;;
18285
18286 # This must be glibc/ELF.
18287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18288   version_type=linux # correct to gnu/linux during the next big refactor
18289   need_lib_prefix=no
18290   need_version=no
18291   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18292   soname_spec='$libname$release$shared_ext$major'
18293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18294   shlibpath_var=LD_LIBRARY_PATH
18295   shlibpath_overrides_runpath=no
18296
18297   # Some binutils ld are patched to set DT_RUNPATH
18298   if test ${lt_cv_shlibpath_overrides_runpath+y}
18299 then :
18300   printf %s "(cached) " >&6
18301 else $as_nop
18302   lt_cv_shlibpath_overrides_runpath=no
18303     save_LDFLAGS=$LDFLAGS
18304     save_libdir=$libdir
18305     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18306          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h.  */
18309
18310 int
18311 main (void)
18312 {
18313
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 if ac_fn_cxx_try_link "$LINENO"
18319 then :
18320   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18321 then :
18322   lt_cv_shlibpath_overrides_runpath=yes
18323 fi
18324 fi
18325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18326     conftest$ac_exeext conftest.$ac_ext
18327     LDFLAGS=$save_LDFLAGS
18328     libdir=$save_libdir
18329
18330 fi
18331
18332   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18333
18334   # This implies no fast_install, which is unacceptable.
18335   # Some rework will be needed to allow for fast_install
18336   # before this can be enabled.
18337   hardcode_into_libs=yes
18338
18339   # Ideally, we could use ldconfig to report *all* directores which are
18340   # searched for libraries, however this is still not possible.  Aside from not
18341   # being certain /sbin/ldconfig is available, command
18342   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18343   # even though it is searched at run-time.  Try to do the best guess by
18344   # appending ld.so.conf contents (and includes) to the search path.
18345   if test -f /etc/ld.so.conf; then
18346     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' ' '`
18347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18348   fi
18349
18350   # We used to test for /lib/ld.so.1 and disable shared libraries on
18351   # powerpc, because MkLinux only supported shared libraries with the
18352   # GNU dynamic linker.  Since this was broken with cross compilers,
18353   # most powerpc-linux boxes support dynamic linking these days and
18354   # people can always --disable-shared, the test was removed, and we
18355   # assume the GNU/Linux dynamic linker is in use.
18356   dynamic_linker='GNU/Linux ld.so'
18357   ;;
18358
18359 netbsdelf*-gnu)
18360   version_type=linux
18361   need_lib_prefix=no
18362   need_version=no
18363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18364   soname_spec='${libname}${release}${shared_ext}$major'
18365   shlibpath_var=LD_LIBRARY_PATH
18366   shlibpath_overrides_runpath=no
18367   hardcode_into_libs=yes
18368   dynamic_linker='NetBSD ld.elf_so'
18369   ;;
18370
18371 netbsd*)
18372   version_type=sunos
18373   need_lib_prefix=no
18374   need_version=no
18375   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18376     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18377     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18378     dynamic_linker='NetBSD (a.out) ld.so'
18379   else
18380     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18381     soname_spec='$libname$release$shared_ext$major'
18382     dynamic_linker='NetBSD ld.elf_so'
18383   fi
18384   shlibpath_var=LD_LIBRARY_PATH
18385   shlibpath_overrides_runpath=yes
18386   hardcode_into_libs=yes
18387   ;;
18388
18389 newsos6)
18390   version_type=linux # correct to gnu/linux during the next big refactor
18391   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18392   shlibpath_var=LD_LIBRARY_PATH
18393   shlibpath_overrides_runpath=yes
18394   ;;
18395
18396 *nto* | *qnx*)
18397   version_type=qnx
18398   need_lib_prefix=no
18399   need_version=no
18400   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18401   soname_spec='$libname$release$shared_ext$major'
18402   shlibpath_var=LD_LIBRARY_PATH
18403   shlibpath_overrides_runpath=no
18404   hardcode_into_libs=yes
18405   dynamic_linker='ldqnx.so'
18406   ;;
18407
18408 openbsd* | bitrig*)
18409   version_type=sunos
18410   sys_lib_dlsearch_path_spec=/usr/lib
18411   need_lib_prefix=no
18412   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18413     need_version=no
18414   else
18415     need_version=yes
18416   fi
18417   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18419   shlibpath_var=LD_LIBRARY_PATH
18420   shlibpath_overrides_runpath=yes
18421   ;;
18422
18423 os2*)
18424   libname_spec='$name'
18425   version_type=windows
18426   shrext_cmds=.dll
18427   need_version=no
18428   need_lib_prefix=no
18429   # OS/2 can only load a DLL with a base name of 8 characters or less.
18430   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18431     v=$($ECHO $release$versuffix | tr -d .-);
18432     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18433     $ECHO $n$v`$shared_ext'
18434   library_names_spec='${libname}_dll.$libext'
18435   dynamic_linker='OS/2 ld.exe'
18436   shlibpath_var=BEGINLIBPATH
18437   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18438   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18439   postinstall_cmds='base_file=`basename \$file`~
18440     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18441     dldir=$destdir/`dirname \$dlpath`~
18442     test -d \$dldir || mkdir -p \$dldir~
18443     $install_prog $dir/$dlname \$dldir/$dlname~
18444     chmod a+x \$dldir/$dlname~
18445     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18446       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18447     fi'
18448   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18449     dlpath=$dir/\$dldll~
18450     $RM \$dlpath'
18451   ;;
18452
18453 osf3* | osf4* | osf5*)
18454   version_type=osf
18455   need_lib_prefix=no
18456   need_version=no
18457   soname_spec='$libname$release$shared_ext$major'
18458   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18459   shlibpath_var=LD_LIBRARY_PATH
18460   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18461   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18462   ;;
18463
18464 rdos*)
18465   dynamic_linker=no
18466   ;;
18467
18468 solaris*)
18469   version_type=linux # correct to gnu/linux during the next big refactor
18470   need_lib_prefix=no
18471   need_version=no
18472   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18473   soname_spec='$libname$release$shared_ext$major'
18474   shlibpath_var=LD_LIBRARY_PATH
18475   shlibpath_overrides_runpath=yes
18476   hardcode_into_libs=yes
18477   # ldd complains unless libraries are executable
18478   postinstall_cmds='chmod +x $lib'
18479   ;;
18480
18481 sunos4*)
18482   version_type=sunos
18483   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18484   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18485   shlibpath_var=LD_LIBRARY_PATH
18486   shlibpath_overrides_runpath=yes
18487   if test yes = "$with_gnu_ld"; then
18488     need_lib_prefix=no
18489   fi
18490   need_version=yes
18491   ;;
18492
18493 sysv4 | sysv4.3*)
18494   version_type=linux # correct to gnu/linux during the next big refactor
18495   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18496   soname_spec='$libname$release$shared_ext$major'
18497   shlibpath_var=LD_LIBRARY_PATH
18498   case $host_vendor in
18499     sni)
18500       shlibpath_overrides_runpath=no
18501       need_lib_prefix=no
18502       runpath_var=LD_RUN_PATH
18503       ;;
18504     siemens)
18505       need_lib_prefix=no
18506       ;;
18507     motorola)
18508       need_lib_prefix=no
18509       need_version=no
18510       shlibpath_overrides_runpath=no
18511       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18512       ;;
18513   esac
18514   ;;
18515
18516 sysv4*MP*)
18517   if test -d /usr/nec; then
18518     version_type=linux # correct to gnu/linux during the next big refactor
18519     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18520     soname_spec='$libname$shared_ext.$major'
18521     shlibpath_var=LD_LIBRARY_PATH
18522   fi
18523   ;;
18524
18525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18526   version_type=sco
18527   need_lib_prefix=no
18528   need_version=no
18529   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18530   soname_spec='$libname$release$shared_ext$major'
18531   shlibpath_var=LD_LIBRARY_PATH
18532   shlibpath_overrides_runpath=yes
18533   hardcode_into_libs=yes
18534   if test yes = "$with_gnu_ld"; then
18535     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18536   else
18537     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18538     case $host_os in
18539       sco3.2v5*)
18540         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18541         ;;
18542     esac
18543   fi
18544   sys_lib_dlsearch_path_spec='/usr/lib'
18545   ;;
18546
18547 tpf*)
18548   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18549   version_type=linux # correct to gnu/linux during the next big refactor
18550   need_lib_prefix=no
18551   need_version=no
18552   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18553   shlibpath_var=LD_LIBRARY_PATH
18554   shlibpath_overrides_runpath=no
18555   hardcode_into_libs=yes
18556   ;;
18557
18558 uts4*)
18559   version_type=linux # correct to gnu/linux during the next big refactor
18560   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18561   soname_spec='$libname$release$shared_ext$major'
18562   shlibpath_var=LD_LIBRARY_PATH
18563   ;;
18564
18565 *)
18566   dynamic_linker=no
18567   ;;
18568 esac
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18570 printf "%s\n" "$dynamic_linker" >&6; }
18571 test no = "$dynamic_linker" && can_build_shared=no
18572
18573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18574 if test yes = "$GCC"; then
18575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18576 fi
18577
18578 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18579   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18580 fi
18581
18582 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18583   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18584 fi
18585
18586 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18587 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18588
18589 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18590 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18591
18592 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18593 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18635 printf %s "checking how to hardcode library paths into programs... " >&6; }
18636 hardcode_action_CXX=
18637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18638    test -n "$runpath_var_CXX" ||
18639    test yes = "$hardcode_automatic_CXX"; then
18640
18641   # We can hardcode non-existent directories.
18642   if test no != "$hardcode_direct_CXX" &&
18643      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18644      # have to relink, otherwise we might link with an installed library
18645      # when we should be linking with a yet-to-be-installed one
18646      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18647      test no != "$hardcode_minus_L_CXX"; then
18648     # Linking always hardcodes the temporary library directory.
18649     hardcode_action_CXX=relink
18650   else
18651     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18652     hardcode_action_CXX=immediate
18653   fi
18654 else
18655   # We cannot hardcode anything, or else we can only hardcode existing
18656   # directories.
18657   hardcode_action_CXX=unsupported
18658 fi
18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18660 printf "%s\n" "$hardcode_action_CXX" >&6; }
18661
18662 if test relink = "$hardcode_action_CXX" ||
18663    test yes = "$inherit_rpath_CXX"; then
18664   # Fast installation is not supported
18665   enable_fast_install=no
18666 elif test yes = "$shlibpath_overrides_runpath" ||
18667      test no = "$enable_shared"; then
18668   # Fast installation is not necessary
18669   enable_fast_install=needless
18670 fi
18671
18672
18673
18674
18675
18676
18677
18678   fi # test -n "$compiler"
18679
18680   CC=$lt_save_CC
18681   CFLAGS=$lt_save_CFLAGS
18682   LDCXX=$LD
18683   LD=$lt_save_LD
18684   GCC=$lt_save_GCC
18685   with_gnu_ld=$lt_save_with_gnu_ld
18686   lt_cv_path_LDCXX=$lt_cv_path_LD
18687   lt_cv_path_LD=$lt_save_path_LD
18688   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18689   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18690 fi # test yes != "$_lt_caught_CXX_error"
18691
18692 ac_ext=c
18693 ac_cpp='$CPP $CPPFLAGS'
18694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18697
18698
18699 depcc="$CXX"  am_compiler_list=
18700
18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18702 printf %s "checking dependency style of $depcc... " >&6; }
18703 if test ${am_cv_CXX_dependencies_compiler_type+y}
18704 then :
18705   printf %s "(cached) " >&6
18706 else $as_nop
18707   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18708   # We make a subdir and do the tests there.  Otherwise we can end up
18709   # making bogus files that we don't know about and never remove.  For
18710   # instance it was reported that on HP-UX the gcc test will end up
18711   # making a dummy file named 'D' -- because '-MD' means "put the output
18712   # in D".
18713   rm -rf conftest.dir
18714   mkdir conftest.dir
18715   # Copy depcomp to subdir because otherwise we won't find it if we're
18716   # using a relative directory.
18717   cp "$am_depcomp" conftest.dir
18718   cd conftest.dir
18719   # We will build objects and dependencies in a subdirectory because
18720   # it helps to detect inapplicable dependency modes.  For instance
18721   # both Tru64's cc and ICC support -MD to output dependencies as a
18722   # side effect of compilation, but ICC will put the dependencies in
18723   # the current directory while Tru64 will put them in the object
18724   # directory.
18725   mkdir sub
18726
18727   am_cv_CXX_dependencies_compiler_type=none
18728   if test "$am_compiler_list" = ""; then
18729      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18730   fi
18731   am__universal=false
18732   case " $depcc " in #(
18733      *\ -arch\ *\ -arch\ *) am__universal=true ;;
18734      esac
18735
18736   for depmode in $am_compiler_list; do
18737     # Setup a source with many dependencies, because some compilers
18738     # like to wrap large dependency lists on column 80 (with \), and
18739     # we should not choose a depcomp mode which is confused by this.
18740     #
18741     # We need to recreate these files for each test, as the compiler may
18742     # overwrite some of them when testing with obscure command lines.
18743     # This happens at least with the AIX C compiler.
18744     : > sub/conftest.c
18745     for i in 1 2 3 4 5 6; do
18746       echo '#include "conftst'$i'.h"' >> sub/conftest.c
18747       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18748       # Solaris 10 /bin/sh.
18749       echo '/* dummy */' > sub/conftst$i.h
18750     done
18751     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18752
18753     # We check with '-c' and '-o' for the sake of the "dashmstdout"
18754     # mode.  It turns out that the SunPro C++ compiler does not properly
18755     # handle '-M -o', and we need to detect this.  Also, some Intel
18756     # versions had trouble with output in subdirs.
18757     am__obj=sub/conftest.${OBJEXT-o}
18758     am__minus_obj="-o $am__obj"
18759     case $depmode in
18760     gcc)
18761       # This depmode causes a compiler race in universal mode.
18762       test "$am__universal" = false || continue
18763       ;;
18764     nosideeffect)
18765       # After this tag, mechanisms are not by side-effect, so they'll
18766       # only be used when explicitly requested.
18767       if test "x$enable_dependency_tracking" = xyes; then
18768         continue
18769       else
18770         break
18771       fi
18772       ;;
18773     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18774       # This compiler won't grok '-c -o', but also, the minuso test has
18775       # not run yet.  These depmodes are late enough in the game, and
18776       # so weak that their functioning should not be impacted.
18777       am__obj=conftest.${OBJEXT-o}
18778       am__minus_obj=
18779       ;;
18780     none) break ;;
18781     esac
18782     if depmode=$depmode \
18783        source=sub/conftest.c object=$am__obj \
18784        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18785        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18786          >/dev/null 2>conftest.err &&
18787        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18788        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18789        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18790        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18791       # icc doesn't choke on unknown options, it will just issue warnings
18792       # or remarks (even with -Werror).  So we grep stderr for any message
18793       # that says an option was ignored or not supported.
18794       # When given -MP, icc 7.0 and 7.1 complain thusly:
18795       #   icc: Command line warning: ignoring option '-M'; no argument required
18796       # The diagnosis changed in icc 8.0:
18797       #   icc: Command line remark: option '-MP' not supported
18798       if (grep 'ignoring option' conftest.err ||
18799           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18800         am_cv_CXX_dependencies_compiler_type=$depmode
18801         break
18802       fi
18803     fi
18804   done
18805
18806   cd ..
18807   rm -rf conftest.dir
18808 else
18809   am_cv_CXX_dependencies_compiler_type=none
18810 fi
18811
18812 fi
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18814 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
18815 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18816
18817  if
18818   test "x$enable_dependency_tracking" != xno \
18819   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18820   am__fastdepCXX_TRUE=
18821   am__fastdepCXX_FALSE='#'
18822 else
18823   am__fastdepCXX_TRUE='#'
18824   am__fastdepCXX_FALSE=
18825 fi
18826
18827
18828 ac_ext=c
18829 ac_cpp='$CPP $CPPFLAGS'
18830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18834 printf %s "checking how to run the C preprocessor... " >&6; }
18835 # On Suns, sometimes $CPP names a directory.
18836 if test -n "$CPP" && test -d "$CPP"; then
18837   CPP=
18838 fi
18839 if test -z "$CPP"; then
18840   if test ${ac_cv_prog_CPP+y}
18841 then :
18842   printf %s "(cached) " >&6
18843 else $as_nop
18844       # Double quotes because $CC needs to be expanded
18845     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18846     do
18847       ac_preproc_ok=false
18848 for ac_c_preproc_warn_flag in '' yes
18849 do
18850   # Use a header file that comes with gcc, so configuring glibc
18851   # with a fresh cross-compiler works.
18852   # On the NeXT, cc -E runs the code through the compiler's parser,
18853   # not just through cpp. "Syntax error" is here to catch this case.
18854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h.  */
18856 #include <limits.h>
18857                      Syntax error
18858 _ACEOF
18859 if ac_fn_c_try_cpp "$LINENO"
18860 then :
18861
18862 else $as_nop
18863   # Broken: fails on valid input.
18864 continue
18865 fi
18866 rm -f conftest.err conftest.i conftest.$ac_ext
18867
18868   # OK, works on sane cases.  Now check whether nonexistent headers
18869   # can be detected and how.
18870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h.  */
18872 #include <ac_nonexistent.h>
18873 _ACEOF
18874 if ac_fn_c_try_cpp "$LINENO"
18875 then :
18876   # Broken: success on invalid input.
18877 continue
18878 else $as_nop
18879   # Passes both tests.
18880 ac_preproc_ok=:
18881 break
18882 fi
18883 rm -f conftest.err conftest.i conftest.$ac_ext
18884
18885 done
18886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18887 rm -f conftest.i conftest.err conftest.$ac_ext
18888 if $ac_preproc_ok
18889 then :
18890   break
18891 fi
18892
18893     done
18894     ac_cv_prog_CPP=$CPP
18895
18896 fi
18897   CPP=$ac_cv_prog_CPP
18898 else
18899   ac_cv_prog_CPP=$CPP
18900 fi
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18902 printf "%s\n" "$CPP" >&6; }
18903 ac_preproc_ok=false
18904 for ac_c_preproc_warn_flag in '' yes
18905 do
18906   # Use a header file that comes with gcc, so configuring glibc
18907   # with a fresh cross-compiler works.
18908   # On the NeXT, cc -E runs the code through the compiler's parser,
18909   # not just through cpp. "Syntax error" is here to catch this case.
18910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h.  */
18912 #include <limits.h>
18913                      Syntax error
18914 _ACEOF
18915 if ac_fn_c_try_cpp "$LINENO"
18916 then :
18917
18918 else $as_nop
18919   # Broken: fails on valid input.
18920 continue
18921 fi
18922 rm -f conftest.err conftest.i conftest.$ac_ext
18923
18924   # OK, works on sane cases.  Now check whether nonexistent headers
18925   # can be detected and how.
18926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h.  */
18928 #include <ac_nonexistent.h>
18929 _ACEOF
18930 if ac_fn_c_try_cpp "$LINENO"
18931 then :
18932   # Broken: success on invalid input.
18933 continue
18934 else $as_nop
18935   # Passes both tests.
18936 ac_preproc_ok=:
18937 break
18938 fi
18939 rm -f conftest.err conftest.i conftest.$ac_ext
18940
18941 done
18942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18943 rm -f conftest.i conftest.err conftest.$ac_ext
18944 if $ac_preproc_ok
18945 then :
18946
18947 else $as_nop
18948   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18950 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18951 See \`config.log' for more details" "$LINENO" 5; }
18952 fi
18953
18954 ac_ext=c
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18959
18960
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18962 printf %s "checking whether ln -s works... " >&6; }
18963 LN_S=$as_ln_s
18964 if test "$LN_S" = "ln -s"; then
18965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 printf "%s\n" "yes" >&6; }
18967 else
18968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18969 printf "%s\n" "no, using $LN_S" >&6; }
18970 fi
18971
18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18973 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18974 set x ${MAKE-make}
18975 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18976 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18977 then :
18978   printf %s "(cached) " >&6
18979 else $as_nop
18980   cat >conftest.make <<\_ACEOF
18981 SHELL = /bin/sh
18982 all:
18983         @echo '@@@%%%=$(MAKE)=@@@%%%'
18984 _ACEOF
18985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18987   *@@@%%%=?*=@@@%%%*)
18988     eval ac_cv_prog_make_${ac_make}_set=yes;;
18989   *)
18990     eval ac_cv_prog_make_${ac_make}_set=no;;
18991 esac
18992 rm -f conftest.make
18993 fi
18994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18996 printf "%s\n" "yes" >&6; }
18997   SET_MAKE=
18998 else
18999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000 printf "%s\n" "no" >&6; }
19001   SET_MAKE="MAKE=${MAKE-make}"
19002 fi
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19014         if test -n "$ac_tool_prefix"; then
19015   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19016 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19018 printf %s "checking for $ac_word... " >&6; }
19019 if test ${ac_cv_path_PKG_CONFIG+y}
19020 then :
19021   printf %s "(cached) " >&6
19022 else $as_nop
19023   case $PKG_CONFIG in
19024   [\\/]* | ?:[\\/]*)
19025   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19026   ;;
19027   *)
19028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19029 for as_dir in $PATH
19030 do
19031   IFS=$as_save_IFS
19032   case $as_dir in #(((
19033     '') as_dir=./ ;;
19034     */) ;;
19035     *) as_dir=$as_dir/ ;;
19036   esac
19037     for ac_exec_ext in '' $ac_executable_extensions; do
19038   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19039     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19040     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19041     break 2
19042   fi
19043 done
19044   done
19045 IFS=$as_save_IFS
19046
19047   ;;
19048 esac
19049 fi
19050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19051 if test -n "$PKG_CONFIG"; then
19052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19053 printf "%s\n" "$PKG_CONFIG" >&6; }
19054 else
19055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 printf "%s\n" "no" >&6; }
19057 fi
19058
19059
19060 fi
19061 if test -z "$ac_cv_path_PKG_CONFIG"; then
19062   ac_pt_PKG_CONFIG=$PKG_CONFIG
19063   # Extract the first word of "pkg-config", so it can be a program name with args.
19064 set dummy pkg-config; ac_word=$2
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 printf %s "checking for $ac_word... " >&6; }
19067 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19068 then :
19069   printf %s "(cached) " >&6
19070 else $as_nop
19071   case $ac_pt_PKG_CONFIG in
19072   [\\/]* | ?:[\\/]*)
19073   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19074   ;;
19075   *)
19076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19078 do
19079   IFS=$as_save_IFS
19080   case $as_dir in #(((
19081     '') as_dir=./ ;;
19082     */) ;;
19083     *) as_dir=$as_dir/ ;;
19084   esac
19085     for ac_exec_ext in '' $ac_executable_extensions; do
19086   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19087     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19088     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19089     break 2
19090   fi
19091 done
19092   done
19093 IFS=$as_save_IFS
19094
19095   ;;
19096 esac
19097 fi
19098 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19099 if test -n "$ac_pt_PKG_CONFIG"; then
19100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19101 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19102 else
19103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 printf "%s\n" "no" >&6; }
19105 fi
19106
19107   if test "x$ac_pt_PKG_CONFIG" = x; then
19108     PKG_CONFIG=""
19109   else
19110     case $cross_compiling:$ac_tool_warned in
19111 yes:)
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19114 ac_tool_warned=yes ;;
19115 esac
19116     PKG_CONFIG=$ac_pt_PKG_CONFIG
19117   fi
19118 else
19119   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19120 fi
19121
19122 fi
19123 if test -n "$PKG_CONFIG"; then
19124         _pkg_min_version=0.20
19125         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19126 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19127         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19128                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19129 printf "%s\n" "yes" >&6; }
19130         else
19131                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19132 printf "%s\n" "no" >&6; }
19133                 PKG_CONFIG=""
19134         fi
19135 fi
19136
19137
19138
19139
19140
19141
19142
19143         if test -n "$PYTHON"; then
19144       # If the user set $PYTHON, use it and don't search something else.
19145       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
19146 printf %s "checking whether $PYTHON version is >= 3.8... " >&6; }
19147       prog="import sys
19148 # split strings by '.' and convert to numeric.  Append some zeros
19149 # because we need at least 4 digits for the hex conversion.
19150 # map returns an iterator in Python 3.0 and a list in 2.x
19151 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
19152 minverhex = 0
19153 # xrange is not present in Python 3.0 and range returns an iterator
19154 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19155 sys.exit(sys.hexversion < minverhex)"
19156   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19157    ($PYTHON -c "$prog") >&5 2>&5
19158    ac_status=$?
19159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160    (exit $ac_status); }
19161 then :
19162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19163 printf "%s\n" "yes" >&6; }
19164 else $as_nop
19165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 printf "%s\n" "no" >&6; }
19167                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19168 fi
19169       am_display_PYTHON=$PYTHON
19170     else
19171       # Otherwise, try each interpreter until we find one that satisfies
19172       # VERSION.
19173       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
19174 printf %s "checking for a Python interpreter with version >= 3.8... " >&6; }
19175 if test ${am_cv_pathless_PYTHON+y}
19176 then :
19177   printf %s "(cached) " >&6
19178 else $as_nop
19179
19180         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
19181           test "$am_cv_pathless_PYTHON" = none && break
19182           prog="import sys
19183 # split strings by '.' and convert to numeric.  Append some zeros
19184 # because we need at least 4 digits for the hex conversion.
19185 # map returns an iterator in Python 3.0 and a list in 2.x
19186 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
19187 minverhex = 0
19188 # xrange is not present in Python 3.0 and range returns an iterator
19189 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19190 sys.exit(sys.hexversion < minverhex)"
19191   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19192    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19193    ac_status=$?
19194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195    (exit $ac_status); }
19196 then :
19197   break
19198 fi
19199         done
19200 fi
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19202 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
19203       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19204       if test "$am_cv_pathless_PYTHON" = none; then
19205         PYTHON=:
19206       else
19207         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19208 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19210 printf %s "checking for $ac_word... " >&6; }
19211 if test ${ac_cv_path_PYTHON+y}
19212 then :
19213   printf %s "(cached) " >&6
19214 else $as_nop
19215   case $PYTHON in
19216   [\\/]* | ?:[\\/]*)
19217   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19218   ;;
19219   *)
19220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221 for as_dir in $PATH
19222 do
19223   IFS=$as_save_IFS
19224   case $as_dir in #(((
19225     '') as_dir=./ ;;
19226     */) ;;
19227     *) as_dir=$as_dir/ ;;
19228   esac
19229     for ac_exec_ext in '' $ac_executable_extensions; do
19230   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19231     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
19232     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19233     break 2
19234   fi
19235 done
19236   done
19237 IFS=$as_save_IFS
19238
19239   ;;
19240 esac
19241 fi
19242 PYTHON=$ac_cv_path_PYTHON
19243 if test -n "$PYTHON"; then
19244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19245 printf "%s\n" "$PYTHON" >&6; }
19246 else
19247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248 printf "%s\n" "no" >&6; }
19249 fi
19250
19251
19252       fi
19253       am_display_PYTHON=$am_cv_pathless_PYTHON
19254     fi
19255
19256
19257   if test "$PYTHON" = :; then
19258       :
19259   else
19260
19261
19262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19263 printf %s "checking for $am_display_PYTHON version... " >&6; }
19264 if test ${am_cv_python_version+y}
19265 then :
19266   printf %s "(cached) " >&6
19267 else $as_nop
19268   am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
19269 fi
19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19271 printf "%s\n" "$am_cv_python_version" >&6; }
19272   PYTHON_VERSION=$am_cv_python_version
19273
19274
19275
19276   if test "x$prefix" = xNONE
19277   then
19278    am__usable_prefix=$ac_default_prefix
19279   else
19280    am__usable_prefix=$prefix
19281   fi
19282
19283
19284 # Check whether --with-python_prefix was given.
19285 if test ${with_python_prefix+y}
19286 then :
19287   withval=$with_python_prefix;  am_python_prefix_subst="$withval"
19288    am_cv_python_prefix="$withval"
19289    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON prefix" >&5
19290 printf %s "checking for $am_display_PYTHON prefix... " >&6; }
19291    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19292 printf "%s\n" "$am_cv_python_prefix" >&6; }
19293 else $as_nop
19294
19295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON prefix" >&5
19296 printf %s "checking for $am_display_PYTHON prefix... " >&6; }
19297 if test ${am_cv_python_prefix+y}
19298 then :
19299   printf %s "(cached) " >&6
19300 else $as_nop
19301   am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
19302 fi
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19304 printf "%s\n" "$am_cv_python_prefix" >&6; }
19305
19306       case $am_cv_python_prefix in
19307      $am__usable_prefix*)
19308        am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
19309        am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
19310        ;;
19311      *)
19312        am_python_prefix_subst=$am_cv_python_prefix
19313        ;;
19314   esac
19315
19316 fi
19317
19318   PYTHON_PREFIX=$am_python_prefix_subst
19319
19320
19321
19322 # Check whether --with-python_exec_prefix was given.
19323 if test ${with_python_exec_prefix+y}
19324 then :
19325   withval=$with_python_exec_prefix;  am_python_exec_prefix_subst="$withval"
19326    am_cv_python_exec_prefix="$withval"
19327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19328 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19330 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19331 else $as_nop
19332
19333     if test -n "$with_python_prefix"
19334 then :
19335   am_python_exec_prefix_subst="$with_python_prefix"
19336   am_cv_python_exec_prefix="$with_python_prefix"
19337   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19338 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19340 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19341 else $as_nop
19342
19343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19344 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19345 if test ${am_cv_python_exec_prefix+y}
19346 then :
19347   printf %s "(cached) " >&6
19348 else $as_nop
19349   am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
19350 fi
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19352 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19353         if test "x$exec_prefix" = xNONE
19354   then
19355    am__usable_exec_prefix=$am__usable_prefix
19356   else
19357    am__usable_exec_prefix=$exec_prefix
19358   fi
19359   case $am_cv_python_exec_prefix in
19360      $am__usable_exec_prefix*)
19361        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
19362        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
19363        ;;
19364      *)
19365        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
19366        ;;
19367   esac
19368
19369 fi
19370 fi
19371
19372   PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
19373
19374
19375
19376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19377 printf %s "checking for $am_display_PYTHON platform... " >&6; }
19378 if test ${am_cv_python_platform+y}
19379 then :
19380   printf %s "(cached) " >&6
19381 else $as_nop
19382   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19383 fi
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19385 printf "%s\n" "$am_cv_python_platform" >&6; }
19386   PYTHON_PLATFORM=$am_cv_python_platform
19387
19388
19389   # Just factor out some code duplication.
19390   am_python_setup_sysconfig="\
19391 import sys
19392 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19393 # with python 3.x.  See automake bug#10227.
19394 try:
19395     import sysconfig
19396 except ImportError:
19397     can_use_sysconfig = 0
19398 else:
19399     can_use_sysconfig = 1
19400 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19401 # <https://github.com/pypa/virtualenv/issues/118>
19402 try:
19403     from platform import python_implementation
19404     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19405         can_use_sysconfig = 0
19406 except ImportError:
19407     pass"
19408
19409
19410             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19411 printf %s "checking for $am_display_PYTHON script directory... " >&6; }
19412 if test ${am_cv_python_pythondir+y}
19413 then :
19414   printf %s "(cached) " >&6
19415 else $as_nop
19416   if test "x$am_cv_python_prefix" = x
19417      then
19418        am_py_prefix=$am__usable_prefix
19419      else
19420        am_py_prefix=$am_cv_python_prefix
19421      fi
19422      am_cv_python_pythondir=`$PYTHON -c "
19423 $am_python_setup_sysconfig
19424 if can_use_sysconfig:
19425     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19426 else:
19427     from distutils import sysconfig
19428     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19429 sys.stdout.write(sitedir)"`
19430      case $am_cv_python_pythondir in
19431      $am_py_prefix*)
19432        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19433        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
19434        ;;
19435      *)
19436        case $am_py_prefix in
19437          /usr|/System*) ;;
19438          *)
19439           am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19440           ;;
19441        esac
19442        ;;
19443      esac
19444
19445 fi
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19447 printf "%s\n" "$am_cv_python_pythondir" >&6; }
19448   pythondir=$am_cv_python_pythondir
19449
19450
19451
19452   pkgpythondir=\${pythondir}/$PACKAGE
19453
19454
19455         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19456 printf %s "checking for $am_display_PYTHON extension module directory... " >&6; }
19457 if test ${am_cv_python_pyexecdir+y}
19458 then :
19459   printf %s "(cached) " >&6
19460 else $as_nop
19461   if test "x$am_cv_python_exec_prefix" = x
19462      then
19463        am_py_exec_prefix=$am__usable_exec_prefix
19464      else
19465        am_py_exec_prefix=$am_cv_python_exec_prefix
19466      fi
19467      am_cv_python_pyexecdir=`$PYTHON -c "
19468 $am_python_setup_sysconfig
19469 if can_use_sysconfig:
19470     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
19471 else:
19472     from distutils import sysconfig
19473     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
19474 sys.stdout.write(sitedir)"`
19475      case $am_cv_python_pyexecdir in
19476      $am_py_exec_prefix*)
19477        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19478        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
19479        ;;
19480      *)
19481        case $am_py_exec_prefix in
19482          /usr|/System*) ;;
19483          *)
19484            am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19485            ;;
19486        esac
19487        ;;
19488      esac
19489
19490 fi
19491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19492 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
19493   pyexecdir=$am_cv_python_pyexecdir
19494
19495
19496
19497   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19498
19499
19500
19501   fi
19502
19503
19504
19505 if test "x$request_python_bindings" = "xyes" &&
19506    test "x$PYTHON" = "x:"; then
19507   as_fn_error $? "python was requested (enable-python-bindings) but not found" "$LINENO" 5
19508 fi
19509
19510 if test "x$request_lib_only" = "xyes"; then
19511   request_app=no
19512   request_hpack_tools=no
19513   request_examples=no
19514   request_python_bindings=no
19515 fi
19516
19517 if test "x$request_python_bindings" != "xno" &&
19518    test "x$PYTHON" != "x:"; then
19519   # version check is broken
19520
19521         #
19522         # Allow the use of a (user set) custom python version
19523         #
19524
19525
19526         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19527 set dummy python$PYTHON_VERSION; ac_word=$2
19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19529 printf %s "checking for $ac_word... " >&6; }
19530 if test ${ac_cv_path_PYTHON+y}
19531 then :
19532   printf %s "(cached) " >&6
19533 else $as_nop
19534   case $PYTHON in
19535   [\\/]* | ?:[\\/]*)
19536   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19537   ;;
19538   *)
19539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540 for as_dir in $PATH
19541 do
19542   IFS=$as_save_IFS
19543   case $as_dir in #(((
19544     '') as_dir=./ ;;
19545     */) ;;
19546     *) as_dir=$as_dir/ ;;
19547   esac
19548     for ac_exec_ext in '' $ac_executable_extensions; do
19549   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19550     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
19551     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19552     break 2
19553   fi
19554 done
19555   done
19556 IFS=$as_save_IFS
19557
19558   ;;
19559 esac
19560 fi
19561 PYTHON=$ac_cv_path_PYTHON
19562 if test -n "$PYTHON"; then
19563   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19564 printf "%s\n" "$PYTHON" >&6; }
19565 else
19566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 printf "%s\n" "no" >&6; }
19568 fi
19569
19570
19571         if test -z "$PYTHON"; then
19572            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19573            PYTHON_VERSION=""
19574         fi
19575
19576         #
19577         # Check for a version of Python >= 2.1.0
19578         #
19579         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19580 printf %s "checking for a version of Python >= '2.1.0'... " >&6; }
19581         ac_supports_python_ver=`$PYTHON -c "import sys; \
19582                 ver = sys.version.split ()[0]; \
19583                 print (ver >= '2.1.0')"`
19584         if test "$ac_supports_python_ver" != "True"; then
19585                 if test -z "$PYTHON_NOVERSIONCHECK"; then
19586                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 printf "%s\n" "no" >&6; }
19588                         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19589 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19590 as_fn_error $? "
19591 This version of the AC_PYTHON_DEVEL macro
19592 doesn't work properly with versions of Python before
19593 2.1.0. You may need to re-run configure, setting the
19594 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
19595 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19596 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19597 to something else than an empty string.
19598
19599 See \`config.log' for more details" "$LINENO" 5; }
19600                 else
19601                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19602 printf "%s\n" "skip at user request" >&6; }
19603                 fi
19604         else
19605                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19606 printf "%s\n" "yes" >&6; }
19607         fi
19608
19609         #
19610         # if the macro parameter ``version'' is set, honour it
19611         #
19612         if test -n ""; then
19613                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19614 printf %s "checking for a version of Python ... " >&6; }
19615                 ac_supports_python_ver=`$PYTHON -c "import sys; \
19616                         ver = sys.version.split ()[0]; \
19617                         print (ver )"`
19618                 if test "$ac_supports_python_ver" = "True"; then
19619                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19620 printf "%s\n" "yes" >&6; }
19621                 else
19622                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19623 printf "%s\n" "no" >&6; }
19624                         as_fn_error $? "this package requires Python .
19625 If you have it installed, but it isn't the default Python
19626 interpreter in your system path, please pass the PYTHON_VERSION
19627 variable to configure. See \`\`configure --help'' for reference.
19628 " "$LINENO" 5
19629                         PYTHON_VERSION=""
19630                 fi
19631         fi
19632
19633         #
19634         # Check if you have distutils, else fail
19635         #
19636         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python package" >&5
19637 printf %s "checking for the sysconfig Python package... " >&6; }
19638         ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`
19639         if test $? -eq 0; then
19640                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641 printf "%s\n" "yes" >&6; }
19642                 IMPORT_SYSCONFIG="import sysconfig"
19643         else
19644                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645 printf "%s\n" "no" >&6; }
19646
19647                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19648 printf %s "checking for the distutils Python package... " >&6; }
19649                 ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1`
19650                 if test $? -eq 0; then
19651                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19652 printf "%s\n" "yes" >&6; }
19653                         IMPORT_SYSCONFIG="from distutils import sysconfig"
19654                 else
19655                         as_fn_error $? "cannot import Python module \"distutils\".
19656 Please check your Python installation. The error was:
19657 $ac_sysconfig_result" "$LINENO" 5
19658                         PYTHON_VERSION=""
19659                 fi
19660         fi
19661
19662         #
19663         # Check for Python include path
19664         #
19665         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19666 printf %s "checking for Python include path... " >&6; }
19667         if test -z "$PYTHON_CPPFLAGS"; then
19668                 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19669                         # sysconfig module has different functions
19670                         python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19671                                 print (sysconfig.get_path ('include'));"`
19672                         plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19673                                 print (sysconfig.get_path ('platinclude'));"`
19674                 else
19675                         # old distutils way
19676                         python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19677                                 print (sysconfig.get_python_inc ());"`
19678                         plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19679                                 print (sysconfig.get_python_inc (plat_specific=1));"`
19680                 fi
19681                 if test -n "${python_path}"; then
19682                         if test "${plat_python_path}" != "${python_path}"; then
19683                                 python_path="-I$python_path -I$plat_python_path"
19684                         else
19685                                 python_path="-I$python_path"
19686                         fi
19687                 fi
19688                 PYTHON_CPPFLAGS=$python_path
19689         fi
19690         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19691 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
19692
19693
19694         #
19695         # Check for Python library path
19696         #
19697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19698 printf %s "checking for Python library path... " >&6; }
19699         if test -z "$PYTHON_LIBS"; then
19700                 # (makes two attempts to ensure we've got a version number
19701                 # from the interpreter)
19702                 ac_python_version=`cat<<EOD | $PYTHON -
19703
19704 # join all versioning strings, on some systems
19705 # major/minor numbers could be in different list elements
19706 from sysconfig import *
19707 e = get_config_var('VERSION')
19708 if e is not None:
19709         print(e)
19710 EOD`
19711
19712                 if test -z "$ac_python_version"; then
19713                         if test -n "$PYTHON_VERSION"; then
19714                                 ac_python_version=$PYTHON_VERSION
19715                         else
19716                                 ac_python_version=`$PYTHON -c "import sys; \
19717                                         print (sys.version[:3])"`
19718                         fi
19719                 fi
19720
19721                 # Make the versioning information available to the compiler
19722
19723 printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h
19724
19725
19726                 # First, the library directory:
19727                 ac_python_libdir=`cat<<EOD | $PYTHON -
19728
19729 # There should be only one
19730 $IMPORT_SYSCONFIG
19731 e = sysconfig.get_config_var('LIBDIR')
19732 if e is not None:
19733         print (e)
19734 EOD`
19735
19736                 # Now, for the library:
19737                 ac_python_library=`cat<<EOD | $PYTHON -
19738
19739 $IMPORT_SYSCONFIG
19740 c = sysconfig.get_config_vars()
19741 if 'LDVERSION' in c:
19742         print ('python'+c['LDVERSION'])
19743 else:
19744         print ('python'+c['VERSION'])
19745 EOD`
19746
19747                 # This small piece shamelessly adapted from PostgreSQL python macro;
19748                 # credits goes to momjian, I think. I'd like to put the right name
19749                 # in the credits, if someone can point me in the right direction... ?
19750                 #
19751                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19752                 then
19753                         # use the official shared library
19754                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19755                         PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
19756                 else
19757                         # old way: use libpython from python_configdir
19758                         ac_python_libdir=`$PYTHON -c \
19759                           "from sysconfig import get_python_lib as f; \
19760                           import os; \
19761                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19762                         PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
19763                 fi
19764
19765                 if test -z "PYTHON_LIBS"; then
19766                         as_fn_error $? "
19767   Cannot determine location of your Python DSO. Please check it was installed with
19768   dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
19769                         " "$LINENO" 5
19770                 fi
19771         fi
19772         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
19773 printf "%s\n" "$PYTHON_LIBS" >&6; }
19774
19775
19776         #
19777         # Check for site packages
19778         #
19779         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19780 printf %s "checking for Python site-packages path... " >&6; }
19781         if test -z "$PYTHON_SITE_PKG"; then
19782                 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19783                         PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19784                                 print (sysconfig.get_path('purelib'));"`
19785                 else
19786                         # distutils.sysconfig way
19787                         PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19788                                 print (sysconfig.get_python_lib(0,0));"`
19789                 fi
19790         fi
19791         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19792 printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
19793
19794
19795         #
19796         # Check for platform-specific site packages
19797         #
19798         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python platform specific site-packages path" >&5
19799 printf %s "checking for Python platform specific site-packages path... " >&6; }
19800         if test -z "$PYTHON_SITE_PKG"; then
19801                 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19802                         PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19803                                 print (sysconfig.get_path('platlib'));"`
19804                 else
19805                         # distutils.sysconfig way
19806                         PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19807                                 print (sysconfig.get_python_lib(1,0));"`
19808                 fi
19809         fi
19810         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PLATFORM_SITE_PKG" >&5
19811 printf "%s\n" "$PYTHON_PLATFORM_SITE_PKG" >&6; }
19812
19813
19814         #
19815         # libraries which must be linked in when embedding
19816         #
19817         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19818 printf %s "checking python extra libraries... " >&6; }
19819         if test -z "$PYTHON_EXTRA_LIBS"; then
19820            PYTHON_EXTRA_LIBS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19821                 conf = sysconfig.get_config_var; \
19822                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19823         fi
19824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19825 printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; }
19826
19827
19828         #
19829         # linking flags needed when embedding
19830         #
19831         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19832 printf %s "checking python extra linking flags... " >&6; }
19833         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19834                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19835                         conf = sysconfig.get_config_var; \
19836                         print (conf('LINKFORSHARED'))"`
19837         fi
19838         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19839 printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; }
19840
19841
19842         #
19843         # final check to see if everything compiles alright
19844         #
19845         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
19846 printf %s "checking consistency of all components of python development environment... " >&6; }
19847         # save current global flags
19848         ac_save_LIBS="$LIBS"
19849         ac_save_LDFLAGS="$LDFLAGS"
19850         ac_save_CPPFLAGS="$CPPFLAGS"
19851         LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
19852         LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
19853         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
19854         ac_ext=c
19855 ac_cpp='$CPP $CPPFLAGS'
19856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19859
19860         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h.  */
19862
19863                 #include <Python.h>
19864 int
19865 main (void)
19866 {
19867 Py_Initialize();
19868   ;
19869   return 0;
19870 }
19871
19872 _ACEOF
19873 if ac_fn_c_try_link "$LINENO"
19874 then :
19875   pythonexists=yes
19876 else $as_nop
19877   pythonexists=no
19878 fi
19879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19880     conftest$ac_exeext conftest.$ac_ext
19881         ac_ext=c
19882 ac_cpp='$CPP $CPPFLAGS'
19883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886
19887         # turn back to default flags
19888         CPPFLAGS="$ac_save_CPPFLAGS"
19889         LIBS="$ac_save_LIBS"
19890         LDFLAGS="$ac_save_LDFLAGS"
19891
19892         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
19893 printf "%s\n" "$pythonexists" >&6; }
19894
19895         if test ! "x$pythonexists" = "xyes"; then
19896            { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19898 as_fn_error $? "
19899   Could not link test program to Python. Maybe the main Python library has been
19900   installed in some non-standard library path. If so, pass it to configure,
19901   via the LIBS environment variable.
19902   Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
19903   ============================================================================
19904    ERROR!
19905    You probably have to install the development version of the Python package
19906    for your distribution.  The exact name of this package varies among them.
19907   ============================================================================
19908
19909 See \`config.log' for more details" "$LINENO" 5; }
19910           PYTHON_VERSION=""
19911         fi
19912
19913         #
19914         # all done!
19915         #
19916
19917 fi
19918
19919 if test "x${cython_path}" = "x"; then
19920   for ac_prog in cython.py cython
19921 do
19922   # Extract the first word of "$ac_prog", so it can be a program name with args.
19923 set dummy $ac_prog; ac_word=$2
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19925 printf %s "checking for $ac_word... " >&6; }
19926 if test ${ac_cv_prog_CYTHON+y}
19927 then :
19928   printf %s "(cached) " >&6
19929 else $as_nop
19930   if test -n "$CYTHON"; then
19931   ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
19932 else
19933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 for as_dir in $PATH
19935 do
19936   IFS=$as_save_IFS
19937   case $as_dir in #(((
19938     '') as_dir=./ ;;
19939     */) ;;
19940     *) as_dir=$as_dir/ ;;
19941   esac
19942     for ac_exec_ext in '' $ac_executable_extensions; do
19943   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19944     ac_cv_prog_CYTHON="$ac_prog"
19945     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19946     break 2
19947   fi
19948 done
19949   done
19950 IFS=$as_save_IFS
19951
19952 fi
19953 fi
19954 CYTHON=$ac_cv_prog_CYTHON
19955 if test -n "$CYTHON"; then
19956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
19957 printf "%s\n" "$CYTHON" >&6; }
19958 else
19959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 printf "%s\n" "no" >&6; }
19961 fi
19962
19963
19964   test -n "$CYTHON" && break
19965 done
19966
19967 else
19968   CYTHON=${cython_path}
19969
19970 fi
19971
19972 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
19973
19974 printf "%s\n" "#define NGHTTP2_NORETURN __attribute__((noreturn))" >>confdefs.h
19975
19976 else
19977
19978 printf "%s\n" "#define NGHTTP2_NORETURN /**/" >>confdefs.h
19979
19980 fi
19981
19982 save_CXXFLAGS="$CXXFLAGS"
19983 CXXFLAGS=
19984
19985   ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=false
19986   ac_ext=cpp
19987 ac_cpp='$CXXCPP $CPPFLAGS'
19988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19991   ac_success=no
19992
19993
19994
19995     if test x$ac_success = xno; then
19996                 for alternative in ${ax_cxx_compile_alternatives}; do
19997       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19998         cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
19999         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
20000 printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
20001 if eval test \${$cachevar+y}
20002 then :
20003   printf %s "(cached) " >&6
20004 else $as_nop
20005   ac_save_CXX="$CXX"
20006            CXX="$CXX $switch"
20007            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h.  */
20009
20010
20011 // If the compiler admits that it is not ready for C++11, why torture it?
20012 // Hopefully, this will speed up the test.
20013
20014 #ifndef __cplusplus
20015
20016 #error "This is not a C++ compiler"
20017
20018 #elif __cplusplus < 201103L
20019
20020 #error "This is not a C++11 compiler"
20021
20022 #else
20023
20024 namespace cxx11
20025 {
20026
20027   namespace test_static_assert
20028   {
20029
20030     template <typename T>
20031     struct check
20032     {
20033       static_assert(sizeof(int) <= sizeof(T), "not big enough");
20034     };
20035
20036   }
20037
20038   namespace test_final_override
20039   {
20040
20041     struct Base
20042     {
20043       virtual void f() {}
20044     };
20045
20046     struct Derived : public Base
20047     {
20048       virtual void f() override {}
20049     };
20050
20051   }
20052
20053   namespace test_double_right_angle_brackets
20054   {
20055
20056     template < typename T >
20057     struct check {};
20058
20059     typedef check<void> single_type;
20060     typedef check<check<void>> double_type;
20061     typedef check<check<check<void>>> triple_type;
20062     typedef check<check<check<check<void>>>> quadruple_type;
20063
20064   }
20065
20066   namespace test_decltype
20067   {
20068
20069     int
20070     f()
20071     {
20072       int a = 1;
20073       decltype(a) b = 2;
20074       return a + b;
20075     }
20076
20077   }
20078
20079   namespace test_type_deduction
20080   {
20081
20082     template < typename T1, typename T2 >
20083     struct is_same
20084     {
20085       static const bool value = false;
20086     };
20087
20088     template < typename T >
20089     struct is_same<T, T>
20090     {
20091       static const bool value = true;
20092     };
20093
20094     template < typename T1, typename T2 >
20095     auto
20096     add(T1 a1, T2 a2) -> decltype(a1 + a2)
20097     {
20098       return a1 + a2;
20099     }
20100
20101     int
20102     test(const int c, volatile int v)
20103     {
20104       static_assert(is_same<int, decltype(0)>::value == true, "");
20105       static_assert(is_same<int, decltype(c)>::value == false, "");
20106       static_assert(is_same<int, decltype(v)>::value == false, "");
20107       auto ac = c;
20108       auto av = v;
20109       auto sumi = ac + av + 'x';
20110       auto sumf = ac + av + 1.0;
20111       static_assert(is_same<int, decltype(ac)>::value == true, "");
20112       static_assert(is_same<int, decltype(av)>::value == true, "");
20113       static_assert(is_same<int, decltype(sumi)>::value == true, "");
20114       static_assert(is_same<int, decltype(sumf)>::value == false, "");
20115       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20116       return (sumf > 0.0) ? sumi : add(c, v);
20117     }
20118
20119   }
20120
20121   namespace test_noexcept
20122   {
20123
20124     int f() { return 0; }
20125     int g() noexcept { return 0; }
20126
20127     static_assert(noexcept(f()) == false, "");
20128     static_assert(noexcept(g()) == true, "");
20129
20130   }
20131
20132   namespace test_constexpr
20133   {
20134
20135     template < typename CharT >
20136     unsigned long constexpr
20137     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20138     {
20139       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20140     }
20141
20142     template < typename CharT >
20143     unsigned long constexpr
20144     strlen_c(const CharT *const s) noexcept
20145     {
20146       return strlen_c_r(s, 0UL);
20147     }
20148
20149     static_assert(strlen_c("") == 0UL, "");
20150     static_assert(strlen_c("1") == 1UL, "");
20151     static_assert(strlen_c("example") == 7UL, "");
20152     static_assert(strlen_c("another\0example") == 7UL, "");
20153
20154   }
20155
20156   namespace test_rvalue_references
20157   {
20158
20159     template < int N >
20160     struct answer
20161     {
20162       static constexpr int value = N;
20163     };
20164
20165     answer<1> f(int&)       { return answer<1>(); }
20166     answer<2> f(const int&) { return answer<2>(); }
20167     answer<3> f(int&&)      { return answer<3>(); }
20168
20169     void
20170     test()
20171     {
20172       int i = 0;
20173       const int c = 0;
20174       static_assert(decltype(f(i))::value == 1, "");
20175       static_assert(decltype(f(c))::value == 2, "");
20176       static_assert(decltype(f(0))::value == 3, "");
20177     }
20178
20179   }
20180
20181   namespace test_uniform_initialization
20182   {
20183
20184     struct test
20185     {
20186       static const int zero {};
20187       static const int one {1};
20188     };
20189
20190     static_assert(test::zero == 0, "");
20191     static_assert(test::one == 1, "");
20192
20193   }
20194
20195   namespace test_lambdas
20196   {
20197
20198     void
20199     test1()
20200     {
20201       auto lambda1 = [](){};
20202       auto lambda2 = lambda1;
20203       lambda1();
20204       lambda2();
20205     }
20206
20207     int
20208     test2()
20209     {
20210       auto a = [](int i, int j){ return i + j; }(1, 2);
20211       auto b = []() -> int { return '0'; }();
20212       auto c = [=](){ return a + b; }();
20213       auto d = [&](){ return c; }();
20214       auto e = [a, &b](int x) mutable {
20215         const auto identity = [](int y){ return y; };
20216         for (auto i = 0; i < a; ++i)
20217           a += b--;
20218         return x + identity(a + b);
20219       }(0);
20220       return a + b + c + d + e;
20221     }
20222
20223     int
20224     test3()
20225     {
20226       const auto nullary = [](){ return 0; };
20227       const auto unary = [](int x){ return x; };
20228       using nullary_t = decltype(nullary);
20229       using unary_t = decltype(unary);
20230       const auto higher1st = [](nullary_t f){ return f(); };
20231       const auto higher2nd = [unary](nullary_t f1){
20232         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20233       };
20234       return higher1st(nullary) + higher2nd(nullary)(unary);
20235     }
20236
20237   }
20238
20239   namespace test_variadic_templates
20240   {
20241
20242     template <int...>
20243     struct sum;
20244
20245     template <int N0, int... N1toN>
20246     struct sum<N0, N1toN...>
20247     {
20248       static constexpr auto value = N0 + sum<N1toN...>::value;
20249     };
20250
20251     template <>
20252     struct sum<>
20253     {
20254       static constexpr auto value = 0;
20255     };
20256
20257     static_assert(sum<>::value == 0, "");
20258     static_assert(sum<1>::value == 1, "");
20259     static_assert(sum<23>::value == 23, "");
20260     static_assert(sum<1, 2>::value == 3, "");
20261     static_assert(sum<5, 5, 11>::value == 21, "");
20262     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20263
20264   }
20265
20266   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20267   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20268   // because of this.
20269   namespace test_template_alias_sfinae
20270   {
20271
20272     struct foo {};
20273
20274     template<typename T>
20275     using member = typename T::member_type;
20276
20277     template<typename T>
20278     void func(...) {}
20279
20280     template<typename T>
20281     void func(member<T>*) {}
20282
20283     void test();
20284
20285     void test() { func<foo>(0); }
20286
20287   }
20288
20289 }  // namespace cxx11
20290
20291 #endif  // __cplusplus >= 201103L
20292
20293
20294
20295
20296 // If the compiler admits that it is not ready for C++14, why torture it?
20297 // Hopefully, this will speed up the test.
20298
20299 #ifndef __cplusplus
20300
20301 #error "This is not a C++ compiler"
20302
20303 #elif __cplusplus < 201402L
20304
20305 #error "This is not a C++14 compiler"
20306
20307 #else
20308
20309 namespace cxx14
20310 {
20311
20312   namespace test_polymorphic_lambdas
20313   {
20314
20315     int
20316     test()
20317     {
20318       const auto lambda = [](auto&&... args){
20319         const auto istiny = [](auto x){
20320           return (sizeof(x) == 1UL) ? 1 : 0;
20321         };
20322         const int aretiny[] = { istiny(args)... };
20323         return aretiny[0];
20324       };
20325       return lambda(1, 1L, 1.0f, '1');
20326     }
20327
20328   }
20329
20330   namespace test_binary_literals
20331   {
20332
20333     constexpr auto ivii = 0b0000000000101010;
20334     static_assert(ivii == 42, "wrong value");
20335
20336   }
20337
20338   namespace test_generalized_constexpr
20339   {
20340
20341     template < typename CharT >
20342     constexpr unsigned long
20343     strlen_c(const CharT *const s) noexcept
20344     {
20345       auto length = 0UL;
20346       for (auto p = s; *p; ++p)
20347         ++length;
20348       return length;
20349     }
20350
20351     static_assert(strlen_c("") == 0UL, "");
20352     static_assert(strlen_c("x") == 1UL, "");
20353     static_assert(strlen_c("test") == 4UL, "");
20354     static_assert(strlen_c("another\0test") == 7UL, "");
20355
20356   }
20357
20358   namespace test_lambda_init_capture
20359   {
20360
20361     int
20362     test()
20363     {
20364       auto x = 0;
20365       const auto lambda1 = [a = x](int b){ return a + b; };
20366       const auto lambda2 = [a = lambda1(x)](){ return a; };
20367       return lambda2();
20368     }
20369
20370   }
20371
20372   namespace test_digit_separators
20373   {
20374
20375     constexpr auto ten_million = 100'000'000;
20376     static_assert(ten_million == 100000000, "");
20377
20378   }
20379
20380   namespace test_return_type_deduction
20381   {
20382
20383     auto f(int& x) { return x; }
20384     decltype(auto) g(int& x) { return x; }
20385
20386     template < typename T1, typename T2 >
20387     struct is_same
20388     {
20389       static constexpr auto value = false;
20390     };
20391
20392     template < typename T >
20393     struct is_same<T, T>
20394     {
20395       static constexpr auto value = true;
20396     };
20397
20398     int
20399     test()
20400     {
20401       auto x = 0;
20402       static_assert(is_same<int, decltype(f(x))>::value, "");
20403       static_assert(is_same<int&, decltype(g(x))>::value, "");
20404       return x;
20405     }
20406
20407   }
20408
20409 }  // namespace cxx14
20410
20411 #endif  // __cplusplus >= 201402L
20412
20413
20414
20415 _ACEOF
20416 if ac_fn_cxx_try_compile "$LINENO"
20417 then :
20418   eval $cachevar=yes
20419 else $as_nop
20420   eval $cachevar=no
20421 fi
20422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20423            CXX="$ac_save_CXX"
20424 fi
20425 eval ac_res=\$$cachevar
20426                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20427 printf "%s\n" "$ac_res" >&6; }
20428         if eval test x\$$cachevar = xyes; then
20429           CXX="$CXX $switch"
20430           if test -n "$CXXCPP" ; then
20431             CXXCPP="$CXXCPP $switch"
20432           fi
20433           ac_success=yes
20434           break
20435         fi
20436       done
20437       if test x$ac_success = xyes; then
20438         break
20439       fi
20440     done
20441   fi
20442   ac_ext=c
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448   if test x$ax_cxx_compile_cxx14_required = xtrue; then
20449     if test x$ac_success = xno; then
20450       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
20451     fi
20452   fi
20453   if test x$ac_success = xno; then
20454     HAVE_CXX14=0
20455     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
20456 printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
20457   else
20458     HAVE_CXX14=1
20459
20460 printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
20461
20462   fi
20463
20464
20465
20466 CXX1XCXXFLAGS="$CXXFLAGS"
20467 CXXFLAGS="$save_CXXFLAGS"
20468
20469
20470 ac_ext=cpp
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20475
20476
20477 save_CXXFLAGS="$CXXFLAGS"
20478 CXXFLAGS="$CXXFLAGS $CXX1XCXXFLAGS"
20479
20480 # Check that std::future is available.
20481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
20482 printf %s "checking whether std::future is available... " >&6; }
20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h.  */
20485
20486 #include <vector>
20487 #include <future>
20488
20489 int
20490 main (void)
20491 {
20492
20493 std::vector<std::future<int>> v;
20494 (void)v;
20495
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 if ac_fn_cxx_try_compile "$LINENO"
20501 then :
20502
20503 printf "%s\n" "#define HAVE_STD_FUTURE 1" >>confdefs.h
20504
20505      have_std_future=yes
20506      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20507 printf "%s\n" "yes" >&6; }
20508 else $as_nop
20509   have_std_future=no
20510      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 printf "%s\n" "no" >&6; }
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20514
20515 # Check that std::map::emplace is available for g++-4.7.
20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
20517 printf %s "checking whether std::map::emplace is available... " >&6; }
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h.  */
20520
20521 #include <map>
20522
20523 int
20524 main (void)
20525 {
20526
20527 std::map<int, int>().emplace(1, 2);
20528
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 if ac_fn_cxx_try_compile "$LINENO"
20534 then :
20535
20536 printf "%s\n" "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
20537
20538      have_std_map_emplace=yes
20539      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20540 printf "%s\n" "yes" >&6; }
20541 else $as_nop
20542   have_std_map_emplace=no
20543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 printf "%s\n" "no" >&6; }
20545 fi
20546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20547
20548 # Check that std::atomic_* overloads for std::shared_ptr are
20549 # available.
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::atomic_* overloads for std::shared_ptr are available" >&5
20551 printf %s "checking whether std::atomic_* overloads for std::shared_ptr are available... " >&6; }
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h.  */
20554
20555 #include <memory>
20556
20557 int
20558 main (void)
20559 {
20560
20561 auto a = std::make_shared<int>(1000000007);
20562 auto p = std::atomic_load(&a);
20563 ++*p;
20564 std::atomic_store(&a, p);
20565
20566   ;
20567   return 0;
20568 }
20569 _ACEOF
20570 if ac_fn_cxx_try_compile "$LINENO"
20571 then :
20572
20573 printf "%s\n" "#define HAVE_ATOMIC_STD_SHARED_PTR 1" >>confdefs.h
20574
20575      have_atomic_std_shared_ptr=yes
20576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20577 printf "%s\n" "yes" >&6; }
20578 else $as_nop
20579   have_atomic_std_shared_ptr=no
20580      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20581 printf "%s\n" "no" >&6; }
20582 fi
20583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20584
20585 # Check that thread_local storage specifier is available
20586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether thread_local storage class specifier is available." >&5
20587 printf %s "checking whether thread_local storage class specifier is available.... " >&6; }
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h.  */
20590
20591 int
20592 main (void)
20593 {
20594
20595 thread_local int a = 0;
20596 (void)a;
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 if ac_fn_cxx_try_compile "$LINENO"
20603 then :
20604
20605 printf "%s\n" "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
20606
20607      have_thread_local=yes
20608      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20609 printf "%s\n" "yes" >&6; }
20610 else $as_nop
20611   have_Thread_local=no
20612      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20613 printf "%s\n" "no" >&6; }
20614 fi
20615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20616
20617 CXXFLAGS=$save_CXXFLAGS
20618
20619 ac_ext=c
20620 ac_cpp='$CPP $CPPFLAGS'
20621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20624
20625
20626 # Checks for libraries.
20627
20628 # Additional libraries required for tests.
20629 TESTLDADD=
20630
20631 # Additional libraries required for programs under src directory.
20632 APPLDFLAGS=
20633
20634 case "$host_os" in
20635   *android*)
20636     android_build=yes
20637     # android does not need -pthread, but needs followng 3 libs for C++
20638     APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
20639     ;;
20640   *)
20641     PTHREAD_LDFLAGS="-pthread"
20642     APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
20643     ;;
20644 esac
20645
20646 case "$host_os" in
20647   *solaris*)
20648     APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl"
20649     ;;
20650 esac
20651
20652 case "${build}" in
20653   *-apple-darwin*)
20654     EXTRA_DEFS="-D__APPLE_USE_RFC_3542"
20655
20656     ;;
20657 esac
20658
20659 # zlib
20660 have_zlib=no
20661 if test "x${request_zlib}" != "xno"; then
20662
20663 pkg_failed=no
20664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.3" >&5
20665 printf %s "checking for zlib >= 1.2.3... " >&6; }
20666
20667 if test -n "$ZLIB_CFLAGS"; then
20668     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20669  elif test -n "$PKG_CONFIG"; then
20670     if test -n "$PKG_CONFIG" && \
20671     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
20672   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
20673   ac_status=$?
20674   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20675   test $ac_status = 0; }; then
20676   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
20677                       test "x$?" != "x0" && pkg_failed=yes
20678 else
20679   pkg_failed=yes
20680 fi
20681  else
20682     pkg_failed=untried
20683 fi
20684 if test -n "$ZLIB_LIBS"; then
20685     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20686  elif test -n "$PKG_CONFIG"; then
20687     if test -n "$PKG_CONFIG" && \
20688     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
20689   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
20690   ac_status=$?
20691   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20692   test $ac_status = 0; }; then
20693   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
20694                       test "x$?" != "x0" && pkg_failed=yes
20695 else
20696   pkg_failed=yes
20697 fi
20698  else
20699     pkg_failed=untried
20700 fi
20701
20702
20703
20704 if test $pkg_failed = yes; then
20705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20706 printf "%s\n" "no" >&6; }
20707
20708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20709         _pkg_short_errors_supported=yes
20710 else
20711         _pkg_short_errors_supported=no
20712 fi
20713         if test $_pkg_short_errors_supported = yes; then
20714                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
20715         else
20716                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
20717         fi
20718         # Put the nasty error message in config.log where it belongs
20719         echo "$ZLIB_PKG_ERRORS" >&5
20720
20721         have_zlib=no
20722 elif test $pkg_failed = untried; then
20723         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724 printf "%s\n" "no" >&6; }
20725         have_zlib=no
20726 else
20727         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20728         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20729         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20730 printf "%s\n" "yes" >&6; }
20731         have_zlib=yes
20732 fi
20733
20734   if test "x${have_zlib}" = "xno"; then
20735     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
20736 printf "%s\n" "$as_me: $ZLIB_PKG_ERRORS" >&6;}
20737   fi
20738 fi
20739
20740 if test "x${request_zlib}" = "xyes" &&
20741    test "x${have_zlib}" != "xyes"; then
20742   as_fn_error $? "zlib was requested (--with-zlib) but not found" "$LINENO" 5
20743 fi
20744
20745 # dl: openssl requires libdl when it is statically linked.
20746 case "${host_os}" in
20747   *bsd*)
20748     # dlopen is in libc on *BSD
20749     ;;
20750   *)
20751     save_LIBS=$LIBS
20752     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20753 printf %s "checking for library containing dlopen... " >&6; }
20754 if test ${ac_cv_search_dlopen+y}
20755 then :
20756   printf %s "(cached) " >&6
20757 else $as_nop
20758   ac_func_search_save_LIBS=$LIBS
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h.  */
20761
20762 /* Override any GCC internal prototype to avoid an error.
20763    Use char because int might match the return type of a GCC
20764    builtin and then its argument prototype would still apply.  */
20765 char dlopen ();
20766 int
20767 main (void)
20768 {
20769 return dlopen ();
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 for ac_lib in '' dl
20775 do
20776   if test -z "$ac_lib"; then
20777     ac_res="none required"
20778   else
20779     ac_res=-l$ac_lib
20780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20781   fi
20782   if ac_fn_c_try_link "$LINENO"
20783 then :
20784   ac_cv_search_dlopen=$ac_res
20785 fi
20786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20787     conftest$ac_exeext
20788   if test ${ac_cv_search_dlopen+y}
20789 then :
20790   break
20791 fi
20792 done
20793 if test ${ac_cv_search_dlopen+y}
20794 then :
20795
20796 else $as_nop
20797   ac_cv_search_dlopen=no
20798 fi
20799 rm conftest.$ac_ext
20800 LIBS=$ac_func_search_save_LIBS
20801 fi
20802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20803 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20804 ac_res=$ac_cv_search_dlopen
20805 if test "$ac_res" != no
20806 then :
20807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20808   APPLDFLAGS="-ldl $APPLDFLAGS"
20809 fi
20810
20811     LIBS=$save_LIBS
20812     ;;
20813 esac
20814
20815 # cunit
20816 have_cunit=no
20817 if test "x${request_cunit}" != "xno"; then
20818
20819 pkg_failed=no
20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cunit >= 2.1" >&5
20821 printf %s "checking for cunit >= 2.1... " >&6; }
20822
20823 if test -n "$CUNIT_CFLAGS"; then
20824     pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
20825  elif test -n "$PKG_CONFIG"; then
20826     if test -n "$PKG_CONFIG" && \
20827     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
20828   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
20829   ac_status=$?
20830   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20831   test $ac_status = 0; }; then
20832   pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
20833                       test "x$?" != "x0" && pkg_failed=yes
20834 else
20835   pkg_failed=yes
20836 fi
20837  else
20838     pkg_failed=untried
20839 fi
20840 if test -n "$CUNIT_LIBS"; then
20841     pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
20842  elif test -n "$PKG_CONFIG"; then
20843     if test -n "$PKG_CONFIG" && \
20844     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
20845   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
20846   ac_status=$?
20847   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20848   test $ac_status = 0; }; then
20849   pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
20850                       test "x$?" != "x0" && pkg_failed=yes
20851 else
20852   pkg_failed=yes
20853 fi
20854  else
20855     pkg_failed=untried
20856 fi
20857
20858
20859
20860 if test $pkg_failed = yes; then
20861         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20862 printf "%s\n" "no" >&6; }
20863
20864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20865         _pkg_short_errors_supported=yes
20866 else
20867         _pkg_short_errors_supported=no
20868 fi
20869         if test $_pkg_short_errors_supported = yes; then
20870                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
20871         else
20872                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
20873         fi
20874         # Put the nasty error message in config.log where it belongs
20875         echo "$CUNIT_PKG_ERRORS" >&5
20876
20877         have_cunit=no
20878 elif test $pkg_failed = untried; then
20879         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 printf "%s\n" "no" >&6; }
20881         have_cunit=no
20882 else
20883         CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
20884         CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
20885         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886 printf "%s\n" "yes" >&6; }
20887         have_cunit=yes
20888 fi
20889   # If pkg-config does not find cunit, check it using AC_CHECK_LIB.  We
20890   # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
20891   if test "x${have_cunit}" = "xno"; then
20892     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
20893 printf "%s\n" "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
20894     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
20895 printf %s "checking for CU_initialize_registry in -lcunit... " >&6; }
20896 if test ${ac_cv_lib_cunit_CU_initialize_registry+y}
20897 then :
20898   printf %s "(cached) " >&6
20899 else $as_nop
20900   ac_check_lib_save_LIBS=$LIBS
20901 LIBS="-lcunit  $LIBS"
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h.  */
20904
20905 /* Override any GCC internal prototype to avoid an error.
20906    Use char because int might match the return type of a GCC
20907    builtin and then its argument prototype would still apply.  */
20908 char CU_initialize_registry ();
20909 int
20910 main (void)
20911 {
20912 return CU_initialize_registry ();
20913   ;
20914   return 0;
20915 }
20916 _ACEOF
20917 if ac_fn_c_try_link "$LINENO"
20918 then :
20919   ac_cv_lib_cunit_CU_initialize_registry=yes
20920 else $as_nop
20921   ac_cv_lib_cunit_CU_initialize_registry=no
20922 fi
20923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20924     conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20926 fi
20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
20928 printf "%s\n" "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
20929 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes
20930 then :
20931   have_cunit=yes
20932 else $as_nop
20933   have_cunit=no
20934 fi
20935
20936     if test "x${have_cunit}" = "xyes"; then
20937       CUNIT_LIBS="-lcunit"
20938       CUNIT_CFLAGS=""
20939
20940
20941     fi
20942   fi
20943   if test "x${have_cunit}" = "xyes"; then
20944     # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
20945     # program can be built without -lncurses, but it emits runtime
20946     # error.
20947     case "${build}" in
20948       *-apple-darwin*)
20949         CUNIT_LIBS="$CUNIT_LIBS -lncurses"
20950
20951         ;;
20952     esac
20953   fi
20954 fi
20955
20956 if test "x${request_cunit}" = "xyes" &&
20957    test "x${have_cunit}" != "xyes"; then
20958   as_fn_error $? "cunit was requested (--with-cunit) but not found" "$LINENO" 5
20959 fi
20960
20961  if  test "x${have_cunit}" = "xyes" ; then
20962   HAVE_CUNIT_TRUE=
20963   HAVE_CUNIT_FALSE='#'
20964 else
20965   HAVE_CUNIT_TRUE='#'
20966   HAVE_CUNIT_FALSE=
20967 fi
20968
20969
20970 # libev (for src)
20971 have_libev=no
20972 if test "x${request_libev}" != "xno"; then
20973   if test "x${LIBEV_LIBS}" = "x" && test "x${LIBEV_CFLAGS}" = "x"; then
20974     # libev does not have pkg-config file.  Check it in an old way.
20975     save_LIBS=$LIBS
20976     # android requires -lm for floor
20977    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
20978 printf %s "checking for ev_time in -lev... " >&6; }
20979 if test ${ac_cv_lib_ev_ev_time+y}
20980 then :
20981   printf %s "(cached) " >&6
20982 else $as_nop
20983   ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-lev -lm $LIBS"
20985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986 /* end confdefs.h.  */
20987
20988 /* Override any GCC internal prototype to avoid an error.
20989    Use char because int might match the return type of a GCC
20990    builtin and then its argument prototype would still apply.  */
20991 char ev_time ();
20992 int
20993 main (void)
20994 {
20995 return ev_time ();
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 if ac_fn_c_try_link "$LINENO"
21001 then :
21002   ac_cv_lib_ev_ev_time=yes
21003 else $as_nop
21004   ac_cv_lib_ev_ev_time=no
21005 fi
21006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21007     conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21009 fi
21010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
21011 printf "%s\n" "$ac_cv_lib_ev_ev_time" >&6; }
21012 if test "x$ac_cv_lib_ev_ev_time" = xyes
21013 then :
21014   have_libev=yes
21015 else $as_nop
21016   have_libev=no
21017 fi
21018
21019    if test "x${have_libev}" = "xyes"; then
21020       ac_fn_c_check_header_compile "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
21021 if test "x$ac_cv_header_ev_h" = xyes
21022 then :
21023   have_libev=yes
21024 else $as_nop
21025   have_libev=no
21026 fi
21027
21028       if test "x${have_libev}" = "xyes"; then
21029         LIBEV_LIBS=-lev
21030         LIBEV_CFLAGS=
21031       fi
21032     fi
21033     LIBS=$save_LIBS
21034   else
21035     have_libev=yes
21036   fi
21037 fi
21038
21039 if test "x${request_libev}" = "xyes" &&
21040    test "x${have_libev}" != "xyes"; then
21041   as_fn_error $? "libev was requested (--with-libev) but not found" "$LINENO" 5
21042 fi
21043
21044 # openssl (for src)
21045 have_openssl=no
21046 if test "x${request_openssl}" != "xno"; then
21047
21048 pkg_failed=no
21049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5
21050 printf %s "checking for openssl >= 1.0.1... " >&6; }
21051
21052 if test -n "$OPENSSL_CFLAGS"; then
21053     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21054  elif test -n "$PKG_CONFIG"; then
21055     if test -n "$PKG_CONFIG" && \
21056     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
21057   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
21058   ac_status=$?
21059   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060   test $ac_status = 0; }; then
21061   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
21062                       test "x$?" != "x0" && pkg_failed=yes
21063 else
21064   pkg_failed=yes
21065 fi
21066  else
21067     pkg_failed=untried
21068 fi
21069 if test -n "$OPENSSL_LIBS"; then
21070     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21071  elif test -n "$PKG_CONFIG"; then
21072     if test -n "$PKG_CONFIG" && \
21073     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
21074   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
21075   ac_status=$?
21076   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077   test $ac_status = 0; }; then
21078   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
21079                       test "x$?" != "x0" && pkg_failed=yes
21080 else
21081   pkg_failed=yes
21082 fi
21083  else
21084     pkg_failed=untried
21085 fi
21086
21087
21088
21089 if test $pkg_failed = yes; then
21090         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 printf "%s\n" "no" >&6; }
21092
21093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21094         _pkg_short_errors_supported=yes
21095 else
21096         _pkg_short_errors_supported=no
21097 fi
21098         if test $_pkg_short_errors_supported = yes; then
21099                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
21100         else
21101                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
21102         fi
21103         # Put the nasty error message in config.log where it belongs
21104         echo "$OPENSSL_PKG_ERRORS" >&5
21105
21106         have_openssl=no
21107 elif test $pkg_failed = untried; then
21108         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21109 printf "%s\n" "no" >&6; }
21110         have_openssl=no
21111 else
21112         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21113         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21114         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21115 printf "%s\n" "yes" >&6; }
21116         have_openssl=yes
21117 fi
21118   if test "x${have_openssl}" = "xno"; then
21119     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
21120 printf "%s\n" "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
21121   else
21122     save_CFLAGS="$CFLAGS"
21123     save_LIBS="$LIBS"
21124     CFLAGS="$OPENSSL_CFLAGS $CFLAGS"
21125     LIBS="$OPENSSL_LIBS $LIBS"
21126
21127     # quictls/openssl has SSL_is_quic.
21128     have_ssl_is_quic=no
21129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_is_quic" >&5
21130 printf %s "checking for SSL_is_quic... " >&6; }
21131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h.  */
21133
21134       #include <openssl/ssl.h>
21135
21136 int
21137 main (void)
21138 {
21139
21140       SSL *ssl = NULL;
21141       SSL_is_quic(ssl);
21142
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 if ac_fn_c_try_link "$LINENO"
21148 then :
21149   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21150 printf "%s\n" "yes" >&6; }; have_ssl_is_quic=yes
21151 else $as_nop
21152   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153 printf "%s\n" "no" >&6; }; have_ssl_is_quic=no
21154 fi
21155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21156     conftest$ac_exeext conftest.$ac_ext
21157
21158     # boringssl has SSL_set_quic_early_data_context.
21159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_set_quic_early_data_context" >&5
21160 printf %s "checking for SSL_set_quic_early_data_context... " >&6; }
21161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h.  */
21163
21164       #include <openssl/ssl.h>
21165
21166 int
21167 main (void)
21168 {
21169
21170       SSL *ssl = NULL;
21171       SSL_set_quic_early_data_context(ssl, NULL, 0);
21172
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 if ac_fn_c_try_link "$LINENO"
21178 then :
21179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 printf "%s\n" "yes" >&6; }; have_boringssl_quic=yes
21181 else $as_nop
21182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183 printf "%s\n" "no" >&6; }; have_boringssl_quic=no
21184 fi
21185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21186     conftest$ac_exeext conftest.$ac_ext
21187
21188     CFLAGS="$save_CFLAGS"
21189     LIBS="$save_LIBS"
21190   fi
21191 fi
21192
21193 if test "x${request_openssl}" = "xyes" &&
21194    test "x${have_openssl}" != "xyes"; then
21195   as_fn_error $? "openssl was requested (--with-openssl) but not found" "$LINENO" 5
21196 fi
21197
21198 # c-ares (for src)
21199 have_libcares=no
21200 if test "x${request_libcares}" != "xno"; then
21201
21202 pkg_failed=no
21203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares >= 1.7.5" >&5
21204 printf %s "checking for libcares >= 1.7.5... " >&6; }
21205
21206 if test -n "$LIBCARES_CFLAGS"; then
21207     pkg_cv_LIBCARES_CFLAGS="$LIBCARES_CFLAGS"
21208  elif test -n "$PKG_CONFIG"; then
21209     if test -n "$PKG_CONFIG" && \
21210     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
21211   ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
21212   ac_status=$?
21213   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214   test $ac_status = 0; }; then
21215   pkg_cv_LIBCARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.7.5" 2>/dev/null`
21216                       test "x$?" != "x0" && pkg_failed=yes
21217 else
21218   pkg_failed=yes
21219 fi
21220  else
21221     pkg_failed=untried
21222 fi
21223 if test -n "$LIBCARES_LIBS"; then
21224     pkg_cv_LIBCARES_LIBS="$LIBCARES_LIBS"
21225  elif test -n "$PKG_CONFIG"; then
21226     if test -n "$PKG_CONFIG" && \
21227     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
21228   ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
21229   ac_status=$?
21230   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21231   test $ac_status = 0; }; then
21232   pkg_cv_LIBCARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.7.5" 2>/dev/null`
21233                       test "x$?" != "x0" && pkg_failed=yes
21234 else
21235   pkg_failed=yes
21236 fi
21237  else
21238     pkg_failed=untried
21239 fi
21240
21241
21242
21243 if test $pkg_failed = yes; then
21244         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 printf "%s\n" "no" >&6; }
21246
21247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21248         _pkg_short_errors_supported=yes
21249 else
21250         _pkg_short_errors_supported=no
21251 fi
21252         if test $_pkg_short_errors_supported = yes; then
21253                 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
21254         else
21255                 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
21256         fi
21257         # Put the nasty error message in config.log where it belongs
21258         echo "$LIBCARES_PKG_ERRORS" >&5
21259
21260         have_libcares=no
21261 elif test $pkg_failed = untried; then
21262         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21263 printf "%s\n" "no" >&6; }
21264         have_libcares=no
21265 else
21266         LIBCARES_CFLAGS=$pkg_cv_LIBCARES_CFLAGS
21267         LIBCARES_LIBS=$pkg_cv_LIBCARES_LIBS
21268         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21269 printf "%s\n" "yes" >&6; }
21270         have_libcares=yes
21271 fi
21272   if test "x${have_libcares}" = "xno"; then
21273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBCARES_PKG_ERRORS" >&5
21274 printf "%s\n" "$as_me: $LIBCARES_PKG_ERRORS" >&6;}
21275   fi
21276 fi
21277
21278 if test "x${request_libcares}" = "xyes" &&
21279    test "x${have_libcares}" != "xyes"; then
21280   as_fn_error $? "libcares was requested (--with-libcares) but not found" "$LINENO" 5
21281 fi
21282
21283 # ngtcp2 (for src)
21284 have_libngtcp2=no
21285 if test "x${request_libngtcp2}" != "xno"; then
21286
21287 pkg_failed=no
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 >= 0.0.0" >&5
21289 printf %s "checking for libngtcp2 >= 0.0.0... " >&6; }
21290
21291 if test -n "$LIBNGTCP2_CFLAGS"; then
21292     pkg_cv_LIBNGTCP2_CFLAGS="$LIBNGTCP2_CFLAGS"
21293  elif test -n "$PKG_CONFIG"; then
21294     if test -n "$PKG_CONFIG" && \
21295     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2 >= 0.0.0\""; } >&5
21296   ($PKG_CONFIG --exists --print-errors "libngtcp2 >= 0.0.0") 2>&5
21297   ac_status=$?
21298   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21299   test $ac_status = 0; }; then
21300   pkg_cv_LIBNGTCP2_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2 >= 0.0.0" 2>/dev/null`
21301                       test "x$?" != "x0" && pkg_failed=yes
21302 else
21303   pkg_failed=yes
21304 fi
21305  else
21306     pkg_failed=untried
21307 fi
21308 if test -n "$LIBNGTCP2_LIBS"; then
21309     pkg_cv_LIBNGTCP2_LIBS="$LIBNGTCP2_LIBS"
21310  elif test -n "$PKG_CONFIG"; then
21311     if test -n "$PKG_CONFIG" && \
21312     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2 >= 0.0.0\""; } >&5
21313   ($PKG_CONFIG --exists --print-errors "libngtcp2 >= 0.0.0") 2>&5
21314   ac_status=$?
21315   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21316   test $ac_status = 0; }; then
21317   pkg_cv_LIBNGTCP2_LIBS=`$PKG_CONFIG --libs "libngtcp2 >= 0.0.0" 2>/dev/null`
21318                       test "x$?" != "x0" && pkg_failed=yes
21319 else
21320   pkg_failed=yes
21321 fi
21322  else
21323     pkg_failed=untried
21324 fi
21325
21326
21327
21328 if test $pkg_failed = yes; then
21329         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21330 printf "%s\n" "no" >&6; }
21331
21332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21333         _pkg_short_errors_supported=yes
21334 else
21335         _pkg_short_errors_supported=no
21336 fi
21337         if test $_pkg_short_errors_supported = yes; then
21338                 LIBNGTCP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2 >= 0.0.0" 2>&1`
21339         else
21340                 LIBNGTCP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2 >= 0.0.0" 2>&1`
21341         fi
21342         # Put the nasty error message in config.log where it belongs
21343         echo "$LIBNGTCP2_PKG_ERRORS" >&5
21344
21345         have_libngtcp2=no
21346 elif test $pkg_failed = untried; then
21347         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21349         have_libngtcp2=no
21350 else
21351         LIBNGTCP2_CFLAGS=$pkg_cv_LIBNGTCP2_CFLAGS
21352         LIBNGTCP2_LIBS=$pkg_cv_LIBNGTCP2_LIBS
21353         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21354 printf "%s\n" "yes" >&6; }
21355         have_libngtcp2=yes
21356 fi
21357   if test "x${have_libngtcp2}" = "xno"; then
21358     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_PKG_ERRORS" >&5
21359 printf "%s\n" "$as_me: $LIBNGTCP2_PKG_ERRORS" >&6;}
21360   fi
21361 fi
21362
21363 if test "x${request_libngtcp2}" = "xyes" &&
21364    test "x${have_libngtcp2}" != "xyes"; then
21365   as_fn_error $? "libngtcp2 was requested (--with-libngtcp2) but not found" "$LINENO" 5
21366 fi
21367
21368 # ngtcp2_crypto_openssl (for src)
21369 have_libngtcp2_crypto_openssl=no
21370 if test "x${have_ssl_is_quic}" = "xyes" &&
21371    test "x${request_libngtcp2}" != "xno"; then
21372
21373 pkg_failed=no
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl >= 0.0.0" >&5
21375 printf %s "checking for libngtcp2_crypto_openssl >= 0.0.0... " >&6; }
21376
21377 if test -n "$LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS"; then
21378     pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS="$LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS"
21379  elif test -n "$PKG_CONFIG"; then
21380     if test -n "$PKG_CONFIG" && \
21381     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_openssl >= 0.0.0\""; } >&5
21382   ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_openssl >= 0.0.0") 2>&5
21383   ac_status=$?
21384   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21385   test $ac_status = 0; }; then
21386   pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2_crypto_openssl >= 0.0.0" 2>/dev/null`
21387                       test "x$?" != "x0" && pkg_failed=yes
21388 else
21389   pkg_failed=yes
21390 fi
21391  else
21392     pkg_failed=untried
21393 fi
21394 if test -n "$LIBNGTCP2_CRYPTO_OPENSSL_LIBS"; then
21395     pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS="$LIBNGTCP2_CRYPTO_OPENSSL_LIBS"
21396  elif test -n "$PKG_CONFIG"; then
21397     if test -n "$PKG_CONFIG" && \
21398     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_openssl >= 0.0.0\""; } >&5
21399   ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_openssl >= 0.0.0") 2>&5
21400   ac_status=$?
21401   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21402   test $ac_status = 0; }; then
21403   pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS=`$PKG_CONFIG --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>/dev/null`
21404                       test "x$?" != "x0" && pkg_failed=yes
21405 else
21406   pkg_failed=yes
21407 fi
21408  else
21409     pkg_failed=untried
21410 fi
21411
21412
21413
21414 if test $pkg_failed = yes; then
21415         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 printf "%s\n" "no" >&6; }
21417
21418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21419         _pkg_short_errors_supported=yes
21420 else
21421         _pkg_short_errors_supported=no
21422 fi
21423         if test $_pkg_short_errors_supported = yes; then
21424                 LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>&1`
21425         else
21426                 LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>&1`
21427         fi
21428         # Put the nasty error message in config.log where it belongs
21429         echo "$LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&5
21430
21431         have_libngtcp2_crypto_openssl=no
21432 elif test $pkg_failed = untried; then
21433         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 printf "%s\n" "no" >&6; }
21435         have_libngtcp2_crypto_openssl=no
21436 else
21437         LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS=$pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
21438         LIBNGTCP2_CRYPTO_OPENSSL_LIBS=$pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS
21439         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21440 printf "%s\n" "yes" >&6; }
21441         have_libngtcp2_crypto_openssl=yes
21442 fi
21443   if test "x${have_libngtcp2_crypto_openssl}" = "xno"; then
21444     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&5
21445 printf "%s\n" "$as_me: $LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&6;}
21446   else
21447
21448 printf "%s\n" "#define HAVE_LIBNGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
21449
21450   fi
21451 fi
21452
21453 if test "x${have_ssl_is_quic}" = "xyes" &&
21454    test "x${request_libngtcp2}" = "xyes" &&
21455    test "x${have_libngtcp2_crypto_openssl}" != "xyes"; then
21456   as_fn_error $? "libngtcp2_crypto_openssl was requested (--with-libngtcp2) but not found" "$LINENO" 5
21457 fi
21458
21459 # ngtcp2_crypto_boringssl (for src)
21460 have_libngtcp2_crypto_boringssl=no
21461 if test "x${have_boringssl_quic}" = "xyes" &&
21462    test "x${request_libngtcp2}" != "xno"; then
21463
21464 pkg_failed=no
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl >= 0.0.0" >&5
21466 printf %s "checking for libngtcp2_crypto_boringssl >= 0.0.0... " >&6; }
21467
21468 if test -n "$LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS"; then
21469     pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS="$LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS"
21470  elif test -n "$PKG_CONFIG"; then
21471     if test -n "$PKG_CONFIG" && \
21472     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_boringssl >= 0.0.0\""; } >&5
21473   ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_boringssl >= 0.0.0") 2>&5
21474   ac_status=$?
21475   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21476   test $ac_status = 0; }; then
21477   pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2_crypto_boringssl >= 0.0.0" 2>/dev/null`
21478                       test "x$?" != "x0" && pkg_failed=yes
21479 else
21480   pkg_failed=yes
21481 fi
21482  else
21483     pkg_failed=untried
21484 fi
21485 if test -n "$LIBNGTCP2_CRYPTO_BORINGSSL_LIBS"; then
21486     pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS="$LIBNGTCP2_CRYPTO_BORINGSSL_LIBS"
21487  elif test -n "$PKG_CONFIG"; then
21488     if test -n "$PKG_CONFIG" && \
21489     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_boringssl >= 0.0.0\""; } >&5
21490   ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_boringssl >= 0.0.0") 2>&5
21491   ac_status=$?
21492   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21493   test $ac_status = 0; }; then
21494   pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS=`$PKG_CONFIG --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>/dev/null`
21495                       test "x$?" != "x0" && pkg_failed=yes
21496 else
21497   pkg_failed=yes
21498 fi
21499  else
21500     pkg_failed=untried
21501 fi
21502
21503
21504
21505 if test $pkg_failed = yes; then
21506         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21507 printf "%s\n" "no" >&6; }
21508
21509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21510         _pkg_short_errors_supported=yes
21511 else
21512         _pkg_short_errors_supported=no
21513 fi
21514         if test $_pkg_short_errors_supported = yes; then
21515                 LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>&1`
21516         else
21517                 LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>&1`
21518         fi
21519         # Put the nasty error message in config.log where it belongs
21520         echo "$LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&5
21521
21522         have_libngtcp2_crypto_boringssl=no
21523 elif test $pkg_failed = untried; then
21524         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525 printf "%s\n" "no" >&6; }
21526         have_libngtcp2_crypto_boringssl=no
21527 else
21528         LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS=$pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
21529         LIBNGTCP2_CRYPTO_BORINGSSL_LIBS=$pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
21530         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21531 printf "%s\n" "yes" >&6; }
21532         have_libngtcp2_crypto_boringssl=yes
21533 fi
21534   if test "x${have_libngtcp2_crypto_boringssl}" = "xno"; then
21535     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&5
21536 printf "%s\n" "$as_me: $LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&6;}
21537   else
21538
21539 printf "%s\n" "#define HAVE_LIBNGTCP2_CRYPTO_BORINGSSL 1" >>confdefs.h
21540
21541   fi
21542 fi
21543
21544 if test "x${have_boringssl_quic}" = "xyes" &&
21545    test "x${request_libngtcp2}" = "xyes" &&
21546    test "x${have_libngtcp2_crypto_boringssl}" != "xyes"; then
21547   as_fn_error $? "libngtcp2_crypto_boringssl was requested (--with-libngtcp2) but not found" "$LINENO" 5
21548 fi
21549
21550 # nghttp3 (for src)
21551 have_libnghttp3=no
21552 if test "x${request_libnghttp3}" != "xno"; then
21553
21554 pkg_failed=no
21555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 >= 0.0.0" >&5
21556 printf %s "checking for libnghttp3 >= 0.0.0... " >&6; }
21557
21558 if test -n "$LIBNGHTTP3_CFLAGS"; then
21559     pkg_cv_LIBNGHTTP3_CFLAGS="$LIBNGHTTP3_CFLAGS"
21560  elif test -n "$PKG_CONFIG"; then
21561     if test -n "$PKG_CONFIG" && \
21562     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp3 >= 0.0.0\""; } >&5
21563   ($PKG_CONFIG --exists --print-errors "libnghttp3 >= 0.0.0") 2>&5
21564   ac_status=$?
21565   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21566   test $ac_status = 0; }; then
21567   pkg_cv_LIBNGHTTP3_CFLAGS=`$PKG_CONFIG --cflags "libnghttp3 >= 0.0.0" 2>/dev/null`
21568                       test "x$?" != "x0" && pkg_failed=yes
21569 else
21570   pkg_failed=yes
21571 fi
21572  else
21573     pkg_failed=untried
21574 fi
21575 if test -n "$LIBNGHTTP3_LIBS"; then
21576     pkg_cv_LIBNGHTTP3_LIBS="$LIBNGHTTP3_LIBS"
21577  elif test -n "$PKG_CONFIG"; then
21578     if test -n "$PKG_CONFIG" && \
21579     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp3 >= 0.0.0\""; } >&5
21580   ($PKG_CONFIG --exists --print-errors "libnghttp3 >= 0.0.0") 2>&5
21581   ac_status=$?
21582   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21583   test $ac_status = 0; }; then
21584   pkg_cv_LIBNGHTTP3_LIBS=`$PKG_CONFIG --libs "libnghttp3 >= 0.0.0" 2>/dev/null`
21585                       test "x$?" != "x0" && pkg_failed=yes
21586 else
21587   pkg_failed=yes
21588 fi
21589  else
21590     pkg_failed=untried
21591 fi
21592
21593
21594
21595 if test $pkg_failed = yes; then
21596         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 printf "%s\n" "no" >&6; }
21598
21599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21600         _pkg_short_errors_supported=yes
21601 else
21602         _pkg_short_errors_supported=no
21603 fi
21604         if test $_pkg_short_errors_supported = yes; then
21605                 LIBNGHTTP3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp3 >= 0.0.0" 2>&1`
21606         else
21607                 LIBNGHTTP3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp3 >= 0.0.0" 2>&1`
21608         fi
21609         # Put the nasty error message in config.log where it belongs
21610         echo "$LIBNGHTTP3_PKG_ERRORS" >&5
21611
21612         have_libnghttp3=no
21613 elif test $pkg_failed = untried; then
21614         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21615 printf "%s\n" "no" >&6; }
21616         have_libnghttp3=no
21617 else
21618         LIBNGHTTP3_CFLAGS=$pkg_cv_LIBNGHTTP3_CFLAGS
21619         LIBNGHTTP3_LIBS=$pkg_cv_LIBNGHTTP3_LIBS
21620         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21621 printf "%s\n" "yes" >&6; }
21622         have_libnghttp3=yes
21623 fi
21624   if test "x${have_libnghttp3}" = "xno"; then
21625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGHTTP3_PKG_ERRORS" >&5
21626 printf "%s\n" "$as_me: $LIBNGHTTP3_PKG_ERRORS" >&6;}
21627   fi
21628 fi
21629
21630 if test "x${request_libnghttp3}" = "xyes" &&
21631    test "x${have_libnghttp3}" != "xyes"; then
21632   as_fn_error $? "libnghttp3 was requested (--with-libnghttp3) but not found" "$LINENO" 5
21633 fi
21634
21635 # libbpf (for src)
21636 have_libbpf=no
21637 if test "x${request_libbpf}" != "xno"; then
21638
21639 pkg_failed=no
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbpf >= 0.4.0" >&5
21641 printf %s "checking for libbpf >= 0.4.0... " >&6; }
21642
21643 if test -n "$LIBBPF_CFLAGS"; then
21644     pkg_cv_LIBBPF_CFLAGS="$LIBBPF_CFLAGS"
21645  elif test -n "$PKG_CONFIG"; then
21646     if test -n "$PKG_CONFIG" && \
21647     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.4.0\""; } >&5
21648   ($PKG_CONFIG --exists --print-errors "libbpf >= 0.4.0") 2>&5
21649   ac_status=$?
21650   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651   test $ac_status = 0; }; then
21652   pkg_cv_LIBBPF_CFLAGS=`$PKG_CONFIG --cflags "libbpf >= 0.4.0" 2>/dev/null`
21653                       test "x$?" != "x0" && pkg_failed=yes
21654 else
21655   pkg_failed=yes
21656 fi
21657  else
21658     pkg_failed=untried
21659 fi
21660 if test -n "$LIBBPF_LIBS"; then
21661     pkg_cv_LIBBPF_LIBS="$LIBBPF_LIBS"
21662  elif test -n "$PKG_CONFIG"; then
21663     if test -n "$PKG_CONFIG" && \
21664     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.4.0\""; } >&5
21665   ($PKG_CONFIG --exists --print-errors "libbpf >= 0.4.0") 2>&5
21666   ac_status=$?
21667   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21668   test $ac_status = 0; }; then
21669   pkg_cv_LIBBPF_LIBS=`$PKG_CONFIG --libs "libbpf >= 0.4.0" 2>/dev/null`
21670                       test "x$?" != "x0" && pkg_failed=yes
21671 else
21672   pkg_failed=yes
21673 fi
21674  else
21675     pkg_failed=untried
21676 fi
21677
21678
21679
21680 if test $pkg_failed = yes; then
21681         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21682 printf "%s\n" "no" >&6; }
21683
21684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21685         _pkg_short_errors_supported=yes
21686 else
21687         _pkg_short_errors_supported=no
21688 fi
21689         if test $_pkg_short_errors_supported = yes; then
21690                 LIBBPF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf >= 0.4.0" 2>&1`
21691         else
21692                 LIBBPF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf >= 0.4.0" 2>&1`
21693         fi
21694         # Put the nasty error message in config.log where it belongs
21695         echo "$LIBBPF_PKG_ERRORS" >&5
21696
21697         have_libbpf=no
21698 elif test $pkg_failed = untried; then
21699         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700 printf "%s\n" "no" >&6; }
21701         have_libbpf=no
21702 else
21703         LIBBPF_CFLAGS=$pkg_cv_LIBBPF_CFLAGS
21704         LIBBPF_LIBS=$pkg_cv_LIBBPF_LIBS
21705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21706 printf "%s\n" "yes" >&6; }
21707         have_libbpf=yes
21708 fi
21709   if test "x${have_libbpf}" = "xyes"; then
21710
21711 printf "%s\n" "#define HAVE_LIBBPF 1" >>confdefs.h
21712
21713     if test "x${BPFCFLAGS}" = "x"; then
21714       BPFCFLAGS="-Wall -O2 -g"
21715     fi
21716     # Add the include path for Debian
21717     EXTRABPFCFLAGS="-I/usr/include/$host_cpu-$host_os"
21718
21719
21720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enum bpf_stats_type is defined in linux/bpf.h" >&5
21721 printf %s "checking whether enum bpf_stats_type is defined in linux/bpf.h... " >&6; }
21722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h.  */
21724
21725     #include <linux/bpf.h>
21726
21727 int
21728 main (void)
21729 {
21730
21731     enum bpf_stats_type foo;
21732     (void)foo;
21733
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 if ac_fn_c_try_compile "$LINENO"
21739 then :
21740   have_bpf_stats_type=yes
21741 else $as_nop
21742   have_bpf_stats_type=no
21743 fi
21744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21745
21746     if test "x${have_bpf_stats_type}" = "xyes"; then
21747       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21748 printf "%s\n" "yes" >&6; }
21749
21750 printf "%s\n" "#define HAVE_BPF_STATS_TYPE 1" >>confdefs.h
21751
21752     else
21753       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 printf "%s\n" "no" >&6; }
21755     fi
21756   else
21757     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBBPF_PKG_ERRORS" >&5
21758 printf "%s\n" "$as_me: $LIBBPF_PKG_ERRORS" >&6;}
21759   fi
21760 fi
21761
21762 if test "x${request_libbpf}" = "xyes" &&
21763    test "x${have_libbpf}" != "xyes"; then
21764   as_fn_error $? "libbpf was requested (--with-libbpf) but not found" "$LINENO" 5
21765 fi
21766
21767  if  test "x${have_libbpf}" = "xyes" ; then
21768   HAVE_LIBBPF_TRUE=
21769   HAVE_LIBBPF_FALSE='#'
21770 else
21771   HAVE_LIBBPF_TRUE='#'
21772   HAVE_LIBBPF_FALSE=
21773 fi
21774
21775
21776 # libevent_openssl (for examples)
21777 # 2.0.8 is required because we use evconnlistener_set_error_cb()
21778 have_libevent_openssl=no
21779 if test "x${request_libevent_openssl}" != "xno"; then
21780
21781 pkg_failed=no
21782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent_openssl >= 2.0.8" >&5
21783 printf %s "checking for libevent_openssl >= 2.0.8... " >&6; }
21784
21785 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
21786     pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
21787  elif test -n "$PKG_CONFIG"; then
21788     if test -n "$PKG_CONFIG" && \
21789     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
21790   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
21791   ac_status=$?
21792   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793   test $ac_status = 0; }; then
21794   pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
21795                       test "x$?" != "x0" && pkg_failed=yes
21796 else
21797   pkg_failed=yes
21798 fi
21799  else
21800     pkg_failed=untried
21801 fi
21802 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
21803     pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
21804  elif test -n "$PKG_CONFIG"; then
21805     if test -n "$PKG_CONFIG" && \
21806     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
21807   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
21808   ac_status=$?
21809   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21810   test $ac_status = 0; }; then
21811   pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
21812                       test "x$?" != "x0" && pkg_failed=yes
21813 else
21814   pkg_failed=yes
21815 fi
21816  else
21817     pkg_failed=untried
21818 fi
21819
21820
21821
21822 if test $pkg_failed = yes; then
21823         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 printf "%s\n" "no" >&6; }
21825
21826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21827         _pkg_short_errors_supported=yes
21828 else
21829         _pkg_short_errors_supported=no
21830 fi
21831         if test $_pkg_short_errors_supported = yes; then
21832                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
21833         else
21834                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
21835         fi
21836         # Put the nasty error message in config.log where it belongs
21837         echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
21838
21839         have_libevent_openssl=no
21840 elif test $pkg_failed = untried; then
21841         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 printf "%s\n" "no" >&6; }
21843         have_libevent_openssl=no
21844 else
21845         LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
21846         LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
21847         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21848 printf "%s\n" "yes" >&6; }
21849         have_libevent_openssl=yes
21850 fi
21851   if test "x${have_libevent_openssl}" = "xno"; then
21852     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
21853 printf "%s\n" "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
21854   fi
21855 fi
21856
21857 if test "x${request_libevent_openssl}" = "xyes" &&
21858    test "x${have_libevent_openssl}" != "xyes"; then
21859   as_fn_error $? "libevent_openssl was requested (--with-libevent) but not found" "$LINENO" 5
21860 fi
21861
21862 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
21863 have_jansson=no
21864 if test "x${request_jansson}" != "xno"; then
21865
21866 pkg_failed=no
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson >= 2.5" >&5
21868 printf %s "checking for jansson >= 2.5... " >&6; }
21869
21870 if test -n "$JANSSON_CFLAGS"; then
21871     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
21872  elif test -n "$PKG_CONFIG"; then
21873     if test -n "$PKG_CONFIG" && \
21874     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
21875   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
21876   ac_status=$?
21877   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878   test $ac_status = 0; }; then
21879   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
21880                       test "x$?" != "x0" && pkg_failed=yes
21881 else
21882   pkg_failed=yes
21883 fi
21884  else
21885     pkg_failed=untried
21886 fi
21887 if test -n "$JANSSON_LIBS"; then
21888     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
21889  elif test -n "$PKG_CONFIG"; then
21890     if test -n "$PKG_CONFIG" && \
21891     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
21892   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
21893   ac_status=$?
21894   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21895   test $ac_status = 0; }; then
21896   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
21897                       test "x$?" != "x0" && pkg_failed=yes
21898 else
21899   pkg_failed=yes
21900 fi
21901  else
21902     pkg_failed=untried
21903 fi
21904
21905
21906
21907 if test $pkg_failed = yes; then
21908         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 printf "%s\n" "no" >&6; }
21910
21911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21912         _pkg_short_errors_supported=yes
21913 else
21914         _pkg_short_errors_supported=no
21915 fi
21916         if test $_pkg_short_errors_supported = yes; then
21917                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
21918         else
21919                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
21920         fi
21921         # Put the nasty error message in config.log where it belongs
21922         echo "$JANSSON_PKG_ERRORS" >&5
21923
21924         have_jansson=no
21925 elif test $pkg_failed = untried; then
21926         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21927 printf "%s\n" "no" >&6; }
21928         have_jansson=no
21929 else
21930         JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
21931         JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
21932         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21933 printf "%s\n" "yes" >&6; }
21934         have_jansson=yes
21935 fi
21936   if test "x${have_jansson}" = "xyes"; then
21937
21938 printf "%s\n" "#define HAVE_JANSSON 1" >>confdefs.h
21939
21940   else
21941     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
21942 printf "%s\n" "$as_me: $JANSSON_PKG_ERRORS" >&6;}
21943   fi
21944 fi
21945
21946 if test "x${request_jansson}" = "xyes" &&
21947    test "x${have_jansson}" != "xyes"; then
21948   as_fn_error $? "jansson was requested (--with-jansson) but not found" "$LINENO" 5
21949 fi
21950
21951 #  libsystemd (for src/nghttpx)
21952 have_libsystemd=no
21953 if test "x${request_systemd}" != "xno"; then
21954
21955 pkg_failed=no
21956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5
21957 printf %s "checking for libsystemd >= 209... " >&6; }
21958
21959 if test -n "$SYSTEMD_CFLAGS"; then
21960     pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
21961  elif test -n "$PKG_CONFIG"; then
21962     if test -n "$PKG_CONFIG" && \
21963     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
21964   ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
21965   ac_status=$?
21966   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967   test $ac_status = 0; }; then
21968   pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
21969                       test "x$?" != "x0" && pkg_failed=yes
21970 else
21971   pkg_failed=yes
21972 fi
21973  else
21974     pkg_failed=untried
21975 fi
21976 if test -n "$SYSTEMD_LIBS"; then
21977     pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
21978  elif test -n "$PKG_CONFIG"; then
21979     if test -n "$PKG_CONFIG" && \
21980     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
21981   ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
21982   ac_status=$?
21983   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21984   test $ac_status = 0; }; then
21985   pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
21986                       test "x$?" != "x0" && pkg_failed=yes
21987 else
21988   pkg_failed=yes
21989 fi
21990  else
21991     pkg_failed=untried
21992 fi
21993
21994
21995
21996 if test $pkg_failed = yes; then
21997         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 printf "%s\n" "no" >&6; }
21999
22000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22001         _pkg_short_errors_supported=yes
22002 else
22003         _pkg_short_errors_supported=no
22004 fi
22005         if test $_pkg_short_errors_supported = yes; then
22006                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
22007         else
22008                 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
22009         fi
22010         # Put the nasty error message in config.log where it belongs
22011         echo "$SYSTEMD_PKG_ERRORS" >&5
22012
22013         have_libsystemd=no
22014 elif test $pkg_failed = untried; then
22015         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016 printf "%s\n" "no" >&6; }
22017         have_libsystemd=no
22018 else
22019         SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22020         SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22021         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022 printf "%s\n" "yes" >&6; }
22023         have_libsystemd=yes
22024 fi
22025   if test "x${have_libsystemd}" = "xyes"; then
22026
22027 printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
22028
22029   else
22030     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $SYSTEMD_PKG_ERRORS" >&5
22031 printf "%s\n" "$as_me: $SYSTEMD_PKG_ERRORS" >&6;}
22032   fi
22033 fi
22034
22035 if test "x${request_systemd}" = "xyes" &&
22036    test "x${have_libsystemd}" != "xyes"; then
22037   as_fn_error $? "systemd was requested (--with-systemd) but not found" "$LINENO" 5
22038 fi
22039
22040 # libxml2 (for src/nghttp)
22041 have_libxml2=no
22042 if test "x${request_libxml2}" != "xno"; then
22043
22044 pkg_failed=no
22045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.26" >&5
22046 printf %s "checking for libxml-2.0 >= 2.6.26... " >&6; }
22047
22048 if test -n "$LIBXML2_CFLAGS"; then
22049     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
22050  elif test -n "$PKG_CONFIG"; then
22051     if test -n "$PKG_CONFIG" && \
22052     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
22053   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
22054   ac_status=$?
22055   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22056   test $ac_status = 0; }; then
22057   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.26" 2>/dev/null`
22058                       test "x$?" != "x0" && pkg_failed=yes
22059 else
22060   pkg_failed=yes
22061 fi
22062  else
22063     pkg_failed=untried
22064 fi
22065 if test -n "$LIBXML2_LIBS"; then
22066     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
22067  elif test -n "$PKG_CONFIG"; then
22068     if test -n "$PKG_CONFIG" && \
22069     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
22070   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
22071   ac_status=$?
22072   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22073   test $ac_status = 0; }; then
22074   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.26" 2>/dev/null`
22075                       test "x$?" != "x0" && pkg_failed=yes
22076 else
22077   pkg_failed=yes
22078 fi
22079  else
22080     pkg_failed=untried
22081 fi
22082
22083
22084
22085 if test $pkg_failed = yes; then
22086         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 printf "%s\n" "no" >&6; }
22088
22089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22090         _pkg_short_errors_supported=yes
22091 else
22092         _pkg_short_errors_supported=no
22093 fi
22094         if test $_pkg_short_errors_supported = yes; then
22095                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
22096         else
22097                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
22098         fi
22099         # Put the nasty error message in config.log where it belongs
22100         echo "$LIBXML2_PKG_ERRORS" >&5
22101
22102         have_libxml2=no
22103 elif test $pkg_failed = untried; then
22104         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22105 printf "%s\n" "no" >&6; }
22106         have_libxml2=no
22107 else
22108         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
22109         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
22110         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 printf "%s\n" "yes" >&6; }
22112         have_libxml2=yes
22113 fi
22114   if test "x${have_libxml2}" = "xyes"; then
22115
22116 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
22117
22118   else
22119     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBXML2_PKG_ERRORS" >&5
22120 printf "%s\n" "$as_me: $LIBXML2_PKG_ERRORS" >&6;}
22121   fi
22122 fi
22123
22124 if test "x${request_libxml2}" = "xyes" &&
22125    test "x${have_libxml2}" != "xyes"; then
22126   as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
22127 fi
22128
22129  if  test "x${have_libxml2}" = "xyes" ; then
22130   HAVE_LIBXML2_TRUE=
22131   HAVE_LIBXML2_FALSE='#'
22132 else
22133   HAVE_LIBXML2_TRUE='#'
22134   HAVE_LIBXML2_FALSE=
22135 fi
22136
22137
22138 # jemalloc
22139 have_jemalloc=no
22140 if test "x${request_jemalloc}" != "xno"; then
22141   if test "x${JEMALLOC_LIBS}" = "x" && test "x${JEMALLOC_CFLAGS}" = "x"; then
22142     save_LIBS=$LIBS
22143     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
22144 printf %s "checking for library containing malloc_stats_print... " >&6; }
22145 if test ${ac_cv_search_malloc_stats_print+y}
22146 then :
22147   printf %s "(cached) " >&6
22148 else $as_nop
22149   ac_func_search_save_LIBS=$LIBS
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152
22153 /* Override any GCC internal prototype to avoid an error.
22154    Use char because int might match the return type of a GCC
22155    builtin and then its argument prototype would still apply.  */
22156 char malloc_stats_print ();
22157 int
22158 main (void)
22159 {
22160 return malloc_stats_print ();
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 for ac_lib in '' jemalloc
22166 do
22167   if test -z "$ac_lib"; then
22168     ac_res="none required"
22169   else
22170     ac_res=-l$ac_lib
22171     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
22172   fi
22173   if ac_fn_c_try_link "$LINENO"
22174 then :
22175   ac_cv_search_malloc_stats_print=$ac_res
22176 fi
22177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22178     conftest$ac_exeext
22179   if test ${ac_cv_search_malloc_stats_print+y}
22180 then :
22181   break
22182 fi
22183 done
22184 if test ${ac_cv_search_malloc_stats_print+y}
22185 then :
22186
22187 else $as_nop
22188   ac_cv_search_malloc_stats_print=no
22189 fi
22190 rm conftest.$ac_ext
22191 LIBS=$ac_func_search_save_LIBS
22192 fi
22193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
22194 printf "%s\n" "$ac_cv_search_malloc_stats_print" >&6; }
22195 ac_res=$ac_cv_search_malloc_stats_print
22196 if test "$ac_res" != no
22197 then :
22198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22199   have_jemalloc=yes
22200 fi
22201
22202
22203     if test "x${have_jemalloc}" = "xyes"; then
22204       jemalloc_libs=${ac_cv_search_malloc_stats_print}
22205     else
22206       # On Darwin, malloc_stats_print is je_malloc_stats_print
22207       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
22208 printf %s "checking for library containing je_malloc_stats_print... " >&6; }
22209 if test ${ac_cv_search_je_malloc_stats_print+y}
22210 then :
22211   printf %s "(cached) " >&6
22212 else $as_nop
22213   ac_func_search_save_LIBS=$LIBS
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h.  */
22216
22217 /* Override any GCC internal prototype to avoid an error.
22218    Use char because int might match the return type of a GCC
22219    builtin and then its argument prototype would still apply.  */
22220 char je_malloc_stats_print ();
22221 int
22222 main (void)
22223 {
22224 return je_malloc_stats_print ();
22225   ;
22226   return 0;
22227 }
22228 _ACEOF
22229 for ac_lib in '' jemalloc
22230 do
22231   if test -z "$ac_lib"; then
22232     ac_res="none required"
22233   else
22234     ac_res=-l$ac_lib
22235     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
22236   fi
22237   if ac_fn_c_try_link "$LINENO"
22238 then :
22239   ac_cv_search_je_malloc_stats_print=$ac_res
22240 fi
22241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22242     conftest$ac_exeext
22243   if test ${ac_cv_search_je_malloc_stats_print+y}
22244 then :
22245   break
22246 fi
22247 done
22248 if test ${ac_cv_search_je_malloc_stats_print+y}
22249 then :
22250
22251 else $as_nop
22252   ac_cv_search_je_malloc_stats_print=no
22253 fi
22254 rm conftest.$ac_ext
22255 LIBS=$ac_func_search_save_LIBS
22256 fi
22257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
22258 printf "%s\n" "$ac_cv_search_je_malloc_stats_print" >&6; }
22259 ac_res=$ac_cv_search_je_malloc_stats_print
22260 if test "$ac_res" != no
22261 then :
22262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22263   have_jemalloc=yes
22264 fi
22265
22266
22267       if test "x${have_jemalloc}" = "xyes"; then
22268         jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
22269       fi
22270     fi
22271
22272     LIBS=$save_LIBS
22273
22274     if test "x${have_jemalloc}" = "xyes" &&
22275        test "x${jemalloc_libs}" != "xnone required"; then
22276       JEMALLOC_LIBS=${jemalloc_libs}
22277     fi
22278   else
22279     have_jemalloc=yes
22280   fi
22281 fi
22282
22283 if test "x${request_jemalloc}" = "xyes" &&
22284    test "x${have_jemalloc}" != "xyes"; then
22285   as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
22286 fi
22287
22288 # Check Boost Asio library
22289 have_asio_lib=no
22290
22291 if test "x${request_asio_lib}" = "xyes"; then
22292
22293
22294 # Check whether --with-boost was given.
22295 if test ${with_boost+y}
22296 then :
22297   withval=$with_boost;
22298     if test "$withval" = "no"; then
22299         want_boost="no"
22300     elif test "$withval" = "yes"; then
22301         want_boost="yes"
22302         ac_boost_path=""
22303     else
22304         want_boost="yes"
22305         ac_boost_path="$withval"
22306     fi
22307
22308 else $as_nop
22309   want_boost="yes"
22310 fi
22311
22312
22313
22314
22315 # Check whether --with-boost-libdir was given.
22316 if test ${with_boost_libdir+y}
22317 then :
22318   withval=$with_boost_libdir;
22319         if test -d "$withval"
22320         then
22321                 ac_boost_lib_path="$withval"
22322         else
22323                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
22324         fi
22325
22326 else $as_nop
22327   ac_boost_lib_path=""
22328
22329 fi
22330
22331
22332 if test "x$want_boost" = "xyes"; then
22333     boost_lib_version_req=1.54.0
22334     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
22335     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
22336     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
22337     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22338     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
22339         boost_lib_version_req_sub_minor="0"
22340         fi
22341     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
22342     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
22343 printf %s "checking for boostlib >= $boost_lib_version_req... " >&6; }
22344     succeeded=no
22345
22346                         libsubdirs="lib"
22347     ax_arch=`uname -m`
22348     case $ax_arch in
22349       x86_64)
22350         libsubdirs="lib64 libx32 lib lib64"
22351         ;;
22352       ppc64|s390x|sparc64|aarch64|ppc64le)
22353         libsubdirs="lib64 lib lib64 ppc64le"
22354         ;;
22355     esac
22356
22357
22358     libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
22359
22360     case ${host_cpu} in
22361       i?86)
22362         libsubdirs="lib/i386-${host_os} $libsubdirs"
22363         ;;
22364     esac
22365
22366                 if test "$ac_boost_path" != ""; then
22367         BOOST_CPPFLAGS="-I$ac_boost_path/include"
22368         for ac_boost_path_tmp in $libsubdirs; do
22369                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
22370                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
22371                         break
22372                 fi
22373         done
22374     elif test "$cross_compiling" != yes; then
22375         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
22376             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
22377                 for libsubdir in $libsubdirs ; do
22378                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22379                 done
22380                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
22381                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
22382                 break;
22383             fi
22384         done
22385     fi
22386
22387             if test "$ac_boost_lib_path" != ""; then
22388        BOOST_LDFLAGS="-L$ac_boost_lib_path"
22389     fi
22390
22391     CPPFLAGS_SAVED="$CPPFLAGS"
22392     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22393     export CPPFLAGS
22394
22395     LDFLAGS_SAVED="$LDFLAGS"
22396     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22397     export LDFLAGS
22398
22399
22400     ac_ext=cpp
22401 ac_cpp='$CXXCPP $CPPFLAGS'
22402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22405
22406         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h.  */
22408
22409     #include <boost/version.hpp>
22410
22411 int
22412 main (void)
22413 {
22414
22415     #if BOOST_VERSION >= $WANT_BOOST_VERSION
22416     // Everything is okay
22417     #else
22418     #  error Boost version is too old
22419     #endif
22420
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 if ac_fn_cxx_try_compile "$LINENO"
22426 then :
22427
22428         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22429 printf "%s\n" "yes" >&6; }
22430     succeeded=yes
22431     found_system=yes
22432
22433 fi
22434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22435     ac_ext=c
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22440
22441
22442
22443
22444             if test "x$succeeded" != "xyes"; then
22445         _version=0
22446         if test "$ac_boost_path" != ""; then
22447             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
22448                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
22449                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
22450                     V_CHECK=`expr $_version_tmp \> $_version`
22451                     if test "$V_CHECK" = "1" ; then
22452                         _version=$_version_tmp
22453                     fi
22454                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
22455                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
22456                 done
22457             fi
22458         else
22459             if test "$cross_compiling" != yes; then
22460                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
22461                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
22462                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
22463                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
22464                             V_CHECK=`expr $_version_tmp \> $_version`
22465                             if test "$V_CHECK" = "1" ; then
22466                                 _version=$_version_tmp
22467                                 best_path=$ac_boost_path
22468                             fi
22469                         done
22470                     fi
22471                 done
22472
22473                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
22474                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
22475                 if test "$ac_boost_lib_path" = ""; then
22476                     for libsubdir in $libsubdirs ; do
22477                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22478                     done
22479                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
22480                 fi
22481             fi
22482
22483             if test "x$BOOST_ROOT" != "x"; then
22484                 for libsubdir in $libsubdirs ; do
22485                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22486                 done
22487                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
22488                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
22489                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
22490                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
22491                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
22492                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
22493                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
22494 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
22495                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
22496                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
22497                     fi
22498                 fi
22499             fi
22500         fi
22501
22502         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22503         export CPPFLAGS
22504         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22505         export LDFLAGS
22506
22507         ac_ext=cpp
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22512
22513             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h.  */
22515
22516         #include <boost/version.hpp>
22517
22518 int
22519 main (void)
22520 {
22521
22522         #if BOOST_VERSION >= $WANT_BOOST_VERSION
22523         // Everything is okay
22524         #else
22525         #  error Boost version is too old
22526         #endif
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 if ac_fn_cxx_try_compile "$LINENO"
22533 then :
22534
22535             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22536 printf "%s\n" "yes" >&6; }
22537         succeeded=yes
22538         found_system=yes
22539
22540 fi
22541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22542         ac_ext=c
22543 ac_cpp='$CPP $CPPFLAGS'
22544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22547
22548     fi
22549
22550     if test "$succeeded" != "yes" ; then
22551         if test "$_version" = "0" ; then
22552             { printf "%s\n" "$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
22553 printf "%s\n" "$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;}
22554         else
22555             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
22556 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
22557         fi
22558         # execute ACTION-IF-NOT-FOUND (if present):
22559         have_boost_base=no
22560     else
22561
22562
22563
22564 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
22565
22566         # execute ACTION-IF-FOUND (if present):
22567         have_boost_base=yes
22568     fi
22569
22570     CPPFLAGS="$CPPFLAGS_SAVED"
22571     LDFLAGS="$LDFLAGS_SAVED"
22572 fi
22573
22574
22575
22576   if test "x${have_boost_base}" = "xyes"; then
22577
22578
22579 # Check whether --with-boost-asio was given.
22580 if test ${with_boost_asio+y}
22581 then :
22582   withval=$with_boost_asio;
22583         if test "$withval" = "no"; then
22584                         want_boost="no"
22585         elif test "$withval" = "yes"; then
22586             want_boost="yes"
22587             ax_boost_user_asio_lib=""
22588         else
22589                     want_boost="yes"
22590                 ax_boost_user_asio_lib="$withval"
22591                 fi
22592
22593 else $as_nop
22594   want_boost="yes"
22595
22596 fi
22597
22598
22599         if test "x$want_boost" = "xyes"; then
22600
22601                 CPPFLAGS_SAVED="$CPPFLAGS"
22602                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22603                 export CPPFLAGS
22604
22605                 LDFLAGS_SAVED="$LDFLAGS"
22606                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22607                 export LDFLAGS
22608
22609         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
22610 printf %s "checking whether the Boost::ASIO library is available... " >&6; }
22611 if test ${ax_cv_boost_asio+y}
22612 then :
22613   printf %s "(cached) " >&6
22614 else $as_nop
22615   ac_ext=cpp
22616 ac_cpp='$CXXCPP $CPPFLAGS'
22617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22620
22621                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22622 /* end confdefs.h.  */
22623  #include <boost/asio.hpp>
22624
22625 int
22626 main (void)
22627 {
22628
22629
22630                                     boost::asio::io_service io;
22631                                     boost::system::error_code timer_result;
22632                                     boost::asio::deadline_timer t(io);
22633                                     t.cancel();
22634                                     io.run_one();
22635                                                                         return 0;
22636
22637   ;
22638   return 0;
22639 }
22640 _ACEOF
22641 if ac_fn_cxx_try_compile "$LINENO"
22642 then :
22643   ax_cv_boost_asio=yes
22644 else $as_nop
22645   ax_cv_boost_asio=no
22646 fi
22647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22648          ac_ext=c
22649 ac_cpp='$CPP $CPPFLAGS'
22650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22653
22654
22655 fi
22656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
22657 printf "%s\n" "$ax_cv_boost_asio" >&6; }
22658                 if test "x$ax_cv_boost_asio" = "xyes"; then
22659
22660 printf "%s\n" "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
22661
22662                         BN=boost_system
22663                         BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
22664             if test "x$ax_boost_user_asio_lib" = "x"; then
22665                                 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
22666                                     as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_main" | $as_tr_sh`
22667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
22668 printf %s "checking for main in -l$ax_lib... " >&6; }
22669 if eval test \${$as_ac_Lib+y}
22670 then :
22671   printf %s "(cached) " >&6
22672 else $as_nop
22673   ac_check_lib_save_LIBS=$LIBS
22674 LIBS="-l$ax_lib  $LIBS"
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h.  */
22677
22678
22679 int
22680 main (void)
22681 {
22682 return main ();
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 if ac_fn_c_try_link "$LINENO"
22688 then :
22689   eval "$as_ac_Lib=yes"
22690 else $as_nop
22691   eval "$as_ac_Lib=no"
22692 fi
22693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22694     conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22696 fi
22697 eval ac_res=\$$as_ac_Lib
22698                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22699 printf "%s\n" "$ac_res" >&6; }
22700 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22701 then :
22702   BOOST_ASIO_LIB="-l$ax_lib"  link_thread="yes" break
22703 else $as_nop
22704   link_thread="no"
22705 fi
22706
22707                                 done
22708             else
22709                for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
22710                                       as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_main" | $as_tr_sh`
22711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
22712 printf %s "checking for main in -l$ax_lib... " >&6; }
22713 if eval test \${$as_ac_Lib+y}
22714 then :
22715   printf %s "(cached) " >&6
22716 else $as_nop
22717   ac_check_lib_save_LIBS=$LIBS
22718 LIBS="-l$ax_lib  $LIBS"
22719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22720 /* end confdefs.h.  */
22721
22722
22723 int
22724 main (void)
22725 {
22726 return main ();
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 if ac_fn_c_try_link "$LINENO"
22732 then :
22733   eval "$as_ac_Lib=yes"
22734 else $as_nop
22735   eval "$as_ac_Lib=no"
22736 fi
22737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22738     conftest$ac_exeext conftest.$ac_ext
22739 LIBS=$ac_check_lib_save_LIBS
22740 fi
22741 eval ac_res=\$$as_ac_Lib
22742                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22743 printf "%s\n" "$ac_res" >&6; }
22744 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22745 then :
22746   BOOST_ASIO_LIB="-l$ax_lib"  link_asio="yes" break
22747 else $as_nop
22748   link_asio="no"
22749 fi
22750
22751                   done
22752
22753             fi
22754             if test "x$ax_lib" = "x"; then
22755                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
22756             fi
22757                         if test "x$link_asio" = "xno"; then
22758                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
22759                         fi
22760                 fi
22761
22762                 CPPFLAGS="$CPPFLAGS_SAVED"
22763         LDFLAGS="$LDFLAGS_SAVED"
22764         fi
22765
22766
22767
22768 # Check whether --with-boost-system was given.
22769 if test ${with_boost_system+y}
22770 then :
22771   withval=$with_boost_system;
22772         if test "$withval" = "no"; then
22773                         want_boost="no"
22774         elif test "$withval" = "yes"; then
22775             want_boost="yes"
22776             ax_boost_user_system_lib=""
22777         else
22778                     want_boost="yes"
22779                 ax_boost_user_system_lib="$withval"
22780                 fi
22781
22782 else $as_nop
22783   want_boost="yes"
22784
22785 fi
22786
22787
22788         if test "x$want_boost" = "xyes"; then
22789
22790
22791                 CPPFLAGS_SAVED="$CPPFLAGS"
22792                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22793                 export CPPFLAGS
22794
22795                 LDFLAGS_SAVED="$LDFLAGS"
22796                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22797                 export LDFLAGS
22798
22799         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
22800 printf %s "checking whether the Boost::System library is available... " >&6; }
22801 if test ${ax_cv_boost_system+y}
22802 then :
22803   printf %s "(cached) " >&6
22804 else $as_nop
22805   ac_ext=cpp
22806 ac_cpp='$CXXCPP $CPPFLAGS'
22807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22810
22811                          CXXFLAGS_SAVE=$CXXFLAGS
22812
22813                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22814 /* end confdefs.h.  */
22815 #include <boost/system/error_code.hpp>
22816 int
22817 main (void)
22818 {
22819 boost::system::system_category
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 if ac_fn_cxx_try_compile "$LINENO"
22825 then :
22826   ax_cv_boost_system=yes
22827 else $as_nop
22828   ax_cv_boost_system=no
22829 fi
22830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22831                          CXXFLAGS=$CXXFLAGS_SAVE
22832              ac_ext=c
22833 ac_cpp='$CPP $CPPFLAGS'
22834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22837
22838
22839 fi
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
22841 printf "%s\n" "$ax_cv_boost_system" >&6; }
22842                 if test "x$ax_cv_boost_system" = "xyes"; then
22843
22844
22845
22846 printf "%s\n" "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
22847
22848             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
22849
22850                         LDFLAGS_SAVE=$LDFLAGS
22851             if test "x$ax_boost_user_system_lib" = "x"; then
22852                 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
22853                      ax_lib=${libextension}
22854                                     as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22856 printf %s "checking for exit in -l$ax_lib... " >&6; }
22857 if eval test \${$as_ac_Lib+y}
22858 then :
22859   printf %s "(cached) " >&6
22860 else $as_nop
22861   ac_check_lib_save_LIBS=$LIBS
22862 LIBS="-l$ax_lib  $LIBS"
22863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864 /* end confdefs.h.  */
22865
22866 /* Override any GCC internal prototype to avoid an error.
22867    Use char because int might match the return type of a GCC
22868    builtin and then its argument prototype would still apply.  */
22869 char exit ();
22870 int
22871 main (void)
22872 {
22873 return exit ();
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 if ac_fn_c_try_link "$LINENO"
22879 then :
22880   eval "$as_ac_Lib=yes"
22881 else $as_nop
22882   eval "$as_ac_Lib=no"
22883 fi
22884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22885     conftest$ac_exeext conftest.$ac_ext
22886 LIBS=$ac_check_lib_save_LIBS
22887 fi
22888 eval ac_res=\$$as_ac_Lib
22889                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22890 printf "%s\n" "$ac_res" >&6; }
22891 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22892 then :
22893   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
22894 else $as_nop
22895   link_system="no"
22896 fi
22897
22898                                 done
22899                 if test "x$link_system" != "xyes"; then
22900                 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
22901                      ax_lib=${libextension}
22902                                     as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22904 printf %s "checking for exit in -l$ax_lib... " >&6; }
22905 if eval test \${$as_ac_Lib+y}
22906 then :
22907   printf %s "(cached) " >&6
22908 else $as_nop
22909   ac_check_lib_save_LIBS=$LIBS
22910 LIBS="-l$ax_lib  $LIBS"
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h.  */
22913
22914 /* Override any GCC internal prototype to avoid an error.
22915    Use char because int might match the return type of a GCC
22916    builtin and then its argument prototype would still apply.  */
22917 char exit ();
22918 int
22919 main (void)
22920 {
22921 return exit ();
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 if ac_fn_c_try_link "$LINENO"
22927 then :
22928   eval "$as_ac_Lib=yes"
22929 else $as_nop
22930   eval "$as_ac_Lib=no"
22931 fi
22932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22933     conftest$ac_exeext conftest.$ac_ext
22934 LIBS=$ac_check_lib_save_LIBS
22935 fi
22936 eval ac_res=\$$as_ac_Lib
22937                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22938 printf "%s\n" "$ac_res" >&6; }
22939 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22940 then :
22941   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
22942 else $as_nop
22943   link_system="no"
22944 fi
22945
22946                                 done
22947                 fi
22948
22949             else
22950                for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
22951                                       as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22953 printf %s "checking for exit in -l$ax_lib... " >&6; }
22954 if eval test \${$as_ac_Lib+y}
22955 then :
22956   printf %s "(cached) " >&6
22957 else $as_nop
22958   ac_check_lib_save_LIBS=$LIBS
22959 LIBS="-l$ax_lib  $LIBS"
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h.  */
22962
22963 /* Override any GCC internal prototype to avoid an error.
22964    Use char because int might match the return type of a GCC
22965    builtin and then its argument prototype would still apply.  */
22966 char exit ();
22967 int
22968 main (void)
22969 {
22970 return exit ();
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 if ac_fn_c_try_link "$LINENO"
22976 then :
22977   eval "$as_ac_Lib=yes"
22978 else $as_nop
22979   eval "$as_ac_Lib=no"
22980 fi
22981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22982     conftest$ac_exeext conftest.$ac_ext
22983 LIBS=$ac_check_lib_save_LIBS
22984 fi
22985 eval ac_res=\$$as_ac_Lib
22986                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22987 printf "%s\n" "$ac_res" >&6; }
22988 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22989 then :
22990   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
22991 else $as_nop
22992   link_system="no"
22993 fi
22994
22995                   done
22996
22997             fi
22998             if test "x$ax_lib" = "x"; then
22999                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
23000             fi
23001                         if test "x$link_system" = "xno"; then
23002                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
23003                         fi
23004                 fi
23005
23006                 CPPFLAGS="$CPPFLAGS_SAVED"
23007         LDFLAGS="$LDFLAGS_SAVED"
23008         fi
23009
23010
23011
23012 # Check whether --with-boost-thread was given.
23013 if test ${with_boost_thread+y}
23014 then :
23015   withval=$with_boost_thread;
23016         if test "$withval" = "no"; then
23017                         want_boost="no"
23018         elif test "$withval" = "yes"; then
23019             want_boost="yes"
23020             ax_boost_user_thread_lib=""
23021         else
23022                     want_boost="yes"
23023                 ax_boost_user_thread_lib="$withval"
23024                 fi
23025
23026 else $as_nop
23027   want_boost="yes"
23028
23029 fi
23030
23031
23032         if test "x$want_boost" = "xyes"; then
23033
23034
23035                 CPPFLAGS_SAVED="$CPPFLAGS"
23036                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
23037                 export CPPFLAGS
23038
23039                 LDFLAGS_SAVED="$LDFLAGS"
23040                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
23041                 export LDFLAGS
23042
23043         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
23044 printf %s "checking whether the Boost::Thread library is available... " >&6; }
23045 if test ${ax_cv_boost_thread+y}
23046 then :
23047   printf %s "(cached) " >&6
23048 else $as_nop
23049   ac_ext=cpp
23050 ac_cpp='$CXXCPP $CPPFLAGS'
23051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23054
23055                          CXXFLAGS_SAVE=$CXXFLAGS
23056
23057                          if test "x$host_os" = "xsolaris" ; then
23058                                  CXXFLAGS="-pthreads $CXXFLAGS"
23059                          elif test "x$host_os" = "xmingw32" ; then
23060                                  CXXFLAGS="-mthreads $CXXFLAGS"
23061                          else
23062                                 CXXFLAGS="-pthread $CXXFLAGS"
23063                          fi
23064                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h.  */
23066 #include <boost/thread/thread.hpp>
23067 int
23068 main (void)
23069 {
23070 boost::thread_group thrds;
23071                                    return 0;
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 if ac_fn_cxx_try_compile "$LINENO"
23077 then :
23078   ax_cv_boost_thread=yes
23079 else $as_nop
23080   ax_cv_boost_thread=no
23081 fi
23082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23083                          CXXFLAGS=$CXXFLAGS_SAVE
23084              ac_ext=c
23085 ac_cpp='$CPP $CPPFLAGS'
23086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23089
23090
23091 fi
23092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
23093 printf "%s\n" "$ax_cv_boost_thread" >&6; }
23094                 if test "x$ax_cv_boost_thread" = "xyes"; then
23095            if test "x$host_os" = "xsolaris" ; then
23096                           BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
23097                    elif test "x$host_os" = "xmingw32" ; then
23098                           BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
23099                    else
23100                           BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
23101                    fi
23102
23103
23104
23105
23106 printf "%s\n" "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
23107
23108             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
23109
23110                         LDFLAGS_SAVE=$LDFLAGS
23111                         case "x$host_os" in
23112                           *bsd* )
23113                                LDFLAGS="-pthread $LDFLAGS"
23114                           break;
23115                           ;;
23116                         esac
23117             if test "x$ax_boost_user_thread_lib" = "x"; then
23118                 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
23119                      ax_lib=${libextension}
23120                                     as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23122 printf %s "checking for exit in -l$ax_lib... " >&6; }
23123 if eval test \${$as_ac_Lib+y}
23124 then :
23125   printf %s "(cached) " >&6
23126 else $as_nop
23127   ac_check_lib_save_LIBS=$LIBS
23128 LIBS="-l$ax_lib  $LIBS"
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h.  */
23131
23132 /* Override any GCC internal prototype to avoid an error.
23133    Use char because int might match the return type of a GCC
23134    builtin and then its argument prototype would still apply.  */
23135 char exit ();
23136 int
23137 main (void)
23138 {
23139 return exit ();
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 if ac_fn_c_try_link "$LINENO"
23145 then :
23146   eval "$as_ac_Lib=yes"
23147 else $as_nop
23148   eval "$as_ac_Lib=no"
23149 fi
23150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23151     conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23153 fi
23154 eval ac_res=\$$as_ac_Lib
23155                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23156 printf "%s\n" "$ac_res" >&6; }
23157 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23158 then :
23159   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
23160 else $as_nop
23161   link_thread="no"
23162 fi
23163
23164                                 done
23165                 if test "x$link_thread" != "xyes"; then
23166                 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
23167                      ax_lib=${libextension}
23168                                     as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23170 printf %s "checking for exit in -l$ax_lib... " >&6; }
23171 if eval test \${$as_ac_Lib+y}
23172 then :
23173   printf %s "(cached) " >&6
23174 else $as_nop
23175   ac_check_lib_save_LIBS=$LIBS
23176 LIBS="-l$ax_lib  $LIBS"
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h.  */
23179
23180 /* Override any GCC internal prototype to avoid an error.
23181    Use char because int might match the return type of a GCC
23182    builtin and then its argument prototype would still apply.  */
23183 char exit ();
23184 int
23185 main (void)
23186 {
23187 return exit ();
23188   ;
23189   return 0;
23190 }
23191 _ACEOF
23192 if ac_fn_c_try_link "$LINENO"
23193 then :
23194   eval "$as_ac_Lib=yes"
23195 else $as_nop
23196   eval "$as_ac_Lib=no"
23197 fi
23198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23199     conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23201 fi
23202 eval ac_res=\$$as_ac_Lib
23203                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23204 printf "%s\n" "$ac_res" >&6; }
23205 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23206 then :
23207   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
23208 else $as_nop
23209   link_thread="no"
23210 fi
23211
23212                                 done
23213                 fi
23214
23215             else
23216                for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
23217                                       as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23219 printf %s "checking for exit in -l$ax_lib... " >&6; }
23220 if eval test \${$as_ac_Lib+y}
23221 then :
23222   printf %s "(cached) " >&6
23223 else $as_nop
23224   ac_check_lib_save_LIBS=$LIBS
23225 LIBS="-l$ax_lib  $LIBS"
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h.  */
23228
23229 /* Override any GCC internal prototype to avoid an error.
23230    Use char because int might match the return type of a GCC
23231    builtin and then its argument prototype would still apply.  */
23232 char exit ();
23233 int
23234 main (void)
23235 {
23236 return exit ();
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 if ac_fn_c_try_link "$LINENO"
23242 then :
23243   eval "$as_ac_Lib=yes"
23244 else $as_nop
23245   eval "$as_ac_Lib=no"
23246 fi
23247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23248     conftest$ac_exeext conftest.$ac_ext
23249 LIBS=$ac_check_lib_save_LIBS
23250 fi
23251 eval ac_res=\$$as_ac_Lib
23252                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23253 printf "%s\n" "$ac_res" >&6; }
23254 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23255 then :
23256   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
23257 else $as_nop
23258   link_thread="no"
23259 fi
23260
23261                   done
23262
23263             fi
23264             if test "x$ax_lib" = "x"; then
23265                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
23266             fi
23267                         if test "x$link_thread" = "xno"; then
23268                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
23269                         else
23270                            case "x$host_os" in
23271                               *bsd* )
23272                                 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
23273                               break;
23274                               ;;
23275                            esac
23276
23277                         fi
23278                 fi
23279
23280                 CPPFLAGS="$CPPFLAGS_SAVED"
23281         LDFLAGS="$LDFLAGS_SAVED"
23282         fi
23283
23284
23285     if test "x${ax_cv_boost_asio}" = "xyes" &&
23286        test "x${ax_cv_boost_system}" = "xyes" &&
23287        test "x${ax_cv_boost_thread}" = "xyes"; then
23288       have_asio_lib=yes
23289     fi
23290   fi
23291 fi
23292
23293 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL,
23294 # libev, and libc-ares.
23295 enable_app=no
23296 if test "x${request_app}" != "xno" &&
23297    test "x${have_zlib}" = "xyes" &&
23298    test "x${have_openssl}" = "xyes" &&
23299    test "x${have_libev}" = "xyes" &&
23300    test "x${have_libcares}" = "xyes"; then
23301   enable_app=yes
23302 fi
23303
23304 if test "x${request_app}" = "xyes" &&
23305    test "x${enable_app}" != "xyes"; then
23306   as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
23307 fi
23308
23309  if  test "x${enable_app}" = "xyes" ; then
23310   ENABLE_APP_TRUE=
23311   ENABLE_APP_FALSE='#'
23312 else
23313   ENABLE_APP_TRUE='#'
23314   ENABLE_APP_FALSE=
23315 fi
23316
23317
23318 # Check HTTP/3 support
23319 enable_http3=no
23320 if test "x${request_http3}" != "xno" &&
23321    (test "x${have_ssl_is_quic}" = "xyes" ||
23322     test "x${have_boringssl_quic}" = "xyes") &&
23323    test "x${have_libngtcp2}" = "xyes" &&
23324    (test "x${have_libngtcp2_crypto_openssl}" = "xyes" ||
23325     test "x${have_libngtcp2_crypto_boringssl}" = "xyes") &&
23326    test "x${have_libnghttp3}" = "xyes"; then
23327   enable_http3=yes
23328
23329 printf "%s\n" "#define ENABLE_HTTP3 1" >>confdefs.h
23330
23331 fi
23332
23333 if test "x${request_http3}" = "xyes" &&
23334    test "x${enable_http3}" != "xyes"; then
23335   as_fn_error $? "HTTP/3 was requested (--enable-http3) but dependencies are not met." "$LINENO" 5
23336 fi
23337
23338  if  test "x${enable_http3}" = "xyes" ; then
23339   ENABLE_HTTP3_TRUE=
23340   ENABLE_HTTP3_FALSE='#'
23341 else
23342   ENABLE_HTTP3_TRUE='#'
23343   ENABLE_HTTP3_FALSE=
23344 fi
23345
23346
23347 enable_hpack_tools=no
23348 # HPACK tools requires jansson
23349 if test "x${request_hpack_tools}" != "xno" &&
23350    test "x${have_jansson}" = "xyes"; then
23351   enable_hpack_tools=yes
23352 fi
23353
23354 if test "x${request_hpack_tools}" = "xyes" &&
23355    test "x${enable_hpack_tools}" != "xyes"; then
23356   as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
23357 fi
23358
23359  if  test "x${enable_hpack_tools}" = "xyes" ; then
23360   ENABLE_HPACK_TOOLS_TRUE=
23361   ENABLE_HPACK_TOOLS_FALSE='#'
23362 else
23363   ENABLE_HPACK_TOOLS_TRUE='#'
23364   ENABLE_HPACK_TOOLS_FALSE=
23365 fi
23366
23367
23368 # C++ library libnghttp2_asio
23369
23370 enable_asio_lib=no
23371 if test "x${request_asio_lib}" != "xno" &&
23372    test "x${have_asio_lib}" = "xyes"; then
23373   enable_asio_lib=yes
23374 fi
23375
23376  if  test "x${enable_asio_lib}" = "xyes" ; then
23377   ENABLE_ASIO_LIB_TRUE=
23378   ENABLE_ASIO_LIB_FALSE='#'
23379 else
23380   ENABLE_ASIO_LIB_TRUE='#'
23381   ENABLE_ASIO_LIB_FALSE=
23382 fi
23383
23384
23385 # The example programs depend on OpenSSL and libevent_openssl
23386 enable_examples=no
23387 if test "x${request_examples}" != "xno" &&
23388    test "x${have_openssl}" = "xyes" &&
23389    test "x${have_libevent_openssl}" = "xyes"; then
23390   enable_examples=yes
23391 fi
23392
23393 if test "x${request_examples}" = "xyes" &&
23394    test "x${enable_examples}" != "xyes"; then
23395   as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
23396 fi
23397
23398  if  test "x${enable_examples}" = "xyes" ; then
23399   ENABLE_EXAMPLES_TRUE=
23400   ENABLE_EXAMPLES_FALSE='#'
23401 else
23402   ENABLE_EXAMPLES_TRUE='#'
23403   ENABLE_EXAMPLES_FALSE=
23404 fi
23405
23406
23407 # third-party only be built when needed
23408
23409 enable_third_party=no
23410 have_mruby=no
23411 have_neverbleed=no
23412 if test "x${enable_examples}" = "xyes" ||
23413    test "x${enable_app}" = "xyes" ||
23414    test "x${enable_hpack_tools}" = "xyes" ||
23415    test "x${enable_asio_lib}" = "xyes"; then
23416   enable_third_party=yes
23417
23418   # mruby (for src/nghttpx)
23419   if test "x${request_mruby}" = "xyes"; then
23420     # We are going to build mruby
23421     have_mruby=yes
23422
23423 printf "%s\n" "#define HAVE_MRUBY 1" >>confdefs.h
23424
23425     LIBMRUBY_LIBS="-lmruby -lm"
23426     LIBMRUBY_CFLAGS=
23427
23428
23429   fi
23430
23431   # neverbleed (for src/nghttpx)
23432   if test "x${request_neverbleed}" = "xyes"; then
23433     have_neverbleed=yes
23434
23435 printf "%s\n" "#define HAVE_NEVERBLEED 1" >>confdefs.h
23436
23437   fi
23438 fi
23439
23440  if  test "x${enable_third_party}" = "xyes" ; then
23441   ENABLE_THIRD_PARTY_TRUE=
23442   ENABLE_THIRD_PARTY_FALSE='#'
23443 else
23444   ENABLE_THIRD_PARTY_TRUE='#'
23445   ENABLE_THIRD_PARTY_FALSE=
23446 fi
23447
23448  if test "x${have_mruby}" = "xyes"; then
23449   HAVE_MRUBY_TRUE=
23450   HAVE_MRUBY_FALSE='#'
23451 else
23452   HAVE_MRUBY_TRUE='#'
23453   HAVE_MRUBY_FALSE=
23454 fi
23455
23456  if test "x${have_neverbleed}" = "xyes"; then
23457   HAVE_NEVERBLEED_TRUE=
23458   HAVE_NEVERBLEED_FALSE='#'
23459 else
23460   HAVE_NEVERBLEED_TRUE='#'
23461   HAVE_NEVERBLEED_FALSE=
23462 fi
23463
23464
23465 # Python bindings
23466 enable_python_bindings=no
23467 if test "x${request_python_bindings}" != "xno" &&
23468    test "x${CYTHON}" != "x" &&
23469    test "x${PYTHON}" != "x:" &&
23470    test "x${PYTHON_VERSION}" != "x"; then
23471   enable_python_bindings=yes
23472 fi
23473
23474 if test "x${request_python_bindings}" = "xyes" &&
23475    test "x${enable_python_bindings}" != "xyes"; then
23476   as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
23477 fi
23478
23479  if test "x${enable_python_bindings}" = "xyes"; then
23480   ENABLE_PYTHON_BINDINGS_TRUE=
23481   ENABLE_PYTHON_BINDINGS_FALSE='#'
23482 else
23483   ENABLE_PYTHON_BINDINGS_TRUE='#'
23484   ENABLE_PYTHON_BINDINGS_FALSE=
23485 fi
23486
23487
23488 # Produce cython conditional, so that we can distribute generated C
23489 # source
23490  if test "x${CYTHON}" != "x"; then
23491   HAVE_CYTHON_TRUE=
23492   HAVE_CYTHON_FALSE='#'
23493 else
23494   HAVE_CYTHON_TRUE='#'
23495   HAVE_CYTHON_FALSE=
23496 fi
23497
23498
23499 # failmalloc tests
23500 enable_failmalloc=no
23501 if test "x${request_failmalloc}" = "xyes"; then
23502   enable_failmalloc=yes
23503 fi
23504
23505  if  test "x${enable_failmalloc}" = "xyes" ; then
23506   ENABLE_FAILMALLOC_TRUE=
23507   ENABLE_FAILMALLOC_FALSE='#'
23508 else
23509   ENABLE_FAILMALLOC_TRUE='#'
23510   ENABLE_FAILMALLOC_FALSE=
23511 fi
23512
23513
23514 # Checks for header files.
23515
23516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
23517 printf %s "checking whether to enable assertions... " >&6; }
23518   # Check whether --enable-assert was given.
23519 if test ${enable_assert+y}
23520 then :
23521   enableval=$enable_assert; ac_enable_assert=$enableval
23522      if       test "x$enableval" = xno
23523 then :
23524
23525 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
23526
23527 elif test "x$enableval" != xyes
23528 then :
23529   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
23530 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
23531         ac_enable_assert=yes
23532 fi
23533 else $as_nop
23534   ac_enable_assert=yes
23535 fi
23536
23537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
23538 printf "%s\n" "$ac_enable_assert" >&6; }
23539
23540 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23541 if test "x$ac_cv_header_arpa_inet_h" = xyes
23542 then :
23543   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
23544
23545 fi
23546 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23547 if test "x$ac_cv_header_fcntl_h" = xyes
23548 then :
23549   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
23550
23551 fi
23552 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23553 if test "x$ac_cv_header_inttypes_h" = xyes
23554 then :
23555   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
23556
23557 fi
23558 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
23559 if test "x$ac_cv_header_limits_h" = xyes
23560 then :
23561   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
23562
23563 fi
23564 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
23565 if test "x$ac_cv_header_netdb_h" = xyes
23566 then :
23567   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
23568
23569 fi
23570 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23571 if test "x$ac_cv_header_netinet_in_h" = xyes
23572 then :
23573   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
23574
23575 fi
23576 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
23577 if test "x$ac_cv_header_pwd_h" = xyes
23578 then :
23579   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
23580
23581 fi
23582 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
23583 if test "x$ac_cv_header_stddef_h" = xyes
23584 then :
23585   printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
23586
23587 fi
23588 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23589 if test "x$ac_cv_header_stdint_h" = xyes
23590 then :
23591   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
23592
23593 fi
23594 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23595 if test "x$ac_cv_header_stdlib_h" = xyes
23596 then :
23597   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23598
23599 fi
23600 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23601 if test "x$ac_cv_header_string_h" = xyes
23602 then :
23603   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23604
23605 fi
23606 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23607 if test "x$ac_cv_header_sys_socket_h" = xyes
23608 then :
23609   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
23610
23611 fi
23612 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23613 if test "x$ac_cv_header_sys_time_h" = xyes
23614 then :
23615   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23616
23617 fi
23618 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
23619 if test "x$ac_cv_header_syslog_h" = xyes
23620 then :
23621   printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
23622
23623 fi
23624 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
23625 if test "x$ac_cv_header_time_h" = xyes
23626 then :
23627   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
23628
23629 fi
23630 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23631 if test "x$ac_cv_header_unistd_h" = xyes
23632 then :
23633   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23634
23635 fi
23636
23637
23638 # Checks for typedefs, structures, and compiler characteristics.
23639 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23640 if test "x$ac_cv_type_size_t" = xyes
23641 then :
23642
23643 else $as_nop
23644
23645 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
23646
23647 fi
23648
23649 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23650 if test "x$ac_cv_type_ssize_t" = xyes
23651 then :
23652
23653 else $as_nop
23654
23655 printf "%s\n" "#define ssize_t int" >>confdefs.h
23656
23657 fi
23658
23659 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23660 case $ac_cv_c_uint8_t in #(
23661   no|yes) ;; #(
23662   *)
23663
23664 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
23665
23666
23667 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
23668 ;;
23669   esac
23670
23671 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23672 case $ac_cv_c_uint16_t in #(
23673   no|yes) ;; #(
23674   *)
23675
23676
23677 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
23678 ;;
23679   esac
23680
23681 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23682 case $ac_cv_c_uint32_t in #(
23683   no|yes) ;; #(
23684   *)
23685
23686 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
23687
23688
23689 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
23690 ;;
23691   esac
23692
23693 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23694 case $ac_cv_c_uint64_t in #(
23695   no|yes) ;; #(
23696   *)
23697
23698 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
23699
23700
23701 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
23702 ;;
23703   esac
23704
23705 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23706 case $ac_cv_c_int8_t in #(
23707   no|yes) ;; #(
23708   *)
23709
23710 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
23711 ;;
23712 esac
23713
23714 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23715 case $ac_cv_c_int16_t in #(
23716   no|yes) ;; #(
23717   *)
23718
23719 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
23720 ;;
23721 esac
23722
23723 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23724 case $ac_cv_c_int32_t in #(
23725   no|yes) ;; #(
23726   *)
23727
23728 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
23729 ;;
23730 esac
23731
23732 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23733 case $ac_cv_c_int64_t in #(
23734   no|yes) ;; #(
23735   *)
23736
23737 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
23738 ;;
23739 esac
23740
23741 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23742 if test "x$ac_cv_type_off_t" = xyes
23743 then :
23744
23745 else $as_nop
23746
23747 printf "%s\n" "#define off_t long int" >>confdefs.h
23748
23749 fi
23750
23751
23752   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
23753 "
23754 if test "x$ac_cv_type_pid_t" = xyes
23755 then :
23756
23757 else $as_nop
23758                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h.  */
23760
23761           #if defined _WIN64 && !defined __CYGWIN__
23762           LLP64
23763           #endif
23764
23765 int
23766 main (void)
23767 {
23768
23769   ;
23770   return 0;
23771 }
23772
23773 _ACEOF
23774 if ac_fn_c_try_compile "$LINENO"
23775 then :
23776   ac_pid_type='int'
23777 else $as_nop
23778   ac_pid_type='__int64'
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23781
23782 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
23783
23784
23785 fi
23786
23787
23788
23789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23790 printf %s "checking for uid_t in sys/types.h... " >&6; }
23791 if test ${ac_cv_type_uid_t+y}
23792 then :
23793   printf %s "(cached) " >&6
23794 else $as_nop
23795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h.  */
23797 #include <sys/types.h>
23798
23799 _ACEOF
23800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23801   $EGREP "uid_t" >/dev/null 2>&1
23802 then :
23803   ac_cv_type_uid_t=yes
23804 else $as_nop
23805   ac_cv_type_uid_t=no
23806 fi
23807 rm -rf conftest*
23808
23809 fi
23810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23811 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
23812 if test $ac_cv_type_uid_t = no; then
23813
23814 printf "%s\n" "#define uid_t int" >>confdefs.h
23815
23816
23817 printf "%s\n" "#define gid_t int" >>confdefs.h
23818
23819 fi
23820
23821 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23822 if test "x$ac_cv_type_ptrdiff_t" = xyes
23823 then :
23824
23825 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
23826
23827
23828 fi
23829
23830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23831 printf %s "checking whether byte ordering is bigendian... " >&6; }
23832 if test ${ac_cv_c_bigendian+y}
23833 then :
23834   printf %s "(cached) " >&6
23835 else $as_nop
23836   ac_cv_c_bigendian=unknown
23837     # See if we're dealing with a universal compiler.
23838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h.  */
23840 #ifndef __APPLE_CC__
23841                not a universal capable compiler
23842              #endif
23843              typedef int dummy;
23844
23845 _ACEOF
23846 if ac_fn_c_try_compile "$LINENO"
23847 then :
23848
23849         # Check for potential -arch flags.  It is not universal unless
23850         # there are at least two -arch flags with different values.
23851         ac_arch=
23852         ac_prev=
23853         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23854          if test -n "$ac_prev"; then
23855            case $ac_word in
23856              i?86 | x86_64 | ppc | ppc64)
23857                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23858                  ac_arch=$ac_word
23859                else
23860                  ac_cv_c_bigendian=universal
23861                  break
23862                fi
23863                ;;
23864            esac
23865            ac_prev=
23866          elif test "x$ac_word" = "x-arch"; then
23867            ac_prev=arch
23868          fi
23869        done
23870 fi
23871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23872     if test $ac_cv_c_bigendian = unknown; then
23873       # See if sys/param.h defines the BYTE_ORDER macro.
23874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23875 /* end confdefs.h.  */
23876 #include <sys/types.h>
23877              #include <sys/param.h>
23878
23879 int
23880 main (void)
23881 {
23882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23883                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23884                      && LITTLE_ENDIAN)
23885               bogus endian macros
23886              #endif
23887
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 if ac_fn_c_try_compile "$LINENO"
23893 then :
23894   # It does; now see whether it defined to BIG_ENDIAN or not.
23895          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h.  */
23897 #include <sys/types.h>
23898                 #include <sys/param.h>
23899
23900 int
23901 main (void)
23902 {
23903 #if BYTE_ORDER != BIG_ENDIAN
23904                  not big endian
23905                 #endif
23906
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_compile "$LINENO"
23912 then :
23913   ac_cv_c_bigendian=yes
23914 else $as_nop
23915   ac_cv_c_bigendian=no
23916 fi
23917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23918 fi
23919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23920     fi
23921     if test $ac_cv_c_bigendian = unknown; then
23922       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h.  */
23925 #include <limits.h>
23926
23927 int
23928 main (void)
23929 {
23930 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23931               bogus endian macros
23932              #endif
23933
23934   ;
23935   return 0;
23936 }
23937 _ACEOF
23938 if ac_fn_c_try_compile "$LINENO"
23939 then :
23940   # It does; now see whether it defined to _BIG_ENDIAN or not.
23941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23942 /* end confdefs.h.  */
23943 #include <limits.h>
23944
23945 int
23946 main (void)
23947 {
23948 #ifndef _BIG_ENDIAN
23949                  not big endian
23950                 #endif
23951
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 if ac_fn_c_try_compile "$LINENO"
23957 then :
23958   ac_cv_c_bigendian=yes
23959 else $as_nop
23960   ac_cv_c_bigendian=no
23961 fi
23962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23963 fi
23964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23965     fi
23966     if test $ac_cv_c_bigendian = unknown; then
23967       # Compile a test program.
23968       if test "$cross_compiling" = yes
23969 then :
23970   # Try to guess by grepping values from an object file.
23971          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h.  */
23973 unsigned short int ascii_mm[] =
23974                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23975                 unsigned short int ascii_ii[] =
23976                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23977                 int use_ascii (int i) {
23978                   return ascii_mm[i] + ascii_ii[i];
23979                 }
23980                 unsigned short int ebcdic_ii[] =
23981                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23982                 unsigned short int ebcdic_mm[] =
23983                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23984                 int use_ebcdic (int i) {
23985                   return ebcdic_mm[i] + ebcdic_ii[i];
23986                 }
23987                 extern int foo;
23988
23989 int
23990 main (void)
23991 {
23992 return use_ascii (foo) == use_ebcdic (foo);
23993   ;
23994   return 0;
23995 }
23996 _ACEOF
23997 if ac_fn_c_try_compile "$LINENO"
23998 then :
23999   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24000               ac_cv_c_bigendian=yes
24001             fi
24002             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24003               if test "$ac_cv_c_bigendian" = unknown; then
24004                 ac_cv_c_bigendian=no
24005               else
24006                 # finding both strings is unlikely to happen, but who knows?
24007                 ac_cv_c_bigendian=unknown
24008               fi
24009             fi
24010 fi
24011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24012 else $as_nop
24013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24014 /* end confdefs.h.  */
24015 $ac_includes_default
24016 int
24017 main (void)
24018 {
24019
24020              /* Are we little or big endian?  From Harbison&Steele.  */
24021              union
24022              {
24023                long int l;
24024                char c[sizeof (long int)];
24025              } u;
24026              u.l = 1;
24027              return u.c[sizeof (long int) - 1] == 1;
24028
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 if ac_fn_c_try_run "$LINENO"
24034 then :
24035   ac_cv_c_bigendian=no
24036 else $as_nop
24037   ac_cv_c_bigendian=yes
24038 fi
24039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24040   conftest.$ac_objext conftest.beam conftest.$ac_ext
24041 fi
24042
24043     fi
24044 fi
24045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24046 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24047  case $ac_cv_c_bigendian in #(
24048    yes)
24049      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24050 ;; #(
24051    no)
24052       ;; #(
24053    universal)
24054
24055 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24056
24057      ;; #(
24058    *)
24059      as_fn_error $? "unknown endianness
24060  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24061  esac
24062
24063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24064 printf %s "checking for inline... " >&6; }
24065 if test ${ac_cv_c_inline+y}
24066 then :
24067   printf %s "(cached) " >&6
24068 else $as_nop
24069   ac_cv_c_inline=no
24070 for ac_kw in inline __inline__ __inline; do
24071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h.  */
24073 #ifndef __cplusplus
24074 typedef int foo_t;
24075 static $ac_kw foo_t static_foo (void) {return 0; }
24076 $ac_kw foo_t foo (void) {return 0; }
24077 #endif
24078
24079 _ACEOF
24080 if ac_fn_c_try_compile "$LINENO"
24081 then :
24082   ac_cv_c_inline=$ac_kw
24083 fi
24084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24085   test "$ac_cv_c_inline" != no && break
24086 done
24087
24088 fi
24089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24090 printf "%s\n" "$ac_cv_c_inline" >&6; }
24091
24092 case $ac_cv_c_inline in
24093   inline | yes) ;;
24094   *)
24095     case $ac_cv_c_inline in
24096       no) ac_val=;;
24097       *) ac_val=$ac_cv_c_inline;;
24098     esac
24099     cat >>confdefs.h <<_ACEOF
24100 #ifndef __cplusplus
24101 #define inline $ac_val
24102 #endif
24103 _ACEOF
24104     ;;
24105 esac
24106
24107 # Check whether --enable-largefile was given.
24108 if test ${enable_largefile+y}
24109 then :
24110   enableval=$enable_largefile;
24111 fi
24112
24113 if test "$enable_largefile" != no; then
24114
24115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24116 printf %s "checking for special C compiler options needed for large files... " >&6; }
24117 if test ${ac_cv_sys_largefile_CC+y}
24118 then :
24119   printf %s "(cached) " >&6
24120 else $as_nop
24121   ac_cv_sys_largefile_CC=no
24122      if test "$GCC" != yes; then
24123        ac_save_CC=$CC
24124        while :; do
24125          # IRIX 6.2 and later do not support large files by default,
24126          # so use the C compiler's -n32 option if that helps.
24127          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h.  */
24129 #include <sys/types.h>
24130  /* Check that off_t can represent 2**63 - 1 correctly.
24131     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24132     since some C++ compilers masquerading as C compilers
24133     incorrectly reject 9223372036854775807.  */
24134 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24135   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24136                        && LARGE_OFF_T % 2147483647 == 1)
24137                       ? 1 : -1];
24138 int
24139 main (void)
24140 {
24141
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146          if ac_fn_c_try_compile "$LINENO"
24147 then :
24148   break
24149 fi
24150 rm -f core conftest.err conftest.$ac_objext conftest.beam
24151          CC="$CC -n32"
24152          if ac_fn_c_try_compile "$LINENO"
24153 then :
24154   ac_cv_sys_largefile_CC=' -n32'; break
24155 fi
24156 rm -f core conftest.err conftest.$ac_objext conftest.beam
24157          break
24158        done
24159        CC=$ac_save_CC
24160        rm -f conftest.$ac_ext
24161     fi
24162 fi
24163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24164 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
24165   if test "$ac_cv_sys_largefile_CC" != no; then
24166     CC=$CC$ac_cv_sys_largefile_CC
24167   fi
24168
24169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24170 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24171 if test ${ac_cv_sys_file_offset_bits+y}
24172 then :
24173   printf %s "(cached) " >&6
24174 else $as_nop
24175   while :; do
24176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24177 /* end confdefs.h.  */
24178 #include <sys/types.h>
24179  /* Check that off_t can represent 2**63 - 1 correctly.
24180     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24181     since some C++ compilers masquerading as C compilers
24182     incorrectly reject 9223372036854775807.  */
24183 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24184   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24185                        && LARGE_OFF_T % 2147483647 == 1)
24186                       ? 1 : -1];
24187 int
24188 main (void)
24189 {
24190
24191   ;
24192   return 0;
24193 }
24194 _ACEOF
24195 if ac_fn_c_try_compile "$LINENO"
24196 then :
24197   ac_cv_sys_file_offset_bits=no; break
24198 fi
24199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h.  */
24202 #define _FILE_OFFSET_BITS 64
24203 #include <sys/types.h>
24204  /* Check that off_t can represent 2**63 - 1 correctly.
24205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24206     since some C++ compilers masquerading as C compilers
24207     incorrectly reject 9223372036854775807.  */
24208 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24210                        && LARGE_OFF_T % 2147483647 == 1)
24211                       ? 1 : -1];
24212 int
24213 main (void)
24214 {
24215
24216   ;
24217   return 0;
24218 }
24219 _ACEOF
24220 if ac_fn_c_try_compile "$LINENO"
24221 then :
24222   ac_cv_sys_file_offset_bits=64; break
24223 fi
24224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24225   ac_cv_sys_file_offset_bits=unknown
24226   break
24227 done
24228 fi
24229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24230 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
24231 case $ac_cv_sys_file_offset_bits in #(
24232   no | unknown) ;;
24233   *)
24234 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
24235 ;;
24236 esac
24237 rm -rf conftest*
24238   if test $ac_cv_sys_file_offset_bits = unknown; then
24239     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24240 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
24241 if test ${ac_cv_sys_large_files+y}
24242 then :
24243   printf %s "(cached) " >&6
24244 else $as_nop
24245   while :; do
24246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h.  */
24248 #include <sys/types.h>
24249  /* Check that off_t can represent 2**63 - 1 correctly.
24250     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24251     since some C++ compilers masquerading as C compilers
24252     incorrectly reject 9223372036854775807.  */
24253 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24254   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24255                        && LARGE_OFF_T % 2147483647 == 1)
24256                       ? 1 : -1];
24257 int
24258 main (void)
24259 {
24260
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 if ac_fn_c_try_compile "$LINENO"
24266 then :
24267   ac_cv_sys_large_files=no; break
24268 fi
24269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24271 /* end confdefs.h.  */
24272 #define _LARGE_FILES 1
24273 #include <sys/types.h>
24274  /* Check that off_t can represent 2**63 - 1 correctly.
24275     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24276     since some C++ compilers masquerading as C compilers
24277     incorrectly reject 9223372036854775807.  */
24278 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24279   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24280                        && LARGE_OFF_T % 2147483647 == 1)
24281                       ? 1 : -1];
24282 int
24283 main (void)
24284 {
24285
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 if ac_fn_c_try_compile "$LINENO"
24291 then :
24292   ac_cv_sys_large_files=1; break
24293 fi
24294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24295   ac_cv_sys_large_files=unknown
24296   break
24297 done
24298 fi
24299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24300 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
24301 case $ac_cv_sys_large_files in #(
24302   no | unknown) ;;
24303   *)
24304 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
24305 ;;
24306 esac
24307 rm -rf conftest*
24308   fi
24309 fi
24310
24311
24312 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
24313 "
24314 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
24315 then :
24316   have_struct_tm_tm_gmtoff=yes
24317 else $as_nop
24318   have_struct_tm_tm_gmtoff=no
24319 fi
24320
24321
24322 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24323 #include <sys/types.h>
24324 #include <sys/socket.h>
24325 #include <netinet/in.h>
24326
24327 "
24328 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
24329 then :
24330
24331 printf "%s\n" "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
24332
24333 fi
24334
24335
24336 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
24337 #include <sys/types.h>
24338 #include <sys/socket.h>
24339 #include <netinet/in.h>
24340
24341 "
24342 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
24343 then :
24344
24345 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
24346
24347 fi
24348
24349
24350 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
24351
24352 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
24353
24354 fi
24355
24356 # Check size of pointer to decide we need 8 bytes alignment
24357 # adjustment.
24358 # The cast to long int works around a bug in the HP C Compiler
24359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24361 # This bug is HP SR number 8606223364.
24362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
24363 printf %s "checking size of int *... " >&6; }
24364 if test ${ac_cv_sizeof_int_p+y}
24365 then :
24366   printf %s "(cached) " >&6
24367 else $as_nop
24368   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"
24369 then :
24370
24371 else $as_nop
24372   if test "$ac_cv_type_int_p" = yes; then
24373      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24374 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24375 as_fn_error 77 "cannot compute sizeof (int *)
24376 See \`config.log' for more details" "$LINENO" 5; }
24377    else
24378      ac_cv_sizeof_int_p=0
24379    fi
24380 fi
24381
24382 fi
24383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
24384 printf "%s\n" "$ac_cv_sizeof_int_p" >&6; }
24385
24386
24387
24388 printf "%s\n" "#define SIZEOF_INT_P $ac_cv_sizeof_int_p" >>confdefs.h
24389
24390
24391
24392 # The cast to long int works around a bug in the HP C Compiler
24393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24395 # This bug is HP SR number 8606223364.
24396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
24397 printf %s "checking size of time_t... " >&6; }
24398 if test ${ac_cv_sizeof_time_t+y}
24399 then :
24400   printf %s "(cached) " >&6
24401 else $as_nop
24402   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
24403 then :
24404
24405 else $as_nop
24406   if test "$ac_cv_type_time_t" = yes; then
24407      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24409 as_fn_error 77 "cannot compute sizeof (time_t)
24410 See \`config.log' for more details" "$LINENO" 5; }
24411    else
24412      ac_cv_sizeof_time_t=0
24413    fi
24414 fi
24415
24416 fi
24417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
24418 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
24419
24420
24421
24422 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
24423
24424
24425
24426 # Checks for library functions.
24427
24428 # Don't check malloc, since it does not play nicely with C++ stdlib
24429 # AC_FUNC_MALLOC
24430
24431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
24432 printf %s "checking for working chown... " >&6; }
24433 if test ${ac_cv_func_chown_works+y}
24434 then :
24435   printf %s "(cached) " >&6
24436 else $as_nop
24437   if test "$cross_compiling" = yes
24438 then :
24439   case "$host_os" in # ((
24440                           # Guess yes on glibc systems.
24441                   *-gnu*) ac_cv_func_chown_works=yes ;;
24442                           # If we don't know, assume the worst.
24443                   *)      ac_cv_func_chown_works=no ;;
24444                 esac
24445 else $as_nop
24446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h.  */
24448 $ac_includes_default
24449 #include <fcntl.h>
24450
24451 int
24452 main (void)
24453 {
24454   char *f = "conftest.chown";
24455   struct stat before, after;
24456
24457   if (creat (f, 0600) < 0)
24458     return 1;
24459   if (stat (f, &before) < 0)
24460     return 1;
24461   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
24462     return 1;
24463   if (stat (f, &after) < 0)
24464     return 1;
24465   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
24466
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 if ac_fn_c_try_run "$LINENO"
24472 then :
24473   ac_cv_func_chown_works=yes
24474 else $as_nop
24475   ac_cv_func_chown_works=no
24476 fi
24477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24478   conftest.$ac_objext conftest.beam conftest.$ac_ext
24479 fi
24480
24481 rm -f conftest.chown
24482
24483 fi
24484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
24485 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
24486 if test $ac_cv_func_chown_works = yes; then
24487
24488 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
24489
24490 fi
24491
24492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
24493 printf %s "checking for error_at_line... " >&6; }
24494 if test ${ac_cv_lib_error_at_line+y}
24495 then :
24496   printf %s "(cached) " >&6
24497 else $as_nop
24498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h.  */
24500 #include <error.h>
24501 int
24502 main (void)
24503 {
24504 error_at_line (0, 0, "", 0, "an error occurred");
24505   ;
24506   return 0;
24507 }
24508 _ACEOF
24509 if ac_fn_c_try_link "$LINENO"
24510 then :
24511   ac_cv_lib_error_at_line=yes
24512 else $as_nop
24513   ac_cv_lib_error_at_line=no
24514 fi
24515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24516     conftest$ac_exeext conftest.$ac_ext
24517 fi
24518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
24519 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
24520 if test $ac_cv_lib_error_at_line = no; then
24521   case " $LIBOBJS " in
24522   *" error.$ac_objext "* ) ;;
24523   *) LIBOBJS="$LIBOBJS error.$ac_objext"
24524  ;;
24525 esac
24526
24527 fi
24528
24529
24530 ac_func=
24531 for ac_item in $ac_func_c_list
24532 do
24533   if test $ac_func; then
24534     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
24535     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
24536       echo "#define $ac_item 1" >> confdefs.h
24537     fi
24538     ac_func=
24539   else
24540     ac_func=$ac_item
24541   fi
24542 done
24543
24544
24545
24546 if test "x$ac_cv_func_fork" = xyes; then
24547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24548 printf %s "checking for working fork... " >&6; }
24549 if test ${ac_cv_func_fork_works+y}
24550 then :
24551   printf %s "(cached) " >&6
24552 else $as_nop
24553   if test "$cross_compiling" = yes
24554 then :
24555   ac_cv_func_fork_works=cross
24556 else $as_nop
24557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560 int
24561 main (void)
24562 {
24563
24564           /* By Ruediger Kuhlmann. */
24565           return fork () < 0;
24566
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 if ac_fn_c_try_run "$LINENO"
24572 then :
24573   ac_cv_func_fork_works=yes
24574 else $as_nop
24575   ac_cv_func_fork_works=no
24576 fi
24577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24578   conftest.$ac_objext conftest.beam conftest.$ac_ext
24579 fi
24580
24581 fi
24582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24583 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
24584
24585 else
24586   ac_cv_func_fork_works=$ac_cv_func_fork
24587 fi
24588 if test "x$ac_cv_func_fork_works" = xcross; then
24589   case $host in
24590     *-*-amigaos* | *-*-msdosdjgpp*)
24591       # Override, as these systems have only a dummy fork() stub
24592       ac_cv_func_fork_works=no
24593       ;;
24594     *)
24595       ac_cv_func_fork_works=yes
24596       ;;
24597   esac
24598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24599 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24600 fi
24601 ac_cv_func_vfork_works=$ac_cv_func_vfork
24602 if test "x$ac_cv_func_vfork" = xyes; then
24603   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24604 printf %s "checking for working vfork... " >&6; }
24605 if test ${ac_cv_func_vfork_works+y}
24606 then :
24607   printf %s "(cached) " >&6
24608 else $as_nop
24609   if test "$cross_compiling" = yes
24610 then :
24611   ac_cv_func_vfork_works=cross
24612 else $as_nop
24613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h.  */
24615 /* Thanks to Paul Eggert for this test.  */
24616 $ac_includes_default
24617 #include <signal.h>
24618 #include <sys/wait.h>
24619 #ifdef HAVE_VFORK_H
24620 # include <vfork.h>
24621 #endif
24622
24623 static void
24624 do_nothing (int sig)
24625 {
24626   (void) sig;
24627 }
24628
24629 /* On some sparc systems, changes by the child to local and incoming
24630    argument registers are propagated back to the parent.  The compiler
24631    is told about this with #include <vfork.h>, but some compilers
24632    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24633    static variable whose address is put into a register that is
24634    clobbered by the vfork.  */
24635 static void
24636 sparc_address_test (int arg)
24637 {
24638   static pid_t child;
24639   if (!child) {
24640     child = vfork ();
24641     if (child < 0) {
24642       perror ("vfork");
24643       _exit(2);
24644     }
24645     if (!child) {
24646       arg = getpid();
24647       write(-1, "", 0);
24648       _exit (arg);
24649     }
24650   }
24651 }
24652
24653 int
24654 main (void)
24655 {
24656   pid_t parent = getpid ();
24657   pid_t child;
24658
24659   sparc_address_test (0);
24660
24661   /* On Solaris 2.4, changes by the child to the signal handler
24662      also munge signal handlers in the parent.  To detect this,
24663      start by putting the parent's handler in a known state.  */
24664   signal (SIGTERM, SIG_DFL);
24665
24666   child = vfork ();
24667
24668   if (child == 0) {
24669     /* Here is another test for sparc vfork register problems.  This
24670        test uses lots of local variables, at least as many local
24671        variables as main has allocated so far including compiler
24672        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24673        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24674        reuse the register of parent for one of the local variables,
24675        since it will think that parent can't possibly be used any more
24676        in this routine.  Assigning to the local variable will thus
24677        munge parent in the parent process.  */
24678     pid_t
24679       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24680       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24681     /* Convince the compiler that p..p7 are live; otherwise, it might
24682        use the same hardware register for all 8 local variables.  */
24683     if (p != p1 || p != p2 || p != p3 || p != p4
24684         || p != p5 || p != p6 || p != p7)
24685       _exit(1);
24686
24687     /* Alter the child's signal handler.  */
24688     if (signal (SIGTERM, do_nothing) != SIG_DFL)
24689       _exit(1);
24690
24691     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24692        from child file descriptors.  If the child closes a descriptor
24693        before it execs or exits, this munges the parent's descriptor
24694        as well.  Test for this by closing stdout in the child.  */
24695     _exit(close(fileno(stdout)) != 0);
24696   } else {
24697     int status;
24698     struct stat st;
24699
24700     while (wait(&status) != child)
24701       ;
24702     return (
24703          /* Was there some problem with vforking?  */
24704          child < 0
24705
24706          /* Did the child munge the parent's signal handler?  */
24707          || signal (SIGTERM, SIG_DFL) != SIG_DFL
24708
24709          /* Did the child fail?  (This shouldn't happen.)  */
24710          || status
24711
24712          /* Did the vfork/compiler bug occur?  */
24713          || parent != getpid()
24714
24715          /* Did the file descriptor bug occur?  */
24716          || fstat(fileno(stdout), &st) != 0
24717          );
24718   }
24719 }
24720 _ACEOF
24721 if ac_fn_c_try_run "$LINENO"
24722 then :
24723   ac_cv_func_vfork_works=yes
24724 else $as_nop
24725   ac_cv_func_vfork_works=no
24726 fi
24727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24728   conftest.$ac_objext conftest.beam conftest.$ac_ext
24729 fi
24730
24731 fi
24732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24733 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
24734
24735 fi;
24736 if test "x$ac_cv_func_fork_works" = xcross; then
24737   ac_cv_func_vfork_works=$ac_cv_func_vfork
24738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24739 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24740 fi
24741
24742 if test "x$ac_cv_func_vfork_works" = xyes; then
24743
24744 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24745
24746 else
24747
24748 printf "%s\n" "#define vfork fork" >>confdefs.h
24749
24750 fi
24751 if test "x$ac_cv_func_fork_works" = xyes; then
24752
24753 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
24754
24755 fi
24756
24757 # Don't check realloc, since LeakSanitizer detects memory leak during check
24758 # AC_FUNC_REALLOC
24759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
24760 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
24761 if test ${ac_cv_c_undeclared_builtin_options+y}
24762 then :
24763   printf %s "(cached) " >&6
24764 else $as_nop
24765   ac_save_CFLAGS=$CFLAGS
24766    ac_cv_c_undeclared_builtin_options='cannot detect'
24767    for ac_arg in '' -fno-builtin; do
24768      CFLAGS="$ac_save_CFLAGS $ac_arg"
24769      # This test program should *not* compile successfully.
24770      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24771 /* end confdefs.h.  */
24772
24773 int
24774 main (void)
24775 {
24776 (void) strchr;
24777   ;
24778   return 0;
24779 }
24780 _ACEOF
24781 if ac_fn_c_try_compile "$LINENO"
24782 then :
24783
24784 else $as_nop
24785   # This test program should compile successfully.
24786         # No library function is consistently available on
24787         # freestanding implementations, so test against a dummy
24788         # declaration.  Include always-available headers on the
24789         # off chance that they somehow elicit warnings.
24790         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24791 /* end confdefs.h.  */
24792 #include <float.h>
24793 #include <limits.h>
24794 #include <stdarg.h>
24795 #include <stddef.h>
24796 extern void ac_decl (int, char *);
24797
24798 int
24799 main (void)
24800 {
24801 (void) ac_decl (0, (char *) 0);
24802   (void) ac_decl;
24803
24804   ;
24805   return 0;
24806 }
24807 _ACEOF
24808 if ac_fn_c_try_compile "$LINENO"
24809 then :
24810   if test x"$ac_arg" = x
24811 then :
24812   ac_cv_c_undeclared_builtin_options='none needed'
24813 else $as_nop
24814   ac_cv_c_undeclared_builtin_options=$ac_arg
24815 fi
24816           break
24817 fi
24818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24819 fi
24820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24821     done
24822     CFLAGS=$ac_save_CFLAGS
24823
24824 fi
24825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
24826 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
24827   case $ac_cv_c_undeclared_builtin_options in #(
24828   'cannot detect') :
24829     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24830 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24831 as_fn_error $? "cannot make $CC report undeclared builtins
24832 See \`config.log' for more details" "$LINENO" 5; } ;; #(
24833   'none needed') :
24834     ac_c_undeclared_builtin_options='' ;; #(
24835   *) :
24836     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
24837 esac
24838
24839 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24840 if test "x$ac_cv_have_decl_strerror_r" = xyes
24841 then :
24842   ac_have_decl=1
24843 else $as_nop
24844   ac_have_decl=0
24845 fi
24846 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
24847
24848
24849 if test $ac_cv_have_decl_strerror_r = yes; then
24850   # For backward compatibility's sake, define HAVE_STRERROR_R.
24851   # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
24852   # as AC_CHECK_DECLS_ONCE.)
24853
24854 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
24855
24856 fi
24857
24858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24859 printf %s "checking whether strerror_r returns char *... " >&6; }
24860 if test ${ac_cv_func_strerror_r_char_p+y}
24861 then :
24862   printf %s "(cached) " >&6
24863 else $as_nop
24864
24865     ac_cv_func_strerror_r_char_p=no
24866     if test $ac_cv_have_decl_strerror_r = yes; then
24867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868 /* end confdefs.h.  */
24869 #include <string.h>
24870 int
24871 main (void)
24872 {
24873
24874           char buf[100];
24875           char x = *strerror_r (0, buf, sizeof buf);
24876           char *p = strerror_r (0, buf, sizeof buf);
24877           return !p || x;
24878
24879   ;
24880   return 0;
24881 }
24882 _ACEOF
24883 if ac_fn_c_try_compile "$LINENO"
24884 then :
24885   ac_cv_func_strerror_r_char_p=yes
24886 fi
24887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24888
24889     fi
24890
24891 fi
24892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24893 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
24894 if test $ac_cv_func_strerror_r_char_p = yes; then
24895
24896 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24897
24898 fi
24899
24900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24901 printf %s "checking for working strnlen... " >&6; }
24902 if test ${ac_cv_func_strnlen_working+y}
24903 then :
24904   printf %s "(cached) " >&6
24905 else $as_nop
24906   if test "$cross_compiling" = yes
24907 then :
24908   # Guess no on AIX systems, yes otherwise.
24909                 case "$host_os" in
24910                   aix*) ac_cv_func_strnlen_working=no;;
24911                   *)    ac_cv_func_strnlen_working=yes;;
24912                 esac
24913 else $as_nop
24914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h.  */
24916 $ac_includes_default
24917 int
24918 main (void)
24919 {
24920
24921 #define S "foobar"
24922 #define S_LEN (sizeof S - 1)
24923
24924   /* At least one implementation is buggy: that of AIX 4.3 would
24925      give strnlen (S, 1) == 3.  */
24926
24927   int i;
24928   for (i = 0; i < S_LEN + 1; ++i)
24929     {
24930       int expected = i <= S_LEN ? i : S_LEN;
24931       if (strnlen (S, i) != expected)
24932         return 1;
24933     }
24934   return 0;
24935
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 if ac_fn_c_try_run "$LINENO"
24941 then :
24942   ac_cv_func_strnlen_working=yes
24943 else $as_nop
24944   ac_cv_func_strnlen_working=no
24945 fi
24946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24947   conftest.$ac_objext conftest.beam conftest.$ac_ext
24948 fi
24949
24950 fi
24951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24952 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
24953 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
24954   *" strnlen.$ac_objext "* ) ;;
24955   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
24956  ;;
24957 esac
24958
24959
24960
24961 ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
24962 if test "x$ac_cv_func__Exit" = xyes
24963 then :
24964   printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
24965
24966 fi
24967 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
24968 if test "x$ac_cv_func_accept4" = xyes
24969 then :
24970   printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
24971
24972 fi
24973 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24974 if test "x$ac_cv_func_dup2" = xyes
24975 then :
24976   printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
24977
24978 fi
24979 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
24980 if test "x$ac_cv_func_getcwd" = xyes
24981 then :
24982   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
24983
24984 fi
24985 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
24986 if test "x$ac_cv_func_getpwnam" = xyes
24987 then :
24988   printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
24989
24990 fi
24991 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
24992 if test "x$ac_cv_func_localtime_r" = xyes
24993 then :
24994   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
24995
24996 fi
24997 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24998 if test "x$ac_cv_func_memchr" = xyes
24999 then :
25000   printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
25001
25002 fi
25003 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
25004 if test "x$ac_cv_func_memmove" = xyes
25005 then :
25006   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
25007
25008 fi
25009 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
25010 if test "x$ac_cv_func_memset" = xyes
25011 then :
25012   printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
25013
25014 fi
25015 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
25016 if test "x$ac_cv_func_mkostemp" = xyes
25017 then :
25018   printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
25019
25020 fi
25021 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
25022 if test "x$ac_cv_func_socket" = xyes
25023 then :
25024   printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
25025
25026 fi
25027 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
25028 if test "x$ac_cv_func_sqrt" = xyes
25029 then :
25030   printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
25031
25032 fi
25033 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
25034 if test "x$ac_cv_func_strchr" = xyes
25035 then :
25036   printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
25037
25038 fi
25039 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
25040 if test "x$ac_cv_func_strdup" = xyes
25041 then :
25042   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
25043
25044 fi
25045 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
25046 if test "x$ac_cv_func_strerror" = xyes
25047 then :
25048   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
25049
25050 fi
25051 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
25052 if test "x$ac_cv_func_strndup" = xyes
25053 then :
25054   printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
25055
25056 fi
25057 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
25058 if test "x$ac_cv_func_strstr" = xyes
25059 then :
25060   printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
25061
25062 fi
25063 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
25064 if test "x$ac_cv_func_strtol" = xyes
25065 then :
25066   printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
25067
25068 fi
25069 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
25070 if test "x$ac_cv_func_strtoul" = xyes
25071 then :
25072   printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
25073
25074 fi
25075 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25076 if test "x$ac_cv_func_timegm" = xyes
25077 then :
25078   printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
25079
25080 fi
25081
25082
25083 # timerfd_create was added in linux kernel 2.6.25
25084
25085 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
25086 if test "x$ac_cv_func_timerfd_create" = xyes
25087 then :
25088   have_timerfd_create=yes
25089 else $as_nop
25090   have_timerfd_create=no
25091 fi
25092
25093
25094 # For cygwin: we can link initgroups, so AC_CHECK_FUNCS succeeds, but
25095 # cygwin disables initgroups due to feature test macro magic with our
25096 # configuration.  FreeBSD declares initgroups() in unistd.h.
25097 ac_fn_check_decl "$LINENO" "initgroups" "ac_cv_have_decl_initgroups" "
25098   #ifdef HAVE_UNISTD_H
25099   # include <unistd.h>
25100   #endif
25101   #include <grp.h>
25102
25103 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25104 if test "x$ac_cv_have_decl_initgroups" = xyes
25105 then :
25106   ac_have_decl=1
25107 else $as_nop
25108   ac_have_decl=0
25109 fi
25110 printf "%s\n" "#define HAVE_DECL_INITGROUPS $ac_have_decl" >>confdefs.h
25111
25112
25113 save_CFLAGS=$CFLAGS
25114 save_CXXFLAGS=$CXXFLAGS
25115
25116 CFLAGS=
25117 CXXFLAGS=
25118
25119 if test "x$werror" != "xno"; then
25120     # For C compiler
25121     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
25122 printf %s "checking whether C compiler accepts -Wall... " >&6; }
25123 if test ${ax_cv_check_cflags___Wall+y}
25124 then :
25125   printf %s "(cached) " >&6
25126 else $as_nop
25127
25128   ax_check_save_flags=$CFLAGS
25129   CFLAGS="$CFLAGS  -Wall"
25130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25131 /* end confdefs.h.  */
25132
25133 int
25134 main (void)
25135 {
25136
25137   ;
25138   return 0;
25139 }
25140 _ACEOF
25141 if ac_fn_c_try_compile "$LINENO"
25142 then :
25143   ax_cv_check_cflags___Wall=yes
25144 else $as_nop
25145   ax_cv_check_cflags___Wall=no
25146 fi
25147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25148   CFLAGS=$ax_check_save_flags
25149 fi
25150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
25151 printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
25152 if test "x$ax_cv_check_cflags___Wall" = xyes
25153 then :
25154   CFLAGS="$CFLAGS -Wall"
25155 else $as_nop
25156   :
25157 fi
25158
25159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
25160 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
25161 if test ${ax_cv_check_cflags___Wextra+y}
25162 then :
25163   printf %s "(cached) " >&6
25164 else $as_nop
25165
25166   ax_check_save_flags=$CFLAGS
25167   CFLAGS="$CFLAGS  -Wextra"
25168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h.  */
25170
25171 int
25172 main (void)
25173 {
25174
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 if ac_fn_c_try_compile "$LINENO"
25180 then :
25181   ax_cv_check_cflags___Wextra=yes
25182 else $as_nop
25183   ax_cv_check_cflags___Wextra=no
25184 fi
25185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25186   CFLAGS=$ax_check_save_flags
25187 fi
25188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
25189 printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
25190 if test "x$ax_cv_check_cflags___Wextra" = xyes
25191 then :
25192   CFLAGS="$CFLAGS -Wextra"
25193 else $as_nop
25194   :
25195 fi
25196
25197     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
25198 printf %s "checking whether C compiler accepts -Werror... " >&6; }
25199 if test ${ax_cv_check_cflags___Werror+y}
25200 then :
25201   printf %s "(cached) " >&6
25202 else $as_nop
25203
25204   ax_check_save_flags=$CFLAGS
25205   CFLAGS="$CFLAGS  -Werror"
25206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25207 /* end confdefs.h.  */
25208
25209 int
25210 main (void)
25211 {
25212
25213   ;
25214   return 0;
25215 }
25216 _ACEOF
25217 if ac_fn_c_try_compile "$LINENO"
25218 then :
25219   ax_cv_check_cflags___Werror=yes
25220 else $as_nop
25221   ax_cv_check_cflags___Werror=no
25222 fi
25223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25224   CFLAGS=$ax_check_save_flags
25225 fi
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
25227 printf "%s\n" "$ax_cv_check_cflags___Werror" >&6; }
25228 if test "x$ax_cv_check_cflags___Werror" = xyes
25229 then :
25230   CFLAGS="$CFLAGS -Werror"
25231 else $as_nop
25232   :
25233 fi
25234
25235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
25236 printf %s "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
25237 if test ${ax_cv_check_cflags___Wmissing_prototypes+y}
25238 then :
25239   printf %s "(cached) " >&6
25240 else $as_nop
25241
25242   ax_check_save_flags=$CFLAGS
25243   CFLAGS="$CFLAGS  -Wmissing-prototypes"
25244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25245 /* end confdefs.h.  */
25246
25247 int
25248 main (void)
25249 {
25250
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 if ac_fn_c_try_compile "$LINENO"
25256 then :
25257   ax_cv_check_cflags___Wmissing_prototypes=yes
25258 else $as_nop
25259   ax_cv_check_cflags___Wmissing_prototypes=no
25260 fi
25261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25262   CFLAGS=$ax_check_save_flags
25263 fi
25264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
25265 printf "%s\n" "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
25266 if test "x$ax_cv_check_cflags___Wmissing_prototypes" = xyes
25267 then :
25268   CFLAGS="$CFLAGS -Wmissing-prototypes"
25269 else $as_nop
25270   :
25271 fi
25272
25273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
25274 printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
25275 if test ${ax_cv_check_cflags___Wstrict_prototypes+y}
25276 then :
25277   printf %s "(cached) " >&6
25278 else $as_nop
25279
25280   ax_check_save_flags=$CFLAGS
25281   CFLAGS="$CFLAGS  -Wstrict-prototypes"
25282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283 /* end confdefs.h.  */
25284
25285 int
25286 main (void)
25287 {
25288
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 if ac_fn_c_try_compile "$LINENO"
25294 then :
25295   ax_cv_check_cflags___Wstrict_prototypes=yes
25296 else $as_nop
25297   ax_cv_check_cflags___Wstrict_prototypes=no
25298 fi
25299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25300   CFLAGS=$ax_check_save_flags
25301 fi
25302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
25303 printf "%s\n" "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
25304 if test "x$ax_cv_check_cflags___Wstrict_prototypes" = xyes
25305 then :
25306   CFLAGS="$CFLAGS -Wstrict-prototypes"
25307 else $as_nop
25308   :
25309 fi
25310
25311     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
25312 printf %s "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
25313 if test ${ax_cv_check_cflags___Wmissing_declarations+y}
25314 then :
25315   printf %s "(cached) " >&6
25316 else $as_nop
25317
25318   ax_check_save_flags=$CFLAGS
25319   CFLAGS="$CFLAGS  -Wmissing-declarations"
25320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h.  */
25322
25323 int
25324 main (void)
25325 {
25326
25327   ;
25328   return 0;
25329 }
25330 _ACEOF
25331 if ac_fn_c_try_compile "$LINENO"
25332 then :
25333   ax_cv_check_cflags___Wmissing_declarations=yes
25334 else $as_nop
25335   ax_cv_check_cflags___Wmissing_declarations=no
25336 fi
25337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25338   CFLAGS=$ax_check_save_flags
25339 fi
25340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
25341 printf "%s\n" "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
25342 if test "x$ax_cv_check_cflags___Wmissing_declarations" = xyes
25343 then :
25344   CFLAGS="$CFLAGS -Wmissing-declarations"
25345 else $as_nop
25346   :
25347 fi
25348
25349     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
25350 printf %s "checking whether C compiler accepts -Wpointer-arith... " >&6; }
25351 if test ${ax_cv_check_cflags___Wpointer_arith+y}
25352 then :
25353   printf %s "(cached) " >&6
25354 else $as_nop
25355
25356   ax_check_save_flags=$CFLAGS
25357   CFLAGS="$CFLAGS  -Wpointer-arith"
25358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360
25361 int
25362 main (void)
25363 {
25364
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 if ac_fn_c_try_compile "$LINENO"
25370 then :
25371   ax_cv_check_cflags___Wpointer_arith=yes
25372 else $as_nop
25373   ax_cv_check_cflags___Wpointer_arith=no
25374 fi
25375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25376   CFLAGS=$ax_check_save_flags
25377 fi
25378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
25379 printf "%s\n" "$ax_cv_check_cflags___Wpointer_arith" >&6; }
25380 if test "x$ax_cv_check_cflags___Wpointer_arith" = xyes
25381 then :
25382   CFLAGS="$CFLAGS -Wpointer-arith"
25383 else $as_nop
25384   :
25385 fi
25386
25387     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
25388 printf %s "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
25389 if test ${ax_cv_check_cflags___Wdeclaration_after_statement+y}
25390 then :
25391   printf %s "(cached) " >&6
25392 else $as_nop
25393
25394   ax_check_save_flags=$CFLAGS
25395   CFLAGS="$CFLAGS  -Wdeclaration-after-statement"
25396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h.  */
25398
25399 int
25400 main (void)
25401 {
25402
25403   ;
25404   return 0;
25405 }
25406 _ACEOF
25407 if ac_fn_c_try_compile "$LINENO"
25408 then :
25409   ax_cv_check_cflags___Wdeclaration_after_statement=yes
25410 else $as_nop
25411   ax_cv_check_cflags___Wdeclaration_after_statement=no
25412 fi
25413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25414   CFLAGS=$ax_check_save_flags
25415 fi
25416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
25417 printf "%s\n" "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
25418 if test "x$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes
25419 then :
25420   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25421 else $as_nop
25422   :
25423 fi
25424
25425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
25426 printf %s "checking whether C compiler accepts -Wformat-security... " >&6; }
25427 if test ${ax_cv_check_cflags___Wformat_security+y}
25428 then :
25429   printf %s "(cached) " >&6
25430 else $as_nop
25431
25432   ax_check_save_flags=$CFLAGS
25433   CFLAGS="$CFLAGS  -Wformat-security"
25434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h.  */
25436
25437 int
25438 main (void)
25439 {
25440
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 if ac_fn_c_try_compile "$LINENO"
25446 then :
25447   ax_cv_check_cflags___Wformat_security=yes
25448 else $as_nop
25449   ax_cv_check_cflags___Wformat_security=no
25450 fi
25451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25452   CFLAGS=$ax_check_save_flags
25453 fi
25454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
25455 printf "%s\n" "$ax_cv_check_cflags___Wformat_security" >&6; }
25456 if test "x$ax_cv_check_cflags___Wformat_security" = xyes
25457 then :
25458   CFLAGS="$CFLAGS -Wformat-security"
25459 else $as_nop
25460   :
25461 fi
25462
25463     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
25464 printf %s "checking whether C compiler accepts -Wwrite-strings... " >&6; }
25465 if test ${ax_cv_check_cflags___Wwrite_strings+y}
25466 then :
25467   printf %s "(cached) " >&6
25468 else $as_nop
25469
25470   ax_check_save_flags=$CFLAGS
25471   CFLAGS="$CFLAGS  -Wwrite-strings"
25472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h.  */
25474
25475 int
25476 main (void)
25477 {
25478
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_c_try_compile "$LINENO"
25484 then :
25485   ax_cv_check_cflags___Wwrite_strings=yes
25486 else $as_nop
25487   ax_cv_check_cflags___Wwrite_strings=no
25488 fi
25489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25490   CFLAGS=$ax_check_save_flags
25491 fi
25492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
25493 printf "%s\n" "$ax_cv_check_cflags___Wwrite_strings" >&6; }
25494 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes
25495 then :
25496   CFLAGS="$CFLAGS -Wwrite-strings"
25497 else $as_nop
25498   :
25499 fi
25500
25501     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
25502 printf %s "checking whether C compiler accepts -Wshadow... " >&6; }
25503 if test ${ax_cv_check_cflags___Wshadow+y}
25504 then :
25505   printf %s "(cached) " >&6
25506 else $as_nop
25507
25508   ax_check_save_flags=$CFLAGS
25509   CFLAGS="$CFLAGS  -Wshadow"
25510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h.  */
25512
25513 int
25514 main (void)
25515 {
25516
25517   ;
25518   return 0;
25519 }
25520 _ACEOF
25521 if ac_fn_c_try_compile "$LINENO"
25522 then :
25523   ax_cv_check_cflags___Wshadow=yes
25524 else $as_nop
25525   ax_cv_check_cflags___Wshadow=no
25526 fi
25527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25528   CFLAGS=$ax_check_save_flags
25529 fi
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
25531 printf "%s\n" "$ax_cv_check_cflags___Wshadow" >&6; }
25532 if test "x$ax_cv_check_cflags___Wshadow" = xyes
25533 then :
25534   CFLAGS="$CFLAGS -Wshadow"
25535 else $as_nop
25536   :
25537 fi
25538
25539     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
25540 printf %s "checking whether C compiler accepts -Winline... " >&6; }
25541 if test ${ax_cv_check_cflags___Winline+y}
25542 then :
25543   printf %s "(cached) " >&6
25544 else $as_nop
25545
25546   ax_check_save_flags=$CFLAGS
25547   CFLAGS="$CFLAGS  -Winline"
25548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h.  */
25550
25551 int
25552 main (void)
25553 {
25554
25555   ;
25556   return 0;
25557 }
25558 _ACEOF
25559 if ac_fn_c_try_compile "$LINENO"
25560 then :
25561   ax_cv_check_cflags___Winline=yes
25562 else $as_nop
25563   ax_cv_check_cflags___Winline=no
25564 fi
25565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25566   CFLAGS=$ax_check_save_flags
25567 fi
25568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
25569 printf "%s\n" "$ax_cv_check_cflags___Winline" >&6; }
25570 if test "x$ax_cv_check_cflags___Winline" = xyes
25571 then :
25572   CFLAGS="$CFLAGS -Winline"
25573 else $as_nop
25574   :
25575 fi
25576
25577     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
25578 printf %s "checking whether C compiler accepts -Wnested-externs... " >&6; }
25579 if test ${ax_cv_check_cflags___Wnested_externs+y}
25580 then :
25581   printf %s "(cached) " >&6
25582 else $as_nop
25583
25584   ax_check_save_flags=$CFLAGS
25585   CFLAGS="$CFLAGS  -Wnested-externs"
25586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25587 /* end confdefs.h.  */
25588
25589 int
25590 main (void)
25591 {
25592
25593   ;
25594   return 0;
25595 }
25596 _ACEOF
25597 if ac_fn_c_try_compile "$LINENO"
25598 then :
25599   ax_cv_check_cflags___Wnested_externs=yes
25600 else $as_nop
25601   ax_cv_check_cflags___Wnested_externs=no
25602 fi
25603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25604   CFLAGS=$ax_check_save_flags
25605 fi
25606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
25607 printf "%s\n" "$ax_cv_check_cflags___Wnested_externs" >&6; }
25608 if test "x$ax_cv_check_cflags___Wnested_externs" = xyes
25609 then :
25610   CFLAGS="$CFLAGS -Wnested-externs"
25611 else $as_nop
25612   :
25613 fi
25614
25615     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
25616 printf %s "checking whether C compiler accepts -Wfloat-equal... " >&6; }
25617 if test ${ax_cv_check_cflags___Wfloat_equal+y}
25618 then :
25619   printf %s "(cached) " >&6
25620 else $as_nop
25621
25622   ax_check_save_flags=$CFLAGS
25623   CFLAGS="$CFLAGS  -Wfloat-equal"
25624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h.  */
25626
25627 int
25628 main (void)
25629 {
25630
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 if ac_fn_c_try_compile "$LINENO"
25636 then :
25637   ax_cv_check_cflags___Wfloat_equal=yes
25638 else $as_nop
25639   ax_cv_check_cflags___Wfloat_equal=no
25640 fi
25641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25642   CFLAGS=$ax_check_save_flags
25643 fi
25644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
25645 printf "%s\n" "$ax_cv_check_cflags___Wfloat_equal" >&6; }
25646 if test "x$ax_cv_check_cflags___Wfloat_equal" = xyes
25647 then :
25648   CFLAGS="$CFLAGS -Wfloat-equal"
25649 else $as_nop
25650   :
25651 fi
25652
25653     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
25654 printf %s "checking whether C compiler accepts -Wundef... " >&6; }
25655 if test ${ax_cv_check_cflags___Wundef+y}
25656 then :
25657   printf %s "(cached) " >&6
25658 else $as_nop
25659
25660   ax_check_save_flags=$CFLAGS
25661   CFLAGS="$CFLAGS  -Wundef"
25662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h.  */
25664
25665 int
25666 main (void)
25667 {
25668
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 if ac_fn_c_try_compile "$LINENO"
25674 then :
25675   ax_cv_check_cflags___Wundef=yes
25676 else $as_nop
25677   ax_cv_check_cflags___Wundef=no
25678 fi
25679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25680   CFLAGS=$ax_check_save_flags
25681 fi
25682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
25683 printf "%s\n" "$ax_cv_check_cflags___Wundef" >&6; }
25684 if test "x$ax_cv_check_cflags___Wundef" = xyes
25685 then :
25686   CFLAGS="$CFLAGS -Wundef"
25687 else $as_nop
25688   :
25689 fi
25690
25691     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
25692 printf %s "checking whether C compiler accepts -Wendif-labels... " >&6; }
25693 if test ${ax_cv_check_cflags___Wendif_labels+y}
25694 then :
25695   printf %s "(cached) " >&6
25696 else $as_nop
25697
25698   ax_check_save_flags=$CFLAGS
25699   CFLAGS="$CFLAGS  -Wendif-labels"
25700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h.  */
25702
25703 int
25704 main (void)
25705 {
25706
25707   ;
25708   return 0;
25709 }
25710 _ACEOF
25711 if ac_fn_c_try_compile "$LINENO"
25712 then :
25713   ax_cv_check_cflags___Wendif_labels=yes
25714 else $as_nop
25715   ax_cv_check_cflags___Wendif_labels=no
25716 fi
25717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25718   CFLAGS=$ax_check_save_flags
25719 fi
25720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
25721 printf "%s\n" "$ax_cv_check_cflags___Wendif_labels" >&6; }
25722 if test "x$ax_cv_check_cflags___Wendif_labels" = xyes
25723 then :
25724   CFLAGS="$CFLAGS -Wendif-labels"
25725 else $as_nop
25726   :
25727 fi
25728
25729     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
25730 printf %s "checking whether C compiler accepts -Wempty-body... " >&6; }
25731 if test ${ax_cv_check_cflags___Wempty_body+y}
25732 then :
25733   printf %s "(cached) " >&6
25734 else $as_nop
25735
25736   ax_check_save_flags=$CFLAGS
25737   CFLAGS="$CFLAGS  -Wempty-body"
25738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h.  */
25740
25741 int
25742 main (void)
25743 {
25744
25745   ;
25746   return 0;
25747 }
25748 _ACEOF
25749 if ac_fn_c_try_compile "$LINENO"
25750 then :
25751   ax_cv_check_cflags___Wempty_body=yes
25752 else $as_nop
25753   ax_cv_check_cflags___Wempty_body=no
25754 fi
25755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25756   CFLAGS=$ax_check_save_flags
25757 fi
25758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
25759 printf "%s\n" "$ax_cv_check_cflags___Wempty_body" >&6; }
25760 if test "x$ax_cv_check_cflags___Wempty_body" = xyes
25761 then :
25762   CFLAGS="$CFLAGS -Wempty-body"
25763 else $as_nop
25764   :
25765 fi
25766
25767     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
25768 printf %s "checking whether C compiler accepts -Wcast-align... " >&6; }
25769 if test ${ax_cv_check_cflags___Wcast_align+y}
25770 then :
25771   printf %s "(cached) " >&6
25772 else $as_nop
25773
25774   ax_check_save_flags=$CFLAGS
25775   CFLAGS="$CFLAGS  -Wcast-align"
25776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h.  */
25778
25779 int
25780 main (void)
25781 {
25782
25783   ;
25784   return 0;
25785 }
25786 _ACEOF
25787 if ac_fn_c_try_compile "$LINENO"
25788 then :
25789   ax_cv_check_cflags___Wcast_align=yes
25790 else $as_nop
25791   ax_cv_check_cflags___Wcast_align=no
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25794   CFLAGS=$ax_check_save_flags
25795 fi
25796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
25797 printf "%s\n" "$ax_cv_check_cflags___Wcast_align" >&6; }
25798 if test "x$ax_cv_check_cflags___Wcast_align" = xyes
25799 then :
25800   CFLAGS="$CFLAGS -Wcast-align"
25801 else $as_nop
25802   :
25803 fi
25804
25805     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
25806 printf %s "checking whether C compiler accepts -Wclobbered... " >&6; }
25807 if test ${ax_cv_check_cflags___Wclobbered+y}
25808 then :
25809   printf %s "(cached) " >&6
25810 else $as_nop
25811
25812   ax_check_save_flags=$CFLAGS
25813   CFLAGS="$CFLAGS  -Wclobbered"
25814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25815 /* end confdefs.h.  */
25816
25817 int
25818 main (void)
25819 {
25820
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_compile "$LINENO"
25826 then :
25827   ax_cv_check_cflags___Wclobbered=yes
25828 else $as_nop
25829   ax_cv_check_cflags___Wclobbered=no
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25832   CFLAGS=$ax_check_save_flags
25833 fi
25834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
25835 printf "%s\n" "$ax_cv_check_cflags___Wclobbered" >&6; }
25836 if test "x$ax_cv_check_cflags___Wclobbered" = xyes
25837 then :
25838   CFLAGS="$CFLAGS -Wclobbered"
25839 else $as_nop
25840   :
25841 fi
25842
25843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
25844 printf %s "checking whether C compiler accepts -Wvla... " >&6; }
25845 if test ${ax_cv_check_cflags___Wvla+y}
25846 then :
25847   printf %s "(cached) " >&6
25848 else $as_nop
25849
25850   ax_check_save_flags=$CFLAGS
25851   CFLAGS="$CFLAGS  -Wvla"
25852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h.  */
25854
25855 int
25856 main (void)
25857 {
25858
25859   ;
25860   return 0;
25861 }
25862 _ACEOF
25863 if ac_fn_c_try_compile "$LINENO"
25864 then :
25865   ax_cv_check_cflags___Wvla=yes
25866 else $as_nop
25867   ax_cv_check_cflags___Wvla=no
25868 fi
25869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25870   CFLAGS=$ax_check_save_flags
25871 fi
25872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
25873 printf "%s\n" "$ax_cv_check_cflags___Wvla" >&6; }
25874 if test "x$ax_cv_check_cflags___Wvla" = xyes
25875 then :
25876   CFLAGS="$CFLAGS -Wvla"
25877 else $as_nop
25878   :
25879 fi
25880
25881     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
25882 printf %s "checking whether C compiler accepts -Wpragmas... " >&6; }
25883 if test ${ax_cv_check_cflags___Wpragmas+y}
25884 then :
25885   printf %s "(cached) " >&6
25886 else $as_nop
25887
25888   ax_check_save_flags=$CFLAGS
25889   CFLAGS="$CFLAGS  -Wpragmas"
25890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25891 /* end confdefs.h.  */
25892
25893 int
25894 main (void)
25895 {
25896
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 if ac_fn_c_try_compile "$LINENO"
25902 then :
25903   ax_cv_check_cflags___Wpragmas=yes
25904 else $as_nop
25905   ax_cv_check_cflags___Wpragmas=no
25906 fi
25907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25908   CFLAGS=$ax_check_save_flags
25909 fi
25910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
25911 printf "%s\n" "$ax_cv_check_cflags___Wpragmas" >&6; }
25912 if test "x$ax_cv_check_cflags___Wpragmas" = xyes
25913 then :
25914   CFLAGS="$CFLAGS -Wpragmas"
25915 else $as_nop
25916   :
25917 fi
25918
25919     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
25920 printf %s "checking whether C compiler accepts -Wunreachable-code... " >&6; }
25921 if test ${ax_cv_check_cflags___Wunreachable_code+y}
25922 then :
25923   printf %s "(cached) " >&6
25924 else $as_nop
25925
25926   ax_check_save_flags=$CFLAGS
25927   CFLAGS="$CFLAGS  -Wunreachable-code"
25928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25929 /* end confdefs.h.  */
25930
25931 int
25932 main (void)
25933 {
25934
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 if ac_fn_c_try_compile "$LINENO"
25940 then :
25941   ax_cv_check_cflags___Wunreachable_code=yes
25942 else $as_nop
25943   ax_cv_check_cflags___Wunreachable_code=no
25944 fi
25945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25946   CFLAGS=$ax_check_save_flags
25947 fi
25948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
25949 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code" >&6; }
25950 if test "x$ax_cv_check_cflags___Wunreachable_code" = xyes
25951 then :
25952   CFLAGS="$CFLAGS -Wunreachable-code"
25953 else $as_nop
25954   :
25955 fi
25956
25957     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
25958 printf %s "checking whether C compiler accepts -Waddress... " >&6; }
25959 if test ${ax_cv_check_cflags___Waddress+y}
25960 then :
25961   printf %s "(cached) " >&6
25962 else $as_nop
25963
25964   ax_check_save_flags=$CFLAGS
25965   CFLAGS="$CFLAGS  -Waddress"
25966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967 /* end confdefs.h.  */
25968
25969 int
25970 main (void)
25971 {
25972
25973   ;
25974   return 0;
25975 }
25976 _ACEOF
25977 if ac_fn_c_try_compile "$LINENO"
25978 then :
25979   ax_cv_check_cflags___Waddress=yes
25980 else $as_nop
25981   ax_cv_check_cflags___Waddress=no
25982 fi
25983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25984   CFLAGS=$ax_check_save_flags
25985 fi
25986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
25987 printf "%s\n" "$ax_cv_check_cflags___Waddress" >&6; }
25988 if test "x$ax_cv_check_cflags___Waddress" = xyes
25989 then :
25990   CFLAGS="$CFLAGS -Waddress"
25991 else $as_nop
25992   :
25993 fi
25994
25995     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
25996 printf %s "checking whether C compiler accepts -Wattributes... " >&6; }
25997 if test ${ax_cv_check_cflags___Wattributes+y}
25998 then :
25999   printf %s "(cached) " >&6
26000 else $as_nop
26001
26002   ax_check_save_flags=$CFLAGS
26003   CFLAGS="$CFLAGS  -Wattributes"
26004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h.  */
26006
26007 int
26008 main (void)
26009 {
26010
26011   ;
26012   return 0;
26013 }
26014 _ACEOF
26015 if ac_fn_c_try_compile "$LINENO"
26016 then :
26017   ax_cv_check_cflags___Wattributes=yes
26018 else $as_nop
26019   ax_cv_check_cflags___Wattributes=no
26020 fi
26021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26022   CFLAGS=$ax_check_save_flags
26023 fi
26024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
26025 printf "%s\n" "$ax_cv_check_cflags___Wattributes" >&6; }
26026 if test "x$ax_cv_check_cflags___Wattributes" = xyes
26027 then :
26028   CFLAGS="$CFLAGS -Wattributes"
26029 else $as_nop
26030   :
26031 fi
26032
26033     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
26034 printf %s "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
26035 if test ${ax_cv_check_cflags___Wdiv_by_zero+y}
26036 then :
26037   printf %s "(cached) " >&6
26038 else $as_nop
26039
26040   ax_check_save_flags=$CFLAGS
26041   CFLAGS="$CFLAGS  -Wdiv-by-zero"
26042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h.  */
26044
26045 int
26046 main (void)
26047 {
26048
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 if ac_fn_c_try_compile "$LINENO"
26054 then :
26055   ax_cv_check_cflags___Wdiv_by_zero=yes
26056 else $as_nop
26057   ax_cv_check_cflags___Wdiv_by_zero=no
26058 fi
26059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26060   CFLAGS=$ax_check_save_flags
26061 fi
26062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
26063 printf "%s\n" "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
26064 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes
26065 then :
26066   CFLAGS="$CFLAGS -Wdiv-by-zero"
26067 else $as_nop
26068   :
26069 fi
26070
26071     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
26072 printf %s "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
26073 if test ${ax_cv_check_cflags___Wshorten_64_to_32+y}
26074 then :
26075   printf %s "(cached) " >&6
26076 else $as_nop
26077
26078   ax_check_save_flags=$CFLAGS
26079   CFLAGS="$CFLAGS  -Wshorten-64-to-32"
26080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26081 /* end confdefs.h.  */
26082
26083 int
26084 main (void)
26085 {
26086
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 if ac_fn_c_try_compile "$LINENO"
26092 then :
26093   ax_cv_check_cflags___Wshorten_64_to_32=yes
26094 else $as_nop
26095   ax_cv_check_cflags___Wshorten_64_to_32=no
26096 fi
26097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26098   CFLAGS=$ax_check_save_flags
26099 fi
26100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
26101 printf "%s\n" "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
26102 if test "x$ax_cv_check_cflags___Wshorten_64_to_32" = xyes
26103 then :
26104   CFLAGS="$CFLAGS -Wshorten-64-to-32"
26105 else $as_nop
26106   :
26107 fi
26108
26109
26110     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
26111 printf %s "checking whether C compiler accepts -Wconversion... " >&6; }
26112 if test ${ax_cv_check_cflags___Wconversion+y}
26113 then :
26114   printf %s "(cached) " >&6
26115 else $as_nop
26116
26117   ax_check_save_flags=$CFLAGS
26118   CFLAGS="$CFLAGS  -Wconversion"
26119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26120 /* end confdefs.h.  */
26121
26122 int
26123 main (void)
26124 {
26125
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 if ac_fn_c_try_compile "$LINENO"
26131 then :
26132   ax_cv_check_cflags___Wconversion=yes
26133 else $as_nop
26134   ax_cv_check_cflags___Wconversion=no
26135 fi
26136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26137   CFLAGS=$ax_check_save_flags
26138 fi
26139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wconversion" >&5
26140 printf "%s\n" "$ax_cv_check_cflags___Wconversion" >&6; }
26141 if test "x$ax_cv_check_cflags___Wconversion" = xyes
26142 then :
26143   CFLAGS="$CFLAGS -Wconversion"
26144 else $as_nop
26145   :
26146 fi
26147
26148     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextended-offsetof" >&5
26149 printf %s "checking whether C compiler accepts -Wextended-offsetof... " >&6; }
26150 if test ${ax_cv_check_cflags___Wextended_offsetof+y}
26151 then :
26152   printf %s "(cached) " >&6
26153 else $as_nop
26154
26155   ax_check_save_flags=$CFLAGS
26156   CFLAGS="$CFLAGS  -Wextended-offsetof"
26157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158 /* end confdefs.h.  */
26159
26160 int
26161 main (void)
26162 {
26163
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 if ac_fn_c_try_compile "$LINENO"
26169 then :
26170   ax_cv_check_cflags___Wextended_offsetof=yes
26171 else $as_nop
26172   ax_cv_check_cflags___Wextended_offsetof=no
26173 fi
26174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26175   CFLAGS=$ax_check_save_flags
26176 fi
26177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextended_offsetof" >&5
26178 printf "%s\n" "$ax_cv_check_cflags___Wextended_offsetof" >&6; }
26179 if test "x$ax_cv_check_cflags___Wextended_offsetof" = xyes
26180 then :
26181   CFLAGS="$CFLAGS -Wextended-offsetof"
26182 else $as_nop
26183   :
26184 fi
26185
26186     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
26187 printf %s "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
26188 if test ${ax_cv_check_cflags___Wformat_nonliteral+y}
26189 then :
26190   printf %s "(cached) " >&6
26191 else $as_nop
26192
26193   ax_check_save_flags=$CFLAGS
26194   CFLAGS="$CFLAGS  -Wformat-nonliteral"
26195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h.  */
26197
26198 int
26199 main (void)
26200 {
26201
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 if ac_fn_c_try_compile "$LINENO"
26207 then :
26208   ax_cv_check_cflags___Wformat_nonliteral=yes
26209 else $as_nop
26210   ax_cv_check_cflags___Wformat_nonliteral=no
26211 fi
26212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26213   CFLAGS=$ax_check_save_flags
26214 fi
26215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
26216 printf "%s\n" "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
26217 if test "x$ax_cv_check_cflags___Wformat_nonliteral" = xyes
26218 then :
26219   CFLAGS="$CFLAGS -Wformat-nonliteral"
26220 else $as_nop
26221   :
26222 fi
26223
26224     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlanguage-extension-token" >&5
26225 printf %s "checking whether C compiler accepts -Wlanguage-extension-token... " >&6; }
26226 if test ${ax_cv_check_cflags___Wlanguage_extension_token+y}
26227 then :
26228   printf %s "(cached) " >&6
26229 else $as_nop
26230
26231   ax_check_save_flags=$CFLAGS
26232   CFLAGS="$CFLAGS  -Wlanguage-extension-token"
26233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h.  */
26235
26236 int
26237 main (void)
26238 {
26239
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 if ac_fn_c_try_compile "$LINENO"
26245 then :
26246   ax_cv_check_cflags___Wlanguage_extension_token=yes
26247 else $as_nop
26248   ax_cv_check_cflags___Wlanguage_extension_token=no
26249 fi
26250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26251   CFLAGS=$ax_check_save_flags
26252 fi
26253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wlanguage_extension_token" >&5
26254 printf "%s\n" "$ax_cv_check_cflags___Wlanguage_extension_token" >&6; }
26255 if test "x$ax_cv_check_cflags___Wlanguage_extension_token" = xyes
26256 then :
26257   CFLAGS="$CFLAGS -Wlanguage-extension-token"
26258 else $as_nop
26259   :
26260 fi
26261
26262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5
26263 printf %s "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; }
26264 if test ${ax_cv_check_cflags___Wmissing_field_initializers+y}
26265 then :
26266   printf %s "(cached) " >&6
26267 else $as_nop
26268
26269   ax_check_save_flags=$CFLAGS
26270   CFLAGS="$CFLAGS  -Wmissing-field-initializers"
26271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h.  */
26273
26274 int
26275 main (void)
26276 {
26277
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 if ac_fn_c_try_compile "$LINENO"
26283 then :
26284   ax_cv_check_cflags___Wmissing_field_initializers=yes
26285 else $as_nop
26286   ax_cv_check_cflags___Wmissing_field_initializers=no
26287 fi
26288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26289   CFLAGS=$ax_check_save_flags
26290 fi
26291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_field_initializers" >&5
26292 printf "%s\n" "$ax_cv_check_cflags___Wmissing_field_initializers" >&6; }
26293 if test "x$ax_cv_check_cflags___Wmissing_field_initializers" = xyes
26294 then :
26295   CFLAGS="$CFLAGS -Wmissing-field-initializers"
26296 else $as_nop
26297   :
26298 fi
26299
26300     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-noreturn" >&5
26301 printf %s "checking whether C compiler accepts -Wmissing-noreturn... " >&6; }
26302 if test ${ax_cv_check_cflags___Wmissing_noreturn+y}
26303 then :
26304   printf %s "(cached) " >&6
26305 else $as_nop
26306
26307   ax_check_save_flags=$CFLAGS
26308   CFLAGS="$CFLAGS  -Wmissing-noreturn"
26309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26310 /* end confdefs.h.  */
26311
26312 int
26313 main (void)
26314 {
26315
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 if ac_fn_c_try_compile "$LINENO"
26321 then :
26322   ax_cv_check_cflags___Wmissing_noreturn=yes
26323 else $as_nop
26324   ax_cv_check_cflags___Wmissing_noreturn=no
26325 fi
26326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26327   CFLAGS=$ax_check_save_flags
26328 fi
26329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_noreturn" >&5
26330 printf "%s\n" "$ax_cv_check_cflags___Wmissing_noreturn" >&6; }
26331 if test "x$ax_cv_check_cflags___Wmissing_noreturn" = xyes
26332 then :
26333   CFLAGS="$CFLAGS -Wmissing-noreturn"
26334 else $as_nop
26335   :
26336 fi
26337
26338     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-variable-declarations" >&5
26339 printf %s "checking whether C compiler accepts -Wmissing-variable-declarations... " >&6; }
26340 if test ${ax_cv_check_cflags___Wmissing_variable_declarations+y}
26341 then :
26342   printf %s "(cached) " >&6
26343 else $as_nop
26344
26345   ax_check_save_flags=$CFLAGS
26346   CFLAGS="$CFLAGS  -Wmissing-variable-declarations"
26347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h.  */
26349
26350 int
26351 main (void)
26352 {
26353
26354   ;
26355   return 0;
26356 }
26357 _ACEOF
26358 if ac_fn_c_try_compile "$LINENO"
26359 then :
26360   ax_cv_check_cflags___Wmissing_variable_declarations=yes
26361 else $as_nop
26362   ax_cv_check_cflags___Wmissing_variable_declarations=no
26363 fi
26364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26365   CFLAGS=$ax_check_save_flags
26366 fi
26367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_variable_declarations" >&5
26368 printf "%s\n" "$ax_cv_check_cflags___Wmissing_variable_declarations" >&6; }
26369 if test "x$ax_cv_check_cflags___Wmissing_variable_declarations" = xyes
26370 then :
26371   CFLAGS="$CFLAGS -Wmissing-variable-declarations"
26372 else $as_nop
26373   :
26374 fi
26375
26376     # Not used because we cannot change public structs
26377     # AX_CHECK_COMPILE_FLAG([-Wpadded], [CFLAGS="$CFLAGS -Wpadded"])
26378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-conversion" >&5
26379 printf %s "checking whether C compiler accepts -Wsign-conversion... " >&6; }
26380 if test ${ax_cv_check_cflags___Wsign_conversion+y}
26381 then :
26382   printf %s "(cached) " >&6
26383 else $as_nop
26384
26385   ax_check_save_flags=$CFLAGS
26386   CFLAGS="$CFLAGS  -Wsign-conversion"
26387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h.  */
26389
26390 int
26391 main (void)
26392 {
26393
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 if ac_fn_c_try_compile "$LINENO"
26399 then :
26400   ax_cv_check_cflags___Wsign_conversion=yes
26401 else $as_nop
26402   ax_cv_check_cflags___Wsign_conversion=no
26403 fi
26404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26405   CFLAGS=$ax_check_save_flags
26406 fi
26407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsign_conversion" >&5
26408 printf "%s\n" "$ax_cv_check_cflags___Wsign_conversion" >&6; }
26409 if test "x$ax_cv_check_cflags___Wsign_conversion" = xyes
26410 then :
26411   CFLAGS="$CFLAGS -Wsign-conversion"
26412 else $as_nop
26413   :
26414 fi
26415
26416     # Not used because this basically disallows default case
26417     # AX_CHECK_COMPILE_FLAG([-Wswitch-enum], [CFLAGS="$CFLAGS -Wswitch-enum"])
26418     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code-break" >&5
26419 printf %s "checking whether C compiler accepts -Wunreachable-code-break... " >&6; }
26420 if test ${ax_cv_check_cflags___Wunreachable_code_break+y}
26421 then :
26422   printf %s "(cached) " >&6
26423 else $as_nop
26424
26425   ax_check_save_flags=$CFLAGS
26426   CFLAGS="$CFLAGS  -Wunreachable-code-break"
26427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429
26430 int
26431 main (void)
26432 {
26433
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 if ac_fn_c_try_compile "$LINENO"
26439 then :
26440   ax_cv_check_cflags___Wunreachable_code_break=yes
26441 else $as_nop
26442   ax_cv_check_cflags___Wunreachable_code_break=no
26443 fi
26444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26445   CFLAGS=$ax_check_save_flags
26446 fi
26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code_break" >&5
26448 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code_break" >&6; }
26449 if test "x$ax_cv_check_cflags___Wunreachable_code_break" = xyes
26450 then :
26451   CFLAGS="$CFLAGS -Wunreachable-code-break"
26452 else $as_nop
26453   :
26454 fi
26455
26456     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-macros" >&5
26457 printf %s "checking whether C compiler accepts -Wunused-macros... " >&6; }
26458 if test ${ax_cv_check_cflags___Wunused_macros+y}
26459 then :
26460   printf %s "(cached) " >&6
26461 else $as_nop
26462
26463   ax_check_save_flags=$CFLAGS
26464   CFLAGS="$CFLAGS  -Wunused-macros"
26465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26466 /* end confdefs.h.  */
26467
26468 int
26469 main (void)
26470 {
26471
26472   ;
26473   return 0;
26474 }
26475 _ACEOF
26476 if ac_fn_c_try_compile "$LINENO"
26477 then :
26478   ax_cv_check_cflags___Wunused_macros=yes
26479 else $as_nop
26480   ax_cv_check_cflags___Wunused_macros=no
26481 fi
26482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26483   CFLAGS=$ax_check_save_flags
26484 fi
26485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_macros" >&5
26486 printf "%s\n" "$ax_cv_check_cflags___Wunused_macros" >&6; }
26487 if test "x$ax_cv_check_cflags___Wunused_macros" = xyes
26488 then :
26489   CFLAGS="$CFLAGS -Wunused-macros"
26490 else $as_nop
26491   :
26492 fi
26493
26494     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
26495 printf %s "checking whether C compiler accepts -Wunused-parameter... " >&6; }
26496 if test ${ax_cv_check_cflags___Wunused_parameter+y}
26497 then :
26498   printf %s "(cached) " >&6
26499 else $as_nop
26500
26501   ax_check_save_flags=$CFLAGS
26502   CFLAGS="$CFLAGS  -Wunused-parameter"
26503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h.  */
26505
26506 int
26507 main (void)
26508 {
26509
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 if ac_fn_c_try_compile "$LINENO"
26515 then :
26516   ax_cv_check_cflags___Wunused_parameter=yes
26517 else $as_nop
26518   ax_cv_check_cflags___Wunused_parameter=no
26519 fi
26520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26521   CFLAGS=$ax_check_save_flags
26522 fi
26523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_parameter" >&5
26524 printf "%s\n" "$ax_cv_check_cflags___Wunused_parameter" >&6; }
26525 if test "x$ax_cv_check_cflags___Wunused_parameter" = xyes
26526 then :
26527   CFLAGS="$CFLAGS -Wunused-parameter"
26528 else $as_nop
26529   :
26530 fi
26531
26532     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
26533 printf %s "checking whether C compiler accepts -Wredundant-decls... " >&6; }
26534 if test ${ax_cv_check_cflags___Wredundant_decls+y}
26535 then :
26536   printf %s "(cached) " >&6
26537 else $as_nop
26538
26539   ax_check_save_flags=$CFLAGS
26540   CFLAGS="$CFLAGS  -Wredundant-decls"
26541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h.  */
26543
26544 int
26545 main (void)
26546 {
26547
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 if ac_fn_c_try_compile "$LINENO"
26553 then :
26554   ax_cv_check_cflags___Wredundant_decls=yes
26555 else $as_nop
26556   ax_cv_check_cflags___Wredundant_decls=no
26557 fi
26558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26559   CFLAGS=$ax_check_save_flags
26560 fi
26561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wredundant_decls" >&5
26562 printf "%s\n" "$ax_cv_check_cflags___Wredundant_decls" >&6; }
26563 if test "x$ax_cv_check_cflags___Wredundant_decls" = xyes
26564 then :
26565   CFLAGS="$CFLAGS -Wredundant-decls"
26566 else $as_nop
26567   :
26568 fi
26569
26570     # Only work with Clang for the moment
26571     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
26572 printf %s "checking whether C compiler accepts -Wheader-guard... " >&6; }
26573 if test ${ax_cv_check_cflags___Wheader_guard+y}
26574 then :
26575   printf %s "(cached) " >&6
26576 else $as_nop
26577
26578   ax_check_save_flags=$CFLAGS
26579   CFLAGS="$CFLAGS  -Wheader-guard"
26580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26581 /* end confdefs.h.  */
26582
26583 int
26584 main (void)
26585 {
26586
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 if ac_fn_c_try_compile "$LINENO"
26592 then :
26593   ax_cv_check_cflags___Wheader_guard=yes
26594 else $as_nop
26595   ax_cv_check_cflags___Wheader_guard=no
26596 fi
26597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26598   CFLAGS=$ax_check_save_flags
26599 fi
26600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
26601 printf "%s\n" "$ax_cv_check_cflags___Wheader_guard" >&6; }
26602 if test "x$ax_cv_check_cflags___Wheader_guard" = xyes
26603 then :
26604   CFLAGS="$CFLAGS -Wheader-guard"
26605 else $as_nop
26606   :
26607 fi
26608
26609     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
26610 printf %s "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
26611 if test ${ax_cv_check_cflags___Wsometimes_uninitialized+y}
26612 then :
26613   printf %s "(cached) " >&6
26614 else $as_nop
26615
26616   ax_check_save_flags=$CFLAGS
26617   CFLAGS="$CFLAGS  -Wsometimes-uninitialized"
26618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h.  */
26620
26621 int
26622 main (void)
26623 {
26624
26625   ;
26626   return 0;
26627 }
26628 _ACEOF
26629 if ac_fn_c_try_compile "$LINENO"
26630 then :
26631   ax_cv_check_cflags___Wsometimes_uninitialized=yes
26632 else $as_nop
26633   ax_cv_check_cflags___Wsometimes_uninitialized=no
26634 fi
26635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26636   CFLAGS=$ax_check_save_flags
26637 fi
26638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
26639 printf "%s\n" "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
26640 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes
26641 then :
26642   CFLAGS="$CFLAGS -Wsometimes-uninitialized"
26643 else $as_nop
26644   :
26645 fi
26646
26647
26648     # This is required because we pass format string as "const char*.
26649     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-nonliteral" >&5
26650 printf %s "checking whether C compiler accepts -Wno-format-nonliteral... " >&6; }
26651 if test ${ax_cv_check_cflags___Wno_format_nonliteral+y}
26652 then :
26653   printf %s "(cached) " >&6
26654 else $as_nop
26655
26656   ax_check_save_flags=$CFLAGS
26657   CFLAGS="$CFLAGS  -Wno-format-nonliteral"
26658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h.  */
26660
26661 int
26662 main (void)
26663 {
26664
26665   ;
26666   return 0;
26667 }
26668 _ACEOF
26669 if ac_fn_c_try_compile "$LINENO"
26670 then :
26671   ax_cv_check_cflags___Wno_format_nonliteral=yes
26672 else $as_nop
26673   ax_cv_check_cflags___Wno_format_nonliteral=no
26674 fi
26675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26676   CFLAGS=$ax_check_save_flags
26677 fi
26678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_nonliteral" >&5
26679 printf "%s\n" "$ax_cv_check_cflags___Wno_format_nonliteral" >&6; }
26680 if test "x$ax_cv_check_cflags___Wno_format_nonliteral" = xyes
26681 then :
26682   CFLAGS="$CFLAGS -Wno-format-nonliteral"
26683 else $as_nop
26684   :
26685 fi
26686
26687
26688     # For C++ compiler
26689     ac_ext=cpp
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26694
26695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wall" >&5
26696 printf %s "checking whether C++ compiler accepts -Wall... " >&6; }
26697 if test ${ax_cv_check_cxxflags___Wall+y}
26698 then :
26699   printf %s "(cached) " >&6
26700 else $as_nop
26701
26702   ax_check_save_flags=$CXXFLAGS
26703   CXXFLAGS="$CXXFLAGS  -Wall"
26704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h.  */
26706
26707 int
26708 main (void)
26709 {
26710
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 if ac_fn_cxx_try_compile "$LINENO"
26716 then :
26717   ax_cv_check_cxxflags___Wall=yes
26718 else $as_nop
26719   ax_cv_check_cxxflags___Wall=no
26720 fi
26721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26722   CXXFLAGS=$ax_check_save_flags
26723 fi
26724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wall" >&5
26725 printf "%s\n" "$ax_cv_check_cxxflags___Wall" >&6; }
26726 if test "x$ax_cv_check_cxxflags___Wall" = xyes
26727 then :
26728   CXXFLAGS="$CXXFLAGS -Wall"
26729 else $as_nop
26730   :
26731 fi
26732
26733     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror" >&5
26734 printf %s "checking whether C++ compiler accepts -Werror... " >&6; }
26735 if test ${ax_cv_check_cxxflags___Werror+y}
26736 then :
26737   printf %s "(cached) " >&6
26738 else $as_nop
26739
26740   ax_check_save_flags=$CXXFLAGS
26741   CXXFLAGS="$CXXFLAGS  -Werror"
26742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26743 /* end confdefs.h.  */
26744
26745 int
26746 main (void)
26747 {
26748
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_cxx_try_compile "$LINENO"
26754 then :
26755   ax_cv_check_cxxflags___Werror=yes
26756 else $as_nop
26757   ax_cv_check_cxxflags___Werror=no
26758 fi
26759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26760   CXXFLAGS=$ax_check_save_flags
26761 fi
26762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror" >&5
26763 printf "%s\n" "$ax_cv_check_cxxflags___Werror" >&6; }
26764 if test "x$ax_cv_check_cxxflags___Werror" = xyes
26765 then :
26766   CXXFLAGS="$CXXFLAGS -Werror"
26767 else $as_nop
26768   :
26769 fi
26770
26771     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wformat-security" >&5
26772 printf %s "checking whether C++ compiler accepts -Wformat-security... " >&6; }
26773 if test ${ax_cv_check_cxxflags___Wformat_security+y}
26774 then :
26775   printf %s "(cached) " >&6
26776 else $as_nop
26777
26778   ax_check_save_flags=$CXXFLAGS
26779   CXXFLAGS="$CXXFLAGS  -Wformat-security"
26780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h.  */
26782
26783 int
26784 main (void)
26785 {
26786
26787   ;
26788   return 0;
26789 }
26790 _ACEOF
26791 if ac_fn_cxx_try_compile "$LINENO"
26792 then :
26793   ax_cv_check_cxxflags___Wformat_security=yes
26794 else $as_nop
26795   ax_cv_check_cxxflags___Wformat_security=no
26796 fi
26797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26798   CXXFLAGS=$ax_check_save_flags
26799 fi
26800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wformat_security" >&5
26801 printf "%s\n" "$ax_cv_check_cxxflags___Wformat_security" >&6; }
26802 if test "x$ax_cv_check_cxxflags___Wformat_security" = xyes
26803 then :
26804   CXXFLAGS="$CXXFLAGS -Wformat-security"
26805 else $as_nop
26806   :
26807 fi
26808
26809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wsometimes-uninitialized" >&5
26810 printf %s "checking whether C++ compiler accepts -Wsometimes-uninitialized... " >&6; }
26811 if test ${ax_cv_check_cxxflags___Wsometimes_uninitialized+y}
26812 then :
26813   printf %s "(cached) " >&6
26814 else $as_nop
26815
26816   ax_check_save_flags=$CXXFLAGS
26817   CXXFLAGS="$CXXFLAGS  -Wsometimes-uninitialized"
26818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819 /* end confdefs.h.  */
26820
26821 int
26822 main (void)
26823 {
26824
26825   ;
26826   return 0;
26827 }
26828 _ACEOF
26829 if ac_fn_cxx_try_compile "$LINENO"
26830 then :
26831   ax_cv_check_cxxflags___Wsometimes_uninitialized=yes
26832 else $as_nop
26833   ax_cv_check_cxxflags___Wsometimes_uninitialized=no
26834 fi
26835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26836   CXXFLAGS=$ax_check_save_flags
26837 fi
26838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wsometimes_uninitialized" >&5
26839 printf "%s\n" "$ax_cv_check_cxxflags___Wsometimes_uninitialized" >&6; }
26840 if test "x$ax_cv_check_cxxflags___Wsometimes_uninitialized" = xyes
26841 then :
26842   CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
26843 else $as_nop
26844   :
26845 fi
26846
26847     # Disable noexcept-type warning of g++-7.  This is not harmful as
26848     # long as all source files are compiled with the same compiler.
26849     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-noexcept-type" >&5
26850 printf %s "checking whether C++ compiler accepts -Wno-noexcept-type... " >&6; }
26851 if test ${ax_cv_check_cxxflags___Wno_noexcept_type+y}
26852 then :
26853   printf %s "(cached) " >&6
26854 else $as_nop
26855
26856   ax_check_save_flags=$CXXFLAGS
26857   CXXFLAGS="$CXXFLAGS  -Wno-noexcept-type"
26858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26859 /* end confdefs.h.  */
26860
26861 int
26862 main (void)
26863 {
26864
26865   ;
26866   return 0;
26867 }
26868 _ACEOF
26869 if ac_fn_cxx_try_compile "$LINENO"
26870 then :
26871   ax_cv_check_cxxflags___Wno_noexcept_type=yes
26872 else $as_nop
26873   ax_cv_check_cxxflags___Wno_noexcept_type=no
26874 fi
26875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26876   CXXFLAGS=$ax_check_save_flags
26877 fi
26878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_noexcept_type" >&5
26879 printf "%s\n" "$ax_cv_check_cxxflags___Wno_noexcept_type" >&6; }
26880 if test "x$ax_cv_check_cxxflags___Wno_noexcept_type" = xyes
26881 then :
26882   CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
26883 else $as_nop
26884   :
26885 fi
26886
26887     ac_ext=c
26888 ac_cpp='$CPP $CPPFLAGS'
26889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26892
26893 fi
26894
26895 WARNCFLAGS=$CFLAGS
26896 WARNCXXFLAGS=$CXXFLAGS
26897
26898 CFLAGS=$save_CFLAGS
26899 CXXFLAGS=$save_CXXFLAGS
26900
26901
26902
26903
26904 EXTRACFLAG=
26905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
26906 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
26907 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
26908 then :
26909   printf %s "(cached) " >&6
26910 else $as_nop
26911
26912   ax_check_save_flags=$CFLAGS
26913   CFLAGS="$CFLAGS  -fvisibility=hidden"
26914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h.  */
26916
26917 int
26918 main (void)
26919 {
26920
26921   ;
26922   return 0;
26923 }
26924 _ACEOF
26925 if ac_fn_c_try_compile "$LINENO"
26926 then :
26927   ax_cv_check_cflags___fvisibility_hidden=yes
26928 else $as_nop
26929   ax_cv_check_cflags___fvisibility_hidden=no
26930 fi
26931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26932   CFLAGS=$ax_check_save_flags
26933 fi
26934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
26935 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
26936 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
26937 then :
26938   EXTRACFLAG="-fvisibility=hidden"
26939 else $as_nop
26940   :
26941 fi
26942
26943
26944
26945
26946 if test "x$debug" != "xno"; then
26947
26948 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
26949
26950 fi
26951
26952 enable_threads=yes
26953 # Some platform does not have working std::future.  We disable
26954 # threading for those platforms.
26955 if test "x$threads" != "xyes" ||
26956    test "x$have_std_future" != "xyes"; then
26957     enable_threads=no
26958
26959 printf "%s\n" "#define NOTHREADS 1" >>confdefs.h
26960
26961 fi
26962
26963 # propagate $enable_static to tests/Makefile.am
26964  if test "x$enable_static" = "xyes"; then
26965   ENABLE_STATIC_TRUE=
26966   ENABLE_STATIC_FALSE='#'
26967 else
26968   ENABLE_STATIC_TRUE='#'
26969   ENABLE_STATIC_FALSE=
26970 fi
26971
26972
26973
26974
26975
26976 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 bpf/Makefile 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"
26977
26978 cat >confcache <<\_ACEOF
26979 # This file is a shell script that caches the results of configure
26980 # tests run on this system so they can be shared between configure
26981 # scripts and configure runs, see configure's option --config-cache.
26982 # It is not useful on other systems.  If it contains results you don't
26983 # want to keep, you may remove or edit it.
26984 #
26985 # config.status only pays attention to the cache file if you give it
26986 # the --recheck option to rerun configure.
26987 #
26988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26990 # following values.
26991
26992 _ACEOF
26993
26994 # The following way of writing the cache mishandles newlines in values,
26995 # but we know of no workaround that is simple, portable, and efficient.
26996 # So, we kill variables containing newlines.
26997 # Ultrix sh set writes to stderr and can't be redirected directly,
26998 # and sets the high bit in the cache file unless we assign to the vars.
26999 (
27000   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27001     eval ac_val=\$$ac_var
27002     case $ac_val in #(
27003     *${as_nl}*)
27004       case $ac_var in #(
27005       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27006 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27007       esac
27008       case $ac_var in #(
27009       _ | IFS | as_nl) ;; #(
27010       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27011       *) { eval $ac_var=; unset $ac_var;} ;;
27012       esac ;;
27013     esac
27014   done
27015
27016   (set) 2>&1 |
27017     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27018     *${as_nl}ac_space=\ *)
27019       # `set' does not quote correctly, so add quotes: double-quote
27020       # substitution turns \\\\ into \\, and sed turns \\ into \.
27021       sed -n \
27022         "s/'/'\\\\''/g;
27023           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27024       ;; #(
27025     *)
27026       # `set' quotes correctly as required by POSIX, so do not add quotes.
27027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27028       ;;
27029     esac |
27030     sort
27031 ) |
27032   sed '
27033      /^ac_cv_env_/b end
27034      t clear
27035      :clear
27036      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
27037      t end
27038      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27039      :end' >>confcache
27040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27041   if test -w "$cache_file"; then
27042     if test "x$cache_file" != "x/dev/null"; then
27043       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27044 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
27045       if test ! -f "$cache_file" || test -h "$cache_file"; then
27046         cat confcache >"$cache_file"
27047       else
27048         case $cache_file in #(
27049         */* | ?:*)
27050           mv -f confcache "$cache_file"$$ &&
27051           mv -f "$cache_file"$$ "$cache_file" ;; #(
27052         *)
27053           mv -f confcache "$cache_file" ;;
27054         esac
27055       fi
27056     fi
27057   else
27058     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27059 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
27060   fi
27061 fi
27062 rm -f confcache
27063
27064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27065 # Let make expand exec_prefix.
27066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27067
27068 DEFS=-DHAVE_CONFIG_H
27069
27070 ac_libobjs=
27071 ac_ltlibobjs=
27072 U=
27073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27074   # 1. Remove the extension, and $U if already installed.
27075   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27076   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
27077   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27078   #    will be set to the directory where LIBOBJS objects are built.
27079   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27080   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27081 done
27082 LIBOBJS=$ac_libobjs
27083
27084 LTLIBOBJS=$ac_ltlibobjs
27085
27086
27087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27088 printf %s "checking that generated files are newer than configure... " >&6; }
27089    if test -n "$am_sleep_pid"; then
27090      # Hide warnings about reused PIDs.
27091      wait $am_sleep_pid 2>/dev/null
27092    fi
27093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27094 printf "%s\n" "done" >&6; }
27095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27096   as_fn_error $? "conditional \"AMDEP\" was never defined.
27097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27098 fi
27099 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27100   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27102 fi
27103  if test -n "$EXEEXT"; then
27104   am__EXEEXT_TRUE=
27105   am__EXEEXT_FALSE='#'
27106 else
27107   am__EXEEXT_TRUE='#'
27108   am__EXEEXT_FALSE=
27109 fi
27110
27111 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27112   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27114 fi
27115 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
27116   as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
27117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27118 fi
27119 if test -z "${HAVE_LIBBPF_TRUE}" && test -z "${HAVE_LIBBPF_FALSE}"; then
27120   as_fn_error $? "conditional \"HAVE_LIBBPF\" was never defined.
27121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27122 fi
27123 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
27124   as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
27125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27126 fi
27127 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
27128   as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
27129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27130 fi
27131 if test -z "${ENABLE_HTTP3_TRUE}" && test -z "${ENABLE_HTTP3_FALSE}"; then
27132   as_fn_error $? "conditional \"ENABLE_HTTP3\" was never defined.
27133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27134 fi
27135 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
27136   as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
27137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27138 fi
27139 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
27140   as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
27141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27142 fi
27143 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
27144   as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
27145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27146 fi
27147 if test -z "${ENABLE_THIRD_PARTY_TRUE}" && test -z "${ENABLE_THIRD_PARTY_FALSE}"; then
27148   as_fn_error $? "conditional \"ENABLE_THIRD_PARTY\" was never defined.
27149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27150 fi
27151 if test -z "${HAVE_MRUBY_TRUE}" && test -z "${HAVE_MRUBY_FALSE}"; then
27152   as_fn_error $? "conditional \"HAVE_MRUBY\" was never defined.
27153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27154 fi
27155 if test -z "${HAVE_NEVERBLEED_TRUE}" && test -z "${HAVE_NEVERBLEED_FALSE}"; then
27156   as_fn_error $? "conditional \"HAVE_NEVERBLEED\" was never defined.
27157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27158 fi
27159 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
27160   as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
27161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27162 fi
27163 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
27164   as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
27165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27166 fi
27167 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
27168   as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
27169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27170 fi
27171
27172 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
27173   as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
27174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27175 fi
27176
27177 : "${CONFIG_STATUS=./config.status}"
27178 ac_write_fail=0
27179 ac_clean_files_save=$ac_clean_files
27180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27182 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
27183 as_write_fail=0
27184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27185 #! $SHELL
27186 # Generated by $as_me.
27187 # Run this file to recreate the current configuration.
27188 # Compiler output produced by configure, useful for debugging
27189 # configure, is in config.log if it exists.
27190
27191 debug=false
27192 ac_cs_recheck=false
27193 ac_cs_silent=false
27194
27195 SHELL=\${CONFIG_SHELL-$SHELL}
27196 export SHELL
27197 _ASEOF
27198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27199 ## -------------------- ##
27200 ## M4sh Initialization. ##
27201 ## -------------------- ##
27202
27203 # Be more Bourne compatible
27204 DUALCASE=1; export DUALCASE # for MKS sh
27205 as_nop=:
27206 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27207 then :
27208   emulate sh
27209   NULLCMD=:
27210   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27211   # is contrary to our usage.  Disable this feature.
27212   alias -g '${1+"$@"}'='"$@"'
27213   setopt NO_GLOB_SUBST
27214 else $as_nop
27215   case `(set -o) 2>/dev/null` in #(
27216   *posix*) :
27217     set -o posix ;; #(
27218   *) :
27219      ;;
27220 esac
27221 fi
27222
27223
27224
27225 # Reset variables that may have inherited troublesome values from
27226 # the environment.
27227
27228 # IFS needs to be set, to space, tab, and newline, in precisely that order.
27229 # (If _AS_PATH_WALK were called with IFS unset, it would have the
27230 # side effect of setting IFS to empty, thus disabling word splitting.)
27231 # Quoting is to prevent editors from complaining about space-tab.
27232 as_nl='
27233 '
27234 export as_nl
27235 IFS=" ""        $as_nl"
27236
27237 PS1='$ '
27238 PS2='> '
27239 PS4='+ '
27240
27241 # Ensure predictable behavior from utilities with locale-dependent output.
27242 LC_ALL=C
27243 export LC_ALL
27244 LANGUAGE=C
27245 export LANGUAGE
27246
27247 # We cannot yet rely on "unset" to work, but we need these variables
27248 # to be unset--not just set to an empty or harmless value--now, to
27249 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
27250 # also avoids known problems related to "unset" and subshell syntax
27251 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
27252 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
27253 do eval test \${$as_var+y} \
27254   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27255 done
27256
27257 # Ensure that fds 0, 1, and 2 are open.
27258 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
27259 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
27260 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
27261
27262 # The user is always right.
27263 if ${PATH_SEPARATOR+false} :; then
27264   PATH_SEPARATOR=:
27265   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27266     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27267       PATH_SEPARATOR=';'
27268   }
27269 fi
27270
27271
27272 # Find who we are.  Look in the path if we contain no directory separator.
27273 as_myself=
27274 case $0 in #((
27275   *[\\/]* ) as_myself=$0 ;;
27276   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27278 do
27279   IFS=$as_save_IFS
27280   case $as_dir in #(((
27281     '') as_dir=./ ;;
27282     */) ;;
27283     *) as_dir=$as_dir/ ;;
27284   esac
27285     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
27286   done
27287 IFS=$as_save_IFS
27288
27289      ;;
27290 esac
27291 # We did not find ourselves, most probably we were run as `sh COMMAND'
27292 # in which case we are not to be found in the path.
27293 if test "x$as_myself" = x; then
27294   as_myself=$0
27295 fi
27296 if test ! -f "$as_myself"; then
27297   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27298   exit 1
27299 fi
27300
27301
27302
27303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27304 # ----------------------------------------
27305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27307 # script with STATUS, using 1 if that was 0.
27308 as_fn_error ()
27309 {
27310   as_status=$1; test $as_status -eq 0 && as_status=1
27311   if test "$4"; then
27312     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27313     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27314   fi
27315   printf "%s\n" "$as_me: error: $2" >&2
27316   as_fn_exit $as_status
27317 } # as_fn_error
27318
27319
27320
27321 # as_fn_set_status STATUS
27322 # -----------------------
27323 # Set $? to STATUS, without forking.
27324 as_fn_set_status ()
27325 {
27326   return $1
27327 } # as_fn_set_status
27328
27329 # as_fn_exit STATUS
27330 # -----------------
27331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27332 as_fn_exit ()
27333 {
27334   set +e
27335   as_fn_set_status $1
27336   exit $1
27337 } # as_fn_exit
27338
27339 # as_fn_unset VAR
27340 # ---------------
27341 # Portably unset VAR.
27342 as_fn_unset ()
27343 {
27344   { eval $1=; unset $1;}
27345 }
27346 as_unset=as_fn_unset
27347
27348 # as_fn_append VAR VALUE
27349 # ----------------------
27350 # Append the text in VALUE to the end of the definition contained in VAR. Take
27351 # advantage of any shell optimizations that allow amortized linear growth over
27352 # repeated appends, instead of the typical quadratic growth present in naive
27353 # implementations.
27354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
27355 then :
27356   eval 'as_fn_append ()
27357   {
27358     eval $1+=\$2
27359   }'
27360 else $as_nop
27361   as_fn_append ()
27362   {
27363     eval $1=\$$1\$2
27364   }
27365 fi # as_fn_append
27366
27367 # as_fn_arith ARG...
27368 # ------------------
27369 # Perform arithmetic evaluation on the ARGs, and store the result in the
27370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27371 # must be portable across $(()) and expr.
27372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
27373 then :
27374   eval 'as_fn_arith ()
27375   {
27376     as_val=$(( $* ))
27377   }'
27378 else $as_nop
27379   as_fn_arith ()
27380   {
27381     as_val=`expr "$@" || test $? -eq 1`
27382   }
27383 fi # as_fn_arith
27384
27385
27386 if expr a : '\(a\)' >/dev/null 2>&1 &&
27387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27388   as_expr=expr
27389 else
27390   as_expr=false
27391 fi
27392
27393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27394   as_basename=basename
27395 else
27396   as_basename=false
27397 fi
27398
27399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27400   as_dirname=dirname
27401 else
27402   as_dirname=false
27403 fi
27404
27405 as_me=`$as_basename -- "$0" ||
27406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27407          X"$0" : 'X\(//\)$' \| \
27408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27409 printf "%s\n" X/"$0" |
27410     sed '/^.*\/\([^/][^/]*\)\/*$/{
27411             s//\1/
27412             q
27413           }
27414           /^X\/\(\/\/\)$/{
27415             s//\1/
27416             q
27417           }
27418           /^X\/\(\/\).*/{
27419             s//\1/
27420             q
27421           }
27422           s/.*/./; q'`
27423
27424 # Avoid depending upon Character Ranges.
27425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27428 as_cr_digits='0123456789'
27429 as_cr_alnum=$as_cr_Letters$as_cr_digits
27430
27431
27432 # Determine whether it's possible to make 'echo' print without a newline.
27433 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
27434 # for compatibility with existing Makefiles.
27435 ECHO_C= ECHO_N= ECHO_T=
27436 case `echo -n x` in #(((((
27437 -n*)
27438   case `echo 'xy\c'` in
27439   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27440   xy)  ECHO_C='\c';;
27441   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27442        ECHO_T=' ';;
27443   esac;;
27444 *)
27445   ECHO_N='-n';;
27446 esac
27447
27448 # For backward compatibility with old third-party macros, we provide
27449 # the shell variables $as_echo and $as_echo_n.  New code should use
27450 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27451 as_echo='printf %s\n'
27452 as_echo_n='printf %s'
27453
27454 rm -f conf$$ conf$$.exe conf$$.file
27455 if test -d conf$$.dir; then
27456   rm -f conf$$.dir/conf$$.file
27457 else
27458   rm -f conf$$.dir
27459   mkdir conf$$.dir 2>/dev/null
27460 fi
27461 if (echo >conf$$.file) 2>/dev/null; then
27462   if ln -s conf$$.file conf$$ 2>/dev/null; then
27463     as_ln_s='ln -s'
27464     # ... but there are two gotchas:
27465     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27466     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27467     # In both cases, we have to default to `cp -pR'.
27468     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27469       as_ln_s='cp -pR'
27470   elif ln conf$$.file conf$$ 2>/dev/null; then
27471     as_ln_s=ln
27472   else
27473     as_ln_s='cp -pR'
27474   fi
27475 else
27476   as_ln_s='cp -pR'
27477 fi
27478 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27479 rmdir conf$$.dir 2>/dev/null
27480
27481
27482 # as_fn_mkdir_p
27483 # -------------
27484 # Create "$as_dir" as a directory, including parents if necessary.
27485 as_fn_mkdir_p ()
27486 {
27487
27488   case $as_dir in #(
27489   -*) as_dir=./$as_dir;;
27490   esac
27491   test -d "$as_dir" || eval $as_mkdir_p || {
27492     as_dirs=
27493     while :; do
27494       case $as_dir in #(
27495       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27496       *) as_qdir=$as_dir;;
27497       esac
27498       as_dirs="'$as_qdir' $as_dirs"
27499       as_dir=`$as_dirname -- "$as_dir" ||
27500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501          X"$as_dir" : 'X\(//\)[^/]' \| \
27502          X"$as_dir" : 'X\(//\)$' \| \
27503          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27504 printf "%s\n" X"$as_dir" |
27505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27506             s//\1/
27507             q
27508           }
27509           /^X\(\/\/\)[^/].*/{
27510             s//\1/
27511             q
27512           }
27513           /^X\(\/\/\)$/{
27514             s//\1/
27515             q
27516           }
27517           /^X\(\/\).*/{
27518             s//\1/
27519             q
27520           }
27521           s/.*/./; q'`
27522       test -d "$as_dir" && break
27523     done
27524     test -z "$as_dirs" || eval "mkdir $as_dirs"
27525   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27526
27527
27528 } # as_fn_mkdir_p
27529 if mkdir -p . 2>/dev/null; then
27530   as_mkdir_p='mkdir -p "$as_dir"'
27531 else
27532   test -d ./-p && rmdir ./-p
27533   as_mkdir_p=false
27534 fi
27535
27536
27537 # as_fn_executable_p FILE
27538 # -----------------------
27539 # Test if FILE is an executable regular file.
27540 as_fn_executable_p ()
27541 {
27542   test -f "$1" && test -x "$1"
27543 } # as_fn_executable_p
27544 as_test_x='test -x'
27545 as_executable_p=as_fn_executable_p
27546
27547 # Sed expression to map a string onto a valid CPP name.
27548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27549
27550 # Sed expression to map a string onto a valid variable name.
27551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27552
27553
27554 exec 6>&1
27555 ## ----------------------------------- ##
27556 ## Main body of $CONFIG_STATUS script. ##
27557 ## ----------------------------------- ##
27558 _ASEOF
27559 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27560
27561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27562 # Save the log message, to keep $0 and so on meaningful, and to
27563 # report actual input values of CONFIG_FILES etc. instead of their
27564 # values after options handling.
27565 ac_log="
27566 This file was extended by nghttp2 $as_me 1.46.0, which was
27567 generated by GNU Autoconf 2.71.  Invocation command line was
27568
27569   CONFIG_FILES    = $CONFIG_FILES
27570   CONFIG_HEADERS  = $CONFIG_HEADERS
27571   CONFIG_LINKS    = $CONFIG_LINKS
27572   CONFIG_COMMANDS = $CONFIG_COMMANDS
27573   $ $0 $@
27574
27575 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27576 "
27577
27578 _ACEOF
27579
27580 case $ac_config_files in *"
27581 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27582 esac
27583
27584 case $ac_config_headers in *"
27585 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27586 esac
27587
27588
27589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27590 # Files that config.status was made for.
27591 config_files="$ac_config_files"
27592 config_headers="$ac_config_headers"
27593 config_commands="$ac_config_commands"
27594
27595 _ACEOF
27596
27597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27598 ac_cs_usage="\
27599 \`$as_me' instantiates files and other configuration actions
27600 from templates according to the current configuration.  Unless the files
27601 and actions are specified as TAGs, all are instantiated by default.
27602
27603 Usage: $0 [OPTION]... [TAG]...
27604
27605   -h, --help       print this help, then exit
27606   -V, --version    print version number and configuration settings, then exit
27607       --config     print configuration, then exit
27608   -q, --quiet, --silent
27609                    do not print progress messages
27610   -d, --debug      don't remove temporary files
27611       --recheck    update $as_me by reconfiguring in the same conditions
27612       --file=FILE[:TEMPLATE]
27613                    instantiate the configuration file FILE
27614       --header=FILE[:TEMPLATE]
27615                    instantiate the configuration header FILE
27616
27617 Configuration files:
27618 $config_files
27619
27620 Configuration headers:
27621 $config_headers
27622
27623 Configuration commands:
27624 $config_commands
27625
27626 Report bugs to <t-tujikawa@users.sourceforge.net>."
27627
27628 _ACEOF
27629 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27630 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27632 ac_cs_config='$ac_cs_config_escaped'
27633 ac_cs_version="\\
27634 nghttp2 config.status 1.46.0
27635 configured by $0, generated by GNU Autoconf 2.71,
27636   with options \\"\$ac_cs_config\\"
27637
27638 Copyright (C) 2021 Free Software Foundation, Inc.
27639 This config.status script is free software; the Free Software Foundation
27640 gives unlimited permission to copy, distribute and modify it."
27641
27642 ac_pwd='$ac_pwd'
27643 srcdir='$srcdir'
27644 INSTALL='$INSTALL'
27645 MKDIR_P='$MKDIR_P'
27646 AWK='$AWK'
27647 test -n "\$AWK" || AWK=awk
27648 _ACEOF
27649
27650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27651 # The default lists apply if the user does not specify any file.
27652 ac_need_defaults=:
27653 while test $# != 0
27654 do
27655   case $1 in
27656   --*=?*)
27657     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27658     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27659     ac_shift=:
27660     ;;
27661   --*=)
27662     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27663     ac_optarg=
27664     ac_shift=:
27665     ;;
27666   *)
27667     ac_option=$1
27668     ac_optarg=$2
27669     ac_shift=shift
27670     ;;
27671   esac
27672
27673   case $ac_option in
27674   # Handling of the options.
27675   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27676     ac_cs_recheck=: ;;
27677   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27678     printf "%s\n" "$ac_cs_version"; exit ;;
27679   --config | --confi | --conf | --con | --co | --c )
27680     printf "%s\n" "$ac_cs_config"; exit ;;
27681   --debug | --debu | --deb | --de | --d | -d )
27682     debug=: ;;
27683   --file | --fil | --fi | --f )
27684     $ac_shift
27685     case $ac_optarg in
27686     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27687     '') as_fn_error $? "missing file argument" ;;
27688     esac
27689     as_fn_append CONFIG_FILES " '$ac_optarg'"
27690     ac_need_defaults=false;;
27691   --header | --heade | --head | --hea )
27692     $ac_shift
27693     case $ac_optarg in
27694     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27695     esac
27696     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27697     ac_need_defaults=false;;
27698   --he | --h)
27699     # Conflict between --help and --header
27700     as_fn_error $? "ambiguous option: \`$1'
27701 Try \`$0 --help' for more information.";;
27702   --help | --hel | -h )
27703     printf "%s\n" "$ac_cs_usage"; exit ;;
27704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27705   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27706     ac_cs_silent=: ;;
27707
27708   # This is an error.
27709   -*) as_fn_error $? "unrecognized option: \`$1'
27710 Try \`$0 --help' for more information." ;;
27711
27712   *) as_fn_append ac_config_targets " $1"
27713      ac_need_defaults=false ;;
27714
27715   esac
27716   shift
27717 done
27718
27719 ac_configure_extra_args=
27720
27721 if $ac_cs_silent; then
27722   exec 6>/dev/null
27723   ac_configure_extra_args="$ac_configure_extra_args --silent"
27724 fi
27725
27726 _ACEOF
27727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27728 if \$ac_cs_recheck; then
27729   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27730   shift
27731   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27732   CONFIG_SHELL='$SHELL'
27733   export CONFIG_SHELL
27734   exec "\$@"
27735 fi
27736
27737 _ACEOF
27738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27739 exec 5>>config.log
27740 {
27741   echo
27742   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27743 ## Running $as_me. ##
27744 _ASBOX
27745   printf "%s\n" "$ac_log"
27746 } >&5
27747
27748 _ACEOF
27749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27750 #
27751 # INIT-COMMANDS
27752 #
27753
27754
27755 # The HP-UX ksh and POSIX shell print the target directory to stdout
27756 # if CDPATH is set.
27757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27758
27759 sed_quote_subst='$sed_quote_subst'
27760 double_quote_subst='$double_quote_subst'
27761 delay_variable_subst='$delay_variable_subst'
27762 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27763 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27766 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27767 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27768 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27796 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27797 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27798 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27799 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27800 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27801 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27802 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27803 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27804 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27805 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27806 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27807 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27808 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27809 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27810 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27811 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27812 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27813 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27814 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27815 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27816 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27817 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27818 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27820 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"`'
27821 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27822 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27823 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27824 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27825 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27826 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27827 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27828 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27829 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27830 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27831 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27832 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27833 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27834 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27835 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27836 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27837 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27838 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27839 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27840 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27841 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27842 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27843 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27844 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27845 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27846 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27847 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27848 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27849 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27850 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27851 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27852 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27853 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27854 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27855 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27856 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27857 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27858 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27859 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27860 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27861 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27862 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27863 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27864 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27865 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27866 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27867 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27868 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27869 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27870 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27871 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27872 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27873 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27874 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27875 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27876 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27877 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27878 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27879 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27880 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27881 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27882 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27883 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27884 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27885 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27886 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27887 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27888 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27889 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27890 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27897 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27898 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27899 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27900 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27901 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27902 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27903 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27904 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27905 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27906 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27907 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27908 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27909 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27910 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27911 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27912 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27913 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27914 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27915 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27916 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27917 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27918 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27919 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27920 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27921 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27922 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27923 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27924 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27925 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27926 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27927 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27928 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27929 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27930 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27931 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27932 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27933 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27934 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27935 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27936 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27937 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27938 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27939 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27940 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27941 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27942 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27943 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27944 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27945 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27946 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27947 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27948 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27949 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27950 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27951
27952 LTCC='$LTCC'
27953 LTCFLAGS='$LTCFLAGS'
27954 compiler='$compiler_DEFAULT'
27955
27956 # A function that is used when there is no print builtin or printf.
27957 func_fallback_echo ()
27958 {
27959   eval 'cat <<_LTECHO_EOF
27960 \$1
27961 _LTECHO_EOF'
27962 }
27963
27964 # Quote evaled strings.
27965 for var in SHELL \
27966 ECHO \
27967 PATH_SEPARATOR \
27968 SED \
27969 GREP \
27970 EGREP \
27971 FGREP \
27972 LD \
27973 NM \
27974 LN_S \
27975 lt_SP2NL \
27976 lt_NL2SP \
27977 reload_flag \
27978 OBJDUMP \
27979 deplibs_check_method \
27980 file_magic_cmd \
27981 file_magic_glob \
27982 want_nocaseglob \
27983 DLLTOOL \
27984 sharedlib_from_linklib_cmd \
27985 AR \
27986 AR_FLAGS \
27987 archiver_list_spec \
27988 STRIP \
27989 RANLIB \
27990 CC \
27991 CFLAGS \
27992 compiler \
27993 lt_cv_sys_global_symbol_pipe \
27994 lt_cv_sys_global_symbol_to_cdecl \
27995 lt_cv_sys_global_symbol_to_import \
27996 lt_cv_sys_global_symbol_to_c_name_address \
27997 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27998 lt_cv_nm_interface \
27999 nm_file_list_spec \
28000 lt_cv_truncate_bin \
28001 lt_prog_compiler_no_builtin_flag \
28002 lt_prog_compiler_pic \
28003 lt_prog_compiler_wl \
28004 lt_prog_compiler_static \
28005 lt_cv_prog_compiler_c_o \
28006 need_locks \
28007 MANIFEST_TOOL \
28008 DSYMUTIL \
28009 NMEDIT \
28010 LIPO \
28011 OTOOL \
28012 OTOOL64 \
28013 shrext_cmds \
28014 export_dynamic_flag_spec \
28015 whole_archive_flag_spec \
28016 compiler_needs_object \
28017 with_gnu_ld \
28018 allow_undefined_flag \
28019 no_undefined_flag \
28020 hardcode_libdir_flag_spec \
28021 hardcode_libdir_separator \
28022 exclude_expsyms \
28023 include_expsyms \
28024 file_list_spec \
28025 variables_saved_for_relink \
28026 libname_spec \
28027 library_names_spec \
28028 soname_spec \
28029 install_override_mode \
28030 finish_eval \
28031 old_striplib \
28032 striplib \
28033 compiler_lib_search_dirs \
28034 predep_objects \
28035 postdep_objects \
28036 predeps \
28037 postdeps \
28038 compiler_lib_search_path \
28039 LD_CXX \
28040 reload_flag_CXX \
28041 compiler_CXX \
28042 lt_prog_compiler_no_builtin_flag_CXX \
28043 lt_prog_compiler_pic_CXX \
28044 lt_prog_compiler_wl_CXX \
28045 lt_prog_compiler_static_CXX \
28046 lt_cv_prog_compiler_c_o_CXX \
28047 export_dynamic_flag_spec_CXX \
28048 whole_archive_flag_spec_CXX \
28049 compiler_needs_object_CXX \
28050 with_gnu_ld_CXX \
28051 allow_undefined_flag_CXX \
28052 no_undefined_flag_CXX \
28053 hardcode_libdir_flag_spec_CXX \
28054 hardcode_libdir_separator_CXX \
28055 exclude_expsyms_CXX \
28056 include_expsyms_CXX \
28057 file_list_spec_CXX \
28058 compiler_lib_search_dirs_CXX \
28059 predep_objects_CXX \
28060 postdep_objects_CXX \
28061 predeps_CXX \
28062 postdeps_CXX \
28063 compiler_lib_search_path_CXX; do
28064     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28065     *[\\\\\\\`\\"\\\$]*)
28066       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28067       ;;
28068     *)
28069       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28070       ;;
28071     esac
28072 done
28073
28074 # Double-quote double-evaled strings.
28075 for var in reload_cmds \
28076 old_postinstall_cmds \
28077 old_postuninstall_cmds \
28078 old_archive_cmds \
28079 extract_expsyms_cmds \
28080 old_archive_from_new_cmds \
28081 old_archive_from_expsyms_cmds \
28082 archive_cmds \
28083 archive_expsym_cmds \
28084 module_cmds \
28085 module_expsym_cmds \
28086 export_symbols_cmds \
28087 prelink_cmds \
28088 postlink_cmds \
28089 postinstall_cmds \
28090 postuninstall_cmds \
28091 finish_cmds \
28092 sys_lib_search_path_spec \
28093 configure_time_dlsearch_path \
28094 configure_time_lt_sys_library_path \
28095 reload_cmds_CXX \
28096 old_archive_cmds_CXX \
28097 old_archive_from_new_cmds_CXX \
28098 old_archive_from_expsyms_cmds_CXX \
28099 archive_cmds_CXX \
28100 archive_expsym_cmds_CXX \
28101 module_cmds_CXX \
28102 module_expsym_cmds_CXX \
28103 export_symbols_cmds_CXX \
28104 prelink_cmds_CXX \
28105 postlink_cmds_CXX; do
28106     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28107     *[\\\\\\\`\\"\\\$]*)
28108       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28109       ;;
28110     *)
28111       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28112       ;;
28113     esac
28114 done
28115
28116 ac_aux_dir='$ac_aux_dir'
28117
28118 # See if we are running on zsh, and set the options that allow our
28119 # commands through without removal of \ escapes INIT.
28120 if test -n "\${ZSH_VERSION+set}"; then
28121    setopt NO_GLOB_SUBST
28122 fi
28123
28124
28125     PACKAGE='$PACKAGE'
28126     VERSION='$VERSION'
28127     RM='$RM'
28128     ofile='$ofile'
28129
28130
28131
28132
28133
28134 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28135
28136 _ACEOF
28137
28138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28139
28140 # Handling of arguments.
28141 for ac_config_target in $ac_config_targets
28142 do
28143   case $ac_config_target in
28144     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28145     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28146     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28147     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28148     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28149     "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
28150     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
28151     "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
28152     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28153     "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
28154     "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
28155     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28156     "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
28157     "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
28158     "bpf/Makefile") CONFIG_FILES="$CONFIG_FILES bpf/Makefile" ;;
28159     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28160     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
28161     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
28162     "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
28163     "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
28164     "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
28165     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28166     "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
28167     "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
28168     "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
28169     "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
28170     "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
28171     "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
28172     "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
28173     "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
28174     "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
28175     "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
28176     "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
28177     "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
28178     "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
28179     "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
28180     "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
28181     "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
28182     "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
28183     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
28184     "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
28185
28186   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28187   esac
28188 done
28189
28190
28191 # If the user did not use the arguments to specify the items to instantiate,
28192 # then the envvar interface is used.  Set only those that are not.
28193 # We use the long form for the default assignment because of an extremely
28194 # bizarre bug on SunOS 4.1.3.
28195 if $ac_need_defaults; then
28196   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
28197   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
28198   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
28199 fi
28200
28201 # Have a temporary directory for convenience.  Make it in the build tree
28202 # simply because there is no reason against having it here, and in addition,
28203 # creating and moving files from /tmp can sometimes cause problems.
28204 # Hook for its removal unless debugging.
28205 # Note that there is a small window in which the directory will not be cleaned:
28206 # after its creation but before its name has been assigned to `$tmp'.
28207 $debug ||
28208 {
28209   tmp= ac_tmp=
28210   trap 'exit_status=$?
28211   : "${ac_tmp:=$tmp}"
28212   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28213 ' 0
28214   trap 'as_fn_exit 1' 1 2 13 15
28215 }
28216 # Create a (secure) tmp directory for tmp files.
28217
28218 {
28219   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28220   test -d "$tmp"
28221 }  ||
28222 {
28223   tmp=./conf$$-$RANDOM
28224   (umask 077 && mkdir "$tmp")
28225 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28226 ac_tmp=$tmp
28227
28228 # Set up the scripts for CONFIG_FILES section.
28229 # No need to generate them if there are no CONFIG_FILES.
28230 # This happens for instance with `./config.status config.h'.
28231 if test -n "$CONFIG_FILES"; then
28232
28233
28234 ac_cr=`echo X | tr X '\015'`
28235 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28236 # But we know of no other shell where ac_cr would be empty at this
28237 # point, so we can use a bashism as a fallback.
28238 if test "x$ac_cr" = x; then
28239   eval ac_cr=\$\'\\r\'
28240 fi
28241 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28242 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28243   ac_cs_awk_cr='\\r'
28244 else
28245   ac_cs_awk_cr=$ac_cr
28246 fi
28247
28248 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28249 _ACEOF
28250
28251
28252 {
28253   echo "cat >conf$$subs.awk <<_ACEOF" &&
28254   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28255   echo "_ACEOF"
28256 } >conf$$subs.sh ||
28257   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28258 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28259 ac_delim='%!_!# '
28260 for ac_last_try in false false false false false :; do
28261   . ./conf$$subs.sh ||
28262     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28263
28264   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28265   if test $ac_delim_n = $ac_delim_num; then
28266     break
28267   elif $ac_last_try; then
28268     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28269   else
28270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28271   fi
28272 done
28273 rm -f conf$$subs.sh
28274
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28276 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28277 _ACEOF
28278 sed -n '
28279 h
28280 s/^/S["/; s/!.*/"]=/
28281 p
28282 g
28283 s/^[^!]*!//
28284 :repl
28285 t repl
28286 s/'"$ac_delim"'$//
28287 t delim
28288 :nl
28289 h
28290 s/\(.\{148\}\)..*/\1/
28291 t more1
28292 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28293 p
28294 n
28295 b repl
28296 :more1
28297 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28298 p
28299 g
28300 s/.\{148\}//
28301 t nl
28302 :delim
28303 h
28304 s/\(.\{148\}\)..*/\1/
28305 t more2
28306 s/["\\]/\\&/g; s/^/"/; s/$/"/
28307 p
28308 b
28309 :more2
28310 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28311 p
28312 g
28313 s/.\{148\}//
28314 t delim
28315 ' <conf$$subs.awk | sed '
28316 /^[^""]/{
28317   N
28318   s/\n//
28319 }
28320 ' >>$CONFIG_STATUS || ac_write_fail=1
28321 rm -f conf$$subs.awk
28322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28323 _ACAWK
28324 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28325   for (key in S) S_is_set[key] = 1
28326   FS = "\a"
28327
28328 }
28329 {
28330   line = $ 0
28331   nfields = split(line, field, "@")
28332   substed = 0
28333   len = length(field[1])
28334   for (i = 2; i < nfields; i++) {
28335     key = field[i]
28336     keylen = length(key)
28337     if (S_is_set[key]) {
28338       value = S[key]
28339       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28340       len += length(value) + length(field[++i])
28341       substed = 1
28342     } else
28343       len += 1 + keylen
28344   }
28345
28346   print line
28347 }
28348
28349 _ACAWK
28350 _ACEOF
28351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28352 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28353   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28354 else
28355   cat
28356 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28357   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28358 _ACEOF
28359
28360 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28361 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28362 # trailing colons and then remove the whole line if VPATH becomes empty
28363 # (actually we leave an empty line to preserve line numbers).
28364 if test "x$srcdir" = x.; then
28365   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28366 h
28367 s///
28368 s/^/:/
28369 s/[      ]*$/:/
28370 s/:\$(srcdir):/:/g
28371 s/:\${srcdir}:/:/g
28372 s/:@srcdir@:/:/g
28373 s/^:*//
28374 s/:*$//
28375 x
28376 s/\(=[   ]*\).*/\1/
28377 G
28378 s/\n//
28379 s/^[^=]*=[       ]*$//
28380 }'
28381 fi
28382
28383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28384 fi # test -n "$CONFIG_FILES"
28385
28386 # Set up the scripts for CONFIG_HEADERS section.
28387 # No need to generate them if there are no CONFIG_HEADERS.
28388 # This happens for instance with `./config.status Makefile'.
28389 if test -n "$CONFIG_HEADERS"; then
28390 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28391 BEGIN {
28392 _ACEOF
28393
28394 # Transform confdefs.h into an awk script `defines.awk', embedded as
28395 # here-document in config.status, that substitutes the proper values into
28396 # config.h.in to produce config.h.
28397
28398 # Create a delimiter string that does not exist in confdefs.h, to ease
28399 # handling of long lines.
28400 ac_delim='%!_!# '
28401 for ac_last_try in false false :; do
28402   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28403   if test -z "$ac_tt"; then
28404     break
28405   elif $ac_last_try; then
28406     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28407   else
28408     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28409   fi
28410 done
28411
28412 # For the awk script, D is an array of macro values keyed by name,
28413 # likewise P contains macro parameters if any.  Preserve backslash
28414 # newline sequences.
28415
28416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28417 sed -n '
28418 s/.\{148\}/&'"$ac_delim"'/g
28419 t rset
28420 :rset
28421 s/^[     ]*#[    ]*define[       ][      ]*/ /
28422 t def
28423 d
28424 :def
28425 s/\\$//
28426 t bsnl
28427 s/["\\]/\\&/g
28428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28429 D["\1"]=" \3"/p
28430 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28431 d
28432 :bsnl
28433 s/["\\]/\\&/g
28434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28435 D["\1"]=" \3\\\\\\n"\\/p
28436 t cont
28437 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28438 t cont
28439 d
28440 :cont
28441 n
28442 s/.\{148\}/&'"$ac_delim"'/g
28443 t clear
28444 :clear
28445 s/\\$//
28446 t bsnlc
28447 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28448 d
28449 :bsnlc
28450 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28451 b cont
28452 ' <confdefs.h | sed '
28453 s/'"$ac_delim"'/"\\\
28454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28455
28456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28457   for (key in D) D_is_set[key] = 1
28458   FS = "\a"
28459 }
28460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28461   line = \$ 0
28462   split(line, arg, " ")
28463   if (arg[1] == "#") {
28464     defundef = arg[2]
28465     mac1 = arg[3]
28466   } else {
28467     defundef = substr(arg[1], 2)
28468     mac1 = arg[2]
28469   }
28470   split(mac1, mac2, "(") #)
28471   macro = mac2[1]
28472   prefix = substr(line, 1, index(line, defundef) - 1)
28473   if (D_is_set[macro]) {
28474     # Preserve the white space surrounding the "#".
28475     print prefix "define", macro P[macro] D[macro]
28476     next
28477   } else {
28478     # Replace #undef with comments.  This is necessary, for example,
28479     # in the case of _POSIX_SOURCE, which is predefined and required
28480     # on some systems where configure will not decide to define it.
28481     if (defundef == "undef") {
28482       print "/*", prefix defundef, macro, "*/"
28483       next
28484     }
28485   }
28486 }
28487 { print }
28488 _ACAWK
28489 _ACEOF
28490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28491   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28492 fi # test -n "$CONFIG_HEADERS"
28493
28494
28495 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28496 shift
28497 for ac_tag
28498 do
28499   case $ac_tag in
28500   :[FHLC]) ac_mode=$ac_tag; continue;;
28501   esac
28502   case $ac_mode$ac_tag in
28503   :[FHL]*:*);;
28504   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28505   :[FH]-) ac_tag=-:-;;
28506   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28507   esac
28508   ac_save_IFS=$IFS
28509   IFS=:
28510   set x $ac_tag
28511   IFS=$ac_save_IFS
28512   shift
28513   ac_file=$1
28514   shift
28515
28516   case $ac_mode in
28517   :L) ac_source=$1;;
28518   :[FH])
28519     ac_file_inputs=
28520     for ac_f
28521     do
28522       case $ac_f in
28523       -) ac_f="$ac_tmp/stdin";;
28524       *) # Look for the file first in the build tree, then in the source tree
28525          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28526          # because $ac_f cannot contain `:'.
28527          test -f "$ac_f" ||
28528            case $ac_f in
28529            [\\/$]*) false;;
28530            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28531            esac ||
28532            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28533       esac
28534       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28535       as_fn_append ac_file_inputs " '$ac_f'"
28536     done
28537
28538     # Let's still pretend it is `configure' which instantiates (i.e., don't
28539     # use $as_me), people would be surprised to read:
28540     #    /* config.h.  Generated by config.status.  */
28541     configure_input='Generated from '`
28542           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28543         `' by configure.'
28544     if test x"$ac_file" != x-; then
28545       configure_input="$ac_file.  $configure_input"
28546       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28547 printf "%s\n" "$as_me: creating $ac_file" >&6;}
28548     fi
28549     # Neutralize special characters interpreted by sed in replacement strings.
28550     case $configure_input in #(
28551     *\&* | *\|* | *\\* )
28552        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
28553        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28554     *) ac_sed_conf_input=$configure_input;;
28555     esac
28556
28557     case $ac_tag in
28558     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28559       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28560     esac
28561     ;;
28562   esac
28563
28564   ac_dir=`$as_dirname -- "$ac_file" ||
28565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28566          X"$ac_file" : 'X\(//\)[^/]' \| \
28567          X"$ac_file" : 'X\(//\)$' \| \
28568          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28569 printf "%s\n" X"$ac_file" |
28570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28571             s//\1/
28572             q
28573           }
28574           /^X\(\/\/\)[^/].*/{
28575             s//\1/
28576             q
28577           }
28578           /^X\(\/\/\)$/{
28579             s//\1/
28580             q
28581           }
28582           /^X\(\/\).*/{
28583             s//\1/
28584             q
28585           }
28586           s/.*/./; q'`
28587   as_dir="$ac_dir"; as_fn_mkdir_p
28588   ac_builddir=.
28589
28590 case "$ac_dir" in
28591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28592 *)
28593   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28594   # A ".." for each directory in $ac_dir_suffix.
28595   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28596   case $ac_top_builddir_sub in
28597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28599   esac ;;
28600 esac
28601 ac_abs_top_builddir=$ac_pwd
28602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28603 # for backward compatibility:
28604 ac_top_builddir=$ac_top_build_prefix
28605
28606 case $srcdir in
28607   .)  # We are building in place.
28608     ac_srcdir=.
28609     ac_top_srcdir=$ac_top_builddir_sub
28610     ac_abs_top_srcdir=$ac_pwd ;;
28611   [\\/]* | ?:[\\/]* )  # Absolute name.
28612     ac_srcdir=$srcdir$ac_dir_suffix;
28613     ac_top_srcdir=$srcdir
28614     ac_abs_top_srcdir=$srcdir ;;
28615   *) # Relative name.
28616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28617     ac_top_srcdir=$ac_top_build_prefix$srcdir
28618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28619 esac
28620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28621
28622
28623   case $ac_mode in
28624   :F)
28625   #
28626   # CONFIG_FILE
28627   #
28628
28629   case $INSTALL in
28630   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28631   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28632   esac
28633   ac_MKDIR_P=$MKDIR_P
28634   case $MKDIR_P in
28635   [\\/$]* | ?:[\\/]* ) ;;
28636   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28637   esac
28638 _ACEOF
28639
28640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28641 # If the template does not know about datarootdir, expand it.
28642 # FIXME: This hack should be removed a few years after 2.60.
28643 ac_datarootdir_hack=; ac_datarootdir_seen=
28644 ac_sed_dataroot='
28645 /datarootdir/ {
28646   p
28647   q
28648 }
28649 /@datadir@/p
28650 /@docdir@/p
28651 /@infodir@/p
28652 /@localedir@/p
28653 /@mandir@/p'
28654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28655 *datarootdir*) ac_datarootdir_seen=yes;;
28656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28658 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28659 _ACEOF
28660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28661   ac_datarootdir_hack='
28662   s&@datadir@&$datadir&g
28663   s&@docdir@&$docdir&g
28664   s&@infodir@&$infodir&g
28665   s&@localedir@&$localedir&g
28666   s&@mandir@&$mandir&g
28667   s&\\\${datarootdir}&$datarootdir&g' ;;
28668 esac
28669 _ACEOF
28670
28671 # Neutralize VPATH when `$srcdir' = `.'.
28672 # Shell code in configure.ac might set extrasub.
28673 # FIXME: do we really want to maintain this feature?
28674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28675 ac_sed_extra="$ac_vpsub
28676 $extrasub
28677 _ACEOF
28678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28679 :t
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28681 s|@configure_input@|$ac_sed_conf_input|;t t
28682 s&@top_builddir@&$ac_top_builddir_sub&;t t
28683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28684 s&@srcdir@&$ac_srcdir&;t t
28685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28686 s&@top_srcdir@&$ac_top_srcdir&;t t
28687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28688 s&@builddir@&$ac_builddir&;t t
28689 s&@abs_builddir@&$ac_abs_builddir&;t t
28690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28691 s&@INSTALL@&$ac_INSTALL&;t t
28692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28693 $ac_datarootdir_hack
28694 "
28695 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28696   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28697
28698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28699   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28700   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28701       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28703 which seems to be undefined.  Please make sure it is defined" >&5
28704 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28705 which seems to be undefined.  Please make sure it is defined" >&2;}
28706
28707   rm -f "$ac_tmp/stdin"
28708   case $ac_file in
28709   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28710   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28711   esac \
28712   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28713  ;;
28714   :H)
28715   #
28716   # CONFIG_HEADER
28717   #
28718   if test x"$ac_file" != x-; then
28719     {
28720       printf "%s\n" "/* $configure_input  */" >&1 \
28721       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28722     } >"$ac_tmp/config.h" \
28723       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28724     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28725       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28726 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
28727     else
28728       rm -f "$ac_file"
28729       mv "$ac_tmp/config.h" "$ac_file" \
28730         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28731     fi
28732   else
28733     printf "%s\n" "/* $configure_input  */" >&1 \
28734       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28735       || as_fn_error $? "could not create -" "$LINENO" 5
28736   fi
28737 # Compute "$ac_file"'s index in $config_headers.
28738 _am_arg="$ac_file"
28739 _am_stamp_count=1
28740 for _am_header in $config_headers :; do
28741   case $_am_header in
28742     $_am_arg | $_am_arg:* )
28743       break ;;
28744     * )
28745       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28746   esac
28747 done
28748 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28749 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28750          X"$_am_arg" : 'X\(//\)[^/]' \| \
28751          X"$_am_arg" : 'X\(//\)$' \| \
28752          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28753 printf "%s\n" X"$_am_arg" |
28754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28755             s//\1/
28756             q
28757           }
28758           /^X\(\/\/\)[^/].*/{
28759             s//\1/
28760             q
28761           }
28762           /^X\(\/\/\)$/{
28763             s//\1/
28764             q
28765           }
28766           /^X\(\/\).*/{
28767             s//\1/
28768             q
28769           }
28770           s/.*/./; q'`/stamp-h$_am_stamp_count
28771  ;;
28772
28773   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28774 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
28775  ;;
28776   esac
28777
28778
28779   case $ac_file$ac_mode in
28780     "libtool":C)
28781
28782     # See if we are running on zsh, and set the options that allow our
28783     # commands through without removal of \ escapes.
28784     if test -n "${ZSH_VERSION+set}"; then
28785       setopt NO_GLOB_SUBST
28786     fi
28787
28788     cfgfile=${ofile}T
28789     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28790     $RM "$cfgfile"
28791
28792     cat <<_LT_EOF >> "$cfgfile"
28793 #! $SHELL
28794 # Generated automatically by $as_me ($PACKAGE) $VERSION
28795 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28796
28797 # Provide generalized library-building support services.
28798 # Written by Gordon Matzigkeit, 1996
28799
28800 # Copyright (C) 2014 Free Software Foundation, Inc.
28801 # This is free software; see the source for copying conditions.  There is NO
28802 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28803
28804 # GNU Libtool is free software; you can redistribute it and/or modify
28805 # it under the terms of the GNU General Public License as published by
28806 # the Free Software Foundation; either version 2 of of the License, or
28807 # (at your option) any later version.
28808 #
28809 # As a special exception to the GNU General Public License, if you
28810 # distribute this file as part of a program or library that is built
28811 # using GNU Libtool, you may include this file under the  same
28812 # distribution terms that you use for the rest of that program.
28813 #
28814 # GNU Libtool is distributed in the hope that it will be useful, but
28815 # WITHOUT ANY WARRANTY; without even the implied warranty of
28816 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28817 # GNU General Public License for more details.
28818 #
28819 # You should have received a copy of the GNU General Public License
28820 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
28821
28822
28823 # The names of the tagged configurations supported by this script.
28824 available_tags='CXX '
28825
28826 # Configured defaults for sys_lib_dlsearch_path munging.
28827 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28828
28829 # ### BEGIN LIBTOOL CONFIG
28830
28831 # Which release of libtool.m4 was used?
28832 macro_version=$macro_version
28833 macro_revision=$macro_revision
28834
28835 # Whether or not to build shared libraries.
28836 build_libtool_libs=$enable_shared
28837
28838 # Whether or not to build static libraries.
28839 build_old_libs=$enable_static
28840
28841 # What type of objects to build.
28842 pic_mode=$pic_mode
28843
28844 # Whether or not to optimize for fast installation.
28845 fast_install=$enable_fast_install
28846
28847 # Shared archive member basename,for filename based shared library versioning on AIX.
28848 shared_archive_member_spec=$shared_archive_member_spec
28849
28850 # Shell to use when invoking shell scripts.
28851 SHELL=$lt_SHELL
28852
28853 # An echo program that protects backslashes.
28854 ECHO=$lt_ECHO
28855
28856 # The PATH separator for the build system.
28857 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28858
28859 # The host system.
28860 host_alias=$host_alias
28861 host=$host
28862 host_os=$host_os
28863
28864 # The build system.
28865 build_alias=$build_alias
28866 build=$build
28867 build_os=$build_os
28868
28869 # A sed program that does not truncate output.
28870 SED=$lt_SED
28871
28872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28873 Xsed="\$SED -e 1s/^X//"
28874
28875 # A grep program that handles long lines.
28876 GREP=$lt_GREP
28877
28878 # An ERE matcher.
28879 EGREP=$lt_EGREP
28880
28881 # A literal string matcher.
28882 FGREP=$lt_FGREP
28883
28884 # A BSD- or MS-compatible name lister.
28885 NM=$lt_NM
28886
28887 # Whether we need soft or hard links.
28888 LN_S=$lt_LN_S
28889
28890 # What is the maximum length of a command?
28891 max_cmd_len=$max_cmd_len
28892
28893 # Object file suffix (normally "o").
28894 objext=$ac_objext
28895
28896 # Executable file suffix (normally "").
28897 exeext=$exeext
28898
28899 # whether the shell understands "unset".
28900 lt_unset=$lt_unset
28901
28902 # turn spaces into newlines.
28903 SP2NL=$lt_lt_SP2NL
28904
28905 # turn newlines into spaces.
28906 NL2SP=$lt_lt_NL2SP
28907
28908 # convert \$build file names to \$host format.
28909 to_host_file_cmd=$lt_cv_to_host_file_cmd
28910
28911 # convert \$build files to toolchain format.
28912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28913
28914 # An object symbol dumper.
28915 OBJDUMP=$lt_OBJDUMP
28916
28917 # Method to check whether dependent libraries are shared objects.
28918 deplibs_check_method=$lt_deplibs_check_method
28919
28920 # Command to use when deplibs_check_method = "file_magic".
28921 file_magic_cmd=$lt_file_magic_cmd
28922
28923 # How to find potential files when deplibs_check_method = "file_magic".
28924 file_magic_glob=$lt_file_magic_glob
28925
28926 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28927 want_nocaseglob=$lt_want_nocaseglob
28928
28929 # DLL creation program.
28930 DLLTOOL=$lt_DLLTOOL
28931
28932 # Command to associate shared and link libraries.
28933 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28934
28935 # The archiver.
28936 AR=$lt_AR
28937
28938 # Flags to create an archive.
28939 AR_FLAGS=$lt_AR_FLAGS
28940
28941 # How to feed a file listing to the archiver.
28942 archiver_list_spec=$lt_archiver_list_spec
28943
28944 # A symbol stripping program.
28945 STRIP=$lt_STRIP
28946
28947 # Commands used to install an old-style archive.
28948 RANLIB=$lt_RANLIB
28949 old_postinstall_cmds=$lt_old_postinstall_cmds
28950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28951
28952 # Whether to use a lock for old archive extraction.
28953 lock_old_archive_extraction=$lock_old_archive_extraction
28954
28955 # A C compiler.
28956 LTCC=$lt_CC
28957
28958 # LTCC compiler flags.
28959 LTCFLAGS=$lt_CFLAGS
28960
28961 # Take the output of nm and produce a listing of raw symbols and C names.
28962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28963
28964 # Transform the output of nm in a proper C declaration.
28965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28966
28967 # Transform the output of nm into a list of symbols to manually relocate.
28968 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28969
28970 # Transform the output of nm in a C name address pair.
28971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28972
28973 # Transform the output of nm in a C name address pair when lib prefix is needed.
28974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28975
28976 # The name lister interface.
28977 nm_interface=$lt_lt_cv_nm_interface
28978
28979 # Specify filename containing input files for \$NM.
28980 nm_file_list_spec=$lt_nm_file_list_spec
28981
28982 # The root where to search for dependent libraries,and where our libraries should be installed.
28983 lt_sysroot=$lt_sysroot
28984
28985 # Command to truncate a binary pipe.
28986 lt_truncate_bin=$lt_lt_cv_truncate_bin
28987
28988 # The name of the directory that contains temporary libtool files.
28989 objdir=$objdir
28990
28991 # Used to examine libraries when file_magic_cmd begins with "file".
28992 MAGIC_CMD=$MAGIC_CMD
28993
28994 # Must we lock files when doing compilation?
28995 need_locks=$lt_need_locks
28996
28997 # Manifest tool.
28998 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28999
29000 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29001 DSYMUTIL=$lt_DSYMUTIL
29002
29003 # Tool to change global to local symbols on Mac OS X.
29004 NMEDIT=$lt_NMEDIT
29005
29006 # Tool to manipulate fat objects and archives on Mac OS X.
29007 LIPO=$lt_LIPO
29008
29009 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29010 OTOOL=$lt_OTOOL
29011
29012 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29013 OTOOL64=$lt_OTOOL64
29014
29015 # Old archive suffix (normally "a").
29016 libext=$libext
29017
29018 # Shared library suffix (normally ".so").
29019 shrext_cmds=$lt_shrext_cmds
29020
29021 # The commands to extract the exported symbol list from a shared archive.
29022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29023
29024 # Variables whose values should be saved in libtool wrapper scripts and
29025 # restored at link time.
29026 variables_saved_for_relink=$lt_variables_saved_for_relink
29027
29028 # Do we need the "lib" prefix for modules?
29029 need_lib_prefix=$need_lib_prefix
29030
29031 # Do we need a version for libraries?
29032 need_version=$need_version
29033
29034 # Library versioning type.
29035 version_type=$version_type
29036
29037 # Shared library runtime path variable.
29038 runpath_var=$runpath_var
29039
29040 # Shared library path variable.
29041 shlibpath_var=$shlibpath_var
29042
29043 # Is shlibpath searched before the hard-coded library search path?
29044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29045
29046 # Format of library name prefix.
29047 libname_spec=$lt_libname_spec
29048
29049 # List of archive names.  First name is the real one, the rest are links.
29050 # The last name is the one that the linker finds with -lNAME
29051 library_names_spec=$lt_library_names_spec
29052
29053 # The coded name of the library, if different from the real name.
29054 soname_spec=$lt_soname_spec
29055
29056 # Permission mode override for installation of shared libraries.
29057 install_override_mode=$lt_install_override_mode
29058
29059 # Command to use after installation of a shared archive.
29060 postinstall_cmds=$lt_postinstall_cmds
29061
29062 # Command to use after uninstallation of a shared archive.
29063 postuninstall_cmds=$lt_postuninstall_cmds
29064
29065 # Commands used to finish a libtool library installation in a directory.
29066 finish_cmds=$lt_finish_cmds
29067
29068 # As "finish_cmds", except a single script fragment to be evaled but
29069 # not shown.
29070 finish_eval=$lt_finish_eval
29071
29072 # Whether we should hardcode library paths into libraries.
29073 hardcode_into_libs=$hardcode_into_libs
29074
29075 # Compile-time system search path for libraries.
29076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29077
29078 # Detected run-time system search path for libraries.
29079 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29080
29081 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29082 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29083
29084 # Whether dlopen is supported.
29085 dlopen_support=$enable_dlopen
29086
29087 # Whether dlopen of programs is supported.
29088 dlopen_self=$enable_dlopen_self
29089
29090 # Whether dlopen of statically linked programs is supported.
29091 dlopen_self_static=$enable_dlopen_self_static
29092
29093 # Commands to strip libraries.
29094 old_striplib=$lt_old_striplib
29095 striplib=$lt_striplib
29096
29097
29098 # The linker used to build libraries.
29099 LD=$lt_LD
29100
29101 # How to create reloadable object files.
29102 reload_flag=$lt_reload_flag
29103 reload_cmds=$lt_reload_cmds
29104
29105 # Commands used to build an old-style archive.
29106 old_archive_cmds=$lt_old_archive_cmds
29107
29108 # A language specific compiler.
29109 CC=$lt_compiler
29110
29111 # Is the compiler the GNU compiler?
29112 with_gcc=$GCC
29113
29114 # Compiler flag to turn off builtin functions.
29115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29116
29117 # Additional compiler flags for building library objects.
29118 pic_flag=$lt_lt_prog_compiler_pic
29119
29120 # How to pass a linker flag through the compiler.
29121 wl=$lt_lt_prog_compiler_wl
29122
29123 # Compiler flag to prevent dynamic linking.
29124 link_static_flag=$lt_lt_prog_compiler_static
29125
29126 # Does compiler simultaneously support -c and -o options?
29127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29128
29129 # Whether or not to add -lc for building shared libraries.
29130 build_libtool_need_lc=$archive_cmds_need_lc
29131
29132 # Whether or not to disallow shared libs when runtime libs are static.
29133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29134
29135 # Compiler flag to allow reflexive dlopens.
29136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29137
29138 # Compiler flag to generate shared objects directly from archives.
29139 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29140
29141 # Whether the compiler copes with passing no objects directly.
29142 compiler_needs_object=$lt_compiler_needs_object
29143
29144 # Create an old-style archive from a shared archive.
29145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29146
29147 # Create a temporary old-style archive to link instead of a shared archive.
29148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29149
29150 # Commands used to build a shared archive.
29151 archive_cmds=$lt_archive_cmds
29152 archive_expsym_cmds=$lt_archive_expsym_cmds
29153
29154 # Commands used to build a loadable module if different from building
29155 # a shared archive.
29156 module_cmds=$lt_module_cmds
29157 module_expsym_cmds=$lt_module_expsym_cmds
29158
29159 # Whether we are building with GNU ld or not.
29160 with_gnu_ld=$lt_with_gnu_ld
29161
29162 # Flag that allows shared libraries with undefined symbols to be built.
29163 allow_undefined_flag=$lt_allow_undefined_flag
29164
29165 # Flag that enforces no undefined symbols.
29166 no_undefined_flag=$lt_no_undefined_flag
29167
29168 # Flag to hardcode \$libdir into a binary during linking.
29169 # This must work even if \$libdir does not exist
29170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29171
29172 # Whether we need a single "-rpath" flag with a separated argument.
29173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29174
29175 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29176 # DIR into the resulting binary.
29177 hardcode_direct=$hardcode_direct
29178
29179 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29180 # DIR into the resulting binary and the resulting library dependency is
29181 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29182 # library is relocated.
29183 hardcode_direct_absolute=$hardcode_direct_absolute
29184
29185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29186 # into the resulting binary.
29187 hardcode_minus_L=$hardcode_minus_L
29188
29189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29190 # into the resulting binary.
29191 hardcode_shlibpath_var=$hardcode_shlibpath_var
29192
29193 # Set to "yes" if building a shared library automatically hardcodes DIR
29194 # into the library and all subsequent libraries and executables linked
29195 # against it.
29196 hardcode_automatic=$hardcode_automatic
29197
29198 # Set to yes if linker adds runtime paths of dependent libraries
29199 # to runtime path list.
29200 inherit_rpath=$inherit_rpath
29201
29202 # Whether libtool must link a program against all its dependency libraries.
29203 link_all_deplibs=$link_all_deplibs
29204
29205 # Set to "yes" if exported symbols are required.
29206 always_export_symbols=$always_export_symbols
29207
29208 # The commands to list exported symbols.
29209 export_symbols_cmds=$lt_export_symbols_cmds
29210
29211 # Symbols that should not be listed in the preloaded symbols.
29212 exclude_expsyms=$lt_exclude_expsyms
29213
29214 # Symbols that must always be exported.
29215 include_expsyms=$lt_include_expsyms
29216
29217 # Commands necessary for linking programs (against libraries) with templates.
29218 prelink_cmds=$lt_prelink_cmds
29219
29220 # Commands necessary for finishing linking programs.
29221 postlink_cmds=$lt_postlink_cmds
29222
29223 # Specify filename containing input files.
29224 file_list_spec=$lt_file_list_spec
29225
29226 # How to hardcode a shared library path into an executable.
29227 hardcode_action=$hardcode_action
29228
29229 # The directories searched by this compiler when creating a shared library.
29230 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29231
29232 # Dependencies to place before and after the objects being linked to
29233 # create a shared library.
29234 predep_objects=$lt_predep_objects
29235 postdep_objects=$lt_postdep_objects
29236 predeps=$lt_predeps
29237 postdeps=$lt_postdeps
29238
29239 # The library search path used internally by the compiler when linking
29240 # a shared library.
29241 compiler_lib_search_path=$lt_compiler_lib_search_path
29242
29243 # ### END LIBTOOL CONFIG
29244
29245 _LT_EOF
29246
29247     cat <<'_LT_EOF' >> "$cfgfile"
29248
29249 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29250
29251 # func_munge_path_list VARIABLE PATH
29252 # -----------------------------------
29253 # VARIABLE is name of variable containing _space_ separated list of
29254 # directories to be munged by the contents of PATH, which is string
29255 # having a format:
29256 # "DIR[:DIR]:"
29257 #       string "DIR[ DIR]" will be prepended to VARIABLE
29258 # ":DIR[:DIR]"
29259 #       string "DIR[ DIR]" will be appended to VARIABLE
29260 # "DIRP[:DIRP]::[DIRA:]DIRA"
29261 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29262 #       "DIRA[ DIRA]" will be appended to VARIABLE
29263 # "DIR[:DIR]"
29264 #       VARIABLE will be replaced by "DIR[ DIR]"
29265 func_munge_path_list ()
29266 {
29267     case x$2 in
29268     x)
29269         ;;
29270     *:)
29271         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29272         ;;
29273     x:*)
29274         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29275         ;;
29276     *::*)
29277         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29278         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29279         ;;
29280     *)
29281         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29282         ;;
29283     esac
29284 }
29285
29286
29287 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29288 func_cc_basename ()
29289 {
29290     for cc_temp in $*""; do
29291       case $cc_temp in
29292         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29293         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29294         \-*) ;;
29295         *) break;;
29296       esac
29297     done
29298     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29299 }
29300
29301
29302 # ### END FUNCTIONS SHARED WITH CONFIGURE
29303
29304 _LT_EOF
29305
29306   case $host_os in
29307   aix3*)
29308     cat <<\_LT_EOF >> "$cfgfile"
29309 # AIX sometimes has problems with the GCC collect2 program.  For some
29310 # reason, if we set the COLLECT_NAMES environment variable, the problems
29311 # vanish in a puff of smoke.
29312 if test set != "${COLLECT_NAMES+set}"; then
29313   COLLECT_NAMES=
29314   export COLLECT_NAMES
29315 fi
29316 _LT_EOF
29317     ;;
29318   esac
29319
29320
29321
29322 ltmain=$ac_aux_dir/ltmain.sh
29323
29324
29325   # We use sed instead of cat because bash on DJGPP gets confused if
29326   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29327   # text mode, it properly converts lines to CR/LF.  This bash problem
29328   # is reportedly fixed, but why not run on old versions too?
29329   sed '$q' "$ltmain" >> "$cfgfile" \
29330      || (rm -f "$cfgfile"; exit 1)
29331
29332    mv -f "$cfgfile" "$ofile" ||
29333     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29334   chmod +x "$ofile"
29335
29336
29337     cat <<_LT_EOF >> "$ofile"
29338
29339 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29340
29341 # The linker used to build libraries.
29342 LD=$lt_LD_CXX
29343
29344 # How to create reloadable object files.
29345 reload_flag=$lt_reload_flag_CXX
29346 reload_cmds=$lt_reload_cmds_CXX
29347
29348 # Commands used to build an old-style archive.
29349 old_archive_cmds=$lt_old_archive_cmds_CXX
29350
29351 # A language specific compiler.
29352 CC=$lt_compiler_CXX
29353
29354 # Is the compiler the GNU compiler?
29355 with_gcc=$GCC_CXX
29356
29357 # Compiler flag to turn off builtin functions.
29358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29359
29360 # Additional compiler flags for building library objects.
29361 pic_flag=$lt_lt_prog_compiler_pic_CXX
29362
29363 # How to pass a linker flag through the compiler.
29364 wl=$lt_lt_prog_compiler_wl_CXX
29365
29366 # Compiler flag to prevent dynamic linking.
29367 link_static_flag=$lt_lt_prog_compiler_static_CXX
29368
29369 # Does compiler simultaneously support -c and -o options?
29370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29371
29372 # Whether or not to add -lc for building shared libraries.
29373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29374
29375 # Whether or not to disallow shared libs when runtime libs are static.
29376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29377
29378 # Compiler flag to allow reflexive dlopens.
29379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29380
29381 # Compiler flag to generate shared objects directly from archives.
29382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29383
29384 # Whether the compiler copes with passing no objects directly.
29385 compiler_needs_object=$lt_compiler_needs_object_CXX
29386
29387 # Create an old-style archive from a shared archive.
29388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29389
29390 # Create a temporary old-style archive to link instead of a shared archive.
29391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29392
29393 # Commands used to build a shared archive.
29394 archive_cmds=$lt_archive_cmds_CXX
29395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29396
29397 # Commands used to build a loadable module if different from building
29398 # a shared archive.
29399 module_cmds=$lt_module_cmds_CXX
29400 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29401
29402 # Whether we are building with GNU ld or not.
29403 with_gnu_ld=$lt_with_gnu_ld_CXX
29404
29405 # Flag that allows shared libraries with undefined symbols to be built.
29406 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29407
29408 # Flag that enforces no undefined symbols.
29409 no_undefined_flag=$lt_no_undefined_flag_CXX
29410
29411 # Flag to hardcode \$libdir into a binary during linking.
29412 # This must work even if \$libdir does not exist
29413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29414
29415 # Whether we need a single "-rpath" flag with a separated argument.
29416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29417
29418 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29419 # DIR into the resulting binary.
29420 hardcode_direct=$hardcode_direct_CXX
29421
29422 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29423 # DIR into the resulting binary and the resulting library dependency is
29424 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29425 # library is relocated.
29426 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29427
29428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29429 # into the resulting binary.
29430 hardcode_minus_L=$hardcode_minus_L_CXX
29431
29432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29433 # into the resulting binary.
29434 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29435
29436 # Set to "yes" if building a shared library automatically hardcodes DIR
29437 # into the library and all subsequent libraries and executables linked
29438 # against it.
29439 hardcode_automatic=$hardcode_automatic_CXX
29440
29441 # Set to yes if linker adds runtime paths of dependent libraries
29442 # to runtime path list.
29443 inherit_rpath=$inherit_rpath_CXX
29444
29445 # Whether libtool must link a program against all its dependency libraries.
29446 link_all_deplibs=$link_all_deplibs_CXX
29447
29448 # Set to "yes" if exported symbols are required.
29449 always_export_symbols=$always_export_symbols_CXX
29450
29451 # The commands to list exported symbols.
29452 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29453
29454 # Symbols that should not be listed in the preloaded symbols.
29455 exclude_expsyms=$lt_exclude_expsyms_CXX
29456
29457 # Symbols that must always be exported.
29458 include_expsyms=$lt_include_expsyms_CXX
29459
29460 # Commands necessary for linking programs (against libraries) with templates.
29461 prelink_cmds=$lt_prelink_cmds_CXX
29462
29463 # Commands necessary for finishing linking programs.
29464 postlink_cmds=$lt_postlink_cmds_CXX
29465
29466 # Specify filename containing input files.
29467 file_list_spec=$lt_file_list_spec_CXX
29468
29469 # How to hardcode a shared library path into an executable.
29470 hardcode_action=$hardcode_action_CXX
29471
29472 # The directories searched by this compiler when creating a shared library.
29473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29474
29475 # Dependencies to place before and after the objects being linked to
29476 # create a shared library.
29477 predep_objects=$lt_predep_objects_CXX
29478 postdep_objects=$lt_postdep_objects_CXX
29479 predeps=$lt_predeps_CXX
29480 postdeps=$lt_postdeps_CXX
29481
29482 # The library search path used internally by the compiler when linking
29483 # a shared library.
29484 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29485
29486 # ### END LIBTOOL TAG CONFIG: CXX
29487 _LT_EOF
29488
29489  ;;
29490     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29491   # Older Autoconf quotes --file arguments for eval, but not when files
29492   # are listed without --file.  Let's play safe and only enable the eval
29493   # if we detect the quoting.
29494   # TODO: see whether this extra hack can be removed once we start
29495   # requiring Autoconf 2.70 or later.
29496   case $CONFIG_FILES in #(
29497   *\'*) :
29498     eval set x "$CONFIG_FILES" ;; #(
29499   *) :
29500     set x $CONFIG_FILES ;; #(
29501   *) :
29502      ;;
29503 esac
29504   shift
29505   # Used to flag and report bootstrapping failures.
29506   am_rc=0
29507   for am_mf
29508   do
29509     # Strip MF so we end up with the name of the file.
29510     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
29511     # Check whether this is an Automake generated Makefile which includes
29512     # dependency-tracking related rules and includes.
29513     # Grep'ing the whole file directly is not great: AIX grep has a line
29514     # limit of 2048, but all sed's we know have understand at least 4000.
29515     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29516       || continue
29517     am_dirpart=`$as_dirname -- "$am_mf" ||
29518 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29519          X"$am_mf" : 'X\(//\)[^/]' \| \
29520          X"$am_mf" : 'X\(//\)$' \| \
29521          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29522 printf "%s\n" X"$am_mf" |
29523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29524             s//\1/
29525             q
29526           }
29527           /^X\(\/\/\)[^/].*/{
29528             s//\1/
29529             q
29530           }
29531           /^X\(\/\/\)$/{
29532             s//\1/
29533             q
29534           }
29535           /^X\(\/\).*/{
29536             s//\1/
29537             q
29538           }
29539           s/.*/./; q'`
29540     am_filepart=`$as_basename -- "$am_mf" ||
29541 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29542          X"$am_mf" : 'X\(//\)$' \| \
29543          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29544 printf "%s\n" X/"$am_mf" |
29545     sed '/^.*\/\([^/][^/]*\)\/*$/{
29546             s//\1/
29547             q
29548           }
29549           /^X\/\(\/\/\)$/{
29550             s//\1/
29551             q
29552           }
29553           /^X\/\(\/\).*/{
29554             s//\1/
29555             q
29556           }
29557           s/.*/./; q'`
29558     { echo "$as_me:$LINENO: cd "$am_dirpart" \
29559       && sed -e '/# am--include-marker/d' "$am_filepart" \
29560         | $MAKE -f - am--depfiles" >&5
29561    (cd "$am_dirpart" \
29562       && sed -e '/# am--include-marker/d' "$am_filepart" \
29563         | $MAKE -f - am--depfiles) >&5 2>&5
29564    ac_status=$?
29565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566    (exit $ac_status); } || am_rc=$?
29567   done
29568   if test $am_rc -ne 0; then
29569     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29570 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29571 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29572     for automatic dependency tracking.  If GNU make was not used, consider
29573     re-running the configure script with MAKE=\"gmake\" (or whatever is
29574     necessary).  You can also try re-running configure with the
29575     '--disable-dependency-tracking' option to at least be able to build
29576     the package (albeit without support for automatic dependency tracking).
29577 See \`config.log' for more details" "$LINENO" 5; }
29578   fi
29579   { am_dirpart=; unset am_dirpart;}
29580   { am_filepart=; unset am_filepart;}
29581   { am_mf=; unset am_mf;}
29582   { am_rc=; unset am_rc;}
29583   rm -f conftest-deps.mk
29584 }
29585  ;;
29586
29587   esac
29588 done # for ac_tag
29589
29590
29591 as_fn_exit 0
29592 _ACEOF
29593 ac_clean_files=$ac_clean_files_save
29594
29595 test $ac_write_fail = 0 ||
29596   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29597
29598
29599 # configure is writing to config.log, and then calls config.status.
29600 # config.status does its own redirection, appending to config.log.
29601 # Unfortunately, on DOS this fails, as config.log is still kept open
29602 # by configure, so config.status won't be able to write to it; its
29603 # output is simply discarded.  So we exec the FD to /dev/null,
29604 # effectively closing config.log, so it can be properly (re)opened and
29605 # appended to by config.status.  When coming back to configure, we
29606 # need to make the FD available again.
29607 if test "$no_create" != yes; then
29608   ac_cs_success=:
29609   ac_config_status_args=
29610   test "$silent" = yes &&
29611     ac_config_status_args="$ac_config_status_args --quiet"
29612   exec 5>/dev/null
29613   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29614   exec 5>>config.log
29615   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29616   # would make configure fail if this is the last instruction.
29617   $ac_cs_success || as_fn_exit 1
29618 fi
29619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29621 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29622 fi
29623
29624
29625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
29626
29627     Package version: ${VERSION}
29628     Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
29629     Install prefix:  ${prefix}
29630     System types:
29631       Build:         ${build}
29632       Host:          ${host}
29633       Target:        ${target}
29634     Compiler:
29635       C compiler:     ${CC}
29636       CFLAGS:         ${CFLAGS}
29637       LDFLAGS:        ${LDFLAGS}
29638       C++ compiler:   ${CXX}
29639       CXXFLAGS:       ${CXXFLAGS}
29640       CXXCPP:         ${CXXCPP}
29641       C preprocessor: ${CPP}
29642       CPPFLAGS:       ${CPPFLAGS}
29643       WARNCFLAGS:     ${WARNCFLAGS}
29644       WARNCXXFLAGS:   ${WARNCXXFLAGS}
29645       CXX1XCXXFLAGS:  ${CXX1XCXXFLAGS}
29646       EXTRACFLAG:     ${EXTRACFLAG}
29647       BPFCFLAGS:      ${BPFCFLAGS}
29648       EXTRABPFCFLAGS: ${EXTRABPFCFLAGS}
29649       LIBS:           ${LIBS}
29650       DEFS:           ${DEFS}
29651       EXTRA_DEFS:     ${EXTRA_DEFS}
29652     Library:
29653       Shared:         ${enable_shared}
29654       Static:         ${enable_static}
29655     Libtool:
29656       LIBTOOL_LDFLAGS: ${LIBTOOL_LDFLAGS}
29657     Python:
29658       Python:         ${PYTHON}
29659       PYTHON_VERSION: ${PYTHON_VERSION}
29660       pyexecdir:      ${pyexecdir}
29661       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
29662       PYTHON_LIBS:    ${PYTHON_LIBS}
29663       Cython:         ${CYTHON}
29664     Test:
29665       CUnit:          ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
29666       Failmalloc:     ${enable_failmalloc}
29667     Libs:
29668       OpenSSL:        ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
29669       Libxml2:        ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
29670       Libev:          ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
29671       Libc-ares:      ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
29672       libngtcp2:      ${have_libngtcp2} (CFLAGS='${LIBNGTCP2_CFLAGS}' LIBS='${LIBNGTCP2_LIBS}')
29673       libngtcp2_crypto_openssl: ${have_libngtcp2_crypto_openssl} (CFLAGS='${LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_OPENSSL_LIBS}')
29674       libngtcp2_crypto_boringssl: ${have_libngtcp2_crypto_boringssl} (CFLAGS='${LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_BORINGSSL_LIBS}')
29675       libnghttp3:     ${have_libnghttp3} (CFLAGS='${LIBNGHTTP3_CFLAGS}' LIBS='${LIBNGHTTP3_LIBS}')
29676       libbpf:         ${have_libbpf} (CFLAGS='${LIBBPF_CFLAGS}' LIBS='${LIBBPF_LIBS}')
29677       Libevent(SSL):  ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
29678       Jansson:        ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
29679       Jemalloc:       ${have_jemalloc} (CFLAGS='${JEMALLOC_CFLAGS}' LIBS='${JEMALLOC_LIBS}')
29680       Zlib:           ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
29681       Systemd:        ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
29682       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
29683       Boost LDFLAGS:  ${BOOST_LDFLAGS}
29684       Boost::ASIO:    ${BOOST_ASIO_LIB}
29685       Boost::System:  ${BOOST_SYSTEM_LIB}
29686       Boost::Thread:  ${BOOST_THREAD_LIB}
29687     Third-party:
29688       http-parser:    ${enable_third_party}
29689       MRuby:          ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
29690       Neverbleed:     ${have_neverbleed}
29691     Features:
29692       Applications:   ${enable_app}
29693       HPACK tools:    ${enable_hpack_tools}
29694       Libnghttp2_asio:${enable_asio_lib}
29695       Examples:       ${enable_examples}
29696       Python bindings:${enable_python_bindings}
29697       Threading:      ${enable_threads}
29698       HTTP/3 (EXPERIMENTAL): ${enable_http3}
29699 " >&5
29700 printf "%s\n" "$as_me: summary of build options:
29701
29702     Package version: ${VERSION}
29703     Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
29704     Install prefix:  ${prefix}
29705     System types:
29706       Build:         ${build}
29707       Host:          ${host}
29708       Target:        ${target}
29709     Compiler:
29710       C compiler:     ${CC}
29711       CFLAGS:         ${CFLAGS}
29712       LDFLAGS:        ${LDFLAGS}
29713       C++ compiler:   ${CXX}
29714       CXXFLAGS:       ${CXXFLAGS}
29715       CXXCPP:         ${CXXCPP}
29716       C preprocessor: ${CPP}
29717       CPPFLAGS:       ${CPPFLAGS}
29718       WARNCFLAGS:     ${WARNCFLAGS}
29719       WARNCXXFLAGS:   ${WARNCXXFLAGS}
29720       CXX1XCXXFLAGS:  ${CXX1XCXXFLAGS}
29721       EXTRACFLAG:     ${EXTRACFLAG}
29722       BPFCFLAGS:      ${BPFCFLAGS}
29723       EXTRABPFCFLAGS: ${EXTRABPFCFLAGS}
29724       LIBS:           ${LIBS}
29725       DEFS:           ${DEFS}
29726       EXTRA_DEFS:     ${EXTRA_DEFS}
29727     Library:
29728       Shared:         ${enable_shared}
29729       Static:         ${enable_static}
29730     Libtool:
29731       LIBTOOL_LDFLAGS: ${LIBTOOL_LDFLAGS}
29732     Python:
29733       Python:         ${PYTHON}
29734       PYTHON_VERSION: ${PYTHON_VERSION}
29735       pyexecdir:      ${pyexecdir}
29736       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
29737       PYTHON_LIBS:    ${PYTHON_LIBS}
29738       Cython:         ${CYTHON}
29739     Test:
29740       CUnit:          ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
29741       Failmalloc:     ${enable_failmalloc}
29742     Libs:
29743       OpenSSL:        ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
29744       Libxml2:        ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
29745       Libev:          ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
29746       Libc-ares:      ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
29747       libngtcp2:      ${have_libngtcp2} (CFLAGS='${LIBNGTCP2_CFLAGS}' LIBS='${LIBNGTCP2_LIBS}')
29748       libngtcp2_crypto_openssl: ${have_libngtcp2_crypto_openssl} (CFLAGS='${LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_OPENSSL_LIBS}')
29749       libngtcp2_crypto_boringssl: ${have_libngtcp2_crypto_boringssl} (CFLAGS='${LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_BORINGSSL_LIBS}')
29750       libnghttp3:     ${have_libnghttp3} (CFLAGS='${LIBNGHTTP3_CFLAGS}' LIBS='${LIBNGHTTP3_LIBS}')
29751       libbpf:         ${have_libbpf} (CFLAGS='${LIBBPF_CFLAGS}' LIBS='${LIBBPF_LIBS}')
29752       Libevent(SSL):  ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
29753       Jansson:        ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
29754       Jemalloc:       ${have_jemalloc} (CFLAGS='${JEMALLOC_CFLAGS}' LIBS='${JEMALLOC_LIBS}')
29755       Zlib:           ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
29756       Systemd:        ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
29757       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
29758       Boost LDFLAGS:  ${BOOST_LDFLAGS}
29759       Boost::ASIO:    ${BOOST_ASIO_LIB}
29760       Boost::System:  ${BOOST_SYSTEM_LIB}
29761       Boost::Thread:  ${BOOST_THREAD_LIB}
29762     Third-party:
29763       http-parser:    ${enable_third_party}
29764       MRuby:          ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
29765       Neverbleed:     ${have_neverbleed}
29766     Features:
29767       Applications:   ${enable_app}
29768       HPACK tools:    ${enable_hpack_tools}
29769       Libnghttp2_asio:${enable_asio_lib}
29770       Examples:       ${enable_examples}
29771       Python bindings:${enable_python_bindings}
29772       Threading:      ${enable_threads}
29773       HTTP/3 (EXPERIMENTAL): ${enable_http3}
29774 " >&6;}
29775