Imported Upstream version 1.0.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.69 for nghttp2 1.0.0.
4 #
5 # Report bugs to <t-tujikawa@users.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: t-tujikawa@users.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='nghttp2'
592 PACKAGE_TARNAME='nghttp2'
593 PACKAGE_VERSION='1.0.0'
594 PACKAGE_STRING='nghttp2 1.0.0'
595 PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 APPLDFLAGS
638 TESTLDADD
639 WARNCFLAGS
640 ENABLE_TINY_NGHTTPD_FALSE
641 ENABLE_TINY_NGHTTPD_TRUE
642 LIBOBJS
643 ENABLE_FAILMALLOC_FALSE
644 ENABLE_FAILMALLOC_TRUE
645 HAVE_CYTHON_FALSE
646 HAVE_CYTHON_TRUE
647 ENABLE_PYTHON_BINDINGS_FALSE
648 ENABLE_PYTHON_BINDINGS_TRUE
649 ENABLE_EXAMPLES_FALSE
650 ENABLE_EXAMPLES_TRUE
651 ENABLE_ASIO_LIB_FALSE
652 ENABLE_ASIO_LIB_TRUE
653 ENABLE_HPACK_TOOLS_FALSE
654 ENABLE_HPACK_TOOLS_TRUE
655 ENABLE_APP_FALSE
656 ENABLE_APP_TRUE
657 BOOST_THREAD_LIB
658 BOOST_SYSTEM_LIB
659 BOOST_ASIO_LIB
660 BOOST_LDFLAGS
661 BOOST_CPPFLAGS
662 HAVE_SPDYLAY_FALSE
663 HAVE_SPDYLAY_TRUE
664 LIBSPDYLAY_LIBS
665 LIBSPDYLAY_CFLAGS
666 JEMALLOC_LIBS
667 HAVE_LIBXML2_FALSE
668 HAVE_LIBXML2_TRUE
669 XML_LIBS
670 XML_CPPFLAGS
671 XML2_CONFIG
672 JANSSON_LIBS
673 JANSSON_CFLAGS
674 LIBEVENT_OPENSSL_LIBS
675 LIBEVENT_OPENSSL_CFLAGS
676 OPENSSL_LIBS
677 OPENSSL_CFLAGS
678 LIBEV_CFLAGS
679 LIBEV_LIBS
680 HAVE_CUNIT_FALSE
681 HAVE_CUNIT_TRUE
682 CUNIT_LIBS
683 CUNIT_CFLAGS
684 ZLIB_LIBS
685 ZLIB_CFLAGS
686 HAVE_CXX11
687 PYTHON_EXTRA_LDFLAGS
688 PYTHON_EXTRA_LIBS
689 PYTHON_SITE_PKG
690 PYTHON_LDFLAGS
691 PYTHON_CPPFLAGS
692 pkgpyexecdir
693 pyexecdir
694 pkgpythondir
695 pythondir
696 PYTHON_PLATFORM
697 PYTHON_EXEC_PREFIX
698 PYTHON_PREFIX
699 PYTHON_VERSION
700 PYTHON
701 PKG_CONFIG_LIBDIR
702 PKG_CONFIG_PATH
703 PKG_CONFIG
704 am__fastdepCXX_FALSE
705 am__fastdepCXX_TRUE
706 CXXDEPMODE
707 CXXCPP
708 ac_ct_CXX
709 CXXFLAGS
710 CXX
711 CYTHON
712 PACKAGE_VERSION_NUM
713 LT_AGE
714 LT_REVISION
715 LT_CURRENT
716 AM_BACKSLASH
717 AM_DEFAULT_VERBOSITY
718 AM_DEFAULT_V
719 AM_V
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 AWK
762 RANLIB
763 STRIP
764 ac_ct_AR
765 AR
766 DLLTOOL
767 OBJDUMP
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 SED
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 LIBTOOL
784 EGREP
785 GREP
786 CPP
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL'
832 ac_subst_files=''
833 ac_user_opts='
834 enable_option_checking
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 enable_dependency_tracking
843 enable_silent_rules
844 enable_werror
845 enable_debug
846 enable_threads
847 enable_app
848 enable_hpack_tools
849 enable_asio_lib
850 enable_examples
851 enable_python_bindings
852 enable_failmalloc
853 with_libxml2
854 with_jemalloc
855 with_spdylay
856 with_cython
857 with_xml_prefix
858 with_xml_exec_prefix
859 enable_xmltest
860 with_boost
861 with_boost_libdir
862 with_boost_asio
863 with_boost_system
864 with_boost_thread
865 enable_assert
866 enable_largefile
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 CYTHON
878 CXX
879 CXXFLAGS
880 CCC
881 CXXCPP
882 PKG_CONFIG
883 PKG_CONFIG_PATH
884 PKG_CONFIG_LIBDIR
885 PYTHON
886 PYTHON_VERSION
887 ZLIB_CFLAGS
888 ZLIB_LIBS
889 CUNIT_CFLAGS
890 CUNIT_LIBS
891 OPENSSL_CFLAGS
892 OPENSSL_LIBS
893 LIBEVENT_OPENSSL_CFLAGS
894 LIBEVENT_OPENSSL_LIBS
895 JANSSON_CFLAGS
896 JANSSON_LIBS
897 LIBSPDYLAY_CFLAGS
898 LIBSPDYLAY_LIBS'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *=)   ac_optarg= ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=no ;;
1019
1020   -docdir | --docdir | --docdi | --doc | --do)
1021     ac_prev=docdir ;;
1022   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023     docdir=$ac_optarg ;;
1024
1025   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026     ac_prev=dvidir ;;
1027   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028     dvidir=$ac_optarg ;;
1029
1030   -enable-* | --enable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error $? "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1054
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1058
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1065
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1070
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1076
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1083
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1088
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1093
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1100
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1105
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1112
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1117
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1121
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1125
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1129
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1138
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1143
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1150
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1157
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1174
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1179
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1184
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1188
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1194
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1205
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1210
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1215
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1222
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1227
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1230
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1233
1234   -with-* | --with-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=\$ac_optarg ;;
1249
1250   -without-* | --without-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286     ;;
1287
1288   *=*)
1289     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290     # Reject names that are not valid shell variable names.
1291     case $ac_envvar in #(
1292       '' | [0-9]* | *[!_$as_cr_alnum]* )
1293       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294     esac
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315   case $enable_option_checking in
1316     no) ;;
1317     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319   esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   # Remove trailing slashes.
1330   case $ac_val in
1331     */ )
1332       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333       eval $ac_var=\$ac_val;;
1334   esac
1335   # Be sure to have absolute directory names.
1336   case $ac_val in
1337     [\\/$]* | ?:[\\/]* )  continue;;
1338     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339   esac
1340   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370   as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375   ac_srcdir_defaulted=yes
1376   # Try the directory containing this script, then the parent directory.
1377   ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379          X"$as_myself" : 'X\(//\)[^/]' \| \
1380          X"$as_myself" : 'X\(//\)$' \| \
1381          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)[^/].*/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\).*/{
1396             s//\1/
1397             q
1398           }
1399           s/.*/./; q'`
1400   srcdir=$ac_confdir
1401   if test ! -r "$srcdir/$ac_unique_file"; then
1402     srcdir=..
1403   fi
1404 else
1405   ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414         pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417   srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_env_${ac_var}_value=\$${ac_var}
1428   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436   # Omit some internal or obsolete options to make the list less imposing.
1437   # This message is too long to be a string in the A/UX 3.1 sh.
1438   cat <<_ACEOF
1439 \`configure' configures nghttp2 1.0.0 to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE.  See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449   -h, --help              display this help and exit
1450       --help=short        display options specific to this package
1451       --help=recursive    display the short help of all the included packages
1452   -V, --version           display version information and exit
1453   -q, --quiet, --silent   do not print \`checking ...' messages
1454       --cache-file=FILE   cache test results in FILE [disabled]
1455   -C, --config-cache      alias for \`--cache-file=config.cache'
1456   -n, --no-create         do not create output files
1457       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460   --prefix=PREFIX         install architecture-independent files in PREFIX
1461                           [$ac_default_prefix]
1462   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1463                           [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473   --bindir=DIR            user executables [EPREFIX/bin]
1474   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1475   --libexecdir=DIR        program executables [EPREFIX/libexec]
1476   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1477   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1478   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1479   --libdir=DIR            object code libraries [EPREFIX/lib]
1480   --includedir=DIR        C header files [PREFIX/include]
1481   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1482   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1483   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1484   --infodir=DIR           info documentation [DATAROOTDIR/info]
1485   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1486   --mandir=DIR            man documentation [DATAROOTDIR/man]
1487   --docdir=DIR            documentation root [DATAROOTDIR/doc/nghttp2]
1488   --htmldir=DIR           html documentation [DOCDIR]
1489   --dvidir=DIR            dvi documentation [DOCDIR]
1490   --pdfdir=DIR            pdf documentation [DOCDIR]
1491   --psdir=DIR             ps documentation [DOCDIR]
1492 _ACEOF
1493
1494   cat <<\_ACEOF
1495
1496 Program names:
1497   --program-prefix=PREFIX            prepend PREFIX to installed program names
1498   --program-suffix=SUFFIX            append SUFFIX to installed program names
1499   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501 System types:
1502   --build=BUILD     configure for building on BUILD [guessed]
1503   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504   --target=TARGET   configure for building compilers for TARGET [HOST]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509   case $ac_init_help in
1510      short | recursive ) echo "Configuration of nghttp2 1.0.0:";;
1511    esac
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-option-checking  ignore unrecognized --enable/--with options
1516   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518   --enable-shared[=PKGS]  build shared libraries [default=yes]
1519   --enable-static[=PKGS]  build static libraries [default=yes]
1520   --enable-fast-install[=PKGS]
1521                           optimize for fast installation [default=yes]
1522   --disable-libtool-lock  avoid locking (might break parallel builds)
1523   --enable-dependency-tracking
1524                           do not reject slow dependency extractors
1525   --disable-dependency-tracking
1526                           speeds up one-time build
1527   --enable-silent-rules   less verbose build output (undo: "make V=1")
1528   --disable-silent-rules  verbose build output (undo: "make V=0")
1529   --enable-werror         Turn on compile time warnings
1530   --enable-debug          Turn on debug output
1531   --disable-threads       Turn off threading in apps
1532   --enable-app            Build applications (nghttp, nghttpd and nghttpx)
1533                           [default=check]
1534   --enable-hpack-tools    Build HPACK tools [default=check]
1535   --enable-asio-lib       Build C++ libnghttp2_asio library [default=no]
1536   --enable-examples       Build examples [default=check]
1537   --enable-python-bindings
1538                           Build Python bindings [default=check]
1539   --disable-failmalloc    Do not build failmalloc test program
1540   --disable-xmltest       Do not try to compile and run a test LIBXML program
1541   --disable-assert        turn off assertions
1542   --disable-largefile     omit support for large files
1543
1544 Optional Packages:
1545   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1548                           both]
1549   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1550   --with-sysroot=DIR Search for dependent libraries within DIR
1551                         (or the compiler's sysroot if not specified).
1552   --with-libxml2          Use libxml2 [default=check]
1553   --with-jemalloc         Use jemalloc [default=check]
1554   --with-spdylay          Use spdylay [default=check]
1555   --with-cython=PATH      Use cython in given PATH
1556   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1557   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1558   --with-boost[=ARG]      use Boost library from a standard location
1559                           (ARG=yes), from the specified location (ARG=<path>),
1560                           or disable it (ARG=no) [ARG=yes]
1561   --with-boost-libdir=LIB_DIR
1562                           Force given directory for boost libraries. Note that
1563                           this will override library path detection, so use
1564                           this parameter only if default library detection
1565                           fails and you know exactly where your boost
1566                           libraries are located.
1567   --with-boost-asio[=special-lib]
1568                           use the ASIO library from boost - it is possible to
1569                           specify a certain library for the linker e.g.
1570                           --with-boost-asio=boost_system-gcc41-mt-1_34
1571   --with-boost-system[=special-lib]
1572                           use the System library from boost - it is possible
1573                           to specify a certain library for the linker e.g.
1574                           --with-boost-system=boost_system-gcc-mt
1575   --with-boost-thread[=special-lib]
1576                           use the Thread library from boost - it is possible
1577                           to specify a certain library for the linker e.g.
1578                           --with-boost-thread=boost_thread-gcc-mt
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   LIBS        libraries to pass to the linker, e.g. -l<library>
1586   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587               you have headers in a nonstandard directory <include dir>
1588   CPP         C preprocessor
1589   CYTHON      the Cython executable
1590   CXX         C++ compiler command
1591   CXXFLAGS    C++ compiler flags
1592   CXXCPP      C++ preprocessor
1593   PKG_CONFIG  path to pkg-config utility
1594   PKG_CONFIG_PATH
1595               directories to add to pkg-config's search path
1596   PKG_CONFIG_LIBDIR
1597               path overriding pkg-config's built-in search path
1598   PYTHON      the Python interpreter
1599   PYTHON_VERSION
1600               The installed Python version to use, for example '2.3'. This
1601               string will be appended to the Python interpreter canonical
1602               name.
1603   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1604   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1605   CUNIT_CFLAGS
1606               C compiler flags for CUNIT, overriding pkg-config
1607   CUNIT_LIBS  linker flags for CUNIT, overriding pkg-config
1608   OPENSSL_CFLAGS
1609               C compiler flags for OPENSSL, overriding pkg-config
1610   OPENSSL_LIBS
1611               linker flags for OPENSSL, overriding pkg-config
1612   LIBEVENT_OPENSSL_CFLAGS
1613               C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1614   LIBEVENT_OPENSSL_LIBS
1615               linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1616   JANSSON_CFLAGS
1617               C compiler flags for JANSSON, overriding pkg-config
1618   JANSSON_LIBS
1619               linker flags for JANSSON, overriding pkg-config
1620   LIBSPDYLAY_CFLAGS
1621               C compiler flags for LIBSPDYLAY, overriding pkg-config
1622   LIBSPDYLAY_LIBS
1623               linker flags for LIBSPDYLAY, overriding pkg-config
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to <t-tujikawa@users.sourceforge.net>.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634   # If there are subdirs, report their specific --help.
1635   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636     test -d "$ac_dir" ||
1637       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638       continue
1639     ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645   # A ".." for each directory in $ac_dir_suffix.
1646   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647   case $ac_top_builddir_sub in
1648   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650   esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658   .)  # We are building in place.
1659     ac_srcdir=.
1660     ac_top_srcdir=$ac_top_builddir_sub
1661     ac_abs_top_srcdir=$ac_pwd ;;
1662   [\\/]* | ?:[\\/]* )  # Absolute name.
1663     ac_srcdir=$srcdir$ac_dir_suffix;
1664     ac_top_srcdir=$srcdir
1665     ac_abs_top_srcdir=$srcdir ;;
1666   *) # Relative name.
1667     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668     ac_top_srcdir=$ac_top_build_prefix$srcdir
1669     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673     cd "$ac_dir" || { ac_status=$?; continue; }
1674     # Check for guested configure.
1675     if test -f "$ac_srcdir/configure.gnu"; then
1676       echo &&
1677       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678     elif test -f "$ac_srcdir/configure"; then
1679       echo &&
1680       $SHELL "$ac_srcdir/configure" --help=recursive
1681     else
1682       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683     fi || ac_status=$?
1684     cd "$ac_pwd" || { ac_status=$?; break; }
1685   done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690   cat <<\_ACEOF
1691 nghttp2 configure 1.0.0
1692 generated by GNU Autoconf 2.69
1693
1694 Copyright (C) 2012 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698   exit
1699 fi
1700
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1704
1705 # ac_fn_c_try_compile LINENO
1706 # --------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_compile ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext
1712   if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_compile") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest.$ac_objext; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736         ac_retval=1
1737 fi
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739   as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_compile
1742
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_cpp ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757   ac_status=$?
1758   if test -s conftest.err; then
1759     grep -v '^ *+' conftest.err >conftest.er1
1760     cat conftest.er1 >&5
1761     mv -f conftest.er1 conftest.err
1762   fi
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } > conftest.i && {
1765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766          test ! -s conftest.err
1767        }; then :
1768   ac_retval=0
1769 else
1770   $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773     ac_retval=1
1774 fi
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776   as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_cpp
1779
1780 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1781 # -------------------------------------------------------
1782 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1783 # the include files in INCLUDES and setting the cache variable VAR
1784 # accordingly.
1785 ac_fn_c_check_header_mongrel ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   if eval \${$3+:} false; then :
1789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792   $as_echo_n "(cached) " >&6
1793 fi
1794 eval ac_res=\$$3
1795                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 else
1798   # Is the header compilable?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1800 $as_echo_n "checking $2 usability... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807   ac_header_compiler=yes
1808 else
1809   ac_header_compiler=no
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1813 $as_echo "$ac_header_compiler" >&6; }
1814
1815 # Is the header present?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1817 $as_echo_n "checking $2 presence... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_cpp "$LINENO"; then :
1823   ac_header_preproc=yes
1824 else
1825   ac_header_preproc=no
1826 fi
1827 rm -f conftest.err conftest.i conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1829 $as_echo "$ac_header_preproc" >&6; }
1830
1831 # So?  What about this header?
1832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833   yes:no: )
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1835 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838     ;;
1839   no:yes:* )
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1841 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1843 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1845 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1847 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ( $as_echo "## ----------------------------------------------- ##
1851 ## Report this to t-tujikawa@users.sourceforge.net ##
1852 ## ----------------------------------------------- ##"
1853      ) | sed "s/^/$as_me: WARNING:     /" >&2
1854     ;;
1855 esac
1856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859   $as_echo_n "(cached) " >&6
1860 else
1861   eval "$3=\$ac_header_compiler"
1862 fi
1863 eval ac_res=\$$3
1864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 fi
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_mongrel
1870
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1875 ac_fn_c_try_run ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_link") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889   { { case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_try") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; }; }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: program exited with status $ac_status" >&5
1902        $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905        ac_retval=$ac_status
1906 fi
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_run
1912
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923   $as_echo_n "(cached) " >&6
1924 else
1925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 $4
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931   eval "$3=yes"
1932 else
1933   eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_header_compile
1943
1944 # ac_fn_c_try_link LINENO
1945 # -----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_c_try_link ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   rm -f conftest.$ac_objext conftest$ac_exeext
1951   if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_link") 2>conftest.err
1959   ac_status=$?
1960   if test -s conftest.err; then
1961     grep -v '^ *+' conftest.err >conftest.er1
1962     cat conftest.er1 >&5
1963     mv -f conftest.er1 conftest.err
1964   fi
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } && {
1967          test -z "$ac_c_werror_flag" ||
1968          test ! -s conftest.err
1969        } && test -s conftest$ac_exeext && {
1970          test "$cross_compiling" = yes ||
1971          test -x conftest$ac_exeext
1972        }; then :
1973   ac_retval=0
1974 else
1975   $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978         ac_retval=1
1979 fi
1980   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982   # interfere with the next link command; also delete a directory that is
1983   # left behind by Apple's compiler.  We do this before executing the actions.
1984   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986   as_fn_set_status $ac_retval
1987
1988 } # ac_fn_c_try_link
1989
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2005 #define $2 innocuous_$2
2006
2007 /* System header to define __stub macros and hopefully few prototypes,
2008     which can conflict with char $2 (); below.
2009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010     <limits.h> exists even on freestanding compilers.  */
2011
2012 #ifdef __STDC__
2013 # include <limits.h>
2014 #else
2015 # include <assert.h>
2016 #endif
2017
2018 #undef $2
2019
2020 /* Override any GCC internal prototype to avoid an error.
2021    Use char because int might match the return type of a GCC
2022    builtin and then its argument prototype would still apply.  */
2023 #ifdef __cplusplus
2024 extern "C"
2025 #endif
2026 char $2 ();
2027 /* The GNU C library defines this for functions which it implements
2028     to always fail with ENOSYS.  Some functions are actually named
2029     something starting with __ and the normal name is an alias.  */
2030 #if defined __stub_$2 || defined __stub___$2
2031 choke me
2032 #endif
2033
2034 int
2035 main ()
2036 {
2037 return $2 ();
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_link "$LINENO"; then :
2043   eval "$3=yes"
2044 else
2045   eval "$3=no"
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext \
2048     conftest$ac_exeext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$3
2051                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_func
2056
2057 # ac_fn_cxx_try_compile LINENO
2058 # ----------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_compile ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   rm -f conftest.$ac_objext
2064   if { { ac_try="$ac_compile"
2065 case "(($ac_try" in
2066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067   *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071   (eval "$ac_compile") 2>conftest.err
2072   ac_status=$?
2073   if test -s conftest.err; then
2074     grep -v '^ *+' conftest.err >conftest.er1
2075     cat conftest.er1 >&5
2076     mv -f conftest.er1 conftest.err
2077   fi
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && {
2080          test -z "$ac_cxx_werror_flag" ||
2081          test ! -s conftest.err
2082        } && test -s conftest.$ac_objext; then :
2083   ac_retval=0
2084 else
2085   $as_echo "$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 $as_echo "$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   $as_echo "$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        }; then :
2120   ac_retval=0
2121 else
2122   $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125     ac_retval=1
2126 fi
2127   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128   as_fn_set_status $ac_retval
2129
2130 } # ac_fn_cxx_try_cpp
2131
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2136 {
2137   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138   rm -f conftest.$ac_objext conftest$ac_exeext
2139   if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146   (eval "$ac_link") 2>conftest.err
2147   ac_status=$?
2148   if test -s conftest.err; then
2149     grep -v '^ *+' conftest.err >conftest.er1
2150     cat conftest.er1 >&5
2151     mv -f conftest.er1 conftest.err
2152   fi
2153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154   test $ac_status = 0; } && {
2155          test -z "$ac_cxx_werror_flag" ||
2156          test ! -s conftest.err
2157        } && test -s conftest$ac_exeext && {
2158          test "$cross_compiling" = yes ||
2159          test -x conftest$ac_exeext
2160        }; then :
2161   ac_retval=0
2162 else
2163   $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166         ac_retval=1
2167 fi
2168   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170   # interfere with the next link command; also delete a directory that is
2171   # left behind by Apple's compiler.  We do this before executing the actions.
2172   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174   as_fn_set_status $ac_retval
2175
2176 } # ac_fn_cxx_try_link
2177
2178 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2179 # -------------------------------------------
2180 # Tests whether TYPE exists after having included INCLUDES, setting cache
2181 # variable VAR accordingly.
2182 ac_fn_c_check_type ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if eval \${$3+:} false; then :
2188   $as_echo_n "(cached) " >&6
2189 else
2190   eval "$3=no"
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 if (sizeof ($2))
2198          return 0;
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $4
2207 int
2208 main ()
2209 {
2210 if (sizeof (($2)))
2211             return 0;
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217
2218 else
2219   eval "$3=yes"
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 fi
2225 eval ac_res=\$$3
2226                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229
2230 } # ac_fn_c_check_type
2231
2232 # ac_fn_c_find_uintX_t LINENO BITS VAR
2233 # ------------------------------------
2234 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2235 # accordingly.
2236 ac_fn_c_find_uintX_t ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2240 $as_echo_n "checking for uint$2_t... " >&6; }
2241 if eval \${$3+:} false; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   eval "$3=no"
2245      # Order is important - never check a type that is potentially smaller
2246      # than half of the expected target width.
2247      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2248          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2249        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $ac_includes_default
2252 int
2253 main ()
2254 {
2255 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2256 test_array [0] = 0;
2257 return test_array [0];
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264   case $ac_type in #(
2265   uint$2_t) :
2266     eval "$3=yes" ;; #(
2267   *) :
2268     eval "$3=\$ac_type" ;;
2269 esac
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272        if eval test \"x\$"$3"\" = x"no"; then :
2273
2274 else
2275   break
2276 fi
2277      done
2278 fi
2279 eval ac_res=\$$3
2280                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283
2284 } # ac_fn_c_find_uintX_t
2285
2286 # ac_fn_c_find_intX_t LINENO BITS VAR
2287 # -----------------------------------
2288 # Finds a signed integer type with width BITS, setting cache variable VAR
2289 # accordingly.
2290 ac_fn_c_find_intX_t ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2294 $as_echo_n "checking for int$2_t... " >&6; }
2295 if eval \${$3+:} false; then :
2296   $as_echo_n "(cached) " >&6
2297 else
2298   eval "$3=no"
2299      # Order is important - never check a type that is potentially smaller
2300      # than half of the expected target width.
2301      for ac_type in int$2_t 'int' 'long int' \
2302          'long long int' 'short int' 'signed char'; do
2303        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $ac_includes_default
2306              enum { N = $2 / 2 - 1 };
2307 int
2308 main ()
2309 {
2310 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2311 test_array [0] = 0;
2312 return test_array [0];
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h.  */
2321 $ac_includes_default
2322                 enum { N = $2 / 2 - 1 };
2323 int
2324 main ()
2325 {
2326 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2327                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2328 test_array [0] = 0;
2329 return test_array [0];
2330
2331   ;
2332   return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336
2337 else
2338   case $ac_type in #(
2339   int$2_t) :
2340     eval "$3=yes" ;; #(
2341   *) :
2342     eval "$3=\$ac_type" ;;
2343 esac
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348        if eval test \"x\$"$3"\" = x"no"; then :
2349
2350 else
2351   break
2352 fi
2353      done
2354 fi
2355 eval ac_res=\$$3
2356                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359
2360 } # ac_fn_c_find_intX_t
2361
2362 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2363 # ----------------------------------------------------
2364 # Tries to find if the field MEMBER exists in type AGGR, after including
2365 # INCLUDES, setting cache variable VAR accordingly.
2366 ac_fn_c_check_member ()
2367 {
2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2370 $as_echo_n "checking for $2.$3... " >&6; }
2371 if eval \${$4+:} false; then :
2372   $as_echo_n "(cached) " >&6
2373 else
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $5
2377 int
2378 main ()
2379 {
2380 static $2 ac_aggr;
2381 if (ac_aggr.$3)
2382 return 0;
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388   eval "$4=yes"
2389 else
2390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $5
2393 int
2394 main ()
2395 {
2396 static $2 ac_aggr;
2397 if (sizeof ac_aggr.$3)
2398 return 0;
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2404   eval "$4=yes"
2405 else
2406   eval "$4=no"
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 eval ac_res=\$$4
2413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417 } # ac_fn_c_check_member
2418
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2423 # computed
2424 ac_fn_c_compute_int ()
2425 {
2426   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427   if test "$cross_compiling" = yes; then
2428     # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2436 test_array [0] = 0;
2437 return test_array [0];
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444   ac_lo=0 ac_mid=0
2445   while :; do
2446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2453 test_array [0] = 0;
2454 return test_array [0];
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461   ac_hi=$ac_mid; break
2462 else
2463   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464                         if test $ac_lo -le $ac_mid; then
2465                           ac_lo= ac_hi=
2466                           break
2467                         fi
2468                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471   done
2472 else
2473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 $4
2476 int
2477 main ()
2478 {
2479 static int test_array [1 - 2 * !(($2) < 0)];
2480 test_array [0] = 0;
2481 return test_array [0];
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   ac_hi=-1 ac_mid=-1
2489   while :; do
2490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2497 test_array [0] = 0;
2498 return test_array [0];
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   ac_lo=$ac_mid; break
2506 else
2507   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508                         if test $ac_mid -le $ac_hi; then
2509                           ac_lo= ac_hi=
2510                           break
2511                         fi
2512                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515   done
2516 else
2517   ac_lo= ac_hi=
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
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"; then :
2540   ac_hi=$ac_mid
2541 else
2542   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 done
2546 case $ac_lo in #((
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2548 '') ac_retval=1 ;;
2549 esac
2550   else
2551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2556 #include <stdio.h>
2557 #include <stdlib.h>
2558 int
2559 main ()
2560 {
2561
2562   FILE *f = fopen ("conftest.val", "w");
2563   if (! f)
2564     return 1;
2565   if (($2) < 0)
2566     {
2567       long int i = longval ();
2568       if (i != ($2))
2569         return 1;
2570       fprintf (f, "%ld", i);
2571     }
2572   else
2573     {
2574       unsigned long int i = ulongval ();
2575       if (i != ($2))
2576         return 1;
2577       fprintf (f, "%lu", i);
2578     }
2579   /* Do not output a trailing newline, as this causes \r\n confusion
2580      on some platforms.  */
2581   return ferror (f) || fclose (f) != 0;
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_run "$LINENO"; then :
2588   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2589 else
2590   ac_retval=1
2591 fi
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593   conftest.$ac_objext conftest.beam conftest.$ac_ext
2594 rm -f conftest.val
2595
2596   fi
2597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598   as_fn_set_status $ac_retval
2599
2600 } # ac_fn_c_compute_int
2601
2602 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2603 # ---------------------------------------------
2604 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2605 # accordingly.
2606 ac_fn_c_check_decl ()
2607 {
2608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609   as_decl_name=`echo $2|sed 's/ *(.*//'`
2610   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2612 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2613 if eval \${$3+:} false; then :
2614   $as_echo_n "(cached) " >&6
2615 else
2616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $4
2619 int
2620 main ()
2621 {
2622 #ifndef $as_decl_name
2623 #ifdef __cplusplus
2624   (void) $as_decl_use;
2625 #else
2626   (void) $as_decl_name;
2627 #endif
2628 #endif
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635   eval "$3=yes"
2636 else
2637   eval "$3=no"
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 eval ac_res=\$$3
2642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645
2646 } # ac_fn_c_check_decl
2647 cat >config.log <<_ACEOF
2648 This file contains any messages produced by compilers while
2649 running configure, to aid debugging if configure makes a mistake.
2650
2651 It was created by nghttp2 $as_me 1.0.0, which was
2652 generated by GNU Autoconf 2.69.  Invocation command line was
2653
2654   $ $0 $@
2655
2656 _ACEOF
2657 exec 5>>config.log
2658 {
2659 cat <<_ASUNAME
2660 ## --------- ##
2661 ## Platform. ##
2662 ## --------- ##
2663
2664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2669
2670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2671 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2672
2673 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2674 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2676 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2677 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2678 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2679 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2680
2681 _ASUNAME
2682
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     $as_echo "PATH: $as_dir"
2689   done
2690 IFS=$as_save_IFS
2691
2692 } >&5
2693
2694 cat >&5 <<_ACEOF
2695
2696
2697 ## ----------- ##
2698 ## Core tests. ##
2699 ## ----------- ##
2700
2701 _ACEOF
2702
2703
2704 # Keep a trace of the command line.
2705 # Strip out --no-create and --no-recursion so they do not pile up.
2706 # Strip out --silent because we don't want to record it for future runs.
2707 # Also quote any args containing shell meta-characters.
2708 # Make two passes to allow for proper duplicate-argument suppression.
2709 ac_configure_args=
2710 ac_configure_args0=
2711 ac_configure_args1=
2712 ac_must_keep_next=false
2713 for ac_pass in 1 2
2714 do
2715   for ac_arg
2716   do
2717     case $ac_arg in
2718     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2719     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2720     | -silent | --silent | --silen | --sile | --sil)
2721       continue ;;
2722     *\'*)
2723       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724     esac
2725     case $ac_pass in
2726     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2727     2)
2728       as_fn_append ac_configure_args1 " '$ac_arg'"
2729       if test $ac_must_keep_next = true; then
2730         ac_must_keep_next=false # Got value, back to normal.
2731       else
2732         case $ac_arg in
2733           *=* | --config-cache | -C | -disable-* | --disable-* \
2734           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2735           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2736           | -with-* | --with-* | -without-* | --without-* | --x)
2737             case "$ac_configure_args0 " in
2738               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2739             esac
2740             ;;
2741           -* ) ac_must_keep_next=true ;;
2742         esac
2743       fi
2744       as_fn_append ac_configure_args " '$ac_arg'"
2745       ;;
2746     esac
2747   done
2748 done
2749 { ac_configure_args0=; unset ac_configure_args0;}
2750 { ac_configure_args1=; unset ac_configure_args1;}
2751
2752 # When interrupted or exit'd, cleanup temporary files, and complete
2753 # config.log.  We remove comments because anyway the quotes in there
2754 # would cause problems or look ugly.
2755 # WARNING: Use '\'' to represent an apostrophe within the trap.
2756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2757 trap 'exit_status=$?
2758   # Save into config.log some information that might help in debugging.
2759   {
2760     echo
2761
2762     $as_echo "## ---------------- ##
2763 ## Cache variables. ##
2764 ## ---------------- ##"
2765     echo
2766     # The following way of writing the cache mishandles newlines in values,
2767 (
2768   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2769     eval ac_val=\$$ac_var
2770     case $ac_val in #(
2771     *${as_nl}*)
2772       case $ac_var in #(
2773       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2775       esac
2776       case $ac_var in #(
2777       _ | IFS | as_nl) ;; #(
2778       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2779       *) { eval $ac_var=; unset $ac_var;} ;;
2780       esac ;;
2781     esac
2782   done
2783   (set) 2>&1 |
2784     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2785     *${as_nl}ac_space=\ *)
2786       sed -n \
2787         "s/'\''/'\''\\\\'\'''\''/g;
2788           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2789       ;; #(
2790     *)
2791       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2792       ;;
2793     esac |
2794     sort
2795 )
2796     echo
2797
2798     $as_echo "## ----------------- ##
2799 ## Output variables. ##
2800 ## ----------------- ##"
2801     echo
2802     for ac_var in $ac_subst_vars
2803     do
2804       eval ac_val=\$$ac_var
2805       case $ac_val in
2806       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807       esac
2808       $as_echo "$ac_var='\''$ac_val'\''"
2809     done | sort
2810     echo
2811
2812     if test -n "$ac_subst_files"; then
2813       $as_echo "## ------------------- ##
2814 ## File substitutions. ##
2815 ## ------------------- ##"
2816       echo
2817       for ac_var in $ac_subst_files
2818       do
2819         eval ac_val=\$$ac_var
2820         case $ac_val in
2821         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2822         esac
2823         $as_echo "$ac_var='\''$ac_val'\''"
2824       done | sort
2825       echo
2826     fi
2827
2828     if test -s confdefs.h; then
2829       $as_echo "## ----------- ##
2830 ## confdefs.h. ##
2831 ## ----------- ##"
2832       echo
2833       cat confdefs.h
2834       echo
2835     fi
2836     test "$ac_signal" != 0 &&
2837       $as_echo "$as_me: caught signal $ac_signal"
2838     $as_echo "$as_me: exit $exit_status"
2839   } >&5
2840   rm -f core *.core core.conftest.* &&
2841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2842     exit $exit_status
2843 ' 0
2844 for ac_signal in 1 2 13 15; do
2845   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2846 done
2847 ac_signal=0
2848
2849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2850 rm -f -r conftest* confdefs.h
2851
2852 $as_echo "/* confdefs.h */" > confdefs.h
2853
2854 # Predefined preprocessor variables.
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_NAME "$PACKAGE_NAME"
2858 _ACEOF
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2862 _ACEOF
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_STRING "$PACKAGE_STRING"
2870 _ACEOF
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_URL "$PACKAGE_URL"
2878 _ACEOF
2879
2880
2881 # Let the site file select an alternate cache file if it wants to.
2882 # Prefer an explicitly selected file to automatically selected ones.
2883 ac_site_file1=NONE
2884 ac_site_file2=NONE
2885 if test -n "$CONFIG_SITE"; then
2886   # We do not want a PATH search for config.site.
2887   case $CONFIG_SITE in #((
2888     -*)  ac_site_file1=./$CONFIG_SITE;;
2889     */*) ac_site_file1=$CONFIG_SITE;;
2890     *)   ac_site_file1=./$CONFIG_SITE;;
2891   esac
2892 elif test "x$prefix" != xNONE; then
2893   ac_site_file1=$prefix/share/config.site
2894   ac_site_file2=$prefix/etc/config.site
2895 else
2896   ac_site_file1=$ac_default_prefix/share/config.site
2897   ac_site_file2=$ac_default_prefix/etc/config.site
2898 fi
2899 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2900 do
2901   test "x$ac_site_file" = xNONE && continue
2902   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2903     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2905     sed 's/^/| /' "$ac_site_file" >&5
2906     . "$ac_site_file" \
2907       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "failed to load site script $ac_site_file
2910 See \`config.log' for more details" "$LINENO" 5; }
2911   fi
2912 done
2913
2914 if test -r "$cache_file"; then
2915   # Some versions of bash will fail to source /dev/null (special files
2916   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2917   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2918     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2919 $as_echo "$as_me: loading cache $cache_file" >&6;}
2920     case $cache_file in
2921       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2922       *)                      . "./$cache_file";;
2923     esac
2924   fi
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2927 $as_echo "$as_me: creating cache $cache_file" >&6;}
2928   >$cache_file
2929 fi
2930
2931 # Check that the precious variables saved in the cache have kept the same
2932 # value.
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936   eval ac_new_set=\$ac_env_${ac_var}_set
2937   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938   eval ac_new_val=\$ac_env_${ac_var}_value
2939   case $ac_old_set,$ac_new_set in
2940     set,)
2941       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943       ac_cache_corrupted=: ;;
2944     ,set)
2945       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2947       ac_cache_corrupted=: ;;
2948     ,);;
2949     *)
2950       if test "x$ac_old_val" != "x$ac_new_val"; then
2951         # differences in whitespace do not lead to failure.
2952         ac_old_val_w=`echo x $ac_old_val`
2953         ac_new_val_w=`echo x $ac_new_val`
2954         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2957           ac_cache_corrupted=:
2958         else
2959           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961           eval $ac_var=\$ac_old_val
2962         fi
2963         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2964 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2965         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2967       fi;;
2968   esac
2969   # Pass precious variables to config.status.
2970   if test "$ac_new_set" = set; then
2971     case $ac_new_val in
2972     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2973     *) ac_arg=$ac_var=$ac_new_val ;;
2974     esac
2975     case " $ac_configure_args " in
2976       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2977       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2978     esac
2979   fi
2980 done
2981 if $ac_cache_corrupted; then
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2987 fi
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2991
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998
2999 ac_aux_dir=
3000 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3001   if test -f "$ac_dir/install-sh"; then
3002     ac_aux_dir=$ac_dir
3003     ac_install_sh="$ac_aux_dir/install-sh -c"
3004     break
3005   elif test -f "$ac_dir/install.sh"; then
3006     ac_aux_dir=$ac_dir
3007     ac_install_sh="$ac_aux_dir/install.sh -c"
3008     break
3009   elif test -f "$ac_dir/shtool"; then
3010     ac_aux_dir=$ac_dir
3011     ac_install_sh="$ac_aux_dir/shtool install -c"
3012     break
3013   fi
3014 done
3015 if test -z "$ac_aux_dir"; then
3016   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3017 fi
3018
3019 # These three variables are undocumented and unsupported,
3020 # and are intended to be withdrawn in a future Autoconf release.
3021 # They can cause serious problems if a builder's source tree is in a directory
3022 # whose full name contains unusual characters.
3023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3025 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3026
3027
3028 # Expand $ac_aux_dir to an absolute path.
3029 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_CC+:} false; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059   done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$ac_cv_prog_CC"; then
3076   ac_ct_CC=$CC
3077   # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if test -n "$ac_ct_CC"; then
3085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092     for ac_exec_ext in '' $ac_executable_extensions; do
3093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094     ac_cv_prog_ac_ct_CC="gcc"
3095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099   done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113   if test "x$ac_ct_CC" = x; then
3114     CC=""
3115   else
3116     case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122     CC=$ac_ct_CC
3123   fi
3124 else
3125   CC="$ac_cv_prog_CC"
3126 fi
3127
3128 if test -z "$CC"; then
3129           if test -n "$ac_tool_prefix"; then
3130     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}cc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_CC+:} false; then :
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$CC"; then
3138   ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_exec_ext in '' $ac_executable_extensions; do
3146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147     ac_cv_prog_CC="${ac_tool_prefix}cc"
3148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152   done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167   fi
3168 fi
3169 if test -z "$CC"; then
3170   # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$CC"; then
3178   ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180   ac_prog_rejected=no
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189        ac_prog_rejected=yes
3190        continue
3191      fi
3192     ac_cv_prog_CC="cc"
3193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197   done
3198 IFS=$as_save_IFS
3199
3200 if test $ac_prog_rejected = yes; then
3201   # We found a bogon in the path, so make sure we never use it.
3202   set dummy $ac_cv_prog_CC
3203   shift
3204   if test $# != 0; then
3205     # We chose a different compiler from the bogus one.
3206     # However, it has the same basename, so the bogon will be chosen
3207     # first if we set CC to just the basename; use the full file name.
3208     shift
3209     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3210   fi
3211 fi
3212 fi
3213 fi
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 fi
3225 if test -z "$CC"; then
3226   if test -n "$ac_tool_prefix"; then
3227   for ac_prog in cl.exe
3228   do
3229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   if test -n "$CC"; then
3237   ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251   done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266     test -n "$CC" && break
3267   done
3268 fi
3269 if test -z "$CC"; then
3270   ac_ct_CC=$CC
3271   for ac_prog in cl.exe
3272 do
3273   # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$ac_ct_CC"; then
3281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_exec_ext in '' $ac_executable_extensions; do
3289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290     ac_cv_prog_ac_ct_CC="$ac_prog"
3291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295   done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310   test -n "$ac_ct_CC" && break
3311 done
3312
3313   if test "x$ac_ct_CC" = x; then
3314     CC=""
3315   else
3316     case $cross_compiling:$ac_tool_warned in
3317 yes:)
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3321 esac
3322     CC=$ac_ct_CC
3323   fi
3324 fi
3325
3326 fi
3327
3328
3329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "no acceptable C compiler found in \$PATH
3332 See \`config.log' for more details" "$LINENO" 5; }
3333
3334 # Provide some information about the compiler.
3335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3336 set X $ac_compile
3337 ac_compiler=$2
3338 for ac_option in --version -v -V -qversion; do
3339   { { ac_try="$ac_compiler $ac_option >&5"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3347   ac_status=$?
3348   if test -s conftest.err; then
3349     sed '10a\
3350 ... rest of stderr output deleted ...
3351          10q' conftest.err >conftest.er1
3352     cat conftest.er1 >&5
3353   fi
3354   rm -f conftest.er1 conftest.err
3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356   test $ac_status = 0; }
3357 done
3358
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h.  */
3361
3362 int
3363 main ()
3364 {
3365
3366   ;
3367   return 0;
3368 }
3369 _ACEOF
3370 ac_clean_files_save=$ac_clean_files
3371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3372 # Try to create an executable without -o first, disregard a.out.
3373 # It will help us diagnose broken compilers, and finding out an intuition
3374 # of exeext.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3376 $as_echo_n "checking whether the C compiler works... " >&6; }
3377 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3378
3379 # The possible output files:
3380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3381
3382 ac_rmfiles=
3383 for ac_file in $ac_files
3384 do
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388   esac
3389 done
3390 rm -f $ac_rmfiles
3391
3392 if { { ac_try="$ac_link_default"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399   (eval "$ac_link_default") 2>&5
3400   ac_status=$?
3401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402   test $ac_status = 0; }; then :
3403   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3405 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3406 # so that the user can short-circuit this test for compilers unknown to
3407 # Autoconf.
3408 for ac_file in $ac_files ''
3409 do
3410   test -f "$ac_file" || continue
3411   case $ac_file in
3412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3413         ;;
3414     [ab].out )
3415         # We found the default executable, but exeext='' is most
3416         # certainly right.
3417         break;;
3418     *.* )
3419         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3420         then :; else
3421            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422         fi
3423         # We set ac_cv_exeext here because the later test for it is not
3424         # safe: cross compilers may not add the suffix if given an `-o'
3425         # argument, so we may need to know it at that point already.
3426         # Even if this section looks crufty: it has the advantage of
3427         # actually working.
3428         break;;
3429     * )
3430         break;;
3431   esac
3432 done
3433 test "$ac_cv_exeext" = no && ac_cv_exeext=
3434
3435 else
3436   ac_file=''
3437 fi
3438 if test -z "$ac_file"; then :
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error 77 "C compiler cannot create executables
3447 See \`config.log' for more details" "$LINENO" 5; }
3448 else
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3453 $as_echo_n "checking for C compiler default output file name... " >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3455 $as_echo "$ac_file" >&6; }
3456 ac_exeext=$ac_cv_exeext
3457
3458 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461 $as_echo_n "checking for suffix of executables... " >&6; }
3462 if { { ac_try="$ac_link"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469   (eval "$ac_link") 2>&5
3470   ac_status=$?
3471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472   test $ac_status = 0; }; then :
3473   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3475 # work properly (i.e., refer to `conftest.exe'), while it won't with
3476 # `rm'.
3477 for ac_file in conftest.exe conftest conftest.*; do
3478   test -f "$ac_file" || continue
3479   case $ac_file in
3480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482           break;;
3483     * ) break;;
3484   esac
3485 done
3486 else
3487   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 rm -f conftest conftest$ac_cv_exeext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494 $as_echo "$ac_cv_exeext" >&6; }
3495
3496 rm -f conftest.$ac_ext
3497 EXEEXT=$ac_cv_exeext
3498 ac_exeext=$EXEEXT
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501 #include <stdio.h>
3502 int
3503 main ()
3504 {
3505 FILE *f = fopen ("conftest.out", "w");
3506  return ferror (f) || fclose (f) != 0;
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 ac_clean_files="$ac_clean_files conftest.out"
3513 # Check that the compiler produces executables we can run.  If not, either
3514 # the compiler is broken, or we cross compile.
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3516 $as_echo_n "checking whether we are cross compiling... " >&6; }
3517 if test "$cross_compiling" != yes; then
3518   { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_link") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }
3529   if { ac_try='./conftest$ac_cv_exeext'
3530   { { case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536   (eval "$ac_try") 2>&5
3537   ac_status=$?
3538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539   test $ac_status = 0; }; }; then
3540     cross_compiling=no
3541   else
3542     if test "$cross_compiling" = maybe; then
3543         cross_compiling=yes
3544     else
3545         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "cannot run C compiled programs.
3548 If you meant to cross compile, use \`--host'.
3549 See \`config.log' for more details" "$LINENO" 5; }
3550     fi
3551   fi
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554 $as_echo "$cross_compiling" >&6; }
3555
3556 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3557 ac_clean_files=$ac_clean_files_save
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3559 $as_echo_n "checking for suffix of object files... " >&6; }
3560 if ${ac_cv_objext+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.o conftest.obj
3575 if { { ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582   (eval "$ac_compile") 2>&5
3583   ac_status=$?
3584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585   test $ac_status = 0; }; then :
3586   for ac_file in conftest.o conftest.obj conftest.*; do
3587   test -f "$ac_file" || continue;
3588   case $ac_file in
3589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591        break;;
3592   esac
3593 done
3594 else
3595   $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $? "cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details" "$LINENO" 5; }
3602 fi
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3606 $as_echo "$ac_cv_objext" >&6; }
3607 OBJEXT=$ac_cv_objext
3608 ac_objext=$OBJEXT
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if ${ac_cv_c_compiler_gnu+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620 #ifndef __GNUC__
3621        choke me
3622 #endif
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629   ac_compiler_gnu=yes
3630 else
3631   ac_compiler_gnu=no
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639 if test $ac_compiler_gnu = yes; then
3640   GCC=yes
3641 else
3642   GCC=
3643 fi
3644 ac_test_CFLAGS=${CFLAGS+set}
3645 ac_save_CFLAGS=$CFLAGS
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3648 if ${ac_cv_prog_cc_g+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   ac_save_c_werror_flag=$ac_c_werror_flag
3652    ac_c_werror_flag=yes
3653    ac_cv_prog_cc_g=no
3654    CFLAGS="-g"
3655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657
3658 int
3659 main ()
3660 {
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667   ac_cv_prog_cc_g=yes
3668 else
3669   CFLAGS=""
3670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682
3683 else
3684   ac_c_werror_flag=$ac_save_c_werror_flag
3685          CFLAGS="-g"
3686          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698   ac_cv_prog_cc_g=yes
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705    ac_c_werror_flag=$ac_save_c_werror_flag
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708 $as_echo "$ac_cv_prog_cc_g" >&6; }
3709 if test "$ac_test_CFLAGS" = set; then
3710   CFLAGS=$ac_save_CFLAGS
3711 elif test $ac_cv_prog_cc_g = yes; then
3712   if test "$GCC" = yes; then
3713     CFLAGS="-g -O2"
3714   else
3715     CFLAGS="-g"
3716   fi
3717 else
3718   if test "$GCC" = yes; then
3719     CFLAGS="-O2"
3720   else
3721     CFLAGS=
3722   fi
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726 if ${ac_cv_prog_cc_c89+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   ac_cv_prog_cc_c89=no
3730 ac_save_CC=$CC
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #include <stdarg.h>
3734 #include <stdio.h>
3735 struct stat;
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740      char **p;
3741      int i;
3742 {
3743   return p[i];
3744 }
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3746 {
3747   char *s;
3748   va_list v;
3749   va_start (v,p);
3750   s = g (p, va_arg (v,int));
3751   va_end (v);
3752   return s;
3753 }
3754
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3756    function prototypes and stuff, but not '\xHH' hex character constants.
3757    These don't provoke an error unfortunately, instead are silently treated
3758    as 'x'.  The following induces an error, until -std is added to get
3759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3760    array size at least.  It's necessary to write '\x00'==0 to get something
3761    that's true only with -std.  */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765    inside strings and character constants.  */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3775 int
3776 main ()
3777 {
3778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 do
3786   CC="$ac_save_CC $ac_arg"
3787   if ac_fn_c_try_compile "$LINENO"; then :
3788   ac_cv_prog_cc_c89=$ac_arg
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext
3791   test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3795
3796 fi
3797 # AC_CACHE_VAL
3798 case "x$ac_cv_prog_cc_c89" in
3799   x)
3800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 $as_echo "none needed" >&6; } ;;
3802   xno)
3803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 $as_echo "unsupported" >&6; } ;;
3805   *)
3806     CC="$CC $ac_cv_prog_cc_c89"
3807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 esac
3810 if test "x$ac_cv_prog_cc_c89" != xno; then :
3811
3812 fi
3813
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3826 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3827 if ${am_cv_prog_cc_c_o+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841   # Make sure it works both with $CC and with simple cc.
3842   # Following AC_PROG_CC_C_O, we do the test twice because some
3843   # compilers refuse to overwrite an existing .o file with -o,
3844   # though they will create one.
3845   am_cv_prog_cc_c_o=yes
3846   for am_i in 1 2; do
3847     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3848    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3849    ac_status=$?
3850    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851    (exit $ac_status); } \
3852          && test -f conftest2.$ac_objext; then
3853       : OK
3854     else
3855       am_cv_prog_cc_c_o=no
3856       break
3857     fi
3858   done
3859   rm -f core conftest*
3860   unset am_i
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3863 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3864 if test "$am_cv_prog_cc_c_o" != yes; then
3865    # Losing compiler, so override with the script.
3866    # FIXME: It is wrong to rewrite CC.
3867    # But if we don't then we get into trouble of one sort or another.
3868    # A longer-term fix would be to have automake use am__CC in this case,
3869    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3870    CC="$am_aux_dir/compile $CC"
3871 fi
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3887 # On Suns, sometimes $CPP names a directory.
3888 if test -n "$CPP" && test -d "$CPP"; then
3889   CPP=
3890 fi
3891 if test -z "$CPP"; then
3892   if ${ac_cv_prog_CPP+:} false; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895       # Double quotes because CPP needs to be expanded
3896     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3897     do
3898       ac_preproc_ok=false
3899 for ac_c_preproc_warn_flag in '' yes
3900 do
3901   # Use a header file that comes with gcc, so configuring glibc
3902   # with a fresh cross-compiler works.
3903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904   # <limits.h> exists even on freestanding compilers.
3905   # On the NeXT, cc -E runs the code through the compiler's parser,
3906   # not just through cpp. "Syntax error" is here to catch this case.
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909 #ifdef __STDC__
3910 # include <limits.h>
3911 #else
3912 # include <assert.h>
3913 #endif
3914                      Syntax error
3915 _ACEOF
3916 if ac_fn_c_try_cpp "$LINENO"; then :
3917
3918 else
3919   # Broken: fails on valid input.
3920 continue
3921 fi
3922 rm -f conftest.err conftest.i conftest.$ac_ext
3923
3924   # OK, works on sane cases.  Now check whether nonexistent headers
3925   # can be detected and how.
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928 #include <ac_nonexistent.h>
3929 _ACEOF
3930 if ac_fn_c_try_cpp "$LINENO"; then :
3931   # Broken: success on invalid input.
3932 continue
3933 else
3934   # Passes both tests.
3935 ac_preproc_ok=:
3936 break
3937 fi
3938 rm -f conftest.err conftest.i conftest.$ac_ext
3939
3940 done
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.i conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then :
3944   break
3945 fi
3946
3947     done
3948     ac_cv_prog_CPP=$CPP
3949
3950 fi
3951   CPP=$ac_cv_prog_CPP
3952 else
3953   ac_cv_prog_CPP=$CPP
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3956 $as_echo "$CPP" >&6; }
3957 ac_preproc_ok=false
3958 for ac_c_preproc_warn_flag in '' yes
3959 do
3960   # Use a header file that comes with gcc, so configuring glibc
3961   # with a fresh cross-compiler works.
3962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963   # <limits.h> exists even on freestanding compilers.
3964   # On the NeXT, cc -E runs the code through the compiler's parser,
3965   # not just through cpp. "Syntax error" is here to catch this case.
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973                      Syntax error
3974 _ACEOF
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3976
3977 else
3978   # Broken: fails on valid input.
3979 continue
3980 fi
3981 rm -f conftest.err conftest.i conftest.$ac_ext
3982
3983   # OK, works on sane cases.  Now check whether nonexistent headers
3984   # can be detected and how.
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #include <ac_nonexistent.h>
3988 _ACEOF
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3990   # Broken: success on invalid input.
3991 continue
3992 else
3993   # Passes both tests.
3994 ac_preproc_ok=:
3995 break
3996 fi
3997 rm -f conftest.err conftest.i conftest.$ac_ext
3998
3999 done
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.i conftest.err conftest.$ac_ext
4002 if $ac_preproc_ok; then :
4003
4004 else
4005   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4008 See \`config.log' for more details" "$LINENO" 5; }
4009 fi
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4020 if ${ac_cv_path_GREP+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -z "$GREP"; then
4024   ac_path_GREP_found=false
4025   # Loop through the user's path and test for each of PROGNAME-LIST
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_prog in grep ggrep; do
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034       as_fn_executable_p "$ac_path_GREP" || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036   # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041   ac_count=0
4042   $as_echo_n 0123456789 >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     $as_echo 'GREP' >> "conftest.nl"
4049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     as_fn_arith $ac_count + 1 && ac_count=$as_val
4052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_GREP="$ac_path_GREP"
4055       ac_path_GREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063       $ac_path_GREP_found && break 3
4064     done
4065   done
4066   done
4067 IFS=$as_save_IFS
4068   if test -z "$ac_cv_path_GREP"; then
4069     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070   fi
4071 else
4072   ac_cv_path_GREP=$GREP
4073 fi
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078  GREP="$ac_cv_path_GREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if ${ac_cv_path_EGREP+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087    then ac_cv_path_EGREP="$GREP -E"
4088    else
4089      if test -z "$EGREP"; then
4090   ac_path_EGREP_found=false
4091   # Loop through the user's path and test for each of PROGNAME-LIST
4092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097     for ac_prog in egrep; do
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100       as_fn_executable_p "$ac_path_EGREP" || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102   # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4104 *GNU*)
4105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4106 *)
4107   ac_count=0
4108   $as_echo_n 0123456789 >"conftest.in"
4109   while :
4110   do
4111     cat "conftest.in" "conftest.in" >"conftest.tmp"
4112     mv "conftest.tmp" "conftest.in"
4113     cp "conftest.in" "conftest.nl"
4114     $as_echo 'EGREP' >> "conftest.nl"
4115     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117     as_fn_arith $ac_count + 1 && ac_count=$as_val
4118     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119       # Best one so far, save it but keep looking for a better one
4120       ac_cv_path_EGREP="$ac_path_EGREP"
4121       ac_path_EGREP_max=$ac_count
4122     fi
4123     # 10*(2^10) chars as input seems more than enough
4124     test $ac_count -gt 10 && break
4125   done
4126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129       $ac_path_EGREP_found && break 3
4130     done
4131   done
4132   done
4133 IFS=$as_save_IFS
4134   if test -z "$ac_cv_path_EGREP"; then
4135     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136   fi
4137 else
4138   ac_cv_path_EGREP=$EGREP
4139 fi
4140
4141    fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145  EGREP="$ac_cv_path_EGREP"
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4149 $as_echo_n "checking for ANSI C header files... " >&6; }
4150 if ${ac_cv_header_stdc+:} false; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h.  */
4155 #include <stdlib.h>
4156 #include <stdarg.h>
4157 #include <string.h>
4158 #include <float.h>
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169   ac_cv_header_stdc=yes
4170 else
4171   ac_cv_header_stdc=no
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174
4175 if test $ac_cv_header_stdc = yes; then
4176   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h.  */
4179 #include <string.h>
4180
4181 _ACEOF
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183   $EGREP "memchr" >/dev/null 2>&1; then :
4184
4185 else
4186   ac_cv_header_stdc=no
4187 fi
4188 rm -f conftest*
4189
4190 fi
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196 #include <stdlib.h>
4197
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200   $EGREP "free" >/dev/null 2>&1; then :
4201
4202 else
4203   ac_cv_header_stdc=no
4204 fi
4205 rm -f conftest*
4206
4207 fi
4208
4209 if test $ac_cv_header_stdc = yes; then
4210   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4211   if test "$cross_compiling" = yes; then :
4212   :
4213 else
4214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h.  */
4216 #include <ctype.h>
4217 #include <stdlib.h>
4218 #if ((' ' & 0x0FF) == 0x020)
4219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4221 #else
4222 # define ISLOWER(c) \
4223                    (('a' <= (c) && (c) <= 'i') \
4224                      || ('j' <= (c) && (c) <= 'r') \
4225                      || ('s' <= (c) && (c) <= 'z'))
4226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227 #endif
4228
4229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4230 int
4231 main ()
4232 {
4233   int i;
4234   for (i = 0; i < 256; i++)
4235     if (XOR (islower (i), ISLOWER (i))
4236         || toupper (i) != TOUPPER (i))
4237       return 2;
4238   return 0;
4239 }
4240 _ACEOF
4241 if ac_fn_c_try_run "$LINENO"; then :
4242
4243 else
4244   ac_cv_header_stdc=no
4245 fi
4246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4247   conftest.$ac_objext conftest.beam conftest.$ac_ext
4248 fi
4249
4250 fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4253 $as_echo "$ac_cv_header_stdc" >&6; }
4254 if test $ac_cv_header_stdc = yes; then
4255
4256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4257
4258 fi
4259
4260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4262                   inttypes.h stdint.h unistd.h
4263 do :
4264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4266 "
4267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4268   cat >>confdefs.h <<_ACEOF
4269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4270 _ACEOF
4271
4272 fi
4273
4274 done
4275
4276
4277
4278   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4279 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4280   MINIX=yes
4281 else
4282   MINIX=
4283 fi
4284
4285
4286   if test "$MINIX" = yes; then
4287
4288 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4289
4290
4291 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4292
4293
4294 $as_echo "#define _MINIX 1" >>confdefs.h
4295
4296   fi
4297
4298
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4300 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4301 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4302   $as_echo_n "(cached) " >&6
4303 else
4304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h.  */
4306
4307 #         define __EXTENSIONS__ 1
4308           $ac_includes_default
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318   ac_cv_safe_to_define___extensions__=yes
4319 else
4320   ac_cv_safe_to_define___extensions__=no
4321 fi
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4325 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4326   test $ac_cv_safe_to_define___extensions__ = yes &&
4327     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4328
4329   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4330
4331   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4332
4333   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4334
4335   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4336
4337
4338
4339
4340 case `pwd` in
4341   *\ * | *\     *)
4342     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4343 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4344 esac
4345
4346
4347
4348 macro_version='2.4.2'
4349 macro_revision='1.3337'
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363 ltmain="$ac_aux_dir/ltmain.sh"
4364
4365 # Make sure we can run config.sub.
4366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4367   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370 $as_echo_n "checking build system type... " >&6; }
4371 if ${ac_cv_build+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   ac_build_alias=$build_alias
4375 test "x$ac_build_alias" = x &&
4376   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4377 test "x$ac_build_alias" = x &&
4378   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4381
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384 $as_echo "$ac_cv_build" >&6; }
4385 case $ac_cv_build in
4386 *-*-*) ;;
4387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4388 esac
4389 build=$ac_cv_build
4390 ac_save_IFS=$IFS; IFS='-'
4391 set x $ac_cv_build
4392 shift
4393 build_cpu=$1
4394 build_vendor=$2
4395 shift; shift
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4398 build_os=$*
4399 IFS=$ac_save_IFS
4400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404 $as_echo_n "checking host system type... " >&6; }
4405 if ${ac_cv_host+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test "x$host_alias" = x; then
4409   ac_cv_host=$ac_cv_build
4410 else
4411   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4413 fi
4414
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417 $as_echo "$ac_cv_host" >&6; }
4418 case $ac_cv_host in
4419 *-*-*) ;;
4420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4421 esac
4422 host=$ac_cv_host
4423 ac_save_IFS=$IFS; IFS='-'
4424 set x $ac_cv_host
4425 shift
4426 host_cpu=$1
4427 host_vendor=$2
4428 shift; shift
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4431 host_os=$*
4432 IFS=$ac_save_IFS
4433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4434
4435
4436 # Backslashify metacharacters that are still active within
4437 # double-quoted strings.
4438 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4439
4440 # Same as above, but do not quote variable references.
4441 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4442
4443 # Sed substitution to delay expansion of an escaped shell variable in a
4444 # double_quote_subst'ed string.
4445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4446
4447 # Sed substitution to delay expansion of an escaped single quote.
4448 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4449
4450 # Sed substitution to avoid accidental globbing in evaled expressions
4451 no_glob_subst='s/\*/\\\*/g'
4452
4453 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4454 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4455 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4458 $as_echo_n "checking how to print strings... " >&6; }
4459 # Test print first, because it will be a builtin if present.
4460 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4461    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4462   ECHO='print -r --'
4463 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4464   ECHO='printf %s\n'
4465 else
4466   # Use this function as a fallback that always works.
4467   func_fallback_echo ()
4468   {
4469     eval 'cat <<_LTECHO_EOF
4470 $1
4471 _LTECHO_EOF'
4472   }
4473   ECHO='func_fallback_echo'
4474 fi
4475
4476 # func_echo_all arg...
4477 # Invoke $ECHO with all args, space-separated.
4478 func_echo_all ()
4479 {
4480     $ECHO ""
4481 }
4482
4483 case "$ECHO" in
4484   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4485 $as_echo "printf" >&6; } ;;
4486   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4487 $as_echo "print -r" >&6; } ;;
4488   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4489 $as_echo "cat" >&6; } ;;
4490 esac
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4506 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4507 if ${ac_cv_path_SED+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4511      for ac_i in 1 2 3 4 5 6 7; do
4512        ac_script="$ac_script$as_nl$ac_script"
4513      done
4514      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4515      { ac_script=; unset ac_script;}
4516      if test -z "$SED"; then
4517   ac_path_SED_found=false
4518   # Loop through the user's path and test for each of PROGNAME-LIST
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_prog in sed gsed; do
4525     for ac_exec_ext in '' $ac_executable_extensions; do
4526       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4527       as_fn_executable_p "$ac_path_SED" || continue
4528 # Check for GNU ac_path_SED and select it if it is found.
4529   # Check for GNU $ac_path_SED
4530 case `"$ac_path_SED" --version 2>&1` in
4531 *GNU*)
4532   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4533 *)
4534   ac_count=0
4535   $as_echo_n 0123456789 >"conftest.in"
4536   while :
4537   do
4538     cat "conftest.in" "conftest.in" >"conftest.tmp"
4539     mv "conftest.tmp" "conftest.in"
4540     cp "conftest.in" "conftest.nl"
4541     $as_echo '' >> "conftest.nl"
4542     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4544     as_fn_arith $ac_count + 1 && ac_count=$as_val
4545     if test $ac_count -gt ${ac_path_SED_max-0}; then
4546       # Best one so far, save it but keep looking for a better one
4547       ac_cv_path_SED="$ac_path_SED"
4548       ac_path_SED_max=$ac_count
4549     fi
4550     # 10*(2^10) chars as input seems more than enough
4551     test $ac_count -gt 10 && break
4552   done
4553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 esac
4555
4556       $ac_path_SED_found && break 3
4557     done
4558   done
4559   done
4560 IFS=$as_save_IFS
4561   if test -z "$ac_cv_path_SED"; then
4562     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4563   fi
4564 else
4565   ac_cv_path_SED=$SED
4566 fi
4567
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4570 $as_echo "$ac_cv_path_SED" >&6; }
4571  SED="$ac_cv_path_SED"
4572   rm -f conftest.sed
4573
4574 test -z "$SED" && SED=sed
4575 Xsed="$SED -e 1s/^X//"
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4588 $as_echo_n "checking for fgrep... " >&6; }
4589 if ${ac_cv_path_FGREP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4593    then ac_cv_path_FGREP="$GREP -F"
4594    else
4595      if test -z "$FGREP"; then
4596   ac_path_FGREP_found=false
4597   # Loop through the user's path and test for each of PROGNAME-LIST
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_prog in fgrep; do
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4606       as_fn_executable_p "$ac_path_FGREP" || continue
4607 # Check for GNU ac_path_FGREP and select it if it is found.
4608   # Check for GNU $ac_path_FGREP
4609 case `"$ac_path_FGREP" --version 2>&1` in
4610 *GNU*)
4611   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4612 *)
4613   ac_count=0
4614   $as_echo_n 0123456789 >"conftest.in"
4615   while :
4616   do
4617     cat "conftest.in" "conftest.in" >"conftest.tmp"
4618     mv "conftest.tmp" "conftest.in"
4619     cp "conftest.in" "conftest.nl"
4620     $as_echo 'FGREP' >> "conftest.nl"
4621     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623     as_fn_arith $ac_count + 1 && ac_count=$as_val
4624     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4625       # Best one so far, save it but keep looking for a better one
4626       ac_cv_path_FGREP="$ac_path_FGREP"
4627       ac_path_FGREP_max=$ac_count
4628     fi
4629     # 10*(2^10) chars as input seems more than enough
4630     test $ac_count -gt 10 && break
4631   done
4632   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 esac
4634
4635       $ac_path_FGREP_found && break 3
4636     done
4637   done
4638   done
4639 IFS=$as_save_IFS
4640   if test -z "$ac_cv_path_FGREP"; then
4641     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642   fi
4643 else
4644   ac_cv_path_FGREP=$FGREP
4645 fi
4646
4647    fi
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4650 $as_echo "$ac_cv_path_FGREP" >&6; }
4651  FGREP="$ac_cv_path_FGREP"
4652
4653
4654 test -z "$GREP" && GREP=grep
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 # Check whether --with-gnu-ld was given.
4675 if test "${with_gnu_ld+set}" = set; then :
4676   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4677 else
4678   with_gnu_ld=no
4679 fi
4680
4681 ac_prog=ld
4682 if test "$GCC" = yes; then
4683   # Check if gcc -print-prog-name=ld gives a path.
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4685 $as_echo_n "checking for ld used by $CC... " >&6; }
4686   case $host in
4687   *-*-mingw*)
4688     # gcc leaves a trailing carriage return which upsets mingw
4689     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4690   *)
4691     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4692   esac
4693   case $ac_prog in
4694     # Accept absolute paths.
4695     [\\/]* | ?:[\\/]*)
4696       re_direlt='/[^/][^/]*/\.\./'
4697       # Canonicalize the pathname of ld
4698       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4699       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4700         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4701       done
4702       test -z "$LD" && LD="$ac_prog"
4703       ;;
4704   "")
4705     # If it fails, then pretend we aren't using GCC.
4706     ac_prog=ld
4707     ;;
4708   *)
4709     # If it is relative, then search for the first ld in PATH.
4710     with_gnu_ld=unknown
4711     ;;
4712   esac
4713 elif test "$with_gnu_ld" = yes; then
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4715 $as_echo_n "checking for GNU ld... " >&6; }
4716 else
4717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4718 $as_echo_n "checking for non-GNU ld... " >&6; }
4719 fi
4720 if ${lt_cv_path_LD+:} false; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723   if test -z "$LD"; then
4724   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4725   for ac_dir in $PATH; do
4726     IFS="$lt_save_ifs"
4727     test -z "$ac_dir" && ac_dir=.
4728     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4729       lt_cv_path_LD="$ac_dir/$ac_prog"
4730       # Check to see if the program is GNU ld.  I'd rather use --version,
4731       # but apparently some variants of GNU ld only accept -v.
4732       # Break only if it was the GNU/non-GNU ld that we prefer.
4733       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4734       *GNU* | *'with BFD'*)
4735         test "$with_gnu_ld" != no && break
4736         ;;
4737       *)
4738         test "$with_gnu_ld" != yes && break
4739         ;;
4740       esac
4741     fi
4742   done
4743   IFS="$lt_save_ifs"
4744 else
4745   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4746 fi
4747 fi
4748
4749 LD="$lt_cv_path_LD"
4750 if test -n "$LD"; then
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4752 $as_echo "$LD" >&6; }
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4759 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4760 if ${lt_cv_prog_gnu_ld+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4764 case `$LD -v 2>&1 </dev/null` in
4765 *GNU* | *'with BFD'*)
4766   lt_cv_prog_gnu_ld=yes
4767   ;;
4768 *)
4769   lt_cv_prog_gnu_ld=no
4770   ;;
4771 esac
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4774 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4775 with_gnu_ld=$lt_cv_prog_gnu_ld
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4786 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4787 if ${lt_cv_path_NM+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if test -n "$NM"; then
4791   # Let the user override the test.
4792   lt_cv_path_NM="$NM"
4793 else
4794   lt_nm_to_check="${ac_tool_prefix}nm"
4795   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4796     lt_nm_to_check="$lt_nm_to_check nm"
4797   fi
4798   for lt_tmp_nm in $lt_nm_to_check; do
4799     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4800     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4801       IFS="$lt_save_ifs"
4802       test -z "$ac_dir" && ac_dir=.
4803       tmp_nm="$ac_dir/$lt_tmp_nm"
4804       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4805         # Check to see if the nm accepts a BSD-compat flag.
4806         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4807         #   nm: unknown option "B" ignored
4808         # Tru64's nm complains that /dev/null is an invalid object file
4809         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4810         */dev/null* | *'Invalid file or object type'*)
4811           lt_cv_path_NM="$tmp_nm -B"
4812           break
4813           ;;
4814         *)
4815           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4816           */dev/null*)
4817             lt_cv_path_NM="$tmp_nm -p"
4818             break
4819             ;;
4820           *)
4821             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4822             continue # so that we can try to find one that supports BSD flags
4823             ;;
4824           esac
4825           ;;
4826         esac
4827       fi
4828     done
4829     IFS="$lt_save_ifs"
4830   done
4831   : ${lt_cv_path_NM=no}
4832 fi
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4835 $as_echo "$lt_cv_path_NM" >&6; }
4836 if test "$lt_cv_path_NM" != "no"; then
4837   NM="$lt_cv_path_NM"
4838 else
4839   # Didn't find any BSD compatible name lister, look for dumpbin.
4840   if test -n "$DUMPBIN"; then :
4841     # Let the user override the test.
4842   else
4843     if test -n "$ac_tool_prefix"; then
4844   for ac_prog in dumpbin "link -dump"
4845   do
4846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_DUMPBIN+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if test -n "$DUMPBIN"; then
4854   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868   done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 DUMPBIN=$ac_cv_prog_DUMPBIN
4874 if test -n "$DUMPBIN"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4876 $as_echo "$DUMPBIN" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883     test -n "$DUMPBIN" && break
4884   done
4885 fi
4886 if test -z "$DUMPBIN"; then
4887   ac_ct_DUMPBIN=$DUMPBIN
4888   for ac_prog in dumpbin "link -dump"
4889 do
4890   # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if test -n "$ac_ct_DUMPBIN"; then
4898   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_exec_ext in '' $ac_executable_extensions; do
4906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912   done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4918 if test -n "$ac_ct_DUMPBIN"; then
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4920 $as_echo "$ac_ct_DUMPBIN" >&6; }
4921 else
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926
4927   test -n "$ac_ct_DUMPBIN" && break
4928 done
4929
4930   if test "x$ac_ct_DUMPBIN" = x; then
4931     DUMPBIN=":"
4932   else
4933     case $cross_compiling:$ac_tool_warned in
4934 yes:)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937 ac_tool_warned=yes ;;
4938 esac
4939     DUMPBIN=$ac_ct_DUMPBIN
4940   fi
4941 fi
4942
4943     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4944     *COFF*)
4945       DUMPBIN="$DUMPBIN -symbols"
4946       ;;
4947     *)
4948       DUMPBIN=:
4949       ;;
4950     esac
4951   fi
4952
4953   if test "$DUMPBIN" != ":"; then
4954     NM="$DUMPBIN"
4955   fi
4956 fi
4957 test -z "$NM" && NM=nm
4958
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4965 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4966 if ${lt_cv_nm_interface+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   lt_cv_nm_interface="BSD nm"
4970   echo "int some_variable = 0;" > conftest.$ac_ext
4971   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4972   (eval "$ac_compile" 2>conftest.err)
4973   cat conftest.err >&5
4974   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4975   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4976   cat conftest.err >&5
4977   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4978   cat conftest.out >&5
4979   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4980     lt_cv_nm_interface="MS dumpbin"
4981   fi
4982   rm -f conftest*
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4985 $as_echo "$lt_cv_nm_interface" >&6; }
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4988 $as_echo_n "checking whether ln -s works... " >&6; }
4989 LN_S=$as_ln_s
4990 if test "$LN_S" = "ln -s"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992 $as_echo "yes" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4995 $as_echo "no, using $LN_S" >&6; }
4996 fi
4997
4998 # find the maximum length of command line arguments
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5000 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5001 if ${lt_cv_sys_max_cmd_len+:} false; then :
5002   $as_echo_n "(cached) " >&6
5003 else
5004     i=0
5005   teststring="ABCD"
5006
5007   case $build_os in
5008   msdosdjgpp*)
5009     # On DJGPP, this test can blow up pretty badly due to problems in libc
5010     # (any single argument exceeding 2000 bytes causes a buffer overrun
5011     # during glob expansion).  Even if it were fixed, the result of this
5012     # check would be larger than it should be.
5013     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5014     ;;
5015
5016   gnu*)
5017     # Under GNU Hurd, this test is not required because there is
5018     # no limit to the length of command line arguments.
5019     # Libtool will interpret -1 as no limit whatsoever
5020     lt_cv_sys_max_cmd_len=-1;
5021     ;;
5022
5023   cygwin* | mingw* | cegcc*)
5024     # On Win9x/ME, this test blows up -- it succeeds, but takes
5025     # about 5 minutes as the teststring grows exponentially.
5026     # Worse, since 9x/ME are not pre-emptively multitasking,
5027     # you end up with a "frozen" computer, even though with patience
5028     # the test eventually succeeds (with a max line length of 256k).
5029     # Instead, let's just punt: use the minimum linelength reported by
5030     # all of the supported platforms: 8192 (on NT/2K/XP).
5031     lt_cv_sys_max_cmd_len=8192;
5032     ;;
5033
5034   mint*)
5035     # On MiNT this can take a long time and run out of memory.
5036     lt_cv_sys_max_cmd_len=8192;
5037     ;;
5038
5039   amigaos*)
5040     # On AmigaOS with pdksh, this test takes hours, literally.
5041     # So we just punt and use a minimum line length of 8192.
5042     lt_cv_sys_max_cmd_len=8192;
5043     ;;
5044
5045   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5046     # This has been around since 386BSD, at least.  Likely further.
5047     if test -x /sbin/sysctl; then
5048       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5049     elif test -x /usr/sbin/sysctl; then
5050       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5051     else
5052       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5053     fi
5054     # And add a safety zone
5055     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5056     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5057     ;;
5058
5059   interix*)
5060     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5061     lt_cv_sys_max_cmd_len=196608
5062     ;;
5063
5064   os2*)
5065     # The test takes a long time on OS/2.
5066     lt_cv_sys_max_cmd_len=8192
5067     ;;
5068
5069   osf*)
5070     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5071     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5072     # nice to cause kernel panics so lets avoid the loop below.
5073     # First set a reasonable default.
5074     lt_cv_sys_max_cmd_len=16384
5075     #
5076     if test -x /sbin/sysconfig; then
5077       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5078         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5079       esac
5080     fi
5081     ;;
5082   sco3.2v5*)
5083     lt_cv_sys_max_cmd_len=102400
5084     ;;
5085   sysv5* | sco5v6* | sysv4.2uw2*)
5086     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5087     if test -n "$kargmax"; then
5088       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5089     else
5090       lt_cv_sys_max_cmd_len=32768
5091     fi
5092     ;;
5093   *)
5094     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5095     if test -n "$lt_cv_sys_max_cmd_len" && \
5096         test undefined != "$lt_cv_sys_max_cmd_len"; then
5097       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099     else
5100       # Make teststring a little bigger before we do anything with it.
5101       # a 1K string should be a reasonable start.
5102       for i in 1 2 3 4 5 6 7 8 ; do
5103         teststring=$teststring$teststring
5104       done
5105       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5106       # If test is not a shell built-in, we'll probably end up computing a
5107       # maximum length that is only half of the actual maximum length, but
5108       # we can't tell.
5109       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5110                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5111               test $i != 17 # 1/2 MB should be enough
5112       do
5113         i=`expr $i + 1`
5114         teststring=$teststring$teststring
5115       done
5116       # Only check the string length outside the loop.
5117       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5118       teststring=
5119       # Add a significant safety factor because C++ compilers can tack on
5120       # massive amounts of additional arguments before passing them to the
5121       # linker.  It appears as though 1/2 is a usable value.
5122       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5123     fi
5124     ;;
5125   esac
5126
5127 fi
5128
5129 if test -n $lt_cv_sys_max_cmd_len ; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5131 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5134 $as_echo "none" >&6; }
5135 fi
5136 max_cmd_len=$lt_cv_sys_max_cmd_len
5137
5138
5139
5140
5141
5142
5143 : ${CP="cp -f"}
5144 : ${MV="mv -f"}
5145 : ${RM="rm -f"}
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5148 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5149 # Try some XSI features
5150 xsi_shell=no
5151 ( _lt_dummy="a/b/c"
5152   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5153       = c,a/b,b/c, \
5154     && eval 'test $(( 1 + 1 )) -eq 2 \
5155     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5156   && xsi_shell=yes
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5158 $as_echo "$xsi_shell" >&6; }
5159
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5162 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5163 lt_shell_append=no
5164 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5165     >/dev/null 2>&1 \
5166   && lt_shell_append=yes
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5168 $as_echo "$lt_shell_append" >&6; }
5169
5170
5171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5172   lt_unset=unset
5173 else
5174   lt_unset=false
5175 fi
5176
5177
5178
5179
5180
5181 # test EBCDIC or ASCII
5182 case `echo X|tr X '\101'` in
5183  A) # ASCII based system
5184     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5185   lt_SP2NL='tr \040 \012'
5186   lt_NL2SP='tr \015\012 \040\040'
5187   ;;
5188  *) # EBCDIC based system
5189   lt_SP2NL='tr \100 \n'
5190   lt_NL2SP='tr \r\n \100\100'
5191   ;;
5192 esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5203 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5204 if ${lt_cv_to_host_file_cmd+:} false; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   case $host in
5208   *-*-mingw* )
5209     case $build in
5210       *-*-mingw* ) # actually msys
5211         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5212         ;;
5213       *-*-cygwin* )
5214         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5215         ;;
5216       * ) # otherwise, assume *nix
5217         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5218         ;;
5219     esac
5220     ;;
5221   *-*-cygwin* )
5222     case $build in
5223       *-*-mingw* ) # actually msys
5224         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5225         ;;
5226       *-*-cygwin* )
5227         lt_cv_to_host_file_cmd=func_convert_file_noop
5228         ;;
5229       * ) # otherwise, assume *nix
5230         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5231         ;;
5232     esac
5233     ;;
5234   * ) # unhandled hosts (and "normal" native builds)
5235     lt_cv_to_host_file_cmd=func_convert_file_noop
5236     ;;
5237 esac
5238
5239 fi
5240
5241 to_host_file_cmd=$lt_cv_to_host_file_cmd
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5243 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5244
5245
5246
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5250 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5251 if ${lt_cv_to_tool_file_cmd+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   #assume ordinary cross tools, or native build.
5255 lt_cv_to_tool_file_cmd=func_convert_file_noop
5256 case $host in
5257   *-*-mingw* )
5258     case $build in
5259       *-*-mingw* ) # actually msys
5260         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5261         ;;
5262     esac
5263     ;;
5264 esac
5265
5266 fi
5267
5268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5270 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5271
5272
5273
5274
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5277 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5278 if ${lt_cv_ld_reload_flag+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   lt_cv_ld_reload_flag='-r'
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5284 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5285 reload_flag=$lt_cv_ld_reload_flag
5286 case $reload_flag in
5287 "" | " "*) ;;
5288 *) reload_flag=" $reload_flag" ;;
5289 esac
5290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5291 case $host_os in
5292   cygwin* | mingw* | pw32* | cegcc*)
5293     if test "$GCC" != yes; then
5294       reload_cmds=false
5295     fi
5296     ;;
5297   darwin*)
5298     if test "$GCC" = yes; then
5299       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5300     else
5301       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5302     fi
5303     ;;
5304 esac
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 if test -n "$ac_tool_prefix"; then
5315   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_OBJDUMP+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   if test -n "$OBJDUMP"; then
5323   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 OBJDUMP=$ac_cv_prog_OBJDUMP
5343 if test -n "$OBJDUMP"; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5345 $as_echo "$OBJDUMP" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_OBJDUMP"; then
5354   ac_ct_OBJDUMP=$OBJDUMP
5355   # Extract the first word of "objdump", so it can be a program name with args.
5356 set dummy objdump; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if test -n "$ac_ct_OBJDUMP"; then
5363   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5383 if test -n "$ac_ct_OBJDUMP"; then
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5385 $as_echo "$ac_ct_OBJDUMP" >&6; }
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391   if test "x$ac_ct_OBJDUMP" = x; then
5392     OBJDUMP="false"
5393   else
5394     case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400     OBJDUMP=$ac_ct_OBJDUMP
5401   fi
5402 else
5403   OBJDUMP="$ac_cv_prog_OBJDUMP"
5404 fi
5405
5406 test -z "$OBJDUMP" && OBJDUMP=objdump
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5417 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5418 if ${lt_cv_deplibs_check_method+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   lt_cv_file_magic_cmd='$MAGIC_CMD'
5422 lt_cv_file_magic_test_file=
5423 lt_cv_deplibs_check_method='unknown'
5424 # Need to set the preceding variable on all platforms that support
5425 # interlibrary dependencies.
5426 # 'none' -- dependencies not supported.
5427 # `unknown' -- same as none, but documents that we really don't know.
5428 # 'pass_all' -- all dependencies passed with no checks.
5429 # 'test_compile' -- check by making test program.
5430 # 'file_magic [[regex]]' -- check by looking for files in library path
5431 # which responds to the $file_magic_cmd with a given extended regex.
5432 # If you have `file' or equivalent on your system and you're not sure
5433 # whether `pass_all' will *always* work, you probably want this one.
5434
5435 case $host_os in
5436 aix[4-9]*)
5437   lt_cv_deplibs_check_method=pass_all
5438   ;;
5439
5440 beos*)
5441   lt_cv_deplibs_check_method=pass_all
5442   ;;
5443
5444 bsdi[45]*)
5445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5446   lt_cv_file_magic_cmd='/usr/bin/file -L'
5447   lt_cv_file_magic_test_file=/shlib/libc.so
5448   ;;
5449
5450 cygwin*)
5451   # func_win32_libid is a shell function defined in ltmain.sh
5452   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5453   lt_cv_file_magic_cmd='func_win32_libid'
5454   ;;
5455
5456 mingw* | pw32*)
5457   # Base MSYS/MinGW do not provide the 'file' command needed by
5458   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5459   # unless we find 'file', for example because we are cross-compiling.
5460   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5461   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5462     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463     lt_cv_file_magic_cmd='func_win32_libid'
5464   else
5465     # Keep this pattern in sync with the one in func_win32_libid.
5466     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5467     lt_cv_file_magic_cmd='$OBJDUMP -f'
5468   fi
5469   ;;
5470
5471 cegcc*)
5472   # use the weaker test based on 'objdump'. See mingw*.
5473   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5474   lt_cv_file_magic_cmd='$OBJDUMP -f'
5475   ;;
5476
5477 darwin* | rhapsody*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 freebsd* | dragonfly*)
5482   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5483     case $host_cpu in
5484     i*86 )
5485       # Not sure whether the presence of OpenBSD here was a mistake.
5486       # Let's accept both of them until this is cleared up.
5487       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5488       lt_cv_file_magic_cmd=/usr/bin/file
5489       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5490       ;;
5491     esac
5492   else
5493     lt_cv_deplibs_check_method=pass_all
5494   fi
5495   ;;
5496
5497 haiku*)
5498   lt_cv_deplibs_check_method=pass_all
5499   ;;
5500
5501 hpux10.20* | hpux11*)
5502   lt_cv_file_magic_cmd=/usr/bin/file
5503   case $host_cpu in
5504   ia64*)
5505     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5506     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5507     ;;
5508   hppa*64*)
5509     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]'
5510     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5511     ;;
5512   *)
5513     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5514     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5515     ;;
5516   esac
5517   ;;
5518
5519 interix[3-9]*)
5520   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5521   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5522   ;;
5523
5524 irix5* | irix6* | nonstopux*)
5525   case $LD in
5526   *-32|*"-32 ") libmagic=32-bit;;
5527   *-n32|*"-n32 ") libmagic=N32;;
5528   *-64|*"-64 ") libmagic=64-bit;;
5529   *) libmagic=never-match;;
5530   esac
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 # This must be glibc/ELF.
5535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 netbsd* | netbsdelf*-gnu)
5540   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542   else
5543     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5544   fi
5545   ;;
5546
5547 newos6*)
5548   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5549   lt_cv_file_magic_cmd=/usr/bin/file
5550   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5551   ;;
5552
5553 *nto* | *qnx*)
5554   lt_cv_deplibs_check_method=pass_all
5555   ;;
5556
5557 openbsd*)
5558   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5559     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5560   else
5561     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5562   fi
5563   ;;
5564
5565 osf3* | osf4* | osf5*)
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 rdos*)
5570   lt_cv_deplibs_check_method=pass_all
5571   ;;
5572
5573 solaris*)
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5578   lt_cv_deplibs_check_method=pass_all
5579   ;;
5580
5581 sysv4 | sysv4.3*)
5582   case $host_vendor in
5583   motorola)
5584     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]'
5585     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5586     ;;
5587   ncr)
5588     lt_cv_deplibs_check_method=pass_all
5589     ;;
5590   sequent)
5591     lt_cv_file_magic_cmd='/bin/file'
5592     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5593     ;;
5594   sni)
5595     lt_cv_file_magic_cmd='/bin/file'
5596     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5597     lt_cv_file_magic_test_file=/lib/libc.so
5598     ;;
5599   siemens)
5600     lt_cv_deplibs_check_method=pass_all
5601     ;;
5602   pc)
5603     lt_cv_deplibs_check_method=pass_all
5604     ;;
5605   esac
5606   ;;
5607
5608 tpf*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611 esac
5612
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5615 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5616
5617 file_magic_glob=
5618 want_nocaseglob=no
5619 if test "$build" = "$host"; then
5620   case $host_os in
5621   mingw* | pw32*)
5622     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5623       want_nocaseglob=yes
5624     else
5625       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5626     fi
5627     ;;
5628   esac
5629 fi
5630
5631 file_magic_cmd=$lt_cv_file_magic_cmd
5632 deplibs_check_method=$lt_cv_deplibs_check_method
5633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 if test -n "$ac_tool_prefix"; then
5657   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5658 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_DLLTOOL+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   if test -n "$DLLTOOL"; then
5665   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 DLLTOOL=$ac_cv_prog_DLLTOOL
5685 if test -n "$DLLTOOL"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5687 $as_echo "$DLLTOOL" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693
5694 fi
5695 if test -z "$ac_cv_prog_DLLTOOL"; then
5696   ac_ct_DLLTOOL=$DLLTOOL
5697   # Extract the first word of "dlltool", so it can be a program name with args.
5698 set dummy dlltool; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$ac_ct_DLLTOOL"; then
5705   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5725 if test -n "$ac_ct_DLLTOOL"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5727 $as_echo "$ac_ct_DLLTOOL" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733   if test "x$ac_ct_DLLTOOL" = x; then
5734     DLLTOOL="false"
5735   else
5736     case $cross_compiling:$ac_tool_warned in
5737 yes:)
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740 ac_tool_warned=yes ;;
5741 esac
5742     DLLTOOL=$ac_ct_DLLTOOL
5743   fi
5744 else
5745   DLLTOOL="$ac_cv_prog_DLLTOOL"
5746 fi
5747
5748 test -z "$DLLTOOL" && DLLTOOL=dlltool
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5760 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5761 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   lt_cv_sharedlib_from_linklib_cmd='unknown'
5765
5766 case $host_os in
5767 cygwin* | mingw* | pw32* | cegcc*)
5768   # two different shell functions defined in ltmain.sh
5769   # decide which to use based on capabilities of $DLLTOOL
5770   case `$DLLTOOL --help 2>&1` in
5771   *--identify-strict*)
5772     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5773     ;;
5774   *)
5775     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5776     ;;
5777   esac
5778   ;;
5779 *)
5780   # fallback: assume linklib IS sharedlib
5781   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5782   ;;
5783 esac
5784
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5787 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5788 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5789 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5790
5791
5792
5793
5794
5795
5796
5797 if test -n "$ac_tool_prefix"; then
5798   for ac_prog in ar
5799   do
5800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_AR+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$AR"; then
5808   ac_cv_prog_AR="$AR" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 AR=$ac_cv_prog_AR
5828 if test -n "$AR"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5830 $as_echo "$AR" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837     test -n "$AR" && break
5838   done
5839 fi
5840 if test -z "$AR"; then
5841   ac_ct_AR=$AR
5842   for ac_prog in ar
5843 do
5844   # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   if test -n "$ac_ct_AR"; then
5852   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859     for ac_exec_ext in '' $ac_executable_extensions; do
5860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_ac_ct_AR="$ac_prog"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866   done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5872 if test -n "$ac_ct_AR"; then
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5874 $as_echo "$ac_ct_AR" >&6; }
5875 else
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880
5881   test -n "$ac_ct_AR" && break
5882 done
5883
5884   if test "x$ac_ct_AR" = x; then
5885     AR="false"
5886   else
5887     case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893     AR=$ac_ct_AR
5894   fi
5895 fi
5896
5897 : ${AR=ar}
5898 : ${AR_FLAGS=cru}
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5911 $as_echo_n "checking for archiver @FILE support... " >&6; }
5912 if ${lt_cv_ar_at_file+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   lt_cv_ar_at_file=no
5916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h.  */
5918
5919 int
5920 main ()
5921 {
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928   echo conftest.$ac_objext > conftest.lst
5929       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5930       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5931   (eval $lt_ar_try) 2>&5
5932   ac_status=$?
5933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5934   test $ac_status = 0; }
5935       if test "$ac_status" -eq 0; then
5936         # Ensure the archiver fails upon bogus file names.
5937         rm -f conftest.$ac_objext libconftest.a
5938         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5939   (eval $lt_ar_try) 2>&5
5940   ac_status=$?
5941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942   test $ac_status = 0; }
5943         if test "$ac_status" -ne 0; then
5944           lt_cv_ar_at_file=@
5945         fi
5946       fi
5947       rm -f conftest.* libconftest.a
5948
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5954 $as_echo "$lt_cv_ar_at_file" >&6; }
5955
5956 if test "x$lt_cv_ar_at_file" = xno; then
5957   archiver_list_spec=
5958 else
5959   archiver_list_spec=$lt_cv_ar_at_file
5960 fi
5961
5962
5963
5964
5965
5966
5967
5968 if test -n "$ac_tool_prefix"; then
5969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}strip; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_STRIP+:} false; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   if test -n "$STRIP"; then
5977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984     for ac_exec_ext in '' $ac_executable_extensions; do
5985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991   done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 STRIP=$ac_cv_prog_STRIP
5997 if test -n "$STRIP"; then
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5999 $as_echo "$STRIP" >&6; }
6000 else
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005
6006 fi
6007 if test -z "$ac_cv_prog_STRIP"; then
6008   ac_ct_STRIP=$STRIP
6009   # Extract the first word of "strip", so it can be a program name with args.
6010 set dummy strip; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$ac_ct_STRIP"; then
6017   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024     for ac_exec_ext in '' $ac_executable_extensions; do
6025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026     ac_cv_prog_ac_ct_STRIP="strip"
6027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031   done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6037 if test -n "$ac_ct_STRIP"; then
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6039 $as_echo "$ac_ct_STRIP" >&6; }
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045   if test "x$ac_ct_STRIP" = x; then
6046     STRIP=":"
6047   else
6048     case $cross_compiling:$ac_tool_warned in
6049 yes:)
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052 ac_tool_warned=yes ;;
6053 esac
6054     STRIP=$ac_ct_STRIP
6055   fi
6056 else
6057   STRIP="$ac_cv_prog_STRIP"
6058 fi
6059
6060 test -z "$STRIP" && STRIP=:
6061
6062
6063
6064
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_RANLIB+:} false; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$RANLIB"; then
6076   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083     for ac_exec_ext in '' $ac_executable_extensions; do
6084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6098 $as_echo "$RANLIB" >&6; }
6099 else
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107   ac_ct_RANLIB=$RANLIB
6108   # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$ac_ct_RANLIB"; then
6116   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_ac_ct_RANLIB="ranlib"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6138 $as_echo "$ac_ct_RANLIB" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144   if test "x$ac_ct_RANLIB" = x; then
6145     RANLIB=":"
6146   else
6147     case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153     RANLIB=$ac_ct_RANLIB
6154   fi
6155 else
6156   RANLIB="$ac_cv_prog_RANLIB"
6157 fi
6158
6159 test -z "$RANLIB" && RANLIB=:
6160
6161
6162
6163
6164
6165
6166 # Determine commands to create old-style static archives.
6167 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6168 old_postinstall_cmds='chmod 644 $oldlib'
6169 old_postuninstall_cmds=
6170
6171 if test -n "$RANLIB"; then
6172   case $host_os in
6173   openbsd*)
6174     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6175     ;;
6176   *)
6177     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6178     ;;
6179   esac
6180   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6181 fi
6182
6183 case $host_os in
6184   darwin*)
6185     lock_old_archive_extraction=yes ;;
6186   *)
6187     lock_old_archive_extraction=no ;;
6188 esac
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210 for ac_prog in gawk mawk nawk awk
6211 do
6212   # Extract the first word of "$ac_prog", so it can be a program name with args.
6213 set dummy $ac_prog; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_AWK+:} false; then :
6217   $as_echo_n "(cached) " >&6
6218 else
6219   if test -n "$AWK"; then
6220   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227     for ac_exec_ext in '' $ac_executable_extensions; do
6228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229     ac_cv_prog_AWK="$ac_prog"
6230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234   done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 AWK=$ac_cv_prog_AWK
6240 if test -n "$AWK"; then
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6242 $as_echo "$AWK" >&6; }
6243 else
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6246 fi
6247
6248
6249   test -n "$AWK" && break
6250 done
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 # If no C compiler was specified, use CC.
6271 LTCC=${LTCC-"$CC"}
6272
6273 # If no C compiler flags were specified, use CFLAGS.
6274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6275
6276 # Allow CC to be a program name with arguments.
6277 compiler=$CC
6278
6279
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6289
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6292
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6296 # Define system-specific variables.
6297 case $host_os in
6298 aix*)
6299   symcode='[BCDT]'
6300   ;;
6301 cygwin* | mingw* | pw32* | cegcc*)
6302   symcode='[ABCDGISTW]'
6303   ;;
6304 hpux*)
6305   if test "$host_cpu" = ia64; then
6306     symcode='[ABCDEGRST]'
6307   fi
6308   ;;
6309 irix* | nonstopux*)
6310   symcode='[BCDEGRST]'
6311   ;;
6312 osf*)
6313   symcode='[BCDEGQRST]'
6314   ;;
6315 solaris*)
6316   symcode='[BDRT]'
6317   ;;
6318 sco3.2v5*)
6319   symcode='[DT]'
6320   ;;
6321 sysv4.2uw2*)
6322   symcode='[DT]'
6323   ;;
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6325   symcode='[ABDT]'
6326   ;;
6327 sysv4)
6328   symcode='[DFNSTU]'
6329   ;;
6330 esac
6331
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335   symcode='[ABCDGIRSTW]' ;;
6336 esac
6337
6338 # Transform an extracted symbol line into a proper C declaration.
6339 # Some systems (esp. on ia64) link data and code symbols differently,
6340 # so use this general approach.
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342
6343 # Transform an extracted symbol line into symbol name and symbol address
6344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6345 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6346
6347 # Handle CRLF in mingw tool chain
6348 opt_cr=
6349 case $build_os in
6350 mingw*)
6351   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352   ;;
6353 esac
6354
6355 # Try without a prefix underscore, then with it.
6356 for ac_symprfx in "" "_"; do
6357
6358   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6359   symxfrm="\\1 $ac_symprfx\\2 \\2"
6360
6361   # Write the raw and C identifiers.
6362   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6363     # Fake it for dumpbin and say T for any non-static function
6364     # and D for any global variable.
6365     # Also find C++ and __fastcall symbols from MSVC++,
6366     # which start with @ or ?.
6367     lt_cv_sys_global_symbol_pipe="$AWK '"\
6368 "     {last_section=section; section=\$ 3};"\
6369 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6370 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6371 "     \$ 0!~/External *\|/{next};"\
6372 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6373 "     {if(hide[section]) next};"\
6374 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6375 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6376 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6377 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6378 "     ' prfx=^$ac_symprfx"
6379   else
6380     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6381   fi
6382   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6383
6384   # Check to see that the pipe works correctly.
6385   pipe_works=no
6386
6387   rm -f conftest*
6388   cat > conftest.$ac_ext <<_LT_EOF
6389 #ifdef __cplusplus
6390 extern "C" {
6391 #endif
6392 char nm_test_var;
6393 void nm_test_func(void);
6394 void nm_test_func(void){}
6395 #ifdef __cplusplus
6396 }
6397 #endif
6398 int main(){nm_test_var='a';nm_test_func();return(0);}
6399 _LT_EOF
6400
6401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402   (eval $ac_compile) 2>&5
6403   ac_status=$?
6404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405   test $ac_status = 0; }; then
6406     # Now try to grab the symbols.
6407     nlist=conftest.nm
6408     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6409   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6410   ac_status=$?
6411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412   test $ac_status = 0; } && test -s "$nlist"; then
6413       # Try sorting and uniquifying the output.
6414       if sort "$nlist" | uniq > "$nlist"T; then
6415         mv -f "$nlist"T "$nlist"
6416       else
6417         rm -f "$nlist"T
6418       fi
6419
6420       # Make sure that we snagged all the symbols we need.
6421       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6422         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6423           cat <<_LT_EOF > conftest.$ac_ext
6424 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6425 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6426 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6427    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6428 # define LT_DLSYM_CONST
6429 #elif defined(__osf__)
6430 /* This system does not cope well with relocations in const data.  */
6431 # define LT_DLSYM_CONST
6432 #else
6433 # define LT_DLSYM_CONST const
6434 #endif
6435
6436 #ifdef __cplusplus
6437 extern "C" {
6438 #endif
6439
6440 _LT_EOF
6441           # Now generate the symbol file.
6442           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6443
6444           cat <<_LT_EOF >> conftest.$ac_ext
6445
6446 /* The mapping between symbol names and symbols.  */
6447 LT_DLSYM_CONST struct {
6448   const char *name;
6449   void       *address;
6450 }
6451 lt__PROGRAM__LTX_preloaded_symbols[] =
6452 {
6453   { "@PROGRAM@", (void *) 0 },
6454 _LT_EOF
6455           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6456           cat <<\_LT_EOF >> conftest.$ac_ext
6457   {0, (void *) 0}
6458 };
6459
6460 /* This works around a problem in FreeBSD linker */
6461 #ifdef FREEBSD_WORKAROUND
6462 static const void *lt_preloaded_setup() {
6463   return lt__PROGRAM__LTX_preloaded_symbols;
6464 }
6465 #endif
6466
6467 #ifdef __cplusplus
6468 }
6469 #endif
6470 _LT_EOF
6471           # Now try linking the two files.
6472           mv conftest.$ac_objext conftstm.$ac_objext
6473           lt_globsym_save_LIBS=$LIBS
6474           lt_globsym_save_CFLAGS=$CFLAGS
6475           LIBS="conftstm.$ac_objext"
6476           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6477           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6478   (eval $ac_link) 2>&5
6479   ac_status=$?
6480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6482             pipe_works=yes
6483           fi
6484           LIBS=$lt_globsym_save_LIBS
6485           CFLAGS=$lt_globsym_save_CFLAGS
6486         else
6487           echo "cannot find nm_test_func in $nlist" >&5
6488         fi
6489       else
6490         echo "cannot find nm_test_var in $nlist" >&5
6491       fi
6492     else
6493       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6494     fi
6495   else
6496     echo "$progname: failed program was:" >&5
6497     cat conftest.$ac_ext >&5
6498   fi
6499   rm -rf conftest* conftst*
6500
6501   # Do not use the global_symbol_pipe unless it works.
6502   if test "$pipe_works" = yes; then
6503     break
6504   else
6505     lt_cv_sys_global_symbol_pipe=
6506   fi
6507 done
6508
6509 fi
6510
6511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512   lt_cv_sys_global_symbol_to_cdecl=
6513 fi
6514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6516 $as_echo "failed" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6519 $as_echo "ok" >&6; }
6520 fi
6521
6522 # Response file support.
6523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6524   nm_file_list_spec='@'
6525 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6526   nm_file_list_spec='@'
6527 fi
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6556 $as_echo_n "checking for sysroot... " >&6; }
6557
6558 # Check whether --with-sysroot was given.
6559 if test "${with_sysroot+set}" = set; then :
6560   withval=$with_sysroot;
6561 else
6562   with_sysroot=no
6563 fi
6564
6565
6566 lt_sysroot=
6567 case ${with_sysroot} in #(
6568  yes)
6569    if test "$GCC" = yes; then
6570      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6571    fi
6572    ;; #(
6573  /*)
6574    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6575    ;; #(
6576  no|'')
6577    ;; #(
6578  *)
6579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6580 $as_echo "${with_sysroot}" >&6; }
6581    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6582    ;;
6583 esac
6584
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6586 $as_echo "${lt_sysroot:-no}" >&6; }
6587
6588
6589
6590
6591
6592 # Check whether --enable-libtool-lock was given.
6593 if test "${enable_libtool_lock+set}" = set; then :
6594   enableval=$enable_libtool_lock;
6595 fi
6596
6597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6598
6599 # Some flags need to be propagated to the compiler or linker for good
6600 # libtool support.
6601 case $host in
6602 ia64-*-hpux*)
6603   # Find out which ABI we are using.
6604   echo 'int i;' > conftest.$ac_ext
6605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606   (eval $ac_compile) 2>&5
6607   ac_status=$?
6608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609   test $ac_status = 0; }; then
6610     case `/usr/bin/file conftest.$ac_objext` in
6611       *ELF-32*)
6612         HPUX_IA64_MODE="32"
6613         ;;
6614       *ELF-64*)
6615         HPUX_IA64_MODE="64"
6616         ;;
6617     esac
6618   fi
6619   rm -rf conftest*
6620   ;;
6621 *-*-irix6*)
6622   # Find out which ABI we are using.
6623   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625   (eval $ac_compile) 2>&5
6626   ac_status=$?
6627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628   test $ac_status = 0; }; then
6629     if test "$lt_cv_prog_gnu_ld" = yes; then
6630       case `/usr/bin/file conftest.$ac_objext` in
6631         *32-bit*)
6632           LD="${LD-ld} -melf32bsmip"
6633           ;;
6634         *N32*)
6635           LD="${LD-ld} -melf32bmipn32"
6636           ;;
6637         *64-bit*)
6638           LD="${LD-ld} -melf64bmip"
6639         ;;
6640       esac
6641     else
6642       case `/usr/bin/file conftest.$ac_objext` in
6643         *32-bit*)
6644           LD="${LD-ld} -32"
6645           ;;
6646         *N32*)
6647           LD="${LD-ld} -n32"
6648           ;;
6649         *64-bit*)
6650           LD="${LD-ld} -64"
6651           ;;
6652       esac
6653     fi
6654   fi
6655   rm -rf conftest*
6656   ;;
6657
6658 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6659 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6660   # Find out which ABI we are using.
6661   echo 'int i;' > conftest.$ac_ext
6662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663   (eval $ac_compile) 2>&5
6664   ac_status=$?
6665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666   test $ac_status = 0; }; then
6667     case `/usr/bin/file conftest.o` in
6668       *32-bit*)
6669         case $host in
6670           x86_64-*kfreebsd*-gnu)
6671             LD="${LD-ld} -m elf_i386_fbsd"
6672             ;;
6673           x86_64-*linux*)
6674             case `/usr/bin/file conftest.o` in
6675               *x86-64*)
6676                 LD="${LD-ld} -m elf32_x86_64"
6677                 ;;
6678               *)
6679                 LD="${LD-ld} -m elf_i386"
6680                 ;;
6681             esac
6682             ;;
6683           powerpc64le-*)
6684             LD="${LD-ld} -m elf32lppclinux"
6685             ;;
6686           powerpc64-*)
6687             LD="${LD-ld} -m elf32ppclinux"
6688             ;;
6689           s390x-*linux*)
6690             LD="${LD-ld} -m elf_s390"
6691             ;;
6692           sparc64-*linux*)
6693             LD="${LD-ld} -m elf32_sparc"
6694             ;;
6695         esac
6696         ;;
6697       *64-bit*)
6698         case $host in
6699           x86_64-*kfreebsd*-gnu)
6700             LD="${LD-ld} -m elf_x86_64_fbsd"
6701             ;;
6702           x86_64-*linux*)
6703             LD="${LD-ld} -m elf_x86_64"
6704             ;;
6705           powerpcle-*)
6706             LD="${LD-ld} -m elf64lppc"
6707             ;;
6708           powerpc-*)
6709             LD="${LD-ld} -m elf64ppc"
6710             ;;
6711           s390*-*linux*|s390*-*tpf*)
6712             LD="${LD-ld} -m elf64_s390"
6713             ;;
6714           sparc*-*linux*)
6715             LD="${LD-ld} -m elf64_sparc"
6716             ;;
6717         esac
6718         ;;
6719     esac
6720   fi
6721   rm -rf conftest*
6722   ;;
6723
6724 *-*-sco3.2v5*)
6725   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6726   SAVE_CFLAGS="$CFLAGS"
6727   CFLAGS="$CFLAGS -belf"
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6729 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6730 if ${lt_cv_cc_needs_belf+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   ac_ext=c
6734 ac_cpp='$CPP $CPPFLAGS'
6735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738
6739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h.  */
6741
6742 int
6743 main ()
6744 {
6745
6746   ;
6747   return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_link "$LINENO"; then :
6751   lt_cv_cc_needs_belf=yes
6752 else
6753   lt_cv_cc_needs_belf=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext \
6756     conftest$ac_exeext conftest.$ac_ext
6757      ac_ext=c
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6765 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6766   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6767     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6768     CFLAGS="$SAVE_CFLAGS"
6769   fi
6770   ;;
6771 *-*solaris*)
6772   # Find out which ABI we are using.
6773   echo 'int i;' > conftest.$ac_ext
6774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775   (eval $ac_compile) 2>&5
6776   ac_status=$?
6777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778   test $ac_status = 0; }; then
6779     case `/usr/bin/file conftest.o` in
6780     *64-bit*)
6781       case $lt_cv_prog_gnu_ld in
6782       yes*)
6783         case $host in
6784         i?86-*-solaris*)
6785           LD="${LD-ld} -m elf_x86_64"
6786           ;;
6787         sparc*-*-solaris*)
6788           LD="${LD-ld} -m elf64_sparc"
6789           ;;
6790         esac
6791         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6792         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6793           LD="${LD-ld}_sol2"
6794         fi
6795         ;;
6796       *)
6797         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6798           LD="${LD-ld} -64"
6799         fi
6800         ;;
6801       esac
6802       ;;
6803     esac
6804   fi
6805   rm -rf conftest*
6806   ;;
6807 esac
6808
6809 need_locks="$enable_libtool_lock"
6810
6811 if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}mt; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$MANIFEST_TOOL"; then
6820   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6840 if test -n "$MANIFEST_TOOL"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6842 $as_echo "$MANIFEST_TOOL" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6851   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6852   # Extract the first word of "mt", so it can be a program name with args.
6853 set dummy mt; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   if test -n "$ac_ct_MANIFEST_TOOL"; then
6860   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6880 if test -n "$ac_ct_MANIFEST_TOOL"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6882 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6889     MANIFEST_TOOL=":"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6898   fi
6899 else
6900   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6901 fi
6902
6903 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6905 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6906 if ${lt_cv_path_mainfest_tool+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   lt_cv_path_mainfest_tool=no
6910   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6911   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6912   cat conftest.err >&5
6913   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6914     lt_cv_path_mainfest_tool=yes
6915   fi
6916   rm -f conftest*
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6919 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6920 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6921   MANIFEST_TOOL=:
6922 fi
6923
6924
6925
6926
6927
6928
6929   case $host_os in
6930     rhapsody* | darwin*)
6931     if test -n "$ac_tool_prefix"; then
6932   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   if test -n "$DSYMUTIL"; then
6940   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6960 if test -n "$DSYMUTIL"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6962 $as_echo "$DSYMUTIL" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969 fi
6970 if test -z "$ac_cv_prog_DSYMUTIL"; then
6971   ac_ct_DSYMUTIL=$DSYMUTIL
6972   # Extract the first word of "dsymutil", so it can be a program name with args.
6973 set dummy dsymutil; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   if test -n "$ac_ct_DSYMUTIL"; then
6980   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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   test -z "$as_dir" && as_dir=.
6987     for ac_exec_ext in '' $ac_executable_extensions; do
6988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994   done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7000 if test -n "$ac_ct_DSYMUTIL"; then
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7002 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7003 else
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008   if test "x$ac_ct_DSYMUTIL" = x; then
7009     DSYMUTIL=":"
7010   else
7011     case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017     DSYMUTIL=$ac_ct_DSYMUTIL
7018   fi
7019 else
7020   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7021 fi
7022
7023     if test -n "$ac_tool_prefix"; then
7024   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_NMEDIT+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   if test -n "$NMEDIT"; then
7032   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 NMEDIT=$ac_cv_prog_NMEDIT
7052 if test -n "$NMEDIT"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7054 $as_echo "$NMEDIT" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061 fi
7062 if test -z "$ac_cv_prog_NMEDIT"; then
7063   ac_ct_NMEDIT=$NMEDIT
7064   # Extract the first word of "nmedit", so it can be a program name with args.
7065 set dummy nmedit; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if test -n "$ac_ct_NMEDIT"; then
7072   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086   done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7092 if test -n "$ac_ct_NMEDIT"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7094 $as_echo "$ac_ct_NMEDIT" >&6; }
7095 else
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100   if test "x$ac_ct_NMEDIT" = x; then
7101     NMEDIT=":"
7102   else
7103     case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109     NMEDIT=$ac_ct_NMEDIT
7110   fi
7111 else
7112   NMEDIT="$ac_cv_prog_NMEDIT"
7113 fi
7114
7115     if test -n "$ac_tool_prefix"; then
7116   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_LIPO+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   if test -n "$LIPO"; then
7124   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131     for ac_exec_ext in '' $ac_executable_extensions; do
7132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138   done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 LIPO=$ac_cv_prog_LIPO
7144 if test -n "$LIPO"; then
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7146 $as_echo "$LIPO" >&6; }
7147 else
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152
7153 fi
7154 if test -z "$ac_cv_prog_LIPO"; then
7155   ac_ct_LIPO=$LIPO
7156   # Extract the first word of "lipo", so it can be a program name with args.
7157 set dummy lipo; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test -n "$ac_ct_LIPO"; then
7164   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_LIPO="lipo"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7184 if test -n "$ac_ct_LIPO"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7186 $as_echo "$ac_ct_LIPO" >&6; }
7187 else
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192   if test "x$ac_ct_LIPO" = x; then
7193     LIPO=":"
7194   else
7195     case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201     LIPO=$ac_ct_LIPO
7202   fi
7203 else
7204   LIPO="$ac_cv_prog_LIPO"
7205 fi
7206
7207     if test -n "$ac_tool_prefix"; then
7208   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}otool; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_OTOOL+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   if test -n "$OTOOL"; then
7216   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 OTOOL=$ac_cv_prog_OTOOL
7236 if test -n "$OTOOL"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7238 $as_echo "$OTOOL" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244
7245 fi
7246 if test -z "$ac_cv_prog_OTOOL"; then
7247   ac_ct_OTOOL=$OTOOL
7248   # Extract the first word of "otool", so it can be a program name with args.
7249 set dummy otool; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$ac_ct_OTOOL"; then
7256   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_ac_ct_OTOOL="otool"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7276 if test -n "$ac_ct_OTOOL"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7278 $as_echo "$ac_ct_OTOOL" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284   if test "x$ac_ct_OTOOL" = x; then
7285     OTOOL=":"
7286   else
7287     case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293     OTOOL=$ac_ct_OTOOL
7294   fi
7295 else
7296   OTOOL="$ac_cv_prog_OTOOL"
7297 fi
7298
7299     if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_OTOOL64+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$OTOOL64"; then
7308   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 OTOOL64=$ac_cv_prog_OTOOL64
7328 if test -n "$OTOOL64"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7330 $as_echo "$OTOOL64" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_OTOOL64"; then
7339   ac_ct_OTOOL64=$OTOOL64
7340   # Extract the first word of "otool64", so it can be a program name with args.
7341 set dummy otool64; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$ac_ct_OTOOL64"; then
7348   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_ac_ct_OTOOL64="otool64"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7368 if test -n "$ac_ct_OTOOL64"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7370 $as_echo "$ac_ct_OTOOL64" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376   if test "x$ac_ct_OTOOL64" = x; then
7377     OTOOL64=":"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385     OTOOL64=$ac_ct_OTOOL64
7386   fi
7387 else
7388   OTOOL64="$ac_cv_prog_OTOOL64"
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7418 $as_echo_n "checking for -single_module linker flag... " >&6; }
7419 if ${lt_cv_apple_cc_single_mod+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   lt_cv_apple_cc_single_mod=no
7423       if test -z "${LT_MULTI_MODULE}"; then
7424         # By default we will add the -single_module flag. You can override
7425         # by either setting the environment variable LT_MULTI_MODULE
7426         # non-empty at configure time, or by adding -multi_module to the
7427         # link flags.
7428         rm -rf libconftest.dylib*
7429         echo "int foo(void){return 1;}" > conftest.c
7430         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7431 -dynamiclib -Wl,-single_module conftest.c" >&5
7432         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7433           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7434         _lt_result=$?
7435         # If there is a non-empty error log, and "single_module"
7436         # appears in it, assume the flag caused a linker warning
7437         if test -s conftest.err && $GREP single_module conftest.err; then
7438           cat conftest.err >&5
7439         # Otherwise, if the output was created with a 0 exit code from
7440         # the compiler, it worked.
7441         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7442           lt_cv_apple_cc_single_mod=yes
7443         else
7444           cat conftest.err >&5
7445         fi
7446         rm -rf libconftest.dylib*
7447         rm -f conftest.*
7448       fi
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7451 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7452
7453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7454 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7455 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   lt_cv_ld_exported_symbols_list=no
7459       save_LDFLAGS=$LDFLAGS
7460       echo "_main" > conftest.sym
7461       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474   lt_cv_ld_exported_symbols_list=yes
7475 else
7476   lt_cv_ld_exported_symbols_list=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479     conftest$ac_exeext conftest.$ac_ext
7480         LDFLAGS="$save_LDFLAGS"
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7484 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7485
7486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7487 $as_echo_n "checking for -force_load linker flag... " >&6; }
7488 if ${lt_cv_ld_force_load+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   lt_cv_ld_force_load=no
7492       cat > conftest.c << _LT_EOF
7493 int forced_loaded() { return 2;}
7494 _LT_EOF
7495       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7496       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7497       echo "$AR cru libconftest.a conftest.o" >&5
7498       $AR cru libconftest.a conftest.o 2>&5
7499       echo "$RANLIB libconftest.a" >&5
7500       $RANLIB libconftest.a 2>&5
7501       cat > conftest.c << _LT_EOF
7502 int main() { return 0;}
7503 _LT_EOF
7504       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7505       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7506       _lt_result=$?
7507       if test -s conftest.err && $GREP force_load conftest.err; then
7508         cat conftest.err >&5
7509       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7510         lt_cv_ld_force_load=yes
7511       else
7512         cat conftest.err >&5
7513       fi
7514         rm -f conftest.err libconftest.a conftest conftest.c
7515         rm -rf conftest.dSYM
7516
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7519 $as_echo "$lt_cv_ld_force_load" >&6; }
7520     case $host_os in
7521     rhapsody* | darwin1.[012])
7522       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7523     darwin1.*)
7524       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7525     darwin*) # darwin 5.x on
7526       # if running on 10.5 or later, the deployment target defaults
7527       # to the OS version, if on x86, and 10.4, the deployment
7528       # target defaults to 10.4. Don't you love it?
7529       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7530         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7531           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7532         10.[012]*)
7533           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7534         10.*)
7535           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7536       esac
7537     ;;
7538   esac
7539     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7540       _lt_dar_single_mod='$single_module'
7541     fi
7542     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7543       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7544     else
7545       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7546     fi
7547     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7548       _lt_dsymutil='~$DSYMUTIL $lib || :'
7549     else
7550       _lt_dsymutil=
7551     fi
7552     ;;
7553   esac
7554
7555 for ac_header in dlfcn.h
7556 do :
7557   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7558 "
7559 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7560   cat >>confdefs.h <<_ACEOF
7561 #define HAVE_DLFCN_H 1
7562 _ACEOF
7563
7564 fi
7565
7566 done
7567
7568
7569
7570
7571
7572 # Set options
7573
7574
7575
7576         enable_dlopen=no
7577
7578
7579   enable_win32_dll=no
7580
7581
7582             # Check whether --enable-shared was given.
7583 if test "${enable_shared+set}" = set; then :
7584   enableval=$enable_shared; p=${PACKAGE-default}
7585     case $enableval in
7586     yes) enable_shared=yes ;;
7587     no) enable_shared=no ;;
7588     *)
7589       enable_shared=no
7590       # Look at the argument we got.  We use all the common list separators.
7591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7592       for pkg in $enableval; do
7593         IFS="$lt_save_ifs"
7594         if test "X$pkg" = "X$p"; then
7595           enable_shared=yes
7596         fi
7597       done
7598       IFS="$lt_save_ifs"
7599       ;;
7600     esac
7601 else
7602   enable_shared=yes
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613   # Check whether --enable-static was given.
7614 if test "${enable_static+set}" = set; then :
7615   enableval=$enable_static; p=${PACKAGE-default}
7616     case $enableval in
7617     yes) enable_static=yes ;;
7618     no) enable_static=no ;;
7619     *)
7620      enable_static=no
7621       # Look at the argument we got.  We use all the common list separators.
7622       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7623       for pkg in $enableval; do
7624         IFS="$lt_save_ifs"
7625         if test "X$pkg" = "X$p"; then
7626           enable_static=yes
7627         fi
7628       done
7629       IFS="$lt_save_ifs"
7630       ;;
7631     esac
7632 else
7633   enable_static=yes
7634 fi
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 # Check whether --with-pic was given.
7646 if test "${with_pic+set}" = set; then :
7647   withval=$with_pic; lt_p=${PACKAGE-default}
7648     case $withval in
7649     yes|no) pic_mode=$withval ;;
7650     *)
7651       pic_mode=default
7652       # Look at the argument we got.  We use all the common list separators.
7653       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654       for lt_pkg in $withval; do
7655         IFS="$lt_save_ifs"
7656         if test "X$lt_pkg" = "X$lt_p"; then
7657           pic_mode=yes
7658         fi
7659       done
7660       IFS="$lt_save_ifs"
7661       ;;
7662     esac
7663 else
7664   pic_mode=default
7665 fi
7666
7667
7668 test -z "$pic_mode" && pic_mode=default
7669
7670
7671
7672
7673
7674
7675
7676   # Check whether --enable-fast-install was given.
7677 if test "${enable_fast_install+set}" = set; then :
7678   enableval=$enable_fast_install; p=${PACKAGE-default}
7679     case $enableval in
7680     yes) enable_fast_install=yes ;;
7681     no) enable_fast_install=no ;;
7682     *)
7683       enable_fast_install=no
7684       # Look at the argument we got.  We use all the common list separators.
7685       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686       for pkg in $enableval; do
7687         IFS="$lt_save_ifs"
7688         if test "X$pkg" = "X$p"; then
7689           enable_fast_install=yes
7690         fi
7691       done
7692       IFS="$lt_save_ifs"
7693       ;;
7694     esac
7695 else
7696   enable_fast_install=yes
7697 fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # This can be used to rebuild libtool when needed
7710 LIBTOOL_DEPS="$ltmain"
7711
7712 # Always use our own libtool.
7713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744 test -z "$LN_S" && LN_S="ln -s"
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 if test -n "${ZSH_VERSION+set}" ; then
7760    setopt NO_GLOB_SUBST
7761 fi
7762
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7764 $as_echo_n "checking for objdir... " >&6; }
7765 if ${lt_cv_objdir+:} false; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   rm -f .libs 2>/dev/null
7769 mkdir .libs 2>/dev/null
7770 if test -d .libs; then
7771   lt_cv_objdir=.libs
7772 else
7773   # MS-DOS does not allow filenames that begin with a dot.
7774   lt_cv_objdir=_libs
7775 fi
7776 rmdir .libs 2>/dev/null
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7779 $as_echo "$lt_cv_objdir" >&6; }
7780 objdir=$lt_cv_objdir
7781
7782
7783
7784
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define LT_OBJDIR "$lt_cv_objdir/"
7788 _ACEOF
7789
7790
7791
7792
7793 case $host_os in
7794 aix3*)
7795   # AIX sometimes has problems with the GCC collect2 program.  For some
7796   # reason, if we set the COLLECT_NAMES environment variable, the problems
7797   # vanish in a puff of smoke.
7798   if test "X${COLLECT_NAMES+set}" != Xset; then
7799     COLLECT_NAMES=
7800     export COLLECT_NAMES
7801   fi
7802   ;;
7803 esac
7804
7805 # Global variables:
7806 ofile=libtool
7807 can_build_shared=yes
7808
7809 # All known linkers require a `.a' archive for static linking (except MSVC,
7810 # which needs '.lib').
7811 libext=a
7812
7813 with_gnu_ld="$lt_cv_prog_gnu_ld"
7814
7815 old_CC="$CC"
7816 old_CFLAGS="$CFLAGS"
7817
7818 # Set sane defaults for various variables
7819 test -z "$CC" && CC=cc
7820 test -z "$LTCC" && LTCC=$CC
7821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7822 test -z "$LD" && LD=ld
7823 test -z "$ac_objext" && ac_objext=o
7824
7825 for cc_temp in $compiler""; do
7826   case $cc_temp in
7827     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7828     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7829     \-*) ;;
7830     *) break;;
7831   esac
7832 done
7833 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7834
7835
7836 # Only perform the check for file, if the check method requires it
7837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7838 case $deplibs_check_method in
7839 file_magic*)
7840   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7843 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   case $MAGIC_CMD in
7847 [\\/*] |  ?:[\\/]*)
7848   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7849   ;;
7850 *)
7851   lt_save_MAGIC_CMD="$MAGIC_CMD"
7852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7853   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7854   for ac_dir in $ac_dummy; do
7855     IFS="$lt_save_ifs"
7856     test -z "$ac_dir" && ac_dir=.
7857     if test -f $ac_dir/${ac_tool_prefix}file; then
7858       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7859       if test -n "$file_magic_test_file"; then
7860         case $deplibs_check_method in
7861         "file_magic "*)
7862           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7863           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7864           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7865             $EGREP "$file_magic_regex" > /dev/null; then
7866             :
7867           else
7868             cat <<_LT_EOF 1>&2
7869
7870 *** Warning: the command libtool uses to detect shared libraries,
7871 *** $file_magic_cmd, produces output that libtool cannot recognize.
7872 *** The result is that libtool may fail to recognize shared libraries
7873 *** as such.  This will affect the creation of libtool libraries that
7874 *** depend on shared libraries, but programs linked with such libtool
7875 *** libraries will work regardless of this problem.  Nevertheless, you
7876 *** may want to report the problem to your system manager and/or to
7877 *** bug-libtool@gnu.org
7878
7879 _LT_EOF
7880           fi ;;
7881         esac
7882       fi
7883       break
7884     fi
7885   done
7886   IFS="$lt_save_ifs"
7887   MAGIC_CMD="$lt_save_MAGIC_CMD"
7888   ;;
7889 esac
7890 fi
7891
7892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7893 if test -n "$MAGIC_CMD"; then
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7895 $as_echo "$MAGIC_CMD" >&6; }
7896 else
7897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901
7902
7903
7904
7905 if test -z "$lt_cv_path_MAGIC_CMD"; then
7906   if test -n "$ac_tool_prefix"; then
7907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7908 $as_echo_n "checking for file... " >&6; }
7909 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   case $MAGIC_CMD in
7913 [\\/*] |  ?:[\\/]*)
7914   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7915   ;;
7916 *)
7917   lt_save_MAGIC_CMD="$MAGIC_CMD"
7918   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7919   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7920   for ac_dir in $ac_dummy; do
7921     IFS="$lt_save_ifs"
7922     test -z "$ac_dir" && ac_dir=.
7923     if test -f $ac_dir/file; then
7924       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7925       if test -n "$file_magic_test_file"; then
7926         case $deplibs_check_method in
7927         "file_magic "*)
7928           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7929           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7930           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7931             $EGREP "$file_magic_regex" > /dev/null; then
7932             :
7933           else
7934             cat <<_LT_EOF 1>&2
7935
7936 *** Warning: the command libtool uses to detect shared libraries,
7937 *** $file_magic_cmd, produces output that libtool cannot recognize.
7938 *** The result is that libtool may fail to recognize shared libraries
7939 *** as such.  This will affect the creation of libtool libraries that
7940 *** depend on shared libraries, but programs linked with such libtool
7941 *** libraries will work regardless of this problem.  Nevertheless, you
7942 *** may want to report the problem to your system manager and/or to
7943 *** bug-libtool@gnu.org
7944
7945 _LT_EOF
7946           fi ;;
7947         esac
7948       fi
7949       break
7950     fi
7951   done
7952   IFS="$lt_save_ifs"
7953   MAGIC_CMD="$lt_save_MAGIC_CMD"
7954   ;;
7955 esac
7956 fi
7957
7958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959 if test -n "$MAGIC_CMD"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7961 $as_echo "$MAGIC_CMD" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968   else
7969     MAGIC_CMD=:
7970   fi
7971 fi
7972
7973   fi
7974   ;;
7975 esac
7976
7977 # Use C for the default configuration in the libtool script
7978
7979 lt_save_CC="$CC"
7980 ac_ext=c
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7985
7986
7987 # Source file extension for C test sources.
7988 ac_ext=c
7989
7990 # Object file extension for compiled C test sources.
7991 objext=o
7992 objext=$objext
7993
7994 # Code to be used in simple compile tests
7995 lt_simple_compile_test_code="int some_variable = 0;"
7996
7997 # Code to be used in simple link tests
7998 lt_simple_link_test_code='int main(){return(0);}'
7999
8000
8001
8002
8003
8004
8005
8006 # If no C compiler was specified, use CC.
8007 LTCC=${LTCC-"$CC"}
8008
8009 # If no C compiler flags were specified, use CFLAGS.
8010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8011
8012 # Allow CC to be a program name with arguments.
8013 compiler=$CC
8014
8015 # Save the default compiler, since it gets overwritten when the other
8016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8017 compiler_DEFAULT=$CC
8018
8019 # save warnings/boilerplate of simple test code
8020 ac_outfile=conftest.$ac_objext
8021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8023 _lt_compiler_boilerplate=`cat conftest.err`
8024 $RM conftest*
8025
8026 ac_outfile=conftest.$ac_objext
8027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8029 _lt_linker_boilerplate=`cat conftest.err`
8030 $RM -r conftest*
8031
8032
8033 ## CAVEAT EMPTOR:
8034 ## There is no encapsulation within the following macros, do not change
8035 ## the running order or otherwise move them around unless you know exactly
8036 ## what you are doing...
8037 if test -n "$compiler"; then
8038
8039 lt_prog_compiler_no_builtin_flag=
8040
8041 if test "$GCC" = yes; then
8042   case $cc_basename in
8043   nvcc*)
8044     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8045   *)
8046     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8047   esac
8048
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8050 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8051 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   lt_cv_prog_compiler_rtti_exceptions=no
8055    ac_outfile=conftest.$ac_objext
8056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057    lt_compiler_flag="-fno-rtti -fno-exceptions"
8058    # Insert the option either (1) after the last *FLAGS variable, or
8059    # (2) before a word containing "conftest.", or (3) at the end.
8060    # Note that $ac_compile itself does not contain backslashes and begins
8061    # with a dollar sign (not a hyphen), so the echo should work correctly.
8062    # The option is referenced via a variable to avoid confusing sed.
8063    lt_compile=`echo "$ac_compile" | $SED \
8064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066    -e 's:$: $lt_compiler_flag:'`
8067    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8068    (eval "$lt_compile" 2>conftest.err)
8069    ac_status=$?
8070    cat conftest.err >&5
8071    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072    if (exit $ac_status) && test -s "$ac_outfile"; then
8073      # The compiler can only warn and ignore the option if not recognized
8074      # So say no if there are warnings other than the usual output.
8075      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8076      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8077      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8078        lt_cv_prog_compiler_rtti_exceptions=yes
8079      fi
8080    fi
8081    $RM conftest*
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8085 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8086
8087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8088     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8089 else
8090     :
8091 fi
8092
8093 fi
8094
8095
8096
8097
8098
8099
8100   lt_prog_compiler_wl=
8101 lt_prog_compiler_pic=
8102 lt_prog_compiler_static=
8103
8104
8105   if test "$GCC" = yes; then
8106     lt_prog_compiler_wl='-Wl,'
8107     lt_prog_compiler_static='-static'
8108
8109     case $host_os in
8110       aix*)
8111       # All AIX code is PIC.
8112       if test "$host_cpu" = ia64; then
8113         # AIX 5 now supports IA64 processor
8114         lt_prog_compiler_static='-Bstatic'
8115       fi
8116       ;;
8117
8118     amigaos*)
8119       case $host_cpu in
8120       powerpc)
8121             # see comment about AmigaOS4 .so support
8122             lt_prog_compiler_pic='-fPIC'
8123         ;;
8124       m68k)
8125             # FIXME: we need at least 68020 code to build shared libraries, but
8126             # adding the `-m68020' flag to GCC prevents building anything better,
8127             # like `-m68040'.
8128             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8129         ;;
8130       esac
8131       ;;
8132
8133     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8134       # PIC is the default for these OSes.
8135       ;;
8136
8137     mingw* | cygwin* | pw32* | os2* | cegcc*)
8138       # This hack is so that the source file can tell whether it is being
8139       # built for inclusion in a dll (and should export symbols for example).
8140       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8141       # (--disable-auto-import) libraries
8142       lt_prog_compiler_pic='-DDLL_EXPORT'
8143       ;;
8144
8145     darwin* | rhapsody*)
8146       # PIC is the default on this platform
8147       # Common symbols not allowed in MH_DYLIB files
8148       lt_prog_compiler_pic='-fno-common'
8149       ;;
8150
8151     haiku*)
8152       # PIC is the default for Haiku.
8153       # The "-static" flag exists, but is broken.
8154       lt_prog_compiler_static=
8155       ;;
8156
8157     hpux*)
8158       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8159       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8160       # sets the default TLS model and affects inlining.
8161       case $host_cpu in
8162       hppa*64*)
8163         # +Z the default
8164         ;;
8165       *)
8166         lt_prog_compiler_pic='-fPIC'
8167         ;;
8168       esac
8169       ;;
8170
8171     interix[3-9]*)
8172       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8173       # Instead, we relocate shared libraries at runtime.
8174       ;;
8175
8176     msdosdjgpp*)
8177       # Just because we use GCC doesn't mean we suddenly get shared libraries
8178       # on systems that don't support them.
8179       lt_prog_compiler_can_build_shared=no
8180       enable_shared=no
8181       ;;
8182
8183     *nto* | *qnx*)
8184       # QNX uses GNU C++, but need to define -shared option too, otherwise
8185       # it will coredump.
8186       lt_prog_compiler_pic='-fPIC -shared'
8187       ;;
8188
8189     sysv4*MP*)
8190       if test -d /usr/nec; then
8191         lt_prog_compiler_pic=-Kconform_pic
8192       fi
8193       ;;
8194
8195     *)
8196       lt_prog_compiler_pic='-fPIC'
8197       ;;
8198     esac
8199
8200     case $cc_basename in
8201     nvcc*) # Cuda Compiler Driver 2.2
8202       lt_prog_compiler_wl='-Xlinker '
8203       if test -n "$lt_prog_compiler_pic"; then
8204         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8205       fi
8206       ;;
8207     esac
8208   else
8209     # PORTME Check for flag to pass linker flags through the system compiler.
8210     case $host_os in
8211     aix*)
8212       lt_prog_compiler_wl='-Wl,'
8213       if test "$host_cpu" = ia64; then
8214         # AIX 5 now supports IA64 processor
8215         lt_prog_compiler_static='-Bstatic'
8216       else
8217         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8218       fi
8219       ;;
8220
8221     mingw* | cygwin* | pw32* | os2* | cegcc*)
8222       # This hack is so that the source file can tell whether it is being
8223       # built for inclusion in a dll (and should export symbols for example).
8224       lt_prog_compiler_pic='-DDLL_EXPORT'
8225       ;;
8226
8227     hpux9* | hpux10* | hpux11*)
8228       lt_prog_compiler_wl='-Wl,'
8229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8230       # not for PA HP-UX.
8231       case $host_cpu in
8232       hppa*64*|ia64*)
8233         # +Z the default
8234         ;;
8235       *)
8236         lt_prog_compiler_pic='+Z'
8237         ;;
8238       esac
8239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8240       lt_prog_compiler_static='${wl}-a ${wl}archive'
8241       ;;
8242
8243     irix5* | irix6* | nonstopux*)
8244       lt_prog_compiler_wl='-Wl,'
8245       # PIC (with -KPIC) is the default.
8246       lt_prog_compiler_static='-non_shared'
8247       ;;
8248
8249     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8250       case $cc_basename in
8251       # old Intel for x86_64 which still supported -KPIC.
8252       ecc*)
8253         lt_prog_compiler_wl='-Wl,'
8254         lt_prog_compiler_pic='-KPIC'
8255         lt_prog_compiler_static='-static'
8256         ;;
8257       # icc used to be incompatible with GCC.
8258       # ICC 10 doesn't accept -KPIC any more.
8259       icc* | ifort*)
8260         lt_prog_compiler_wl='-Wl,'
8261         lt_prog_compiler_pic='-fPIC'
8262         lt_prog_compiler_static='-static'
8263         ;;
8264       # Lahey Fortran 8.1.
8265       lf95*)
8266         lt_prog_compiler_wl='-Wl,'
8267         lt_prog_compiler_pic='--shared'
8268         lt_prog_compiler_static='--static'
8269         ;;
8270       nagfor*)
8271         # NAG Fortran compiler
8272         lt_prog_compiler_wl='-Wl,-Wl,,'
8273         lt_prog_compiler_pic='-PIC'
8274         lt_prog_compiler_static='-Bstatic'
8275         ;;
8276       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8277         # Portland Group compilers (*not* the Pentium gcc compiler,
8278         # which looks to be a dead project)
8279         lt_prog_compiler_wl='-Wl,'
8280         lt_prog_compiler_pic='-fpic'
8281         lt_prog_compiler_static='-Bstatic'
8282         ;;
8283       ccc*)
8284         lt_prog_compiler_wl='-Wl,'
8285         # All Alpha code is PIC.
8286         lt_prog_compiler_static='-non_shared'
8287         ;;
8288       xl* | bgxl* | bgf* | mpixl*)
8289         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8290         lt_prog_compiler_wl='-Wl,'
8291         lt_prog_compiler_pic='-qpic'
8292         lt_prog_compiler_static='-qstaticlink'
8293         ;;
8294       *)
8295         case `$CC -V 2>&1 | sed 5q` in
8296         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8297           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8298           lt_prog_compiler_pic='-KPIC'
8299           lt_prog_compiler_static='-Bstatic'
8300           lt_prog_compiler_wl=''
8301           ;;
8302         *Sun\ F* | *Sun*Fortran*)
8303           lt_prog_compiler_pic='-KPIC'
8304           lt_prog_compiler_static='-Bstatic'
8305           lt_prog_compiler_wl='-Qoption ld '
8306           ;;
8307         *Sun\ C*)
8308           # Sun C 5.9
8309           lt_prog_compiler_pic='-KPIC'
8310           lt_prog_compiler_static='-Bstatic'
8311           lt_prog_compiler_wl='-Wl,'
8312           ;;
8313         *Intel*\ [CF]*Compiler*)
8314           lt_prog_compiler_wl='-Wl,'
8315           lt_prog_compiler_pic='-fPIC'
8316           lt_prog_compiler_static='-static'
8317           ;;
8318         *Portland\ Group*)
8319           lt_prog_compiler_wl='-Wl,'
8320           lt_prog_compiler_pic='-fpic'
8321           lt_prog_compiler_static='-Bstatic'
8322           ;;
8323         esac
8324         ;;
8325       esac
8326       ;;
8327
8328     newsos6)
8329       lt_prog_compiler_pic='-KPIC'
8330       lt_prog_compiler_static='-Bstatic'
8331       ;;
8332
8333     *nto* | *qnx*)
8334       # QNX uses GNU C++, but need to define -shared option too, otherwise
8335       # it will coredump.
8336       lt_prog_compiler_pic='-fPIC -shared'
8337       ;;
8338
8339     osf3* | osf4* | osf5*)
8340       lt_prog_compiler_wl='-Wl,'
8341       # All OSF/1 code is PIC.
8342       lt_prog_compiler_static='-non_shared'
8343       ;;
8344
8345     rdos*)
8346       lt_prog_compiler_static='-non_shared'
8347       ;;
8348
8349     solaris*)
8350       lt_prog_compiler_pic='-KPIC'
8351       lt_prog_compiler_static='-Bstatic'
8352       case $cc_basename in
8353       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8354         lt_prog_compiler_wl='-Qoption ld ';;
8355       *)
8356         lt_prog_compiler_wl='-Wl,';;
8357       esac
8358       ;;
8359
8360     sunos4*)
8361       lt_prog_compiler_wl='-Qoption ld '
8362       lt_prog_compiler_pic='-PIC'
8363       lt_prog_compiler_static='-Bstatic'
8364       ;;
8365
8366     sysv4 | sysv4.2uw2* | sysv4.3*)
8367       lt_prog_compiler_wl='-Wl,'
8368       lt_prog_compiler_pic='-KPIC'
8369       lt_prog_compiler_static='-Bstatic'
8370       ;;
8371
8372     sysv4*MP*)
8373       if test -d /usr/nec ;then
8374         lt_prog_compiler_pic='-Kconform_pic'
8375         lt_prog_compiler_static='-Bstatic'
8376       fi
8377       ;;
8378
8379     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8380       lt_prog_compiler_wl='-Wl,'
8381       lt_prog_compiler_pic='-KPIC'
8382       lt_prog_compiler_static='-Bstatic'
8383       ;;
8384
8385     unicos*)
8386       lt_prog_compiler_wl='-Wl,'
8387       lt_prog_compiler_can_build_shared=no
8388       ;;
8389
8390     uts4*)
8391       lt_prog_compiler_pic='-pic'
8392       lt_prog_compiler_static='-Bstatic'
8393       ;;
8394
8395     *)
8396       lt_prog_compiler_can_build_shared=no
8397       ;;
8398     esac
8399   fi
8400
8401 case $host_os in
8402   # For platforms which do not support PIC, -DPIC is meaningless:
8403   *djgpp*)
8404     lt_prog_compiler_pic=
8405     ;;
8406   *)
8407     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8408     ;;
8409 esac
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8412 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8413 if ${lt_cv_prog_compiler_pic+:} false; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8419 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8420 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8421
8422 #
8423 # Check to make sure the PIC flag actually works.
8424 #
8425 if test -n "$lt_prog_compiler_pic"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8428 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8429   $as_echo_n "(cached) " >&6
8430 else
8431   lt_cv_prog_compiler_pic_works=no
8432    ac_outfile=conftest.$ac_objext
8433    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8435    # Insert the option either (1) after the last *FLAGS variable, or
8436    # (2) before a word containing "conftest.", or (3) at the end.
8437    # Note that $ac_compile itself does not contain backslashes and begins
8438    # with a dollar sign (not a hyphen), so the echo should work correctly.
8439    # The option is referenced via a variable to avoid confusing sed.
8440    lt_compile=`echo "$ac_compile" | $SED \
8441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443    -e 's:$: $lt_compiler_flag:'`
8444    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8445    (eval "$lt_compile" 2>conftest.err)
8446    ac_status=$?
8447    cat conftest.err >&5
8448    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449    if (exit $ac_status) && test -s "$ac_outfile"; then
8450      # The compiler can only warn and ignore the option if not recognized
8451      # So say no if there are warnings other than the usual output.
8452      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8453      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8454      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8455        lt_cv_prog_compiler_pic_works=yes
8456      fi
8457    fi
8458    $RM conftest*
8459
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8462 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8463
8464 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8465     case $lt_prog_compiler_pic in
8466      "" | " "*) ;;
8467      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8468      esac
8469 else
8470     lt_prog_compiler_pic=
8471      lt_prog_compiler_can_build_shared=no
8472 fi
8473
8474 fi
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 #
8487 # Check to make sure the static flag actually works.
8488 #
8489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8492 if ${lt_cv_prog_compiler_static_works+:} false; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   lt_cv_prog_compiler_static_works=no
8496    save_LDFLAGS="$LDFLAGS"
8497    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8498    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8500      # The linker can only warn and ignore the option if not recognized
8501      # So say no if there are warnings
8502      if test -s conftest.err; then
8503        # Append any errors to the config.log.
8504        cat conftest.err 1>&5
8505        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8506        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507        if diff conftest.exp conftest.er2 >/dev/null; then
8508          lt_cv_prog_compiler_static_works=yes
8509        fi
8510      else
8511        lt_cv_prog_compiler_static_works=yes
8512      fi
8513    fi
8514    $RM -r conftest*
8515    LDFLAGS="$save_LDFLAGS"
8516
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8519 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8520
8521 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8522     :
8523 else
8524     lt_prog_compiler_static=
8525 fi
8526
8527
8528
8529
8530
8531
8532
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8535 if ${lt_cv_prog_compiler_c_o+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   lt_cv_prog_compiler_c_o=no
8539    $RM -r conftest 2>/dev/null
8540    mkdir conftest
8541    cd conftest
8542    mkdir out
8543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544
8545    lt_compiler_flag="-o out/conftest2.$ac_objext"
8546    # Insert the option either (1) after the last *FLAGS variable, or
8547    # (2) before a word containing "conftest.", or (3) at the end.
8548    # Note that $ac_compile itself does not contain backslashes and begins
8549    # with a dollar sign (not a hyphen), so the echo should work correctly.
8550    lt_compile=`echo "$ac_compile" | $SED \
8551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553    -e 's:$: $lt_compiler_flag:'`
8554    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8555    (eval "$lt_compile" 2>out/conftest.err)
8556    ac_status=$?
8557    cat out/conftest.err >&5
8558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8560    then
8561      # The compiler can only warn and ignore the option if not recognized
8562      # So say no if there are warnings
8563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8564      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8565      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8566        lt_cv_prog_compiler_c_o=yes
8567      fi
8568    fi
8569    chmod u+w . 2>&5
8570    $RM conftest*
8571    # SGI C++ compiler will create directory out/ii_files/ for
8572    # template instantiation
8573    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8574    $RM out/* && rmdir out
8575    cd ..
8576    $RM -r conftest
8577    $RM conftest*
8578
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8582
8583
8584
8585
8586
8587
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590 if ${lt_cv_prog_compiler_c_o+:} false; then :
8591   $as_echo_n "(cached) " >&6
8592 else
8593   lt_cv_prog_compiler_c_o=no
8594    $RM -r conftest 2>/dev/null
8595    mkdir conftest
8596    cd conftest
8597    mkdir out
8598    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600    lt_compiler_flag="-o out/conftest2.$ac_objext"
8601    # Insert the option either (1) after the last *FLAGS variable, or
8602    # (2) before a word containing "conftest.", or (3) at the end.
8603    # Note that $ac_compile itself does not contain backslashes and begins
8604    # with a dollar sign (not a hyphen), so the echo should work correctly.
8605    lt_compile=`echo "$ac_compile" | $SED \
8606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608    -e 's:$: $lt_compiler_flag:'`
8609    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610    (eval "$lt_compile" 2>out/conftest.err)
8611    ac_status=$?
8612    cat out/conftest.err >&5
8613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615    then
8616      # The compiler can only warn and ignore the option if not recognized
8617      # So say no if there are warnings
8618      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621        lt_cv_prog_compiler_c_o=yes
8622      fi
8623    fi
8624    chmod u+w . 2>&5
8625    $RM conftest*
8626    # SGI C++ compiler will create directory out/ii_files/ for
8627    # template instantiation
8628    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629    $RM out/* && rmdir out
8630    cd ..
8631    $RM -r conftest
8632    $RM conftest*
8633
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8637
8638
8639
8640
8641 hard_links="nottested"
8642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8643   # do not overwrite the value of need_locks provided by the user
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8645 $as_echo_n "checking if we can lock with hard links... " >&6; }
8646   hard_links=yes
8647   $RM conftest*
8648   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8649   touch conftest.a
8650   ln conftest.a conftest.b 2>&5 || hard_links=no
8651   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8653 $as_echo "$hard_links" >&6; }
8654   if test "$hard_links" = no; then
8655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8657     need_locks=warn
8658   fi
8659 else
8660   need_locks=no
8661 fi
8662
8663
8664
8665
8666
8667
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8670
8671   runpath_var=
8672   allow_undefined_flag=
8673   always_export_symbols=no
8674   archive_cmds=
8675   archive_expsym_cmds=
8676   compiler_needs_object=no
8677   enable_shared_with_static_runtimes=no
8678   export_dynamic_flag_spec=
8679   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8680   hardcode_automatic=no
8681   hardcode_direct=no
8682   hardcode_direct_absolute=no
8683   hardcode_libdir_flag_spec=
8684   hardcode_libdir_separator=
8685   hardcode_minus_L=no
8686   hardcode_shlibpath_var=unsupported
8687   inherit_rpath=no
8688   link_all_deplibs=unknown
8689   module_cmds=
8690   module_expsym_cmds=
8691   old_archive_from_new_cmds=
8692   old_archive_from_expsyms_cmds=
8693   thread_safe_flag_spec=
8694   whole_archive_flag_spec=
8695   # include_expsyms should be a list of space-separated symbols to be *always*
8696   # included in the symbol list
8697   include_expsyms=
8698   # exclude_expsyms can be an extended regexp of symbols to exclude
8699   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8700   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8701   # as well as any symbol that contains `d'.
8702   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8703   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8704   # platforms (ab)use it in PIC code, but their linkers get confused if
8705   # the symbol is explicitly referenced.  Since portable code cannot
8706   # rely on this symbol name, it's probably fine to never include it in
8707   # preloaded symbol tables.
8708   # Exclude shared library initialization/finalization symbols.
8709   extract_expsyms_cmds=
8710
8711   case $host_os in
8712   cygwin* | mingw* | pw32* | cegcc*)
8713     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8714     # When not using gcc, we currently assume that we are using
8715     # Microsoft Visual C++.
8716     if test "$GCC" != yes; then
8717       with_gnu_ld=no
8718     fi
8719     ;;
8720   interix*)
8721     # we just hope/assume this is gcc and not c89 (= MSVC++)
8722     with_gnu_ld=yes
8723     ;;
8724   openbsd*)
8725     with_gnu_ld=no
8726     ;;
8727   linux* | k*bsd*-gnu | gnu*)
8728     link_all_deplibs=no
8729     ;;
8730   esac
8731
8732   ld_shlibs=yes
8733
8734   # On some targets, GNU ld is compatible enough with the native linker
8735   # that we're better off using the native interface for both.
8736   lt_use_gnu_ld_interface=no
8737   if test "$with_gnu_ld" = yes; then
8738     case $host_os in
8739       aix*)
8740         # The AIX port of GNU ld has always aspired to compatibility
8741         # with the native linker.  However, as the warning in the GNU ld
8742         # block says, versions before 2.19.5* couldn't really create working
8743         # shared libraries, regardless of the interface used.
8744         case `$LD -v 2>&1` in
8745           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8746           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8747           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8748           *)
8749             lt_use_gnu_ld_interface=yes
8750             ;;
8751         esac
8752         ;;
8753       *)
8754         lt_use_gnu_ld_interface=yes
8755         ;;
8756     esac
8757   fi
8758
8759   if test "$lt_use_gnu_ld_interface" = yes; then
8760     # If archive_cmds runs LD, not CC, wlarc should be empty
8761     wlarc='${wl}'
8762
8763     # Set some defaults for GNU ld with shared library support. These
8764     # are reset later if shared libraries are not supported. Putting them
8765     # here allows them to be overridden if necessary.
8766     runpath_var=LD_RUN_PATH
8767     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768     export_dynamic_flag_spec='${wl}--export-dynamic'
8769     # ancient GNU ld didn't support --whole-archive et. al.
8770     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8771       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8772     else
8773       whole_archive_flag_spec=
8774     fi
8775     supports_anon_versioning=no
8776     case `$LD -v 2>&1` in
8777       *GNU\ gold*) supports_anon_versioning=yes ;;
8778       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8779       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8780       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8781       *\ 2.11.*) ;; # other 2.11 versions
8782       *) supports_anon_versioning=yes ;;
8783     esac
8784
8785     # See if GNU ld supports shared libraries.
8786     case $host_os in
8787     aix[3-9]*)
8788       # On AIX/PPC, the GNU linker is very broken
8789       if test "$host_cpu" != ia64; then
8790         ld_shlibs=no
8791         cat <<_LT_EOF 1>&2
8792
8793 *** Warning: the GNU linker, at least up to release 2.19, is reported
8794 *** to be unable to reliably create shared libraries on AIX.
8795 *** Therefore, libtool is disabling shared libraries support.  If you
8796 *** really care for shared libraries, you may want to install binutils
8797 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8798 *** You will then need to restart the configuration process.
8799
8800 _LT_EOF
8801       fi
8802       ;;
8803
8804     amigaos*)
8805       case $host_cpu in
8806       powerpc)
8807             # see comment about AmigaOS4 .so support
8808             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809             archive_expsym_cmds=''
8810         ;;
8811       m68k)
8812             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)'
8813             hardcode_libdir_flag_spec='-L$libdir'
8814             hardcode_minus_L=yes
8815         ;;
8816       esac
8817       ;;
8818
8819     beos*)
8820       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821         allow_undefined_flag=unsupported
8822         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8823         # support --undefined.  This deserves some investigation.  FIXME
8824         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825       else
8826         ld_shlibs=no
8827       fi
8828       ;;
8829
8830     cygwin* | mingw* | pw32* | cegcc*)
8831       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8832       # as there is no search path for DLLs.
8833       hardcode_libdir_flag_spec='-L$libdir'
8834       export_dynamic_flag_spec='${wl}--export-all-symbols'
8835       allow_undefined_flag=unsupported
8836       always_export_symbols=no
8837       enable_shared_with_static_runtimes=yes
8838       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'
8839       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8840
8841       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8842         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8843         # If the export-symbols file already is a .def file (1st line
8844         # is EXPORTS), use it as is; otherwise, prepend...
8845         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8846           cp $export_symbols $output_objdir/$soname.def;
8847         else
8848           echo EXPORTS > $output_objdir/$soname.def;
8849           cat $export_symbols >> $output_objdir/$soname.def;
8850         fi~
8851         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8852       else
8853         ld_shlibs=no
8854       fi
8855       ;;
8856
8857     haiku*)
8858       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859       link_all_deplibs=yes
8860       ;;
8861
8862     interix[3-9]*)
8863       hardcode_direct=no
8864       hardcode_shlibpath_var=no
8865       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866       export_dynamic_flag_spec='${wl}-E'
8867       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868       # Instead, shared libraries are loaded at an image base (0x10000000 by
8869       # default) and relocated if they conflict, which is a slow very memory
8870       # consuming and fragmenting process.  To avoid this, we pick a random,
8871       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8873       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874       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'
8875       ;;
8876
8877     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8878       tmp_diet=no
8879       if test "$host_os" = linux-dietlibc; then
8880         case $cc_basename in
8881           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8882         esac
8883       fi
8884       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885          && test "$tmp_diet" = no
8886       then
8887         tmp_addflag=' $pic_flag'
8888         tmp_sharedflag='-shared'
8889         case $cc_basename,$host_cpu in
8890         pgcc*)                          # Portland Group C compiler
8891           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'
8892           tmp_addflag=' $pic_flag'
8893           ;;
8894         pgf77* | pgf90* | pgf95* | pgfortran*)
8895                                         # Portland Group f77 and f90 compilers
8896           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'
8897           tmp_addflag=' $pic_flag -Mnomain' ;;
8898         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8899           tmp_addflag=' -i_dynamic' ;;
8900         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8901           tmp_addflag=' -i_dynamic -nofor_main' ;;
8902         ifc* | ifort*)                  # Intel Fortran compiler
8903           tmp_addflag=' -nofor_main' ;;
8904         lf95*)                          # Lahey Fortran 8.1
8905           whole_archive_flag_spec=
8906           tmp_sharedflag='--shared' ;;
8907         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8908           tmp_sharedflag='-qmkshrobj'
8909           tmp_addflag= ;;
8910         nvcc*)  # Cuda Compiler Driver 2.2
8911           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'
8912           compiler_needs_object=yes
8913           ;;
8914         esac
8915         case `$CC -V 2>&1 | sed 5q` in
8916         *Sun\ C*)                       # Sun C 5.9
8917           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'
8918           compiler_needs_object=yes
8919           tmp_sharedflag='-G' ;;
8920         *Sun\ F*)                       # Sun Fortran 8.3
8921           tmp_sharedflag='-G' ;;
8922         esac
8923         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924
8925         if test "x$supports_anon_versioning" = xyes; then
8926           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928             echo "local: *; };" >> $output_objdir/$libname.ver~
8929             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930         fi
8931
8932         case $cc_basename in
8933         xlf* | bgf* | bgxlf* | mpixlf*)
8934           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8938           if test "x$supports_anon_versioning" = xyes; then
8939             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8940               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8941               echo "local: *; };" >> $output_objdir/$libname.ver~
8942               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8943           fi
8944           ;;
8945         esac
8946       else
8947         ld_shlibs=no
8948       fi
8949       ;;
8950
8951     netbsd* | netbsdelf*-gnu)
8952       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8953         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8954         wlarc=
8955       else
8956         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958       fi
8959       ;;
8960
8961     solaris*)
8962       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8963         ld_shlibs=no
8964         cat <<_LT_EOF 1>&2
8965
8966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8967 *** create shared libraries on Solaris systems.  Therefore, libtool
8968 *** is disabling shared libraries support.  We urge you to upgrade GNU
8969 *** binutils to release 2.9.1 or newer.  Another option is to modify
8970 *** your PATH or compiler configuration so that the native linker is
8971 *** used, and then restart.
8972
8973 _LT_EOF
8974       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8977       else
8978         ld_shlibs=no
8979       fi
8980       ;;
8981
8982     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8983       case `$LD -v 2>&1` in
8984         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8985         ld_shlibs=no
8986         cat <<_LT_EOF 1>&2
8987
8988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8989 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8990 *** is disabling shared libraries support.  We urge you to upgrade GNU
8991 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8992 *** your PATH or compiler configuration so that the native linker is
8993 *** used, and then restart.
8994
8995 _LT_EOF
8996         ;;
8997         *)
8998           # For security reasons, it is highly recommended that you always
8999           # use absolute paths for naming shared libraries, and exclude the
9000           # DT_RUNPATH tag from executables and libraries.  But doing so
9001           # requires that you compile everything twice, which is a pain.
9002           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006           else
9007             ld_shlibs=no
9008           fi
9009         ;;
9010       esac
9011       ;;
9012
9013     sunos4*)
9014       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015       wlarc=
9016       hardcode_direct=yes
9017       hardcode_shlibpath_var=no
9018       ;;
9019
9020     *)
9021       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9022         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024       else
9025         ld_shlibs=no
9026       fi
9027       ;;
9028     esac
9029
9030     if test "$ld_shlibs" = no; then
9031       runpath_var=
9032       hardcode_libdir_flag_spec=
9033       export_dynamic_flag_spec=
9034       whole_archive_flag_spec=
9035     fi
9036   else
9037     # PORTME fill in a description of your system's linker (not GNU ld)
9038     case $host_os in
9039     aix3*)
9040       allow_undefined_flag=unsupported
9041       always_export_symbols=yes
9042       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'
9043       # Note: this linker hardcodes the directories in LIBPATH if there
9044       # are no directories specified by -L.
9045       hardcode_minus_L=yes
9046       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9047         # Neither direct hardcoding nor static linking is supported with a
9048         # broken collect2.
9049         hardcode_direct=unsupported
9050       fi
9051       ;;
9052
9053     aix[4-9]*)
9054       if test "$host_cpu" = ia64; then
9055         # On IA64, the linker does run time linking by default, so we don't
9056         # have to do anything special.
9057         aix_use_runtimelinking=no
9058         exp_sym_flag='-Bexport'
9059         no_entry_flag=""
9060       else
9061         # If we're using GNU nm, then we don't want the "-C" option.
9062         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9063         # Also, AIX nm treats weak defined symbols like other global
9064         # defined symbols, whereas GNU nm marks them as "W".
9065         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9066           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9067         else
9068           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9069         fi
9070         aix_use_runtimelinking=no
9071
9072         # Test if we are trying to use run time linking or normal
9073         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9074         # need to do runtime linking.
9075         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9076           for ld_flag in $LDFLAGS; do
9077           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9078             aix_use_runtimelinking=yes
9079             break
9080           fi
9081           done
9082           ;;
9083         esac
9084
9085         exp_sym_flag='-bexport'
9086         no_entry_flag='-bnoentry'
9087       fi
9088
9089       # When large executables or shared objects are built, AIX ld can
9090       # have problems creating the table of contents.  If linking a library
9091       # or program results in "error TOC overflow" add -mminimal-toc to
9092       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9093       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9094
9095       archive_cmds=''
9096       hardcode_direct=yes
9097       hardcode_direct_absolute=yes
9098       hardcode_libdir_separator=':'
9099       link_all_deplibs=yes
9100       file_list_spec='${wl}-f,'
9101
9102       if test "$GCC" = yes; then
9103         case $host_os in aix4.[012]|aix4.[012].*)
9104         # We only want to do this on AIX 4.2 and lower, the check
9105         # below for broken collect2 doesn't work under 4.3+
9106           collect2name=`${CC} -print-prog-name=collect2`
9107           if test -f "$collect2name" &&
9108            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9109           then
9110           # We have reworked collect2
9111           :
9112           else
9113           # We have old collect2
9114           hardcode_direct=unsupported
9115           # It fails to find uninstalled libraries when the uninstalled
9116           # path is not listed in the libpath.  Setting hardcode_minus_L
9117           # to unsupported forces relinking
9118           hardcode_minus_L=yes
9119           hardcode_libdir_flag_spec='-L$libdir'
9120           hardcode_libdir_separator=
9121           fi
9122           ;;
9123         esac
9124         shared_flag='-shared'
9125         if test "$aix_use_runtimelinking" = yes; then
9126           shared_flag="$shared_flag "'${wl}-G'
9127         fi
9128         link_all_deplibs=no
9129       else
9130         # not using gcc
9131         if test "$host_cpu" = ia64; then
9132         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9133         # chokes on -Wl,-G. The following line is correct:
9134           shared_flag='-G'
9135         else
9136           if test "$aix_use_runtimelinking" = yes; then
9137             shared_flag='${wl}-G'
9138           else
9139             shared_flag='${wl}-bM:SRE'
9140           fi
9141         fi
9142       fi
9143
9144       export_dynamic_flag_spec='${wl}-bexpall'
9145       # It seems that -bexpall does not export symbols beginning with
9146       # underscore (_), so it is better to generate a list of symbols to export.
9147       always_export_symbols=yes
9148       if test "$aix_use_runtimelinking" = yes; then
9149         # Warning - without using the other runtime loading flags (-brtl),
9150         # -berok will link without error, but may produce a broken library.
9151         allow_undefined_flag='-berok'
9152         # Determine the default libpath from the value encoded in an
9153         # empty executable.
9154         if test "${lt_cv_aix_libpath+set}" = set; then
9155   aix_libpath=$lt_cv_aix_libpath
9156 else
9157   if ${lt_cv_aix_libpath_+:} false; then :
9158   $as_echo_n "(cached) " >&6
9159 else
9160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h.  */
9162
9163 int
9164 main ()
9165 {
9166
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9172
9173   lt_aix_libpath_sed='
9174       /Import File Strings/,/^$/ {
9175           /^0/ {
9176               s/^0  *\([^ ]*\) *$/\1/
9177               p
9178           }
9179       }'
9180   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181   # Check for a 64-bit object if we didn't find anything.
9182   if test -z "$lt_cv_aix_libpath_"; then
9183     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184   fi
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext \
9187     conftest$ac_exeext conftest.$ac_ext
9188   if test -z "$lt_cv_aix_libpath_"; then
9189     lt_cv_aix_libpath_="/usr/lib:/lib"
9190   fi
9191
9192 fi
9193
9194   aix_libpath=$lt_cv_aix_libpath_
9195 fi
9196
9197         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9198         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9199       else
9200         if test "$host_cpu" = ia64; then
9201           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9202           allow_undefined_flag="-z nodefs"
9203           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"
9204         else
9205          # Determine the default libpath from the value encoded in an
9206          # empty executable.
9207          if test "${lt_cv_aix_libpath+set}" = set; then
9208   aix_libpath=$lt_cv_aix_libpath
9209 else
9210   if ${lt_cv_aix_libpath_+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h.  */
9215
9216 int
9217 main ()
9218 {
9219
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"; then :
9225
9226   lt_aix_libpath_sed='
9227       /Import File Strings/,/^$/ {
9228           /^0/ {
9229               s/^0  *\([^ ]*\) *$/\1/
9230               p
9231           }
9232       }'
9233   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234   # Check for a 64-bit object if we didn't find anything.
9235   if test -z "$lt_cv_aix_libpath_"; then
9236     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9237   fi
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext \
9240     conftest$ac_exeext conftest.$ac_ext
9241   if test -z "$lt_cv_aix_libpath_"; then
9242     lt_cv_aix_libpath_="/usr/lib:/lib"
9243   fi
9244
9245 fi
9246
9247   aix_libpath=$lt_cv_aix_libpath_
9248 fi
9249
9250          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9251           # Warning - without using the other run time loading flags,
9252           # -berok will link without error, but may produce a broken library.
9253           no_undefined_flag=' ${wl}-bernotok'
9254           allow_undefined_flag=' ${wl}-berok'
9255           if test "$with_gnu_ld" = yes; then
9256             # We only use this code for GNU lds that support --whole-archive.
9257             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9258           else
9259             # Exported symbols can be pulled into shared objects from archives
9260             whole_archive_flag_spec='$convenience'
9261           fi
9262           archive_cmds_need_lc=yes
9263           # This is similar to how AIX traditionally builds its shared libraries.
9264           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9265         fi
9266       fi
9267       ;;
9268
9269     amigaos*)
9270       case $host_cpu in
9271       powerpc)
9272             # see comment about AmigaOS4 .so support
9273             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274             archive_expsym_cmds=''
9275         ;;
9276       m68k)
9277             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)'
9278             hardcode_libdir_flag_spec='-L$libdir'
9279             hardcode_minus_L=yes
9280         ;;
9281       esac
9282       ;;
9283
9284     bsdi[45]*)
9285       export_dynamic_flag_spec=-rdynamic
9286       ;;
9287
9288     cygwin* | mingw* | pw32* | cegcc*)
9289       # When not using gcc, we currently assume that we are using
9290       # Microsoft Visual C++.
9291       # hardcode_libdir_flag_spec is actually meaningless, as there is
9292       # no search path for DLLs.
9293       case $cc_basename in
9294       cl*)
9295         # Native MSVC
9296         hardcode_libdir_flag_spec=' '
9297         allow_undefined_flag=unsupported
9298         always_export_symbols=yes
9299         file_list_spec='@'
9300         # Tell ltmain to make .lib files, not .a files.
9301         libext=lib
9302         # Tell ltmain to make .dll files, not .so files.
9303         shrext_cmds=".dll"
9304         # FIXME: Setting linknames here is a bad hack.
9305         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9306         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9308           else
9309             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9310           fi~
9311           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9312           linknames='
9313         # The linker will not automatically build a static lib if we build a DLL.
9314         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9315         enable_shared_with_static_runtimes=yes
9316         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9317         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9318         # Don't use ranlib
9319         old_postinstall_cmds='chmod 644 $oldlib'
9320         postlink_cmds='lt_outputfile="@OUTPUT@"~
9321           lt_tool_outputfile="@TOOL_OUTPUT@"~
9322           case $lt_outputfile in
9323             *.exe|*.EXE) ;;
9324             *)
9325               lt_outputfile="$lt_outputfile.exe"
9326               lt_tool_outputfile="$lt_tool_outputfile.exe"
9327               ;;
9328           esac~
9329           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9330             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9331             $RM "$lt_outputfile.manifest";
9332           fi'
9333         ;;
9334       *)
9335         # Assume MSVC wrapper
9336         hardcode_libdir_flag_spec=' '
9337         allow_undefined_flag=unsupported
9338         # Tell ltmain to make .lib files, not .a files.
9339         libext=lib
9340         # Tell ltmain to make .dll files, not .so files.
9341         shrext_cmds=".dll"
9342         # FIXME: Setting linknames here is a bad hack.
9343         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9344         # The linker will automatically build a .lib file if we build a DLL.
9345         old_archive_from_new_cmds='true'
9346         # FIXME: Should let the user specify the lib program.
9347         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9348         enable_shared_with_static_runtimes=yes
9349         ;;
9350       esac
9351       ;;
9352
9353     darwin* | rhapsody*)
9354
9355
9356   archive_cmds_need_lc=no
9357   hardcode_direct=no
9358   hardcode_automatic=yes
9359   hardcode_shlibpath_var=unsupported
9360   if test "$lt_cv_ld_force_load" = "yes"; then
9361     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\"`'
9362
9363   else
9364     whole_archive_flag_spec=''
9365   fi
9366   link_all_deplibs=yes
9367   allow_undefined_flag="$_lt_dar_allow_undefined"
9368   case $cc_basename in
9369      ifort*) _lt_dar_can_shared=yes ;;
9370      *) _lt_dar_can_shared=$GCC ;;
9371   esac
9372   if test "$_lt_dar_can_shared" = "yes"; then
9373     output_verbose_link_cmd=func_echo_all
9374     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9375     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9376     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}"
9377     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}"
9378
9379   else
9380   ld_shlibs=no
9381   fi
9382
9383       ;;
9384
9385     dgux*)
9386       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387       hardcode_libdir_flag_spec='-L$libdir'
9388       hardcode_shlibpath_var=no
9389       ;;
9390
9391     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9392     # support.  Future versions do this automatically, but an explicit c++rt0.o
9393     # does not break anything, and helps significantly (at the cost of a little
9394     # extra space).
9395     freebsd2.2*)
9396       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9397       hardcode_libdir_flag_spec='-R$libdir'
9398       hardcode_direct=yes
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9403     freebsd2.*)
9404       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405       hardcode_direct=yes
9406       hardcode_minus_L=yes
9407       hardcode_shlibpath_var=no
9408       ;;
9409
9410     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9411     freebsd* | dragonfly*)
9412       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413       hardcode_libdir_flag_spec='-R$libdir'
9414       hardcode_direct=yes
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     hpux9*)
9419       if test "$GCC" = yes; then
9420         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9421       else
9422         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9423       fi
9424       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9425       hardcode_libdir_separator=:
9426       hardcode_direct=yes
9427
9428       # hardcode_minus_L: Not really in the search PATH,
9429       # but as the default location of the library.
9430       hardcode_minus_L=yes
9431       export_dynamic_flag_spec='${wl}-E'
9432       ;;
9433
9434     hpux10*)
9435       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9436         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9437       else
9438         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9439       fi
9440       if test "$with_gnu_ld" = no; then
9441         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9442         hardcode_libdir_separator=:
9443         hardcode_direct=yes
9444         hardcode_direct_absolute=yes
9445         export_dynamic_flag_spec='${wl}-E'
9446         # hardcode_minus_L: Not really in the search PATH,
9447         # but as the default location of the library.
9448         hardcode_minus_L=yes
9449       fi
9450       ;;
9451
9452     hpux11*)
9453       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9454         case $host_cpu in
9455         hppa*64*)
9456           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457           ;;
9458         ia64*)
9459           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9460           ;;
9461         *)
9462           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463           ;;
9464         esac
9465       else
9466         case $host_cpu in
9467         hppa*64*)
9468           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469           ;;
9470         ia64*)
9471           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9472           ;;
9473         *)
9474
9475           # Older versions of the 11.00 compiler do not understand -b yet
9476           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9477           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9478 $as_echo_n "checking if $CC understands -b... " >&6; }
9479 if ${lt_cv_prog_compiler__b+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   lt_cv_prog_compiler__b=no
9483    save_LDFLAGS="$LDFLAGS"
9484    LDFLAGS="$LDFLAGS -b"
9485    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487      # The linker can only warn and ignore the option if not recognized
9488      # So say no if there are warnings
9489      if test -s conftest.err; then
9490        # Append any errors to the config.log.
9491        cat conftest.err 1>&5
9492        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494        if diff conftest.exp conftest.er2 >/dev/null; then
9495          lt_cv_prog_compiler__b=yes
9496        fi
9497      else
9498        lt_cv_prog_compiler__b=yes
9499      fi
9500    fi
9501    $RM -r conftest*
9502    LDFLAGS="$save_LDFLAGS"
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9506 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9507
9508 if test x"$lt_cv_prog_compiler__b" = xyes; then
9509     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9510 else
9511     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9512 fi
9513
9514           ;;
9515         esac
9516       fi
9517       if test "$with_gnu_ld" = no; then
9518         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9519         hardcode_libdir_separator=:
9520
9521         case $host_cpu in
9522         hppa*64*|ia64*)
9523           hardcode_direct=no
9524           hardcode_shlibpath_var=no
9525           ;;
9526         *)
9527           hardcode_direct=yes
9528           hardcode_direct_absolute=yes
9529           export_dynamic_flag_spec='${wl}-E'
9530
9531           # hardcode_minus_L: Not really in the search PATH,
9532           # but as the default location of the library.
9533           hardcode_minus_L=yes
9534           ;;
9535         esac
9536       fi
9537       ;;
9538
9539     irix5* | irix6* | nonstopux*)
9540       if test "$GCC" = yes; then
9541         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'
9542         # Try to use the -exported_symbol ld option, if it does not
9543         # work, assume that -exports_file does not work either and
9544         # implicitly export all symbols.
9545         # This should be the same for all languages, so no per-tag cache variable.
9546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9547 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9548 if ${lt_cv_irix_exported_symbol+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   save_LDFLAGS="$LDFLAGS"
9552            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9553            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555 int foo (void) { return 0; }
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9558   lt_cv_irix_exported_symbol=yes
9559 else
9560   lt_cv_irix_exported_symbol=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext \
9563     conftest$ac_exeext conftest.$ac_ext
9564            LDFLAGS="$save_LDFLAGS"
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9567 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9568         if test "$lt_cv_irix_exported_symbol" = yes; then
9569           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'
9570         fi
9571       else
9572         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'
9573         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'
9574       fi
9575       archive_cmds_need_lc='no'
9576       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577       hardcode_libdir_separator=:
9578       inherit_rpath=yes
9579       link_all_deplibs=yes
9580       ;;
9581
9582     netbsd* | netbsdelf*-gnu)
9583       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9584         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9585       else
9586         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9587       fi
9588       hardcode_libdir_flag_spec='-R$libdir'
9589       hardcode_direct=yes
9590       hardcode_shlibpath_var=no
9591       ;;
9592
9593     newsos6)
9594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595       hardcode_direct=yes
9596       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597       hardcode_libdir_separator=:
9598       hardcode_shlibpath_var=no
9599       ;;
9600
9601     *nto* | *qnx*)
9602       ;;
9603
9604     openbsd*)
9605       if test -f /usr/libexec/ld.so; then
9606         hardcode_direct=yes
9607         hardcode_shlibpath_var=no
9608         hardcode_direct_absolute=yes
9609         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613           export_dynamic_flag_spec='${wl}-E'
9614         else
9615           case $host_os in
9616            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618              hardcode_libdir_flag_spec='-R$libdir'
9619              ;;
9620            *)
9621              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623              ;;
9624           esac
9625         fi
9626       else
9627         ld_shlibs=no
9628       fi
9629       ;;
9630
9631     os2*)
9632       hardcode_libdir_flag_spec='-L$libdir'
9633       hardcode_minus_L=yes
9634       allow_undefined_flag=unsupported
9635       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9636       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9637       ;;
9638
9639     osf3*)
9640       if test "$GCC" = yes; then
9641         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9642         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'
9643       else
9644         allow_undefined_flag=' -expect_unresolved \*'
9645         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'
9646       fi
9647       archive_cmds_need_lc='no'
9648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649       hardcode_libdir_separator=:
9650       ;;
9651
9652     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9653       if test "$GCC" = yes; then
9654         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655         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'
9656         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657       else
9658         allow_undefined_flag=' -expect_unresolved \*'
9659         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'
9660         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~
9661         $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'
9662
9663         # Both c and cxx compiler support -rpath directly
9664         hardcode_libdir_flag_spec='-rpath $libdir'
9665       fi
9666       archive_cmds_need_lc='no'
9667       hardcode_libdir_separator=:
9668       ;;
9669
9670     solaris*)
9671       no_undefined_flag=' -z defs'
9672       if test "$GCC" = yes; then
9673         wlarc='${wl}'
9674         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9676           $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'
9677       else
9678         case `$CC -V 2>&1` in
9679         *"Compilers 5.0"*)
9680           wlarc=''
9681           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9683           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9684           ;;
9685         *)
9686           wlarc='${wl}'
9687           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9688           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9690           ;;
9691         esac
9692       fi
9693       hardcode_libdir_flag_spec='-R$libdir'
9694       hardcode_shlibpath_var=no
9695       case $host_os in
9696       solaris2.[0-5] | solaris2.[0-5].*) ;;
9697       *)
9698         # The compiler driver will combine and reorder linker options,
9699         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9700         # but is careful enough not to reorder.
9701         # Supported since Solaris 2.6 (maybe 2.5.1?)
9702         if test "$GCC" = yes; then
9703           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9704         else
9705           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9706         fi
9707         ;;
9708       esac
9709       link_all_deplibs=yes
9710       ;;
9711
9712     sunos4*)
9713       if test "x$host_vendor" = xsequent; then
9714         # Use $CC to link under sequent, because it throws in some extra .o
9715         # files that make .init and .fini sections work.
9716         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717       else
9718         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9719       fi
9720       hardcode_libdir_flag_spec='-L$libdir'
9721       hardcode_direct=yes
9722       hardcode_minus_L=yes
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     sysv4)
9727       case $host_vendor in
9728         sni)
9729           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730           hardcode_direct=yes # is this really true???
9731         ;;
9732         siemens)
9733           ## LD is ld it makes a PLAMLIB
9734           ## CC just makes a GrossModule.
9735           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736           reload_cmds='$CC -r -o $output$reload_objs'
9737           hardcode_direct=no
9738         ;;
9739         motorola)
9740           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9742         ;;
9743       esac
9744       runpath_var='LD_RUN_PATH'
9745       hardcode_shlibpath_var=no
9746       ;;
9747
9748     sysv4.3*)
9749       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750       hardcode_shlibpath_var=no
9751       export_dynamic_flag_spec='-Bexport'
9752       ;;
9753
9754     sysv4*MP*)
9755       if test -d /usr/nec; then
9756         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757         hardcode_shlibpath_var=no
9758         runpath_var=LD_RUN_PATH
9759         hardcode_runpath_var=yes
9760         ld_shlibs=yes
9761       fi
9762       ;;
9763
9764     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9765       no_undefined_flag='${wl}-z,text'
9766       archive_cmds_need_lc=no
9767       hardcode_shlibpath_var=no
9768       runpath_var='LD_RUN_PATH'
9769
9770       if test "$GCC" = yes; then
9771         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       else
9774         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776       fi
9777       ;;
9778
9779     sysv5* | sco3.2v5* | sco5v6*)
9780       # Note: We can NOT use -z defs as we might desire, because we do not
9781       # link with -lc, and that would cause any symbols used from libc to
9782       # always be unresolved, which means just about no library would
9783       # ever link correctly.  If we're not using GNU ld we use -z text
9784       # though, which does catch some bad symbols but isn't as heavy-handed
9785       # as -z defs.
9786       no_undefined_flag='${wl}-z,text'
9787       allow_undefined_flag='${wl}-z,nodefs'
9788       archive_cmds_need_lc=no
9789       hardcode_shlibpath_var=no
9790       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9791       hardcode_libdir_separator=':'
9792       link_all_deplibs=yes
9793       export_dynamic_flag_spec='${wl}-Bexport'
9794       runpath_var='LD_RUN_PATH'
9795
9796       if test "$GCC" = yes; then
9797         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799       else
9800         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802       fi
9803       ;;
9804
9805     uts4*)
9806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807       hardcode_libdir_flag_spec='-L$libdir'
9808       hardcode_shlibpath_var=no
9809       ;;
9810
9811     *)
9812       ld_shlibs=no
9813       ;;
9814     esac
9815
9816     if test x$host_vendor = xsni; then
9817       case $host in
9818       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9819         export_dynamic_flag_spec='${wl}-Blargedynsym'
9820         ;;
9821       esac
9822     fi
9823   fi
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9826 $as_echo "$ld_shlibs" >&6; }
9827 test "$ld_shlibs" = no && can_build_shared=no
9828
9829 with_gnu_ld=$with_gnu_ld
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845 #
9846 # Do we need to explicitly link libc?
9847 #
9848 case "x$archive_cmds_need_lc" in
9849 x|xyes)
9850   # Assume -lc should be added
9851   archive_cmds_need_lc=yes
9852
9853   if test "$enable_shared" = yes && test "$GCC" = yes; then
9854     case $archive_cmds in
9855     *'~'*)
9856       # FIXME: we may have to deal with multi-command sequences.
9857       ;;
9858     '$CC '*)
9859       # Test whether the compiler implicitly links with -lc since on some
9860       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9861       # to ld, don't add -lc before -lgcc.
9862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9864 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   $RM conftest*
9868         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869
9870         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874   test $ac_status = 0; } 2>conftest.err; then
9875           soname=conftest
9876           lib=conftest
9877           libobjs=conftest.$ac_objext
9878           deplibs=
9879           wl=$lt_prog_compiler_wl
9880           pic_flag=$lt_prog_compiler_pic
9881           compiler_flags=-v
9882           linker_flags=-v
9883           verstring=
9884           output_objdir=.
9885           libname=conftest
9886           lt_save_allow_undefined_flag=$allow_undefined_flag
9887           allow_undefined_flag=
9888           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9889   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9890   ac_status=$?
9891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892   test $ac_status = 0; }
9893           then
9894             lt_cv_archive_cmds_need_lc=no
9895           else
9896             lt_cv_archive_cmds_need_lc=yes
9897           fi
9898           allow_undefined_flag=$lt_save_allow_undefined_flag
9899         else
9900           cat conftest.err 1>&5
9901         fi
9902         $RM conftest*
9903
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9906 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9907       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9908       ;;
9909     esac
9910   fi
9911   ;;
9912 esac
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10067
10068 if test "$GCC" = yes; then
10069   case $host_os in
10070     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10071     *) lt_awk_arg="/^libraries:/" ;;
10072   esac
10073   case $host_os in
10074     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10075     *) lt_sed_strip_eq="s,=/,/,g" ;;
10076   esac
10077   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10078   case $lt_search_path_spec in
10079   *\;*)
10080     # if the path contains ";" then we assume it to be the separator
10081     # otherwise default to the standard path separator (i.e. ":") - it is
10082     # assumed that no part of a normal pathname contains ";" but that should
10083     # okay in the real world where ";" in dirpaths is itself problematic.
10084     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10085     ;;
10086   *)
10087     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10088     ;;
10089   esac
10090   # Ok, now we have the path, separated by spaces, we can step through it
10091   # and add multilib dir if necessary.
10092   lt_tmp_lt_search_path_spec=
10093   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10094   for lt_sys_path in $lt_search_path_spec; do
10095     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10096       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10097     else
10098       test -d "$lt_sys_path" && \
10099         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10100     fi
10101   done
10102   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10103 BEGIN {RS=" "; FS="/|\n";} {
10104   lt_foo="";
10105   lt_count=0;
10106   for (lt_i = NF; lt_i > 0; lt_i--) {
10107     if ($lt_i != "" && $lt_i != ".") {
10108       if ($lt_i == "..") {
10109         lt_count++;
10110       } else {
10111         if (lt_count == 0) {
10112           lt_foo="/" $lt_i lt_foo;
10113         } else {
10114           lt_count--;
10115         }
10116       }
10117     }
10118   }
10119   if (lt_foo != "") { lt_freq[lt_foo]++; }
10120   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10121 }'`
10122   # AWK program above erroneously prepends '/' to C:/dos/paths
10123   # for these hosts.
10124   case $host_os in
10125     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10126       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10127   esac
10128   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10129 else
10130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10131 fi
10132 library_names_spec=
10133 libname_spec='lib$name'
10134 soname_spec=
10135 shrext_cmds=".so"
10136 postinstall_cmds=
10137 postuninstall_cmds=
10138 finish_cmds=
10139 finish_eval=
10140 shlibpath_var=
10141 shlibpath_overrides_runpath=unknown
10142 version_type=none
10143 dynamic_linker="$host_os ld.so"
10144 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10145 need_lib_prefix=unknown
10146 hardcode_into_libs=no
10147
10148 # when you set need_version to no, make sure it does not cause -set_version
10149 # flags to be left without arguments
10150 need_version=unknown
10151
10152 case $host_os in
10153 aix3*)
10154   version_type=linux # correct to gnu/linux during the next big refactor
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10156   shlibpath_var=LIBPATH
10157
10158   # AIX 3 has no versioning support, so we append a major version to the name.
10159   soname_spec='${libname}${release}${shared_ext}$major'
10160   ;;
10161
10162 aix[4-9]*)
10163   version_type=linux # correct to gnu/linux during the next big refactor
10164   need_lib_prefix=no
10165   need_version=no
10166   hardcode_into_libs=yes
10167   if test "$host_cpu" = ia64; then
10168     # AIX 5 supports IA64
10169     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10170     shlibpath_var=LD_LIBRARY_PATH
10171   else
10172     # With GCC up to 2.95.x, collect2 would create an import file
10173     # for dependence libraries.  The import file would start with
10174     # the line `#! .'.  This would cause the generated library to
10175     # depend on `.', always an invalid library.  This was fixed in
10176     # development snapshots of GCC prior to 3.0.
10177     case $host_os in
10178       aix4 | aix4.[01] | aix4.[01].*)
10179       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10180            echo ' yes '
10181            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10182         :
10183       else
10184         can_build_shared=no
10185       fi
10186       ;;
10187     esac
10188     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10189     # soname into executable. Probably we can add versioning support to
10190     # collect2, so additional links can be useful in future.
10191     if test "$aix_use_runtimelinking" = yes; then
10192       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10193       # instead of lib<name>.a to let people know that these are not
10194       # typical AIX shared libraries.
10195       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196     else
10197       # We preserve .a as extension for shared libraries through AIX4.2
10198       # and later when we are not doing run time linking.
10199       library_names_spec='${libname}${release}.a $libname.a'
10200       soname_spec='${libname}${release}${shared_ext}$major'
10201     fi
10202     shlibpath_var=LIBPATH
10203   fi
10204   ;;
10205
10206 amigaos*)
10207   case $host_cpu in
10208   powerpc)
10209     # Since July 2007 AmigaOS4 officially supports .so libraries.
10210     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212     ;;
10213   m68k)
10214     library_names_spec='$libname.ixlibrary $libname.a'
10215     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10216     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10217     ;;
10218   esac
10219   ;;
10220
10221 beos*)
10222   library_names_spec='${libname}${shared_ext}'
10223   dynamic_linker="$host_os ld.so"
10224   shlibpath_var=LIBRARY_PATH
10225   ;;
10226
10227 bsdi[45]*)
10228   version_type=linux # correct to gnu/linux during the next big refactor
10229   need_version=no
10230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10235   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10236   # the default ld.so.conf also contains /usr/contrib/lib and
10237   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10238   # libtool to hard-code these into programs
10239   ;;
10240
10241 cygwin* | mingw* | pw32* | cegcc*)
10242   version_type=windows
10243   shrext_cmds=".dll"
10244   need_version=no
10245   need_lib_prefix=no
10246
10247   case $GCC,$cc_basename in
10248   yes,*)
10249     # gcc
10250     library_names_spec='$libname.dll.a'
10251     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10252     postinstall_cmds='base_file=`basename \${file}`~
10253       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10254       dldir=$destdir/`dirname \$dlpath`~
10255       test -d \$dldir || mkdir -p \$dldir~
10256       $install_prog $dir/$dlname \$dldir/$dlname~
10257       chmod a+x \$dldir/$dlname~
10258       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10259         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10260       fi'
10261     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10262       dlpath=$dir/\$dldll~
10263        $RM \$dlpath'
10264     shlibpath_overrides_runpath=yes
10265
10266     case $host_os in
10267     cygwin*)
10268       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10269       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10270
10271       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10272       ;;
10273     mingw* | cegcc*)
10274       # MinGW DLLs use traditional 'lib' prefix
10275       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276       ;;
10277     pw32*)
10278       # pw32 DLLs use 'pw' prefix rather than 'lib'
10279       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10280       ;;
10281     esac
10282     dynamic_linker='Win32 ld.exe'
10283     ;;
10284
10285   *,cl*)
10286     # Native MSVC
10287     libname_spec='$name'
10288     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10289     library_names_spec='${libname}.dll.lib'
10290
10291     case $build_os in
10292     mingw*)
10293       sys_lib_search_path_spec=
10294       lt_save_ifs=$IFS
10295       IFS=';'
10296       for lt_path in $LIB
10297       do
10298         IFS=$lt_save_ifs
10299         # Let DOS variable expansion print the short 8.3 style file name.
10300         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10301         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10302       done
10303       IFS=$lt_save_ifs
10304       # Convert to MSYS style.
10305       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10306       ;;
10307     cygwin*)
10308       # Convert to unix form, then to dos form, then back to unix form
10309       # but this time dos style (no spaces!) so that the unix form looks
10310       # like /cygdrive/c/PROGRA~1:/cygdr...
10311       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10312       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10313       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10314       ;;
10315     *)
10316       sys_lib_search_path_spec="$LIB"
10317       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10318         # It is most probably a Windows format PATH.
10319         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10320       else
10321         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10322       fi
10323       # FIXME: find the short name or the path components, as spaces are
10324       # common. (e.g. "Program Files" -> "PROGRA~1")
10325       ;;
10326     esac
10327
10328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10329     postinstall_cmds='base_file=`basename \${file}`~
10330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10331       dldir=$destdir/`dirname \$dlpath`~
10332       test -d \$dldir || mkdir -p \$dldir~
10333       $install_prog $dir/$dlname \$dldir/$dlname'
10334     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10335       dlpath=$dir/\$dldll~
10336        $RM \$dlpath'
10337     shlibpath_overrides_runpath=yes
10338     dynamic_linker='Win32 link.exe'
10339     ;;
10340
10341   *)
10342     # Assume MSVC wrapper
10343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10344     dynamic_linker='Win32 ld.exe'
10345     ;;
10346   esac
10347   # FIXME: first we should search . and the directory the executable is in
10348   shlibpath_var=PATH
10349   ;;
10350
10351 darwin* | rhapsody*)
10352   dynamic_linker="$host_os dyld"
10353   version_type=darwin
10354   need_lib_prefix=no
10355   need_version=no
10356   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10357   soname_spec='${libname}${release}${major}$shared_ext'
10358   shlibpath_overrides_runpath=yes
10359   shlibpath_var=DYLD_LIBRARY_PATH
10360   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10361
10362   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10363   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10364   ;;
10365
10366 dgux*)
10367   version_type=linux # correct to gnu/linux during the next big refactor
10368   need_lib_prefix=no
10369   need_version=no
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   ;;
10374
10375 freebsd* | dragonfly*)
10376   # DragonFly does not have aout.  When/if they implement a new
10377   # versioning mechanism, adjust this.
10378   if test -x /usr/bin/objformat; then
10379     objformat=`/usr/bin/objformat`
10380   else
10381     case $host_os in
10382     freebsd[23].*) objformat=aout ;;
10383     *) objformat=elf ;;
10384     esac
10385   fi
10386   version_type=freebsd-$objformat
10387   case $version_type in
10388     freebsd-elf*)
10389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10390       need_version=no
10391       need_lib_prefix=no
10392       ;;
10393     freebsd-*)
10394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10395       need_version=yes
10396       ;;
10397   esac
10398   shlibpath_var=LD_LIBRARY_PATH
10399   case $host_os in
10400   freebsd2.*)
10401     shlibpath_overrides_runpath=yes
10402     ;;
10403   freebsd3.[01]* | freebsdelf3.[01]*)
10404     shlibpath_overrides_runpath=yes
10405     hardcode_into_libs=yes
10406     ;;
10407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10409     shlibpath_overrides_runpath=no
10410     hardcode_into_libs=yes
10411     ;;
10412   *) # from 4.6 on, and DragonFly
10413     shlibpath_overrides_runpath=yes
10414     hardcode_into_libs=yes
10415     ;;
10416   esac
10417   ;;
10418
10419 haiku*)
10420   version_type=linux # correct to gnu/linux during the next big refactor
10421   need_lib_prefix=no
10422   need_version=no
10423   dynamic_linker="$host_os runtime_loader"
10424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10425   soname_spec='${libname}${release}${shared_ext}$major'
10426   shlibpath_var=LIBRARY_PATH
10427   shlibpath_overrides_runpath=yes
10428   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10429   hardcode_into_libs=yes
10430   ;;
10431
10432 hpux9* | hpux10* | hpux11*)
10433   # Give a soname corresponding to the major version so that dld.sl refuses to
10434   # link against other versions.
10435   version_type=sunos
10436   need_lib_prefix=no
10437   need_version=no
10438   case $host_cpu in
10439   ia64*)
10440     shrext_cmds='.so'
10441     hardcode_into_libs=yes
10442     dynamic_linker="$host_os dld.so"
10443     shlibpath_var=LD_LIBRARY_PATH
10444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446     soname_spec='${libname}${release}${shared_ext}$major'
10447     if test "X$HPUX_IA64_MODE" = X32; then
10448       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10449     else
10450       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10451     fi
10452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10453     ;;
10454   hppa*64*)
10455     shrext_cmds='.sl'
10456     hardcode_into_libs=yes
10457     dynamic_linker="$host_os dld.sl"
10458     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10459     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461     soname_spec='${libname}${release}${shared_ext}$major'
10462     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10464     ;;
10465   *)
10466     shrext_cmds='.sl'
10467     dynamic_linker="$host_os dld.sl"
10468     shlibpath_var=SHLIB_PATH
10469     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471     soname_spec='${libname}${release}${shared_ext}$major'
10472     ;;
10473   esac
10474   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10475   postinstall_cmds='chmod 555 $lib'
10476   # or fails outright, so override atomically:
10477   install_override_mode=555
10478   ;;
10479
10480 interix[3-9]*)
10481   version_type=linux # correct to gnu/linux during the next big refactor
10482   need_lib_prefix=no
10483   need_version=no
10484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485   soname_spec='${libname}${release}${shared_ext}$major'
10486   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10487   shlibpath_var=LD_LIBRARY_PATH
10488   shlibpath_overrides_runpath=no
10489   hardcode_into_libs=yes
10490   ;;
10491
10492 irix5* | irix6* | nonstopux*)
10493   case $host_os in
10494     nonstopux*) version_type=nonstopux ;;
10495     *)
10496         if test "$lt_cv_prog_gnu_ld" = yes; then
10497                 version_type=linux # correct to gnu/linux during the next big refactor
10498         else
10499                 version_type=irix
10500         fi ;;
10501   esac
10502   need_lib_prefix=no
10503   need_version=no
10504   soname_spec='${libname}${release}${shared_ext}$major'
10505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10506   case $host_os in
10507   irix5* | nonstopux*)
10508     libsuff= shlibsuff=
10509     ;;
10510   *)
10511     case $LD in # libtool.m4 will add one of these switches to LD
10512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10513       libsuff= shlibsuff= libmagic=32-bit;;
10514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10515       libsuff=32 shlibsuff=N32 libmagic=N32;;
10516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10518     *) libsuff= shlibsuff= libmagic=never-match;;
10519     esac
10520     ;;
10521   esac
10522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10523   shlibpath_overrides_runpath=no
10524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10526   hardcode_into_libs=yes
10527   ;;
10528
10529 # No shared lib support for Linux oldld, aout, or coff.
10530 linux*oldld* | linux*aout* | linux*coff*)
10531   dynamic_linker=no
10532   ;;
10533
10534 # This must be glibc/ELF.
10535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10536   version_type=linux # correct to gnu/linux during the next big refactor
10537   need_lib_prefix=no
10538   need_version=no
10539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540   soname_spec='${libname}${release}${shared_ext}$major'
10541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=no
10544
10545   # Some binutils ld are patched to set DT_RUNPATH
10546   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10547   $as_echo_n "(cached) " >&6
10548 else
10549   lt_cv_shlibpath_overrides_runpath=no
10550     save_LDFLAGS=$LDFLAGS
10551     save_libdir=$libdir
10552     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10553          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h.  */
10556
10557 int
10558 main ()
10559 {
10560
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10567   lt_cv_shlibpath_overrides_runpath=yes
10568 fi
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571     conftest$ac_exeext conftest.$ac_ext
10572     LDFLAGS=$save_LDFLAGS
10573     libdir=$save_libdir
10574
10575 fi
10576
10577   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10578
10579   # This implies no fast_install, which is unacceptable.
10580   # Some rework will be needed to allow for fast_install
10581   # before this can be enabled.
10582   hardcode_into_libs=yes
10583
10584   # Append ld.so.conf contents to the search path
10585   if test -f /etc/ld.so.conf; then
10586     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' ' '`
10587     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10588   fi
10589
10590   # We used to test for /lib/ld.so.1 and disable shared libraries on
10591   # powerpc, because MkLinux only supported shared libraries with the
10592   # GNU dynamic linker.  Since this was broken with cross compilers,
10593   # most powerpc-linux boxes support dynamic linking these days and
10594   # people can always --disable-shared, the test was removed, and we
10595   # assume the GNU/Linux dynamic linker is in use.
10596   dynamic_linker='GNU/Linux ld.so'
10597   ;;
10598
10599 netbsdelf*-gnu)
10600   version_type=linux
10601   need_lib_prefix=no
10602   need_version=no
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604   soname_spec='${libname}${release}${shared_ext}$major'
10605   shlibpath_var=LD_LIBRARY_PATH
10606   shlibpath_overrides_runpath=no
10607   hardcode_into_libs=yes
10608   dynamic_linker='NetBSD ld.elf_so'
10609   ;;
10610
10611 netbsd*)
10612   version_type=sunos
10613   need_lib_prefix=no
10614   need_version=no
10615   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10618     dynamic_linker='NetBSD (a.out) ld.so'
10619   else
10620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10621     soname_spec='${libname}${release}${shared_ext}$major'
10622     dynamic_linker='NetBSD ld.elf_so'
10623   fi
10624   shlibpath_var=LD_LIBRARY_PATH
10625   shlibpath_overrides_runpath=yes
10626   hardcode_into_libs=yes
10627   ;;
10628
10629 newsos6)
10630   version_type=linux # correct to gnu/linux during the next big refactor
10631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632   shlibpath_var=LD_LIBRARY_PATH
10633   shlibpath_overrides_runpath=yes
10634   ;;
10635
10636 *nto* | *qnx*)
10637   version_type=qnx
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   shlibpath_overrides_runpath=no
10644   hardcode_into_libs=yes
10645   dynamic_linker='ldqnx.so'
10646   ;;
10647
10648 openbsd*)
10649   version_type=sunos
10650   sys_lib_dlsearch_path_spec="/usr/lib"
10651   need_lib_prefix=no
10652   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10653   case $host_os in
10654     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10655     *)                          need_version=no  ;;
10656   esac
10657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10659   shlibpath_var=LD_LIBRARY_PATH
10660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10661     case $host_os in
10662       openbsd2.[89] | openbsd2.[89].*)
10663         shlibpath_overrides_runpath=no
10664         ;;
10665       *)
10666         shlibpath_overrides_runpath=yes
10667         ;;
10668       esac
10669   else
10670     shlibpath_overrides_runpath=yes
10671   fi
10672   ;;
10673
10674 os2*)
10675   libname_spec='$name'
10676   shrext_cmds=".dll"
10677   need_lib_prefix=no
10678   library_names_spec='$libname${shared_ext} $libname.a'
10679   dynamic_linker='OS/2 ld.exe'
10680   shlibpath_var=LIBPATH
10681   ;;
10682
10683 osf3* | osf4* | osf5*)
10684   version_type=osf
10685   need_lib_prefix=no
10686   need_version=no
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689   shlibpath_var=LD_LIBRARY_PATH
10690   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10691   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10692   ;;
10693
10694 rdos*)
10695   dynamic_linker=no
10696   ;;
10697
10698 solaris*)
10699   version_type=linux # correct to gnu/linux during the next big refactor
10700   need_lib_prefix=no
10701   need_version=no
10702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703   soname_spec='${libname}${release}${shared_ext}$major'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   shlibpath_overrides_runpath=yes
10706   hardcode_into_libs=yes
10707   # ldd complains unless libraries are executable
10708   postinstall_cmds='chmod +x $lib'
10709   ;;
10710
10711 sunos4*)
10712   version_type=sunos
10713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10715   shlibpath_var=LD_LIBRARY_PATH
10716   shlibpath_overrides_runpath=yes
10717   if test "$with_gnu_ld" = yes; then
10718     need_lib_prefix=no
10719   fi
10720   need_version=yes
10721   ;;
10722
10723 sysv4 | sysv4.3*)
10724   version_type=linux # correct to gnu/linux during the next big refactor
10725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726   soname_spec='${libname}${release}${shared_ext}$major'
10727   shlibpath_var=LD_LIBRARY_PATH
10728   case $host_vendor in
10729     sni)
10730       shlibpath_overrides_runpath=no
10731       need_lib_prefix=no
10732       runpath_var=LD_RUN_PATH
10733       ;;
10734     siemens)
10735       need_lib_prefix=no
10736       ;;
10737     motorola)
10738       need_lib_prefix=no
10739       need_version=no
10740       shlibpath_overrides_runpath=no
10741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10742       ;;
10743   esac
10744   ;;
10745
10746 sysv4*MP*)
10747   if test -d /usr/nec ;then
10748     version_type=linux # correct to gnu/linux during the next big refactor
10749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10750     soname_spec='$libname${shared_ext}.$major'
10751     shlibpath_var=LD_LIBRARY_PATH
10752   fi
10753   ;;
10754
10755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10756   version_type=freebsd-elf
10757   need_lib_prefix=no
10758   need_version=no
10759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10760   soname_spec='${libname}${release}${shared_ext}$major'
10761   shlibpath_var=LD_LIBRARY_PATH
10762   shlibpath_overrides_runpath=yes
10763   hardcode_into_libs=yes
10764   if test "$with_gnu_ld" = yes; then
10765     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10766   else
10767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10768     case $host_os in
10769       sco3.2v5*)
10770         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10771         ;;
10772     esac
10773   fi
10774   sys_lib_dlsearch_path_spec='/usr/lib'
10775   ;;
10776
10777 tpf*)
10778   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10779   version_type=linux # correct to gnu/linux during the next big refactor
10780   need_lib_prefix=no
10781   need_version=no
10782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783   shlibpath_var=LD_LIBRARY_PATH
10784   shlibpath_overrides_runpath=no
10785   hardcode_into_libs=yes
10786   ;;
10787
10788 uts4*)
10789   version_type=linux # correct to gnu/linux during the next big refactor
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   shlibpath_var=LD_LIBRARY_PATH
10793   ;;
10794
10795 *)
10796   dynamic_linker=no
10797   ;;
10798 esac
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10800 $as_echo "$dynamic_linker" >&6; }
10801 test "$dynamic_linker" = no && can_build_shared=no
10802
10803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10804 if test "$GCC" = yes; then
10805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10806 fi
10807
10808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10809   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10810 fi
10811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10812   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10813 fi
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10908 hardcode_action=
10909 if test -n "$hardcode_libdir_flag_spec" ||
10910    test -n "$runpath_var" ||
10911    test "X$hardcode_automatic" = "Xyes" ; then
10912
10913   # We can hardcode non-existent directories.
10914   if test "$hardcode_direct" != no &&
10915      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10916      # have to relink, otherwise we might link with an installed library
10917      # when we should be linking with a yet-to-be-installed one
10918      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10919      test "$hardcode_minus_L" != no; then
10920     # Linking always hardcodes the temporary library directory.
10921     hardcode_action=relink
10922   else
10923     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10924     hardcode_action=immediate
10925   fi
10926 else
10927   # We cannot hardcode anything, or else we can only hardcode existing
10928   # directories.
10929   hardcode_action=unsupported
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10932 $as_echo "$hardcode_action" >&6; }
10933
10934 if test "$hardcode_action" = relink ||
10935    test "$inherit_rpath" = yes; then
10936   # Fast installation is not supported
10937   enable_fast_install=no
10938 elif test "$shlibpath_overrides_runpath" = yes ||
10939      test "$enable_shared" = no; then
10940   # Fast installation is not necessary
10941   enable_fast_install=needless
10942 fi
10943
10944
10945
10946
10947
10948
10949   if test "x$enable_dlopen" != xyes; then
10950   enable_dlopen=unknown
10951   enable_dlopen_self=unknown
10952   enable_dlopen_self_static=unknown
10953 else
10954   lt_cv_dlopen=no
10955   lt_cv_dlopen_libs=
10956
10957   case $host_os in
10958   beos*)
10959     lt_cv_dlopen="load_add_on"
10960     lt_cv_dlopen_libs=
10961     lt_cv_dlopen_self=yes
10962     ;;
10963
10964   mingw* | pw32* | cegcc*)
10965     lt_cv_dlopen="LoadLibrary"
10966     lt_cv_dlopen_libs=
10967     ;;
10968
10969   cygwin*)
10970     lt_cv_dlopen="dlopen"
10971     lt_cv_dlopen_libs=
10972     ;;
10973
10974   darwin*)
10975   # if libdl is installed we need to link against it
10976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if ${ac_cv_lib_dl_dlopen+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldl  $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h.  */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987    Use char because int might match the return type of a GCC
10988    builtin and then its argument prototype would still apply.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dlopen ();
10993 int
10994 main ()
10995 {
10996 return dlopen ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002   ac_cv_lib_dl_dlopen=yes
11003 else
11004   ac_cv_lib_dl_dlopen=no
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext \
11007     conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11014 else
11015
11016     lt_cv_dlopen="dyld"
11017     lt_cv_dlopen_libs=
11018     lt_cv_dlopen_self=yes
11019
11020 fi
11021
11022     ;;
11023
11024   *)
11025     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11026 if test "x$ac_cv_func_shl_load" = xyes; then :
11027   lt_cv_dlopen="shl_load"
11028 else
11029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11031 if ${ac_cv_lib_dld_shl_load+:} false; then :
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-ldld  $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char shl_load ();
11046 int
11047 main ()
11048 {
11049 return shl_load ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055   ac_cv_lib_dld_shl_load=yes
11056 else
11057   ac_cv_lib_dld_shl_load=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060     conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11066   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11067 else
11068   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11069 if test "x$ac_cv_func_dlopen" = xyes; then :
11070   lt_cv_dlopen="dlopen"
11071 else
11072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11074 if ${ac_cv_lib_dl_dlopen+:} false; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldl  $LIBS"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h.  */
11081
11082 /* Override any GCC internal prototype to avoid an error.
11083    Use char because int might match the return type of a GCC
11084    builtin and then its argument prototype would still apply.  */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 char dlopen ();
11089 int
11090 main ()
11091 {
11092 return dlopen ();
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"; then :
11098   ac_cv_lib_dl_dlopen=yes
11099 else
11100   ac_cv_lib_dl_dlopen=no
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext \
11103     conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11109   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11110 else
11111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11113 if ${ac_cv_lib_svld_dlopen+:} false; then :
11114   $as_echo_n "(cached) " >&6
11115 else
11116   ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsvld  $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h.  */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char dlopen ();
11128 int
11129 main ()
11130 {
11131 return dlopen ();
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137   ac_cv_lib_svld_dlopen=yes
11138 else
11139   ac_cv_lib_svld_dlopen=no
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext \
11142     conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_dld_link+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   ac_check_lib_save_LIBS=$LIBS
11156 LIBS="-ldld  $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char dld_link ();
11167 int
11168 main ()
11169 {
11170 return dld_link ();
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176   ac_cv_lib_dld_dld_link=yes
11177 else
11178   ac_cv_lib_dld_dld_link=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181     conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11187   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196
11197 fi
11198
11199
11200 fi
11201
11202
11203 fi
11204
11205     ;;
11206   esac
11207
11208   if test "x$lt_cv_dlopen" != xno; then
11209     enable_dlopen=yes
11210   else
11211     enable_dlopen=no
11212   fi
11213
11214   case $lt_cv_dlopen in
11215   dlopen)
11216     save_CPPFLAGS="$CPPFLAGS"
11217     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11218
11219     save_LDFLAGS="$LDFLAGS"
11220     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11221
11222     save_LIBS="$LIBS"
11223     LIBS="$lt_cv_dlopen_libs $LIBS"
11224
11225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11227 if ${lt_cv_dlopen_self+:} false; then :
11228   $as_echo_n "(cached) " >&6
11229 else
11230           if test "$cross_compiling" = yes; then :
11231   lt_cv_dlopen_self=cross
11232 else
11233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11234   lt_status=$lt_dlunknown
11235   cat > conftest.$ac_ext <<_LT_EOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11238
11239 #if HAVE_DLFCN_H
11240 #include <dlfcn.h>
11241 #endif
11242
11243 #include <stdio.h>
11244
11245 #ifdef RTLD_GLOBAL
11246 #  define LT_DLGLOBAL           RTLD_GLOBAL
11247 #else
11248 #  ifdef DL_GLOBAL
11249 #    define LT_DLGLOBAL         DL_GLOBAL
11250 #  else
11251 #    define LT_DLGLOBAL         0
11252 #  endif
11253 #endif
11254
11255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11256    find out it does not work in some platform. */
11257 #ifndef LT_DLLAZY_OR_NOW
11258 #  ifdef RTLD_LAZY
11259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11260 #  else
11261 #    ifdef DL_LAZY
11262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11263 #    else
11264 #      ifdef RTLD_NOW
11265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11266 #      else
11267 #        ifdef DL_NOW
11268 #          define LT_DLLAZY_OR_NOW      DL_NOW
11269 #        else
11270 #          define LT_DLLAZY_OR_NOW      0
11271 #        endif
11272 #      endif
11273 #    endif
11274 #  endif
11275 #endif
11276
11277 /* When -fvisbility=hidden is used, assume the code has been annotated
11278    correspondingly for the symbols needed.  */
11279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11280 int fnord () __attribute__((visibility("default")));
11281 #endif
11282
11283 int fnord () { return 42; }
11284 int main ()
11285 {
11286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287   int status = $lt_dlunknown;
11288
11289   if (self)
11290     {
11291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11292       else
11293         {
11294           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11295           else puts (dlerror ());
11296         }
11297       /* dlclose (self); */
11298     }
11299   else
11300     puts (dlerror ());
11301
11302   return status;
11303 }
11304 _LT_EOF
11305   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11306   (eval $ac_link) 2>&5
11307   ac_status=$?
11308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11310     (./conftest; exit; ) >&5 2>/dev/null
11311     lt_status=$?
11312     case x$lt_status in
11313       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11314       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11315       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11316     esac
11317   else :
11318     # compilation failed
11319     lt_cv_dlopen_self=no
11320   fi
11321 fi
11322 rm -fr conftest*
11323
11324
11325 fi
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11327 $as_echo "$lt_cv_dlopen_self" >&6; }
11328
11329     if test "x$lt_cv_dlopen_self" = xyes; then
11330       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11331       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11333 if ${lt_cv_dlopen_self_static+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336           if test "$cross_compiling" = yes; then :
11337   lt_cv_dlopen_self_static=cross
11338 else
11339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11340   lt_status=$lt_dlunknown
11341   cat > conftest.$ac_ext <<_LT_EOF
11342 #line $LINENO "configure"
11343 #include "confdefs.h"
11344
11345 #if HAVE_DLFCN_H
11346 #include <dlfcn.h>
11347 #endif
11348
11349 #include <stdio.h>
11350
11351 #ifdef RTLD_GLOBAL
11352 #  define LT_DLGLOBAL           RTLD_GLOBAL
11353 #else
11354 #  ifdef DL_GLOBAL
11355 #    define LT_DLGLOBAL         DL_GLOBAL
11356 #  else
11357 #    define LT_DLGLOBAL         0
11358 #  endif
11359 #endif
11360
11361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11362    find out it does not work in some platform. */
11363 #ifndef LT_DLLAZY_OR_NOW
11364 #  ifdef RTLD_LAZY
11365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11366 #  else
11367 #    ifdef DL_LAZY
11368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11369 #    else
11370 #      ifdef RTLD_NOW
11371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11372 #      else
11373 #        ifdef DL_NOW
11374 #          define LT_DLLAZY_OR_NOW      DL_NOW
11375 #        else
11376 #          define LT_DLLAZY_OR_NOW      0
11377 #        endif
11378 #      endif
11379 #    endif
11380 #  endif
11381 #endif
11382
11383 /* When -fvisbility=hidden is used, assume the code has been annotated
11384    correspondingly for the symbols needed.  */
11385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11386 int fnord () __attribute__((visibility("default")));
11387 #endif
11388
11389 int fnord () { return 42; }
11390 int main ()
11391 {
11392   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11393   int status = $lt_dlunknown;
11394
11395   if (self)
11396     {
11397       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11398       else
11399         {
11400           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11401           else puts (dlerror ());
11402         }
11403       /* dlclose (self); */
11404     }
11405   else
11406     puts (dlerror ());
11407
11408   return status;
11409 }
11410 _LT_EOF
11411   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11412   (eval $ac_link) 2>&5
11413   ac_status=$?
11414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11416     (./conftest; exit; ) >&5 2>/dev/null
11417     lt_status=$?
11418     case x$lt_status in
11419       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11420       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11421       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11422     esac
11423   else :
11424     # compilation failed
11425     lt_cv_dlopen_self_static=no
11426   fi
11427 fi
11428 rm -fr conftest*
11429
11430
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11434     fi
11435
11436     CPPFLAGS="$save_CPPFLAGS"
11437     LDFLAGS="$save_LDFLAGS"
11438     LIBS="$save_LIBS"
11439     ;;
11440   esac
11441
11442   case $lt_cv_dlopen_self in
11443   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11444   *) enable_dlopen_self=unknown ;;
11445   esac
11446
11447   case $lt_cv_dlopen_self_static in
11448   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11449   *) enable_dlopen_self_static=unknown ;;
11450   esac
11451 fi
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 striplib=
11470 old_striplib=
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11474   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11475   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11478 else
11479 # FIXME - insert some real tests, host_os isn't really good enough
11480   case $host_os in
11481   darwin*)
11482     if test -n "$STRIP" ; then
11483       striplib="$STRIP -x"
11484       old_striplib="$STRIP -S"
11485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11487     else
11488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490     fi
11491     ;;
11492   *)
11493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495     ;;
11496   esac
11497 fi
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510   # Report which library types will actually be built
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11514 $as_echo "$can_build_shared" >&6; }
11515
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11517 $as_echo_n "checking whether to build shared libraries... " >&6; }
11518   test "$can_build_shared" = "no" && enable_shared=no
11519
11520   # On AIX, shared libraries and static libraries use the same namespace, and
11521   # are all built from PIC.
11522   case $host_os in
11523   aix3*)
11524     test "$enable_shared" = yes && enable_static=no
11525     if test -n "$RANLIB"; then
11526       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11527       postinstall_cmds='$RANLIB $lib'
11528     fi
11529     ;;
11530
11531   aix[4-9]*)
11532     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11533       test "$enable_shared" = yes && enable_static=no
11534     fi
11535     ;;
11536   esac
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11538 $as_echo "$enable_shared" >&6; }
11539
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11541 $as_echo_n "checking whether to build static libraries... " >&6; }
11542   # Make sure either enable_shared or enable_static is yes.
11543   test "$enable_shared" = yes || enable_static=yes
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11545 $as_echo "$enable_static" >&6; }
11546
11547
11548
11549
11550 fi
11551 ac_ext=c
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556
11557 CC="$lt_save_CC"
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573         ac_config_commands="$ac_config_commands libtool"
11574
11575
11576
11577
11578 # Only expand once:
11579
11580
11581
11582
11583
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
11585 $as_echo_n "checking target system type... " >&6; }
11586 if ${ac_cv_target+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   if test "x$target_alias" = x; then
11590   ac_cv_target=$ac_cv_host
11591 else
11592   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
11593     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
11594 fi
11595
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
11598 $as_echo "$ac_cv_target" >&6; }
11599 case $ac_cv_target in
11600 *-*-*) ;;
11601 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
11602 esac
11603 target=$ac_cv_target
11604 ac_save_IFS=$IFS; IFS='-'
11605 set x $ac_cv_target
11606 shift
11607 target_cpu=$1
11608 target_vendor=$2
11609 shift; shift
11610 # Remember, the first character of IFS is used to create $*,
11611 # except with old shells:
11612 target_os=$*
11613 IFS=$ac_save_IFS
11614 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
11615
11616
11617 # The aliases save the names the user supplied, while $host etc.
11618 # will get canonicalized.
11619 test -n "$target_alias" &&
11620   test "$program_prefix$program_suffix$program_transform_name" = \
11621     NONENONEs,x,x, &&
11622   program_prefix=${target_alias}-
11623
11624 am__api_version='1.14'
11625
11626 # Find a good install program.  We prefer a C program (faster),
11627 # so one script is as good as another.  But avoid the broken or
11628 # incompatible versions:
11629 # SysV /etc/install, /usr/sbin/install
11630 # SunOS /usr/etc/install
11631 # IRIX /sbin/install
11632 # AIX /bin/install
11633 # AmigaOS /C/install, which installs bootblocks on floppy discs
11634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11637 # OS/2's system install, which has a completely different semantic
11638 # ./install, which can be erroneously created by make from ./install.sh.
11639 # Reject install programs that cannot install multiple files.
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11641 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11642 if test -z "$INSTALL"; then
11643 if ${ac_cv_path_install+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     # Account for people who put trailing slashes in PATH elements.
11652 case $as_dir/ in #((
11653   ./ | .// | /[cC]/* | \
11654   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11655   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11656   /usr/ucb/* ) ;;
11657   *)
11658     # OSF1 and SCO ODT 3.0 have their own names for install.
11659     # Don't use installbsd from OSF since it installs stuff as root
11660     # by default.
11661     for ac_prog in ginstall scoinst install; do
11662       for ac_exec_ext in '' $ac_executable_extensions; do
11663         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11664           if test $ac_prog = install &&
11665             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11666             # AIX install.  It has an incompatible calling convention.
11667             :
11668           elif test $ac_prog = install &&
11669             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11670             # program-specific install script used by HP pwplus--don't use.
11671             :
11672           else
11673             rm -rf conftest.one conftest.two conftest.dir
11674             echo one > conftest.one
11675             echo two > conftest.two
11676             mkdir conftest.dir
11677             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11678               test -s conftest.one && test -s conftest.two &&
11679               test -s conftest.dir/conftest.one &&
11680               test -s conftest.dir/conftest.two
11681             then
11682               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11683               break 3
11684             fi
11685           fi
11686         fi
11687       done
11688     done
11689     ;;
11690 esac
11691
11692   done
11693 IFS=$as_save_IFS
11694
11695 rm -rf conftest.one conftest.two conftest.dir
11696
11697 fi
11698   if test "${ac_cv_path_install+set}" = set; then
11699     INSTALL=$ac_cv_path_install
11700   else
11701     # As a last resort, use the slow shell script.  Don't cache a
11702     # value for INSTALL within a source directory, because that will
11703     # break other packages using the cache if that directory is
11704     # removed, or if the value is a relative name.
11705     INSTALL=$ac_install_sh
11706   fi
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11709 $as_echo "$INSTALL" >&6; }
11710
11711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11712 # It thinks the first close brace ends the variable substitution.
11713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11714
11715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11716
11717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11720 $as_echo_n "checking whether build environment is sane... " >&6; }
11721 # Reject unsafe characters in $srcdir or the absolute working directory
11722 # name.  Accept space and tab only in the latter.
11723 am_lf='
11724 '
11725 case `pwd` in
11726   *[\\\"\#\$\&\'\`$am_lf]*)
11727     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11728 esac
11729 case $srcdir in
11730   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
11731     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11732 esac
11733
11734 # Do 'set' in a subshell so we don't clobber the current shell's
11735 # arguments.  Must try -L first in case configure is actually a
11736 # symlink; some systems play weird games with the mod time of symlinks
11737 # (eg FreeBSD returns the mod time of the symlink's containing
11738 # directory).
11739 if (
11740    am_has_slept=no
11741    for am_try in 1 2; do
11742      echo "timestamp, slept: $am_has_slept" > conftest.file
11743      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11744      if test "$*" = "X"; then
11745         # -L didn't work.
11746         set X `ls -t "$srcdir/configure" conftest.file`
11747      fi
11748      if test "$*" != "X $srcdir/configure conftest.file" \
11749         && test "$*" != "X conftest.file $srcdir/configure"; then
11750
11751         # If neither matched, then we have a broken ls.  This can happen
11752         # if, for instance, CONFIG_SHELL is bash and it inherits a
11753         # broken ls alias from the environment.  This has actually
11754         # happened.  Such a system could not be considered "sane".
11755         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11756   alias in your environment" "$LINENO" 5
11757      fi
11758      if test "$2" = conftest.file || test $am_try -eq 2; then
11759        break
11760      fi
11761      # Just in case.
11762      sleep 1
11763      am_has_slept=yes
11764    done
11765    test "$2" = conftest.file
11766    )
11767 then
11768    # Ok.
11769    :
11770 else
11771    as_fn_error $? "newly created file is older than distributed files!
11772 Check your system clock" "$LINENO" 5
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11775 $as_echo "yes" >&6; }
11776 # If we didn't sleep, we still need to ensure time stamps of config.status and
11777 # generated files are strictly newer.
11778 am_sleep_pid=
11779 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11780   ( sleep 1 ) &
11781   am_sleep_pid=$!
11782 fi
11783
11784 rm -f conftest.file
11785
11786 test "$program_prefix" != NONE &&
11787   program_transform_name="s&^&$program_prefix&;$program_transform_name"
11788 # Use a double $ so make ignores it.
11789 test "$program_suffix" != NONE &&
11790   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11791 # Double any \ or $.
11792 # By default was `s,x,x', remove it if useless.
11793 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11794 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11795
11796 if test x"${MISSING+set}" != xset; then
11797   case $am_aux_dir in
11798   *\ * | *\     *)
11799     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11800   *)
11801     MISSING="\${SHELL} $am_aux_dir/missing" ;;
11802   esac
11803 fi
11804 # Use eval to expand $SHELL
11805 if eval "$MISSING --is-lightweight"; then
11806   am_missing_run="$MISSING "
11807 else
11808   am_missing_run=
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11811 fi
11812
11813 if test x"${install_sh}" != xset; then
11814   case $am_aux_dir in
11815   *\ * | *\     *)
11816     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11817   *)
11818     install_sh="\${SHELL} $am_aux_dir/install-sh"
11819   esac
11820 fi
11821
11822 # Installed binaries are usually stripped using 'strip' when the user
11823 # run "make install-strip".  However 'strip' might not be the right
11824 # tool to use in cross-compilation environments, therefore Automake
11825 # will honor the 'STRIP' environment variable to overrule this program.
11826 if test "$cross_compiling" != no; then
11827   if test -n "$ac_tool_prefix"; then
11828   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}strip; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_STRIP+:} false; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   if test -n "$STRIP"; then
11836   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843     for ac_exec_ext in '' $ac_executable_extensions; do
11844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850   done
11851 IFS=$as_save_IFS
11852
11853 fi
11854 fi
11855 STRIP=$ac_cv_prog_STRIP
11856 if test -n "$STRIP"; then
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11858 $as_echo "$STRIP" >&6; }
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865 fi
11866 if test -z "$ac_cv_prog_STRIP"; then
11867   ac_ct_STRIP=$STRIP
11868   # Extract the first word of "strip", so it can be a program name with args.
11869 set dummy strip; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   if test -n "$ac_ct_STRIP"; then
11876   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11877 else
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11880 do
11881   IFS=$as_save_IFS
11882   test -z "$as_dir" && as_dir=.
11883     for ac_exec_ext in '' $ac_executable_extensions; do
11884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885     ac_cv_prog_ac_ct_STRIP="strip"
11886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887     break 2
11888   fi
11889 done
11890   done
11891 IFS=$as_save_IFS
11892
11893 fi
11894 fi
11895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11896 if test -n "$ac_ct_STRIP"; then
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11898 $as_echo "$ac_ct_STRIP" >&6; }
11899 else
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 fi
11903
11904   if test "x$ac_ct_STRIP" = x; then
11905     STRIP=":"
11906   else
11907     case $cross_compiling:$ac_tool_warned in
11908 yes:)
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11911 ac_tool_warned=yes ;;
11912 esac
11913     STRIP=$ac_ct_STRIP
11914   fi
11915 else
11916   STRIP="$ac_cv_prog_STRIP"
11917 fi
11918
11919 fi
11920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11924 if test -z "$MKDIR_P"; then
11925   if ${ac_cv_path_mkdir+:} false; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11930 do
11931   IFS=$as_save_IFS
11932   test -z "$as_dir" && as_dir=.
11933     for ac_prog in mkdir gmkdir; do
11934          for ac_exec_ext in '' $ac_executable_extensions; do
11935            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11936            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11937              'mkdir (GNU coreutils) '* | \
11938              'mkdir (coreutils) '* | \
11939              'mkdir (fileutils) '4.1*)
11940                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11941                break 3;;
11942            esac
11943          done
11944        done
11945   done
11946 IFS=$as_save_IFS
11947
11948 fi
11949
11950   test -d ./--version && rmdir ./--version
11951   if test "${ac_cv_path_mkdir+set}" = set; then
11952     MKDIR_P="$ac_cv_path_mkdir -p"
11953   else
11954     # As a last resort, use the slow shell script.  Don't cache a
11955     # value for MKDIR_P within a source directory, because that will
11956     # break other packages using the cache if that directory is
11957     # removed, or if the value is a relative name.
11958     MKDIR_P="$ac_install_sh -d"
11959   fi
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11962 $as_echo "$MKDIR_P" >&6; }
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11965 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11966 set x ${MAKE-make}
11967 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11968 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   cat >conftest.make <<\_ACEOF
11972 SHELL = /bin/sh
11973 all:
11974         @echo '@@@%%%=$(MAKE)=@@@%%%'
11975 _ACEOF
11976 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11978   *@@@%%%=?*=@@@%%%*)
11979     eval ac_cv_prog_make_${ac_make}_set=yes;;
11980   *)
11981     eval ac_cv_prog_make_${ac_make}_set=no;;
11982 esac
11983 rm -f conftest.make
11984 fi
11985 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11988   SET_MAKE=
11989 else
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992   SET_MAKE="MAKE=${MAKE-make}"
11993 fi
11994
11995 rm -rf .tst 2>/dev/null
11996 mkdir .tst 2>/dev/null
11997 if test -d .tst; then
11998   am__leading_dot=.
11999 else
12000   am__leading_dot=_
12001 fi
12002 rmdir .tst 2>/dev/null
12003
12004 DEPDIR="${am__leading_dot}deps"
12005
12006 ac_config_commands="$ac_config_commands depfiles"
12007
12008
12009 am_make=${MAKE-make}
12010 cat > confinc << 'END'
12011 am__doit:
12012         @echo this is the am__doit target
12013 .PHONY: am__doit
12014 END
12015 # If we don't find an include directive, just comment out the code.
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12017 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12018 am__include="#"
12019 am__quote=
12020 _am_result=none
12021 # First try GNU make style include.
12022 echo "include confinc" > confmf
12023 # Ignore all kinds of additional output from 'make'.
12024 case `$am_make -s -f confmf 2> /dev/null` in #(
12025 *the\ am__doit\ target*)
12026   am__include=include
12027   am__quote=
12028   _am_result=GNU
12029   ;;
12030 esac
12031 # Now try BSD make style include.
12032 if test "$am__include" = "#"; then
12033    echo '.include "confinc"' > confmf
12034    case `$am_make -s -f confmf 2> /dev/null` in #(
12035    *the\ am__doit\ target*)
12036      am__include=.include
12037      am__quote="\""
12038      _am_result=BSD
12039      ;;
12040    esac
12041 fi
12042
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12045 $as_echo "$_am_result" >&6; }
12046 rm -f confinc confmf
12047
12048 # Check whether --enable-dependency-tracking was given.
12049 if test "${enable_dependency_tracking+set}" = set; then :
12050   enableval=$enable_dependency_tracking;
12051 fi
12052
12053 if test "x$enable_dependency_tracking" != xno; then
12054   am_depcomp="$ac_aux_dir/depcomp"
12055   AMDEPBACKSLASH='\'
12056   am__nodep='_no'
12057 fi
12058  if test "x$enable_dependency_tracking" != xno; then
12059   AMDEP_TRUE=
12060   AMDEP_FALSE='#'
12061 else
12062   AMDEP_TRUE='#'
12063   AMDEP_FALSE=
12064 fi
12065
12066
12067 # Check whether --enable-silent-rules was given.
12068 if test "${enable_silent_rules+set}" = set; then :
12069   enableval=$enable_silent_rules;
12070 fi
12071
12072 case $enable_silent_rules in # (((
12073   yes) AM_DEFAULT_VERBOSITY=0;;
12074    no) AM_DEFAULT_VERBOSITY=1;;
12075     *) AM_DEFAULT_VERBOSITY=1;;
12076 esac
12077 am_make=${MAKE-make}
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12080 if ${am_cv_make_support_nested_variables+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   if $as_echo 'TRUE=$(BAR$(V))
12084 BAR0=false
12085 BAR1=true
12086 V=1
12087 am__doit:
12088         @$(TRUE)
12089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12090   am_cv_make_support_nested_variables=yes
12091 else
12092   am_cv_make_support_nested_variables=no
12093 fi
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12097 if test $am_cv_make_support_nested_variables = yes; then
12098     AM_V='$(V)'
12099   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12100 else
12101   AM_V=$AM_DEFAULT_VERBOSITY
12102   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12103 fi
12104 AM_BACKSLASH='\'
12105
12106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12107   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12108   # is not polluted with repeated "-I."
12109   am__isrc=' -I$(srcdir)'
12110   # test to see if srcdir already configured
12111   if test -f $srcdir/config.status; then
12112     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12113   fi
12114 fi
12115
12116 # test whether we have cygpath
12117 if test -z "$CYGPATH_W"; then
12118   if (cygpath --version) >/dev/null 2>/dev/null; then
12119     CYGPATH_W='cygpath -w'
12120   else
12121     CYGPATH_W=echo
12122   fi
12123 fi
12124
12125
12126 # Define the identity of the package.
12127  PACKAGE='nghttp2'
12128  VERSION='1.0.0'
12129
12130
12131 cat >>confdefs.h <<_ACEOF
12132 #define PACKAGE "$PACKAGE"
12133 _ACEOF
12134
12135
12136 cat >>confdefs.h <<_ACEOF
12137 #define VERSION "$VERSION"
12138 _ACEOF
12139
12140 # Some tools Automake needs.
12141
12142 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12143
12144
12145 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12146
12147
12148 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12149
12150
12151 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12152
12153
12154 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12155
12156 # For better backward compatibility.  To be removed once Automake 1.9.x
12157 # dies out for good.  For more background, see:
12158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12160 mkdir_p='$(MKDIR_P)'
12161
12162 # We need awk for the "check" target.  The system "awk" is bad on
12163 # some platforms.
12164 # Always define AMTAR for backward compatibility.  Yes, it's still used
12165 # in the wild :-(  We should find a proper way to deprecate it ...
12166 AMTAR='$${TAR-tar}'
12167
12168
12169 # We'll loop over all known methods to create a tar archive until one works.
12170 _am_tools='gnutar  pax cpio none'
12171
12172 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12173
12174
12175
12176
12177
12178 depcc="$CC"   am_compiler_list=
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12181 $as_echo_n "checking dependency style of $depcc... " >&6; }
12182 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12183   $as_echo_n "(cached) " >&6
12184 else
12185   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12186   # We make a subdir and do the tests there.  Otherwise we can end up
12187   # making bogus files that we don't know about and never remove.  For
12188   # instance it was reported that on HP-UX the gcc test will end up
12189   # making a dummy file named 'D' -- because '-MD' means "put the output
12190   # in D".
12191   rm -rf conftest.dir
12192   mkdir conftest.dir
12193   # Copy depcomp to subdir because otherwise we won't find it if we're
12194   # using a relative directory.
12195   cp "$am_depcomp" conftest.dir
12196   cd conftest.dir
12197   # We will build objects and dependencies in a subdirectory because
12198   # it helps to detect inapplicable dependency modes.  For instance
12199   # both Tru64's cc and ICC support -MD to output dependencies as a
12200   # side effect of compilation, but ICC will put the dependencies in
12201   # the current directory while Tru64 will put them in the object
12202   # directory.
12203   mkdir sub
12204
12205   am_cv_CC_dependencies_compiler_type=none
12206   if test "$am_compiler_list" = ""; then
12207      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12208   fi
12209   am__universal=false
12210   case " $depcc " in #(
12211      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12212      esac
12213
12214   for depmode in $am_compiler_list; do
12215     # Setup a source with many dependencies, because some compilers
12216     # like to wrap large dependency lists on column 80 (with \), and
12217     # we should not choose a depcomp mode which is confused by this.
12218     #
12219     # We need to recreate these files for each test, as the compiler may
12220     # overwrite some of them when testing with obscure command lines.
12221     # This happens at least with the AIX C compiler.
12222     : > sub/conftest.c
12223     for i in 1 2 3 4 5 6; do
12224       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12225       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12226       # Solaris 10 /bin/sh.
12227       echo '/* dummy */' > sub/conftst$i.h
12228     done
12229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12230
12231     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12232     # mode.  It turns out that the SunPro C++ compiler does not properly
12233     # handle '-M -o', and we need to detect this.  Also, some Intel
12234     # versions had trouble with output in subdirs.
12235     am__obj=sub/conftest.${OBJEXT-o}
12236     am__minus_obj="-o $am__obj"
12237     case $depmode in
12238     gcc)
12239       # This depmode causes a compiler race in universal mode.
12240       test "$am__universal" = false || continue
12241       ;;
12242     nosideeffect)
12243       # After this tag, mechanisms are not by side-effect, so they'll
12244       # only be used when explicitly requested.
12245       if test "x$enable_dependency_tracking" = xyes; then
12246         continue
12247       else
12248         break
12249       fi
12250       ;;
12251     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12252       # This compiler won't grok '-c -o', but also, the minuso test has
12253       # not run yet.  These depmodes are late enough in the game, and
12254       # so weak that their functioning should not be impacted.
12255       am__obj=conftest.${OBJEXT-o}
12256       am__minus_obj=
12257       ;;
12258     none) break ;;
12259     esac
12260     if depmode=$depmode \
12261        source=sub/conftest.c object=$am__obj \
12262        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12263        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12264          >/dev/null 2>conftest.err &&
12265        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12266        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12267        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12268        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12269       # icc doesn't choke on unknown options, it will just issue warnings
12270       # or remarks (even with -Werror).  So we grep stderr for any message
12271       # that says an option was ignored or not supported.
12272       # When given -MP, icc 7.0 and 7.1 complain thusly:
12273       #   icc: Command line warning: ignoring option '-M'; no argument required
12274       # The diagnosis changed in icc 8.0:
12275       #   icc: Command line remark: option '-MP' not supported
12276       if (grep 'ignoring option' conftest.err ||
12277           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12278         am_cv_CC_dependencies_compiler_type=$depmode
12279         break
12280       fi
12281     fi
12282   done
12283
12284   cd ..
12285   rm -rf conftest.dir
12286 else
12287   am_cv_CC_dependencies_compiler_type=none
12288 fi
12289
12290 fi
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12292 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12294
12295  if
12296   test "x$enable_dependency_tracking" != xno \
12297   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12298   am__fastdepCC_TRUE=
12299   am__fastdepCC_FALSE='#'
12300 else
12301   am__fastdepCC_TRUE='#'
12302   am__fastdepCC_FALSE=
12303 fi
12304
12305
12306
12307 # POSIX will say in a future version that running "rm -f" with no argument
12308 # is OK; and we want to be able to make that assumption in our Makefile
12309 # recipes.  So use an aggressive probe to check that the usage we want is
12310 # actually supported "in the wild" to an acceptable degree.
12311 # See automake bug#10828.
12312 # To make any issue more visible, cause the running configure to be aborted
12313 # by default if the 'rm' program in use doesn't match our expectations; the
12314 # user can still override this though.
12315 if rm -f && rm -fr && rm -rf; then : OK; else
12316   cat >&2 <<'END'
12317 Oops!
12318
12319 Your 'rm' program seems unable to run without file operands specified
12320 on the command line, even when the '-f' option is present.  This is contrary
12321 to the behaviour of most rm programs out there, and not conforming with
12322 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12323
12324 Please tell bug-automake@gnu.org about your system, including the value
12325 of your $PATH and any error possibly output before this message.  This
12326 can help us improve future automake versions.
12327
12328 END
12329   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12330     echo 'Configuration will proceed anyway, since you have set the' >&2
12331     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12332     echo >&2
12333   else
12334     cat >&2 <<'END'
12335 Aborting the configuration process, to ensure you take notice of the issue.
12336
12337 You can download and install GNU coreutils to get an 'rm' implementation
12338 that behaves properly: <http://www.gnu.org/software/coreutils/>.
12339
12340 If you want to complete the configuration process using your problematic
12341 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12342 to "yes", and re-run configure.
12343
12344 END
12345     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12346   fi
12347 fi
12348
12349 # comment out for now since this requires automake 1.13 or higher and
12350 # travis has older one.
12351 # AM_EXTRA_RECURSIVE_TARGETS([it])
12352
12353 # Check whether --enable-silent-rules was given.
12354 if test "${enable_silent_rules+set}" = set; then :
12355   enableval=$enable_silent_rules;
12356 fi
12357
12358 case $enable_silent_rules in # (((
12359   yes) AM_DEFAULT_VERBOSITY=0;;
12360    no) AM_DEFAULT_VERBOSITY=1;;
12361     *) AM_DEFAULT_VERBOSITY=0;;
12362 esac
12363 am_make=${MAKE-make}
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12366 if ${am_cv_make_support_nested_variables+:} false; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   if $as_echo 'TRUE=$(BAR$(V))
12370 BAR0=false
12371 BAR1=true
12372 V=1
12373 am__doit:
12374         @$(TRUE)
12375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12376   am_cv_make_support_nested_variables=yes
12377 else
12378   am_cv_make_support_nested_variables=no
12379 fi
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12383 if test $am_cv_make_support_nested_variables = yes; then
12384     AM_V='$(V)'
12385   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12386 else
12387   AM_V=$AM_DEFAULT_VERBOSITY
12388   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12389 fi
12390 AM_BACKSLASH='\'
12391
12392
12393
12394 ac_config_headers="$ac_config_headers config.h"
12395
12396
12397 LT_CURRENT=14
12398
12399 LT_REVISION=0
12400
12401 LT_AGE=0
12402
12403
12404 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
12405 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
12406 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
12407
12408 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
12409
12410
12411
12412 # Check whether --enable-werror was given.
12413 if test "${enable_werror+set}" = set; then :
12414   enableval=$enable_werror; werror=$enableval
12415 else
12416   werror=no
12417 fi
12418
12419
12420 # Check whether --enable-debug was given.
12421 if test "${enable_debug+set}" = set; then :
12422   enableval=$enable_debug; debug=$enableval
12423 else
12424   debug=no
12425 fi
12426
12427
12428 # Check whether --enable-threads was given.
12429 if test "${enable_threads+set}" = set; then :
12430   enableval=$enable_threads; threads=$enableval
12431 else
12432   threads=yes
12433 fi
12434
12435
12436 # Check whether --enable-app was given.
12437 if test "${enable_app+set}" = set; then :
12438   enableval=$enable_app; request_app=$enableval
12439 else
12440   request_app=check
12441 fi
12442
12443
12444 # Check whether --enable-hpack-tools was given.
12445 if test "${enable_hpack_tools+set}" = set; then :
12446   enableval=$enable_hpack_tools; request_hpack_tools=$enableval
12447 else
12448   request_hpack_tools=check
12449 fi
12450
12451
12452 # Check whether --enable-asio-lib was given.
12453 if test "${enable_asio_lib+set}" = set; then :
12454   enableval=$enable_asio_lib; request_asio_lib=$enableval
12455 else
12456   request_asio_lib=no
12457 fi
12458
12459
12460 # Check whether --enable-examples was given.
12461 if test "${enable_examples+set}" = set; then :
12462   enableval=$enable_examples; request_examples=$enableval
12463 else
12464   request_examples=check
12465 fi
12466
12467
12468 # Check whether --enable-python-bindings was given.
12469 if test "${enable_python_bindings+set}" = set; then :
12470   enableval=$enable_python_bindings; request_python_bindings=$enableval
12471 else
12472   request_python_bindings=check
12473 fi
12474
12475
12476 # Check whether --enable-failmalloc was given.
12477 if test "${enable_failmalloc+set}" = set; then :
12478   enableval=$enable_failmalloc; request_failmalloc=$enableval
12479 else
12480   request_failmalloc=yes
12481 fi
12482
12483
12484
12485 # Check whether --with-libxml2 was given.
12486 if test "${with_libxml2+set}" = set; then :
12487   withval=$with_libxml2; request_libxml2=$withval
12488 else
12489   request_libxml2=check
12490 fi
12491
12492
12493
12494 # Check whether --with-jemalloc was given.
12495 if test "${with_jemalloc+set}" = set; then :
12496   withval=$with_jemalloc; request_jemalloc=$withval
12497 else
12498   request_jemalloc=check
12499 fi
12500
12501
12502
12503 # Check whether --with-spdylay was given.
12504 if test "${with_spdylay+set}" = set; then :
12505   withval=$with_spdylay; request_spdylay=$withval
12506 else
12507   request_spdylay=check
12508 fi
12509
12510
12511
12512 # Check whether --with-cython was given.
12513 if test "${with_cython+set}" = set; then :
12514   withval=$with_cython; cython_path=$withval
12515 fi
12516
12517
12518
12519
12520 ac_ext=c
12521 ac_cpp='$CPP $CPPFLAGS'
12522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525 if test -n "$ac_tool_prefix"; then
12526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_prog_CC+:} false; then :
12531   $as_echo_n "(cached) " >&6
12532 else
12533   if test -n "$CC"; then
12534   ac_cv_prog_CC="$CC" # Let the user override the test.
12535 else
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12538 do
12539   IFS=$as_save_IFS
12540   test -z "$as_dir" && as_dir=.
12541     for ac_exec_ext in '' $ac_executable_extensions; do
12542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545     break 2
12546   fi
12547 done
12548   done
12549 IFS=$as_save_IFS
12550
12551 fi
12552 fi
12553 CC=$ac_cv_prog_CC
12554 if test -n "$CC"; then
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12556 $as_echo "$CC" >&6; }
12557 else
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560 fi
12561
12562
12563 fi
12564 if test -z "$ac_cv_prog_CC"; then
12565   ac_ct_CC=$CC
12566   # Extract the first word of "gcc", so it can be a program name with args.
12567 set dummy gcc; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12571   $as_echo_n "(cached) " >&6
12572 else
12573   if test -n "$ac_ct_CC"; then
12574   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12575 else
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12578 do
12579   IFS=$as_save_IFS
12580   test -z "$as_dir" && as_dir=.
12581     for ac_exec_ext in '' $ac_executable_extensions; do
12582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583     ac_cv_prog_ac_ct_CC="gcc"
12584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585     break 2
12586   fi
12587 done
12588   done
12589 IFS=$as_save_IFS
12590
12591 fi
12592 fi
12593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12594 if test -n "$ac_ct_CC"; then
12595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12596 $as_echo "$ac_ct_CC" >&6; }
12597 else
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12600 fi
12601
12602   if test "x$ac_ct_CC" = x; then
12603     CC=""
12604   else
12605     case $cross_compiling:$ac_tool_warned in
12606 yes:)
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12609 ac_tool_warned=yes ;;
12610 esac
12611     CC=$ac_ct_CC
12612   fi
12613 else
12614   CC="$ac_cv_prog_CC"
12615 fi
12616
12617 if test -z "$CC"; then
12618           if test -n "$ac_tool_prefix"; then
12619     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12620 set dummy ${ac_tool_prefix}cc; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_CC+:} false; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626   if test -n "$CC"; then
12627   ac_cv_prog_CC="$CC" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632   IFS=$as_save_IFS
12633   test -z "$as_dir" && as_dir=.
12634     for ac_exec_ext in '' $ac_executable_extensions; do
12635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636     ac_cv_prog_CC="${ac_tool_prefix}cc"
12637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638     break 2
12639   fi
12640 done
12641   done
12642 IFS=$as_save_IFS
12643
12644 fi
12645 fi
12646 CC=$ac_cv_prog_CC
12647 if test -n "$CC"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12649 $as_echo "$CC" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655
12656   fi
12657 fi
12658 if test -z "$CC"; then
12659   # Extract the first word of "cc", so it can be a program name with args.
12660 set dummy cc; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_prog_CC+:} false; then :
12664   $as_echo_n "(cached) " >&6
12665 else
12666   if test -n "$CC"; then
12667   ac_cv_prog_CC="$CC" # Let the user override the test.
12668 else
12669   ac_prog_rejected=no
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12672 do
12673   IFS=$as_save_IFS
12674   test -z "$as_dir" && as_dir=.
12675     for ac_exec_ext in '' $ac_executable_extensions; do
12676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12678        ac_prog_rejected=yes
12679        continue
12680      fi
12681     ac_cv_prog_CC="cc"
12682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683     break 2
12684   fi
12685 done
12686   done
12687 IFS=$as_save_IFS
12688
12689 if test $ac_prog_rejected = yes; then
12690   # We found a bogon in the path, so make sure we never use it.
12691   set dummy $ac_cv_prog_CC
12692   shift
12693   if test $# != 0; then
12694     # We chose a different compiler from the bogus one.
12695     # However, it has the same basename, so the bogon will be chosen
12696     # first if we set CC to just the basename; use the full file name.
12697     shift
12698     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12699   fi
12700 fi
12701 fi
12702 fi
12703 CC=$ac_cv_prog_CC
12704 if test -n "$CC"; then
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12706 $as_echo "$CC" >&6; }
12707 else
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710 fi
12711
12712
12713 fi
12714 if test -z "$CC"; then
12715   if test -n "$ac_tool_prefix"; then
12716   for ac_prog in cl.exe
12717   do
12718     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721 $as_echo_n "checking for $ac_word... " >&6; }
12722 if ${ac_cv_prog_CC+:} false; then :
12723   $as_echo_n "(cached) " >&6
12724 else
12725   if test -n "$CC"; then
12726   ac_cv_prog_CC="$CC" # Let the user override the test.
12727 else
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12730 do
12731   IFS=$as_save_IFS
12732   test -z "$as_dir" && as_dir=.
12733     for ac_exec_ext in '' $ac_executable_extensions; do
12734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737     break 2
12738   fi
12739 done
12740   done
12741 IFS=$as_save_IFS
12742
12743 fi
12744 fi
12745 CC=$ac_cv_prog_CC
12746 if test -n "$CC"; then
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12748 $as_echo "$CC" >&6; }
12749 else
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12752 fi
12753
12754
12755     test -n "$CC" && break
12756   done
12757 fi
12758 if test -z "$CC"; then
12759   ac_ct_CC=$CC
12760   for ac_prog in cl.exe
12761 do
12762   # Extract the first word of "$ac_prog", so it can be a program name with args.
12763 set dummy $ac_prog; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12767   $as_echo_n "(cached) " >&6
12768 else
12769   if test -n "$ac_ct_CC"; then
12770   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12771 else
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_exec_ext in '' $ac_executable_extensions; do
12778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779     ac_cv_prog_ac_ct_CC="$ac_prog"
12780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781     break 2
12782   fi
12783 done
12784   done
12785 IFS=$as_save_IFS
12786
12787 fi
12788 fi
12789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12790 if test -n "$ac_ct_CC"; then
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12792 $as_echo "$ac_ct_CC" >&6; }
12793 else
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797
12798
12799   test -n "$ac_ct_CC" && break
12800 done
12801
12802   if test "x$ac_ct_CC" = x; then
12803     CC=""
12804   else
12805     case $cross_compiling:$ac_tool_warned in
12806 yes:)
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12809 ac_tool_warned=yes ;;
12810 esac
12811     CC=$ac_ct_CC
12812   fi
12813 fi
12814
12815 fi
12816
12817
12818 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12820 as_fn_error $? "no acceptable C compiler found in \$PATH
12821 See \`config.log' for more details" "$LINENO" 5; }
12822
12823 # Provide some information about the compiler.
12824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12825 set X $ac_compile
12826 ac_compiler=$2
12827 for ac_option in --version -v -V -qversion; do
12828   { { ac_try="$ac_compiler $ac_option >&5"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12834 $as_echo "$ac_try_echo"; } >&5
12835   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12836   ac_status=$?
12837   if test -s conftest.err; then
12838     sed '10a\
12839 ... rest of stderr output deleted ...
12840          10q' conftest.err >conftest.er1
12841     cat conftest.er1 >&5
12842   fi
12843   rm -f conftest.er1 conftest.err
12844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845   test $ac_status = 0; }
12846 done
12847
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12849 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12850 if ${ac_cv_c_compiler_gnu+:} false; then :
12851   $as_echo_n "(cached) " >&6
12852 else
12853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h.  */
12855
12856 int
12857 main ()
12858 {
12859 #ifndef __GNUC__
12860        choke me
12861 #endif
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868   ac_compiler_gnu=yes
12869 else
12870   ac_compiler_gnu=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12874
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12877 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12878 if test $ac_compiler_gnu = yes; then
12879   GCC=yes
12880 else
12881   GCC=
12882 fi
12883 ac_test_CFLAGS=${CFLAGS+set}
12884 ac_save_CFLAGS=$CFLAGS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12886 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12887 if ${ac_cv_prog_cc_g+:} false; then :
12888   $as_echo_n "(cached) " >&6
12889 else
12890   ac_save_c_werror_flag=$ac_c_werror_flag
12891    ac_c_werror_flag=yes
12892    ac_cv_prog_cc_g=no
12893    CFLAGS="-g"
12894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h.  */
12896
12897 int
12898 main ()
12899 {
12900
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906   ac_cv_prog_cc_g=yes
12907 else
12908   CFLAGS=""
12909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h.  */
12911
12912 int
12913 main ()
12914 {
12915
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_compile "$LINENO"; then :
12921
12922 else
12923   ac_c_werror_flag=$ac_save_c_werror_flag
12924          CFLAGS="-g"
12925          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h.  */
12927
12928 int
12929 main ()
12930 {
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937   ac_cv_prog_cc_g=yes
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12944    ac_c_werror_flag=$ac_save_c_werror_flag
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12947 $as_echo "$ac_cv_prog_cc_g" >&6; }
12948 if test "$ac_test_CFLAGS" = set; then
12949   CFLAGS=$ac_save_CFLAGS
12950 elif test $ac_cv_prog_cc_g = yes; then
12951   if test "$GCC" = yes; then
12952     CFLAGS="-g -O2"
12953   else
12954     CFLAGS="-g"
12955   fi
12956 else
12957   if test "$GCC" = yes; then
12958     CFLAGS="-O2"
12959   else
12960     CFLAGS=
12961   fi
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12964 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12965 if ${ac_cv_prog_cc_c89+:} false; then :
12966   $as_echo_n "(cached) " >&6
12967 else
12968   ac_cv_prog_cc_c89=no
12969 ac_save_CC=$CC
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h.  */
12972 #include <stdarg.h>
12973 #include <stdio.h>
12974 struct stat;
12975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12976 struct buf { int x; };
12977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12978 static char *e (p, i)
12979      char **p;
12980      int i;
12981 {
12982   return p[i];
12983 }
12984 static char *f (char * (*g) (char **, int), char **p, ...)
12985 {
12986   char *s;
12987   va_list v;
12988   va_start (v,p);
12989   s = g (p, va_arg (v,int));
12990   va_end (v);
12991   return s;
12992 }
12993
12994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12995    function prototypes and stuff, but not '\xHH' hex character constants.
12996    These don't provoke an error unfortunately, instead are silently treated
12997    as 'x'.  The following induces an error, until -std is added to get
12998    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12999    array size at least.  It's necessary to write '\x00'==0 to get something
13000    that's true only with -std.  */
13001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13002
13003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13004    inside strings and character constants.  */
13005 #define FOO(x) 'x'
13006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13007
13008 int test (int i, double x);
13009 struct s1 {int (*f) (int a);};
13010 struct s2 {int (*f) (double a);};
13011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13012 int argc;
13013 char **argv;
13014 int
13015 main ()
13016 {
13017 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13023         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13024 do
13025   CC="$ac_save_CC $ac_arg"
13026   if ac_fn_c_try_compile "$LINENO"; then :
13027   ac_cv_prog_cc_c89=$ac_arg
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext
13030   test "x$ac_cv_prog_cc_c89" != "xno" && break
13031 done
13032 rm -f conftest.$ac_ext
13033 CC=$ac_save_CC
13034
13035 fi
13036 # AC_CACHE_VAL
13037 case "x$ac_cv_prog_cc_c89" in
13038   x)
13039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13040 $as_echo "none needed" >&6; } ;;
13041   xno)
13042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13043 $as_echo "unsupported" >&6; } ;;
13044   *)
13045     CC="$CC $ac_cv_prog_cc_c89"
13046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13047 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13048 esac
13049 if test "x$ac_cv_prog_cc_c89" != xno; then :
13050
13051 fi
13052
13053 ac_ext=c
13054 ac_cpp='$CPP $CPPFLAGS'
13055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13058
13059 ac_ext=c
13060 ac_cpp='$CPP $CPPFLAGS'
13061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13065 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13066 if ${am_cv_prog_cc_c_o+:} false; then :
13067   $as_echo_n "(cached) " >&6
13068 else
13069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h.  */
13071
13072 int
13073 main ()
13074 {
13075
13076   ;
13077   return 0;
13078 }
13079 _ACEOF
13080   # Make sure it works both with $CC and with simple cc.
13081   # Following AC_PROG_CC_C_O, we do the test twice because some
13082   # compilers refuse to overwrite an existing .o file with -o,
13083   # though they will create one.
13084   am_cv_prog_cc_c_o=yes
13085   for am_i in 1 2; do
13086     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13087    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13088    ac_status=$?
13089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090    (exit $ac_status); } \
13091          && test -f conftest2.$ac_objext; then
13092       : OK
13093     else
13094       am_cv_prog_cc_c_o=no
13095       break
13096     fi
13097   done
13098   rm -f core conftest*
13099   unset am_i
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13102 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13103 if test "$am_cv_prog_cc_c_o" != yes; then
13104    # Losing compiler, so override with the script.
13105    # FIXME: It is wrong to rewrite CC.
13106    # But if we don't then we get into trouble of one sort or another.
13107    # A longer-term fix would be to have automake use am__CC in this case,
13108    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13109    CC="$am_aux_dir/compile $CC"
13110 fi
13111 ac_ext=c
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13116
13117
13118 ac_ext=cpp
13119 ac_cpp='$CXXCPP $CPPFLAGS'
13120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13123 if test -z "$CXX"; then
13124   if test -n "$CCC"; then
13125     CXX=$CCC
13126   else
13127     if test -n "$ac_tool_prefix"; then
13128   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13129   do
13130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_CXX+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   if test -n "$CXX"; then
13138   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152   done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 CXX=$ac_cv_prog_CXX
13158 if test -n "$CXX"; then
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13160 $as_echo "$CXX" >&6; }
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167     test -n "$CXX" && break
13168   done
13169 fi
13170 if test -z "$CXX"; then
13171   ac_ct_CXX=$CXX
13172   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13173 do
13174   # Extract the first word of "$ac_prog", so it can be a program name with args.
13175 set dummy $ac_prog; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   if test -n "$ac_ct_CXX"; then
13182   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13186 do
13187   IFS=$as_save_IFS
13188   test -z "$as_dir" && as_dir=.
13189     for ac_exec_ext in '' $ac_executable_extensions; do
13190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191     ac_cv_prog_ac_ct_CXX="$ac_prog"
13192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193     break 2
13194   fi
13195 done
13196   done
13197 IFS=$as_save_IFS
13198
13199 fi
13200 fi
13201 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13202 if test -n "$ac_ct_CXX"; then
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13204 $as_echo "$ac_ct_CXX" >&6; }
13205 else
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210
13211   test -n "$ac_ct_CXX" && break
13212 done
13213
13214   if test "x$ac_ct_CXX" = x; then
13215     CXX="g++"
13216   else
13217     case $cross_compiling:$ac_tool_warned in
13218 yes:)
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13221 ac_tool_warned=yes ;;
13222 esac
13223     CXX=$ac_ct_CXX
13224   fi
13225 fi
13226
13227   fi
13228 fi
13229 # Provide some information about the compiler.
13230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13231 set X $ac_compile
13232 ac_compiler=$2
13233 for ac_option in --version -v -V -qversion; do
13234   { { ac_try="$ac_compiler $ac_option >&5"
13235 case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13240 $as_echo "$ac_try_echo"; } >&5
13241   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13242   ac_status=$?
13243   if test -s conftest.err; then
13244     sed '10a\
13245 ... rest of stderr output deleted ...
13246          10q' conftest.err >conftest.er1
13247     cat conftest.er1 >&5
13248   fi
13249   rm -f conftest.er1 conftest.err
13250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251   test $ac_status = 0; }
13252 done
13253
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13255 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13256 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13257   $as_echo_n "(cached) " >&6
13258 else
13259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h.  */
13261
13262 int
13263 main ()
13264 {
13265 #ifndef __GNUC__
13266        choke me
13267 #endif
13268
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_cxx_try_compile "$LINENO"; then :
13274   ac_compiler_gnu=yes
13275 else
13276   ac_compiler_gnu=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13280
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13283 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13284 if test $ac_compiler_gnu = yes; then
13285   GXX=yes
13286 else
13287   GXX=
13288 fi
13289 ac_test_CXXFLAGS=${CXXFLAGS+set}
13290 ac_save_CXXFLAGS=$CXXFLAGS
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13292 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13293 if ${ac_cv_prog_cxx_g+:} false; then :
13294   $as_echo_n "(cached) " >&6
13295 else
13296   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13297    ac_cxx_werror_flag=yes
13298    ac_cv_prog_cxx_g=no
13299    CXXFLAGS="-g"
13300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h.  */
13302
13303 int
13304 main ()
13305 {
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_cxx_try_compile "$LINENO"; then :
13312   ac_cv_prog_cxx_g=yes
13313 else
13314   CXXFLAGS=""
13315       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317
13318 int
13319 main ()
13320 {
13321
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_cxx_try_compile "$LINENO"; then :
13327
13328 else
13329   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13330          CXXFLAGS="-g"
13331          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13333
13334 int
13335 main ()
13336 {
13337
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 if ac_fn_cxx_try_compile "$LINENO"; then :
13343   ac_cv_prog_cxx_g=yes
13344 fi
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13353 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13354 if test "$ac_test_CXXFLAGS" = set; then
13355   CXXFLAGS=$ac_save_CXXFLAGS
13356 elif test $ac_cv_prog_cxx_g = yes; then
13357   if test "$GXX" = yes; then
13358     CXXFLAGS="-g -O2"
13359   else
13360     CXXFLAGS="-g"
13361   fi
13362 else
13363   if test "$GXX" = yes; then
13364     CXXFLAGS="-O2"
13365   else
13366     CXXFLAGS=
13367   fi
13368 fi
13369 ac_ext=c
13370 ac_cpp='$CPP $CPPFLAGS'
13371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374
13375
13376
13377 func_stripname_cnf ()
13378 {
13379   case ${2} in
13380   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13381   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13382   esac
13383 } # func_stripname_cnf
13384
13385       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13386     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13387     (test "X$CXX" != "Xg++"))) ; then
13388   ac_ext=cpp
13389 ac_cpp='$CXXCPP $CPPFLAGS'
13390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13394 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13395 if test -z "$CXXCPP"; then
13396   if ${ac_cv_prog_CXXCPP+:} false; then :
13397   $as_echo_n "(cached) " >&6
13398 else
13399       # Double quotes because CXXCPP needs to be expanded
13400     for CXXCPP in "$CXX -E" "/lib/cpp"
13401     do
13402       ac_preproc_ok=false
13403 for ac_cxx_preproc_warn_flag in '' yes
13404 do
13405   # Use a header file that comes with gcc, so configuring glibc
13406   # with a fresh cross-compiler works.
13407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408   # <limits.h> exists even on freestanding compilers.
13409   # On the NeXT, cc -E runs the code through the compiler's parser,
13410   # not just through cpp. "Syntax error" is here to catch this case.
13411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h.  */
13413 #ifdef __STDC__
13414 # include <limits.h>
13415 #else
13416 # include <assert.h>
13417 #endif
13418                      Syntax error
13419 _ACEOF
13420 if ac_fn_cxx_try_cpp "$LINENO"; then :
13421
13422 else
13423   # Broken: fails on valid input.
13424 continue
13425 fi
13426 rm -f conftest.err conftest.i conftest.$ac_ext
13427
13428   # OK, works on sane cases.  Now check whether nonexistent headers
13429   # can be detected and how.
13430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h.  */
13432 #include <ac_nonexistent.h>
13433 _ACEOF
13434 if ac_fn_cxx_try_cpp "$LINENO"; then :
13435   # Broken: success on invalid input.
13436 continue
13437 else
13438   # Passes both tests.
13439 ac_preproc_ok=:
13440 break
13441 fi
13442 rm -f conftest.err conftest.i conftest.$ac_ext
13443
13444 done
13445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446 rm -f conftest.i conftest.err conftest.$ac_ext
13447 if $ac_preproc_ok; then :
13448   break
13449 fi
13450
13451     done
13452     ac_cv_prog_CXXCPP=$CXXCPP
13453
13454 fi
13455   CXXCPP=$ac_cv_prog_CXXCPP
13456 else
13457   ac_cv_prog_CXXCPP=$CXXCPP
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13460 $as_echo "$CXXCPP" >&6; }
13461 ac_preproc_ok=false
13462 for ac_cxx_preproc_warn_flag in '' yes
13463 do
13464   # Use a header file that comes with gcc, so configuring glibc
13465   # with a fresh cross-compiler works.
13466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13467   # <limits.h> exists even on freestanding compilers.
13468   # On the NeXT, cc -E runs the code through the compiler's parser,
13469   # not just through cpp. "Syntax error" is here to catch this case.
13470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h.  */
13472 #ifdef __STDC__
13473 # include <limits.h>
13474 #else
13475 # include <assert.h>
13476 #endif
13477                      Syntax error
13478 _ACEOF
13479 if ac_fn_cxx_try_cpp "$LINENO"; then :
13480
13481 else
13482   # Broken: fails on valid input.
13483 continue
13484 fi
13485 rm -f conftest.err conftest.i conftest.$ac_ext
13486
13487   # OK, works on sane cases.  Now check whether nonexistent headers
13488   # can be detected and how.
13489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491 #include <ac_nonexistent.h>
13492 _ACEOF
13493 if ac_fn_cxx_try_cpp "$LINENO"; then :
13494   # Broken: success on invalid input.
13495 continue
13496 else
13497   # Passes both tests.
13498 ac_preproc_ok=:
13499 break
13500 fi
13501 rm -f conftest.err conftest.i conftest.$ac_ext
13502
13503 done
13504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13505 rm -f conftest.i conftest.err conftest.$ac_ext
13506 if $ac_preproc_ok; then :
13507
13508 else
13509   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13511 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13512 See \`config.log' for more details" "$LINENO" 5; }
13513 fi
13514
13515 ac_ext=c
13516 ac_cpp='$CPP $CPPFLAGS'
13517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13520
13521 else
13522   _lt_caught_CXX_error=yes
13523 fi
13524
13525 ac_ext=cpp
13526 ac_cpp='$CXXCPP $CPPFLAGS'
13527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13530
13531 archive_cmds_need_lc_CXX=no
13532 allow_undefined_flag_CXX=
13533 always_export_symbols_CXX=no
13534 archive_expsym_cmds_CXX=
13535 compiler_needs_object_CXX=no
13536 export_dynamic_flag_spec_CXX=
13537 hardcode_direct_CXX=no
13538 hardcode_direct_absolute_CXX=no
13539 hardcode_libdir_flag_spec_CXX=
13540 hardcode_libdir_separator_CXX=
13541 hardcode_minus_L_CXX=no
13542 hardcode_shlibpath_var_CXX=unsupported
13543 hardcode_automatic_CXX=no
13544 inherit_rpath_CXX=no
13545 module_cmds_CXX=
13546 module_expsym_cmds_CXX=
13547 link_all_deplibs_CXX=unknown
13548 old_archive_cmds_CXX=$old_archive_cmds
13549 reload_flag_CXX=$reload_flag
13550 reload_cmds_CXX=$reload_cmds
13551 no_undefined_flag_CXX=
13552 whole_archive_flag_spec_CXX=
13553 enable_shared_with_static_runtimes_CXX=no
13554
13555 # Source file extension for C++ test sources.
13556 ac_ext=cpp
13557
13558 # Object file extension for compiled C++ test sources.
13559 objext=o
13560 objext_CXX=$objext
13561
13562 # No sense in running all these tests if we already determined that
13563 # the CXX compiler isn't working.  Some variables (like enable_shared)
13564 # are currently assumed to apply to all compilers on this platform,
13565 # and will be corrupted by setting them based on a non-working compiler.
13566 if test "$_lt_caught_CXX_error" != yes; then
13567   # Code to be used in simple compile tests
13568   lt_simple_compile_test_code="int some_variable = 0;"
13569
13570   # Code to be used in simple link tests
13571   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13572
13573   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13574
13575
13576
13577
13578
13579
13580 # If no C compiler was specified, use CC.
13581 LTCC=${LTCC-"$CC"}
13582
13583 # If no C compiler flags were specified, use CFLAGS.
13584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13585
13586 # Allow CC to be a program name with arguments.
13587 compiler=$CC
13588
13589
13590   # save warnings/boilerplate of simple test code
13591   ac_outfile=conftest.$ac_objext
13592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13594 _lt_compiler_boilerplate=`cat conftest.err`
13595 $RM conftest*
13596
13597   ac_outfile=conftest.$ac_objext
13598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13600 _lt_linker_boilerplate=`cat conftest.err`
13601 $RM -r conftest*
13602
13603
13604   # Allow CC to be a program name with arguments.
13605   lt_save_CC=$CC
13606   lt_save_CFLAGS=$CFLAGS
13607   lt_save_LD=$LD
13608   lt_save_GCC=$GCC
13609   GCC=$GXX
13610   lt_save_with_gnu_ld=$with_gnu_ld
13611   lt_save_path_LD=$lt_cv_path_LD
13612   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13613     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13614   else
13615     $as_unset lt_cv_prog_gnu_ld
13616   fi
13617   if test -n "${lt_cv_path_LDCXX+set}"; then
13618     lt_cv_path_LD=$lt_cv_path_LDCXX
13619   else
13620     $as_unset lt_cv_path_LD
13621   fi
13622   test -z "${LDCXX+set}" || LD=$LDCXX
13623   CC=${CXX-"c++"}
13624   CFLAGS=$CXXFLAGS
13625   compiler=$CC
13626   compiler_CXX=$CC
13627   for cc_temp in $compiler""; do
13628   case $cc_temp in
13629     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13630     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13631     \-*) ;;
13632     *) break;;
13633   esac
13634 done
13635 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13636
13637
13638   if test -n "$compiler"; then
13639     # We don't want -fno-exception when compiling C++ code, so set the
13640     # no_builtin_flag separately
13641     if test "$GXX" = yes; then
13642       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13643     else
13644       lt_prog_compiler_no_builtin_flag_CXX=
13645     fi
13646
13647     if test "$GXX" = yes; then
13648       # Set up default GNU C++ configuration
13649
13650
13651
13652 # Check whether --with-gnu-ld was given.
13653 if test "${with_gnu_ld+set}" = set; then :
13654   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13655 else
13656   with_gnu_ld=no
13657 fi
13658
13659 ac_prog=ld
13660 if test "$GCC" = yes; then
13661   # Check if gcc -print-prog-name=ld gives a path.
13662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13663 $as_echo_n "checking for ld used by $CC... " >&6; }
13664   case $host in
13665   *-*-mingw*)
13666     # gcc leaves a trailing carriage return which upsets mingw
13667     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13668   *)
13669     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13670   esac
13671   case $ac_prog in
13672     # Accept absolute paths.
13673     [\\/]* | ?:[\\/]*)
13674       re_direlt='/[^/][^/]*/\.\./'
13675       # Canonicalize the pathname of ld
13676       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13677       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13678         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13679       done
13680       test -z "$LD" && LD="$ac_prog"
13681       ;;
13682   "")
13683     # If it fails, then pretend we aren't using GCC.
13684     ac_prog=ld
13685     ;;
13686   *)
13687     # If it is relative, then search for the first ld in PATH.
13688     with_gnu_ld=unknown
13689     ;;
13690   esac
13691 elif test "$with_gnu_ld" = yes; then
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13693 $as_echo_n "checking for GNU ld... " >&6; }
13694 else
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13696 $as_echo_n "checking for non-GNU ld... " >&6; }
13697 fi
13698 if ${lt_cv_path_LD+:} false; then :
13699   $as_echo_n "(cached) " >&6
13700 else
13701   if test -z "$LD"; then
13702   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13703   for ac_dir in $PATH; do
13704     IFS="$lt_save_ifs"
13705     test -z "$ac_dir" && ac_dir=.
13706     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13707       lt_cv_path_LD="$ac_dir/$ac_prog"
13708       # Check to see if the program is GNU ld.  I'd rather use --version,
13709       # but apparently some variants of GNU ld only accept -v.
13710       # Break only if it was the GNU/non-GNU ld that we prefer.
13711       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13712       *GNU* | *'with BFD'*)
13713         test "$with_gnu_ld" != no && break
13714         ;;
13715       *)
13716         test "$with_gnu_ld" != yes && break
13717         ;;
13718       esac
13719     fi
13720   done
13721   IFS="$lt_save_ifs"
13722 else
13723   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13724 fi
13725 fi
13726
13727 LD="$lt_cv_path_LD"
13728 if test -n "$LD"; then
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13730 $as_echo "$LD" >&6; }
13731 else
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13734 fi
13735 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13738 if ${lt_cv_prog_gnu_ld+:} false; then :
13739   $as_echo_n "(cached) " >&6
13740 else
13741   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13742 case `$LD -v 2>&1 </dev/null` in
13743 *GNU* | *'with BFD'*)
13744   lt_cv_prog_gnu_ld=yes
13745   ;;
13746 *)
13747   lt_cv_prog_gnu_ld=no
13748   ;;
13749 esac
13750 fi
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13753 with_gnu_ld=$lt_cv_prog_gnu_ld
13754
13755
13756
13757
13758
13759
13760
13761       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13762       # archiving commands below assume that GNU ld is being used.
13763       if test "$with_gnu_ld" = yes; then
13764         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765         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'
13766
13767         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13769
13770         # If archive_cmds runs LD, not CC, wlarc should be empty
13771         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13772         #     investigate it a little bit more. (MM)
13773         wlarc='${wl}'
13774
13775         # ancient GNU ld didn't support --whole-archive et. al.
13776         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13777           $GREP 'no-whole-archive' > /dev/null; then
13778           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13779         else
13780           whole_archive_flag_spec_CXX=
13781         fi
13782       else
13783         with_gnu_ld=no
13784         wlarc=
13785
13786         # A generic and very simple default shared library creation
13787         # command for GNU C++ for the case where it uses the native
13788         # linker, instead of GNU ld.  If possible, this setting should
13789         # overridden to take advantage of the native linker features on
13790         # the platform it is being used on.
13791         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13792       fi
13793
13794       # Commands to make compiler produce verbose output that lists
13795       # what "hidden" libraries, object files and flags are used when
13796       # linking a shared library.
13797       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13798
13799     else
13800       GXX=no
13801       with_gnu_ld=no
13802       wlarc=
13803     fi
13804
13805     # PORTME: fill in a description of your system's C++ link characteristics
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13808     ld_shlibs_CXX=yes
13809     case $host_os in
13810       aix3*)
13811         # FIXME: insert proper C++ library support
13812         ld_shlibs_CXX=no
13813         ;;
13814       aix[4-9]*)
13815         if test "$host_cpu" = ia64; then
13816           # On IA64, the linker does run time linking by default, so we don't
13817           # have to do anything special.
13818           aix_use_runtimelinking=no
13819           exp_sym_flag='-Bexport'
13820           no_entry_flag=""
13821         else
13822           aix_use_runtimelinking=no
13823
13824           # Test if we are trying to use run time linking or normal
13825           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13826           # need to do runtime linking.
13827           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13828             for ld_flag in $LDFLAGS; do
13829               case $ld_flag in
13830               *-brtl*)
13831                 aix_use_runtimelinking=yes
13832                 break
13833                 ;;
13834               esac
13835             done
13836             ;;
13837           esac
13838
13839           exp_sym_flag='-bexport'
13840           no_entry_flag='-bnoentry'
13841         fi
13842
13843         # When large executables or shared objects are built, AIX ld can
13844         # have problems creating the table of contents.  If linking a library
13845         # or program results in "error TOC overflow" add -mminimal-toc to
13846         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13847         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13848
13849         archive_cmds_CXX=''
13850         hardcode_direct_CXX=yes
13851         hardcode_direct_absolute_CXX=yes
13852         hardcode_libdir_separator_CXX=':'
13853         link_all_deplibs_CXX=yes
13854         file_list_spec_CXX='${wl}-f,'
13855
13856         if test "$GXX" = yes; then
13857           case $host_os in aix4.[012]|aix4.[012].*)
13858           # We only want to do this on AIX 4.2 and lower, the check
13859           # below for broken collect2 doesn't work under 4.3+
13860           collect2name=`${CC} -print-prog-name=collect2`
13861           if test -f "$collect2name" &&
13862              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13863           then
13864             # We have reworked collect2
13865             :
13866           else
13867             # We have old collect2
13868             hardcode_direct_CXX=unsupported
13869             # It fails to find uninstalled libraries when the uninstalled
13870             # path is not listed in the libpath.  Setting hardcode_minus_L
13871             # to unsupported forces relinking
13872             hardcode_minus_L_CXX=yes
13873             hardcode_libdir_flag_spec_CXX='-L$libdir'
13874             hardcode_libdir_separator_CXX=
13875           fi
13876           esac
13877           shared_flag='-shared'
13878           if test "$aix_use_runtimelinking" = yes; then
13879             shared_flag="$shared_flag "'${wl}-G'
13880           fi
13881         else
13882           # not using gcc
13883           if test "$host_cpu" = ia64; then
13884           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13885           # chokes on -Wl,-G. The following line is correct:
13886           shared_flag='-G'
13887           else
13888             if test "$aix_use_runtimelinking" = yes; then
13889               shared_flag='${wl}-G'
13890             else
13891               shared_flag='${wl}-bM:SRE'
13892             fi
13893           fi
13894         fi
13895
13896         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13897         # It seems that -bexpall does not export symbols beginning with
13898         # underscore (_), so it is better to generate a list of symbols to
13899         # export.
13900         always_export_symbols_CXX=yes
13901         if test "$aix_use_runtimelinking" = yes; then
13902           # Warning - without using the other runtime loading flags (-brtl),
13903           # -berok will link without error, but may produce a broken library.
13904           allow_undefined_flag_CXX='-berok'
13905           # Determine the default libpath from the value encoded in an empty
13906           # executable.
13907           if test "${lt_cv_aix_libpath+set}" = set; then
13908   aix_libpath=$lt_cv_aix_libpath
13909 else
13910   if ${lt_cv_aix_libpath__CXX+:} false; then :
13911   $as_echo_n "(cached) " >&6
13912 else
13913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 int
13917 main ()
13918 {
13919
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_cxx_try_link "$LINENO"; then :
13925
13926   lt_aix_libpath_sed='
13927       /Import File Strings/,/^$/ {
13928           /^0/ {
13929               s/^0  *\([^ ]*\) *$/\1/
13930               p
13931           }
13932       }'
13933   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13934   # Check for a 64-bit object if we didn't find anything.
13935   if test -z "$lt_cv_aix_libpath__CXX"; then
13936     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13937   fi
13938 fi
13939 rm -f core conftest.err conftest.$ac_objext \
13940     conftest$ac_exeext conftest.$ac_ext
13941   if test -z "$lt_cv_aix_libpath__CXX"; then
13942     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13943   fi
13944
13945 fi
13946
13947   aix_libpath=$lt_cv_aix_libpath__CXX
13948 fi
13949
13950           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13951
13952           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13953         else
13954           if test "$host_cpu" = ia64; then
13955             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13956             allow_undefined_flag_CXX="-z nodefs"
13957             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"
13958           else
13959             # Determine the default libpath from the value encoded in an
13960             # empty executable.
13961             if test "${lt_cv_aix_libpath+set}" = set; then
13962   aix_libpath=$lt_cv_aix_libpath
13963 else
13964   if ${lt_cv_aix_libpath__CXX+:} false; then :
13965   $as_echo_n "(cached) " >&6
13966 else
13967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h.  */
13969
13970 int
13971 main ()
13972 {
13973
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_cxx_try_link "$LINENO"; then :
13979
13980   lt_aix_libpath_sed='
13981       /Import File Strings/,/^$/ {
13982           /^0/ {
13983               s/^0  *\([^ ]*\) *$/\1/
13984               p
13985           }
13986       }'
13987   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13988   # Check for a 64-bit object if we didn't find anything.
13989   if test -z "$lt_cv_aix_libpath__CXX"; then
13990     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13991   fi
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext \
13994     conftest$ac_exeext conftest.$ac_ext
13995   if test -z "$lt_cv_aix_libpath__CXX"; then
13996     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13997   fi
13998
13999 fi
14000
14001   aix_libpath=$lt_cv_aix_libpath__CXX
14002 fi
14003
14004             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14005             # Warning - without using the other run time loading flags,
14006             # -berok will link without error, but may produce a broken library.
14007             no_undefined_flag_CXX=' ${wl}-bernotok'
14008             allow_undefined_flag_CXX=' ${wl}-berok'
14009             if test "$with_gnu_ld" = yes; then
14010               # We only use this code for GNU lds that support --whole-archive.
14011               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14012             else
14013               # Exported symbols can be pulled into shared objects from archives
14014               whole_archive_flag_spec_CXX='$convenience'
14015             fi
14016             archive_cmds_need_lc_CXX=yes
14017             # This is similar to how AIX traditionally builds its shared
14018             # libraries.
14019             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14020           fi
14021         fi
14022         ;;
14023
14024       beos*)
14025         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14026           allow_undefined_flag_CXX=unsupported
14027           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14028           # support --undefined.  This deserves some investigation.  FIXME
14029           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030         else
14031           ld_shlibs_CXX=no
14032         fi
14033         ;;
14034
14035       chorus*)
14036         case $cc_basename in
14037           *)
14038           # FIXME: insert proper C++ library support
14039           ld_shlibs_CXX=no
14040           ;;
14041         esac
14042         ;;
14043
14044       cygwin* | mingw* | pw32* | cegcc*)
14045         case $GXX,$cc_basename in
14046         ,cl* | no,cl*)
14047           # Native MSVC
14048           # hardcode_libdir_flag_spec is actually meaningless, as there is
14049           # no search path for DLLs.
14050           hardcode_libdir_flag_spec_CXX=' '
14051           allow_undefined_flag_CXX=unsupported
14052           always_export_symbols_CXX=yes
14053           file_list_spec_CXX='@'
14054           # Tell ltmain to make .lib files, not .a files.
14055           libext=lib
14056           # Tell ltmain to make .dll files, not .so files.
14057           shrext_cmds=".dll"
14058           # FIXME: Setting linknames here is a bad hack.
14059           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14060           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14061               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14062             else
14063               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14064             fi~
14065             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14066             linknames='
14067           # The linker will not automatically build a static lib if we build a DLL.
14068           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14069           enable_shared_with_static_runtimes_CXX=yes
14070           # Don't use ranlib
14071           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14072           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14073             lt_tool_outputfile="@TOOL_OUTPUT@"~
14074             case $lt_outputfile in
14075               *.exe|*.EXE) ;;
14076               *)
14077                 lt_outputfile="$lt_outputfile.exe"
14078                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14079                 ;;
14080             esac~
14081             func_to_tool_file "$lt_outputfile"~
14082             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14083               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14084               $RM "$lt_outputfile.manifest";
14085             fi'
14086           ;;
14087         *)
14088           # g++
14089           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14090           # as there is no search path for DLLs.
14091           hardcode_libdir_flag_spec_CXX='-L$libdir'
14092           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14093           allow_undefined_flag_CXX=unsupported
14094           always_export_symbols_CXX=no
14095           enable_shared_with_static_runtimes_CXX=yes
14096
14097           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14098             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'
14099             # If the export-symbols file already is a .def file (1st line
14100             # is EXPORTS), use it as is; otherwise, prepend...
14101             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14102               cp $export_symbols $output_objdir/$soname.def;
14103             else
14104               echo EXPORTS > $output_objdir/$soname.def;
14105               cat $export_symbols >> $output_objdir/$soname.def;
14106             fi~
14107             $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'
14108           else
14109             ld_shlibs_CXX=no
14110           fi
14111           ;;
14112         esac
14113         ;;
14114       darwin* | rhapsody*)
14115
14116
14117   archive_cmds_need_lc_CXX=no
14118   hardcode_direct_CXX=no
14119   hardcode_automatic_CXX=yes
14120   hardcode_shlibpath_var_CXX=unsupported
14121   if test "$lt_cv_ld_force_load" = "yes"; then
14122     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\"`'
14123
14124   else
14125     whole_archive_flag_spec_CXX=''
14126   fi
14127   link_all_deplibs_CXX=yes
14128   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14129   case $cc_basename in
14130      ifort*) _lt_dar_can_shared=yes ;;
14131      *) _lt_dar_can_shared=$GCC ;;
14132   esac
14133   if test "$_lt_dar_can_shared" = "yes"; then
14134     output_verbose_link_cmd=func_echo_all
14135     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}"
14136     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14137     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}"
14138     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}"
14139        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14140       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}"
14141       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}"
14142     fi
14143
14144   else
14145   ld_shlibs_CXX=no
14146   fi
14147
14148         ;;
14149
14150       dgux*)
14151         case $cc_basename in
14152           ec++*)
14153             # FIXME: insert proper C++ library support
14154             ld_shlibs_CXX=no
14155             ;;
14156           ghcx*)
14157             # Green Hills C++ Compiler
14158             # FIXME: insert proper C++ library support
14159             ld_shlibs_CXX=no
14160             ;;
14161           *)
14162             # FIXME: insert proper C++ library support
14163             ld_shlibs_CXX=no
14164             ;;
14165         esac
14166         ;;
14167
14168       freebsd2.*)
14169         # C++ shared libraries reported to be fairly broken before
14170         # switch to ELF
14171         ld_shlibs_CXX=no
14172         ;;
14173
14174       freebsd-elf*)
14175         archive_cmds_need_lc_CXX=no
14176         ;;
14177
14178       freebsd* | dragonfly*)
14179         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14180         # conventions
14181         ld_shlibs_CXX=yes
14182         ;;
14183
14184       haiku*)
14185         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14186         link_all_deplibs_CXX=yes
14187         ;;
14188
14189       hpux9*)
14190         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14191         hardcode_libdir_separator_CXX=:
14192         export_dynamic_flag_spec_CXX='${wl}-E'
14193         hardcode_direct_CXX=yes
14194         hardcode_minus_L_CXX=yes # Not in the search PATH,
14195                                              # but as the default
14196                                              # location of the library.
14197
14198         case $cc_basename in
14199           CC*)
14200             # FIXME: insert proper C++ library support
14201             ld_shlibs_CXX=no
14202             ;;
14203           aCC*)
14204             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14205             # Commands to make compiler produce verbose output that lists
14206             # what "hidden" libraries, object files and flags are used when
14207             # linking a shared library.
14208             #
14209             # There doesn't appear to be a way to prevent this compiler from
14210             # explicitly linking system object files so we need to strip them
14211             # from the output so that they don't get included in the library
14212             # dependencies.
14213             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"'
14214             ;;
14215           *)
14216             if test "$GXX" = yes; then
14217               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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14218             else
14219               # FIXME: insert proper C++ library support
14220               ld_shlibs_CXX=no
14221             fi
14222             ;;
14223         esac
14224         ;;
14225
14226       hpux10*|hpux11*)
14227         if test $with_gnu_ld = no; then
14228           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14229           hardcode_libdir_separator_CXX=:
14230
14231           case $host_cpu in
14232             hppa*64*|ia64*)
14233               ;;
14234             *)
14235               export_dynamic_flag_spec_CXX='${wl}-E'
14236               ;;
14237           esac
14238         fi
14239         case $host_cpu in
14240           hppa*64*|ia64*)
14241             hardcode_direct_CXX=no
14242             hardcode_shlibpath_var_CXX=no
14243             ;;
14244           *)
14245             hardcode_direct_CXX=yes
14246             hardcode_direct_absolute_CXX=yes
14247             hardcode_minus_L_CXX=yes # Not in the search PATH,
14248                                                  # but as the default
14249                                                  # location of the library.
14250             ;;
14251         esac
14252
14253         case $cc_basename in
14254           CC*)
14255             # FIXME: insert proper C++ library support
14256             ld_shlibs_CXX=no
14257             ;;
14258           aCC*)
14259             case $host_cpu in
14260               hppa*64*)
14261                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262                 ;;
14263               ia64*)
14264                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14265                 ;;
14266               *)
14267                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14268                 ;;
14269             esac
14270             # Commands to make compiler produce verbose output that lists
14271             # what "hidden" libraries, object files and flags are used when
14272             # linking a shared library.
14273             #
14274             # There doesn't appear to be a way to prevent this compiler from
14275             # explicitly linking system object files so we need to strip them
14276             # from the output so that they don't get included in the library
14277             # dependencies.
14278             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"'
14279             ;;
14280           *)
14281             if test "$GXX" = yes; then
14282               if test $with_gnu_ld = no; then
14283                 case $host_cpu in
14284                   hppa*64*)
14285                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14286                     ;;
14287                   ia64*)
14288                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14289                     ;;
14290                   *)
14291                     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'
14292                     ;;
14293                 esac
14294               fi
14295             else
14296               # FIXME: insert proper C++ library support
14297               ld_shlibs_CXX=no
14298             fi
14299             ;;
14300         esac
14301         ;;
14302
14303       interix[3-9]*)
14304         hardcode_direct_CXX=no
14305         hardcode_shlibpath_var_CXX=no
14306         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14307         export_dynamic_flag_spec_CXX='${wl}-E'
14308         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14309         # Instead, shared libraries are loaded at an image base (0x10000000 by
14310         # default) and relocated if they conflict, which is a slow very memory
14311         # consuming and fragmenting process.  To avoid this, we pick a random,
14312         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14313         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14314         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'
14315         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'
14316         ;;
14317       irix5* | irix6*)
14318         case $cc_basename in
14319           CC*)
14320             # SGI C++
14321             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'
14322
14323             # Archives containing C++ object files must be created using
14324             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14325             # necessary to make sure instantiated templates are included
14326             # in the archive.
14327             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14328             ;;
14329           *)
14330             if test "$GXX" = yes; then
14331               if test "$with_gnu_ld" = no; then
14332                 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'
14333               else
14334                 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'
14335               fi
14336             fi
14337             link_all_deplibs_CXX=yes
14338             ;;
14339         esac
14340         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14341         hardcode_libdir_separator_CXX=:
14342         inherit_rpath_CXX=yes
14343         ;;
14344
14345       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14346         case $cc_basename in
14347           KCC*)
14348             # Kuck and Associates, Inc. (KAI) C++ Compiler
14349
14350             # KCC will only create a shared library if the output file
14351             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14352             # to its proper name (with version) after linking.
14353             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'
14354             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'
14355             # Commands to make compiler produce verbose output that lists
14356             # what "hidden" libraries, object files and flags are used when
14357             # linking a shared library.
14358             #
14359             # There doesn't appear to be a way to prevent this compiler from
14360             # explicitly linking system object files so we need to strip them
14361             # from the output so that they don't get included in the library
14362             # dependencies.
14363             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"'
14364
14365             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14366             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14367
14368             # Archives containing C++ object files must be created using
14369             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14370             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14371             ;;
14372           icpc* | ecpc* )
14373             # Intel C++
14374             with_gnu_ld=yes
14375             # version 8.0 and above of icpc choke on multiply defined symbols
14376             # if we add $predep_objects and $postdep_objects, however 7.1 and
14377             # earlier do not add the objects themselves.
14378             case `$CC -V 2>&1` in
14379               *"Version 7."*)
14380                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14381                 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'
14382                 ;;
14383               *)  # Version 8.0 or newer
14384                 tmp_idyn=
14385                 case $host_cpu in
14386                   ia64*) tmp_idyn=' -i_dynamic';;
14387                 esac
14388                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389                 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'
14390                 ;;
14391             esac
14392             archive_cmds_need_lc_CXX=no
14393             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14394             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14395             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14396             ;;
14397           pgCC* | pgcpp*)
14398             # Portland Group C++ compiler
14399             case `$CC -V` in
14400             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14401               prelink_cmds_CXX='tpldir=Template.dir~
14402                 rm -rf $tpldir~
14403                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14404                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14405               old_archive_cmds_CXX='tpldir=Template.dir~
14406                 rm -rf $tpldir~
14407                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14408                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14409                 $RANLIB $oldlib'
14410               archive_cmds_CXX='tpldir=Template.dir~
14411                 rm -rf $tpldir~
14412                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14413                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14414               archive_expsym_cmds_CXX='tpldir=Template.dir~
14415                 rm -rf $tpldir~
14416                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14417                 $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'
14418               ;;
14419             *) # Version 6 and above use weak symbols
14420               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14421               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'
14422               ;;
14423             esac
14424
14425             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14426             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14427             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'
14428             ;;
14429           cxx*)
14430             # Compaq C++
14431             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14432             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'
14433
14434             runpath_var=LD_RUN_PATH
14435             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14436             hardcode_libdir_separator_CXX=:
14437
14438             # Commands to make compiler produce verbose output that lists
14439             # what "hidden" libraries, object files and flags are used when
14440             # linking a shared library.
14441             #
14442             # There doesn't appear to be a way to prevent this compiler from
14443             # explicitly linking system object files so we need to strip them
14444             # from the output so that they don't get included in the library
14445             # dependencies.
14446             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'
14447             ;;
14448           xl* | mpixl* | bgxl*)
14449             # IBM XL 8.0 on PPC, with GNU ld
14450             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14451             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14452             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14453             if test "x$supports_anon_versioning" = xyes; then
14454               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14455                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14456                 echo "local: *; };" >> $output_objdir/$libname.ver~
14457                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14458             fi
14459             ;;
14460           *)
14461             case `$CC -V 2>&1 | sed 5q` in
14462             *Sun\ C*)
14463               # Sun C++ 5.9
14464               no_undefined_flag_CXX=' -zdefs'
14465               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14466               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'
14467               hardcode_libdir_flag_spec_CXX='-R$libdir'
14468               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'
14469               compiler_needs_object_CXX=yes
14470
14471               # Not sure whether something based on
14472               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14473               # would be better.
14474               output_verbose_link_cmd='func_echo_all'
14475
14476               # Archives containing C++ object files must be created using
14477               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14478               # necessary to make sure instantiated templates are included
14479               # in the archive.
14480               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14481               ;;
14482             esac
14483             ;;
14484         esac
14485         ;;
14486
14487       lynxos*)
14488         # FIXME: insert proper C++ library support
14489         ld_shlibs_CXX=no
14490         ;;
14491
14492       m88k*)
14493         # FIXME: insert proper C++ library support
14494         ld_shlibs_CXX=no
14495         ;;
14496
14497       mvs*)
14498         case $cc_basename in
14499           cxx*)
14500             # FIXME: insert proper C++ library support
14501             ld_shlibs_CXX=no
14502             ;;
14503           *)
14504             # FIXME: insert proper C++ library support
14505             ld_shlibs_CXX=no
14506             ;;
14507         esac
14508         ;;
14509
14510       netbsd*)
14511         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14512           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14513           wlarc=
14514           hardcode_libdir_flag_spec_CXX='-R$libdir'
14515           hardcode_direct_CXX=yes
14516           hardcode_shlibpath_var_CXX=no
14517         fi
14518         # Workaround some broken pre-1.5 toolchains
14519         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14520         ;;
14521
14522       *nto* | *qnx*)
14523         ld_shlibs_CXX=yes
14524         ;;
14525
14526       openbsd2*)
14527         # C++ shared libraries are fairly broken
14528         ld_shlibs_CXX=no
14529         ;;
14530
14531       openbsd*)
14532         if test -f /usr/libexec/ld.so; then
14533           hardcode_direct_CXX=yes
14534           hardcode_shlibpath_var_CXX=no
14535           hardcode_direct_absolute_CXX=yes
14536           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14537           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14538           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14539             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14540             export_dynamic_flag_spec_CXX='${wl}-E'
14541             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14542           fi
14543           output_verbose_link_cmd=func_echo_all
14544         else
14545           ld_shlibs_CXX=no
14546         fi
14547         ;;
14548
14549       osf3* | osf4* | osf5*)
14550         case $cc_basename in
14551           KCC*)
14552             # Kuck and Associates, Inc. (KAI) C++ Compiler
14553
14554             # KCC will only create a shared library if the output file
14555             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14556             # to its proper name (with version) after linking.
14557             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'
14558
14559             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14560             hardcode_libdir_separator_CXX=:
14561
14562             # Archives containing C++ object files must be created using
14563             # the KAI C++ compiler.
14564             case $host in
14565               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14566               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14567             esac
14568             ;;
14569           RCC*)
14570             # Rational C++ 2.4.1
14571             # FIXME: insert proper C++ library support
14572             ld_shlibs_CXX=no
14573             ;;
14574           cxx*)
14575             case $host in
14576               osf3*)
14577                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14578                 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'
14579                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14580                 ;;
14581               *)
14582                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14583                 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'
14584                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14585                   echo "-hidden">> $lib.exp~
14586                   $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~
14587                   $RM $lib.exp'
14588                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14589                 ;;
14590             esac
14591
14592             hardcode_libdir_separator_CXX=:
14593
14594             # Commands to make compiler produce verbose output that lists
14595             # what "hidden" libraries, object files and flags are used when
14596             # linking a shared library.
14597             #
14598             # There doesn't appear to be a way to prevent this compiler from
14599             # explicitly linking system object files so we need to strip them
14600             # from the output so that they don't get included in the library
14601             # dependencies.
14602             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"'
14603             ;;
14604           *)
14605             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14606               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14607               case $host in
14608                 osf3*)
14609                   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'
14610                   ;;
14611                 *)
14612                   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'
14613                   ;;
14614               esac
14615
14616               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14617               hardcode_libdir_separator_CXX=:
14618
14619               # Commands to make compiler produce verbose output that lists
14620               # what "hidden" libraries, object files and flags are used when
14621               # linking a shared library.
14622               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14623
14624             else
14625               # FIXME: insert proper C++ library support
14626               ld_shlibs_CXX=no
14627             fi
14628             ;;
14629         esac
14630         ;;
14631
14632       psos*)
14633         # FIXME: insert proper C++ library support
14634         ld_shlibs_CXX=no
14635         ;;
14636
14637       sunos4*)
14638         case $cc_basename in
14639           CC*)
14640             # Sun C++ 4.x
14641             # FIXME: insert proper C++ library support
14642             ld_shlibs_CXX=no
14643             ;;
14644           lcc*)
14645             # Lucid
14646             # FIXME: insert proper C++ library support
14647             ld_shlibs_CXX=no
14648             ;;
14649           *)
14650             # FIXME: insert proper C++ library support
14651             ld_shlibs_CXX=no
14652             ;;
14653         esac
14654         ;;
14655
14656       solaris*)
14657         case $cc_basename in
14658           CC* | sunCC*)
14659             # Sun C++ 4.2, 5.x and Centerline C++
14660             archive_cmds_need_lc_CXX=yes
14661             no_undefined_flag_CXX=' -zdefs'
14662             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14663             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14664               $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'
14665
14666             hardcode_libdir_flag_spec_CXX='-R$libdir'
14667             hardcode_shlibpath_var_CXX=no
14668             case $host_os in
14669               solaris2.[0-5] | solaris2.[0-5].*) ;;
14670               *)
14671                 # The compiler driver will combine and reorder linker options,
14672                 # but understands `-z linker_flag'.
14673                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14674                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14675                 ;;
14676             esac
14677             link_all_deplibs_CXX=yes
14678
14679             output_verbose_link_cmd='func_echo_all'
14680
14681             # Archives containing C++ object files must be created using
14682             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14683             # necessary to make sure instantiated templates are included
14684             # in the archive.
14685             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14686             ;;
14687           gcx*)
14688             # Green Hills C++ Compiler
14689             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14690
14691             # The C++ compiler must be used to create the archive.
14692             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14693             ;;
14694           *)
14695             # GNU C++ compiler with Solaris linker
14696             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14697               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14698               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14699                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14700                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14701                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14702
14703                 # Commands to make compiler produce verbose output that lists
14704                 # what "hidden" libraries, object files and flags are used when
14705                 # linking a shared library.
14706                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14707               else
14708                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14709                 # platform.
14710                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14711                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14713
14714                 # Commands to make compiler produce verbose output that lists
14715                 # what "hidden" libraries, object files and flags are used when
14716                 # linking a shared library.
14717                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14718               fi
14719
14720               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14721               case $host_os in
14722                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14723                 *)
14724                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14725                   ;;
14726               esac
14727             fi
14728             ;;
14729         esac
14730         ;;
14731
14732     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14733       no_undefined_flag_CXX='${wl}-z,text'
14734       archive_cmds_need_lc_CXX=no
14735       hardcode_shlibpath_var_CXX=no
14736       runpath_var='LD_RUN_PATH'
14737
14738       case $cc_basename in
14739         CC*)
14740           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14742           ;;
14743         *)
14744           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14746           ;;
14747       esac
14748       ;;
14749
14750       sysv5* | sco3.2v5* | sco5v6*)
14751         # Note: We can NOT use -z defs as we might desire, because we do not
14752         # link with -lc, and that would cause any symbols used from libc to
14753         # always be unresolved, which means just about no library would
14754         # ever link correctly.  If we're not using GNU ld we use -z text
14755         # though, which does catch some bad symbols but isn't as heavy-handed
14756         # as -z defs.
14757         no_undefined_flag_CXX='${wl}-z,text'
14758         allow_undefined_flag_CXX='${wl}-z,nodefs'
14759         archive_cmds_need_lc_CXX=no
14760         hardcode_shlibpath_var_CXX=no
14761         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14762         hardcode_libdir_separator_CXX=':'
14763         link_all_deplibs_CXX=yes
14764         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14765         runpath_var='LD_RUN_PATH'
14766
14767         case $cc_basename in
14768           CC*)
14769             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14770             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14771             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14772               '"$old_archive_cmds_CXX"
14773             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14774               '"$reload_cmds_CXX"
14775             ;;
14776           *)
14777             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14779             ;;
14780         esac
14781       ;;
14782
14783       tandem*)
14784         case $cc_basename in
14785           NCC*)
14786             # NonStop-UX NCC 3.20
14787             # FIXME: insert proper C++ library support
14788             ld_shlibs_CXX=no
14789             ;;
14790           *)
14791             # FIXME: insert proper C++ library support
14792             ld_shlibs_CXX=no
14793             ;;
14794         esac
14795         ;;
14796
14797       vxworks*)
14798         # FIXME: insert proper C++ library support
14799         ld_shlibs_CXX=no
14800         ;;
14801
14802       *)
14803         # FIXME: insert proper C++ library support
14804         ld_shlibs_CXX=no
14805         ;;
14806     esac
14807
14808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14809 $as_echo "$ld_shlibs_CXX" >&6; }
14810     test "$ld_shlibs_CXX" = no && can_build_shared=no
14811
14812     GCC_CXX="$GXX"
14813     LD_CXX="$LD"
14814
14815     ## CAVEAT EMPTOR:
14816     ## There is no encapsulation within the following macros, do not change
14817     ## the running order or otherwise move them around unless you know exactly
14818     ## what you are doing...
14819     # Dependencies to place before and after the object being linked:
14820 predep_objects_CXX=
14821 postdep_objects_CXX=
14822 predeps_CXX=
14823 postdeps_CXX=
14824 compiler_lib_search_path_CXX=
14825
14826 cat > conftest.$ac_ext <<_LT_EOF
14827 class Foo
14828 {
14829 public:
14830   Foo (void) { a = 0; }
14831 private:
14832   int a;
14833 };
14834 _LT_EOF
14835
14836
14837 _lt_libdeps_save_CFLAGS=$CFLAGS
14838 case "$CC $CFLAGS " in #(
14839 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14840 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14841 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14842 esac
14843
14844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14845   (eval $ac_compile) 2>&5
14846   ac_status=$?
14847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848   test $ac_status = 0; }; then
14849   # Parse the compiler output and extract the necessary
14850   # objects, libraries and library flags.
14851
14852   # Sentinel used to keep track of whether or not we are before
14853   # the conftest object file.
14854   pre_test_object_deps_done=no
14855
14856   for p in `eval "$output_verbose_link_cmd"`; do
14857     case ${prev}${p} in
14858
14859     -L* | -R* | -l*)
14860        # Some compilers place space between "-{L,R}" and the path.
14861        # Remove the space.
14862        if test $p = "-L" ||
14863           test $p = "-R"; then
14864          prev=$p
14865          continue
14866        fi
14867
14868        # Expand the sysroot to ease extracting the directories later.
14869        if test -z "$prev"; then
14870          case $p in
14871          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14872          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14873          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14874          esac
14875        fi
14876        case $p in
14877        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14878        esac
14879        if test "$pre_test_object_deps_done" = no; then
14880          case ${prev} in
14881          -L | -R)
14882            # Internal compiler library paths should come after those
14883            # provided the user.  The postdeps already come after the
14884            # user supplied libs so there is no need to process them.
14885            if test -z "$compiler_lib_search_path_CXX"; then
14886              compiler_lib_search_path_CXX="${prev}${p}"
14887            else
14888              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14889            fi
14890            ;;
14891          # The "-l" case would never come before the object being
14892          # linked, so don't bother handling this case.
14893          esac
14894        else
14895          if test -z "$postdeps_CXX"; then
14896            postdeps_CXX="${prev}${p}"
14897          else
14898            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14899          fi
14900        fi
14901        prev=
14902        ;;
14903
14904     *.lto.$objext) ;; # Ignore GCC LTO objects
14905     *.$objext)
14906        # This assumes that the test object file only shows up
14907        # once in the compiler output.
14908        if test "$p" = "conftest.$objext"; then
14909          pre_test_object_deps_done=yes
14910          continue
14911        fi
14912
14913        if test "$pre_test_object_deps_done" = no; then
14914          if test -z "$predep_objects_CXX"; then
14915            predep_objects_CXX="$p"
14916          else
14917            predep_objects_CXX="$predep_objects_CXX $p"
14918          fi
14919        else
14920          if test -z "$postdep_objects_CXX"; then
14921            postdep_objects_CXX="$p"
14922          else
14923            postdep_objects_CXX="$postdep_objects_CXX $p"
14924          fi
14925        fi
14926        ;;
14927
14928     *) ;; # Ignore the rest.
14929
14930     esac
14931   done
14932
14933   # Clean up.
14934   rm -f a.out a.exe
14935 else
14936   echo "libtool.m4: error: problem compiling CXX test program"
14937 fi
14938
14939 $RM -f confest.$objext
14940 CFLAGS=$_lt_libdeps_save_CFLAGS
14941
14942 # PORTME: override above test on systems where it is broken
14943 case $host_os in
14944 interix[3-9]*)
14945   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14946   # hack all around it, let's just trust "g++" to DTRT.
14947   predep_objects_CXX=
14948   postdep_objects_CXX=
14949   postdeps_CXX=
14950   ;;
14951
14952 linux*)
14953   case `$CC -V 2>&1 | sed 5q` in
14954   *Sun\ C*)
14955     # Sun C++ 5.9
14956
14957     # The more standards-conforming stlport4 library is
14958     # incompatible with the Cstd library. Avoid specifying
14959     # it if it's in CXXFLAGS. Ignore libCrun as
14960     # -library=stlport4 depends on it.
14961     case " $CXX $CXXFLAGS " in
14962     *" -library=stlport4 "*)
14963       solaris_use_stlport4=yes
14964       ;;
14965     esac
14966
14967     if test "$solaris_use_stlport4" != yes; then
14968       postdeps_CXX='-library=Cstd -library=Crun'
14969     fi
14970     ;;
14971   esac
14972   ;;
14973
14974 solaris*)
14975   case $cc_basename in
14976   CC* | sunCC*)
14977     # The more standards-conforming stlport4 library is
14978     # incompatible with the Cstd library. Avoid specifying
14979     # it if it's in CXXFLAGS. Ignore libCrun as
14980     # -library=stlport4 depends on it.
14981     case " $CXX $CXXFLAGS " in
14982     *" -library=stlport4 "*)
14983       solaris_use_stlport4=yes
14984       ;;
14985     esac
14986
14987     # Adding this requires a known-good setup of shared libraries for
14988     # Sun compiler versions before 5.6, else PIC objects from an old
14989     # archive will be linked into the output, leading to subtle bugs.
14990     if test "$solaris_use_stlport4" != yes; then
14991       postdeps_CXX='-library=Cstd -library=Crun'
14992     fi
14993     ;;
14994   esac
14995   ;;
14996 esac
14997
14998
14999 case " $postdeps_CXX " in
15000 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15001 esac
15002  compiler_lib_search_dirs_CXX=
15003 if test -n "${compiler_lib_search_path_CXX}"; then
15004  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037     lt_prog_compiler_wl_CXX=
15038 lt_prog_compiler_pic_CXX=
15039 lt_prog_compiler_static_CXX=
15040
15041
15042   # C++ specific cases for pic, static, wl, etc.
15043   if test "$GXX" = yes; then
15044     lt_prog_compiler_wl_CXX='-Wl,'
15045     lt_prog_compiler_static_CXX='-static'
15046
15047     case $host_os in
15048     aix*)
15049       # All AIX code is PIC.
15050       if test "$host_cpu" = ia64; then
15051         # AIX 5 now supports IA64 processor
15052         lt_prog_compiler_static_CXX='-Bstatic'
15053       fi
15054       ;;
15055
15056     amigaos*)
15057       case $host_cpu in
15058       powerpc)
15059             # see comment about AmigaOS4 .so support
15060             lt_prog_compiler_pic_CXX='-fPIC'
15061         ;;
15062       m68k)
15063             # FIXME: we need at least 68020 code to build shared libraries, but
15064             # adding the `-m68020' flag to GCC prevents building anything better,
15065             # like `-m68040'.
15066             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15067         ;;
15068       esac
15069       ;;
15070
15071     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15072       # PIC is the default for these OSes.
15073       ;;
15074     mingw* | cygwin* | os2* | pw32* | cegcc*)
15075       # This hack is so that the source file can tell whether it is being
15076       # built for inclusion in a dll (and should export symbols for example).
15077       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15078       # (--disable-auto-import) libraries
15079       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15080       ;;
15081     darwin* | rhapsody*)
15082       # PIC is the default on this platform
15083       # Common symbols not allowed in MH_DYLIB files
15084       lt_prog_compiler_pic_CXX='-fno-common'
15085       ;;
15086     *djgpp*)
15087       # DJGPP does not support shared libraries at all
15088       lt_prog_compiler_pic_CXX=
15089       ;;
15090     haiku*)
15091       # PIC is the default for Haiku.
15092       # The "-static" flag exists, but is broken.
15093       lt_prog_compiler_static_CXX=
15094       ;;
15095     interix[3-9]*)
15096       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15097       # Instead, we relocate shared libraries at runtime.
15098       ;;
15099     sysv4*MP*)
15100       if test -d /usr/nec; then
15101         lt_prog_compiler_pic_CXX=-Kconform_pic
15102       fi
15103       ;;
15104     hpux*)
15105       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15106       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15107       # sets the default TLS model and affects inlining.
15108       case $host_cpu in
15109       hppa*64*)
15110         ;;
15111       *)
15112         lt_prog_compiler_pic_CXX='-fPIC'
15113         ;;
15114       esac
15115       ;;
15116     *qnx* | *nto*)
15117       # QNX uses GNU C++, but need to define -shared option too, otherwise
15118       # it will coredump.
15119       lt_prog_compiler_pic_CXX='-fPIC -shared'
15120       ;;
15121     *)
15122       lt_prog_compiler_pic_CXX='-fPIC'
15123       ;;
15124     esac
15125   else
15126     case $host_os in
15127       aix[4-9]*)
15128         # All AIX code is PIC.
15129         if test "$host_cpu" = ia64; then
15130           # AIX 5 now supports IA64 processor
15131           lt_prog_compiler_static_CXX='-Bstatic'
15132         else
15133           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15134         fi
15135         ;;
15136       chorus*)
15137         case $cc_basename in
15138         cxch68*)
15139           # Green Hills C++ Compiler
15140           # _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"
15141           ;;
15142         esac
15143         ;;
15144       mingw* | cygwin* | os2* | pw32* | cegcc*)
15145         # This hack is so that the source file can tell whether it is being
15146         # built for inclusion in a dll (and should export symbols for example).
15147         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15148         ;;
15149       dgux*)
15150         case $cc_basename in
15151           ec++*)
15152             lt_prog_compiler_pic_CXX='-KPIC'
15153             ;;
15154           ghcx*)
15155             # Green Hills C++ Compiler
15156             lt_prog_compiler_pic_CXX='-pic'
15157             ;;
15158           *)
15159             ;;
15160         esac
15161         ;;
15162       freebsd* | dragonfly*)
15163         # FreeBSD uses GNU C++
15164         ;;
15165       hpux9* | hpux10* | hpux11*)
15166         case $cc_basename in
15167           CC*)
15168             lt_prog_compiler_wl_CXX='-Wl,'
15169             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15170             if test "$host_cpu" != ia64; then
15171               lt_prog_compiler_pic_CXX='+Z'
15172             fi
15173             ;;
15174           aCC*)
15175             lt_prog_compiler_wl_CXX='-Wl,'
15176             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15177             case $host_cpu in
15178             hppa*64*|ia64*)
15179               # +Z the default
15180               ;;
15181             *)
15182               lt_prog_compiler_pic_CXX='+Z'
15183               ;;
15184             esac
15185             ;;
15186           *)
15187             ;;
15188         esac
15189         ;;
15190       interix*)
15191         # This is c89, which is MS Visual C++ (no shared libs)
15192         # Anyone wants to do a port?
15193         ;;
15194       irix5* | irix6* | nonstopux*)
15195         case $cc_basename in
15196           CC*)
15197             lt_prog_compiler_wl_CXX='-Wl,'
15198             lt_prog_compiler_static_CXX='-non_shared'
15199             # CC pic flag -KPIC is the default.
15200             ;;
15201           *)
15202             ;;
15203         esac
15204         ;;
15205       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15206         case $cc_basename in
15207           KCC*)
15208             # KAI C++ Compiler
15209             lt_prog_compiler_wl_CXX='--backend -Wl,'
15210             lt_prog_compiler_pic_CXX='-fPIC'
15211             ;;
15212           ecpc* )
15213             # old Intel C++ for x86_64 which still supported -KPIC.
15214             lt_prog_compiler_wl_CXX='-Wl,'
15215             lt_prog_compiler_pic_CXX='-KPIC'
15216             lt_prog_compiler_static_CXX='-static'
15217             ;;
15218           icpc* )
15219             # Intel C++, used to be incompatible with GCC.
15220             # ICC 10 doesn't accept -KPIC any more.
15221             lt_prog_compiler_wl_CXX='-Wl,'
15222             lt_prog_compiler_pic_CXX='-fPIC'
15223             lt_prog_compiler_static_CXX='-static'
15224             ;;
15225           pgCC* | pgcpp*)
15226             # Portland Group C++ compiler
15227             lt_prog_compiler_wl_CXX='-Wl,'
15228             lt_prog_compiler_pic_CXX='-fpic'
15229             lt_prog_compiler_static_CXX='-Bstatic'
15230             ;;
15231           cxx*)
15232             # Compaq C++
15233             # Make sure the PIC flag is empty.  It appears that all Alpha
15234             # Linux and Compaq Tru64 Unix objects are PIC.
15235             lt_prog_compiler_pic_CXX=
15236             lt_prog_compiler_static_CXX='-non_shared'
15237             ;;
15238           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15239             # IBM XL 8.0, 9.0 on PPC and BlueGene
15240             lt_prog_compiler_wl_CXX='-Wl,'
15241             lt_prog_compiler_pic_CXX='-qpic'
15242             lt_prog_compiler_static_CXX='-qstaticlink'
15243             ;;
15244           *)
15245             case `$CC -V 2>&1 | sed 5q` in
15246             *Sun\ C*)
15247               # Sun C++ 5.9
15248               lt_prog_compiler_pic_CXX='-KPIC'
15249               lt_prog_compiler_static_CXX='-Bstatic'
15250               lt_prog_compiler_wl_CXX='-Qoption ld '
15251               ;;
15252             esac
15253             ;;
15254         esac
15255         ;;
15256       lynxos*)
15257         ;;
15258       m88k*)
15259         ;;
15260       mvs*)
15261         case $cc_basename in
15262           cxx*)
15263             lt_prog_compiler_pic_CXX='-W c,exportall'
15264             ;;
15265           *)
15266             ;;
15267         esac
15268         ;;
15269       netbsd* | netbsdelf*-gnu)
15270         ;;
15271       *qnx* | *nto*)
15272         # QNX uses GNU C++, but need to define -shared option too, otherwise
15273         # it will coredump.
15274         lt_prog_compiler_pic_CXX='-fPIC -shared'
15275         ;;
15276       osf3* | osf4* | osf5*)
15277         case $cc_basename in
15278           KCC*)
15279             lt_prog_compiler_wl_CXX='--backend -Wl,'
15280             ;;
15281           RCC*)
15282             # Rational C++ 2.4.1
15283             lt_prog_compiler_pic_CXX='-pic'
15284             ;;
15285           cxx*)
15286             # Digital/Compaq C++
15287             lt_prog_compiler_wl_CXX='-Wl,'
15288             # Make sure the PIC flag is empty.  It appears that all Alpha
15289             # Linux and Compaq Tru64 Unix objects are PIC.
15290             lt_prog_compiler_pic_CXX=
15291             lt_prog_compiler_static_CXX='-non_shared'
15292             ;;
15293           *)
15294             ;;
15295         esac
15296         ;;
15297       psos*)
15298         ;;
15299       solaris*)
15300         case $cc_basename in
15301           CC* | sunCC*)
15302             # Sun C++ 4.2, 5.x and Centerline C++
15303             lt_prog_compiler_pic_CXX='-KPIC'
15304             lt_prog_compiler_static_CXX='-Bstatic'
15305             lt_prog_compiler_wl_CXX='-Qoption ld '
15306             ;;
15307           gcx*)
15308             # Green Hills C++ Compiler
15309             lt_prog_compiler_pic_CXX='-PIC'
15310             ;;
15311           *)
15312             ;;
15313         esac
15314         ;;
15315       sunos4*)
15316         case $cc_basename in
15317           CC*)
15318             # Sun C++ 4.x
15319             lt_prog_compiler_pic_CXX='-pic'
15320             lt_prog_compiler_static_CXX='-Bstatic'
15321             ;;
15322           lcc*)
15323             # Lucid
15324             lt_prog_compiler_pic_CXX='-pic'
15325             ;;
15326           *)
15327             ;;
15328         esac
15329         ;;
15330       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15331         case $cc_basename in
15332           CC*)
15333             lt_prog_compiler_wl_CXX='-Wl,'
15334             lt_prog_compiler_pic_CXX='-KPIC'
15335             lt_prog_compiler_static_CXX='-Bstatic'
15336             ;;
15337         esac
15338         ;;
15339       tandem*)
15340         case $cc_basename in
15341           NCC*)
15342             # NonStop-UX NCC 3.20
15343             lt_prog_compiler_pic_CXX='-KPIC'
15344             ;;
15345           *)
15346             ;;
15347         esac
15348         ;;
15349       vxworks*)
15350         ;;
15351       *)
15352         lt_prog_compiler_can_build_shared_CXX=no
15353         ;;
15354     esac
15355   fi
15356
15357 case $host_os in
15358   # For platforms which do not support PIC, -DPIC is meaningless:
15359   *djgpp*)
15360     lt_prog_compiler_pic_CXX=
15361     ;;
15362   *)
15363     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15364     ;;
15365 esac
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15369 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15373 fi
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15375 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15376 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15377
15378 #
15379 # Check to make sure the PIC flag actually works.
15380 #
15381 if test -n "$lt_prog_compiler_pic_CXX"; then
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15384 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15385   $as_echo_n "(cached) " >&6
15386 else
15387   lt_cv_prog_compiler_pic_works_CXX=no
15388    ac_outfile=conftest.$ac_objext
15389    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15390    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15391    # Insert the option either (1) after the last *FLAGS variable, or
15392    # (2) before a word containing "conftest.", or (3) at the end.
15393    # Note that $ac_compile itself does not contain backslashes and begins
15394    # with a dollar sign (not a hyphen), so the echo should work correctly.
15395    # The option is referenced via a variable to avoid confusing sed.
15396    lt_compile=`echo "$ac_compile" | $SED \
15397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399    -e 's:$: $lt_compiler_flag:'`
15400    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15401    (eval "$lt_compile" 2>conftest.err)
15402    ac_status=$?
15403    cat conftest.err >&5
15404    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405    if (exit $ac_status) && test -s "$ac_outfile"; then
15406      # The compiler can only warn and ignore the option if not recognized
15407      # So say no if there are warnings other than the usual output.
15408      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15409      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15410      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15411        lt_cv_prog_compiler_pic_works_CXX=yes
15412      fi
15413    fi
15414    $RM conftest*
15415
15416 fi
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15418 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15419
15420 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15421     case $lt_prog_compiler_pic_CXX in
15422      "" | " "*) ;;
15423      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15424      esac
15425 else
15426     lt_prog_compiler_pic_CXX=
15427      lt_prog_compiler_can_build_shared_CXX=no
15428 fi
15429
15430 fi
15431
15432
15433
15434
15435
15436 #
15437 # Check to make sure the static flag actually works.
15438 #
15439 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15441 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15442 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15443   $as_echo_n "(cached) " >&6
15444 else
15445   lt_cv_prog_compiler_static_works_CXX=no
15446    save_LDFLAGS="$LDFLAGS"
15447    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15448    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15449    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15450      # The linker can only warn and ignore the option if not recognized
15451      # So say no if there are warnings
15452      if test -s conftest.err; then
15453        # Append any errors to the config.log.
15454        cat conftest.err 1>&5
15455        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15456        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15457        if diff conftest.exp conftest.er2 >/dev/null; then
15458          lt_cv_prog_compiler_static_works_CXX=yes
15459        fi
15460      else
15461        lt_cv_prog_compiler_static_works_CXX=yes
15462      fi
15463    fi
15464    $RM -r conftest*
15465    LDFLAGS="$save_LDFLAGS"
15466
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15469 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15470
15471 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15472     :
15473 else
15474     lt_prog_compiler_static_CXX=
15475 fi
15476
15477
15478
15479
15480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15482 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15483   $as_echo_n "(cached) " >&6
15484 else
15485   lt_cv_prog_compiler_c_o_CXX=no
15486    $RM -r conftest 2>/dev/null
15487    mkdir conftest
15488    cd conftest
15489    mkdir out
15490    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15491
15492    lt_compiler_flag="-o out/conftest2.$ac_objext"
15493    # Insert the option either (1) after the last *FLAGS variable, or
15494    # (2) before a word containing "conftest.", or (3) at the end.
15495    # Note that $ac_compile itself does not contain backslashes and begins
15496    # with a dollar sign (not a hyphen), so the echo should work correctly.
15497    lt_compile=`echo "$ac_compile" | $SED \
15498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15500    -e 's:$: $lt_compiler_flag:'`
15501    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15502    (eval "$lt_compile" 2>out/conftest.err)
15503    ac_status=$?
15504    cat out/conftest.err >&5
15505    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15507    then
15508      # The compiler can only warn and ignore the option if not recognized
15509      # So say no if there are warnings
15510      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15511      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15512      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15513        lt_cv_prog_compiler_c_o_CXX=yes
15514      fi
15515    fi
15516    chmod u+w . 2>&5
15517    $RM conftest*
15518    # SGI C++ compiler will create directory out/ii_files/ for
15519    # template instantiation
15520    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15521    $RM out/* && rmdir out
15522    cd ..
15523    $RM -r conftest
15524    $RM conftest*
15525
15526 fi
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15528 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15529
15530
15531
15532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15534 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15535   $as_echo_n "(cached) " >&6
15536 else
15537   lt_cv_prog_compiler_c_o_CXX=no
15538    $RM -r conftest 2>/dev/null
15539    mkdir conftest
15540    cd conftest
15541    mkdir out
15542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15543
15544    lt_compiler_flag="-o out/conftest2.$ac_objext"
15545    # Insert the option either (1) after the last *FLAGS variable, or
15546    # (2) before a word containing "conftest.", or (3) at the end.
15547    # Note that $ac_compile itself does not contain backslashes and begins
15548    # with a dollar sign (not a hyphen), so the echo should work correctly.
15549    lt_compile=`echo "$ac_compile" | $SED \
15550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552    -e 's:$: $lt_compiler_flag:'`
15553    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15554    (eval "$lt_compile" 2>out/conftest.err)
15555    ac_status=$?
15556    cat out/conftest.err >&5
15557    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15559    then
15560      # The compiler can only warn and ignore the option if not recognized
15561      # So say no if there are warnings
15562      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15563      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15564      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15565        lt_cv_prog_compiler_c_o_CXX=yes
15566      fi
15567    fi
15568    chmod u+w . 2>&5
15569    $RM conftest*
15570    # SGI C++ compiler will create directory out/ii_files/ for
15571    # template instantiation
15572    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15573    $RM out/* && rmdir out
15574    cd ..
15575    $RM -r conftest
15576    $RM conftest*
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15580 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15581
15582
15583
15584
15585 hard_links="nottested"
15586 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15587   # do not overwrite the value of need_locks provided by the user
15588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15589 $as_echo_n "checking if we can lock with hard links... " >&6; }
15590   hard_links=yes
15591   $RM conftest*
15592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15593   touch conftest.a
15594   ln conftest.a conftest.b 2>&5 || hard_links=no
15595   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15597 $as_echo "$hard_links" >&6; }
15598   if test "$hard_links" = no; then
15599     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15600 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15601     need_locks=warn
15602   fi
15603 else
15604   need_locks=no
15605 fi
15606
15607
15608
15609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15610 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15611
15612   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15613   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15614   case $host_os in
15615   aix[4-9]*)
15616     # If we're using GNU nm, then we don't want the "-C" option.
15617     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15618     # Also, AIX nm treats weak defined symbols like other global defined
15619     # symbols, whereas GNU nm marks them as "W".
15620     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15621       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15622     else
15623       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15624     fi
15625     ;;
15626   pw32*)
15627     export_symbols_cmds_CXX="$ltdll_cmds"
15628     ;;
15629   cygwin* | mingw* | cegcc*)
15630     case $cc_basename in
15631     cl*)
15632       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15633       ;;
15634     *)
15635       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'
15636       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15637       ;;
15638     esac
15639     ;;
15640   linux* | k*bsd*-gnu | gnu*)
15641     link_all_deplibs_CXX=no
15642     ;;
15643   *)
15644     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15645     ;;
15646   esac
15647
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15649 $as_echo "$ld_shlibs_CXX" >&6; }
15650 test "$ld_shlibs_CXX" = no && can_build_shared=no
15651
15652 with_gnu_ld_CXX=$with_gnu_ld
15653
15654
15655
15656
15657
15658
15659 #
15660 # Do we need to explicitly link libc?
15661 #
15662 case "x$archive_cmds_need_lc_CXX" in
15663 x|xyes)
15664   # Assume -lc should be added
15665   archive_cmds_need_lc_CXX=yes
15666
15667   if test "$enable_shared" = yes && test "$GCC" = yes; then
15668     case $archive_cmds_CXX in
15669     *'~'*)
15670       # FIXME: we may have to deal with multi-command sequences.
15671       ;;
15672     '$CC '*)
15673       # Test whether the compiler implicitly links with -lc since on some
15674       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15675       # to ld, don't add -lc before -lgcc.
15676       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15677 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15678 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15679   $as_echo_n "(cached) " >&6
15680 else
15681   $RM conftest*
15682         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15683
15684         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15685   (eval $ac_compile) 2>&5
15686   ac_status=$?
15687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688   test $ac_status = 0; } 2>conftest.err; then
15689           soname=conftest
15690           lib=conftest
15691           libobjs=conftest.$ac_objext
15692           deplibs=
15693           wl=$lt_prog_compiler_wl_CXX
15694           pic_flag=$lt_prog_compiler_pic_CXX
15695           compiler_flags=-v
15696           linker_flags=-v
15697           verstring=
15698           output_objdir=.
15699           libname=conftest
15700           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15701           allow_undefined_flag_CXX=
15702           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15703   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15704   ac_status=$?
15705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706   test $ac_status = 0; }
15707           then
15708             lt_cv_archive_cmds_need_lc_CXX=no
15709           else
15710             lt_cv_archive_cmds_need_lc_CXX=yes
15711           fi
15712           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15713         else
15714           cat conftest.err 1>&5
15715         fi
15716         $RM conftest*
15717
15718 fi
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15720 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15721       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15722       ;;
15723     esac
15724   fi
15725   ;;
15726 esac
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15790 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15791
15792 library_names_spec=
15793 libname_spec='lib$name'
15794 soname_spec=
15795 shrext_cmds=".so"
15796 postinstall_cmds=
15797 postuninstall_cmds=
15798 finish_cmds=
15799 finish_eval=
15800 shlibpath_var=
15801 shlibpath_overrides_runpath=unknown
15802 version_type=none
15803 dynamic_linker="$host_os ld.so"
15804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15805 need_lib_prefix=unknown
15806 hardcode_into_libs=no
15807
15808 # when you set need_version to no, make sure it does not cause -set_version
15809 # flags to be left without arguments
15810 need_version=unknown
15811
15812 case $host_os in
15813 aix3*)
15814   version_type=linux # correct to gnu/linux during the next big refactor
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15816   shlibpath_var=LIBPATH
15817
15818   # AIX 3 has no versioning support, so we append a major version to the name.
15819   soname_spec='${libname}${release}${shared_ext}$major'
15820   ;;
15821
15822 aix[4-9]*)
15823   version_type=linux # correct to gnu/linux during the next big refactor
15824   need_lib_prefix=no
15825   need_version=no
15826   hardcode_into_libs=yes
15827   if test "$host_cpu" = ia64; then
15828     # AIX 5 supports IA64
15829     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15830     shlibpath_var=LD_LIBRARY_PATH
15831   else
15832     # With GCC up to 2.95.x, collect2 would create an import file
15833     # for dependence libraries.  The import file would start with
15834     # the line `#! .'.  This would cause the generated library to
15835     # depend on `.', always an invalid library.  This was fixed in
15836     # development snapshots of GCC prior to 3.0.
15837     case $host_os in
15838       aix4 | aix4.[01] | aix4.[01].*)
15839       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15840            echo ' yes '
15841            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15842         :
15843       else
15844         can_build_shared=no
15845       fi
15846       ;;
15847     esac
15848     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15849     # soname into executable. Probably we can add versioning support to
15850     # collect2, so additional links can be useful in future.
15851     if test "$aix_use_runtimelinking" = yes; then
15852       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15853       # instead of lib<name>.a to let people know that these are not
15854       # typical AIX shared libraries.
15855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856     else
15857       # We preserve .a as extension for shared libraries through AIX4.2
15858       # and later when we are not doing run time linking.
15859       library_names_spec='${libname}${release}.a $libname.a'
15860       soname_spec='${libname}${release}${shared_ext}$major'
15861     fi
15862     shlibpath_var=LIBPATH
15863   fi
15864   ;;
15865
15866 amigaos*)
15867   case $host_cpu in
15868   powerpc)
15869     # Since July 2007 AmigaOS4 officially supports .so libraries.
15870     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872     ;;
15873   m68k)
15874     library_names_spec='$libname.ixlibrary $libname.a'
15875     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15876     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15877     ;;
15878   esac
15879   ;;
15880
15881 beos*)
15882   library_names_spec='${libname}${shared_ext}'
15883   dynamic_linker="$host_os ld.so"
15884   shlibpath_var=LIBRARY_PATH
15885   ;;
15886
15887 bsdi[45]*)
15888   version_type=linux # correct to gnu/linux during the next big refactor
15889   need_version=no
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15893   shlibpath_var=LD_LIBRARY_PATH
15894   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15895   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15896   # the default ld.so.conf also contains /usr/contrib/lib and
15897   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15898   # libtool to hard-code these into programs
15899   ;;
15900
15901 cygwin* | mingw* | pw32* | cegcc*)
15902   version_type=windows
15903   shrext_cmds=".dll"
15904   need_version=no
15905   need_lib_prefix=no
15906
15907   case $GCC,$cc_basename in
15908   yes,*)
15909     # gcc
15910     library_names_spec='$libname.dll.a'
15911     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15912     postinstall_cmds='base_file=`basename \${file}`~
15913       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15914       dldir=$destdir/`dirname \$dlpath`~
15915       test -d \$dldir || mkdir -p \$dldir~
15916       $install_prog $dir/$dlname \$dldir/$dlname~
15917       chmod a+x \$dldir/$dlname~
15918       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15919         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15920       fi'
15921     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15922       dlpath=$dir/\$dldll~
15923        $RM \$dlpath'
15924     shlibpath_overrides_runpath=yes
15925
15926     case $host_os in
15927     cygwin*)
15928       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15929       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15930
15931       ;;
15932     mingw* | cegcc*)
15933       # MinGW DLLs use traditional 'lib' prefix
15934       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15935       ;;
15936     pw32*)
15937       # pw32 DLLs use 'pw' prefix rather than 'lib'
15938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15939       ;;
15940     esac
15941     dynamic_linker='Win32 ld.exe'
15942     ;;
15943
15944   *,cl*)
15945     # Native MSVC
15946     libname_spec='$name'
15947     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948     library_names_spec='${libname}.dll.lib'
15949
15950     case $build_os in
15951     mingw*)
15952       sys_lib_search_path_spec=
15953       lt_save_ifs=$IFS
15954       IFS=';'
15955       for lt_path in $LIB
15956       do
15957         IFS=$lt_save_ifs
15958         # Let DOS variable expansion print the short 8.3 style file name.
15959         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15960         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15961       done
15962       IFS=$lt_save_ifs
15963       # Convert to MSYS style.
15964       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15965       ;;
15966     cygwin*)
15967       # Convert to unix form, then to dos form, then back to unix form
15968       # but this time dos style (no spaces!) so that the unix form looks
15969       # like /cygdrive/c/PROGRA~1:/cygdr...
15970       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15971       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15972       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15973       ;;
15974     *)
15975       sys_lib_search_path_spec="$LIB"
15976       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15977         # It is most probably a Windows format PATH.
15978         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15979       else
15980         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15981       fi
15982       # FIXME: find the short name or the path components, as spaces are
15983       # common. (e.g. "Program Files" -> "PROGRA~1")
15984       ;;
15985     esac
15986
15987     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15988     postinstall_cmds='base_file=`basename \${file}`~
15989       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15990       dldir=$destdir/`dirname \$dlpath`~
15991       test -d \$dldir || mkdir -p \$dldir~
15992       $install_prog $dir/$dlname \$dldir/$dlname'
15993     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15994       dlpath=$dir/\$dldll~
15995        $RM \$dlpath'
15996     shlibpath_overrides_runpath=yes
15997     dynamic_linker='Win32 link.exe'
15998     ;;
15999
16000   *)
16001     # Assume MSVC wrapper
16002     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16003     dynamic_linker='Win32 ld.exe'
16004     ;;
16005   esac
16006   # FIXME: first we should search . and the directory the executable is in
16007   shlibpath_var=PATH
16008   ;;
16009
16010 darwin* | rhapsody*)
16011   dynamic_linker="$host_os dyld"
16012   version_type=darwin
16013   need_lib_prefix=no
16014   need_version=no
16015   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16016   soname_spec='${libname}${release}${major}$shared_ext'
16017   shlibpath_overrides_runpath=yes
16018   shlibpath_var=DYLD_LIBRARY_PATH
16019   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16020
16021   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16022   ;;
16023
16024 dgux*)
16025   version_type=linux # correct to gnu/linux during the next big refactor
16026   need_lib_prefix=no
16027   need_version=no
16028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16029   soname_spec='${libname}${release}${shared_ext}$major'
16030   shlibpath_var=LD_LIBRARY_PATH
16031   ;;
16032
16033 freebsd* | dragonfly*)
16034   # DragonFly does not have aout.  When/if they implement a new
16035   # versioning mechanism, adjust this.
16036   if test -x /usr/bin/objformat; then
16037     objformat=`/usr/bin/objformat`
16038   else
16039     case $host_os in
16040     freebsd[23].*) objformat=aout ;;
16041     *) objformat=elf ;;
16042     esac
16043   fi
16044   version_type=freebsd-$objformat
16045   case $version_type in
16046     freebsd-elf*)
16047       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16048       need_version=no
16049       need_lib_prefix=no
16050       ;;
16051     freebsd-*)
16052       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16053       need_version=yes
16054       ;;
16055   esac
16056   shlibpath_var=LD_LIBRARY_PATH
16057   case $host_os in
16058   freebsd2.*)
16059     shlibpath_overrides_runpath=yes
16060     ;;
16061   freebsd3.[01]* | freebsdelf3.[01]*)
16062     shlibpath_overrides_runpath=yes
16063     hardcode_into_libs=yes
16064     ;;
16065   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16066   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16067     shlibpath_overrides_runpath=no
16068     hardcode_into_libs=yes
16069     ;;
16070   *) # from 4.6 on, and DragonFly
16071     shlibpath_overrides_runpath=yes
16072     hardcode_into_libs=yes
16073     ;;
16074   esac
16075   ;;
16076
16077 haiku*)
16078   version_type=linux # correct to gnu/linux during the next big refactor
16079   need_lib_prefix=no
16080   need_version=no
16081   dynamic_linker="$host_os runtime_loader"
16082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16083   soname_spec='${libname}${release}${shared_ext}$major'
16084   shlibpath_var=LIBRARY_PATH
16085   shlibpath_overrides_runpath=yes
16086   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16087   hardcode_into_libs=yes
16088   ;;
16089
16090 hpux9* | hpux10* | hpux11*)
16091   # Give a soname corresponding to the major version so that dld.sl refuses to
16092   # link against other versions.
16093   version_type=sunos
16094   need_lib_prefix=no
16095   need_version=no
16096   case $host_cpu in
16097   ia64*)
16098     shrext_cmds='.so'
16099     hardcode_into_libs=yes
16100     dynamic_linker="$host_os dld.so"
16101     shlibpath_var=LD_LIBRARY_PATH
16102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104     soname_spec='${libname}${release}${shared_ext}$major'
16105     if test "X$HPUX_IA64_MODE" = X32; then
16106       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16107     else
16108       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16109     fi
16110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16111     ;;
16112   hppa*64*)
16113     shrext_cmds='.sl'
16114     hardcode_into_libs=yes
16115     dynamic_linker="$host_os dld.sl"
16116     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16117     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119     soname_spec='${libname}${release}${shared_ext}$major'
16120     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16121     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16122     ;;
16123   *)
16124     shrext_cmds='.sl'
16125     dynamic_linker="$host_os dld.sl"
16126     shlibpath_var=SHLIB_PATH
16127     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129     soname_spec='${libname}${release}${shared_ext}$major'
16130     ;;
16131   esac
16132   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16133   postinstall_cmds='chmod 555 $lib'
16134   # or fails outright, so override atomically:
16135   install_override_mode=555
16136   ;;
16137
16138 interix[3-9]*)
16139   version_type=linux # correct to gnu/linux during the next big refactor
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16145   shlibpath_var=LD_LIBRARY_PATH
16146   shlibpath_overrides_runpath=no
16147   hardcode_into_libs=yes
16148   ;;
16149
16150 irix5* | irix6* | nonstopux*)
16151   case $host_os in
16152     nonstopux*) version_type=nonstopux ;;
16153     *)
16154         if test "$lt_cv_prog_gnu_ld" = yes; then
16155                 version_type=linux # correct to gnu/linux during the next big refactor
16156         else
16157                 version_type=irix
16158         fi ;;
16159   esac
16160   need_lib_prefix=no
16161   need_version=no
16162   soname_spec='${libname}${release}${shared_ext}$major'
16163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16164   case $host_os in
16165   irix5* | nonstopux*)
16166     libsuff= shlibsuff=
16167     ;;
16168   *)
16169     case $LD in # libtool.m4 will add one of these switches to LD
16170     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16171       libsuff= shlibsuff= libmagic=32-bit;;
16172     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16173       libsuff=32 shlibsuff=N32 libmagic=N32;;
16174     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16175       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16176     *) libsuff= shlibsuff= libmagic=never-match;;
16177     esac
16178     ;;
16179   esac
16180   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16181   shlibpath_overrides_runpath=no
16182   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16183   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16184   hardcode_into_libs=yes
16185   ;;
16186
16187 # No shared lib support for Linux oldld, aout, or coff.
16188 linux*oldld* | linux*aout* | linux*coff*)
16189   dynamic_linker=no
16190   ;;
16191
16192 # This must be glibc/ELF.
16193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16194   version_type=linux # correct to gnu/linux during the next big refactor
16195   need_lib_prefix=no
16196   need_version=no
16197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198   soname_spec='${libname}${release}${shared_ext}$major'
16199   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16200   shlibpath_var=LD_LIBRARY_PATH
16201   shlibpath_overrides_runpath=no
16202
16203   # Some binutils ld are patched to set DT_RUNPATH
16204   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   lt_cv_shlibpath_overrides_runpath=no
16208     save_LDFLAGS=$LDFLAGS
16209     save_libdir=$libdir
16210     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16211          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h.  */
16214
16215 int
16216 main ()
16217 {
16218
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_cxx_try_link "$LINENO"; then :
16224   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16225   lt_cv_shlibpath_overrides_runpath=yes
16226 fi
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext \
16229     conftest$ac_exeext conftest.$ac_ext
16230     LDFLAGS=$save_LDFLAGS
16231     libdir=$save_libdir
16232
16233 fi
16234
16235   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16236
16237   # This implies no fast_install, which is unacceptable.
16238   # Some rework will be needed to allow for fast_install
16239   # before this can be enabled.
16240   hardcode_into_libs=yes
16241
16242   # Append ld.so.conf contents to the search path
16243   if test -f /etc/ld.so.conf; then
16244     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' ' '`
16245     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16246   fi
16247
16248   # We used to test for /lib/ld.so.1 and disable shared libraries on
16249   # powerpc, because MkLinux only supported shared libraries with the
16250   # GNU dynamic linker.  Since this was broken with cross compilers,
16251   # most powerpc-linux boxes support dynamic linking these days and
16252   # people can always --disable-shared, the test was removed, and we
16253   # assume the GNU/Linux dynamic linker is in use.
16254   dynamic_linker='GNU/Linux ld.so'
16255   ;;
16256
16257 netbsdelf*-gnu)
16258   version_type=linux
16259   need_lib_prefix=no
16260   need_version=no
16261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16262   soname_spec='${libname}${release}${shared_ext}$major'
16263   shlibpath_var=LD_LIBRARY_PATH
16264   shlibpath_overrides_runpath=no
16265   hardcode_into_libs=yes
16266   dynamic_linker='NetBSD ld.elf_so'
16267   ;;
16268
16269 netbsd*)
16270   version_type=sunos
16271   need_lib_prefix=no
16272   need_version=no
16273   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16275     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276     dynamic_linker='NetBSD (a.out) ld.so'
16277   else
16278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16279     soname_spec='${libname}${release}${shared_ext}$major'
16280     dynamic_linker='NetBSD ld.elf_so'
16281   fi
16282   shlibpath_var=LD_LIBRARY_PATH
16283   shlibpath_overrides_runpath=yes
16284   hardcode_into_libs=yes
16285   ;;
16286
16287 newsos6)
16288   version_type=linux # correct to gnu/linux during the next big refactor
16289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   shlibpath_overrides_runpath=yes
16292   ;;
16293
16294 *nto* | *qnx*)
16295   version_type=qnx
16296   need_lib_prefix=no
16297   need_version=no
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   shlibpath_overrides_runpath=no
16302   hardcode_into_libs=yes
16303   dynamic_linker='ldqnx.so'
16304   ;;
16305
16306 openbsd*)
16307   version_type=sunos
16308   sys_lib_dlsearch_path_spec="/usr/lib"
16309   need_lib_prefix=no
16310   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16311   case $host_os in
16312     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16313     *)                          need_version=no  ;;
16314   esac
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16319     case $host_os in
16320       openbsd2.[89] | openbsd2.[89].*)
16321         shlibpath_overrides_runpath=no
16322         ;;
16323       *)
16324         shlibpath_overrides_runpath=yes
16325         ;;
16326       esac
16327   else
16328     shlibpath_overrides_runpath=yes
16329   fi
16330   ;;
16331
16332 os2*)
16333   libname_spec='$name'
16334   shrext_cmds=".dll"
16335   need_lib_prefix=no
16336   library_names_spec='$libname${shared_ext} $libname.a'
16337   dynamic_linker='OS/2 ld.exe'
16338   shlibpath_var=LIBPATH
16339   ;;
16340
16341 osf3* | osf4* | osf5*)
16342   version_type=osf
16343   need_lib_prefix=no
16344   need_version=no
16345   soname_spec='${libname}${release}${shared_ext}$major'
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347   shlibpath_var=LD_LIBRARY_PATH
16348   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16349   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16350   ;;
16351
16352 rdos*)
16353   dynamic_linker=no
16354   ;;
16355
16356 solaris*)
16357   version_type=linux # correct to gnu/linux during the next big refactor
16358   need_lib_prefix=no
16359   need_version=no
16360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361   soname_spec='${libname}${release}${shared_ext}$major'
16362   shlibpath_var=LD_LIBRARY_PATH
16363   shlibpath_overrides_runpath=yes
16364   hardcode_into_libs=yes
16365   # ldd complains unless libraries are executable
16366   postinstall_cmds='chmod +x $lib'
16367   ;;
16368
16369 sunos4*)
16370   version_type=sunos
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   shlibpath_overrides_runpath=yes
16375   if test "$with_gnu_ld" = yes; then
16376     need_lib_prefix=no
16377   fi
16378   need_version=yes
16379   ;;
16380
16381 sysv4 | sysv4.3*)
16382   version_type=linux # correct to gnu/linux during the next big refactor
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   case $host_vendor in
16387     sni)
16388       shlibpath_overrides_runpath=no
16389       need_lib_prefix=no
16390       runpath_var=LD_RUN_PATH
16391       ;;
16392     siemens)
16393       need_lib_prefix=no
16394       ;;
16395     motorola)
16396       need_lib_prefix=no
16397       need_version=no
16398       shlibpath_overrides_runpath=no
16399       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16400       ;;
16401   esac
16402   ;;
16403
16404 sysv4*MP*)
16405   if test -d /usr/nec ;then
16406     version_type=linux # correct to gnu/linux during the next big refactor
16407     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16408     soname_spec='$libname${shared_ext}.$major'
16409     shlibpath_var=LD_LIBRARY_PATH
16410   fi
16411   ;;
16412
16413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16414   version_type=freebsd-elf
16415   need_lib_prefix=no
16416   need_version=no
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16418   soname_spec='${libname}${release}${shared_ext}$major'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   hardcode_into_libs=yes
16422   if test "$with_gnu_ld" = yes; then
16423     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16424   else
16425     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16426     case $host_os in
16427       sco3.2v5*)
16428         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16429         ;;
16430     esac
16431   fi
16432   sys_lib_dlsearch_path_spec='/usr/lib'
16433   ;;
16434
16435 tpf*)
16436   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16437   version_type=linux # correct to gnu/linux during the next big refactor
16438   need_lib_prefix=no
16439   need_version=no
16440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441   shlibpath_var=LD_LIBRARY_PATH
16442   shlibpath_overrides_runpath=no
16443   hardcode_into_libs=yes
16444   ;;
16445
16446 uts4*)
16447   version_type=linux # correct to gnu/linux during the next big refactor
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   shlibpath_var=LD_LIBRARY_PATH
16451   ;;
16452
16453 *)
16454   dynamic_linker=no
16455   ;;
16456 esac
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16458 $as_echo "$dynamic_linker" >&6; }
16459 test "$dynamic_linker" = no && can_build_shared=no
16460
16461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16462 if test "$GCC" = yes; then
16463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16464 fi
16465
16466 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16467   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16468 fi
16469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16470   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16471 fi
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16512 hardcode_action_CXX=
16513 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16514    test -n "$runpath_var_CXX" ||
16515    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16516
16517   # We can hardcode non-existent directories.
16518   if test "$hardcode_direct_CXX" != no &&
16519      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16520      # have to relink, otherwise we might link with an installed library
16521      # when we should be linking with a yet-to-be-installed one
16522      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16523      test "$hardcode_minus_L_CXX" != no; then
16524     # Linking always hardcodes the temporary library directory.
16525     hardcode_action_CXX=relink
16526   else
16527     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16528     hardcode_action_CXX=immediate
16529   fi
16530 else
16531   # We cannot hardcode anything, or else we can only hardcode existing
16532   # directories.
16533   hardcode_action_CXX=unsupported
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16536 $as_echo "$hardcode_action_CXX" >&6; }
16537
16538 if test "$hardcode_action_CXX" = relink ||
16539    test "$inherit_rpath_CXX" = yes; then
16540   # Fast installation is not supported
16541   enable_fast_install=no
16542 elif test "$shlibpath_overrides_runpath" = yes ||
16543      test "$enable_shared" = no; then
16544   # Fast installation is not necessary
16545   enable_fast_install=needless
16546 fi
16547
16548
16549
16550
16551
16552
16553
16554   fi # test -n "$compiler"
16555
16556   CC=$lt_save_CC
16557   CFLAGS=$lt_save_CFLAGS
16558   LDCXX=$LD
16559   LD=$lt_save_LD
16560   GCC=$lt_save_GCC
16561   with_gnu_ld=$lt_save_with_gnu_ld
16562   lt_cv_path_LDCXX=$lt_cv_path_LD
16563   lt_cv_path_LD=$lt_save_path_LD
16564   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16565   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16566 fi # test "$_lt_caught_CXX_error" != yes
16567
16568 ac_ext=c
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573
16574
16575 depcc="$CXX"  am_compiler_list=
16576
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16578 $as_echo_n "checking dependency style of $depcc... " >&6; }
16579 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16580   $as_echo_n "(cached) " >&6
16581 else
16582   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16583   # We make a subdir and do the tests there.  Otherwise we can end up
16584   # making bogus files that we don't know about and never remove.  For
16585   # instance it was reported that on HP-UX the gcc test will end up
16586   # making a dummy file named 'D' -- because '-MD' means "put the output
16587   # in D".
16588   rm -rf conftest.dir
16589   mkdir conftest.dir
16590   # Copy depcomp to subdir because otherwise we won't find it if we're
16591   # using a relative directory.
16592   cp "$am_depcomp" conftest.dir
16593   cd conftest.dir
16594   # We will build objects and dependencies in a subdirectory because
16595   # it helps to detect inapplicable dependency modes.  For instance
16596   # both Tru64's cc and ICC support -MD to output dependencies as a
16597   # side effect of compilation, but ICC will put the dependencies in
16598   # the current directory while Tru64 will put them in the object
16599   # directory.
16600   mkdir sub
16601
16602   am_cv_CXX_dependencies_compiler_type=none
16603   if test "$am_compiler_list" = ""; then
16604      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16605   fi
16606   am__universal=false
16607   case " $depcc " in #(
16608      *\ -arch\ *\ -arch\ *) am__universal=true ;;
16609      esac
16610
16611   for depmode in $am_compiler_list; do
16612     # Setup a source with many dependencies, because some compilers
16613     # like to wrap large dependency lists on column 80 (with \), and
16614     # we should not choose a depcomp mode which is confused by this.
16615     #
16616     # We need to recreate these files for each test, as the compiler may
16617     # overwrite some of them when testing with obscure command lines.
16618     # This happens at least with the AIX C compiler.
16619     : > sub/conftest.c
16620     for i in 1 2 3 4 5 6; do
16621       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16622       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16623       # Solaris 10 /bin/sh.
16624       echo '/* dummy */' > sub/conftst$i.h
16625     done
16626     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16627
16628     # We check with '-c' and '-o' for the sake of the "dashmstdout"
16629     # mode.  It turns out that the SunPro C++ compiler does not properly
16630     # handle '-M -o', and we need to detect this.  Also, some Intel
16631     # versions had trouble with output in subdirs.
16632     am__obj=sub/conftest.${OBJEXT-o}
16633     am__minus_obj="-o $am__obj"
16634     case $depmode in
16635     gcc)
16636       # This depmode causes a compiler race in universal mode.
16637       test "$am__universal" = false || continue
16638       ;;
16639     nosideeffect)
16640       # After this tag, mechanisms are not by side-effect, so they'll
16641       # only be used when explicitly requested.
16642       if test "x$enable_dependency_tracking" = xyes; then
16643         continue
16644       else
16645         break
16646       fi
16647       ;;
16648     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16649       # This compiler won't grok '-c -o', but also, the minuso test has
16650       # not run yet.  These depmodes are late enough in the game, and
16651       # so weak that their functioning should not be impacted.
16652       am__obj=conftest.${OBJEXT-o}
16653       am__minus_obj=
16654       ;;
16655     none) break ;;
16656     esac
16657     if depmode=$depmode \
16658        source=sub/conftest.c object=$am__obj \
16659        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16660        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16661          >/dev/null 2>conftest.err &&
16662        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16663        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16664        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16665        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16666       # icc doesn't choke on unknown options, it will just issue warnings
16667       # or remarks (even with -Werror).  So we grep stderr for any message
16668       # that says an option was ignored or not supported.
16669       # When given -MP, icc 7.0 and 7.1 complain thusly:
16670       #   icc: Command line warning: ignoring option '-M'; no argument required
16671       # The diagnosis changed in icc 8.0:
16672       #   icc: Command line remark: option '-MP' not supported
16673       if (grep 'ignoring option' conftest.err ||
16674           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16675         am_cv_CXX_dependencies_compiler_type=$depmode
16676         break
16677       fi
16678     fi
16679   done
16680
16681   cd ..
16682   rm -rf conftest.dir
16683 else
16684   am_cv_CXX_dependencies_compiler_type=none
16685 fi
16686
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16689 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16690 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16691
16692  if
16693   test "x$enable_dependency_tracking" != xno \
16694   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16695   am__fastdepCXX_TRUE=
16696   am__fastdepCXX_FALSE='#'
16697 else
16698   am__fastdepCXX_TRUE='#'
16699   am__fastdepCXX_FALSE=
16700 fi
16701
16702
16703 ac_ext=c
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
16710 # On Suns, sometimes $CPP names a directory.
16711 if test -n "$CPP" && test -d "$CPP"; then
16712   CPP=
16713 fi
16714 if test -z "$CPP"; then
16715   if ${ac_cv_prog_CPP+:} false; then :
16716   $as_echo_n "(cached) " >&6
16717 else
16718       # Double quotes because CPP needs to be expanded
16719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16720     do
16721       ac_preproc_ok=false
16722 for ac_c_preproc_warn_flag in '' yes
16723 do
16724   # Use a header file that comes with gcc, so configuring glibc
16725   # with a fresh cross-compiler works.
16726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16727   # <limits.h> exists even on freestanding compilers.
16728   # On the NeXT, cc -E runs the code through the compiler's parser,
16729   # not just through cpp. "Syntax error" is here to catch this case.
16730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h.  */
16732 #ifdef __STDC__
16733 # include <limits.h>
16734 #else
16735 # include <assert.h>
16736 #endif
16737                      Syntax error
16738 _ACEOF
16739 if ac_fn_c_try_cpp "$LINENO"; then :
16740
16741 else
16742   # Broken: fails on valid input.
16743 continue
16744 fi
16745 rm -f conftest.err conftest.i conftest.$ac_ext
16746
16747   # OK, works on sane cases.  Now check whether nonexistent headers
16748   # can be detected and how.
16749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h.  */
16751 #include <ac_nonexistent.h>
16752 _ACEOF
16753 if ac_fn_c_try_cpp "$LINENO"; then :
16754   # Broken: success on invalid input.
16755 continue
16756 else
16757   # Passes both tests.
16758 ac_preproc_ok=:
16759 break
16760 fi
16761 rm -f conftest.err conftest.i conftest.$ac_ext
16762
16763 done
16764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16765 rm -f conftest.i conftest.err conftest.$ac_ext
16766 if $ac_preproc_ok; then :
16767   break
16768 fi
16769
16770     done
16771     ac_cv_prog_CPP=$CPP
16772
16773 fi
16774   CPP=$ac_cv_prog_CPP
16775 else
16776   ac_cv_prog_CPP=$CPP
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16779 $as_echo "$CPP" >&6; }
16780 ac_preproc_ok=false
16781 for ac_c_preproc_warn_flag in '' yes
16782 do
16783   # Use a header file that comes with gcc, so configuring glibc
16784   # with a fresh cross-compiler works.
16785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786   # <limits.h> exists even on freestanding compilers.
16787   # On the NeXT, cc -E runs the code through the compiler's parser,
16788   # not just through cpp. "Syntax error" is here to catch this case.
16789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h.  */
16791 #ifdef __STDC__
16792 # include <limits.h>
16793 #else
16794 # include <assert.h>
16795 #endif
16796                      Syntax error
16797 _ACEOF
16798 if ac_fn_c_try_cpp "$LINENO"; then :
16799
16800 else
16801   # Broken: fails on valid input.
16802 continue
16803 fi
16804 rm -f conftest.err conftest.i conftest.$ac_ext
16805
16806   # OK, works on sane cases.  Now check whether nonexistent headers
16807   # can be detected and how.
16808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h.  */
16810 #include <ac_nonexistent.h>
16811 _ACEOF
16812 if ac_fn_c_try_cpp "$LINENO"; then :
16813   # Broken: success on invalid input.
16814 continue
16815 else
16816   # Passes both tests.
16817 ac_preproc_ok=:
16818 break
16819 fi
16820 rm -f conftest.err conftest.i conftest.$ac_ext
16821
16822 done
16823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16824 rm -f conftest.i conftest.err conftest.$ac_ext
16825 if $ac_preproc_ok; then :
16826
16827 else
16828   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16830 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16831 See \`config.log' for more details" "$LINENO" 5; }
16832 fi
16833
16834 ac_ext=c
16835 ac_cpp='$CPP $CPPFLAGS'
16836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16839
16840
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16842 $as_echo_n "checking whether ln -s works... " >&6; }
16843 LN_S=$as_ln_s
16844 if test "$LN_S" = "ln -s"; then
16845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16846 $as_echo "yes" >&6; }
16847 else
16848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16849 $as_echo "no, using $LN_S" >&6; }
16850 fi
16851
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16854 set x ${MAKE-make}
16855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16856 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16857   $as_echo_n "(cached) " >&6
16858 else
16859   cat >conftest.make <<\_ACEOF
16860 SHELL = /bin/sh
16861 all:
16862         @echo '@@@%%%=$(MAKE)=@@@%%%'
16863 _ACEOF
16864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16866   *@@@%%%=?*=@@@%%%*)
16867     eval ac_cv_prog_make_${ac_make}_set=yes;;
16868   *)
16869     eval ac_cv_prog_make_${ac_make}_set=no;;
16870 esac
16871 rm -f conftest.make
16872 fi
16873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876   SET_MAKE=
16877 else
16878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16880   SET_MAKE="MAKE=${MAKE-make}"
16881 fi
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16893         if test -n "$ac_tool_prefix"; then
16894   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16895 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16897 $as_echo_n "checking for $ac_word... " >&6; }
16898 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16899   $as_echo_n "(cached) " >&6
16900 else
16901   case $PKG_CONFIG in
16902   [\\/]* | ?:[\\/]*)
16903   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16904   ;;
16905   *)
16906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16907 for as_dir in $PATH
16908 do
16909   IFS=$as_save_IFS
16910   test -z "$as_dir" && as_dir=.
16911     for ac_exec_ext in '' $ac_executable_extensions; do
16912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16913     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16915     break 2
16916   fi
16917 done
16918   done
16919 IFS=$as_save_IFS
16920
16921   ;;
16922 esac
16923 fi
16924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16925 if test -n "$PKG_CONFIG"; then
16926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16927 $as_echo "$PKG_CONFIG" >&6; }
16928 else
16929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930 $as_echo "no" >&6; }
16931 fi
16932
16933
16934 fi
16935 if test -z "$ac_cv_path_PKG_CONFIG"; then
16936   ac_pt_PKG_CONFIG=$PKG_CONFIG
16937   # Extract the first word of "pkg-config", so it can be a program name with args.
16938 set dummy pkg-config; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16942   $as_echo_n "(cached) " >&6
16943 else
16944   case $ac_pt_PKG_CONFIG in
16945   [\\/]* | ?:[\\/]*)
16946   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16947   ;;
16948   *)
16949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16950 for as_dir in $PATH
16951 do
16952   IFS=$as_save_IFS
16953   test -z "$as_dir" && as_dir=.
16954     for ac_exec_ext in '' $ac_executable_extensions; do
16955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16956     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16958     break 2
16959   fi
16960 done
16961   done
16962 IFS=$as_save_IFS
16963
16964   ;;
16965 esac
16966 fi
16967 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16968 if test -n "$ac_pt_PKG_CONFIG"; then
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16970 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16971 else
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16974 fi
16975
16976   if test "x$ac_pt_PKG_CONFIG" = x; then
16977     PKG_CONFIG=""
16978   else
16979     case $cross_compiling:$ac_tool_warned in
16980 yes:)
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16983 ac_tool_warned=yes ;;
16984 esac
16985     PKG_CONFIG=$ac_pt_PKG_CONFIG
16986   fi
16987 else
16988   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16989 fi
16990
16991 fi
16992 if test -n "$PKG_CONFIG"; then
16993         _pkg_min_version=0.20
16994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16995 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16996         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16997                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
16999         else
17000                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001 $as_echo "no" >&6; }
17002                 PKG_CONFIG=""
17003         fi
17004 fi
17005
17006 if test "x$request_python_bindings" != "xno"; then
17007
17008
17009
17010
17011
17012
17013         if test -n "$PYTHON"; then
17014       # If the user set $PYTHON, use it and don't search something else.
17015       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
17016 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
17017       prog="import sys
17018 # split strings by '.' and convert to numeric.  Append some zeros
17019 # because we need at least 4 digits for the hex conversion.
17020 # map returns an iterator in Python 3.0 and a list in 2.x
17021 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17022 minverhex = 0
17023 # xrange is not present in Python 3.0 and range returns an iterator
17024 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17025 sys.exit(sys.hexversion < minverhex)"
17026   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17027    ($PYTHON -c "$prog") >&5 2>&5
17028    ac_status=$?
17029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030    (exit $ac_status); }; then :
17031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17032 $as_echo "yes" >&6; }
17033 else
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17036                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17037 fi
17038       am_display_PYTHON=$PYTHON
17039     else
17040       # Otherwise, try each interpreter until we find one that satisfies
17041       # VERSION.
17042       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
17043 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
17044 if ${am_cv_pathless_PYTHON+:} false; then :
17045   $as_echo_n "(cached) " >&6
17046 else
17047
17048         for am_cv_pathless_PYTHON in python python2 python3 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
17049           test "$am_cv_pathless_PYTHON" = none && break
17050           prog="import sys
17051 # split strings by '.' and convert to numeric.  Append some zeros
17052 # because we need at least 4 digits for the hex conversion.
17053 # map returns an iterator in Python 3.0 and a list in 2.x
17054 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17055 minverhex = 0
17056 # xrange is not present in Python 3.0 and range returns an iterator
17057 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17058 sys.exit(sys.hexversion < minverhex)"
17059   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17060    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17061    ac_status=$?
17062    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063    (exit $ac_status); }; then :
17064   break
17065 fi
17066         done
17067 fi
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17069 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17070       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17071       if test "$am_cv_pathless_PYTHON" = none; then
17072         PYTHON=:
17073       else
17074         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17075 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17077 $as_echo_n "checking for $ac_word... " >&6; }
17078 if ${ac_cv_path_PYTHON+:} false; then :
17079   $as_echo_n "(cached) " >&6
17080 else
17081   case $PYTHON in
17082   [\\/]* | ?:[\\/]*)
17083   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17084   ;;
17085   *)
17086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087 for as_dir in $PATH
17088 do
17089   IFS=$as_save_IFS
17090   test -z "$as_dir" && as_dir=.
17091     for ac_exec_ext in '' $ac_executable_extensions; do
17092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17093     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17095     break 2
17096   fi
17097 done
17098   done
17099 IFS=$as_save_IFS
17100
17101   ;;
17102 esac
17103 fi
17104 PYTHON=$ac_cv_path_PYTHON
17105 if test -n "$PYTHON"; then
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17107 $as_echo "$PYTHON" >&6; }
17108 else
17109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110 $as_echo "no" >&6; }
17111 fi
17112
17113
17114       fi
17115       am_display_PYTHON=$am_cv_pathless_PYTHON
17116     fi
17117
17118
17119   if test "$PYTHON" = :; then
17120       :
17121   else
17122
17123
17124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17125 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17126 if ${am_cv_python_version+:} false; then :
17127   $as_echo_n "(cached) " >&6
17128 else
17129   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17130 fi
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17132 $as_echo "$am_cv_python_version" >&6; }
17133   PYTHON_VERSION=$am_cv_python_version
17134
17135
17136
17137   PYTHON_PREFIX='${prefix}'
17138
17139   PYTHON_EXEC_PREFIX='${exec_prefix}'
17140
17141
17142
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17144 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17145 if ${am_cv_python_platform+:} false; then :
17146   $as_echo_n "(cached) " >&6
17147 else
17148   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17149 fi
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17151 $as_echo "$am_cv_python_platform" >&6; }
17152   PYTHON_PLATFORM=$am_cv_python_platform
17153
17154
17155   # Just factor out some code duplication.
17156   am_python_setup_sysconfig="\
17157 import sys
17158 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17159 # with python 3.x.  See automake bug#10227.
17160 try:
17161     import sysconfig
17162 except ImportError:
17163     can_use_sysconfig = 0
17164 else:
17165     can_use_sysconfig = 1
17166 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17167 # <https://github.com/pypa/virtualenv/issues/118>
17168 try:
17169     from platform import python_implementation
17170     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17171         can_use_sysconfig = 0
17172 except ImportError:
17173     pass"
17174
17175
17176             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17177 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17178 if ${am_cv_python_pythondir+:} false; then :
17179   $as_echo_n "(cached) " >&6
17180 else
17181   if test "x$prefix" = xNONE
17182      then
17183        am_py_prefix=$ac_default_prefix
17184      else
17185        am_py_prefix=$prefix
17186      fi
17187      am_cv_python_pythondir=`$PYTHON -c "
17188 $am_python_setup_sysconfig
17189 if can_use_sysconfig:
17190     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17191 else:
17192     from distutils import sysconfig
17193     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17194 sys.stdout.write(sitedir)"`
17195      case $am_cv_python_pythondir in
17196      $am_py_prefix*)
17197        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17198        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17199        ;;
17200      *)
17201        case $am_py_prefix in
17202          /usr|/System*) ;;
17203          *)
17204           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17205           ;;
17206        esac
17207        ;;
17208      esac
17209
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17212 $as_echo "$am_cv_python_pythondir" >&6; }
17213   pythondir=$am_cv_python_pythondir
17214
17215
17216
17217   pkgpythondir=\${pythondir}/$PACKAGE
17218
17219
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17221 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17222 if ${am_cv_python_pyexecdir+:} false; then :
17223   $as_echo_n "(cached) " >&6
17224 else
17225   if test "x$exec_prefix" = xNONE
17226      then
17227        am_py_exec_prefix=$am_py_prefix
17228      else
17229        am_py_exec_prefix=$exec_prefix
17230      fi
17231      am_cv_python_pyexecdir=`$PYTHON -c "
17232 $am_python_setup_sysconfig
17233 if can_use_sysconfig:
17234     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17235 else:
17236     from distutils import sysconfig
17237     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17238 sys.stdout.write(sitedir)"`
17239      case $am_cv_python_pyexecdir in
17240      $am_py_exec_prefix*)
17241        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17242        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17243        ;;
17244      *)
17245        case $am_py_exec_prefix in
17246          /usr|/System*) ;;
17247          *)
17248            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17249            ;;
17250        esac
17251        ;;
17252      esac
17253
17254 fi
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17256 $as_echo "$am_cv_python_pyexecdir" >&6; }
17257   pyexecdir=$am_cv_python_pyexecdir
17258
17259
17260
17261   pkgpyexecdir=\${pyexecdir}/$PACKAGE
17262
17263
17264
17265   fi
17266
17267
17268
17269         #
17270         # Allow the use of a (user set) custom python version
17271         #
17272
17273
17274         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17275 set dummy python$PYTHON_VERSION; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_PYTHON+:} false; then :
17279   $as_echo_n "(cached) " >&6
17280 else
17281   case $PYTHON in
17282   [\\/]* | ?:[\\/]*)
17283   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17284   ;;
17285   *)
17286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17287 for as_dir in $PATH
17288 do
17289   IFS=$as_save_IFS
17290   test -z "$as_dir" && as_dir=.
17291     for ac_exec_ext in '' $ac_executable_extensions; do
17292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17293     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17295     break 2
17296   fi
17297 done
17298   done
17299 IFS=$as_save_IFS
17300
17301   ;;
17302 esac
17303 fi
17304 PYTHON=$ac_cv_path_PYTHON
17305 if test -n "$PYTHON"; then
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17307 $as_echo "$PYTHON" >&6; }
17308 else
17309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17311 fi
17312
17313
17314         if test -z "$PYTHON"; then
17315            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&5
17316 $as_echo "$as_me: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&2;}
17317            PYTHON_VERSION=""
17318            no_python_devel=yes
17319         fi
17320
17321 if test -z "$no_python_devel"; then :
17322
17323         #
17324         # Check for a version of Python >= 2.1.0
17325         #
17326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
17327 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
17328         ac_supports_python_ver=`$PYTHON -c "import sys; \
17329                 ver = sys.version.split ()[0]; \
17330                 print (ver >= '2.1.0')"`
17331         if test "$ac_supports_python_ver" != "True"; then
17332                 if test -z "$PYTHON_NOVERSIONCHECK"; then
17333                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17336 This version of the AC_PYTHON_DEVEL macro
17337 doesn't work properly with versions of Python before
17338 2.1.0. You may need to re-run configure, setting the
17339 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
17340 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
17341 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
17342 to something else than an empty string.
17343 " >&5
17344 $as_echo "$as_me: WARNING:
17345 This version of the AC_PYTHON_DEVEL macro
17346 doesn't work properly with versions of Python before
17347 2.1.0. You may need to re-run configure, setting the
17348 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
17349 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
17350 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
17351 to something else than an empty string.
17352 " >&2;}
17353                         no_python_devel=yes
17354                 else
17355                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
17356 $as_echo "skip at user request" >&6; }
17357                 fi
17358         else
17359                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361         fi
17362
17363 fi # AS_IF
17364
17365 if test -z "$no_python_devel"; then :
17366
17367         #
17368         # if the macro parameter ``version'' is set, honour it
17369         #
17370         if test -n ">= '2.7'"; then
17371                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
17372 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
17373                 ac_supports_python_ver=`$PYTHON -c "import sys; \
17374                         ver = sys.version.split ()[0]; \
17375                         print (ver >= '2.7')"`
17376                 if test "$ac_supports_python_ver" = "True"; then
17377                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378 $as_echo "yes" >&6; }
17379                 else
17380                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17382                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package requires Python >= '2.7'.
17383 If you have it installed, but it isn't the default Python
17384 interpreter in your system path, please pass the PYTHON_VERSION
17385 variable to configure. See \`\`configure --help'' for reference.
17386 " >&5
17387 $as_echo "$as_me: WARNING: this package requires Python >= '2.7'.
17388 If you have it installed, but it isn't the default Python
17389 interpreter in your system path, please pass the PYTHON_VERSION
17390 variable to configure. See \`\`configure --help'' for reference.
17391 " >&2;}
17392                         PYTHON_VERSION=""
17393                         no_python_devel=yes
17394                 fi
17395         fi
17396
17397 fi # AS_IF
17398
17399 if test -z "$no_python_devel"; then :
17400
17401         #
17402         # Check if you have distutils, else fail
17403         #
17404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17405 $as_echo_n "checking for the distutils Python package... " >&6; }
17406         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
17407         if test -z "$ac_distutils_result"; then
17408                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409 $as_echo "yes" >&6; }
17410         else
17411                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17413                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot import Python module \"distutils\".
17414 Please check your Python installation. The error was:
17415 $ac_distutils_result" >&5
17416 $as_echo "$as_me: WARNING: cannot import Python module \"distutils\".
17417 Please check your Python installation. The error was:
17418 $ac_distutils_result" >&2;}
17419                 PYTHON_VERSION=""
17420                 no_python_devel=yes
17421         fi
17422
17423 fi # AS_IF
17424
17425 if test -z "$no_python_devel"; then :
17426
17427         #
17428         # Check for Python include path
17429         #
17430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17431 $as_echo_n "checking for Python include path... " >&6; }
17432         if test -z "$PYTHON_CPPFLAGS"; then
17433                 python_path=`$PYTHON -c "import distutils.sysconfig; \
17434                         print (distutils.sysconfig.get_python_inc ());"`
17435                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
17436                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
17437                 if test -n "${python_path}"; then
17438                         if test "${plat_python_path}" != "${python_path}"; then
17439                                 python_path="-I$python_path -I$plat_python_path"
17440                         else
17441                                 python_path="-I$python_path"
17442                         fi
17443                 fi
17444                 PYTHON_CPPFLAGS=$python_path
17445         fi
17446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17447 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17448
17449
17450         #
17451         # Check for Python library path
17452         #
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17454 $as_echo_n "checking for Python library path... " >&6; }
17455         if test -z "$PYTHON_LDFLAGS"; then
17456                 # (makes two attempts to ensure we've got a version number
17457                 # from the interpreter)
17458                 ac_python_version=`cat<<EOD | $PYTHON -
17459
17460 # join all versioning strings, on some systems
17461 # major/minor numbers could be in different list elements
17462 from distutils.sysconfig import *
17463 e = get_config_var('VERSION')
17464 if e is not None:
17465         print(e)
17466 EOD`
17467
17468                 if test -z "$ac_python_version"; then
17469                         if test -n "$PYTHON_VERSION"; then
17470                                 ac_python_version=$PYTHON_VERSION
17471                         else
17472                                 ac_python_version=`$PYTHON -c "import sys; \
17473                                         print (sys.version[:3])"`
17474                         fi
17475                 fi
17476
17477                 # Make the versioning information available to the compiler
17478
17479 cat >>confdefs.h <<_ACEOF
17480 #define HAVE_PYTHON "$ac_python_version"
17481 _ACEOF
17482
17483
17484                 # First, the library directory:
17485                 ac_python_libdir=`cat<<EOD | $PYTHON -
17486
17487 # There should be only one
17488 import distutils.sysconfig
17489 e = distutils.sysconfig.get_config_var('LIBDIR')
17490 if e is not None:
17491         print (e)
17492 EOD`
17493
17494                 # Now, for the library:
17495                 ac_python_library=`cat<<EOD | $PYTHON -
17496
17497 import distutils.sysconfig
17498 c = distutils.sysconfig.get_config_vars()
17499 if 'LDVERSION' in c:
17500         print ('python'+c['LDVERSION'])
17501 else:
17502         print ('python'+c['VERSION'])
17503 EOD`
17504
17505                 # This small piece shamelessly adapted from PostgreSQL python macro;
17506                 # credits goes to momjian, I think. I'd like to put the right name
17507                 # in the credits, if someone can point me in the right direction... ?
17508                 #
17509                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
17510                 then
17511                         # use the official shared library
17512                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
17513                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
17514                 else
17515                         # old way: use libpython from python_configdir
17516                         ac_python_libdir=`$PYTHON -c \
17517                           "from distutils.sysconfig import get_python_lib as f; \
17518                           import os; \
17519                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
17520                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
17521                 fi
17522
17523                 if test -z "PYTHON_LDFLAGS"; then
17524                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17525   Cannot determine location of your Python DSO. Please check it was installed with
17526   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
17527                         " >&5
17528 $as_echo "$as_me: WARNING:
17529   Cannot determine location of your Python DSO. Please check it was installed with
17530   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
17531                         " >&2;}
17532                         no_python_devel=yes
17533                 fi
17534         fi
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17536 $as_echo "$PYTHON_LDFLAGS" >&6; }
17537
17538
17539 fi # AS_IF
17540
17541 if test -z "$no_python_devel"; then :
17542
17543         #
17544         # Check for site packages
17545         #
17546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17547 $as_echo_n "checking for Python site-packages path... " >&6; }
17548         if test -z "$PYTHON_SITE_PKG"; then
17549                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17550                         print (distutils.sysconfig.get_python_lib(0,0));"`
17551         fi
17552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17553 $as_echo "$PYTHON_SITE_PKG" >&6; }
17554
17555
17556         #
17557         # libraries which must be linked in when embedding
17558         #
17559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
17560 $as_echo_n "checking python extra libraries... " >&6; }
17561         if test -z "$PYTHON_EXTRA_LIBS"; then
17562            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
17563                 conf = distutils.sysconfig.get_config_var; \
17564                 print (conf('LIBS'))"`
17565         fi
17566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
17567 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
17568
17569
17570         #
17571         # linking flags needed when embedding
17572         #
17573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
17574 $as_echo_n "checking python extra linking flags... " >&6; }
17575         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
17576                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
17577                         conf = distutils.sysconfig.get_config_var; \
17578                         print (conf('LINKFORSHARED'))"`
17579         fi
17580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
17581 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
17582
17583
17584         #
17585         # final check to see if everything compiles alright
17586         #
17587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17588 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17589         # save current global flags
17590         ac_save_LIBS="$LIBS"
17591         ac_save_CPPFLAGS="$CPPFLAGS"
17592         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
17593         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
17594         ac_ext=c
17595 ac_cpp='$CPP $CPPFLAGS'
17596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17599
17600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h.  */
17602
17603                 #include <Python.h>
17604 int
17605 main ()
17606 {
17607 Py_Initialize();
17608   ;
17609   return 0;
17610 }
17611
17612 _ACEOF
17613 if ac_fn_c_try_link "$LINENO"; then :
17614   pythonexists=yes
17615 else
17616   pythonexists=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext \
17619     conftest$ac_exeext conftest.$ac_ext
17620         ac_ext=c
17621 ac_cpp='$CPP $CPPFLAGS'
17622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625
17626         # turn back to default flags
17627         CPPFLAGS="$ac_save_CPPFLAGS"
17628         LIBS="$ac_save_LIBS"
17629
17630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17631 $as_echo "$pythonexists" >&6; }
17632
17633         if test ! "x$pythonexists" = "xyes"; then
17634            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17635   Could not link test program to Python. Maybe the main Python library has been
17636   installed in some non-standard library path. If so, pass it to configure,
17637   via the LDFLAGS environment variable.
17638   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17639   ============================================================================
17640    ERROR!
17641    You probably have to install the development version of the Python package
17642    for your distribution.  The exact name of this package varies among them.
17643   ============================================================================
17644            " >&5
17645 $as_echo "$as_me: WARNING:
17646   Could not link test program to Python. Maybe the main Python library has been
17647   installed in some non-standard library path. If so, pass it to configure,
17648   via the LDFLAGS environment variable.
17649   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17650   ============================================================================
17651    ERROR!
17652    You probably have to install the development version of the Python package
17653    for your distribution.  The exact name of this package varies among them.
17654   ============================================================================
17655            " >&2;}
17656           PYTHON_VERSION=""
17657           no_python_devel=yes
17658         fi
17659
17660         #
17661         # all done!
17662         #
17663
17664 fi # AS_IF
17665
17666 if test -z "$no_python_devel"; then :
17667   have_python_dev=yes
17668 else
17669   have_python_dev=no
17670 fi
17671
17672
17673 fi
17674
17675 if test "x${cython_path}" = "x"; then
17676   for ac_prog in cython.py cython
17677 do
17678   # Extract the first word of "$ac_prog", so it can be a program name with args.
17679 set dummy $ac_prog; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_prog_CYTHON+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   if test -n "$CYTHON"; then
17686   ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
17687 else
17688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17689 for as_dir in $PATH
17690 do
17691   IFS=$as_save_IFS
17692   test -z "$as_dir" && as_dir=.
17693     for ac_exec_ext in '' $ac_executable_extensions; do
17694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17695     ac_cv_prog_CYTHON="$ac_prog"
17696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17697     break 2
17698   fi
17699 done
17700   done
17701 IFS=$as_save_IFS
17702
17703 fi
17704 fi
17705 CYTHON=$ac_cv_prog_CYTHON
17706 if test -n "$CYTHON"; then
17707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
17708 $as_echo "$CYTHON" >&6; }
17709 else
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17711 $as_echo "no" >&6; }
17712 fi
17713
17714
17715   test -n "$CYTHON" && break
17716 done
17717
17718 else
17719   CYTHON=${cython_path}
17720
17721 fi
17722
17723 #
17724 # If we're running GCC or clang define _U_ to be "__attribute__((unused))"
17725 # so we can use _U_ to flag unused function parameters and not get warnings
17726 # about them. Otherwise, define _U_ to be an empty string so that _U_ used
17727 # to flag an unused function parameters will compile with other compilers.
17728 #
17729 # XXX - similar hints for other compilers?
17730 #
17731 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
17732
17733 $as_echo "#define _U_ __attribute__((unused))" >>confdefs.h
17734
17735 else
17736
17737 $as_echo "#define _U_ /**/" >>confdefs.h
17738
17739 fi
17740
17741     ax_cxx_compile_cxx11_required=falsednl
17742   ac_ext=cpp
17743 ac_cpp='$CXXCPP $CPPFLAGS'
17744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17747   ac_success=no
17748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17749 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17750 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h.  */
17755
17756   template <typename T>
17757     struct check
17758     {
17759       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17760     };
17761
17762     typedef check<check<bool>> right_angle_brackets;
17763
17764     int a;
17765     decltype(a) b;
17766
17767     typedef check<int> check_type;
17768     check_type c;
17769     check_type&& cr = static_cast<check_type&&>(c);
17770
17771     auto d = a;
17772
17773 _ACEOF
17774 if ac_fn_cxx_try_compile "$LINENO"; then :
17775   ax_cv_cxx_compile_cxx11=yes
17776 else
17777   ax_cv_cxx_compile_cxx11=no
17778 fi
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780 fi
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17782 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17783   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17784     ac_success=yes
17785   fi
17786
17787
17788
17789     if test x$ac_success = xno; then
17790     for switch in -std=c++11 -std=c++0x; do
17791       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17792       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17793 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17794 if eval \${$cachevar+:} false; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   ac_save_CXXFLAGS="$CXXFLAGS"
17798          CXXFLAGS="$CXXFLAGS $switch"
17799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h.  */
17801
17802   template <typename T>
17803     struct check
17804     {
17805       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17806     };
17807
17808     typedef check<check<bool>> right_angle_brackets;
17809
17810     int a;
17811     decltype(a) b;
17812
17813     typedef check<int> check_type;
17814     check_type c;
17815     check_type&& cr = static_cast<check_type&&>(c);
17816
17817     auto d = a;
17818
17819 _ACEOF
17820 if ac_fn_cxx_try_compile "$LINENO"; then :
17821   eval $cachevar=yes
17822 else
17823   eval $cachevar=no
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826          CXXFLAGS="$ac_save_CXXFLAGS"
17827 fi
17828 eval ac_res=\$$cachevar
17829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17830 $as_echo "$ac_res" >&6; }
17831       if eval test x\$$cachevar = xyes; then
17832         CXXFLAGS="$CXXFLAGS $switch"
17833         ac_success=yes
17834         break
17835       fi
17836     done
17837   fi
17838   ac_ext=c
17839 ac_cpp='$CPP $CPPFLAGS'
17840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17843
17844   if test x$ax_cxx_compile_cxx11_required = xtrue; then
17845     if test x$ac_success = xno; then
17846       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17847     fi
17848   else
17849     if test x$ac_success = xno; then
17850       HAVE_CXX11=0
17851       { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17852 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17853     else
17854       HAVE_CXX11=1
17855
17856 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17857
17858     fi
17859
17860
17861   fi
17862
17863
17864 ac_ext=cpp
17865 ac_cpp='$CXXCPP $CPPFLAGS'
17866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17869
17870
17871 # Check that std::chrono::steady_clock is available. In particular,
17872 # gcc 4.6 does not have one, but has monotonic_clock which is the old
17873 # name existed in the pre-standard draft. If steady_clock is not
17874 # available, don't define HAVE_STEADY_CLOCK and replace steady_clock
17875 # with monotonic_clock.
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::chrono::steady_clock is available" >&5
17877 $as_echo_n "checking whether std::chrono::steady_clock is available... " >&6; }
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h.  */
17880
17881 #include <chrono>
17882
17883 int
17884 main ()
17885 {
17886
17887 auto tp = std::chrono::steady_clock::now();
17888
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_cxx_try_compile "$LINENO"; then :
17894
17895 $as_echo "#define HAVE_STEADY_CLOCK 1" >>confdefs.h
17896
17897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899 else
17900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17901 $as_echo "no" >&6; }
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17904
17905 # Check that std::future is available.
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
17907 $as_echo_n "checking whether std::future is available... " >&6; }
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h.  */
17910
17911 #include <vector>
17912 #include <future>
17913
17914 int
17915 main ()
17916 {
17917
17918 std::vector<std::future<int>> v;
17919
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 if ac_fn_cxx_try_compile "$LINENO"; then :
17925
17926 $as_echo "#define HAVE_STD_FUTURE 1" >>confdefs.h
17927
17928      have_std_future=yes
17929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930 $as_echo "yes" >&6; }
17931 else
17932   have_std_future=no
17933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937
17938 # Check that std::map::emplace is available for g++-4.7.
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
17940 $as_echo_n "checking whether std::map::emplace is available... " >&6; }
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h.  */
17943
17944 #include <map>
17945
17946 int
17947 main ()
17948 {
17949
17950 std::map<int, int>().emplace(1, 2);
17951
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 if ac_fn_cxx_try_compile "$LINENO"; then :
17957
17958 $as_echo "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
17959
17960      have_std_map_emplace=yes
17961      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17962 $as_echo "yes" >&6; }
17963 else
17964   have_std_map_emplace=no
17965      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17966 $as_echo "no" >&6; }
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969
17970 ac_ext=c
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976
17977 # Checks for libraries.
17978
17979 # Additional libraries required for tests.
17980 TESTLDADD=
17981
17982 # Additional libraries required for programs under src directory.
17983 APPLDFLAGS=
17984
17985 LIBS_OLD=$LIBS
17986 # Search for dlsym function, which is used in tests. Linux needs -ldl,
17987 # but netbsd does not need it.
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
17989 $as_echo_n "checking for library containing dlsym... " >&6; }
17990 if ${ac_cv_search_dlsym+:} false; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   ac_func_search_save_LIBS=$LIBS
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h.  */
17996
17997 /* Override any GCC internal prototype to avoid an error.
17998    Use char because int might match the return type of a GCC
17999    builtin and then its argument prototype would still apply.  */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 char dlsym ();
18004 int
18005 main ()
18006 {
18007 return dlsym ();
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 for ac_lib in '' dl; do
18013   if test -z "$ac_lib"; then
18014     ac_res="none required"
18015   else
18016     ac_res=-l$ac_lib
18017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18018   fi
18019   if ac_fn_c_try_link "$LINENO"; then :
18020   ac_cv_search_dlsym=$ac_res
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext \
18023     conftest$ac_exeext
18024   if ${ac_cv_search_dlsym+:} false; then :
18025   break
18026 fi
18027 done
18028 if ${ac_cv_search_dlsym+:} false; then :
18029
18030 else
18031   ac_cv_search_dlsym=no
18032 fi
18033 rm conftest.$ac_ext
18034 LIBS=$ac_func_search_save_LIBS
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
18037 $as_echo "$ac_cv_search_dlsym" >&6; }
18038 ac_res=$ac_cv_search_dlsym
18039 if test "$ac_res" != no; then :
18040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18041
18042 fi
18043
18044 TESTLDADD="$LIBS $TESTLDADD"
18045 LIBS=$LIBS_OLD
18046
18047 LIBS_OLD=$LIBS
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18049 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18050 if ${ac_cv_search_clock_gettime+:} false; then :
18051   $as_echo_n "(cached) " >&6
18052 else
18053   ac_func_search_save_LIBS=$LIBS
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h.  */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058    Use char because int might match the return type of a GCC
18059    builtin and then its argument prototype would still apply.  */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char clock_gettime ();
18064 int
18065 main ()
18066 {
18067 return clock_gettime ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 for ac_lib in '' rt; do
18073   if test -z "$ac_lib"; then
18074     ac_res="none required"
18075   else
18076     ac_res=-l$ac_lib
18077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18078   fi
18079   if ac_fn_c_try_link "$LINENO"; then :
18080   ac_cv_search_clock_gettime=$ac_res
18081 fi
18082 rm -f core conftest.err conftest.$ac_objext \
18083     conftest$ac_exeext
18084   if ${ac_cv_search_clock_gettime+:} false; then :
18085   break
18086 fi
18087 done
18088 if ${ac_cv_search_clock_gettime+:} false; then :
18089
18090 else
18091   ac_cv_search_clock_gettime=no
18092 fi
18093 rm conftest.$ac_ext
18094 LIBS=$ac_func_search_save_LIBS
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18097 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18098 ac_res=$ac_cv_search_clock_gettime
18099 if test "$ac_res" != no; then :
18100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18101
18102 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18103
18104 fi
18105
18106 APPLDFLAGS="$LIBS $APPLDFLAGS"
18107 LIBS=$LIBS_OLD
18108
18109 case "$host" in
18110   *android*)
18111     android_build=yes
18112     # android does not need -pthread, but needs followng 3 libs for C++
18113     APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
18114     ;;
18115   *)
18116     PTHREAD_LDFLAGS="-pthread"
18117     APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
18118     ;;
18119 esac
18120
18121 # zlib
18122 if test "x$android_build" = "xyes"; then
18123   # Use zlib provided by NDK
18124   APPLDFLAGS="-lz $APPLDFLAGS"
18125   have_zlib=yes
18126 else
18127
18128 pkg_failed=no
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
18130 $as_echo_n "checking for ZLIB... " >&6; }
18131
18132 if test -n "$ZLIB_CFLAGS"; then
18133     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18134  elif test -n "$PKG_CONFIG"; then
18135     if test -n "$PKG_CONFIG" && \
18136     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
18137   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
18138   ac_status=$?
18139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18140   test $ac_status = 0; }; then
18141   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
18142                       test "x$?" != "x0" && pkg_failed=yes
18143 else
18144   pkg_failed=yes
18145 fi
18146  else
18147     pkg_failed=untried
18148 fi
18149 if test -n "$ZLIB_LIBS"; then
18150     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18151  elif test -n "$PKG_CONFIG"; then
18152     if test -n "$PKG_CONFIG" && \
18153     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
18154   ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
18155   ac_status=$?
18156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18157   test $ac_status = 0; }; then
18158   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
18159                       test "x$?" != "x0" && pkg_failed=yes
18160 else
18161   pkg_failed=yes
18162 fi
18163  else
18164     pkg_failed=untried
18165 fi
18166
18167
18168
18169 if test $pkg_failed = yes; then
18170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18172
18173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18174         _pkg_short_errors_supported=yes
18175 else
18176         _pkg_short_errors_supported=no
18177 fi
18178         if test $_pkg_short_errors_supported = yes; then
18179                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
18180         else
18181                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
18182         fi
18183         # Put the nasty error message in config.log where it belongs
18184         echo "$ZLIB_PKG_ERRORS" >&5
18185
18186         have_zlib=no
18187 elif test $pkg_failed = untried; then
18188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190         have_zlib=no
18191 else
18192         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18193         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18195 $as_echo "yes" >&6; }
18196         have_zlib=yes
18197 fi
18198
18199   if test "x${have_zlib}" = "xno"; then
18200     { $as_echo "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
18201 $as_echo "$as_me: $ZLIB_PKG_ERRORS" >&6;}
18202   fi
18203 fi
18204
18205 # cunit
18206
18207 pkg_failed=no
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
18209 $as_echo_n "checking for CUNIT... " >&6; }
18210
18211 if test -n "$CUNIT_CFLAGS"; then
18212     pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
18213  elif test -n "$PKG_CONFIG"; then
18214     if test -n "$PKG_CONFIG" && \
18215     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
18216   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
18217   ac_status=$?
18218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18219   test $ac_status = 0; }; then
18220   pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
18221                       test "x$?" != "x0" && pkg_failed=yes
18222 else
18223   pkg_failed=yes
18224 fi
18225  else
18226     pkg_failed=untried
18227 fi
18228 if test -n "$CUNIT_LIBS"; then
18229     pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
18230  elif test -n "$PKG_CONFIG"; then
18231     if test -n "$PKG_CONFIG" && \
18232     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
18233   ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
18234   ac_status=$?
18235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18236   test $ac_status = 0; }; then
18237   pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
18238                       test "x$?" != "x0" && pkg_failed=yes
18239 else
18240   pkg_failed=yes
18241 fi
18242  else
18243     pkg_failed=untried
18244 fi
18245
18246
18247
18248 if test $pkg_failed = yes; then
18249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251
18252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18253         _pkg_short_errors_supported=yes
18254 else
18255         _pkg_short_errors_supported=no
18256 fi
18257         if test $_pkg_short_errors_supported = yes; then
18258                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
18259         else
18260                 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
18261         fi
18262         # Put the nasty error message in config.log where it belongs
18263         echo "$CUNIT_PKG_ERRORS" >&5
18264
18265         have_cunit=no
18266 elif test $pkg_failed = untried; then
18267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18269         have_cunit=no
18270 else
18271         CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
18272         CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
18273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274 $as_echo "yes" >&6; }
18275         have_cunit=yes
18276 fi
18277 # If pkg-config does not find cunit, check it using AC_CHECK_LIB.  We
18278 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
18279 if test "x${have_cunit}" = "xno"; then
18280   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
18281 $as_echo "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
18282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
18283 $as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
18284 if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
18285   $as_echo_n "(cached) " >&6
18286 else
18287   ac_check_lib_save_LIBS=$LIBS
18288 LIBS="-lcunit  $LIBS"
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h.  */
18291
18292 /* Override any GCC internal prototype to avoid an error.
18293    Use char because int might match the return type of a GCC
18294    builtin and then its argument prototype would still apply.  */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 char CU_initialize_registry ();
18299 int
18300 main ()
18301 {
18302 return CU_initialize_registry ();
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 if ac_fn_c_try_link "$LINENO"; then :
18308   ac_cv_lib_cunit_CU_initialize_registry=yes
18309 else
18310   ac_cv_lib_cunit_CU_initialize_registry=no
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext \
18313     conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18315 fi
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
18317 $as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
18318 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
18319   have_cunit=yes
18320 else
18321   have_cunit=no
18322 fi
18323
18324   if test "x${have_cunit}" = "xyes"; then
18325     CUNIT_LIBS="-lcunit"
18326     CUNIT_CFLAGS=""
18327
18328
18329   fi
18330 fi
18331 if test "x${have_cunit}" = "xyes"; then
18332   # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
18333   # program can be built without -lncurses, but it emits runtime
18334   # error.
18335   case "${build}" in
18336     *-apple-darwin*)
18337       CUNIT_LIBS="$CUNIT_LIBS -lncurses"
18338
18339       ;;
18340   esac
18341 fi
18342
18343  if  test "x${have_cunit}" = "xyes" ; then
18344   HAVE_CUNIT_TRUE=
18345   HAVE_CUNIT_FALSE='#'
18346 else
18347   HAVE_CUNIT_TRUE='#'
18348   HAVE_CUNIT_FALSE=
18349 fi
18350
18351
18352 # libev (for src)
18353 # libev does not have pkg-config file.  Check it in an old way.
18354 LIBS_OLD=$LIBS
18355 # android requires -lm for floor
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
18357 $as_echo_n "checking for ev_time in -lev... " >&6; }
18358 if ${ac_cv_lib_ev_ev_time+:} false; then :
18359   $as_echo_n "(cached) " >&6
18360 else
18361   ac_check_lib_save_LIBS=$LIBS
18362 LIBS="-lev -lm $LIBS"
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h.  */
18365
18366 /* Override any GCC internal prototype to avoid an error.
18367    Use char because int might match the return type of a GCC
18368    builtin and then its argument prototype would still apply.  */
18369 #ifdef __cplusplus
18370 extern "C"
18371 #endif
18372 char ev_time ();
18373 int
18374 main ()
18375 {
18376 return ev_time ();
18377   ;
18378   return 0;
18379 }
18380 _ACEOF
18381 if ac_fn_c_try_link "$LINENO"; then :
18382   ac_cv_lib_ev_ev_time=yes
18383 else
18384   ac_cv_lib_ev_ev_time=no
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext \
18387     conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18389 fi
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
18391 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
18392 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
18393   have_libev=yes
18394 else
18395   have_libev=no
18396 fi
18397
18398 if test "x${have_libev}" = "xyes"; then
18399   ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
18400 if test "x$ac_cv_header_ev_h" = xyes; then :
18401   have_libev=yes
18402 else
18403   have_libev=no
18404 fi
18405
18406
18407   if test "x${have_libev}" = "xyes"; then
18408     LIBEV_LIBS=-lev
18409     LIBEV_CFLAGS=
18410
18411
18412   fi
18413 fi
18414 LIBS=$LIBS_OLD
18415
18416 # openssl (for src)
18417
18418 pkg_failed=no
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
18420 $as_echo_n "checking for OPENSSL... " >&6; }
18421
18422 if test -n "$OPENSSL_CFLAGS"; then
18423     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
18424  elif test -n "$PKG_CONFIG"; then
18425     if test -n "$PKG_CONFIG" && \
18426     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18427   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18428   ac_status=$?
18429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18430   test $ac_status = 0; }; then
18431   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
18432                       test "x$?" != "x0" && pkg_failed=yes
18433 else
18434   pkg_failed=yes
18435 fi
18436  else
18437     pkg_failed=untried
18438 fi
18439 if test -n "$OPENSSL_LIBS"; then
18440     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
18441  elif test -n "$PKG_CONFIG"; then
18442     if test -n "$PKG_CONFIG" && \
18443     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18444   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18445   ac_status=$?
18446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18447   test $ac_status = 0; }; then
18448   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
18449                       test "x$?" != "x0" && pkg_failed=yes
18450 else
18451   pkg_failed=yes
18452 fi
18453  else
18454     pkg_failed=untried
18455 fi
18456
18457
18458
18459 if test $pkg_failed = yes; then
18460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18462
18463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18464         _pkg_short_errors_supported=yes
18465 else
18466         _pkg_short_errors_supported=no
18467 fi
18468         if test $_pkg_short_errors_supported = yes; then
18469                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18470         else
18471                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18472         fi
18473         # Put the nasty error message in config.log where it belongs
18474         echo "$OPENSSL_PKG_ERRORS" >&5
18475
18476         have_openssl=no
18477 elif test $pkg_failed = untried; then
18478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18480         have_openssl=no
18481 else
18482         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
18483         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
18484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18485 $as_echo "yes" >&6; }
18486         have_openssl=yes
18487 fi
18488 if test "x${have_openssl}" = "xno"; then
18489   { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
18490 $as_echo "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
18491 fi
18492
18493 # libevent_openssl (for examples)
18494 # 2.0.8 is required because we use evconnlistener_set_error_cb()
18495
18496 pkg_failed=no
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT_OPENSSL" >&5
18498 $as_echo_n "checking for LIBEVENT_OPENSSL... " >&6; }
18499
18500 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
18501     pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
18502  elif test -n "$PKG_CONFIG"; then
18503     if test -n "$PKG_CONFIG" && \
18504     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
18505   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
18506   ac_status=$?
18507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508   test $ac_status = 0; }; then
18509   pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
18510                       test "x$?" != "x0" && pkg_failed=yes
18511 else
18512   pkg_failed=yes
18513 fi
18514  else
18515     pkg_failed=untried
18516 fi
18517 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
18518     pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
18519  elif test -n "$PKG_CONFIG"; then
18520     if test -n "$PKG_CONFIG" && \
18521     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
18522   ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
18523   ac_status=$?
18524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18525   test $ac_status = 0; }; then
18526   pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
18527                       test "x$?" != "x0" && pkg_failed=yes
18528 else
18529   pkg_failed=yes
18530 fi
18531  else
18532     pkg_failed=untried
18533 fi
18534
18535
18536
18537 if test $pkg_failed = yes; then
18538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539 $as_echo "no" >&6; }
18540
18541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18542         _pkg_short_errors_supported=yes
18543 else
18544         _pkg_short_errors_supported=no
18545 fi
18546         if test $_pkg_short_errors_supported = yes; then
18547                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
18548         else
18549                 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
18550         fi
18551         # Put the nasty error message in config.log where it belongs
18552         echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
18553
18554         have_libevent_openssl=no
18555 elif test $pkg_failed = untried; then
18556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18558         have_libevent_openssl=no
18559 else
18560         LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
18561         LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
18562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18563 $as_echo "yes" >&6; }
18564         have_libevent_openssl=yes
18565 fi
18566 if test "x${have_libevent_openssl}" = "xno"; then
18567   { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
18568 $as_echo "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
18569 fi
18570
18571 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
18572
18573 pkg_failed=no
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
18575 $as_echo_n "checking for JANSSON... " >&6; }
18576
18577 if test -n "$JANSSON_CFLAGS"; then
18578     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
18579  elif test -n "$PKG_CONFIG"; then
18580     if test -n "$PKG_CONFIG" && \
18581     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
18582   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
18583   ac_status=$?
18584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585   test $ac_status = 0; }; then
18586   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
18587                       test "x$?" != "x0" && pkg_failed=yes
18588 else
18589   pkg_failed=yes
18590 fi
18591  else
18592     pkg_failed=untried
18593 fi
18594 if test -n "$JANSSON_LIBS"; then
18595     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
18596  elif test -n "$PKG_CONFIG"; then
18597     if test -n "$PKG_CONFIG" && \
18598     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
18599   ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
18600   ac_status=$?
18601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18602   test $ac_status = 0; }; then
18603   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
18604                       test "x$?" != "x0" && pkg_failed=yes
18605 else
18606   pkg_failed=yes
18607 fi
18608  else
18609     pkg_failed=untried
18610 fi
18611
18612
18613
18614 if test $pkg_failed = yes; then
18615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616 $as_echo "no" >&6; }
18617
18618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18619         _pkg_short_errors_supported=yes
18620 else
18621         _pkg_short_errors_supported=no
18622 fi
18623         if test $_pkg_short_errors_supported = yes; then
18624                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
18625         else
18626                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
18627         fi
18628         # Put the nasty error message in config.log where it belongs
18629         echo "$JANSSON_PKG_ERRORS" >&5
18630
18631         have_jansson=no
18632 elif test $pkg_failed = untried; then
18633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18635         have_jansson=no
18636 else
18637         JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
18638         JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
18639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18641         have_jansson=yes
18642 fi
18643 if test "x${have_jansson}" == "xyes"; then
18644
18645 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
18646
18647 else
18648   { $as_echo "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
18649 $as_echo "$as_me: $JANSSON_PKG_ERRORS" >&6;}
18650 fi
18651
18652 # libxml2 (for src/nghttp)
18653 have_libxml2=no
18654 if test "x${request_libxml2}" != "xno"; then
18655
18656
18657 # Check whether --with-xml-prefix was given.
18658 if test "${with_xml_prefix+set}" = set; then :
18659   withval=$with_xml_prefix; xml_config_prefix="$withval"
18660 else
18661   xml_config_prefix=""
18662 fi
18663
18664
18665 # Check whether --with-xml-exec-prefix was given.
18666 if test "${with_xml_exec_prefix+set}" = set; then :
18667   withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
18668 else
18669   xml_config_exec_prefix=""
18670 fi
18671
18672 # Check whether --enable-xmltest was given.
18673 if test "${enable_xmltest+set}" = set; then :
18674   enableval=$enable_xmltest;
18675 else
18676   enable_xmltest=yes
18677 fi
18678
18679
18680   if test x$xml_config_exec_prefix != x ; then
18681      xml_config_args="$xml_config_args"
18682      if test x${XML2_CONFIG+set} != xset ; then
18683         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
18684      fi
18685   fi
18686   if test x$xml_config_prefix != x ; then
18687      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
18688      if test x${XML2_CONFIG+set} != xset ; then
18689         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
18690      fi
18691   fi
18692
18693   # Extract the first word of "xml2-config", so it can be a program name with args.
18694 set dummy xml2-config; ac_word=$2
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18696 $as_echo_n "checking for $ac_word... " >&6; }
18697 if ${ac_cv_path_XML2_CONFIG+:} false; then :
18698   $as_echo_n "(cached) " >&6
18699 else
18700   case $XML2_CONFIG in
18701   [\\/]* | ?:[\\/]*)
18702   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
18703   ;;
18704   *)
18705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18707 do
18708   IFS=$as_save_IFS
18709   test -z "$as_dir" && as_dir=.
18710     for ac_exec_ext in '' $ac_executable_extensions; do
18711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18714     break 2
18715   fi
18716 done
18717   done
18718 IFS=$as_save_IFS
18719
18720   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
18721   ;;
18722 esac
18723 fi
18724 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
18725 if test -n "$XML2_CONFIG"; then
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
18727 $as_echo "$XML2_CONFIG" >&6; }
18728 else
18729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18731 fi
18732
18733
18734   min_xml_version=2.7.7
18735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
18736 $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
18737   no_xml=""
18738   if test "$XML2_CONFIG" = "no" ; then
18739     no_xml=yes
18740   else
18741     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
18742     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
18743     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
18744            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18745     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
18746            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18747     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
18748            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18749     if test "x$enable_xmltest" = "xyes" ; then
18750       ac_save_CPPFLAGS="$CPPFLAGS"
18751       ac_save_LIBS="$LIBS"
18752       CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18753       LIBS="$XML_LIBS $LIBS"
18754       rm -f conf.xmltest
18755       if test "$cross_compiling" = yes; then :
18756   echo $ac_n "cross compiling; assumed OK... $ac_c"
18757 else
18758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h.  */
18760
18761 #include <stdlib.h>
18762 #include <stdio.h>
18763 #include <string.h>
18764 #include <libxml/xmlversion.h>
18765
18766 int
18767 main()
18768 {
18769   int xml_major_version, xml_minor_version, xml_micro_version;
18770   int major, minor, micro;
18771   char *tmp_version;
18772
18773   system("touch conf.xmltest");
18774
18775   /* Capture xml2-config output via autoconf/configure variables */
18776   /* HP/UX 9 (%@#!) writes to sscanf strings */
18777   tmp_version = (char *)strdup("$min_xml_version");
18778   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18779      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
18780      exit(1);
18781    }
18782    free(tmp_version);
18783
18784    /* Capture the version information from the header files */
18785    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
18786    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
18787      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
18788      exit(1);
18789    }
18790    free(tmp_version);
18791
18792  /* Compare xml2-config output to the libxml headers */
18793   if ((xml_major_version != $xml_config_major_version) ||
18794       (xml_minor_version != $xml_config_minor_version) ||
18795       (xml_micro_version != $xml_config_micro_version))
18796     {
18797       printf("*** libxml header files (version %d.%d.%d) do not match\n",
18798          xml_major_version, xml_minor_version, xml_micro_version);
18799       printf("*** xml2-config (version %d.%d.%d)\n",
18800          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
18801       return 1;
18802     }
18803 /* Compare the headers to the library to make sure we match */
18804   /* Less than ideal -- doesn't provide us with return value feedback,
18805    * only exits if there's a serious mismatch between header and library.
18806    */
18807     LIBXML_TEST_VERSION;
18808
18809     /* Test that the library is greater than our minimum version */
18810     if ((xml_major_version > major) ||
18811         ((xml_major_version == major) && (xml_minor_version > minor)) ||
18812         ((xml_major_version == major) && (xml_minor_version == minor) &&
18813         (xml_micro_version >= micro)))
18814       {
18815         return 0;
18816        }
18817      else
18818       {
18819         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
18820                xml_major_version, xml_minor_version, xml_micro_version);
18821         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
18822            major, minor, micro);
18823         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
18824         printf("***\n");
18825         printf("*** If you have already installed a sufficiently new version, this error\n");
18826         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
18827         printf("*** being found. The easiest way to fix this is to remove the old version\n");
18828         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
18829         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
18830         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18831         printf("*** so that the correct libraries are found at run-time))\n");
18832     }
18833   return 1;
18834 }
18835
18836 _ACEOF
18837 if ac_fn_c_try_run "$LINENO"; then :
18838
18839 else
18840   no_xml=yes
18841 fi
18842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18843   conftest.$ac_objext conftest.beam conftest.$ac_ext
18844 fi
18845
18846        CPPFLAGS="$ac_save_CPPFLAGS"
18847        LIBS="$ac_save_LIBS"
18848      fi
18849   fi
18850
18851   if test "x$no_xml" = x ; then
18852      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
18853 $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
18854      have_libxml2=yes
18855   else
18856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858      if test "$XML2_CONFIG" = "no" ; then
18859        echo "*** The xml2-config script installed by LIBXML could not be found"
18860        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
18861        echo "*** your path, or set the XML2_CONFIG environment variable to the"
18862        echo "*** full path to xml2-config."
18863      else
18864        if test -f conf.xmltest ; then
18865         :
18866        else
18867           echo "*** Could not run libxml test program, checking why..."
18868           CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18869           LIBS="$LIBS $XML_LIBS"
18870           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h.  */
18872
18873 #include <libxml/xmlversion.h>
18874 #include <stdio.h>
18875
18876 int
18877 main ()
18878 {
18879  LIBXML_TEST_VERSION; return 0;
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 if ac_fn_c_try_link "$LINENO"; then :
18885    echo "*** The test program compiled, but did not run. This usually means"
18886           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
18887           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
18888           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18889           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18890           echo "*** is required on your system"
18891           echo "***"
18892           echo "*** If you have an old version installed, it is best to remove it, although"
18893           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18894 else
18895    echo "*** The test program failed to compile or link. See the file config.log for the"
18896           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
18897           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
18898           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
18899 fi
18900 rm -f core conftest.err conftest.$ac_objext \
18901     conftest$ac_exeext conftest.$ac_ext
18902           CPPFLAGS="$ac_save_CPPFLAGS"
18903           LIBS="$ac_save_LIBS"
18904        fi
18905      fi
18906
18907      XML_CPPFLAGS=""
18908      XML_LIBS=""
18909      have_libxml2=no
18910   fi
18911
18912
18913   rm -f conf.xmltest
18914
18915   if test "x${have_libxml2}" = "xyes"; then
18916
18917 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18918
18919   fi
18920 fi
18921
18922 if test "x${request_libxml2}" = "xyes" &&
18923    test "x${have_libxml2}" != "xyes"; then
18924   as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
18925 fi
18926
18927  if  test "x${have_libxml2}" = "xyes" ; then
18928   HAVE_LIBXML2_TRUE=
18929   HAVE_LIBXML2_FALSE='#'
18930 else
18931   HAVE_LIBXML2_TRUE='#'
18932   HAVE_LIBXML2_FALSE=
18933 fi
18934
18935
18936 # jemalloc
18937 have_jemalloc=no
18938 if test "x${request_jemalloc}" != "xno"; then
18939   LIBS_OLD=$LIBS
18940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
18941 $as_echo_n "checking for library containing malloc_stats_print... " >&6; }
18942 if ${ac_cv_search_malloc_stats_print+:} false; then :
18943   $as_echo_n "(cached) " >&6
18944 else
18945   ac_func_search_save_LIBS=$LIBS
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h.  */
18948
18949 /* Override any GCC internal prototype to avoid an error.
18950    Use char because int might match the return type of a GCC
18951    builtin and then its argument prototype would still apply.  */
18952 #ifdef __cplusplus
18953 extern "C"
18954 #endif
18955 char malloc_stats_print ();
18956 int
18957 main ()
18958 {
18959 return malloc_stats_print ();
18960   ;
18961   return 0;
18962 }
18963 _ACEOF
18964 for ac_lib in '' jemalloc; do
18965   if test -z "$ac_lib"; then
18966     ac_res="none required"
18967   else
18968     ac_res=-l$ac_lib
18969     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
18970   fi
18971   if ac_fn_c_try_link "$LINENO"; then :
18972   ac_cv_search_malloc_stats_print=$ac_res
18973 fi
18974 rm -f core conftest.err conftest.$ac_objext \
18975     conftest$ac_exeext
18976   if ${ac_cv_search_malloc_stats_print+:} false; then :
18977   break
18978 fi
18979 done
18980 if ${ac_cv_search_malloc_stats_print+:} false; then :
18981
18982 else
18983   ac_cv_search_malloc_stats_print=no
18984 fi
18985 rm conftest.$ac_ext
18986 LIBS=$ac_func_search_save_LIBS
18987 fi
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
18989 $as_echo "$ac_cv_search_malloc_stats_print" >&6; }
18990 ac_res=$ac_cv_search_malloc_stats_print
18991 if test "$ac_res" != no; then :
18992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18993   have_jemalloc=yes
18994 fi
18995
18996   LIBS=$LIBS_OLD
18997
18998   if test "x${have_jemalloc}" = "xyes"; then
18999     jemalloc_libs=${ac_cv_search_malloc_stats_print}
19000   else
19001     # On Darwin, malloc_stats_print is je_malloc_stats_print
19002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
19003 $as_echo_n "checking for library containing je_malloc_stats_print... " >&6; }
19004 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19005   $as_echo_n "(cached) " >&6
19006 else
19007   ac_func_search_save_LIBS=$LIBS
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h.  */
19010
19011 /* Override any GCC internal prototype to avoid an error.
19012    Use char because int might match the return type of a GCC
19013    builtin and then its argument prototype would still apply.  */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 char je_malloc_stats_print ();
19018 int
19019 main ()
19020 {
19021 return je_malloc_stats_print ();
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 for ac_lib in '' jemalloc; do
19027   if test -z "$ac_lib"; then
19028     ac_res="none required"
19029   else
19030     ac_res=-l$ac_lib
19031     LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
19032   fi
19033   if ac_fn_c_try_link "$LINENO"; then :
19034   ac_cv_search_je_malloc_stats_print=$ac_res
19035 fi
19036 rm -f core conftest.err conftest.$ac_objext \
19037     conftest$ac_exeext
19038   if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19039   break
19040 fi
19041 done
19042 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19043
19044 else
19045   ac_cv_search_je_malloc_stats_print=no
19046 fi
19047 rm conftest.$ac_ext
19048 LIBS=$ac_func_search_save_LIBS
19049 fi
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
19051 $as_echo "$ac_cv_search_je_malloc_stats_print" >&6; }
19052 ac_res=$ac_cv_search_je_malloc_stats_print
19053 if test "$ac_res" != no; then :
19054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19055   have_jemalloc=yes
19056 fi
19057
19058     LIBS=$LIBS_OLD
19059
19060     if test "x${have_jemalloc}" = "xyes"; then
19061       jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
19062     fi
19063   fi
19064
19065   if test "x${have_jemalloc}" = "xyes" &&
19066      test "x${jemalloc_libs}" != "xnone required"; then
19067     JEMALLOC_LIBS=${jemalloc_libs}
19068
19069   fi
19070 fi
19071
19072 if test "x${request_jemalloc}" = "xyes" &&
19073    test "x${have_jemalloc}" != "xyes"; then
19074   as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
19075 fi
19076
19077 # spdylay (for src/nghttpx and src/h2load)
19078 have_spdylay=no
19079 if test "x${request_spdylay}" != "xno"; then
19080
19081 pkg_failed=no
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPDYLAY" >&5
19083 $as_echo_n "checking for LIBSPDYLAY... " >&6; }
19084
19085 if test -n "$LIBSPDYLAY_CFLAGS"; then
19086     pkg_cv_LIBSPDYLAY_CFLAGS="$LIBSPDYLAY_CFLAGS"
19087  elif test -n "$PKG_CONFIG"; then
19088     if test -n "$PKG_CONFIG" && \
19089     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libspdylay >= 1.3.2\""; } >&5
19090   ($PKG_CONFIG --exists --print-errors "libspdylay >= 1.3.2") 2>&5
19091   ac_status=$?
19092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093   test $ac_status = 0; }; then
19094   pkg_cv_LIBSPDYLAY_CFLAGS=`$PKG_CONFIG --cflags "libspdylay >= 1.3.2" 2>/dev/null`
19095                       test "x$?" != "x0" && pkg_failed=yes
19096 else
19097   pkg_failed=yes
19098 fi
19099  else
19100     pkg_failed=untried
19101 fi
19102 if test -n "$LIBSPDYLAY_LIBS"; then
19103     pkg_cv_LIBSPDYLAY_LIBS="$LIBSPDYLAY_LIBS"
19104  elif test -n "$PKG_CONFIG"; then
19105     if test -n "$PKG_CONFIG" && \
19106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libspdylay >= 1.3.2\""; } >&5
19107   ($PKG_CONFIG --exists --print-errors "libspdylay >= 1.3.2") 2>&5
19108   ac_status=$?
19109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110   test $ac_status = 0; }; then
19111   pkg_cv_LIBSPDYLAY_LIBS=`$PKG_CONFIG --libs "libspdylay >= 1.3.2" 2>/dev/null`
19112                       test "x$?" != "x0" && pkg_failed=yes
19113 else
19114   pkg_failed=yes
19115 fi
19116  else
19117     pkg_failed=untried
19118 fi
19119
19120
19121
19122 if test $pkg_failed = yes; then
19123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19125
19126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19127         _pkg_short_errors_supported=yes
19128 else
19129         _pkg_short_errors_supported=no
19130 fi
19131         if test $_pkg_short_errors_supported = yes; then
19132                 LIBSPDYLAY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libspdylay >= 1.3.2" 2>&1`
19133         else
19134                 LIBSPDYLAY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libspdylay >= 1.3.2" 2>&1`
19135         fi
19136         # Put the nasty error message in config.log where it belongs
19137         echo "$LIBSPDYLAY_PKG_ERRORS" >&5
19138
19139         have_spdylay=no
19140 elif test $pkg_failed = untried; then
19141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143         have_spdylay=no
19144 else
19145         LIBSPDYLAY_CFLAGS=$pkg_cv_LIBSPDYLAY_CFLAGS
19146         LIBSPDYLAY_LIBS=$pkg_cv_LIBSPDYLAY_LIBS
19147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19148 $as_echo "yes" >&6; }
19149         have_spdylay=yes
19150 fi
19151   if test "x${have_spdylay}" = "xyes"; then
19152
19153 $as_echo "#define HAVE_SPDYLAY 1" >>confdefs.h
19154
19155   else
19156     { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBSPDYLAY_PKG_ERRORS" >&5
19157 $as_echo "$as_me: $LIBSPDYLAY_PKG_ERRORS" >&6;}
19158     { $as_echo "$as_me:${as_lineno-$LINENO}: The SPDY support in nghttpx and h2load will be disabled." >&5
19159 $as_echo "$as_me: The SPDY support in nghttpx and h2load will be disabled." >&6;}
19160   fi
19161 fi
19162
19163 if test "x${request_spdylay}" = "xyes" &&
19164    test "x${have_spdylay}" != "xyes"; then
19165   as_fn_error $? "spdylay was requested (--with-spdylay) but not found" "$LINENO" 5
19166 fi
19167
19168  if  test "x${have_spdylay}" = "xyes" ; then
19169   HAVE_SPDYLAY_TRUE=
19170   HAVE_SPDYLAY_FALSE='#'
19171 else
19172   HAVE_SPDYLAY_TRUE='#'
19173   HAVE_SPDYLAY_FALSE=
19174 fi
19175
19176
19177 # Check Boost Asio library
19178 have_asio_lib=no
19179
19180 if test "x${request_asio_lib}" = "xyes"; then
19181
19182
19183 # Check whether --with-boost was given.
19184 if test "${with_boost+set}" = set; then :
19185   withval=$with_boost;
19186     if test "$withval" = "no"; then
19187         want_boost="no"
19188     elif test "$withval" = "yes"; then
19189         want_boost="yes"
19190         ac_boost_path=""
19191     else
19192         want_boost="yes"
19193         ac_boost_path="$withval"
19194     fi
19195
19196 else
19197   want_boost="yes"
19198 fi
19199
19200
19201
19202
19203 # Check whether --with-boost-libdir was given.
19204 if test "${with_boost_libdir+set}" = set; then :
19205   withval=$with_boost_libdir;
19206         if test -d "$withval"
19207         then
19208                 ac_boost_lib_path="$withval"
19209         else
19210                 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
19211         fi
19212
19213 else
19214   ac_boost_lib_path=""
19215
19216 fi
19217
19218
19219 if test "x$want_boost" = "xyes"; then
19220     boost_lib_version_req=1.54.0
19221     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
19222     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
19223     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
19224     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
19225     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
19226         boost_lib_version_req_sub_minor="0"
19227         fi
19228     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
19229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
19230 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
19231     succeeded=no
19232
19233                         libsubdirs="lib"
19234     ax_arch=`uname -m`
19235     case $ax_arch in
19236       x86_64)
19237         libsubdirs="lib64 libx32 lib lib64"
19238         ;;
19239       ppc64|s390x|sparc64|aarch64|ppc64le)
19240         libsubdirs="lib64 lib lib64 ppc64le"
19241         ;;
19242     esac
19243
19244
19245     libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
19246
19247     case ${host_cpu} in
19248       i?86)
19249         libsubdirs="lib/i386-${host_os} $libsubdirs"
19250         ;;
19251     esac
19252
19253                 if test "$ac_boost_path" != ""; then
19254         BOOST_CPPFLAGS="-I$ac_boost_path/include"
19255         for ac_boost_path_tmp in $libsubdirs; do
19256                 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
19257                         BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
19258                         break
19259                 fi
19260         done
19261     elif test "$cross_compiling" != yes; then
19262         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
19263             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
19264                 for libsubdir in $libsubdirs ; do
19265                     if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19266                 done
19267                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
19268                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
19269                 break;
19270             fi
19271         done
19272     fi
19273
19274             if test "$ac_boost_lib_path" != ""; then
19275        BOOST_LDFLAGS="-L$ac_boost_lib_path"
19276     fi
19277
19278     CPPFLAGS_SAVED="$CPPFLAGS"
19279     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19280     export CPPFLAGS
19281
19282     LDFLAGS_SAVED="$LDFLAGS"
19283     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19284     export LDFLAGS
19285
19286
19287     ac_ext=cpp
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292
19293         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h.  */
19295
19296     #include <boost/version.hpp>
19297
19298 int
19299 main ()
19300 {
19301
19302     #if BOOST_VERSION >= $WANT_BOOST_VERSION
19303     // Everything is okay
19304     #else
19305     #  error Boost version is too old
19306     #endif
19307
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 if ac_fn_cxx_try_compile "$LINENO"; then :
19313
19314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19315 $as_echo "yes" >&6; }
19316     succeeded=yes
19317     found_system=yes
19318
19319 fi
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321     ac_ext=c
19322 ac_cpp='$CPP $CPPFLAGS'
19323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19326
19327
19328
19329
19330             if test "x$succeeded" != "xyes"; then
19331         _version=0
19332         if test "$ac_boost_path" != ""; then
19333             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
19334                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
19335                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19336                     V_CHECK=`expr $_version_tmp \> $_version`
19337                     if test "$V_CHECK" = "1" ; then
19338                         _version=$_version_tmp
19339                     fi
19340                     VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19341                     BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
19342                 done
19343             fi
19344         else
19345             if test "$cross_compiling" != yes; then
19346                 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
19347                     if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
19348                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
19349                             _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19350                             V_CHECK=`expr $_version_tmp \> $_version`
19351                             if test "$V_CHECK" = "1" ; then
19352                                 _version=$_version_tmp
19353                                 best_path=$ac_boost_path
19354                             fi
19355                         done
19356                     fi
19357                 done
19358
19359                 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19360                 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
19361                 if test "$ac_boost_lib_path" = ""; then
19362                     for libsubdir in $libsubdirs ; do
19363                         if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19364                     done
19365                     BOOST_LDFLAGS="-L$best_path/$libsubdir"
19366                 fi
19367             fi
19368
19369             if test "x$BOOST_ROOT" != "x"; then
19370                 for libsubdir in $libsubdirs ; do
19371                     if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19372                 done
19373                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
19374                     version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
19375                     stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
19376                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
19377                     V_CHECK=`expr $stage_version_shorten \>\= $_version`
19378                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
19379                         { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
19380 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
19381                         BOOST_CPPFLAGS="-I$BOOST_ROOT"
19382                         BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
19383                     fi
19384                 fi
19385             fi
19386         fi
19387
19388         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19389         export CPPFLAGS
19390         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19391         export LDFLAGS
19392
19393         ac_ext=cpp
19394 ac_cpp='$CXXCPP $CPPFLAGS'
19395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19398
19399             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h.  */
19401
19402         #include <boost/version.hpp>
19403
19404 int
19405 main ()
19406 {
19407
19408         #if BOOST_VERSION >= $WANT_BOOST_VERSION
19409         // Everything is okay
19410         #else
19411         #  error Boost version is too old
19412         #endif
19413
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 if ac_fn_cxx_try_compile "$LINENO"; then :
19419
19420             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421 $as_echo "yes" >&6; }
19422         succeeded=yes
19423         found_system=yes
19424
19425 fi
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427         ac_ext=c
19428 ac_cpp='$CPP $CPPFLAGS'
19429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19432
19433     fi
19434
19435     if test "$succeeded" != "yes" ; then
19436         if test "$_version" = "0" ; then
19437             { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
19438 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
19439         else
19440             { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
19441 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
19442         fi
19443         # execute ACTION-IF-NOT-FOUND (if present):
19444         have_boost_base=no
19445     else
19446
19447
19448
19449 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
19450
19451         # execute ACTION-IF-FOUND (if present):
19452         have_boost_base=yes
19453     fi
19454
19455     CPPFLAGS="$CPPFLAGS_SAVED"
19456     LDFLAGS="$LDFLAGS_SAVED"
19457 fi
19458
19459
19460
19461   if test "x${have_boost_base}" = "xyes"; then
19462
19463
19464 # Check whether --with-boost-asio was given.
19465 if test "${with_boost_asio+set}" = set; then :
19466   withval=$with_boost_asio;
19467         if test "$withval" = "no"; then
19468                         want_boost="no"
19469         elif test "$withval" = "yes"; then
19470             want_boost="yes"
19471             ax_boost_user_asio_lib=""
19472         else
19473                     want_boost="yes"
19474                 ax_boost_user_asio_lib="$withval"
19475                 fi
19476
19477 else
19478   want_boost="yes"
19479
19480 fi
19481
19482
19483         if test "x$want_boost" = "xyes"; then
19484
19485                 CPPFLAGS_SAVED="$CPPFLAGS"
19486                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19487                 export CPPFLAGS
19488
19489                 LDFLAGS_SAVED="$LDFLAGS"
19490                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19491                 export LDFLAGS
19492
19493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
19494 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
19495 if ${ax_cv_boost_asio+:} false; then :
19496   $as_echo_n "(cached) " >&6
19497 else
19498   ac_ext=cpp
19499 ac_cpp='$CXXCPP $CPPFLAGS'
19500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19503
19504                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h.  */
19506  #include <boost/asio.hpp>
19507
19508 int
19509 main ()
19510 {
19511
19512
19513                                     boost::asio::io_service io;
19514                                     boost::system::error_code timer_result;
19515                                     boost::asio::deadline_timer t(io);
19516                                     t.cancel();
19517                                     io.run_one();
19518                                                                         return 0;
19519
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 if ac_fn_cxx_try_compile "$LINENO"; then :
19525   ax_cv_boost_asio=yes
19526 else
19527   ax_cv_boost_asio=no
19528 fi
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530          ac_ext=c
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19535
19536
19537 fi
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
19539 $as_echo "$ax_cv_boost_asio" >&6; }
19540                 if test "x$ax_cv_boost_asio" = "xyes"; then
19541
19542 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
19543
19544                         BN=boost_system
19545                         BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19546             if test "x$ax_boost_user_asio_lib" = "x"; then
19547                                 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
19548                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
19550 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
19551 if eval \${$as_ac_Lib+:} false; then :
19552   $as_echo_n "(cached) " >&6
19553 else
19554   ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-l$ax_lib  $LIBS"
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558
19559
19560 int
19561 main ()
19562 {
19563 return main ();
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 if ac_fn_c_try_link "$LINENO"; then :
19569   eval "$as_ac_Lib=yes"
19570 else
19571   eval "$as_ac_Lib=no"
19572 fi
19573 rm -f core conftest.err conftest.$ac_objext \
19574     conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19576 fi
19577 eval ac_res=\$$as_ac_Lib
19578                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19579 $as_echo "$ac_res" >&6; }
19580 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19581   BOOST_ASIO_LIB="-l$ax_lib"  link_thread="yes" break
19582 else
19583   link_thread="no"
19584 fi
19585
19586                                 done
19587             else
19588                for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
19589                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
19591 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
19592 if eval \${$as_ac_Lib+:} false; then :
19593   $as_echo_n "(cached) " >&6
19594 else
19595   ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-l$ax_lib  $LIBS"
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h.  */
19599
19600
19601 int
19602 main ()
19603 {
19604 return main ();
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 if ac_fn_c_try_link "$LINENO"; then :
19610   eval "$as_ac_Lib=yes"
19611 else
19612   eval "$as_ac_Lib=no"
19613 fi
19614 rm -f core conftest.err conftest.$ac_objext \
19615     conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19617 fi
19618 eval ac_res=\$$as_ac_Lib
19619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19620 $as_echo "$ac_res" >&6; }
19621 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19622   BOOST_ASIO_LIB="-l$ax_lib"  link_asio="yes" break
19623 else
19624   link_asio="no"
19625 fi
19626
19627                   done
19628
19629             fi
19630             if test "x$ax_lib" = "x"; then
19631                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
19632             fi
19633                         if test "x$link_asio" = "xno"; then
19634                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
19635                         fi
19636                 fi
19637
19638                 CPPFLAGS="$CPPFLAGS_SAVED"
19639         LDFLAGS="$LDFLAGS_SAVED"
19640         fi
19641
19642
19643
19644 # Check whether --with-boost-system was given.
19645 if test "${with_boost_system+set}" = set; then :
19646   withval=$with_boost_system;
19647         if test "$withval" = "no"; then
19648                         want_boost="no"
19649         elif test "$withval" = "yes"; then
19650             want_boost="yes"
19651             ax_boost_user_system_lib=""
19652         else
19653                     want_boost="yes"
19654                 ax_boost_user_system_lib="$withval"
19655                 fi
19656
19657 else
19658   want_boost="yes"
19659
19660 fi
19661
19662
19663         if test "x$want_boost" = "xyes"; then
19664
19665
19666                 CPPFLAGS_SAVED="$CPPFLAGS"
19667                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19668                 export CPPFLAGS
19669
19670                 LDFLAGS_SAVED="$LDFLAGS"
19671                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19672                 export LDFLAGS
19673
19674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
19675 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
19676 if ${ax_cv_boost_system+:} false; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   ac_ext=cpp
19680 ac_cpp='$CXXCPP $CPPFLAGS'
19681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19684
19685                          CXXFLAGS_SAVE=$CXXFLAGS
19686
19687                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h.  */
19689 #include <boost/system/error_code.hpp>
19690 int
19691 main ()
19692 {
19693 boost::system::system_category
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 if ac_fn_cxx_try_compile "$LINENO"; then :
19699   ax_cv_boost_system=yes
19700 else
19701   ax_cv_boost_system=no
19702 fi
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704                          CXXFLAGS=$CXXFLAGS_SAVE
19705              ac_ext=c
19706 ac_cpp='$CPP $CPPFLAGS'
19707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710
19711
19712 fi
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
19714 $as_echo "$ax_cv_boost_system" >&6; }
19715                 if test "x$ax_cv_boost_system" = "xyes"; then
19716
19717
19718
19719 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
19720
19721             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19722
19723                         LDFLAGS_SAVE=$LDFLAGS
19724             if test "x$ax_boost_user_system_lib" = "x"; then
19725                 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
19726                      ax_lib=${libextension}
19727                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19729 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19730 if eval \${$as_ac_Lib+:} false; then :
19731   $as_echo_n "(cached) " >&6
19732 else
19733   ac_check_lib_save_LIBS=$LIBS
19734 LIBS="-l$ax_lib  $LIBS"
19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h.  */
19737
19738 /* Override any GCC internal prototype to avoid an error.
19739    Use char because int might match the return type of a GCC
19740    builtin and then its argument prototype would still apply.  */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char exit ();
19745 int
19746 main ()
19747 {
19748 return exit ();
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754   eval "$as_ac_Lib=yes"
19755 else
19756   eval "$as_ac_Lib=no"
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759     conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19761 fi
19762 eval ac_res=\$$as_ac_Lib
19763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19764 $as_echo "$ac_res" >&6; }
19765 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19766   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
19767 else
19768   link_system="no"
19769 fi
19770
19771                                 done
19772                 if test "x$link_system" != "xyes"; then
19773                 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
19774                      ax_lib=${libextension}
19775                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19777 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19778 if eval \${$as_ac_Lib+:} false; then :
19779   $as_echo_n "(cached) " >&6
19780 else
19781   ac_check_lib_save_LIBS=$LIBS
19782 LIBS="-l$ax_lib  $LIBS"
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h.  */
19785
19786 /* Override any GCC internal prototype to avoid an error.
19787    Use char because int might match the return type of a GCC
19788    builtin and then its argument prototype would still apply.  */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char exit ();
19793 int
19794 main ()
19795 {
19796 return exit ();
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 if ac_fn_c_try_link "$LINENO"; then :
19802   eval "$as_ac_Lib=yes"
19803 else
19804   eval "$as_ac_Lib=no"
19805 fi
19806 rm -f core conftest.err conftest.$ac_objext \
19807     conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19809 fi
19810 eval ac_res=\$$as_ac_Lib
19811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19812 $as_echo "$ac_res" >&6; }
19813 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19814   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
19815 else
19816   link_system="no"
19817 fi
19818
19819                                 done
19820                 fi
19821
19822             else
19823                for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
19824                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19826 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19827 if eval \${$as_ac_Lib+:} false; then :
19828   $as_echo_n "(cached) " >&6
19829 else
19830   ac_check_lib_save_LIBS=$LIBS
19831 LIBS="-l$ax_lib  $LIBS"
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h.  */
19834
19835 /* Override any GCC internal prototype to avoid an error.
19836    Use char because int might match the return type of a GCC
19837    builtin and then its argument prototype would still apply.  */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char exit ();
19842 int
19843 main ()
19844 {
19845 return exit ();
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851   eval "$as_ac_Lib=yes"
19852 else
19853   eval "$as_ac_Lib=no"
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext \
19856     conftest$ac_exeext conftest.$ac_ext
19857 LIBS=$ac_check_lib_save_LIBS
19858 fi
19859 eval ac_res=\$$as_ac_Lib
19860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19861 $as_echo "$ac_res" >&6; }
19862 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19863   BOOST_SYSTEM_LIB="-l$ax_lib";  link_system="yes"; break
19864 else
19865   link_system="no"
19866 fi
19867
19868                   done
19869
19870             fi
19871             if test "x$ax_lib" = "x"; then
19872                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
19873             fi
19874                         if test "x$link_system" = "xno"; then
19875                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
19876                         fi
19877                 fi
19878
19879                 CPPFLAGS="$CPPFLAGS_SAVED"
19880         LDFLAGS="$LDFLAGS_SAVED"
19881         fi
19882
19883
19884
19885 # Check whether --with-boost-thread was given.
19886 if test "${with_boost_thread+set}" = set; then :
19887   withval=$with_boost_thread;
19888         if test "$withval" = "no"; then
19889                         want_boost="no"
19890         elif test "$withval" = "yes"; then
19891             want_boost="yes"
19892             ax_boost_user_thread_lib=""
19893         else
19894                     want_boost="yes"
19895                 ax_boost_user_thread_lib="$withval"
19896                 fi
19897
19898 else
19899   want_boost="yes"
19900
19901 fi
19902
19903
19904         if test "x$want_boost" = "xyes"; then
19905
19906
19907                 CPPFLAGS_SAVED="$CPPFLAGS"
19908                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19909                 export CPPFLAGS
19910
19911                 LDFLAGS_SAVED="$LDFLAGS"
19912                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19913                 export LDFLAGS
19914
19915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
19916 $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
19917 if ${ax_cv_boost_thread+:} false; then :
19918   $as_echo_n "(cached) " >&6
19919 else
19920   ac_ext=cpp
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925
19926                          CXXFLAGS_SAVE=$CXXFLAGS
19927
19928                          if test "x$host_os" = "xsolaris" ; then
19929                                  CXXFLAGS="-pthreads $CXXFLAGS"
19930                          elif test "x$host_os" = "xmingw32" ; then
19931                                  CXXFLAGS="-mthreads $CXXFLAGS"
19932                          else
19933                                 CXXFLAGS="-pthread $CXXFLAGS"
19934                          fi
19935                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h.  */
19937 #include <boost/thread/thread.hpp>
19938 int
19939 main ()
19940 {
19941 boost::thread_group thrds;
19942                                    return 0;
19943   ;
19944   return 0;
19945 }
19946 _ACEOF
19947 if ac_fn_cxx_try_compile "$LINENO"; then :
19948   ax_cv_boost_thread=yes
19949 else
19950   ax_cv_boost_thread=no
19951 fi
19952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953                          CXXFLAGS=$CXXFLAGS_SAVE
19954              ac_ext=c
19955 ac_cpp='$CPP $CPPFLAGS'
19956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959
19960
19961 fi
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
19963 $as_echo "$ax_cv_boost_thread" >&6; }
19964                 if test "x$ax_cv_boost_thread" = "xyes"; then
19965            if test "x$host_os" = "xsolaris" ; then
19966                           BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
19967                    elif test "x$host_os" = "xmingw32" ; then
19968                           BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
19969                    else
19970                           BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
19971                    fi
19972
19973
19974
19975
19976 $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
19977
19978             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19979
19980                         LDFLAGS_SAVE=$LDFLAGS
19981                         case "x$host_os" in
19982                           *bsd* )
19983                                LDFLAGS="-pthread $LDFLAGS"
19984                           break;
19985                           ;;
19986                         esac
19987             if test "x$ax_boost_user_thread_lib" = "x"; then
19988                 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
19989                      ax_lib=${libextension}
19990                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19992 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19993 if eval \${$as_ac_Lib+:} false; then :
19994   $as_echo_n "(cached) " >&6
19995 else
19996   ac_check_lib_save_LIBS=$LIBS
19997 LIBS="-l$ax_lib  $LIBS"
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h.  */
20000
20001 /* Override any GCC internal prototype to avoid an error.
20002    Use char because int might match the return type of a GCC
20003    builtin and then its argument prototype would still apply.  */
20004 #ifdef __cplusplus
20005 extern "C"
20006 #endif
20007 char exit ();
20008 int
20009 main ()
20010 {
20011 return exit ();
20012   ;
20013   return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_c_try_link "$LINENO"; then :
20017   eval "$as_ac_Lib=yes"
20018 else
20019   eval "$as_ac_Lib=no"
20020 fi
20021 rm -f core conftest.err conftest.$ac_objext \
20022     conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20024 fi
20025 eval ac_res=\$$as_ac_Lib
20026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20027 $as_echo "$ac_res" >&6; }
20028 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20029   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
20030 else
20031   link_thread="no"
20032 fi
20033
20034                                 done
20035                 if test "x$link_thread" != "xyes"; then
20036                 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
20037                      ax_lib=${libextension}
20038                                     as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20040 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20041 if eval \${$as_ac_Lib+:} false; then :
20042   $as_echo_n "(cached) " >&6
20043 else
20044   ac_check_lib_save_LIBS=$LIBS
20045 LIBS="-l$ax_lib  $LIBS"
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h.  */
20048
20049 /* Override any GCC internal prototype to avoid an error.
20050    Use char because int might match the return type of a GCC
20051    builtin and then its argument prototype would still apply.  */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 char exit ();
20056 int
20057 main ()
20058 {
20059 return exit ();
20060   ;
20061   return 0;
20062 }
20063 _ACEOF
20064 if ac_fn_c_try_link "$LINENO"; then :
20065   eval "$as_ac_Lib=yes"
20066 else
20067   eval "$as_ac_Lib=no"
20068 fi
20069 rm -f core conftest.err conftest.$ac_objext \
20070     conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20072 fi
20073 eval ac_res=\$$as_ac_Lib
20074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20075 $as_echo "$ac_res" >&6; }
20076 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20077   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
20078 else
20079   link_thread="no"
20080 fi
20081
20082                                 done
20083                 fi
20084
20085             else
20086                for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
20087                                       as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20089 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20090 if eval \${$as_ac_Lib+:} false; then :
20091   $as_echo_n "(cached) " >&6
20092 else
20093   ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-l$ax_lib  $LIBS"
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h.  */
20097
20098 /* Override any GCC internal prototype to avoid an error.
20099    Use char because int might match the return type of a GCC
20100    builtin and then its argument prototype would still apply.  */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char exit ();
20105 int
20106 main ()
20107 {
20108 return exit ();
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 if ac_fn_c_try_link "$LINENO"; then :
20114   eval "$as_ac_Lib=yes"
20115 else
20116   eval "$as_ac_Lib=no"
20117 fi
20118 rm -f core conftest.err conftest.$ac_objext \
20119     conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20121 fi
20122 eval ac_res=\$$as_ac_Lib
20123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20124 $as_echo "$ac_res" >&6; }
20125 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20126   BOOST_THREAD_LIB="-l$ax_lib";  link_thread="yes"; break
20127 else
20128   link_thread="no"
20129 fi
20130
20131                   done
20132
20133             fi
20134             if test "x$ax_lib" = "x"; then
20135                 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20136             fi
20137                         if test "x$link_thread" = "xno"; then
20138                                 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20139                         else
20140                            case "x$host_os" in
20141                               *bsd* )
20142                                 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
20143                               break;
20144                               ;;
20145                            esac
20146
20147                         fi
20148                 fi
20149
20150                 CPPFLAGS="$CPPFLAGS_SAVED"
20151         LDFLAGS="$LDFLAGS_SAVED"
20152         fi
20153
20154
20155     if test "x${ax_cv_boost_asio}" = "xyes" &&
20156        test "x${ax_cv_boost_system}" = "xyes" &&
20157        test "x${ax_cv_boost_thread}" = "xyes"; then
20158       have_asio_lib=yes
20159     fi
20160   fi
20161 fi
20162
20163 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL
20164 # and libev
20165 enable_app=no
20166 if test "x${request_app}" != "xno" &&
20167    test "x${have_zlib}" = "xyes" &&
20168    test "x${have_openssl}" = "xyes" &&
20169    test "x${have_libev}" = "xyes"; then
20170   enable_app=yes
20171 fi
20172
20173 if test "x${request_app}" = "xyes" &&
20174    test "x${enable_app}" != "xyes"; then
20175   as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
20176 fi
20177
20178  if  test "x${enable_app}" = "xyes" ; then
20179   ENABLE_APP_TRUE=
20180   ENABLE_APP_FALSE='#'
20181 else
20182   ENABLE_APP_TRUE='#'
20183   ENABLE_APP_FALSE=
20184 fi
20185
20186
20187 enable_hpack_tools=no
20188 # HPACK tools requires jansson
20189 if test "x${request_hpack_tools}" != "xno" &&
20190    test "x${have_jansson}" = "xyes"; then
20191   enable_hpack_tools=yes
20192 fi
20193
20194 if test "x${request_hpack_tools}" = "xyes" &&
20195    test "x${enable_hpack_tools}" != "xyes"; then
20196   as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
20197 fi
20198
20199  if  test "x${enable_hpack_tools}" = "xyes" ; then
20200   ENABLE_HPACK_TOOLS_TRUE=
20201   ENABLE_HPACK_TOOLS_FALSE='#'
20202 else
20203   ENABLE_HPACK_TOOLS_TRUE='#'
20204   ENABLE_HPACK_TOOLS_FALSE=
20205 fi
20206
20207
20208 # C++ library libnghttp2_asio
20209
20210 enable_asio_lib=no
20211 if test "x${request_asio_lib}" != "xno" &&
20212    test "x${have_asio_lib}" = "xyes"; then
20213   enable_asio_lib=yes
20214 fi
20215
20216  if  test "x${enable_asio_lib}" = "xyes" ; then
20217   ENABLE_ASIO_LIB_TRUE=
20218   ENABLE_ASIO_LIB_FALSE='#'
20219 else
20220   ENABLE_ASIO_LIB_TRUE='#'
20221   ENABLE_ASIO_LIB_FALSE=
20222 fi
20223
20224
20225 # The example programs depend on OpenSSL and libevent_openssl
20226 enable_examples=no
20227 if test "x${request_examples}" != "xno" &&
20228    test "x${have_openssl}" = "xyes" &&
20229    test "x${have_libevent_openssl}" = "xyes"; then
20230   enable_examples=yes
20231 fi
20232
20233 if test "x${request_examples}" = "xyes" &&
20234    test "x${enable_examples}" != "xyes"; then
20235   as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
20236 fi
20237
20238  if  test "x${enable_examples}" = "xyes" ; then
20239   ENABLE_EXAMPLES_TRUE=
20240   ENABLE_EXAMPLES_FALSE='#'
20241 else
20242   ENABLE_EXAMPLES_TRUE='#'
20243   ENABLE_EXAMPLES_FALSE=
20244 fi
20245
20246
20247 # Python bindings
20248 enable_python_bindings=no
20249 if test "x${request_python_bindings}" != "xno" &&
20250    test "x${CYTHON}" != "x" &&
20251    test "x${PYTHON}" != "x:" &&
20252    test "x${have_python_dev}" = "xyes"; then
20253   enable_python_bindings=yes
20254 fi
20255
20256 if test "x${request_python_bindings}" = "xyes" &&
20257    test "x${enable_python_bindings}" != "xyes"; then
20258   as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
20259 fi
20260
20261  if test "x${enable_python_bindings}" = "xyes"; then
20262   ENABLE_PYTHON_BINDINGS_TRUE=
20263   ENABLE_PYTHON_BINDINGS_FALSE='#'
20264 else
20265   ENABLE_PYTHON_BINDINGS_TRUE='#'
20266   ENABLE_PYTHON_BINDINGS_FALSE=
20267 fi
20268
20269
20270 # Produce cython conditional, so that we can distribute generated C
20271 # source
20272  if test "x${CYTHON}" != "x"; then
20273   HAVE_CYTHON_TRUE=
20274   HAVE_CYTHON_FALSE='#'
20275 else
20276   HAVE_CYTHON_TRUE='#'
20277   HAVE_CYTHON_FALSE=
20278 fi
20279
20280
20281 # failmalloc tests
20282 enable_failmalloc=no
20283 if test "x${request_failmalloc}" = "xyes"; then
20284   enable_failmalloc=yes
20285 fi
20286
20287  if  test "x${enable_failmalloc}" = "xyes" ; then
20288   ENABLE_FAILMALLOC_TRUE=
20289   ENABLE_FAILMALLOC_FALSE='#'
20290 else
20291   ENABLE_FAILMALLOC_TRUE='#'
20292   ENABLE_FAILMALLOC_FALSE=
20293 fi
20294
20295
20296 # Checks for header files.
20297
20298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20299 $as_echo_n "checking whether to enable assertions... " >&6; }
20300   # Check whether --enable-assert was given.
20301 if test "${enable_assert+set}" = set; then :
20302   enableval=$enable_assert; ac_enable_assert=$enableval
20303      if       test "x$enableval" = xno; then :
20304
20305 $as_echo "#define NDEBUG 1" >>confdefs.h
20306
20307 elif test "x$enableval" != xyes; then :
20308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20309 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20310         ac_enable_assert=yes
20311 fi
20312 else
20313   ac_enable_assert=yes
20314 fi
20315
20316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20317 $as_echo "$ac_enable_assert" >&6; }
20318
20319 for ac_header in  \
20320   arpa/inet.h \
20321   fcntl.h \
20322   inttypes.h \
20323   limits.h \
20324   netdb.h \
20325   netinet/in.h \
20326   pwd.h \
20327   stddef.h \
20328   stdint.h \
20329   stdlib.h \
20330   string.h \
20331   sys/socket.h \
20332   sys/time.h \
20333   syslog.h \
20334   time.h \
20335   unistd.h \
20336
20337 do :
20338   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20341   cat >>confdefs.h <<_ACEOF
20342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20343 _ACEOF
20344
20345 fi
20346
20347 done
20348
20349
20350 # Checks for typedefs, structures, and compiler characteristics.
20351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20352 if test "x$ac_cv_type_size_t" = xyes; then :
20353
20354 else
20355
20356 cat >>confdefs.h <<_ACEOF
20357 #define size_t unsigned int
20358 _ACEOF
20359
20360 fi
20361
20362 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20363 if test "x$ac_cv_type_ssize_t" = xyes; then :
20364
20365 else
20366
20367 cat >>confdefs.h <<_ACEOF
20368 #define ssize_t int
20369 _ACEOF
20370
20371 fi
20372
20373 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
20374 case $ac_cv_c_uint8_t in #(
20375   no|yes) ;; #(
20376   *)
20377
20378 $as_echo "#define _UINT8_T 1" >>confdefs.h
20379
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define uint8_t $ac_cv_c_uint8_t
20383 _ACEOF
20384 ;;
20385   esac
20386
20387 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
20388 case $ac_cv_c_uint16_t in #(
20389   no|yes) ;; #(
20390   *)
20391
20392
20393 cat >>confdefs.h <<_ACEOF
20394 #define uint16_t $ac_cv_c_uint16_t
20395 _ACEOF
20396 ;;
20397   esac
20398
20399 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
20400 case $ac_cv_c_uint32_t in #(
20401   no|yes) ;; #(
20402   *)
20403
20404 $as_echo "#define _UINT32_T 1" >>confdefs.h
20405
20406
20407 cat >>confdefs.h <<_ACEOF
20408 #define uint32_t $ac_cv_c_uint32_t
20409 _ACEOF
20410 ;;
20411   esac
20412
20413 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
20414 case $ac_cv_c_uint64_t in #(
20415   no|yes) ;; #(
20416   *)
20417
20418 $as_echo "#define _UINT64_T 1" >>confdefs.h
20419
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define uint64_t $ac_cv_c_uint64_t
20423 _ACEOF
20424 ;;
20425   esac
20426
20427 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
20428 case $ac_cv_c_int8_t in #(
20429   no|yes) ;; #(
20430   *)
20431
20432 cat >>confdefs.h <<_ACEOF
20433 #define int8_t $ac_cv_c_int8_t
20434 _ACEOF
20435 ;;
20436 esac
20437
20438 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
20439 case $ac_cv_c_int16_t in #(
20440   no|yes) ;; #(
20441   *)
20442
20443 cat >>confdefs.h <<_ACEOF
20444 #define int16_t $ac_cv_c_int16_t
20445 _ACEOF
20446 ;;
20447 esac
20448
20449 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
20450 case $ac_cv_c_int32_t in #(
20451   no|yes) ;; #(
20452   *)
20453
20454 cat >>confdefs.h <<_ACEOF
20455 #define int32_t $ac_cv_c_int32_t
20456 _ACEOF
20457 ;;
20458 esac
20459
20460 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
20461 case $ac_cv_c_int64_t in #(
20462   no|yes) ;; #(
20463   *)
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define int64_t $ac_cv_c_int64_t
20467 _ACEOF
20468 ;;
20469 esac
20470
20471 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20472 if test "x$ac_cv_type_off_t" = xyes; then :
20473
20474 else
20475
20476 cat >>confdefs.h <<_ACEOF
20477 #define off_t long int
20478 _ACEOF
20479
20480 fi
20481
20482 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20483 if test "x$ac_cv_type_pid_t" = xyes; then :
20484
20485 else
20486
20487 cat >>confdefs.h <<_ACEOF
20488 #define pid_t int
20489 _ACEOF
20490
20491 fi
20492
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20494 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20495 if ${ac_cv_type_uid_t+:} false; then :
20496   $as_echo_n "(cached) " >&6
20497 else
20498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h.  */
20500 #include <sys/types.h>
20501
20502 _ACEOF
20503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20504   $EGREP "uid_t" >/dev/null 2>&1; then :
20505   ac_cv_type_uid_t=yes
20506 else
20507   ac_cv_type_uid_t=no
20508 fi
20509 rm -f conftest*
20510
20511 fi
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20513 $as_echo "$ac_cv_type_uid_t" >&6; }
20514 if test $ac_cv_type_uid_t = no; then
20515
20516 $as_echo "#define uid_t int" >>confdefs.h
20517
20518
20519 $as_echo "#define gid_t int" >>confdefs.h
20520
20521 fi
20522
20523 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20524 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20525
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_PTRDIFF_T 1
20528 _ACEOF
20529
20530
20531 fi
20532
20533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20534 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20535 if ${ac_cv_c_bigendian+:} false; then :
20536   $as_echo_n "(cached) " >&6
20537 else
20538   ac_cv_c_bigendian=unknown
20539     # See if we're dealing with a universal compiler.
20540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h.  */
20542 #ifndef __APPLE_CC__
20543                not a universal capable compiler
20544              #endif
20545              typedef int dummy;
20546
20547 _ACEOF
20548 if ac_fn_c_try_compile "$LINENO"; then :
20549
20550         # Check for potential -arch flags.  It is not universal unless
20551         # there are at least two -arch flags with different values.
20552         ac_arch=
20553         ac_prev=
20554         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20555          if test -n "$ac_prev"; then
20556            case $ac_word in
20557              i?86 | x86_64 | ppc | ppc64)
20558                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20559                  ac_arch=$ac_word
20560                else
20561                  ac_cv_c_bigendian=universal
20562                  break
20563                fi
20564                ;;
20565            esac
20566            ac_prev=
20567          elif test "x$ac_word" = "x-arch"; then
20568            ac_prev=arch
20569          fi
20570        done
20571 fi
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573     if test $ac_cv_c_bigendian = unknown; then
20574       # See if sys/param.h defines the BYTE_ORDER macro.
20575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576 /* end confdefs.h.  */
20577 #include <sys/types.h>
20578              #include <sys/param.h>
20579
20580 int
20581 main ()
20582 {
20583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20584                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20585                      && LITTLE_ENDIAN)
20586               bogus endian macros
20587              #endif
20588
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594   # It does; now see whether it defined to BIG_ENDIAN or not.
20595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h.  */
20597 #include <sys/types.h>
20598                 #include <sys/param.h>
20599
20600 int
20601 main ()
20602 {
20603 #if BYTE_ORDER != BIG_ENDIAN
20604                  not big endian
20605                 #endif
20606
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 if ac_fn_c_try_compile "$LINENO"; then :
20612   ac_cv_c_bigendian=yes
20613 else
20614   ac_cv_c_bigendian=no
20615 fi
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 fi
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619     fi
20620     if test $ac_cv_c_bigendian = unknown; then
20621       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20622       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h.  */
20624 #include <limits.h>
20625
20626 int
20627 main ()
20628 {
20629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20630               bogus endian macros
20631              #endif
20632
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 if ac_fn_c_try_compile "$LINENO"; then :
20638   # It does; now see whether it defined to _BIG_ENDIAN or not.
20639          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h.  */
20641 #include <limits.h>
20642
20643 int
20644 main ()
20645 {
20646 #ifndef _BIG_ENDIAN
20647                  not big endian
20648                 #endif
20649
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 if ac_fn_c_try_compile "$LINENO"; then :
20655   ac_cv_c_bigendian=yes
20656 else
20657   ac_cv_c_bigendian=no
20658 fi
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 fi
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662     fi
20663     if test $ac_cv_c_bigendian = unknown; then
20664       # Compile a test program.
20665       if test "$cross_compiling" = yes; then :
20666   # Try to guess by grepping values from an object file.
20667          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h.  */
20669 short int ascii_mm[] =
20670                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20671                 short int ascii_ii[] =
20672                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20673                 int use_ascii (int i) {
20674                   return ascii_mm[i] + ascii_ii[i];
20675                 }
20676                 short int ebcdic_ii[] =
20677                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20678                 short int ebcdic_mm[] =
20679                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20680                 int use_ebcdic (int i) {
20681                   return ebcdic_mm[i] + ebcdic_ii[i];
20682                 }
20683                 extern int foo;
20684
20685 int
20686 main ()
20687 {
20688 return use_ascii (foo) == use_ebcdic (foo);
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 if ac_fn_c_try_compile "$LINENO"; then :
20694   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20695               ac_cv_c_bigendian=yes
20696             fi
20697             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20698               if test "$ac_cv_c_bigendian" = unknown; then
20699                 ac_cv_c_bigendian=no
20700               else
20701                 # finding both strings is unlikely to happen, but who knows?
20702                 ac_cv_c_bigendian=unknown
20703               fi
20704             fi
20705 fi
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 else
20708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h.  */
20710 $ac_includes_default
20711 int
20712 main ()
20713 {
20714
20715              /* Are we little or big endian?  From Harbison&Steele.  */
20716              union
20717              {
20718                long int l;
20719                char c[sizeof (long int)];
20720              } u;
20721              u.l = 1;
20722              return u.c[sizeof (long int) - 1] == 1;
20723
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 if ac_fn_c_try_run "$LINENO"; then :
20729   ac_cv_c_bigendian=no
20730 else
20731   ac_cv_c_bigendian=yes
20732 fi
20733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20734   conftest.$ac_objext conftest.beam conftest.$ac_ext
20735 fi
20736
20737     fi
20738 fi
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20740 $as_echo "$ac_cv_c_bigendian" >&6; }
20741  case $ac_cv_c_bigendian in #(
20742    yes)
20743      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20744 ;; #(
20745    no)
20746       ;; #(
20747    universal)
20748
20749 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20750
20751      ;; #(
20752    *)
20753      as_fn_error $? "unknown endianness
20754  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20755  esac
20756
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20758 $as_echo_n "checking for inline... " >&6; }
20759 if ${ac_cv_c_inline+:} false; then :
20760   $as_echo_n "(cached) " >&6
20761 else
20762   ac_cv_c_inline=no
20763 for ac_kw in inline __inline__ __inline; do
20764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h.  */
20766 #ifndef __cplusplus
20767 typedef int foo_t;
20768 static $ac_kw foo_t static_foo () {return 0; }
20769 $ac_kw foo_t foo () {return 0; }
20770 #endif
20771
20772 _ACEOF
20773 if ac_fn_c_try_compile "$LINENO"; then :
20774   ac_cv_c_inline=$ac_kw
20775 fi
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777   test "$ac_cv_c_inline" != no && break
20778 done
20779
20780 fi
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20782 $as_echo "$ac_cv_c_inline" >&6; }
20783
20784 case $ac_cv_c_inline in
20785   inline | yes) ;;
20786   *)
20787     case $ac_cv_c_inline in
20788       no) ac_val=;;
20789       *) ac_val=$ac_cv_c_inline;;
20790     esac
20791     cat >>confdefs.h <<_ACEOF
20792 #ifndef __cplusplus
20793 #define inline $ac_val
20794 #endif
20795 _ACEOF
20796     ;;
20797 esac
20798
20799 # Check whether --enable-largefile was given.
20800 if test "${enable_largefile+set}" = set; then :
20801   enableval=$enable_largefile;
20802 fi
20803
20804 if test "$enable_largefile" != no; then
20805
20806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20807 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20808 if ${ac_cv_sys_largefile_CC+:} false; then :
20809   $as_echo_n "(cached) " >&6
20810 else
20811   ac_cv_sys_largefile_CC=no
20812      if test "$GCC" != yes; then
20813        ac_save_CC=$CC
20814        while :; do
20815          # IRIX 6.2 and later do not support large files by default,
20816          # so use the C compiler's -n32 option if that helps.
20817          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h.  */
20819 #include <sys/types.h>
20820  /* Check that off_t can represent 2**63 - 1 correctly.
20821     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20822     since some C++ compilers masquerading as C compilers
20823     incorrectly reject 9223372036854775807.  */
20824 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20825   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20826                        && LARGE_OFF_T % 2147483647 == 1)
20827                       ? 1 : -1];
20828 int
20829 main ()
20830 {
20831
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836          if ac_fn_c_try_compile "$LINENO"; then :
20837   break
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext
20840          CC="$CC -n32"
20841          if ac_fn_c_try_compile "$LINENO"; then :
20842   ac_cv_sys_largefile_CC=' -n32'; break
20843 fi
20844 rm -f core conftest.err conftest.$ac_objext
20845          break
20846        done
20847        CC=$ac_save_CC
20848        rm -f conftest.$ac_ext
20849     fi
20850 fi
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20852 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
20853   if test "$ac_cv_sys_largefile_CC" != no; then
20854     CC=$CC$ac_cv_sys_largefile_CC
20855   fi
20856
20857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20858 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20859 if ${ac_cv_sys_file_offset_bits+:} false; then :
20860   $as_echo_n "(cached) " >&6
20861 else
20862   while :; do
20863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h.  */
20865 #include <sys/types.h>
20866  /* Check that off_t can represent 2**63 - 1 correctly.
20867     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20868     since some C++ compilers masquerading as C compilers
20869     incorrectly reject 9223372036854775807.  */
20870 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20871   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20872                        && LARGE_OFF_T % 2147483647 == 1)
20873                       ? 1 : -1];
20874 int
20875 main ()
20876 {
20877
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 if ac_fn_c_try_compile "$LINENO"; then :
20883   ac_cv_sys_file_offset_bits=no; break
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h.  */
20888 #define _FILE_OFFSET_BITS 64
20889 #include <sys/types.h>
20890  /* Check that off_t can represent 2**63 - 1 correctly.
20891     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20892     since some C++ compilers masquerading as C compilers
20893     incorrectly reject 9223372036854775807.  */
20894 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20895   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20896                        && LARGE_OFF_T % 2147483647 == 1)
20897                       ? 1 : -1];
20898 int
20899 main ()
20900 {
20901
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 if ac_fn_c_try_compile "$LINENO"; then :
20907   ac_cv_sys_file_offset_bits=64; break
20908 fi
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910   ac_cv_sys_file_offset_bits=unknown
20911   break
20912 done
20913 fi
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20915 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20916 case $ac_cv_sys_file_offset_bits in #(
20917   no | unknown) ;;
20918   *)
20919 cat >>confdefs.h <<_ACEOF
20920 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20921 _ACEOF
20922 ;;
20923 esac
20924 rm -rf conftest*
20925   if test $ac_cv_sys_file_offset_bits = unknown; then
20926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20927 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20928 if ${ac_cv_sys_large_files+:} false; then :
20929   $as_echo_n "(cached) " >&6
20930 else
20931   while :; do
20932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h.  */
20934 #include <sys/types.h>
20935  /* Check that off_t can represent 2**63 - 1 correctly.
20936     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20937     since some C++ compilers masquerading as C compilers
20938     incorrectly reject 9223372036854775807.  */
20939 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20940   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20941                        && LARGE_OFF_T % 2147483647 == 1)
20942                       ? 1 : -1];
20943 int
20944 main ()
20945 {
20946
20947   ;
20948   return 0;
20949 }
20950 _ACEOF
20951 if ac_fn_c_try_compile "$LINENO"; then :
20952   ac_cv_sys_large_files=no; break
20953 fi
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h.  */
20957 #define _LARGE_FILES 1
20958 #include <sys/types.h>
20959  /* Check that off_t can represent 2**63 - 1 correctly.
20960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20961     since some C++ compilers masquerading as C compilers
20962     incorrectly reject 9223372036854775807.  */
20963 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20965                        && LARGE_OFF_T % 2147483647 == 1)
20966                       ? 1 : -1];
20967 int
20968 main ()
20969 {
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 if ac_fn_c_try_compile "$LINENO"; then :
20976   ac_cv_sys_large_files=1; break
20977 fi
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979   ac_cv_sys_large_files=unknown
20980   break
20981 done
20982 fi
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20984 $as_echo "$ac_cv_sys_large_files" >&6; }
20985 case $ac_cv_sys_large_files in #(
20986   no | unknown) ;;
20987   *)
20988 cat >>confdefs.h <<_ACEOF
20989 #define _LARGE_FILES $ac_cv_sys_large_files
20990 _ACEOF
20991 ;;
20992 esac
20993 rm -rf conftest*
20994   fi
20995
20996
20997 fi
20998
20999
21000 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21001 "
21002 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21003   have_struct_tm_tm_gmtoff=yes
21004 else
21005   have_struct_tm_tm_gmtoff=no
21006 fi
21007
21008
21009 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
21010
21011 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
21012
21013 fi
21014
21015 # Check size of pointer to decide we need 8 bytes alignment
21016 # adjustment.
21017 # The cast to long int works around a bug in the HP C Compiler
21018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21020 # This bug is HP SR number 8606223364.
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
21022 $as_echo_n "checking size of int *... " >&6; }
21023 if ${ac_cv_sizeof_int_p+:} false; then :
21024   $as_echo_n "(cached) " >&6
21025 else
21026   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
21027
21028 else
21029   if test "$ac_cv_type_int_p" = yes; then
21030      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21032 as_fn_error 77 "cannot compute sizeof (int *)
21033 See \`config.log' for more details" "$LINENO" 5; }
21034    else
21035      ac_cv_sizeof_int_p=0
21036    fi
21037 fi
21038
21039 fi
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
21041 $as_echo "$ac_cv_sizeof_int_p" >&6; }
21042
21043
21044
21045 cat >>confdefs.h <<_ACEOF
21046 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
21047 _ACEOF
21048
21049
21050
21051 # Checks for library functions.
21052 if test "x$cross_compiling" != "xyes"; then
21053   for ac_header in stdlib.h
21054 do :
21055   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21056 if test "x$ac_cv_header_stdlib_h" = xyes; then :
21057   cat >>confdefs.h <<_ACEOF
21058 #define HAVE_STDLIB_H 1
21059 _ACEOF
21060
21061 fi
21062
21063 done
21064
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
21066 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
21067 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
21068   $as_echo_n "(cached) " >&6
21069 else
21070   if test "$cross_compiling" = yes; then :
21071   ac_cv_func_malloc_0_nonnull=no
21072 else
21073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h.  */
21075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21076 # include <stdlib.h>
21077 #else
21078 char *malloc ();
21079 #endif
21080
21081 int
21082 main ()
21083 {
21084 return ! malloc (0);
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 if ac_fn_c_try_run "$LINENO"; then :
21090   ac_cv_func_malloc_0_nonnull=yes
21091 else
21092   ac_cv_func_malloc_0_nonnull=no
21093 fi
21094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21095   conftest.$ac_objext conftest.beam conftest.$ac_ext
21096 fi
21097
21098 fi
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
21100 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
21101 if test $ac_cv_func_malloc_0_nonnull = yes; then :
21102
21103 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
21104
21105 else
21106   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
21107
21108    case " $LIBOBJS " in
21109   *" malloc.$ac_objext "* ) ;;
21110   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21111  ;;
21112 esac
21113
21114
21115 $as_echo "#define malloc rpl_malloc" >>confdefs.h
21116
21117 fi
21118
21119
21120 fi
21121
21122 for ac_header in unistd.h
21123 do :
21124   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21125 if test "x$ac_cv_header_unistd_h" = xyes; then :
21126   cat >>confdefs.h <<_ACEOF
21127 #define HAVE_UNISTD_H 1
21128 _ACEOF
21129
21130 fi
21131
21132 done
21133
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
21135 $as_echo_n "checking for working chown... " >&6; }
21136 if ${ac_cv_func_chown_works+:} false; then :
21137   $as_echo_n "(cached) " >&6
21138 else
21139   if test "$cross_compiling" = yes; then :
21140   ac_cv_func_chown_works=no
21141 else
21142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143 /* end confdefs.h.  */
21144 $ac_includes_default
21145 #include <fcntl.h>
21146
21147 int
21148 main ()
21149 {
21150   char *f = "conftest.chown";
21151   struct stat before, after;
21152
21153   if (creat (f, 0600) < 0)
21154     return 1;
21155   if (stat (f, &before) < 0)
21156     return 1;
21157   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21158     return 1;
21159   if (stat (f, &after) < 0)
21160     return 1;
21161   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21162
21163   ;
21164   return 0;
21165 }
21166 _ACEOF
21167 if ac_fn_c_try_run "$LINENO"; then :
21168   ac_cv_func_chown_works=yes
21169 else
21170   ac_cv_func_chown_works=no
21171 fi
21172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21173   conftest.$ac_objext conftest.beam conftest.$ac_ext
21174 fi
21175
21176 rm -f conftest.chown
21177
21178 fi
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
21180 $as_echo "$ac_cv_func_chown_works" >&6; }
21181 if test $ac_cv_func_chown_works = yes; then
21182
21183 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
21184
21185 fi
21186
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21188 $as_echo_n "checking for error_at_line... " >&6; }
21189 if ${ac_cv_lib_error_at_line+:} false; then :
21190   $as_echo_n "(cached) " >&6
21191 else
21192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h.  */
21194 #include <error.h>
21195 int
21196 main ()
21197 {
21198 error_at_line (0, 0, "", 0, "an error occurred");
21199   ;
21200   return 0;
21201 }
21202 _ACEOF
21203 if ac_fn_c_try_link "$LINENO"; then :
21204   ac_cv_lib_error_at_line=yes
21205 else
21206   ac_cv_lib_error_at_line=no
21207 fi
21208 rm -f core conftest.err conftest.$ac_objext \
21209     conftest$ac_exeext conftest.$ac_ext
21210 fi
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21212 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21213 if test $ac_cv_lib_error_at_line = no; then
21214   case " $LIBOBJS " in
21215   *" error.$ac_objext "* ) ;;
21216   *) LIBOBJS="$LIBOBJS error.$ac_objext"
21217  ;;
21218 esac
21219
21220 fi
21221
21222 for ac_header in vfork.h
21223 do :
21224   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21225 if test "x$ac_cv_header_vfork_h" = xyes; then :
21226   cat >>confdefs.h <<_ACEOF
21227 #define HAVE_VFORK_H 1
21228 _ACEOF
21229
21230 fi
21231
21232 done
21233
21234 for ac_func in fork vfork
21235 do :
21236   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21239   cat >>confdefs.h <<_ACEOF
21240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21241 _ACEOF
21242
21243 fi
21244 done
21245
21246 if test "x$ac_cv_func_fork" = xyes; then
21247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21248 $as_echo_n "checking for working fork... " >&6; }
21249 if ${ac_cv_func_fork_works+:} false; then :
21250   $as_echo_n "(cached) " >&6
21251 else
21252   if test "$cross_compiling" = yes; then :
21253   ac_cv_func_fork_works=cross
21254 else
21255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256 /* end confdefs.h.  */
21257 $ac_includes_default
21258 int
21259 main ()
21260 {
21261
21262           /* By Ruediger Kuhlmann. */
21263           return fork () < 0;
21264
21265   ;
21266   return 0;
21267 }
21268 _ACEOF
21269 if ac_fn_c_try_run "$LINENO"; then :
21270   ac_cv_func_fork_works=yes
21271 else
21272   ac_cv_func_fork_works=no
21273 fi
21274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21275   conftest.$ac_objext conftest.beam conftest.$ac_ext
21276 fi
21277
21278 fi
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21280 $as_echo "$ac_cv_func_fork_works" >&6; }
21281
21282 else
21283   ac_cv_func_fork_works=$ac_cv_func_fork
21284 fi
21285 if test "x$ac_cv_func_fork_works" = xcross; then
21286   case $host in
21287     *-*-amigaos* | *-*-msdosdjgpp*)
21288       # Override, as these systems have only a dummy fork() stub
21289       ac_cv_func_fork_works=no
21290       ;;
21291     *)
21292       ac_cv_func_fork_works=yes
21293       ;;
21294   esac
21295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21296 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21297 fi
21298 ac_cv_func_vfork_works=$ac_cv_func_vfork
21299 if test "x$ac_cv_func_vfork" = xyes; then
21300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21301 $as_echo_n "checking for working vfork... " >&6; }
21302 if ${ac_cv_func_vfork_works+:} false; then :
21303   $as_echo_n "(cached) " >&6
21304 else
21305   if test "$cross_compiling" = yes; then :
21306   ac_cv_func_vfork_works=cross
21307 else
21308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h.  */
21310 /* Thanks to Paul Eggert for this test.  */
21311 $ac_includes_default
21312 #include <sys/wait.h>
21313 #ifdef HAVE_VFORK_H
21314 # include <vfork.h>
21315 #endif
21316 /* On some sparc systems, changes by the child to local and incoming
21317    argument registers are propagated back to the parent.  The compiler
21318    is told about this with #include <vfork.h>, but some compilers
21319    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21320    static variable whose address is put into a register that is
21321    clobbered by the vfork.  */
21322 static void
21323 #ifdef __cplusplus
21324 sparc_address_test (int arg)
21325 # else
21326 sparc_address_test (arg) int arg;
21327 #endif
21328 {
21329   static pid_t child;
21330   if (!child) {
21331     child = vfork ();
21332     if (child < 0) {
21333       perror ("vfork");
21334       _exit(2);
21335     }
21336     if (!child) {
21337       arg = getpid();
21338       write(-1, "", 0);
21339       _exit (arg);
21340     }
21341   }
21342 }
21343
21344 int
21345 main ()
21346 {
21347   pid_t parent = getpid ();
21348   pid_t child;
21349
21350   sparc_address_test (0);
21351
21352   child = vfork ();
21353
21354   if (child == 0) {
21355     /* Here is another test for sparc vfork register problems.  This
21356        test uses lots of local variables, at least as many local
21357        variables as main has allocated so far including compiler
21358        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21359        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21360        reuse the register of parent for one of the local variables,
21361        since it will think that parent can't possibly be used any more
21362        in this routine.  Assigning to the local variable will thus
21363        munge parent in the parent process.  */
21364     pid_t
21365       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21366       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21367     /* Convince the compiler that p..p7 are live; otherwise, it might
21368        use the same hardware register for all 8 local variables.  */
21369     if (p != p1 || p != p2 || p != p3 || p != p4
21370         || p != p5 || p != p6 || p != p7)
21371       _exit(1);
21372
21373     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21374        from child file descriptors.  If the child closes a descriptor
21375        before it execs or exits, this munges the parent's descriptor
21376        as well.  Test for this by closing stdout in the child.  */
21377     _exit(close(fileno(stdout)) != 0);
21378   } else {
21379     int status;
21380     struct stat st;
21381
21382     while (wait(&status) != child)
21383       ;
21384     return (
21385          /* Was there some problem with vforking?  */
21386          child < 0
21387
21388          /* Did the child fail?  (This shouldn't happen.)  */
21389          || status
21390
21391          /* Did the vfork/compiler bug occur?  */
21392          || parent != getpid()
21393
21394          /* Did the file descriptor bug occur?  */
21395          || fstat(fileno(stdout), &st) != 0
21396          );
21397   }
21398 }
21399 _ACEOF
21400 if ac_fn_c_try_run "$LINENO"; then :
21401   ac_cv_func_vfork_works=yes
21402 else
21403   ac_cv_func_vfork_works=no
21404 fi
21405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21406   conftest.$ac_objext conftest.beam conftest.$ac_ext
21407 fi
21408
21409 fi
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21411 $as_echo "$ac_cv_func_vfork_works" >&6; }
21412
21413 fi;
21414 if test "x$ac_cv_func_fork_works" = xcross; then
21415   ac_cv_func_vfork_works=$ac_cv_func_vfork
21416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21417 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21418 fi
21419
21420 if test "x$ac_cv_func_vfork_works" = xyes; then
21421
21422 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21423
21424 else
21425
21426 $as_echo "#define vfork fork" >>confdefs.h
21427
21428 fi
21429 if test "x$ac_cv_func_fork_works" = xyes; then
21430
21431 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21432
21433 fi
21434
21435 # Don't check realloc, since LeakSanitizer detects memory leak during check
21436 # AC_FUNC_REALLOC
21437 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21438 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21439   ac_have_decl=1
21440 else
21441   ac_have_decl=0
21442 fi
21443
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_DECL_STRERROR_R $ac_have_decl
21446 _ACEOF
21447
21448 for ac_func in strerror_r
21449 do :
21450   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21451 if test "x$ac_cv_func_strerror_r" = xyes; then :
21452   cat >>confdefs.h <<_ACEOF
21453 #define HAVE_STRERROR_R 1
21454 _ACEOF
21455
21456 fi
21457 done
21458
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21460 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21461 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21462   $as_echo_n "(cached) " >&6
21463 else
21464
21465     ac_cv_func_strerror_r_char_p=no
21466     if test $ac_cv_have_decl_strerror_r = yes; then
21467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h.  */
21469 $ac_includes_default
21470 int
21471 main ()
21472 {
21473
21474           char buf[100];
21475           char x = *strerror_r (0, buf, sizeof buf);
21476           char *p = strerror_r (0, buf, sizeof buf);
21477           return !p || x;
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 if ac_fn_c_try_compile "$LINENO"; then :
21484   ac_cv_func_strerror_r_char_p=yes
21485 fi
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487     else
21488       # strerror_r is not declared.  Choose between
21489       # systems that have relatively inaccessible declarations for the
21490       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21491       # former has a strerror_r that returns char*, while the latter
21492       # has a strerror_r that returns `int'.
21493       # This test should segfault on the DEC system.
21494       if test "$cross_compiling" = yes; then :
21495   :
21496 else
21497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h.  */
21499 $ac_includes_default
21500         extern char *strerror_r ();
21501 int
21502 main ()
21503 {
21504 char buf[100];
21505           char x = *strerror_r (0, buf, sizeof buf);
21506           return ! isalpha (x);
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 if ac_fn_c_try_run "$LINENO"; then :
21512   ac_cv_func_strerror_r_char_p=yes
21513 fi
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21515   conftest.$ac_objext conftest.beam conftest.$ac_ext
21516 fi
21517
21518     fi
21519
21520 fi
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21522 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21523 if test $ac_cv_func_strerror_r_char_p = yes; then
21524
21525 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21526
21527 fi
21528
21529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21530 $as_echo_n "checking for working strnlen... " >&6; }
21531 if ${ac_cv_func_strnlen_working+:} false; then :
21532   $as_echo_n "(cached) " >&6
21533 else
21534   if test "$cross_compiling" = yes; then :
21535   # Guess no on AIX systems, yes otherwise.
21536                 case "$host_os" in
21537                   aix*) ac_cv_func_strnlen_working=no;;
21538                   *)    ac_cv_func_strnlen_working=yes;;
21539                 esac
21540 else
21541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h.  */
21543 $ac_includes_default
21544 int
21545 main ()
21546 {
21547
21548 #define S "foobar"
21549 #define S_LEN (sizeof S - 1)
21550
21551   /* At least one implementation is buggy: that of AIX 4.3 would
21552      give strnlen (S, 1) == 3.  */
21553
21554   int i;
21555   for (i = 0; i < S_LEN + 1; ++i)
21556     {
21557       int expected = i <= S_LEN ? i : S_LEN;
21558       if (strnlen (S, i) != expected)
21559         return 1;
21560     }
21561   return 0;
21562
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 if ac_fn_c_try_run "$LINENO"; then :
21568   ac_cv_func_strnlen_working=yes
21569 else
21570   ac_cv_func_strnlen_working=no
21571 fi
21572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21573   conftest.$ac_objext conftest.beam conftest.$ac_ext
21574 fi
21575
21576 fi
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21578 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21579 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
21580   *" strnlen.$ac_objext "* ) ;;
21581   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
21582  ;;
21583 esac
21584
21585
21586
21587 for ac_func in  \
21588   _Exit \
21589   accept4 \
21590   dup2 \
21591   getcwd \
21592   getpwnam \
21593   localtime_r \
21594   memchr \
21595   memmove \
21596   memset \
21597   socket \
21598   sqrt \
21599   strchr \
21600   strdup \
21601   strerror \
21602   strndup \
21603   strstr \
21604   strtol \
21605   strtoul \
21606   timegm \
21607
21608 do :
21609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21612   cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21614 _ACEOF
21615
21616 fi
21617 done
21618
21619
21620 # timerfd_create was added in linux kernel 2.6.25
21621
21622 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
21623 if test "x$ac_cv_func_timerfd_create" = xyes; then :
21624   have_timerfd_create=yes
21625 else
21626   have_timerfd_create=no
21627 fi
21628
21629
21630
21631 # Checks for epoll availability, primarily for examples/tiny-nghttpd
21632   ax_have_epoll_cppflags="${CPPFLAGS}"
21633   ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
21634 if test "x$ac_cv_header_linux_version_h" = xyes; then :
21635   CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H"
21636 fi
21637
21638
21639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5
21640 $as_echo_n "checking for Linux epoll(7) interface... " >&6; }
21641   if ${ax_cv_have_epoll+:} false; then :
21642   $as_echo_n "(cached) " >&6
21643 else
21644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h.  */
21646       #include <sys/epoll.h>
21647 #ifdef HAVE_LINUX_VERSION_H
21648 #  include <linux/version.h>
21649 #  if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)
21650 #    error linux kernel version is too old to have epoll
21651 #  endif
21652 #endif
21653
21654 int
21655 main ()
21656 {
21657 int fd, rc;
21658 struct epoll_event ev;
21659 fd = epoll_create(128);
21660 rc = epoll_wait(fd, &ev, 1, 0);
21661   ;
21662   return 0;
21663 }
21664 _ACEOF
21665 if ac_fn_c_try_link "$LINENO"; then :
21666   ax_cv_have_epoll=yes
21667 else
21668   ax_cv_have_epoll=no
21669 fi
21670 rm -f core conftest.err conftest.$ac_objext \
21671     conftest$ac_exeext conftest.$ac_ext
21672 fi
21673
21674   CPPFLAGS="${ax_have_epoll_cppflags}"
21675   if test "${ax_cv_have_epoll}" = "yes"; then :
21676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21677 $as_echo "yes" >&6; }
21678 have_epoll=yes
21679 else
21680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21681 $as_echo "no" >&6; }
21682 have_epoll=no
21683 fi
21684
21685
21686  if  test "x${have_epoll}" = "xyes" &&
21687                  test "x${have_timerfd_create}" = "xyes"; then
21688   ENABLE_TINY_NGHTTPD_TRUE=
21689   ENABLE_TINY_NGHTTPD_FALSE='#'
21690 else
21691   ENABLE_TINY_NGHTTPD_TRUE='#'
21692   ENABLE_TINY_NGHTTPD_FALSE=
21693 fi
21694
21695
21696 ac_save_CFLAGS=$CFLAGS
21697 CFLAGS=
21698
21699 if test "x$werror" != "xno"; then
21700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
21701 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
21702 if ${ax_cv_check_cflags___Wall+:} false; then :
21703   $as_echo_n "(cached) " >&6
21704 else
21705
21706   ax_check_save_flags=$CFLAGS
21707   CFLAGS="$CFLAGS  -Wall"
21708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h.  */
21710
21711 int
21712 main ()
21713 {
21714
21715   ;
21716   return 0;
21717 }
21718 _ACEOF
21719 if ac_fn_c_try_compile "$LINENO"; then :
21720   ax_cv_check_cflags___Wall=yes
21721 else
21722   ax_cv_check_cflags___Wall=no
21723 fi
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725   CFLAGS=$ax_check_save_flags
21726 fi
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
21728 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
21729 if test x"$ax_cv_check_cflags___Wall" = xyes; then :
21730   CFLAGS="$CFLAGS -Wall"
21731 else
21732   :
21733 fi
21734
21735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
21736 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
21737 if ${ax_cv_check_cflags___Wextra+:} false; then :
21738   $as_echo_n "(cached) " >&6
21739 else
21740
21741   ax_check_save_flags=$CFLAGS
21742   CFLAGS="$CFLAGS  -Wextra"
21743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744 /* end confdefs.h.  */
21745
21746 int
21747 main ()
21748 {
21749
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 if ac_fn_c_try_compile "$LINENO"; then :
21755   ax_cv_check_cflags___Wextra=yes
21756 else
21757   ax_cv_check_cflags___Wextra=no
21758 fi
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760   CFLAGS=$ax_check_save_flags
21761 fi
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
21763 $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
21764 if test x"$ax_cv_check_cflags___Wextra" = xyes; then :
21765   CFLAGS="$CFLAGS -Wextra"
21766 else
21767   :
21768 fi
21769
21770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
21771 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
21772 if ${ax_cv_check_cflags___Werror+:} false; then :
21773   $as_echo_n "(cached) " >&6
21774 else
21775
21776   ax_check_save_flags=$CFLAGS
21777   CFLAGS="$CFLAGS  -Werror"
21778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h.  */
21780
21781 int
21782 main ()
21783 {
21784
21785   ;
21786   return 0;
21787 }
21788 _ACEOF
21789 if ac_fn_c_try_compile "$LINENO"; then :
21790   ax_cv_check_cflags___Werror=yes
21791 else
21792   ax_cv_check_cflags___Werror=no
21793 fi
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795   CFLAGS=$ax_check_save_flags
21796 fi
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
21798 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
21799 if test x"$ax_cv_check_cflags___Werror" = xyes; then :
21800   CFLAGS="$CFLAGS -Werror"
21801 else
21802   :
21803 fi
21804
21805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
21806 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
21807 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
21808   $as_echo_n "(cached) " >&6
21809 else
21810
21811   ax_check_save_flags=$CFLAGS
21812   CFLAGS="$CFLAGS  -Wmissing-prototypes"
21813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h.  */
21815
21816 int
21817 main ()
21818 {
21819
21820   ;
21821   return 0;
21822 }
21823 _ACEOF
21824 if ac_fn_c_try_compile "$LINENO"; then :
21825   ax_cv_check_cflags___Wmissing_prototypes=yes
21826 else
21827   ax_cv_check_cflags___Wmissing_prototypes=no
21828 fi
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830   CFLAGS=$ax_check_save_flags
21831 fi
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
21833 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
21834 if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
21835   CFLAGS="$CFLAGS -Wmissing-prototypes"
21836 else
21837   :
21838 fi
21839
21840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
21841 $as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
21842 if ${ax_cv_check_cflags___Wstrict_prototypes+:} false; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845
21846   ax_check_save_flags=$CFLAGS
21847   CFLAGS="$CFLAGS  -Wstrict-prototypes"
21848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h.  */
21850
21851 int
21852 main ()
21853 {
21854
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 if ac_fn_c_try_compile "$LINENO"; then :
21860   ax_cv_check_cflags___Wstrict_prototypes=yes
21861 else
21862   ax_cv_check_cflags___Wstrict_prototypes=no
21863 fi
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21865   CFLAGS=$ax_check_save_flags
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
21868 $as_echo "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
21869 if test x"$ax_cv_check_cflags___Wstrict_prototypes" = xyes; then :
21870   CFLAGS="$CFLAGS -Wstrict-prototypes"
21871 else
21872   :
21873 fi
21874
21875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
21876 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
21877 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
21878   $as_echo_n "(cached) " >&6
21879 else
21880
21881   ax_check_save_flags=$CFLAGS
21882   CFLAGS="$CFLAGS  -Wmissing-declarations"
21883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h.  */
21885
21886 int
21887 main ()
21888 {
21889
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 if ac_fn_c_try_compile "$LINENO"; then :
21895   ax_cv_check_cflags___Wmissing_declarations=yes
21896 else
21897   ax_cv_check_cflags___Wmissing_declarations=no
21898 fi
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900   CFLAGS=$ax_check_save_flags
21901 fi
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
21903 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
21904 if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
21905   CFLAGS="$CFLAGS -Wmissing-declarations"
21906 else
21907   :
21908 fi
21909
21910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
21911 $as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; }
21912 if ${ax_cv_check_cflags___Wpointer_arith+:} false; then :
21913   $as_echo_n "(cached) " >&6
21914 else
21915
21916   ax_check_save_flags=$CFLAGS
21917   CFLAGS="$CFLAGS  -Wpointer-arith"
21918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h.  */
21920
21921 int
21922 main ()
21923 {
21924
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 if ac_fn_c_try_compile "$LINENO"; then :
21930   ax_cv_check_cflags___Wpointer_arith=yes
21931 else
21932   ax_cv_check_cflags___Wpointer_arith=no
21933 fi
21934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935   CFLAGS=$ax_check_save_flags
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
21938 $as_echo "$ax_cv_check_cflags___Wpointer_arith" >&6; }
21939 if test x"$ax_cv_check_cflags___Wpointer_arith" = xyes; then :
21940   CFLAGS="$CFLAGS -Wpointer-arith"
21941 else
21942   :
21943 fi
21944
21945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
21946 $as_echo_n "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
21947 if ${ax_cv_check_cflags___Wdeclaration_after_statement+:} false; then :
21948   $as_echo_n "(cached) " >&6
21949 else
21950
21951   ax_check_save_flags=$CFLAGS
21952   CFLAGS="$CFLAGS  -Wdeclaration-after-statement"
21953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h.  */
21955
21956 int
21957 main ()
21958 {
21959
21960   ;
21961   return 0;
21962 }
21963 _ACEOF
21964 if ac_fn_c_try_compile "$LINENO"; then :
21965   ax_cv_check_cflags___Wdeclaration_after_statement=yes
21966 else
21967   ax_cv_check_cflags___Wdeclaration_after_statement=no
21968 fi
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970   CFLAGS=$ax_check_save_flags
21971 fi
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
21973 $as_echo "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
21974 if test x"$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes; then :
21975   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21976 else
21977   :
21978 fi
21979
21980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
21981 $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
21982 if ${ax_cv_check_cflags___Wformat_security+:} false; then :
21983   $as_echo_n "(cached) " >&6
21984 else
21985
21986   ax_check_save_flags=$CFLAGS
21987   CFLAGS="$CFLAGS  -Wformat-security"
21988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h.  */
21990
21991 int
21992 main ()
21993 {
21994
21995   ;
21996   return 0;
21997 }
21998 _ACEOF
21999 if ac_fn_c_try_compile "$LINENO"; then :
22000   ax_cv_check_cflags___Wformat_security=yes
22001 else
22002   ax_cv_check_cflags___Wformat_security=no
22003 fi
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005   CFLAGS=$ax_check_save_flags
22006 fi
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
22008 $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
22009 if test x"$ax_cv_check_cflags___Wformat_security" = xyes; then :
22010   CFLAGS="$CFLAGS -Wformat-security"
22011 else
22012   :
22013 fi
22014
22015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
22016 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
22017 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
22018   $as_echo_n "(cached) " >&6
22019 else
22020
22021   ax_check_save_flags=$CFLAGS
22022   CFLAGS="$CFLAGS  -Wwrite-strings"
22023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h.  */
22025
22026 int
22027 main ()
22028 {
22029
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 if ac_fn_c_try_compile "$LINENO"; then :
22035   ax_cv_check_cflags___Wwrite_strings=yes
22036 else
22037   ax_cv_check_cflags___Wwrite_strings=no
22038 fi
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040   CFLAGS=$ax_check_save_flags
22041 fi
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
22043 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
22044 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
22045   CFLAGS="$CFLAGS -Wwrite-strings"
22046 else
22047   :
22048 fi
22049
22050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
22051 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
22052 if ${ax_cv_check_cflags___Wshadow+:} false; then :
22053   $as_echo_n "(cached) " >&6
22054 else
22055
22056   ax_check_save_flags=$CFLAGS
22057   CFLAGS="$CFLAGS  -Wshadow"
22058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059 /* end confdefs.h.  */
22060
22061 int
22062 main ()
22063 {
22064
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 if ac_fn_c_try_compile "$LINENO"; then :
22070   ax_cv_check_cflags___Wshadow=yes
22071 else
22072   ax_cv_check_cflags___Wshadow=no
22073 fi
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075   CFLAGS=$ax_check_save_flags
22076 fi
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
22078 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
22079 if test x"$ax_cv_check_cflags___Wshadow" = xyes; then :
22080   CFLAGS="$CFLAGS -Wshadow"
22081 else
22082   :
22083 fi
22084
22085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
22086 $as_echo_n "checking whether C compiler accepts -Winline... " >&6; }
22087 if ${ax_cv_check_cflags___Winline+:} false; then :
22088   $as_echo_n "(cached) " >&6
22089 else
22090
22091   ax_check_save_flags=$CFLAGS
22092   CFLAGS="$CFLAGS  -Winline"
22093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095
22096 int
22097 main ()
22098 {
22099
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 if ac_fn_c_try_compile "$LINENO"; then :
22105   ax_cv_check_cflags___Winline=yes
22106 else
22107   ax_cv_check_cflags___Winline=no
22108 fi
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110   CFLAGS=$ax_check_save_flags
22111 fi
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
22113 $as_echo "$ax_cv_check_cflags___Winline" >&6; }
22114 if test x"$ax_cv_check_cflags___Winline" = xyes; then :
22115   CFLAGS="$CFLAGS -Winline"
22116 else
22117   :
22118 fi
22119
22120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
22121 $as_echo_n "checking whether C compiler accepts -Wnested-externs... " >&6; }
22122 if ${ax_cv_check_cflags___Wnested_externs+:} false; then :
22123   $as_echo_n "(cached) " >&6
22124 else
22125
22126   ax_check_save_flags=$CFLAGS
22127   CFLAGS="$CFLAGS  -Wnested-externs"
22128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h.  */
22130
22131 int
22132 main ()
22133 {
22134
22135   ;
22136   return 0;
22137 }
22138 _ACEOF
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140   ax_cv_check_cflags___Wnested_externs=yes
22141 else
22142   ax_cv_check_cflags___Wnested_externs=no
22143 fi
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145   CFLAGS=$ax_check_save_flags
22146 fi
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
22148 $as_echo "$ax_cv_check_cflags___Wnested_externs" >&6; }
22149 if test x"$ax_cv_check_cflags___Wnested_externs" = xyes; then :
22150   CFLAGS="$CFLAGS -Wnested-externs"
22151 else
22152   :
22153 fi
22154
22155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
22156 $as_echo_n "checking whether C compiler accepts -Wfloat-equal... " >&6; }
22157 if ${ax_cv_check_cflags___Wfloat_equal+:} false; then :
22158   $as_echo_n "(cached) " >&6
22159 else
22160
22161   ax_check_save_flags=$CFLAGS
22162   CFLAGS="$CFLAGS  -Wfloat-equal"
22163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h.  */
22165
22166 int
22167 main ()
22168 {
22169
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 if ac_fn_c_try_compile "$LINENO"; then :
22175   ax_cv_check_cflags___Wfloat_equal=yes
22176 else
22177   ax_cv_check_cflags___Wfloat_equal=no
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180   CFLAGS=$ax_check_save_flags
22181 fi
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
22183 $as_echo "$ax_cv_check_cflags___Wfloat_equal" >&6; }
22184 if test x"$ax_cv_check_cflags___Wfloat_equal" = xyes; then :
22185   CFLAGS="$CFLAGS -Wfloat-equal"
22186 else
22187   :
22188 fi
22189
22190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
22191 $as_echo_n "checking whether C compiler accepts -Wundef... " >&6; }
22192 if ${ax_cv_check_cflags___Wundef+:} false; then :
22193   $as_echo_n "(cached) " >&6
22194 else
22195
22196   ax_check_save_flags=$CFLAGS
22197   CFLAGS="$CFLAGS  -Wundef"
22198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h.  */
22200
22201 int
22202 main ()
22203 {
22204
22205   ;
22206   return 0;
22207 }
22208 _ACEOF
22209 if ac_fn_c_try_compile "$LINENO"; then :
22210   ax_cv_check_cflags___Wundef=yes
22211 else
22212   ax_cv_check_cflags___Wundef=no
22213 fi
22214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215   CFLAGS=$ax_check_save_flags
22216 fi
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
22218 $as_echo "$ax_cv_check_cflags___Wundef" >&6; }
22219 if test x"$ax_cv_check_cflags___Wundef" = xyes; then :
22220   CFLAGS="$CFLAGS -Wundef"
22221 else
22222   :
22223 fi
22224
22225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
22226 $as_echo_n "checking whether C compiler accepts -Wendif-labels... " >&6; }
22227 if ${ax_cv_check_cflags___Wendif_labels+:} false; then :
22228   $as_echo_n "(cached) " >&6
22229 else
22230
22231   ax_check_save_flags=$CFLAGS
22232   CFLAGS="$CFLAGS  -Wendif-labels"
22233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h.  */
22235
22236 int
22237 main ()
22238 {
22239
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 if ac_fn_c_try_compile "$LINENO"; then :
22245   ax_cv_check_cflags___Wendif_labels=yes
22246 else
22247   ax_cv_check_cflags___Wendif_labels=no
22248 fi
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250   CFLAGS=$ax_check_save_flags
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
22253 $as_echo "$ax_cv_check_cflags___Wendif_labels" >&6; }
22254 if test x"$ax_cv_check_cflags___Wendif_labels" = xyes; then :
22255   CFLAGS="$CFLAGS -Wendif-labels"
22256 else
22257   :
22258 fi
22259
22260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
22261 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
22262 if ${ax_cv_check_cflags___Wempty_body+:} false; then :
22263   $as_echo_n "(cached) " >&6
22264 else
22265
22266   ax_check_save_flags=$CFLAGS
22267   CFLAGS="$CFLAGS  -Wempty-body"
22268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h.  */
22270
22271 int
22272 main ()
22273 {
22274
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 if ac_fn_c_try_compile "$LINENO"; then :
22280   ax_cv_check_cflags___Wempty_body=yes
22281 else
22282   ax_cv_check_cflags___Wempty_body=no
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22285   CFLAGS=$ax_check_save_flags
22286 fi
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
22288 $as_echo "$ax_cv_check_cflags___Wempty_body" >&6; }
22289 if test x"$ax_cv_check_cflags___Wempty_body" = xyes; then :
22290   CFLAGS="$CFLAGS -Wempty-body"
22291 else
22292   :
22293 fi
22294
22295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
22296 $as_echo_n "checking whether C compiler accepts -Wcast-align... " >&6; }
22297 if ${ax_cv_check_cflags___Wcast_align+:} false; then :
22298   $as_echo_n "(cached) " >&6
22299 else
22300
22301   ax_check_save_flags=$CFLAGS
22302   CFLAGS="$CFLAGS  -Wcast-align"
22303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h.  */
22305
22306 int
22307 main ()
22308 {
22309
22310   ;
22311   return 0;
22312 }
22313 _ACEOF
22314 if ac_fn_c_try_compile "$LINENO"; then :
22315   ax_cv_check_cflags___Wcast_align=yes
22316 else
22317   ax_cv_check_cflags___Wcast_align=no
22318 fi
22319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22320   CFLAGS=$ax_check_save_flags
22321 fi
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
22323 $as_echo "$ax_cv_check_cflags___Wcast_align" >&6; }
22324 if test x"$ax_cv_check_cflags___Wcast_align" = xyes; then :
22325   CFLAGS="$CFLAGS -Wcast-align"
22326 else
22327   :
22328 fi
22329
22330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
22331 $as_echo_n "checking whether C compiler accepts -Wclobbered... " >&6; }
22332 if ${ax_cv_check_cflags___Wclobbered+:} false; then :
22333   $as_echo_n "(cached) " >&6
22334 else
22335
22336   ax_check_save_flags=$CFLAGS
22337   CFLAGS="$CFLAGS  -Wclobbered"
22338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h.  */
22340
22341 int
22342 main ()
22343 {
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 if ac_fn_c_try_compile "$LINENO"; then :
22350   ax_cv_check_cflags___Wclobbered=yes
22351 else
22352   ax_cv_check_cflags___Wclobbered=no
22353 fi
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355   CFLAGS=$ax_check_save_flags
22356 fi
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
22358 $as_echo "$ax_cv_check_cflags___Wclobbered" >&6; }
22359 if test x"$ax_cv_check_cflags___Wclobbered" = xyes; then :
22360   CFLAGS="$CFLAGS -Wclobbered"
22361 else
22362   :
22363 fi
22364
22365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
22366 $as_echo_n "checking whether C compiler accepts -Wvla... " >&6; }
22367 if ${ax_cv_check_cflags___Wvla+:} false; then :
22368   $as_echo_n "(cached) " >&6
22369 else
22370
22371   ax_check_save_flags=$CFLAGS
22372   CFLAGS="$CFLAGS  -Wvla"
22373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h.  */
22375
22376 int
22377 main ()
22378 {
22379
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 if ac_fn_c_try_compile "$LINENO"; then :
22385   ax_cv_check_cflags___Wvla=yes
22386 else
22387   ax_cv_check_cflags___Wvla=no
22388 fi
22389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390   CFLAGS=$ax_check_save_flags
22391 fi
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
22393 $as_echo "$ax_cv_check_cflags___Wvla" >&6; }
22394 if test x"$ax_cv_check_cflags___Wvla" = xyes; then :
22395   CFLAGS="$CFLAGS -Wvla"
22396 else
22397   :
22398 fi
22399
22400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
22401 $as_echo_n "checking whether C compiler accepts -Wpragmas... " >&6; }
22402 if ${ax_cv_check_cflags___Wpragmas+:} false; then :
22403   $as_echo_n "(cached) " >&6
22404 else
22405
22406   ax_check_save_flags=$CFLAGS
22407   CFLAGS="$CFLAGS  -Wpragmas"
22408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h.  */
22410
22411 int
22412 main ()
22413 {
22414
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 if ac_fn_c_try_compile "$LINENO"; then :
22420   ax_cv_check_cflags___Wpragmas=yes
22421 else
22422   ax_cv_check_cflags___Wpragmas=no
22423 fi
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425   CFLAGS=$ax_check_save_flags
22426 fi
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
22428 $as_echo "$ax_cv_check_cflags___Wpragmas" >&6; }
22429 if test x"$ax_cv_check_cflags___Wpragmas" = xyes; then :
22430   CFLAGS="$CFLAGS -Wpragmas"
22431 else
22432   :
22433 fi
22434
22435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
22436 $as_echo_n "checking whether C compiler accepts -Wunreachable-code... " >&6; }
22437 if ${ax_cv_check_cflags___Wunreachable_code+:} false; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440
22441   ax_check_save_flags=$CFLAGS
22442   CFLAGS="$CFLAGS  -Wunreachable-code"
22443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h.  */
22445
22446 int
22447 main ()
22448 {
22449
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 if ac_fn_c_try_compile "$LINENO"; then :
22455   ax_cv_check_cflags___Wunreachable_code=yes
22456 else
22457   ax_cv_check_cflags___Wunreachable_code=no
22458 fi
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460   CFLAGS=$ax_check_save_flags
22461 fi
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
22463 $as_echo "$ax_cv_check_cflags___Wunreachable_code" >&6; }
22464 if test x"$ax_cv_check_cflags___Wunreachable_code" = xyes; then :
22465   CFLAGS="$CFLAGS -Wunreachable-code"
22466 else
22467   :
22468 fi
22469
22470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
22471 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
22472 if ${ax_cv_check_cflags___Waddress+:} false; then :
22473   $as_echo_n "(cached) " >&6
22474 else
22475
22476   ax_check_save_flags=$CFLAGS
22477   CFLAGS="$CFLAGS  -Waddress"
22478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h.  */
22480
22481 int
22482 main ()
22483 {
22484
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490   ax_cv_check_cflags___Waddress=yes
22491 else
22492   ax_cv_check_cflags___Waddress=no
22493 fi
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495   CFLAGS=$ax_check_save_flags
22496 fi
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
22498 $as_echo "$ax_cv_check_cflags___Waddress" >&6; }
22499 if test x"$ax_cv_check_cflags___Waddress" = xyes; then :
22500   CFLAGS="$CFLAGS -Waddress"
22501 else
22502   :
22503 fi
22504
22505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
22506 $as_echo_n "checking whether C compiler accepts -Wattributes... " >&6; }
22507 if ${ax_cv_check_cflags___Wattributes+:} false; then :
22508   $as_echo_n "(cached) " >&6
22509 else
22510
22511   ax_check_save_flags=$CFLAGS
22512   CFLAGS="$CFLAGS  -Wattributes"
22513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h.  */
22515
22516 int
22517 main ()
22518 {
22519
22520   ;
22521   return 0;
22522 }
22523 _ACEOF
22524 if ac_fn_c_try_compile "$LINENO"; then :
22525   ax_cv_check_cflags___Wattributes=yes
22526 else
22527   ax_cv_check_cflags___Wattributes=no
22528 fi
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530   CFLAGS=$ax_check_save_flags
22531 fi
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
22533 $as_echo "$ax_cv_check_cflags___Wattributes" >&6; }
22534 if test x"$ax_cv_check_cflags___Wattributes" = xyes; then :
22535   CFLAGS="$CFLAGS -Wattributes"
22536 else
22537   :
22538 fi
22539
22540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
22541 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
22542 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
22543   $as_echo_n "(cached) " >&6
22544 else
22545
22546   ax_check_save_flags=$CFLAGS
22547   CFLAGS="$CFLAGS  -Wdiv-by-zero"
22548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h.  */
22550
22551 int
22552 main ()
22553 {
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 if ac_fn_c_try_compile "$LINENO"; then :
22560   ax_cv_check_cflags___Wdiv_by_zero=yes
22561 else
22562   ax_cv_check_cflags___Wdiv_by_zero=no
22563 fi
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565   CFLAGS=$ax_check_save_flags
22566 fi
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
22568 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
22569 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
22570   CFLAGS="$CFLAGS -Wdiv-by-zero"
22571 else
22572   :
22573 fi
22574
22575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
22576 $as_echo_n "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
22577 if ${ax_cv_check_cflags___Wshorten_64_to_32+:} false; then :
22578   $as_echo_n "(cached) " >&6
22579 else
22580
22581   ax_check_save_flags=$CFLAGS
22582   CFLAGS="$CFLAGS  -Wshorten-64-to-32"
22583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h.  */
22585
22586 int
22587 main ()
22588 {
22589
22590   ;
22591   return 0;
22592 }
22593 _ACEOF
22594 if ac_fn_c_try_compile "$LINENO"; then :
22595   ax_cv_check_cflags___Wshorten_64_to_32=yes
22596 else
22597   ax_cv_check_cflags___Wshorten_64_to_32=no
22598 fi
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600   CFLAGS=$ax_check_save_flags
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
22603 $as_echo "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
22604 if test x"$ax_cv_check_cflags___Wshorten_64_to_32" = xyes; then :
22605   CFLAGS="$CFLAGS -Wshorten-64-to-32"
22606 else
22607   :
22608 fi
22609
22610
22611     # Only work with Clang for the moment
22612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
22613 $as_echo_n "checking whether C compiler accepts -Wheader-guard... " >&6; }
22614 if ${ax_cv_check_cflags___Wheader_guard+:} false; then :
22615   $as_echo_n "(cached) " >&6
22616 else
22617
22618   ax_check_save_flags=$CFLAGS
22619   CFLAGS="$CFLAGS  -Wheader-guard"
22620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621 /* end confdefs.h.  */
22622
22623 int
22624 main ()
22625 {
22626
22627   ;
22628   return 0;
22629 }
22630 _ACEOF
22631 if ac_fn_c_try_compile "$LINENO"; then :
22632   ax_cv_check_cflags___Wheader_guard=yes
22633 else
22634   ax_cv_check_cflags___Wheader_guard=no
22635 fi
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637   CFLAGS=$ax_check_save_flags
22638 fi
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
22640 $as_echo "$ax_cv_check_cflags___Wheader_guard" >&6; }
22641 if test x"$ax_cv_check_cflags___Wheader_guard" = xyes; then :
22642   CFLAGS="$CFLAGS -Wheader-guard"
22643 else
22644   :
22645 fi
22646
22647 fi
22648
22649 WARNCFLAGS=$CFLAGS
22650 CFLAGS=$ac_save_CFLAGS
22651
22652
22653
22654 if test "x$debug" != "xno"; then
22655
22656 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
22657
22658 fi
22659
22660 enable_threads=yes
22661 # Some platform does not have working std::future.  We disable
22662 # threading for those platforms.
22663 if test "x$threads" != "xyes" ||
22664    test "x$have_std_future" != "xyes"; then
22665     enable_threads=no
22666
22667 $as_echo "#define NOTHREADS 1" >>confdefs.h
22668
22669 fi
22670
22671
22672
22673
22674 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libnghttp2.pc lib/includes/Makefile lib/includes/nghttp2/nghttp2ver.h tests/Makefile tests/testdata/Makefile third-party/Makefile src/Makefile src/includes/Makefile src/libnghttp2_asio.pc examples/Makefile python/Makefile python/setup.py integration-tests/Makefile integration-tests/config.go integration-tests/setenv doc/Makefile doc/conf.py doc/index.rst doc/package_README.rst doc/tutorial-client.rst doc/tutorial-server.rst doc/tutorial-hpack.rst doc/nghttpx-howto.rst doc/h2load-howto.rst doc/libnghttp2_asio.rst doc/python-apiref.rst doc/building-android-binary.rst doc/nghttp2.h.rst doc/nghttp2ver.h.rst doc/asio_http2.h.rst doc/asio_http2_server.h.rst doc/asio_http2_client.h.rst doc/contribute.rst contrib/Makefile"
22675
22676 cat >confcache <<\_ACEOF
22677 # This file is a shell script that caches the results of configure
22678 # tests run on this system so they can be shared between configure
22679 # scripts and configure runs, see configure's option --config-cache.
22680 # It is not useful on other systems.  If it contains results you don't
22681 # want to keep, you may remove or edit it.
22682 #
22683 # config.status only pays attention to the cache file if you give it
22684 # the --recheck option to rerun configure.
22685 #
22686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22688 # following values.
22689
22690 _ACEOF
22691
22692 # The following way of writing the cache mishandles newlines in values,
22693 # but we know of no workaround that is simple, portable, and efficient.
22694 # So, we kill variables containing newlines.
22695 # Ultrix sh set writes to stderr and can't be redirected directly,
22696 # and sets the high bit in the cache file unless we assign to the vars.
22697 (
22698   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22699     eval ac_val=\$$ac_var
22700     case $ac_val in #(
22701     *${as_nl}*)
22702       case $ac_var in #(
22703       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22705       esac
22706       case $ac_var in #(
22707       _ | IFS | as_nl) ;; #(
22708       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22709       *) { eval $ac_var=; unset $ac_var;} ;;
22710       esac ;;
22711     esac
22712   done
22713
22714   (set) 2>&1 |
22715     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22716     *${as_nl}ac_space=\ *)
22717       # `set' does not quote correctly, so add quotes: double-quote
22718       # substitution turns \\\\ into \\, and sed turns \\ into \.
22719       sed -n \
22720         "s/'/'\\\\''/g;
22721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22722       ;; #(
22723     *)
22724       # `set' quotes correctly as required by POSIX, so do not add quotes.
22725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22726       ;;
22727     esac |
22728     sort
22729 ) |
22730   sed '
22731      /^ac_cv_env_/b end
22732      t clear
22733      :clear
22734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22735      t end
22736      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22737      :end' >>confcache
22738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22739   if test -w "$cache_file"; then
22740     if test "x$cache_file" != "x/dev/null"; then
22741       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22742 $as_echo "$as_me: updating cache $cache_file" >&6;}
22743       if test ! -f "$cache_file" || test -h "$cache_file"; then
22744         cat confcache >"$cache_file"
22745       else
22746         case $cache_file in #(
22747         */* | ?:*)
22748           mv -f confcache "$cache_file"$$ &&
22749           mv -f "$cache_file"$$ "$cache_file" ;; #(
22750         *)
22751           mv -f confcache "$cache_file" ;;
22752         esac
22753       fi
22754     fi
22755   else
22756     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22758   fi
22759 fi
22760 rm -f confcache
22761
22762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22763 # Let make expand exec_prefix.
22764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22765
22766 DEFS=-DHAVE_CONFIG_H
22767
22768 ac_libobjs=
22769 ac_ltlibobjs=
22770 U=
22771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22772   # 1. Remove the extension, and $U if already installed.
22773   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22774   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22775   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22776   #    will be set to the directory where LIBOBJS objects are built.
22777   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22778   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22779 done
22780 LIBOBJS=$ac_libobjs
22781
22782 LTLIBOBJS=$ac_ltlibobjs
22783
22784
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22786 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22787    if test -n "$am_sleep_pid"; then
22788      # Hide warnings about reused PIDs.
22789      wait $am_sleep_pid 2>/dev/null
22790    fi
22791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22792 $as_echo "done" >&6; }
22793 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22794   as_fn_error $? "conditional \"AMDEP\" was never defined.
22795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22796 fi
22797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22798   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22800 fi
22801  if test -n "$EXEEXT"; then
22802   am__EXEEXT_TRUE=
22803   am__EXEEXT_FALSE='#'
22804 else
22805   am__EXEEXT_TRUE='#'
22806   am__EXEEXT_FALSE=
22807 fi
22808
22809 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22810   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22812 fi
22813 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
22814   as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
22815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22816 fi
22817 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
22818   as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
22819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22820 fi
22821 if test -z "${HAVE_SPDYLAY_TRUE}" && test -z "${HAVE_SPDYLAY_FALSE}"; then
22822   as_fn_error $? "conditional \"HAVE_SPDYLAY\" was never defined.
22823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22824 fi
22825 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
22826   as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
22827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22828 fi
22829 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
22830   as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
22831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22832 fi
22833 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
22834   as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
22835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22836 fi
22837 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
22838   as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
22839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22840 fi
22841 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
22842   as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
22843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22844 fi
22845 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
22846   as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
22847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22848 fi
22849 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
22850   as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
22851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22852 fi
22853
22854 if test -z "${ENABLE_TINY_NGHTTPD_TRUE}" && test -z "${ENABLE_TINY_NGHTTPD_FALSE}"; then
22855   as_fn_error $? "conditional \"ENABLE_TINY_NGHTTPD\" was never defined.
22856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22857 fi
22858
22859 : "${CONFIG_STATUS=./config.status}"
22860 ac_write_fail=0
22861 ac_clean_files_save=$ac_clean_files
22862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22864 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22865 as_write_fail=0
22866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22867 #! $SHELL
22868 # Generated by $as_me.
22869 # Run this file to recreate the current configuration.
22870 # Compiler output produced by configure, useful for debugging
22871 # configure, is in config.log if it exists.
22872
22873 debug=false
22874 ac_cs_recheck=false
22875 ac_cs_silent=false
22876
22877 SHELL=\${CONFIG_SHELL-$SHELL}
22878 export SHELL
22879 _ASEOF
22880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22881 ## -------------------- ##
22882 ## M4sh Initialization. ##
22883 ## -------------------- ##
22884
22885 # Be more Bourne compatible
22886 DUALCASE=1; export DUALCASE # for MKS sh
22887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22888   emulate sh
22889   NULLCMD=:
22890   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22891   # is contrary to our usage.  Disable this feature.
22892   alias -g '${1+"$@"}'='"$@"'
22893   setopt NO_GLOB_SUBST
22894 else
22895   case `(set -o) 2>/dev/null` in #(
22896   *posix*) :
22897     set -o posix ;; #(
22898   *) :
22899      ;;
22900 esac
22901 fi
22902
22903
22904 as_nl='
22905 '
22906 export as_nl
22907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22911 # Prefer a ksh shell builtin over an external printf program on Solaris,
22912 # but without wasting forks for bash or zsh.
22913 if test -z "$BASH_VERSION$ZSH_VERSION" \
22914     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22915   as_echo='print -r --'
22916   as_echo_n='print -rn --'
22917 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22918   as_echo='printf %s\n'
22919   as_echo_n='printf %s'
22920 else
22921   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22922     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22923     as_echo_n='/usr/ucb/echo -n'
22924   else
22925     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22926     as_echo_n_body='eval
22927       arg=$1;
22928       case $arg in #(
22929       *"$as_nl"*)
22930         expr "X$arg" : "X\\(.*\\)$as_nl";
22931         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22932       esac;
22933       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22934     '
22935     export as_echo_n_body
22936     as_echo_n='sh -c $as_echo_n_body as_echo'
22937   fi
22938   export as_echo_body
22939   as_echo='sh -c $as_echo_body as_echo'
22940 fi
22941
22942 # The user is always right.
22943 if test "${PATH_SEPARATOR+set}" != set; then
22944   PATH_SEPARATOR=:
22945   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22946     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22947       PATH_SEPARATOR=';'
22948   }
22949 fi
22950
22951
22952 # IFS
22953 # We need space, tab and new line, in precisely that order.  Quoting is
22954 # there to prevent editors from complaining about space-tab.
22955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22956 # splitting by setting IFS to empty value.)
22957 IFS=" ""        $as_nl"
22958
22959 # Find who we are.  Look in the path if we contain no directory separator.
22960 as_myself=
22961 case $0 in #((
22962   *[\\/]* ) as_myself=$0 ;;
22963   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22964 for as_dir in $PATH
22965 do
22966   IFS=$as_save_IFS
22967   test -z "$as_dir" && as_dir=.
22968     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22969   done
22970 IFS=$as_save_IFS
22971
22972      ;;
22973 esac
22974 # We did not find ourselves, most probably we were run as `sh COMMAND'
22975 # in which case we are not to be found in the path.
22976 if test "x$as_myself" = x; then
22977   as_myself=$0
22978 fi
22979 if test ! -f "$as_myself"; then
22980   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22981   exit 1
22982 fi
22983
22984 # Unset variables that we do not need and which cause bugs (e.g. in
22985 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22986 # suppresses any "Segmentation fault" message there.  '((' could
22987 # trigger a bug in pdksh 5.2.14.
22988 for as_var in BASH_ENV ENV MAIL MAILPATH
22989 do eval test x\${$as_var+set} = xset \
22990   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22991 done
22992 PS1='$ '
22993 PS2='> '
22994 PS4='+ '
22995
22996 # NLS nuisances.
22997 LC_ALL=C
22998 export LC_ALL
22999 LANGUAGE=C
23000 export LANGUAGE
23001
23002 # CDPATH.
23003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23004
23005
23006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23007 # ----------------------------------------
23008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23010 # script with STATUS, using 1 if that was 0.
23011 as_fn_error ()
23012 {
23013   as_status=$1; test $as_status -eq 0 && as_status=1
23014   if test "$4"; then
23015     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23016     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23017   fi
23018   $as_echo "$as_me: error: $2" >&2
23019   as_fn_exit $as_status
23020 } # as_fn_error
23021
23022
23023 # as_fn_set_status STATUS
23024 # -----------------------
23025 # Set $? to STATUS, without forking.
23026 as_fn_set_status ()
23027 {
23028   return $1
23029 } # as_fn_set_status
23030
23031 # as_fn_exit STATUS
23032 # -----------------
23033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23034 as_fn_exit ()
23035 {
23036   set +e
23037   as_fn_set_status $1
23038   exit $1
23039 } # as_fn_exit
23040
23041 # as_fn_unset VAR
23042 # ---------------
23043 # Portably unset VAR.
23044 as_fn_unset ()
23045 {
23046   { eval $1=; unset $1;}
23047 }
23048 as_unset=as_fn_unset
23049 # as_fn_append VAR VALUE
23050 # ----------------------
23051 # Append the text in VALUE to the end of the definition contained in VAR. Take
23052 # advantage of any shell optimizations that allow amortized linear growth over
23053 # repeated appends, instead of the typical quadratic growth present in naive
23054 # implementations.
23055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23056   eval 'as_fn_append ()
23057   {
23058     eval $1+=\$2
23059   }'
23060 else
23061   as_fn_append ()
23062   {
23063     eval $1=\$$1\$2
23064   }
23065 fi # as_fn_append
23066
23067 # as_fn_arith ARG...
23068 # ------------------
23069 # Perform arithmetic evaluation on the ARGs, and store the result in the
23070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23071 # must be portable across $(()) and expr.
23072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23073   eval 'as_fn_arith ()
23074   {
23075     as_val=$(( $* ))
23076   }'
23077 else
23078   as_fn_arith ()
23079   {
23080     as_val=`expr "$@" || test $? -eq 1`
23081   }
23082 fi # as_fn_arith
23083
23084
23085 if expr a : '\(a\)' >/dev/null 2>&1 &&
23086    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23087   as_expr=expr
23088 else
23089   as_expr=false
23090 fi
23091
23092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23093   as_basename=basename
23094 else
23095   as_basename=false
23096 fi
23097
23098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23099   as_dirname=dirname
23100 else
23101   as_dirname=false
23102 fi
23103
23104 as_me=`$as_basename -- "$0" ||
23105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23106          X"$0" : 'X\(//\)$' \| \
23107          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23108 $as_echo X/"$0" |
23109     sed '/^.*\/\([^/][^/]*\)\/*$/{
23110             s//\1/
23111             q
23112           }
23113           /^X\/\(\/\/\)$/{
23114             s//\1/
23115             q
23116           }
23117           /^X\/\(\/\).*/{
23118             s//\1/
23119             q
23120           }
23121           s/.*/./; q'`
23122
23123 # Avoid depending upon Character Ranges.
23124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23127 as_cr_digits='0123456789'
23128 as_cr_alnum=$as_cr_Letters$as_cr_digits
23129
23130 ECHO_C= ECHO_N= ECHO_T=
23131 case `echo -n x` in #(((((
23132 -n*)
23133   case `echo 'xy\c'` in
23134   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23135   xy)  ECHO_C='\c';;
23136   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23137        ECHO_T=' ';;
23138   esac;;
23139 *)
23140   ECHO_N='-n';;
23141 esac
23142
23143 rm -f conf$$ conf$$.exe conf$$.file
23144 if test -d conf$$.dir; then
23145   rm -f conf$$.dir/conf$$.file
23146 else
23147   rm -f conf$$.dir
23148   mkdir conf$$.dir 2>/dev/null
23149 fi
23150 if (echo >conf$$.file) 2>/dev/null; then
23151   if ln -s conf$$.file conf$$ 2>/dev/null; then
23152     as_ln_s='ln -s'
23153     # ... but there are two gotchas:
23154     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23155     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23156     # In both cases, we have to default to `cp -pR'.
23157     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23158       as_ln_s='cp -pR'
23159   elif ln conf$$.file conf$$ 2>/dev/null; then
23160     as_ln_s=ln
23161   else
23162     as_ln_s='cp -pR'
23163   fi
23164 else
23165   as_ln_s='cp -pR'
23166 fi
23167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23168 rmdir conf$$.dir 2>/dev/null
23169
23170
23171 # as_fn_mkdir_p
23172 # -------------
23173 # Create "$as_dir" as a directory, including parents if necessary.
23174 as_fn_mkdir_p ()
23175 {
23176
23177   case $as_dir in #(
23178   -*) as_dir=./$as_dir;;
23179   esac
23180   test -d "$as_dir" || eval $as_mkdir_p || {
23181     as_dirs=
23182     while :; do
23183       case $as_dir in #(
23184       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23185       *) as_qdir=$as_dir;;
23186       esac
23187       as_dirs="'$as_qdir' $as_dirs"
23188       as_dir=`$as_dirname -- "$as_dir" ||
23189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190          X"$as_dir" : 'X\(//\)[^/]' \| \
23191          X"$as_dir" : 'X\(//\)$' \| \
23192          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23193 $as_echo X"$as_dir" |
23194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23195             s//\1/
23196             q
23197           }
23198           /^X\(\/\/\)[^/].*/{
23199             s//\1/
23200             q
23201           }
23202           /^X\(\/\/\)$/{
23203             s//\1/
23204             q
23205           }
23206           /^X\(\/\).*/{
23207             s//\1/
23208             q
23209           }
23210           s/.*/./; q'`
23211       test -d "$as_dir" && break
23212     done
23213     test -z "$as_dirs" || eval "mkdir $as_dirs"
23214   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23215
23216
23217 } # as_fn_mkdir_p
23218 if mkdir -p . 2>/dev/null; then
23219   as_mkdir_p='mkdir -p "$as_dir"'
23220 else
23221   test -d ./-p && rmdir ./-p
23222   as_mkdir_p=false
23223 fi
23224
23225
23226 # as_fn_executable_p FILE
23227 # -----------------------
23228 # Test if FILE is an executable regular file.
23229 as_fn_executable_p ()
23230 {
23231   test -f "$1" && test -x "$1"
23232 } # as_fn_executable_p
23233 as_test_x='test -x'
23234 as_executable_p=as_fn_executable_p
23235
23236 # Sed expression to map a string onto a valid CPP name.
23237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23238
23239 # Sed expression to map a string onto a valid variable name.
23240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23241
23242
23243 exec 6>&1
23244 ## ----------------------------------- ##
23245 ## Main body of $CONFIG_STATUS script. ##
23246 ## ----------------------------------- ##
23247 _ASEOF
23248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23249
23250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23251 # Save the log message, to keep $0 and so on meaningful, and to
23252 # report actual input values of CONFIG_FILES etc. instead of their
23253 # values after options handling.
23254 ac_log="
23255 This file was extended by nghttp2 $as_me 1.0.0, which was
23256 generated by GNU Autoconf 2.69.  Invocation command line was
23257
23258   CONFIG_FILES    = $CONFIG_FILES
23259   CONFIG_HEADERS  = $CONFIG_HEADERS
23260   CONFIG_LINKS    = $CONFIG_LINKS
23261   CONFIG_COMMANDS = $CONFIG_COMMANDS
23262   $ $0 $@
23263
23264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23265 "
23266
23267 _ACEOF
23268
23269 case $ac_config_files in *"
23270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23271 esac
23272
23273 case $ac_config_headers in *"
23274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23275 esac
23276
23277
23278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23279 # Files that config.status was made for.
23280 config_files="$ac_config_files"
23281 config_headers="$ac_config_headers"
23282 config_commands="$ac_config_commands"
23283
23284 _ACEOF
23285
23286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23287 ac_cs_usage="\
23288 \`$as_me' instantiates files and other configuration actions
23289 from templates according to the current configuration.  Unless the files
23290 and actions are specified as TAGs, all are instantiated by default.
23291
23292 Usage: $0 [OPTION]... [TAG]...
23293
23294   -h, --help       print this help, then exit
23295   -V, --version    print version number and configuration settings, then exit
23296       --config     print configuration, then exit
23297   -q, --quiet, --silent
23298                    do not print progress messages
23299   -d, --debug      don't remove temporary files
23300       --recheck    update $as_me by reconfiguring in the same conditions
23301       --file=FILE[:TEMPLATE]
23302                    instantiate the configuration file FILE
23303       --header=FILE[:TEMPLATE]
23304                    instantiate the configuration header FILE
23305
23306 Configuration files:
23307 $config_files
23308
23309 Configuration headers:
23310 $config_headers
23311
23312 Configuration commands:
23313 $config_commands
23314
23315 Report bugs to <t-tujikawa@users.sourceforge.net>."
23316
23317 _ACEOF
23318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23320 ac_cs_version="\\
23321 nghttp2 config.status 1.0.0
23322 configured by $0, generated by GNU Autoconf 2.69,
23323   with options \\"\$ac_cs_config\\"
23324
23325 Copyright (C) 2012 Free Software Foundation, Inc.
23326 This config.status script is free software; the Free Software Foundation
23327 gives unlimited permission to copy, distribute and modify it."
23328
23329 ac_pwd='$ac_pwd'
23330 srcdir='$srcdir'
23331 INSTALL='$INSTALL'
23332 MKDIR_P='$MKDIR_P'
23333 AWK='$AWK'
23334 test -n "\$AWK" || AWK=awk
23335 _ACEOF
23336
23337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23338 # The default lists apply if the user does not specify any file.
23339 ac_need_defaults=:
23340 while test $# != 0
23341 do
23342   case $1 in
23343   --*=?*)
23344     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23345     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23346     ac_shift=:
23347     ;;
23348   --*=)
23349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23350     ac_optarg=
23351     ac_shift=:
23352     ;;
23353   *)
23354     ac_option=$1
23355     ac_optarg=$2
23356     ac_shift=shift
23357     ;;
23358   esac
23359
23360   case $ac_option in
23361   # Handling of the options.
23362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23363     ac_cs_recheck=: ;;
23364   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23365     $as_echo "$ac_cs_version"; exit ;;
23366   --config | --confi | --conf | --con | --co | --c )
23367     $as_echo "$ac_cs_config"; exit ;;
23368   --debug | --debu | --deb | --de | --d | -d )
23369     debug=: ;;
23370   --file | --fil | --fi | --f )
23371     $ac_shift
23372     case $ac_optarg in
23373     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23374     '') as_fn_error $? "missing file argument" ;;
23375     esac
23376     as_fn_append CONFIG_FILES " '$ac_optarg'"
23377     ac_need_defaults=false;;
23378   --header | --heade | --head | --hea )
23379     $ac_shift
23380     case $ac_optarg in
23381     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23382     esac
23383     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23384     ac_need_defaults=false;;
23385   --he | --h)
23386     # Conflict between --help and --header
23387     as_fn_error $? "ambiguous option: \`$1'
23388 Try \`$0 --help' for more information.";;
23389   --help | --hel | -h )
23390     $as_echo "$ac_cs_usage"; exit ;;
23391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23393     ac_cs_silent=: ;;
23394
23395   # This is an error.
23396   -*) as_fn_error $? "unrecognized option: \`$1'
23397 Try \`$0 --help' for more information." ;;
23398
23399   *) as_fn_append ac_config_targets " $1"
23400      ac_need_defaults=false ;;
23401
23402   esac
23403   shift
23404 done
23405
23406 ac_configure_extra_args=
23407
23408 if $ac_cs_silent; then
23409   exec 6>/dev/null
23410   ac_configure_extra_args="$ac_configure_extra_args --silent"
23411 fi
23412
23413 _ACEOF
23414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23415 if \$ac_cs_recheck; then
23416   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23417   shift
23418   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23419   CONFIG_SHELL='$SHELL'
23420   export CONFIG_SHELL
23421   exec "\$@"
23422 fi
23423
23424 _ACEOF
23425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23426 exec 5>>config.log
23427 {
23428   echo
23429   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23430 ## Running $as_me. ##
23431 _ASBOX
23432   $as_echo "$ac_log"
23433 } >&5
23434
23435 _ACEOF
23436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23437 #
23438 # INIT-COMMANDS
23439 #
23440
23441
23442 # The HP-UX ksh and POSIX shell print the target directory to stdout
23443 # if CDPATH is set.
23444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23445
23446 sed_quote_subst='$sed_quote_subst'
23447 double_quote_subst='$double_quote_subst'
23448 delay_variable_subst='$delay_variable_subst'
23449 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23450 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23451 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23452 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23453 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23454 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23455 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23456 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23457 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23478 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23479 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23480 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23481 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23482 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23483 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23484 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23485 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23486 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23487 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23488 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23489 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23490 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23491 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23504 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23505 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"`'
23506 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23507 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23508 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23509 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23510 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23511 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23512 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23513 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23514 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23515 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23516 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23517 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23518 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23519 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23520 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23521 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23522 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23523 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23524 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23525 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23526 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23527 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23528 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23529 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23530 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23531 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23532 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23533 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23534 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23535 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23536 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23537 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23538 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23539 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23540 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23541 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23542 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23543 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23544 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23545 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23546 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23547 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23548 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23549 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23550 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23551 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23552 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23553 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23554 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23555 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23556 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23557 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23558 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23559 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23560 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23561 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23562 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23563 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23564 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23565 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23566 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23567 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23568 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23569 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23570 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23571 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23572 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23573 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23574 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23575 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23576 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23577 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23578 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23579 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23580 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23581 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23582 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23583 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23584 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23585 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23586 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23587 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23588 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23589 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23590 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23591 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23592 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23593 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23594 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23595 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23596 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23597 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23598 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23599 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23600 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23601 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23602 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23603 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23604 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23605 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23606 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23607 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23608 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23609 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23610 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23611 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23612 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23613 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23614 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23615 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23616 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23617 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23618 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23619 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23620 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23621 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23622 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23623 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23624 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23625 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23626 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23627 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23628 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23629 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23630 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23631 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23632 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23633
23634 LTCC='$LTCC'
23635 LTCFLAGS='$LTCFLAGS'
23636 compiler='$compiler_DEFAULT'
23637
23638 # A function that is used when there is no print builtin or printf.
23639 func_fallback_echo ()
23640 {
23641   eval 'cat <<_LTECHO_EOF
23642 \$1
23643 _LTECHO_EOF'
23644 }
23645
23646 # Quote evaled strings.
23647 for var in SHELL \
23648 ECHO \
23649 PATH_SEPARATOR \
23650 SED \
23651 GREP \
23652 EGREP \
23653 FGREP \
23654 LD \
23655 NM \
23656 LN_S \
23657 lt_SP2NL \
23658 lt_NL2SP \
23659 reload_flag \
23660 OBJDUMP \
23661 deplibs_check_method \
23662 file_magic_cmd \
23663 file_magic_glob \
23664 want_nocaseglob \
23665 DLLTOOL \
23666 sharedlib_from_linklib_cmd \
23667 AR \
23668 AR_FLAGS \
23669 archiver_list_spec \
23670 STRIP \
23671 RANLIB \
23672 CC \
23673 CFLAGS \
23674 compiler \
23675 lt_cv_sys_global_symbol_pipe \
23676 lt_cv_sys_global_symbol_to_cdecl \
23677 lt_cv_sys_global_symbol_to_c_name_address \
23678 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23679 nm_file_list_spec \
23680 lt_prog_compiler_no_builtin_flag \
23681 lt_prog_compiler_pic \
23682 lt_prog_compiler_wl \
23683 lt_prog_compiler_static \
23684 lt_cv_prog_compiler_c_o \
23685 need_locks \
23686 MANIFEST_TOOL \
23687 DSYMUTIL \
23688 NMEDIT \
23689 LIPO \
23690 OTOOL \
23691 OTOOL64 \
23692 shrext_cmds \
23693 export_dynamic_flag_spec \
23694 whole_archive_flag_spec \
23695 compiler_needs_object \
23696 with_gnu_ld \
23697 allow_undefined_flag \
23698 no_undefined_flag \
23699 hardcode_libdir_flag_spec \
23700 hardcode_libdir_separator \
23701 exclude_expsyms \
23702 include_expsyms \
23703 file_list_spec \
23704 variables_saved_for_relink \
23705 libname_spec \
23706 library_names_spec \
23707 soname_spec \
23708 install_override_mode \
23709 finish_eval \
23710 old_striplib \
23711 striplib \
23712 compiler_lib_search_dirs \
23713 predep_objects \
23714 postdep_objects \
23715 predeps \
23716 postdeps \
23717 compiler_lib_search_path \
23718 LD_CXX \
23719 reload_flag_CXX \
23720 compiler_CXX \
23721 lt_prog_compiler_no_builtin_flag_CXX \
23722 lt_prog_compiler_pic_CXX \
23723 lt_prog_compiler_wl_CXX \
23724 lt_prog_compiler_static_CXX \
23725 lt_cv_prog_compiler_c_o_CXX \
23726 export_dynamic_flag_spec_CXX \
23727 whole_archive_flag_spec_CXX \
23728 compiler_needs_object_CXX \
23729 with_gnu_ld_CXX \
23730 allow_undefined_flag_CXX \
23731 no_undefined_flag_CXX \
23732 hardcode_libdir_flag_spec_CXX \
23733 hardcode_libdir_separator_CXX \
23734 exclude_expsyms_CXX \
23735 include_expsyms_CXX \
23736 file_list_spec_CXX \
23737 compiler_lib_search_dirs_CXX \
23738 predep_objects_CXX \
23739 postdep_objects_CXX \
23740 predeps_CXX \
23741 postdeps_CXX \
23742 compiler_lib_search_path_CXX; do
23743     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23744     *[\\\\\\\`\\"\\\$]*)
23745       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23746       ;;
23747     *)
23748       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23749       ;;
23750     esac
23751 done
23752
23753 # Double-quote double-evaled strings.
23754 for var in reload_cmds \
23755 old_postinstall_cmds \
23756 old_postuninstall_cmds \
23757 old_archive_cmds \
23758 extract_expsyms_cmds \
23759 old_archive_from_new_cmds \
23760 old_archive_from_expsyms_cmds \
23761 archive_cmds \
23762 archive_expsym_cmds \
23763 module_cmds \
23764 module_expsym_cmds \
23765 export_symbols_cmds \
23766 prelink_cmds \
23767 postlink_cmds \
23768 postinstall_cmds \
23769 postuninstall_cmds \
23770 finish_cmds \
23771 sys_lib_search_path_spec \
23772 sys_lib_dlsearch_path_spec \
23773 reload_cmds_CXX \
23774 old_archive_cmds_CXX \
23775 old_archive_from_new_cmds_CXX \
23776 old_archive_from_expsyms_cmds_CXX \
23777 archive_cmds_CXX \
23778 archive_expsym_cmds_CXX \
23779 module_cmds_CXX \
23780 module_expsym_cmds_CXX \
23781 export_symbols_cmds_CXX \
23782 prelink_cmds_CXX \
23783 postlink_cmds_CXX; do
23784     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23785     *[\\\\\\\`\\"\\\$]*)
23786       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23787       ;;
23788     *)
23789       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23790       ;;
23791     esac
23792 done
23793
23794 ac_aux_dir='$ac_aux_dir'
23795 xsi_shell='$xsi_shell'
23796 lt_shell_append='$lt_shell_append'
23797
23798 # See if we are running on zsh, and set the options which allow our
23799 # commands through without removal of \ escapes INIT.
23800 if test -n "\${ZSH_VERSION+set}" ; then
23801    setopt NO_GLOB_SUBST
23802 fi
23803
23804
23805     PACKAGE='$PACKAGE'
23806     VERSION='$VERSION'
23807     TIMESTAMP='$TIMESTAMP'
23808     RM='$RM'
23809     ofile='$ofile'
23810
23811
23812
23813
23814
23815 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23816
23817 _ACEOF
23818
23819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23820
23821 # Handling of arguments.
23822 for ac_config_target in $ac_config_targets
23823 do
23824   case $ac_config_target in
23825     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23826     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23827     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23828     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23829     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23830     "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
23831     "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
23832     "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
23833     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23834     "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
23835     "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
23836     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23837     "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
23838     "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
23839     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23840     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23841     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
23842     "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
23843     "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
23844     "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
23845     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23846     "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
23847     "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
23848     "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
23849     "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
23850     "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
23851     "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
23852     "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
23853     "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
23854     "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
23855     "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
23856     "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
23857     "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
23858     "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
23859     "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
23860     "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
23861     "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
23862     "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
23863     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
23864
23865   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23866   esac
23867 done
23868
23869
23870 # If the user did not use the arguments to specify the items to instantiate,
23871 # then the envvar interface is used.  Set only those that are not.
23872 # We use the long form for the default assignment because of an extremely
23873 # bizarre bug on SunOS 4.1.3.
23874 if $ac_need_defaults; then
23875   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23876   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23877   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23878 fi
23879
23880 # Have a temporary directory for convenience.  Make it in the build tree
23881 # simply because there is no reason against having it here, and in addition,
23882 # creating and moving files from /tmp can sometimes cause problems.
23883 # Hook for its removal unless debugging.
23884 # Note that there is a small window in which the directory will not be cleaned:
23885 # after its creation but before its name has been assigned to `$tmp'.
23886 $debug ||
23887 {
23888   tmp= ac_tmp=
23889   trap 'exit_status=$?
23890   : "${ac_tmp:=$tmp}"
23891   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23892 ' 0
23893   trap 'as_fn_exit 1' 1 2 13 15
23894 }
23895 # Create a (secure) tmp directory for tmp files.
23896
23897 {
23898   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23899   test -d "$tmp"
23900 }  ||
23901 {
23902   tmp=./conf$$-$RANDOM
23903   (umask 077 && mkdir "$tmp")
23904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23905 ac_tmp=$tmp
23906
23907 # Set up the scripts for CONFIG_FILES section.
23908 # No need to generate them if there are no CONFIG_FILES.
23909 # This happens for instance with `./config.status config.h'.
23910 if test -n "$CONFIG_FILES"; then
23911
23912
23913 ac_cr=`echo X | tr X '\015'`
23914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23915 # But we know of no other shell where ac_cr would be empty at this
23916 # point, so we can use a bashism as a fallback.
23917 if test "x$ac_cr" = x; then
23918   eval ac_cr=\$\'\\r\'
23919 fi
23920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23922   ac_cs_awk_cr='\\r'
23923 else
23924   ac_cs_awk_cr=$ac_cr
23925 fi
23926
23927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23928 _ACEOF
23929
23930
23931 {
23932   echo "cat >conf$$subs.awk <<_ACEOF" &&
23933   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23934   echo "_ACEOF"
23935 } >conf$$subs.sh ||
23936   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23938 ac_delim='%!_!# '
23939 for ac_last_try in false false false false false :; do
23940   . ./conf$$subs.sh ||
23941     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23942
23943   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23944   if test $ac_delim_n = $ac_delim_num; then
23945     break
23946   elif $ac_last_try; then
23947     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23948   else
23949     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23950   fi
23951 done
23952 rm -f conf$$subs.sh
23953
23954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23956 _ACEOF
23957 sed -n '
23958 h
23959 s/^/S["/; s/!.*/"]=/
23960 p
23961 g
23962 s/^[^!]*!//
23963 :repl
23964 t repl
23965 s/'"$ac_delim"'$//
23966 t delim
23967 :nl
23968 h
23969 s/\(.\{148\}\)..*/\1/
23970 t more1
23971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23972 p
23973 n
23974 b repl
23975 :more1
23976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23977 p
23978 g
23979 s/.\{148\}//
23980 t nl
23981 :delim
23982 h
23983 s/\(.\{148\}\)..*/\1/
23984 t more2
23985 s/["\\]/\\&/g; s/^/"/; s/$/"/
23986 p
23987 b
23988 :more2
23989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23990 p
23991 g
23992 s/.\{148\}//
23993 t delim
23994 ' <conf$$subs.awk | sed '
23995 /^[^""]/{
23996   N
23997   s/\n//
23998 }
23999 ' >>$CONFIG_STATUS || ac_write_fail=1
24000 rm -f conf$$subs.awk
24001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24002 _ACAWK
24003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24004   for (key in S) S_is_set[key] = 1
24005   FS = "\a"
24006
24007 }
24008 {
24009   line = $ 0
24010   nfields = split(line, field, "@")
24011   substed = 0
24012   len = length(field[1])
24013   for (i = 2; i < nfields; i++) {
24014     key = field[i]
24015     keylen = length(key)
24016     if (S_is_set[key]) {
24017       value = S[key]
24018       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24019       len += length(value) + length(field[++i])
24020       substed = 1
24021     } else
24022       len += 1 + keylen
24023   }
24024
24025   print line
24026 }
24027
24028 _ACAWK
24029 _ACEOF
24030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24032   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24033 else
24034   cat
24035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24036   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24037 _ACEOF
24038
24039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24041 # trailing colons and then remove the whole line if VPATH becomes empty
24042 # (actually we leave an empty line to preserve line numbers).
24043 if test "x$srcdir" = x.; then
24044   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
24045 h
24046 s///
24047 s/^/:/
24048 s/[      ]*$/:/
24049 s/:\$(srcdir):/:/g
24050 s/:\${srcdir}:/:/g
24051 s/:@srcdir@:/:/g
24052 s/^:*//
24053 s/:*$//
24054 x
24055 s/\(=[   ]*\).*/\1/
24056 G
24057 s/\n//
24058 s/^[^=]*=[       ]*$//
24059 }'
24060 fi
24061
24062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24063 fi # test -n "$CONFIG_FILES"
24064
24065 # Set up the scripts for CONFIG_HEADERS section.
24066 # No need to generate them if there are no CONFIG_HEADERS.
24067 # This happens for instance with `./config.status Makefile'.
24068 if test -n "$CONFIG_HEADERS"; then
24069 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24070 BEGIN {
24071 _ACEOF
24072
24073 # Transform confdefs.h into an awk script `defines.awk', embedded as
24074 # here-document in config.status, that substitutes the proper values into
24075 # config.h.in to produce config.h.
24076
24077 # Create a delimiter string that does not exist in confdefs.h, to ease
24078 # handling of long lines.
24079 ac_delim='%!_!# '
24080 for ac_last_try in false false :; do
24081   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24082   if test -z "$ac_tt"; then
24083     break
24084   elif $ac_last_try; then
24085     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24086   else
24087     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24088   fi
24089 done
24090
24091 # For the awk script, D is an array of macro values keyed by name,
24092 # likewise P contains macro parameters if any.  Preserve backslash
24093 # newline sequences.
24094
24095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24096 sed -n '
24097 s/.\{148\}/&'"$ac_delim"'/g
24098 t rset
24099 :rset
24100 s/^[     ]*#[    ]*define[       ][      ]*/ /
24101 t def
24102 d
24103 :def
24104 s/\\$//
24105 t bsnl
24106 s/["\\]/\\&/g
24107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24108 D["\1"]=" \3"/p
24109 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
24110 d
24111 :bsnl
24112 s/["\\]/\\&/g
24113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24114 D["\1"]=" \3\\\\\\n"\\/p
24115 t cont
24116 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24117 t cont
24118 d
24119 :cont
24120 n
24121 s/.\{148\}/&'"$ac_delim"'/g
24122 t clear
24123 :clear
24124 s/\\$//
24125 t bsnlc
24126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24127 d
24128 :bsnlc
24129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24130 b cont
24131 ' <confdefs.h | sed '
24132 s/'"$ac_delim"'/"\\\
24133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24134
24135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24136   for (key in D) D_is_set[key] = 1
24137   FS = "\a"
24138 }
24139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24140   line = \$ 0
24141   split(line, arg, " ")
24142   if (arg[1] == "#") {
24143     defundef = arg[2]
24144     mac1 = arg[3]
24145   } else {
24146     defundef = substr(arg[1], 2)
24147     mac1 = arg[2]
24148   }
24149   split(mac1, mac2, "(") #)
24150   macro = mac2[1]
24151   prefix = substr(line, 1, index(line, defundef) - 1)
24152   if (D_is_set[macro]) {
24153     # Preserve the white space surrounding the "#".
24154     print prefix "define", macro P[macro] D[macro]
24155     next
24156   } else {
24157     # Replace #undef with comments.  This is necessary, for example,
24158     # in the case of _POSIX_SOURCE, which is predefined and required
24159     # on some systems where configure will not decide to define it.
24160     if (defundef == "undef") {
24161       print "/*", prefix defundef, macro, "*/"
24162       next
24163     }
24164   }
24165 }
24166 { print }
24167 _ACAWK
24168 _ACEOF
24169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24170   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24171 fi # test -n "$CONFIG_HEADERS"
24172
24173
24174 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24175 shift
24176 for ac_tag
24177 do
24178   case $ac_tag in
24179   :[FHLC]) ac_mode=$ac_tag; continue;;
24180   esac
24181   case $ac_mode$ac_tag in
24182   :[FHL]*:*);;
24183   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24184   :[FH]-) ac_tag=-:-;;
24185   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24186   esac
24187   ac_save_IFS=$IFS
24188   IFS=:
24189   set x $ac_tag
24190   IFS=$ac_save_IFS
24191   shift
24192   ac_file=$1
24193   shift
24194
24195   case $ac_mode in
24196   :L) ac_source=$1;;
24197   :[FH])
24198     ac_file_inputs=
24199     for ac_f
24200     do
24201       case $ac_f in
24202       -) ac_f="$ac_tmp/stdin";;
24203       *) # Look for the file first in the build tree, then in the source tree
24204          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24205          # because $ac_f cannot contain `:'.
24206          test -f "$ac_f" ||
24207            case $ac_f in
24208            [\\/$]*) false;;
24209            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24210            esac ||
24211            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24212       esac
24213       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24214       as_fn_append ac_file_inputs " '$ac_f'"
24215     done
24216
24217     # Let's still pretend it is `configure' which instantiates (i.e., don't
24218     # use $as_me), people would be surprised to read:
24219     #    /* config.h.  Generated by config.status.  */
24220     configure_input='Generated from '`
24221           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24222         `' by configure.'
24223     if test x"$ac_file" != x-; then
24224       configure_input="$ac_file.  $configure_input"
24225       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24226 $as_echo "$as_me: creating $ac_file" >&6;}
24227     fi
24228     # Neutralize special characters interpreted by sed in replacement strings.
24229     case $configure_input in #(
24230     *\&* | *\|* | *\\* )
24231        ac_sed_conf_input=`$as_echo "$configure_input" |
24232        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24233     *) ac_sed_conf_input=$configure_input;;
24234     esac
24235
24236     case $ac_tag in
24237     *:-:* | *:-) cat >"$ac_tmp/stdin" \
24238       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24239     esac
24240     ;;
24241   esac
24242
24243   ac_dir=`$as_dirname -- "$ac_file" ||
24244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245          X"$ac_file" : 'X\(//\)[^/]' \| \
24246          X"$ac_file" : 'X\(//\)$' \| \
24247          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24248 $as_echo X"$ac_file" |
24249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24250             s//\1/
24251             q
24252           }
24253           /^X\(\/\/\)[^/].*/{
24254             s//\1/
24255             q
24256           }
24257           /^X\(\/\/\)$/{
24258             s//\1/
24259             q
24260           }
24261           /^X\(\/\).*/{
24262             s//\1/
24263             q
24264           }
24265           s/.*/./; q'`
24266   as_dir="$ac_dir"; as_fn_mkdir_p
24267   ac_builddir=.
24268
24269 case "$ac_dir" in
24270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24271 *)
24272   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24273   # A ".." for each directory in $ac_dir_suffix.
24274   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24275   case $ac_top_builddir_sub in
24276   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24277   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24278   esac ;;
24279 esac
24280 ac_abs_top_builddir=$ac_pwd
24281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24282 # for backward compatibility:
24283 ac_top_builddir=$ac_top_build_prefix
24284
24285 case $srcdir in
24286   .)  # We are building in place.
24287     ac_srcdir=.
24288     ac_top_srcdir=$ac_top_builddir_sub
24289     ac_abs_top_srcdir=$ac_pwd ;;
24290   [\\/]* | ?:[\\/]* )  # Absolute name.
24291     ac_srcdir=$srcdir$ac_dir_suffix;
24292     ac_top_srcdir=$srcdir
24293     ac_abs_top_srcdir=$srcdir ;;
24294   *) # Relative name.
24295     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24296     ac_top_srcdir=$ac_top_build_prefix$srcdir
24297     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24298 esac
24299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24300
24301
24302   case $ac_mode in
24303   :F)
24304   #
24305   # CONFIG_FILE
24306   #
24307
24308   case $INSTALL in
24309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24310   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24311   esac
24312   ac_MKDIR_P=$MKDIR_P
24313   case $MKDIR_P in
24314   [\\/$]* | ?:[\\/]* ) ;;
24315   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24316   esac
24317 _ACEOF
24318
24319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24320 # If the template does not know about datarootdir, expand it.
24321 # FIXME: This hack should be removed a few years after 2.60.
24322 ac_datarootdir_hack=; ac_datarootdir_seen=
24323 ac_sed_dataroot='
24324 /datarootdir/ {
24325   p
24326   q
24327 }
24328 /@datadir@/p
24329 /@docdir@/p
24330 /@infodir@/p
24331 /@localedir@/p
24332 /@mandir@/p'
24333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24334 *datarootdir*) ac_datarootdir_seen=yes;;
24335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24336   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24338 _ACEOF
24339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24340   ac_datarootdir_hack='
24341   s&@datadir@&$datadir&g
24342   s&@docdir@&$docdir&g
24343   s&@infodir@&$infodir&g
24344   s&@localedir@&$localedir&g
24345   s&@mandir@&$mandir&g
24346   s&\\\${datarootdir}&$datarootdir&g' ;;
24347 esac
24348 _ACEOF
24349
24350 # Neutralize VPATH when `$srcdir' = `.'.
24351 # Shell code in configure.ac might set extrasub.
24352 # FIXME: do we really want to maintain this feature?
24353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24354 ac_sed_extra="$ac_vpsub
24355 $extrasub
24356 _ACEOF
24357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24358 :t
24359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24360 s|@configure_input@|$ac_sed_conf_input|;t t
24361 s&@top_builddir@&$ac_top_builddir_sub&;t t
24362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24363 s&@srcdir@&$ac_srcdir&;t t
24364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24365 s&@top_srcdir@&$ac_top_srcdir&;t t
24366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24367 s&@builddir@&$ac_builddir&;t t
24368 s&@abs_builddir@&$ac_abs_builddir&;t t
24369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24370 s&@INSTALL@&$ac_INSTALL&;t t
24371 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24372 $ac_datarootdir_hack
24373 "
24374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24375   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24376
24377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24378   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24379   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24380       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24382 which seems to be undefined.  Please make sure it is defined" >&5
24383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24384 which seems to be undefined.  Please make sure it is defined" >&2;}
24385
24386   rm -f "$ac_tmp/stdin"
24387   case $ac_file in
24388   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24389   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24390   esac \
24391   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24392  ;;
24393   :H)
24394   #
24395   # CONFIG_HEADER
24396   #
24397   if test x"$ac_file" != x-; then
24398     {
24399       $as_echo "/* $configure_input  */" \
24400       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24401     } >"$ac_tmp/config.h" \
24402       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24403     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24404       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24405 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24406     else
24407       rm -f "$ac_file"
24408       mv "$ac_tmp/config.h" "$ac_file" \
24409         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24410     fi
24411   else
24412     $as_echo "/* $configure_input  */" \
24413       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24414       || as_fn_error $? "could not create -" "$LINENO" 5
24415   fi
24416 # Compute "$ac_file"'s index in $config_headers.
24417 _am_arg="$ac_file"
24418 _am_stamp_count=1
24419 for _am_header in $config_headers :; do
24420   case $_am_header in
24421     $_am_arg | $_am_arg:* )
24422       break ;;
24423     * )
24424       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24425   esac
24426 done
24427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24429          X"$_am_arg" : 'X\(//\)[^/]' \| \
24430          X"$_am_arg" : 'X\(//\)$' \| \
24431          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24432 $as_echo X"$_am_arg" |
24433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24434             s//\1/
24435             q
24436           }
24437           /^X\(\/\/\)[^/].*/{
24438             s//\1/
24439             q
24440           }
24441           /^X\(\/\/\)$/{
24442             s//\1/
24443             q
24444           }
24445           /^X\(\/\).*/{
24446             s//\1/
24447             q
24448           }
24449           s/.*/./; q'`/stamp-h$_am_stamp_count
24450  ;;
24451
24452   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24453 $as_echo "$as_me: executing $ac_file commands" >&6;}
24454  ;;
24455   esac
24456
24457
24458   case $ac_file$ac_mode in
24459     "libtool":C)
24460
24461     # See if we are running on zsh, and set the options which allow our
24462     # commands through without removal of \ escapes.
24463     if test -n "${ZSH_VERSION+set}" ; then
24464       setopt NO_GLOB_SUBST
24465     fi
24466
24467     cfgfile="${ofile}T"
24468     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24469     $RM "$cfgfile"
24470
24471     cat <<_LT_EOF >> "$cfgfile"
24472 #! $SHELL
24473
24474 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24475 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24478 #
24479 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24480 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24481 #                 Foundation, Inc.
24482 #   Written by Gordon Matzigkeit, 1996
24483 #
24484 #   This file is part of GNU Libtool.
24485 #
24486 # GNU Libtool is free software; you can redistribute it and/or
24487 # modify it under the terms of the GNU General Public License as
24488 # published by the Free Software Foundation; either version 2 of
24489 # the License, or (at your option) any later version.
24490 #
24491 # As a special exception to the GNU General Public License,
24492 # if you distribute this file as part of a program or library that
24493 # is built using GNU Libtool, you may include this file under the
24494 # same distribution terms that you use for the rest of that program.
24495 #
24496 # GNU Libtool is distributed in the hope that it will be useful,
24497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24499 # GNU General Public License for more details.
24500 #
24501 # You should have received a copy of the GNU General Public License
24502 # along with GNU Libtool; see the file COPYING.  If not, a copy
24503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24504 # obtained by writing to the Free Software Foundation, Inc.,
24505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24506
24507
24508 # The names of the tagged configurations supported by this script.
24509 available_tags="CXX "
24510
24511 # ### BEGIN LIBTOOL CONFIG
24512
24513 # Which release of libtool.m4 was used?
24514 macro_version=$macro_version
24515 macro_revision=$macro_revision
24516
24517 # Whether or not to build shared libraries.
24518 build_libtool_libs=$enable_shared
24519
24520 # Whether or not to build static libraries.
24521 build_old_libs=$enable_static
24522
24523 # What type of objects to build.
24524 pic_mode=$pic_mode
24525
24526 # Whether or not to optimize for fast installation.
24527 fast_install=$enable_fast_install
24528
24529 # Shell to use when invoking shell scripts.
24530 SHELL=$lt_SHELL
24531
24532 # An echo program that protects backslashes.
24533 ECHO=$lt_ECHO
24534
24535 # The PATH separator for the build system.
24536 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24537
24538 # The host system.
24539 host_alias=$host_alias
24540 host=$host
24541 host_os=$host_os
24542
24543 # The build system.
24544 build_alias=$build_alias
24545 build=$build
24546 build_os=$build_os
24547
24548 # A sed program that does not truncate output.
24549 SED=$lt_SED
24550
24551 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24552 Xsed="\$SED -e 1s/^X//"
24553
24554 # A grep program that handles long lines.
24555 GREP=$lt_GREP
24556
24557 # An ERE matcher.
24558 EGREP=$lt_EGREP
24559
24560 # A literal string matcher.
24561 FGREP=$lt_FGREP
24562
24563 # A BSD- or MS-compatible name lister.
24564 NM=$lt_NM
24565
24566 # Whether we need soft or hard links.
24567 LN_S=$lt_LN_S
24568
24569 # What is the maximum length of a command?
24570 max_cmd_len=$max_cmd_len
24571
24572 # Object file suffix (normally "o").
24573 objext=$ac_objext
24574
24575 # Executable file suffix (normally "").
24576 exeext=$exeext
24577
24578 # whether the shell understands "unset".
24579 lt_unset=$lt_unset
24580
24581 # turn spaces into newlines.
24582 SP2NL=$lt_lt_SP2NL
24583
24584 # turn newlines into spaces.
24585 NL2SP=$lt_lt_NL2SP
24586
24587 # convert \$build file names to \$host format.
24588 to_host_file_cmd=$lt_cv_to_host_file_cmd
24589
24590 # convert \$build files to toolchain format.
24591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24592
24593 # An object symbol dumper.
24594 OBJDUMP=$lt_OBJDUMP
24595
24596 # Method to check whether dependent libraries are shared objects.
24597 deplibs_check_method=$lt_deplibs_check_method
24598
24599 # Command to use when deplibs_check_method = "file_magic".
24600 file_magic_cmd=$lt_file_magic_cmd
24601
24602 # How to find potential files when deplibs_check_method = "file_magic".
24603 file_magic_glob=$lt_file_magic_glob
24604
24605 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24606 want_nocaseglob=$lt_want_nocaseglob
24607
24608 # DLL creation program.
24609 DLLTOOL=$lt_DLLTOOL
24610
24611 # Command to associate shared and link libraries.
24612 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24613
24614 # The archiver.
24615 AR=$lt_AR
24616
24617 # Flags to create an archive.
24618 AR_FLAGS=$lt_AR_FLAGS
24619
24620 # How to feed a file listing to the archiver.
24621 archiver_list_spec=$lt_archiver_list_spec
24622
24623 # A symbol stripping program.
24624 STRIP=$lt_STRIP
24625
24626 # Commands used to install an old-style archive.
24627 RANLIB=$lt_RANLIB
24628 old_postinstall_cmds=$lt_old_postinstall_cmds
24629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24630
24631 # Whether to use a lock for old archive extraction.
24632 lock_old_archive_extraction=$lock_old_archive_extraction
24633
24634 # A C compiler.
24635 LTCC=$lt_CC
24636
24637 # LTCC compiler flags.
24638 LTCFLAGS=$lt_CFLAGS
24639
24640 # Take the output of nm and produce a listing of raw symbols and C names.
24641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24642
24643 # Transform the output of nm in a proper C declaration.
24644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24645
24646 # Transform the output of nm in a C name address pair.
24647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24648
24649 # Transform the output of nm in a C name address pair when lib prefix is needed.
24650 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24651
24652 # Specify filename containing input files for \$NM.
24653 nm_file_list_spec=$lt_nm_file_list_spec
24654
24655 # The root where to search for dependent libraries,and in which our libraries should be installed.
24656 lt_sysroot=$lt_sysroot
24657
24658 # The name of the directory that contains temporary libtool files.
24659 objdir=$objdir
24660
24661 # Used to examine libraries when file_magic_cmd begins with "file".
24662 MAGIC_CMD=$MAGIC_CMD
24663
24664 # Must we lock files when doing compilation?
24665 need_locks=$lt_need_locks
24666
24667 # Manifest tool.
24668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24669
24670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24671 DSYMUTIL=$lt_DSYMUTIL
24672
24673 # Tool to change global to local symbols on Mac OS X.
24674 NMEDIT=$lt_NMEDIT
24675
24676 # Tool to manipulate fat objects and archives on Mac OS X.
24677 LIPO=$lt_LIPO
24678
24679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24680 OTOOL=$lt_OTOOL
24681
24682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24683 OTOOL64=$lt_OTOOL64
24684
24685 # Old archive suffix (normally "a").
24686 libext=$libext
24687
24688 # Shared library suffix (normally ".so").
24689 shrext_cmds=$lt_shrext_cmds
24690
24691 # The commands to extract the exported symbol list from a shared archive.
24692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24693
24694 # Variables whose values should be saved in libtool wrapper scripts and
24695 # restored at link time.
24696 variables_saved_for_relink=$lt_variables_saved_for_relink
24697
24698 # Do we need the "lib" prefix for modules?
24699 need_lib_prefix=$need_lib_prefix
24700
24701 # Do we need a version for libraries?
24702 need_version=$need_version
24703
24704 # Library versioning type.
24705 version_type=$version_type
24706
24707 # Shared library runtime path variable.
24708 runpath_var=$runpath_var
24709
24710 # Shared library path variable.
24711 shlibpath_var=$shlibpath_var
24712
24713 # Is shlibpath searched before the hard-coded library search path?
24714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24715
24716 # Format of library name prefix.
24717 libname_spec=$lt_libname_spec
24718
24719 # List of archive names.  First name is the real one, the rest are links.
24720 # The last name is the one that the linker finds with -lNAME
24721 library_names_spec=$lt_library_names_spec
24722
24723 # The coded name of the library, if different from the real name.
24724 soname_spec=$lt_soname_spec
24725
24726 # Permission mode override for installation of shared libraries.
24727 install_override_mode=$lt_install_override_mode
24728
24729 # Command to use after installation of a shared archive.
24730 postinstall_cmds=$lt_postinstall_cmds
24731
24732 # Command to use after uninstallation of a shared archive.
24733 postuninstall_cmds=$lt_postuninstall_cmds
24734
24735 # Commands used to finish a libtool library installation in a directory.
24736 finish_cmds=$lt_finish_cmds
24737
24738 # As "finish_cmds", except a single script fragment to be evaled but
24739 # not shown.
24740 finish_eval=$lt_finish_eval
24741
24742 # Whether we should hardcode library paths into libraries.
24743 hardcode_into_libs=$hardcode_into_libs
24744
24745 # Compile-time system search path for libraries.
24746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24747
24748 # Run-time system search path for libraries.
24749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24750
24751 # Whether dlopen is supported.
24752 dlopen_support=$enable_dlopen
24753
24754 # Whether dlopen of programs is supported.
24755 dlopen_self=$enable_dlopen_self
24756
24757 # Whether dlopen of statically linked programs is supported.
24758 dlopen_self_static=$enable_dlopen_self_static
24759
24760 # Commands to strip libraries.
24761 old_striplib=$lt_old_striplib
24762 striplib=$lt_striplib
24763
24764
24765 # The linker used to build libraries.
24766 LD=$lt_LD
24767
24768 # How to create reloadable object files.
24769 reload_flag=$lt_reload_flag
24770 reload_cmds=$lt_reload_cmds
24771
24772 # Commands used to build an old-style archive.
24773 old_archive_cmds=$lt_old_archive_cmds
24774
24775 # A language specific compiler.
24776 CC=$lt_compiler
24777
24778 # Is the compiler the GNU compiler?
24779 with_gcc=$GCC
24780
24781 # Compiler flag to turn off builtin functions.
24782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24783
24784 # Additional compiler flags for building library objects.
24785 pic_flag=$lt_lt_prog_compiler_pic
24786
24787 # How to pass a linker flag through the compiler.
24788 wl=$lt_lt_prog_compiler_wl
24789
24790 # Compiler flag to prevent dynamic linking.
24791 link_static_flag=$lt_lt_prog_compiler_static
24792
24793 # Does compiler simultaneously support -c and -o options?
24794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24795
24796 # Whether or not to add -lc for building shared libraries.
24797 build_libtool_need_lc=$archive_cmds_need_lc
24798
24799 # Whether or not to disallow shared libs when runtime libs are static.
24800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24801
24802 # Compiler flag to allow reflexive dlopens.
24803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24804
24805 # Compiler flag to generate shared objects directly from archives.
24806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24807
24808 # Whether the compiler copes with passing no objects directly.
24809 compiler_needs_object=$lt_compiler_needs_object
24810
24811 # Create an old-style archive from a shared archive.
24812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24813
24814 # Create a temporary old-style archive to link instead of a shared archive.
24815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24816
24817 # Commands used to build a shared archive.
24818 archive_cmds=$lt_archive_cmds
24819 archive_expsym_cmds=$lt_archive_expsym_cmds
24820
24821 # Commands used to build a loadable module if different from building
24822 # a shared archive.
24823 module_cmds=$lt_module_cmds
24824 module_expsym_cmds=$lt_module_expsym_cmds
24825
24826 # Whether we are building with GNU ld or not.
24827 with_gnu_ld=$lt_with_gnu_ld
24828
24829 # Flag that allows shared libraries with undefined symbols to be built.
24830 allow_undefined_flag=$lt_allow_undefined_flag
24831
24832 # Flag that enforces no undefined symbols.
24833 no_undefined_flag=$lt_no_undefined_flag
24834
24835 # Flag to hardcode \$libdir into a binary during linking.
24836 # This must work even if \$libdir does not exist
24837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24838
24839 # Whether we need a single "-rpath" flag with a separated argument.
24840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24841
24842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24843 # DIR into the resulting binary.
24844 hardcode_direct=$hardcode_direct
24845
24846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24847 # DIR into the resulting binary and the resulting library dependency is
24848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24849 # library is relocated.
24850 hardcode_direct_absolute=$hardcode_direct_absolute
24851
24852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24853 # into the resulting binary.
24854 hardcode_minus_L=$hardcode_minus_L
24855
24856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24857 # into the resulting binary.
24858 hardcode_shlibpath_var=$hardcode_shlibpath_var
24859
24860 # Set to "yes" if building a shared library automatically hardcodes DIR
24861 # into the library and all subsequent libraries and executables linked
24862 # against it.
24863 hardcode_automatic=$hardcode_automatic
24864
24865 # Set to yes if linker adds runtime paths of dependent libraries
24866 # to runtime path list.
24867 inherit_rpath=$inherit_rpath
24868
24869 # Whether libtool must link a program against all its dependency libraries.
24870 link_all_deplibs=$link_all_deplibs
24871
24872 # Set to "yes" if exported symbols are required.
24873 always_export_symbols=$always_export_symbols
24874
24875 # The commands to list exported symbols.
24876 export_symbols_cmds=$lt_export_symbols_cmds
24877
24878 # Symbols that should not be listed in the preloaded symbols.
24879 exclude_expsyms=$lt_exclude_expsyms
24880
24881 # Symbols that must always be exported.
24882 include_expsyms=$lt_include_expsyms
24883
24884 # Commands necessary for linking programs (against libraries) with templates.
24885 prelink_cmds=$lt_prelink_cmds
24886
24887 # Commands necessary for finishing linking programs.
24888 postlink_cmds=$lt_postlink_cmds
24889
24890 # Specify filename containing input files.
24891 file_list_spec=$lt_file_list_spec
24892
24893 # How to hardcode a shared library path into an executable.
24894 hardcode_action=$hardcode_action
24895
24896 # The directories searched by this compiler when creating a shared library.
24897 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24898
24899 # Dependencies to place before and after the objects being linked to
24900 # create a shared library.
24901 predep_objects=$lt_predep_objects
24902 postdep_objects=$lt_postdep_objects
24903 predeps=$lt_predeps
24904 postdeps=$lt_postdeps
24905
24906 # The library search path used internally by the compiler when linking
24907 # a shared library.
24908 compiler_lib_search_path=$lt_compiler_lib_search_path
24909
24910 # ### END LIBTOOL CONFIG
24911
24912 _LT_EOF
24913
24914   case $host_os in
24915   aix3*)
24916     cat <<\_LT_EOF >> "$cfgfile"
24917 # AIX sometimes has problems with the GCC collect2 program.  For some
24918 # reason, if we set the COLLECT_NAMES environment variable, the problems
24919 # vanish in a puff of smoke.
24920 if test "X${COLLECT_NAMES+set}" != Xset; then
24921   COLLECT_NAMES=
24922   export COLLECT_NAMES
24923 fi
24924 _LT_EOF
24925     ;;
24926   esac
24927
24928
24929 ltmain="$ac_aux_dir/ltmain.sh"
24930
24931
24932   # We use sed instead of cat because bash on DJGPP gets confused if
24933   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24934   # text mode, it properly converts lines to CR/LF.  This bash problem
24935   # is reportedly fixed, but why not run on old versions too?
24936   sed '$q' "$ltmain" >> "$cfgfile" \
24937      || (rm -f "$cfgfile"; exit 1)
24938
24939   if test x"$xsi_shell" = xyes; then
24940   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24941 func_dirname ()\
24942 {\
24943 \    case ${1} in\
24944 \      */*) func_dirname_result="${1%/*}${2}" ;;\
24945 \      *  ) func_dirname_result="${3}" ;;\
24946 \    esac\
24947 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24948   && mv -f "$cfgfile.tmp" "$cfgfile" \
24949     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24950 test 0 -eq $? || _lt_function_replace_fail=:
24951
24952
24953   sed -e '/^func_basename ()$/,/^} # func_basename /c\
24954 func_basename ()\
24955 {\
24956 \    func_basename_result="${1##*/}"\
24957 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24958   && mv -f "$cfgfile.tmp" "$cfgfile" \
24959     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24960 test 0 -eq $? || _lt_function_replace_fail=:
24961
24962
24963   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24964 func_dirname_and_basename ()\
24965 {\
24966 \    case ${1} in\
24967 \      */*) func_dirname_result="${1%/*}${2}" ;;\
24968 \      *  ) func_dirname_result="${3}" ;;\
24969 \    esac\
24970 \    func_basename_result="${1##*/}"\
24971 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24972   && mv -f "$cfgfile.tmp" "$cfgfile" \
24973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24974 test 0 -eq $? || _lt_function_replace_fail=:
24975
24976
24977   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24978 func_stripname ()\
24979 {\
24980 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24981 \    # positional parameters, so assign one to ordinary parameter first.\
24982 \    func_stripname_result=${3}\
24983 \    func_stripname_result=${func_stripname_result#"${1}"}\
24984 \    func_stripname_result=${func_stripname_result%"${2}"}\
24985 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24986   && mv -f "$cfgfile.tmp" "$cfgfile" \
24987     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24988 test 0 -eq $? || _lt_function_replace_fail=:
24989
24990
24991   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24992 func_split_long_opt ()\
24993 {\
24994 \    func_split_long_opt_name=${1%%=*}\
24995 \    func_split_long_opt_arg=${1#*=}\
24996 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24997   && mv -f "$cfgfile.tmp" "$cfgfile" \
24998     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24999 test 0 -eq $? || _lt_function_replace_fail=:
25000
25001
25002   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25003 func_split_short_opt ()\
25004 {\
25005 \    func_split_short_opt_arg=${1#??}\
25006 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25007 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25008   && mv -f "$cfgfile.tmp" "$cfgfile" \
25009     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25010 test 0 -eq $? || _lt_function_replace_fail=:
25011
25012
25013   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25014 func_lo2o ()\
25015 {\
25016 \    case ${1} in\
25017 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25018 \      *)    func_lo2o_result=${1} ;;\
25019 \    esac\
25020 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25021   && mv -f "$cfgfile.tmp" "$cfgfile" \
25022     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25023 test 0 -eq $? || _lt_function_replace_fail=:
25024
25025
25026   sed -e '/^func_xform ()$/,/^} # func_xform /c\
25027 func_xform ()\
25028 {\
25029     func_xform_result=${1%.*}.lo\
25030 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25031   && mv -f "$cfgfile.tmp" "$cfgfile" \
25032     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25033 test 0 -eq $? || _lt_function_replace_fail=:
25034
25035
25036   sed -e '/^func_arith ()$/,/^} # func_arith /c\
25037 func_arith ()\
25038 {\
25039     func_arith_result=$(( $* ))\
25040 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25041   && mv -f "$cfgfile.tmp" "$cfgfile" \
25042     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25043 test 0 -eq $? || _lt_function_replace_fail=:
25044
25045
25046   sed -e '/^func_len ()$/,/^} # func_len /c\
25047 func_len ()\
25048 {\
25049     func_len_result=${#1}\
25050 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25051   && mv -f "$cfgfile.tmp" "$cfgfile" \
25052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25053 test 0 -eq $? || _lt_function_replace_fail=:
25054
25055 fi
25056
25057 if test x"$lt_shell_append" = xyes; then
25058   sed -e '/^func_append ()$/,/^} # func_append /c\
25059 func_append ()\
25060 {\
25061     eval "${1}+=\\${2}"\
25062 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25063   && mv -f "$cfgfile.tmp" "$cfgfile" \
25064     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25065 test 0 -eq $? || _lt_function_replace_fail=:
25066
25067
25068   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25069 func_append_quoted ()\
25070 {\
25071 \    func_quote_for_eval "${2}"\
25072 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25073 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25074   && mv -f "$cfgfile.tmp" "$cfgfile" \
25075     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25076 test 0 -eq $? || _lt_function_replace_fail=:
25077
25078
25079   # Save a `func_append' function call where possible by direct use of '+='
25080   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25081     && mv -f "$cfgfile.tmp" "$cfgfile" \
25082       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25083   test 0 -eq $? || _lt_function_replace_fail=:
25084 else
25085   # Save a `func_append' function call even when '+=' is not available
25086   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25087     && mv -f "$cfgfile.tmp" "$cfgfile" \
25088       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25089   test 0 -eq $? || _lt_function_replace_fail=:
25090 fi
25091
25092 if test x"$_lt_function_replace_fail" = x":"; then
25093   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25094 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25095 fi
25096
25097
25098    mv -f "$cfgfile" "$ofile" ||
25099     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25100   chmod +x "$ofile"
25101
25102
25103     cat <<_LT_EOF >> "$ofile"
25104
25105 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25106
25107 # The linker used to build libraries.
25108 LD=$lt_LD_CXX
25109
25110 # How to create reloadable object files.
25111 reload_flag=$lt_reload_flag_CXX
25112 reload_cmds=$lt_reload_cmds_CXX
25113
25114 # Commands used to build an old-style archive.
25115 old_archive_cmds=$lt_old_archive_cmds_CXX
25116
25117 # A language specific compiler.
25118 CC=$lt_compiler_CXX
25119
25120 # Is the compiler the GNU compiler?
25121 with_gcc=$GCC_CXX
25122
25123 # Compiler flag to turn off builtin functions.
25124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25125
25126 # Additional compiler flags for building library objects.
25127 pic_flag=$lt_lt_prog_compiler_pic_CXX
25128
25129 # How to pass a linker flag through the compiler.
25130 wl=$lt_lt_prog_compiler_wl_CXX
25131
25132 # Compiler flag to prevent dynamic linking.
25133 link_static_flag=$lt_lt_prog_compiler_static_CXX
25134
25135 # Does compiler simultaneously support -c and -o options?
25136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25137
25138 # Whether or not to add -lc for building shared libraries.
25139 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25140
25141 # Whether or not to disallow shared libs when runtime libs are static.
25142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25143
25144 # Compiler flag to allow reflexive dlopens.
25145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25146
25147 # Compiler flag to generate shared objects directly from archives.
25148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25149
25150 # Whether the compiler copes with passing no objects directly.
25151 compiler_needs_object=$lt_compiler_needs_object_CXX
25152
25153 # Create an old-style archive from a shared archive.
25154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25155
25156 # Create a temporary old-style archive to link instead of a shared archive.
25157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25158
25159 # Commands used to build a shared archive.
25160 archive_cmds=$lt_archive_cmds_CXX
25161 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25162
25163 # Commands used to build a loadable module if different from building
25164 # a shared archive.
25165 module_cmds=$lt_module_cmds_CXX
25166 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25167
25168 # Whether we are building with GNU ld or not.
25169 with_gnu_ld=$lt_with_gnu_ld_CXX
25170
25171 # Flag that allows shared libraries with undefined symbols to be built.
25172 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25173
25174 # Flag that enforces no undefined symbols.
25175 no_undefined_flag=$lt_no_undefined_flag_CXX
25176
25177 # Flag to hardcode \$libdir into a binary during linking.
25178 # This must work even if \$libdir does not exist
25179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25180
25181 # Whether we need a single "-rpath" flag with a separated argument.
25182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25183
25184 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25185 # DIR into the resulting binary.
25186 hardcode_direct=$hardcode_direct_CXX
25187
25188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25189 # DIR into the resulting binary and the resulting library dependency is
25190 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25191 # library is relocated.
25192 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25193
25194 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25195 # into the resulting binary.
25196 hardcode_minus_L=$hardcode_minus_L_CXX
25197
25198 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25199 # into the resulting binary.
25200 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25201
25202 # Set to "yes" if building a shared library automatically hardcodes DIR
25203 # into the library and all subsequent libraries and executables linked
25204 # against it.
25205 hardcode_automatic=$hardcode_automatic_CXX
25206
25207 # Set to yes if linker adds runtime paths of dependent libraries
25208 # to runtime path list.
25209 inherit_rpath=$inherit_rpath_CXX
25210
25211 # Whether libtool must link a program against all its dependency libraries.
25212 link_all_deplibs=$link_all_deplibs_CXX
25213
25214 # Set to "yes" if exported symbols are required.
25215 always_export_symbols=$always_export_symbols_CXX
25216
25217 # The commands to list exported symbols.
25218 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25219
25220 # Symbols that should not be listed in the preloaded symbols.
25221 exclude_expsyms=$lt_exclude_expsyms_CXX
25222
25223 # Symbols that must always be exported.
25224 include_expsyms=$lt_include_expsyms_CXX
25225
25226 # Commands necessary for linking programs (against libraries) with templates.
25227 prelink_cmds=$lt_prelink_cmds_CXX
25228
25229 # Commands necessary for finishing linking programs.
25230 postlink_cmds=$lt_postlink_cmds_CXX
25231
25232 # Specify filename containing input files.
25233 file_list_spec=$lt_file_list_spec_CXX
25234
25235 # How to hardcode a shared library path into an executable.
25236 hardcode_action=$hardcode_action_CXX
25237
25238 # The directories searched by this compiler when creating a shared library.
25239 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25240
25241 # Dependencies to place before and after the objects being linked to
25242 # create a shared library.
25243 predep_objects=$lt_predep_objects_CXX
25244 postdep_objects=$lt_postdep_objects_CXX
25245 predeps=$lt_predeps_CXX
25246 postdeps=$lt_postdeps_CXX
25247
25248 # The library search path used internally by the compiler when linking
25249 # a shared library.
25250 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25251
25252 # ### END LIBTOOL TAG CONFIG: CXX
25253 _LT_EOF
25254
25255  ;;
25256     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25257   # Older Autoconf quotes --file arguments for eval, but not when files
25258   # are listed without --file.  Let's play safe and only enable the eval
25259   # if we detect the quoting.
25260   case $CONFIG_FILES in
25261   *\'*) eval set x "$CONFIG_FILES" ;;
25262   *)   set x $CONFIG_FILES ;;
25263   esac
25264   shift
25265   for mf
25266   do
25267     # Strip MF so we end up with the name of the file.
25268     mf=`echo "$mf" | sed -e 's/:.*$//'`
25269     # Check whether this is an Automake generated Makefile or not.
25270     # We used to match only the files named 'Makefile.in', but
25271     # some people rename them; so instead we look at the file content.
25272     # Grep'ing the first line is not enough: some people post-process
25273     # each Makefile.in and add a new line on top of each file to say so.
25274     # Grep'ing the whole file is not good either: AIX grep has a line
25275     # limit of 2048, but all sed's we know have understand at least 4000.
25276     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25277       dirpart=`$as_dirname -- "$mf" ||
25278 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25279          X"$mf" : 'X\(//\)[^/]' \| \
25280          X"$mf" : 'X\(//\)$' \| \
25281          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25282 $as_echo X"$mf" |
25283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25284             s//\1/
25285             q
25286           }
25287           /^X\(\/\/\)[^/].*/{
25288             s//\1/
25289             q
25290           }
25291           /^X\(\/\/\)$/{
25292             s//\1/
25293             q
25294           }
25295           /^X\(\/\).*/{
25296             s//\1/
25297             q
25298           }
25299           s/.*/./; q'`
25300     else
25301       continue
25302     fi
25303     # Extract the definition of DEPDIR, am__include, and am__quote
25304     # from the Makefile without running 'make'.
25305     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25306     test -z "$DEPDIR" && continue
25307     am__include=`sed -n 's/^am__include = //p' < "$mf"`
25308     test -z "$am__include" && continue
25309     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25310     # Find all dependency output files, they are included files with
25311     # $(DEPDIR) in their names.  We invoke sed twice because it is the
25312     # simplest approach to changing $(DEPDIR) to its actual value in the
25313     # expansion.
25314     for file in `sed -n "
25315       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25316          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25317       # Make sure the directory exists.
25318       test -f "$dirpart/$file" && continue
25319       fdir=`$as_dirname -- "$file" ||
25320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25321          X"$file" : 'X\(//\)[^/]' \| \
25322          X"$file" : 'X\(//\)$' \| \
25323          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25324 $as_echo X"$file" |
25325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25326             s//\1/
25327             q
25328           }
25329           /^X\(\/\/\)[^/].*/{
25330             s//\1/
25331             q
25332           }
25333           /^X\(\/\/\)$/{
25334             s//\1/
25335             q
25336           }
25337           /^X\(\/\).*/{
25338             s//\1/
25339             q
25340           }
25341           s/.*/./; q'`
25342       as_dir=$dirpart/$fdir; as_fn_mkdir_p
25343       # echo "creating $dirpart/$file"
25344       echo '# dummy' > "$dirpart/$file"
25345     done
25346   done
25347 }
25348  ;;
25349
25350   esac
25351 done # for ac_tag
25352
25353
25354 as_fn_exit 0
25355 _ACEOF
25356 ac_clean_files=$ac_clean_files_save
25357
25358 test $ac_write_fail = 0 ||
25359   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25360
25361
25362 # configure is writing to config.log, and then calls config.status.
25363 # config.status does its own redirection, appending to config.log.
25364 # Unfortunately, on DOS this fails, as config.log is still kept open
25365 # by configure, so config.status won't be able to write to it; its
25366 # output is simply discarded.  So we exec the FD to /dev/null,
25367 # effectively closing config.log, so it can be properly (re)opened and
25368 # appended to by config.status.  When coming back to configure, we
25369 # need to make the FD available again.
25370 if test "$no_create" != yes; then
25371   ac_cs_success=:
25372   ac_config_status_args=
25373   test "$silent" = yes &&
25374     ac_config_status_args="$ac_config_status_args --quiet"
25375   exec 5>/dev/null
25376   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25377   exec 5>>config.log
25378   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25379   # would make configure fail if this is the last instruction.
25380   $ac_cs_success || as_fn_exit 1
25381 fi
25382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25383   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25385 fi
25386
25387
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
25389
25390     Version:        ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
25391     Host type:      ${host}
25392     Install prefix: ${prefix}
25393     C compiler:     ${CC}
25394     CFLAGS:         ${CFLAGS}
25395     WARNCFLAGS:     ${WARNCFLAGS}
25396     LDFLAGS:        ${LDFLAGS}
25397     LIBS:           ${LIBS}
25398     CPPFLAGS:       ${CPPFLAGS}
25399     C preprocessor: ${CPP}
25400     C++ compiler:   ${CXX}
25401     CXXFLAGS:       ${CXXFLAGS}
25402     CXXCPP:         ${CXXCPP}
25403     Library types:  Shared=${enable_shared}, Static=${enable_static}
25404     Python:
25405       Python:         ${PYTHON}
25406       PYTHON_VERSION: ${PYTHON_VERSION}
25407       pyexecdir:      ${pyexecdir}
25408       Python-dev:     ${have_python_dev}
25409       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
25410       PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
25411       Cython:         ${CYTHON}
25412     Test:
25413       CUnit:          ${have_cunit}
25414       Failmalloc:     ${enable_failmalloc}
25415     Libs:
25416       OpenSSL:        ${have_openssl}
25417       Libxml2:        ${have_libxml2}
25418       Libev:          ${have_libev}
25419       Libevent(SSL):  ${have_libevent_openssl}
25420       Spdylay:        ${have_spdylay}
25421       Jansson:        ${have_jansson}
25422       Jemalloc:       ${have_jemalloc}
25423       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
25424       Boost LDFLAGS:  ${BOOST_LDFLAGS}
25425       Boost::ASIO:    ${BOOST_ASIO_LIB}
25426       Boost::System:  ${BOOST_SYSTEM_LIB}
25427       Boost::Thread:  ${BOOST_THREAD_LIB}
25428     Features:
25429       Applications:   ${enable_app}
25430       HPACK tools:    ${enable_hpack_tools}
25431       Libnghttp2_asio:${enable_asio_lib}
25432       Examples:       ${enable_examples}
25433       Python bindings:${enable_python_bindings}
25434       Threading:      ${enable_threads}
25435 " >&5
25436 $as_echo "$as_me: summary of build options:
25437
25438     Version:        ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
25439     Host type:      ${host}
25440     Install prefix: ${prefix}
25441     C compiler:     ${CC}
25442     CFLAGS:         ${CFLAGS}
25443     WARNCFLAGS:     ${WARNCFLAGS}
25444     LDFLAGS:        ${LDFLAGS}
25445     LIBS:           ${LIBS}
25446     CPPFLAGS:       ${CPPFLAGS}
25447     C preprocessor: ${CPP}
25448     C++ compiler:   ${CXX}
25449     CXXFLAGS:       ${CXXFLAGS}
25450     CXXCPP:         ${CXXCPP}
25451     Library types:  Shared=${enable_shared}, Static=${enable_static}
25452     Python:
25453       Python:         ${PYTHON}
25454       PYTHON_VERSION: ${PYTHON_VERSION}
25455       pyexecdir:      ${pyexecdir}
25456       Python-dev:     ${have_python_dev}
25457       PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
25458       PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
25459       Cython:         ${CYTHON}
25460     Test:
25461       CUnit:          ${have_cunit}
25462       Failmalloc:     ${enable_failmalloc}
25463     Libs:
25464       OpenSSL:        ${have_openssl}
25465       Libxml2:        ${have_libxml2}
25466       Libev:          ${have_libev}
25467       Libevent(SSL):  ${have_libevent_openssl}
25468       Spdylay:        ${have_spdylay}
25469       Jansson:        ${have_jansson}
25470       Jemalloc:       ${have_jemalloc}
25471       Boost CPPFLAGS: ${BOOST_CPPFLAGS}
25472       Boost LDFLAGS:  ${BOOST_LDFLAGS}
25473       Boost::ASIO:    ${BOOST_ASIO_LIB}
25474       Boost::System:  ${BOOST_SYSTEM_LIB}
25475       Boost::Thread:  ${BOOST_THREAD_LIB}
25476     Features:
25477       Applications:   ${enable_app}
25478       HPACK tools:    ${enable_hpack_tools}
25479       Libnghttp2_asio:${enable_asio_lib}
25480       Examples:       ${enable_examples}
25481       Python bindings:${enable_python_bindings}
25482       Threading:      ${enable_threads}
25483 " >&6;}